@redneckz/wildless-cms-uni-blocks 0.3.84 → 0.3.86

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 (1513) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +495 -394
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/Logo.svg +1 -0
  5. package/dist/components/Accordion/useActiveHandler.d.ts +1 -1
  6. package/dist/components/Accordion/useActiveHandler.js +4 -4
  7. package/dist/components/Accordion/useActiveHandler.js.map +1 -1
  8. package/dist/components/BaseTile/BaseTile.js +1 -1
  9. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  10. package/dist/components/BaseTile/BaseTileProps.d.ts +7 -26
  11. package/dist/components/BaseTile/getTileHeadingType.d.ts +1 -1
  12. package/dist/components/BaseTile/getTileHeadingType.js +3 -3
  13. package/dist/components/BaseTile/getTileHeadingType.js.map +1 -1
  14. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  15. package/dist/components/Bonus/BonusContent.d.ts +2 -3
  16. package/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  17. package/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  18. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  19. package/dist/components/Calculator/Calculator.js +7 -7
  20. package/dist/components/Calculator/Calculator.js.map +1 -1
  21. package/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  22. package/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  23. package/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  24. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  25. package/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  26. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  27. package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  28. package/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  29. package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  30. package/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  31. package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  32. package/dist/components/Calculator/Rate.d.ts +7 -0
  33. package/dist/components/Calculator/Rate.js +6 -0
  34. package/dist/components/Calculator/Rate.js.map +1 -0
  35. package/dist/components/Calculator/constants.d.ts +13 -4
  36. package/dist/components/Calculator/constants.js +34 -5
  37. package/dist/components/Calculator/constants.js.map +1 -1
  38. package/dist/components/Calculator/getBonus.d.ts +2 -0
  39. package/dist/components/Calculator/getBonus.js +16 -0
  40. package/dist/components/Calculator/getBonus.js.map +1 -0
  41. package/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  42. package/dist/components/Calculator/getDefaultMonths.js +1 -4
  43. package/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  44. package/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  45. package/dist/components/Calculator/getDefaultSum.js +1 -3
  46. package/dist/components/Calculator/getDefaultSum.js.map +1 -1
  47. package/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  48. package/dist/components/Calculator/getMonthlyPayment.js +10 -11
  49. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  50. package/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  51. package/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  52. package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  53. package/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  54. package/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  55. package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  56. package/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  57. package/dist/components/Calculator/renderMonthsInput.js +4 -3
  58. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  59. package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  60. package/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  61. package/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  62. package/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  63. package/dist/components/Calculator/renderRealEstateValue.js +6 -5
  64. package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  65. package/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  66. package/dist/components/Calculator/renderWantedSumInput.js +5 -7
  67. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  68. package/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  69. package/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  70. package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  71. package/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  72. package/dist/components/Calculator/useCalculatorParams.js +12 -0
  73. package/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  74. package/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  75. package/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  76. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  77. package/dist/components/Catalog/CatalogContent.d.ts +3 -4
  78. package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  79. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  80. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  81. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +4 -4
  82. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  83. package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
  84. package/dist/components/ComparisonTable/HeaderCell.js +1 -1
  85. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  86. package/dist/components/ContentPage/ContentPageContext.d.ts +1 -2
  87. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  88. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  89. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  90. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  91. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  92. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  93. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  94. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  95. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  96. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  97. package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  98. package/dist/components/ExchangeRateTile/renderButton.js +2 -2
  99. package/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  100. package/dist/components/ExchangeRateTile/renderInput.js +1 -1
  101. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  102. package/dist/components/Footer/HorizontalNavigation.js +2 -2
  103. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  104. package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -2
  105. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  106. package/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  107. package/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  108. package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  109. package/dist/components/Footer/MediaButton.js +2 -1
  110. package/dist/components/Footer/MediaButton.js.map +1 -1
  111. package/dist/components/Footer/TextInformation.js +2 -2
  112. package/dist/components/Footer/TextInformation.js.map +1 -1
  113. package/dist/components/Footer/TextInformation.mobile.js +2 -2
  114. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  115. package/dist/components/Footer/TextInformationLink.d.ts +8 -0
  116. package/dist/components/Footer/TextInformationLink.js +6 -0
  117. package/dist/components/Footer/TextInformationLink.js.map +1 -0
  118. package/dist/components/Gallery/Gallery.mobile.js +2 -1
  119. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  120. package/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -2
  121. package/dist/components/GroupBlock/GroupBlock.js +1 -1
  122. package/dist/components/GroupBlock/GroupBlock.js.map +1 -1
  123. package/dist/components/GroupBlock/GroupBlockTabs.d.ts +2 -3
  124. package/dist/components/GroupBlock/GroupBlockTabs.js +10 -8
  125. package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  126. package/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  127. package/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
  128. package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  129. package/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  130. package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  131. package/dist/components/Header/DropdownMenu.d.ts +1 -0
  132. package/dist/components/Header/DropdownMenu.js +6 -3
  133. package/dist/components/Header/DropdownMenu.js.map +1 -1
  134. package/dist/components/Header/Header.js +1 -1
  135. package/dist/components/Header/HeaderSubMenu.js +1 -1
  136. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  137. package/dist/components/Headline/Headline.js +4 -2
  138. package/dist/components/Headline/Headline.js.map +1 -1
  139. package/dist/components/Headline/Headline.mobile.js +1 -1
  140. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  141. package/dist/components/Headline/HeadlineContent.d.ts +2 -4
  142. package/dist/components/Headline/constants.d.ts +9 -0
  143. package/dist/components/Headline/constants.js +33 -1
  144. package/dist/components/Headline/constants.js.map +1 -1
  145. package/dist/components/Insurance/Insurance.js +5 -5
  146. package/dist/components/Insurance/Insurance.js.map +1 -1
  147. package/dist/components/Insurance/InsuranceContent.d.ts +2 -5
  148. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  149. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  150. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  151. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  152. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  153. package/dist/components/LinkDocs/LinkDocs.js +2 -2
  154. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  155. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  156. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  157. package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -6
  158. package/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
  159. package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
  160. package/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
  161. package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
  162. package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
  163. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  164. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  165. package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +1 -1
  166. package/dist/components/NavigatorTabs/NavigatorTabItem.js +3 -3
  167. package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  168. package/dist/components/OtherProducts/OtherProductsItem.js +1 -1
  169. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  170. package/dist/components/PictureText/PictureTextContent.d.ts +2 -2
  171. package/dist/components/Placeholder/Placeholder.js +2 -4
  172. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  173. package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
  174. package/dist/components/ProductBlock/ProductBlock.js +3 -1
  175. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  176. package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -5
  177. package/dist/components/ProductBlock/ProductBlockInner.js +3 -8
  178. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  179. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +3 -4
  180. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  181. package/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  182. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  183. package/dist/components/ProductBlock/renderBenefit.js +1 -1
  184. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  185. package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
  186. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  187. package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  188. package/dist/components/ProductGallery/ProductGalleryBlock.js +2 -2
  189. package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  190. package/dist/components/ProductTile/ProductTile.js +4 -5
  191. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  192. package/dist/components/ProductTile/ProductTileContent.d.ts +2 -3
  193. package/dist/components/PromoTile/PromoTile.js +2 -2
  194. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  195. package/dist/components/PromoTile/PromoTileContent.d.ts +3 -3
  196. package/dist/components/Recommendation/RecommendationContent.d.ts +4 -4
  197. package/dist/components/StepsBlock/StepsBlock.js +5 -3
  198. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  199. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
  200. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  201. package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
  202. package/dist/components/StepsBlock/StepsBlockStyleMaps.js +3 -1
  203. package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  204. package/dist/components/TariffsTable/TariffsTable.mobile.js +3 -2
  205. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  206. package/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  207. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  208. package/dist/components/TextBlock/TextBlock.mobile.js +2 -1
  209. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  210. package/dist/components/Tile/Tile.js +4 -3
  211. package/dist/components/Tile/Tile.js.map +1 -1
  212. package/dist/components/Tile/TileContent.d.ts +3 -3
  213. package/dist/content-page-repository/transformPicture.js +7 -3
  214. package/dist/content-page-repository/transformPicture.js.map +1 -1
  215. package/dist/hooks/useExchangeRates.js +5 -7
  216. package/dist/hooks/useExchangeRates.js.map +1 -1
  217. package/dist/hooks/useLink.d.ts +3 -1
  218. package/dist/hooks/useLink.js +1 -1
  219. package/dist/hooks/useLink.js.map +1 -1
  220. package/dist/icons/IconName.d.ts +4 -2
  221. package/dist/icons/IconName.js +2 -0
  222. package/dist/icons/IconName.js.map +1 -1
  223. package/dist/model/HeadlineType.d.ts +17 -0
  224. package/dist/{ui-kit/Heading/HeadingContent.js → model/HeadlineType.js} +1 -1
  225. package/dist/model/HeadlineType.js.map +1 -0
  226. package/dist/model/Picture.d.ts +4 -3
  227. package/dist/model/VNode.d.ts +1 -1
  228. package/dist/services/sitemap/findActiveSubItem.d.ts +1 -1
  229. package/dist/services/sitemap/findActiveSubItem.js +2 -3
  230. package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  231. package/dist/types.d.ts +0 -1
  232. package/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  233. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  234. package/dist/ui-kit/Breadcrumb.d.ts +1 -1
  235. package/dist/ui-kit/Button/Button.d.ts +0 -1
  236. package/dist/ui-kit/Button/Button.js +4 -4
  237. package/dist/ui-kit/Button/Button.js.map +1 -1
  238. package/dist/ui-kit/Button/Button.mobile.js +1 -1
  239. package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
  240. package/dist/ui-kit/Button/ButtonInner.js +2 -2
  241. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  242. package/dist/ui-kit/Button/ButtonProps.d.ts +3 -1
  243. package/dist/ui-kit/Button/ButtonSection.js +2 -2
  244. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  245. package/dist/ui-kit/Button/LikeButton.d.ts +1 -1
  246. package/dist/ui-kit/Button/renderArrows.d.ts +2 -4
  247. package/dist/ui-kit/Button/renderArrows.js.map +1 -1
  248. package/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  249. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  250. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  251. package/dist/ui-kit/Description/Description.d.ts +2 -2
  252. package/dist/ui-kit/Description/Description.js +1 -1
  253. package/dist/ui-kit/Description/Description.js.map +1 -1
  254. package/dist/ui-kit/Foldable/Foldable.js +4 -2
  255. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  256. package/dist/ui-kit/Foldable/useActiveHandler.d.ts +1 -1
  257. package/dist/ui-kit/Foldable/useActiveHandler.js.map +1 -1
  258. package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
  259. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  260. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  261. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  262. package/dist/ui-kit/Heading/Heading.d.ts +1 -5
  263. package/dist/ui-kit/Heading/Heading.js +8 -11
  264. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  265. package/dist/ui-kit/Heading/Heading.mobile.d.ts +1 -5
  266. package/dist/ui-kit/Heading/Heading.mobile.js +2 -5
  267. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  268. package/dist/ui-kit/Heading/HeadingProps.d.ts +20 -0
  269. package/{mobile/dist/ui-kit/Heading/HeadingContent.js → dist/ui-kit/Heading/HeadingProps.js} +1 -1
  270. package/dist/ui-kit/Heading/HeadingProps.js.map +1 -0
  271. package/dist/ui-kit/Img/Img.d.ts +0 -3
  272. package/dist/ui-kit/Img/Img.js +4 -30
  273. package/dist/ui-kit/Img/Img.js.map +1 -1
  274. package/dist/ui-kit/Img/Img.mobile.d.ts +0 -3
  275. package/dist/ui-kit/Img/Img.mobile.js +4 -31
  276. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  277. package/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  278. package/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  279. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  280. package/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  281. package/dist/ui-kit/Img/ImgInner.js +19 -0
  282. package/dist/ui-kit/Img/ImgInner.js.map +1 -0
  283. package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  284. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  285. package/dist/ui-kit/Logo/Logo.js +1 -9
  286. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  287. package/dist/ui-kit/Logo/Logo.mobile.js +2 -9
  288. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  289. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  290. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  291. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  292. package/dist/ui-kit/SVG.d.ts +2 -2
  293. package/dist/ui-kit/SearchBar/SearchBar.js +3 -8
  294. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  295. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -7
  296. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  297. package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  298. package/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  299. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  300. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -3
  301. package/dist/ui-kit/Tabs/TabsProps.d.ts +1 -2
  302. package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
  303. package/dist/utils/url.d.ts +1 -0
  304. package/dist/utils/url.js +3 -1
  305. package/dist/utils/url.js.map +1 -1
  306. package/lib/common.css +1 -1
  307. package/lib/components/Accordion/useActiveHandler.d.ts +1 -1
  308. package/lib/components/Accordion/useActiveHandler.js +4 -4
  309. package/lib/components/Accordion/useActiveHandler.js.map +1 -1
  310. package/lib/components/BaseTile/BaseTile.js +1 -1
  311. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  312. package/lib/components/BaseTile/BaseTileProps.d.ts +7 -26
  313. package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
  314. package/lib/components/BaseTile/getTileHeadingType.js +3 -3
  315. package/lib/components/BaseTile/getTileHeadingType.js.map +1 -1
  316. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  317. package/lib/components/Bonus/BonusContent.d.ts +2 -3
  318. package/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  319. package/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  320. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  321. package/lib/components/Calculator/Calculator.js +7 -7
  322. package/lib/components/Calculator/Calculator.js.map +1 -1
  323. package/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  324. package/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  325. package/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  326. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  327. package/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  328. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  329. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  330. package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  331. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  332. package/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  333. package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  334. package/lib/components/Calculator/Rate.d.ts +7 -0
  335. package/lib/components/Calculator/Rate.js +4 -0
  336. package/lib/components/Calculator/Rate.js.map +1 -0
  337. package/lib/components/Calculator/constants.d.ts +13 -4
  338. package/lib/components/Calculator/constants.js +33 -4
  339. package/lib/components/Calculator/constants.js.map +1 -1
  340. package/lib/components/Calculator/getBonus.d.ts +2 -0
  341. package/lib/components/Calculator/getBonus.js +13 -0
  342. package/lib/components/Calculator/getBonus.js.map +1 -0
  343. package/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  344. package/lib/components/Calculator/getDefaultMonths.js +1 -4
  345. package/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  346. package/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  347. package/lib/components/Calculator/getDefaultSum.js +1 -3
  348. package/lib/components/Calculator/getDefaultSum.js.map +1 -1
  349. package/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  350. package/lib/components/Calculator/getMonthlyPayment.js +11 -12
  351. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  352. package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  353. package/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  354. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  355. package/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  356. package/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  357. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  358. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  359. package/lib/components/Calculator/renderMonthsInput.js +4 -3
  360. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  361. package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  362. package/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  363. package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  364. package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  365. package/lib/components/Calculator/renderRealEstateValue.js +6 -5
  366. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  367. package/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  368. package/lib/components/Calculator/renderWantedSumInput.js +5 -7
  369. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  370. package/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  371. package/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  372. package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  373. package/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  374. package/lib/components/Calculator/useCalculatorParams.js +9 -0
  375. package/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  376. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  377. package/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  378. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  379. package/lib/components/Catalog/CatalogContent.d.ts +3 -4
  380. package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  381. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  382. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  383. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +4 -4
  384. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  385. package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
  386. package/lib/components/ComparisonTable/HeaderCell.js +1 -1
  387. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  388. package/lib/components/ContentPage/ContentPageContext.d.ts +1 -2
  389. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  390. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  391. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  392. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  393. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  394. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  395. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  396. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  397. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  398. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  399. package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  400. package/lib/components/ExchangeRateTile/renderButton.js +2 -2
  401. package/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  402. package/lib/components/ExchangeRateTile/renderInput.js +1 -1
  403. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  404. package/lib/components/Footer/HorizontalNavigation.js +2 -2
  405. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  406. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -2
  407. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  408. package/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  409. package/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  410. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  411. package/lib/components/Footer/MediaButton.js +2 -1
  412. package/lib/components/Footer/MediaButton.js.map +1 -1
  413. package/lib/components/Footer/TextInformation.js +2 -2
  414. package/lib/components/Footer/TextInformation.js.map +1 -1
  415. package/lib/components/Footer/TextInformation.mobile.js +2 -2
  416. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  417. package/lib/components/Footer/TextInformationLink.d.ts +8 -0
  418. package/lib/components/Footer/TextInformationLink.js +4 -0
  419. package/lib/components/Footer/TextInformationLink.js.map +1 -0
  420. package/lib/components/Gallery/Gallery.mobile.js +2 -1
  421. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  422. package/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -2
  423. package/lib/components/GroupBlock/GroupBlock.js +1 -1
  424. package/lib/components/GroupBlock/GroupBlock.js.map +1 -1
  425. package/lib/components/GroupBlock/GroupBlockTabs.d.ts +2 -3
  426. package/lib/components/GroupBlock/GroupBlockTabs.js +10 -8
  427. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  428. package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  429. package/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
  430. package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  431. package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  432. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  433. package/lib/components/Header/DropdownMenu.d.ts +1 -0
  434. package/lib/components/Header/DropdownMenu.js +6 -3
  435. package/lib/components/Header/DropdownMenu.js.map +1 -1
  436. package/lib/components/Header/Header.js +1 -1
  437. package/lib/components/Header/HeaderSubMenu.js +1 -1
  438. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  439. package/lib/components/Headline/Headline.fixture.d.ts +5 -0
  440. package/lib/components/Headline/Headline.js +5 -3
  441. package/lib/components/Headline/Headline.js.map +1 -1
  442. package/lib/components/Headline/Headline.mobile.js +1 -1
  443. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  444. package/lib/components/Headline/HeadlineContent.d.ts +2 -4
  445. package/lib/components/Headline/constants.d.ts +9 -0
  446. package/lib/components/Headline/constants.js +32 -0
  447. package/lib/components/Headline/constants.js.map +1 -1
  448. package/lib/components/Insurance/Insurance.js +5 -5
  449. package/lib/components/Insurance/Insurance.js.map +1 -1
  450. package/lib/components/Insurance/InsuranceContent.d.ts +2 -5
  451. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  452. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  453. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  454. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  455. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  456. package/lib/components/LinkDocs/LinkDocs.js +2 -2
  457. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  458. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  459. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  460. package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -6
  461. package/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
  462. package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
  463. package/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
  464. package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
  465. package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
  466. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  467. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  468. package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +1 -1
  469. package/lib/components/NavigatorTabs/NavigatorTabItem.js +3 -3
  470. package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  471. package/lib/components/OtherProducts/OtherProductsItem.js +1 -1
  472. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  473. package/lib/components/PictureText/PictureTextContent.d.ts +2 -2
  474. package/lib/components/Placeholder/Placeholder.js +2 -4
  475. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  476. package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
  477. package/lib/components/ProductBlock/ProductBlock.js +3 -1
  478. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  479. package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -5
  480. package/lib/components/ProductBlock/ProductBlockInner.js +3 -8
  481. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  482. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +3 -4
  483. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  484. package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  485. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  486. package/lib/components/ProductBlock/renderBenefit.js +1 -1
  487. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  488. package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
  489. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  490. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  491. package/lib/components/ProductGallery/ProductGalleryBlock.js +2 -2
  492. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  493. package/lib/components/ProductTile/ProductTile.js +4 -5
  494. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  495. package/lib/components/ProductTile/ProductTileContent.d.ts +2 -3
  496. package/lib/components/PromoTile/PromoTile.js +2 -2
  497. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  498. package/lib/components/PromoTile/PromoTileContent.d.ts +3 -3
  499. package/lib/components/Recommendation/RecommendationContent.d.ts +4 -4
  500. package/lib/components/StepsBlock/StepsBlock.js +5 -3
  501. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  502. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
  503. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  504. package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
  505. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +3 -1
  506. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  507. package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -2
  508. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  509. package/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  510. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  511. package/lib/components/TextBlock/TextBlock.mobile.js +2 -1
  512. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  513. package/lib/components/Tile/Tile.js +4 -3
  514. package/lib/components/Tile/Tile.js.map +1 -1
  515. package/lib/components/Tile/TileContent.d.ts +3 -3
  516. package/lib/content-page-repository/transformPicture.js +7 -3
  517. package/lib/content-page-repository/transformPicture.js.map +1 -1
  518. package/lib/hooks/useExchangeRates.js +5 -7
  519. package/lib/hooks/useExchangeRates.js.map +1 -1
  520. package/lib/hooks/useLink.d.ts +3 -1
  521. package/lib/hooks/useLink.js +1 -1
  522. package/lib/hooks/useLink.js.map +1 -1
  523. package/lib/icons/IconName.d.ts +4 -2
  524. package/lib/icons/IconName.js +2 -0
  525. package/lib/icons/IconName.js.map +1 -1
  526. package/lib/model/HeadlineType.d.ts +17 -0
  527. package/lib/model/HeadlineType.js +2 -0
  528. package/lib/model/HeadlineType.js.map +1 -0
  529. package/lib/model/Picture.d.ts +4 -3
  530. package/lib/model/VNode.d.ts +1 -1
  531. package/lib/services/sitemap/findActiveSubItem.d.ts +1 -1
  532. package/lib/services/sitemap/findActiveSubItem.js +2 -3
  533. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  534. package/lib/types.d.ts +0 -1
  535. package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  536. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  537. package/lib/ui-kit/Breadcrumb.d.ts +1 -1
  538. package/lib/ui-kit/Button/Button.d.ts +0 -1
  539. package/lib/ui-kit/Button/Button.js +2 -2
  540. package/lib/ui-kit/Button/Button.js.map +1 -1
  541. package/lib/ui-kit/Button/Button.mobile.js +1 -1
  542. package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
  543. package/lib/ui-kit/Button/ButtonInner.js +2 -2
  544. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  545. package/lib/ui-kit/Button/ButtonProps.d.ts +3 -1
  546. package/lib/ui-kit/Button/ButtonSection.js +2 -2
  547. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  548. package/lib/ui-kit/Button/LikeButton.d.ts +1 -1
  549. package/lib/ui-kit/Button/renderArrows.d.ts +2 -4
  550. package/lib/ui-kit/Button/renderArrows.js.map +1 -1
  551. package/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  552. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  553. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  554. package/lib/ui-kit/Description/Description.d.ts +2 -2
  555. package/lib/ui-kit/Description/Description.js +1 -1
  556. package/lib/ui-kit/Description/Description.js.map +1 -1
  557. package/lib/ui-kit/Foldable/Foldable.js +4 -2
  558. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  559. package/lib/ui-kit/Foldable/useActiveHandler.d.ts +1 -1
  560. package/lib/ui-kit/Foldable/useActiveHandler.js.map +1 -1
  561. package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
  562. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  563. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  564. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  565. package/lib/ui-kit/Heading/Heading.d.ts +1 -5
  566. package/lib/ui-kit/Heading/Heading.js +8 -11
  567. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  568. package/lib/ui-kit/Heading/Heading.mobile.d.ts +1 -5
  569. package/lib/ui-kit/Heading/Heading.mobile.js +2 -5
  570. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  571. package/lib/ui-kit/Heading/HeadingProps.d.ts +20 -0
  572. package/lib/ui-kit/Heading/HeadingProps.js +2 -0
  573. package/lib/ui-kit/Heading/HeadingProps.js.map +1 -0
  574. package/lib/ui-kit/Img/Img.d.ts +0 -3
  575. package/lib/ui-kit/Img/Img.js +4 -29
  576. package/lib/ui-kit/Img/Img.js.map +1 -1
  577. package/lib/ui-kit/Img/Img.mobile.d.ts +0 -3
  578. package/lib/ui-kit/Img/Img.mobile.js +4 -30
  579. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  580. package/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  581. package/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  582. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  583. package/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  584. package/lib/ui-kit/Img/ImgInner.js +17 -0
  585. package/lib/ui-kit/Img/ImgInner.js.map +1 -0
  586. package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  587. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  588. package/lib/ui-kit/Logo/Logo.js +1 -9
  589. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  590. package/lib/ui-kit/Logo/Logo.mobile.js +2 -9
  591. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  592. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  593. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +4 -0
  594. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  595. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  596. package/lib/ui-kit/SVG.d.ts +2 -2
  597. package/lib/ui-kit/SearchBar/SearchBar.js +4 -9
  598. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  599. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +4 -8
  600. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  601. package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  602. package/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  603. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  604. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -3
  605. package/lib/ui-kit/Tabs/TabsProps.d.ts +1 -2
  606. package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
  607. package/lib/utils/url.d.ts +1 -0
  608. package/lib/utils/url.js +1 -0
  609. package/lib/utils/url.js.map +1 -1
  610. package/mobile/bundle/bundle.umd.js +143 -123
  611. package/mobile/bundle/bundle.umd.min.js +1 -1
  612. package/mobile/dist/components/Accordion/useActiveHandler.d.ts +1 -1
  613. package/mobile/dist/components/Accordion/useActiveHandler.js +4 -4
  614. package/mobile/dist/components/Accordion/useActiveHandler.js.map +1 -1
  615. package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
  616. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  617. package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +7 -26
  618. package/mobile/dist/components/BaseTile/getTileHeadingType.d.ts +1 -1
  619. package/mobile/dist/components/BaseTile/getTileHeadingType.js +3 -3
  620. package/mobile/dist/components/BaseTile/getTileHeadingType.js.map +1 -1
  621. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  622. package/mobile/dist/components/Bonus/BonusContent.d.ts +2 -3
  623. package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  624. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  625. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  626. package/mobile/dist/components/Calculator/Calculator.js +7 -7
  627. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  628. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  629. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  630. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  631. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  632. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  633. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  634. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  635. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  636. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  637. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  638. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  639. package/mobile/dist/components/Calculator/Rate.d.ts +7 -0
  640. package/mobile/dist/components/Calculator/Rate.js +6 -0
  641. package/mobile/dist/components/Calculator/Rate.js.map +1 -0
  642. package/mobile/dist/components/Calculator/constants.d.ts +13 -4
  643. package/mobile/dist/components/Calculator/constants.js +34 -5
  644. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  645. package/mobile/dist/components/Calculator/getBonus.d.ts +2 -0
  646. package/mobile/dist/components/Calculator/getBonus.js +16 -0
  647. package/mobile/dist/components/Calculator/getBonus.js.map +1 -0
  648. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  649. package/mobile/dist/components/Calculator/getDefaultMonths.js +1 -4
  650. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  651. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  652. package/mobile/dist/components/Calculator/getDefaultSum.js +1 -3
  653. package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -1
  654. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  655. package/mobile/dist/components/Calculator/getMonthlyPayment.js +10 -11
  656. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  657. package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  658. package/mobile/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  659. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  660. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  661. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  662. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  663. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  664. package/mobile/dist/components/Calculator/renderMonthsInput.js +4 -3
  665. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  666. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  667. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  668. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  669. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  670. package/mobile/dist/components/Calculator/renderRealEstateValue.js +6 -5
  671. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  672. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  673. package/mobile/dist/components/Calculator/renderWantedSumInput.js +5 -7
  674. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  675. package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  676. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  677. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  678. package/mobile/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  679. package/mobile/dist/components/Calculator/useCalculatorParams.js +12 -0
  680. package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  681. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  682. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  683. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  684. package/mobile/dist/components/Catalog/CatalogContent.d.ts +3 -4
  685. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  686. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +4 -4
  687. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  688. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
  689. package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +1 -2
  690. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  691. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  692. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  693. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  694. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  695. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  696. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  697. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  698. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  699. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  700. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  701. package/mobile/dist/components/ExchangeRateTile/renderButton.js +2 -2
  702. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  703. package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
  704. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  705. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -2
  706. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  707. package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  708. package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  709. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  710. package/mobile/dist/components/Footer/MediaButton.js +2 -1
  711. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  712. package/mobile/dist/components/Footer/TextInformation.js +2 -2
  713. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  714. package/mobile/dist/components/Footer/TextInformationLink.d.ts +8 -0
  715. package/mobile/dist/components/Footer/TextInformationLink.js +6 -0
  716. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -0
  717. package/mobile/dist/components/Gallery/Gallery.js +2 -1
  718. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  719. package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -2
  720. package/mobile/dist/components/GroupBlock/GroupBlock.js +1 -1
  721. package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -1
  722. package/mobile/dist/components/GroupBlock/GroupBlockTabs.d.ts +2 -3
  723. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +10 -8
  724. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  725. package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  726. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
  727. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  728. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  729. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  730. package/mobile/dist/components/Header/DropdownMenu.d.ts +1 -0
  731. package/mobile/dist/components/Header/DropdownMenu.js +6 -3
  732. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  733. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  734. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  735. package/mobile/dist/components/Headline/Headline.js +1 -1
  736. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  737. package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -4
  738. package/mobile/dist/components/Headline/constants.d.ts +9 -0
  739. package/mobile/dist/components/Headline/constants.js +33 -1
  740. package/mobile/dist/components/Headline/constants.js.map +1 -1
  741. package/mobile/dist/components/Insurance/Insurance.js +5 -5
  742. package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
  743. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +2 -5
  744. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  745. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  746. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  747. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  748. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  749. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  750. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  751. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -6
  752. package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
  753. package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
  754. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
  755. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
  756. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  757. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +1 -1
  758. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +3 -3
  759. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  760. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +1 -1
  761. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  762. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +2 -2
  763. package/mobile/dist/components/Placeholder/Placeholder.js +2 -4
  764. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  765. package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
  766. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -5
  767. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +3 -4
  768. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  769. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  770. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  771. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  772. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  773. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  774. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +2 -2
  775. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  776. package/mobile/dist/components/ProductTile/ProductTile.js +4 -5
  777. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  778. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -3
  779. package/mobile/dist/components/PromoTile/PromoTile.js +2 -2
  780. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  781. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +3 -3
  782. package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +4 -4
  783. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
  784. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  785. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
  786. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +3 -1
  787. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  788. package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -2
  789. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  790. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  791. package/mobile/dist/components/TextBlock/TextBlock.js +2 -1
  792. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  793. package/mobile/dist/components/Tile/Tile.js +4 -3
  794. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  795. package/mobile/dist/components/Tile/TileContent.d.ts +3 -3
  796. package/mobile/dist/content-page-repository/transformPicture.js +7 -3
  797. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  798. package/mobile/dist/hooks/useExchangeRates.js +5 -7
  799. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  800. package/mobile/dist/hooks/useLink.d.ts +3 -1
  801. package/mobile/dist/hooks/useLink.js +1 -1
  802. package/mobile/dist/hooks/useLink.js.map +1 -1
  803. package/mobile/dist/icons/IconName.d.ts +4 -2
  804. package/mobile/dist/icons/IconName.js +2 -0
  805. package/mobile/dist/icons/IconName.js.map +1 -1
  806. package/mobile/dist/model/HeadlineType.d.ts +17 -0
  807. package/{dist/ui-kit/Description/DescriptionContent.js → mobile/dist/model/HeadlineType.js} +1 -1
  808. package/mobile/dist/model/HeadlineType.js.map +1 -0
  809. package/mobile/dist/model/Picture.d.ts +4 -3
  810. package/mobile/dist/model/VNode.d.ts +1 -1
  811. package/mobile/dist/services/sitemap/findActiveSubItem.d.ts +1 -1
  812. package/mobile/dist/services/sitemap/findActiveSubItem.js +2 -3
  813. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  814. package/mobile/dist/types.d.ts +0 -1
  815. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  816. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  817. package/mobile/dist/ui-kit/Breadcrumb.d.ts +1 -1
  818. package/mobile/dist/ui-kit/Button/Button.js +1 -1
  819. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  820. package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -2
  821. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  822. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +3 -1
  823. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
  824. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  825. package/mobile/dist/ui-kit/Button/LikeButton.d.ts +1 -1
  826. package/mobile/dist/ui-kit/Button/renderArrows.d.ts +2 -4
  827. package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -1
  828. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  829. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  830. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  831. package/mobile/dist/ui-kit/Description/Description.d.ts +2 -2
  832. package/mobile/dist/ui-kit/Description/Description.js +1 -1
  833. package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
  834. package/mobile/dist/ui-kit/Foldable/Foldable.js +4 -2
  835. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  836. package/mobile/dist/ui-kit/Foldable/useActiveHandler.d.ts +1 -1
  837. package/mobile/dist/ui-kit/Foldable/useActiveHandler.js.map +1 -1
  838. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +4 -4
  839. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  840. package/mobile/dist/ui-kit/Heading/Heading.d.ts +1 -5
  841. package/mobile/dist/ui-kit/Heading/Heading.js +2 -5
  842. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  843. package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +20 -0
  844. package/mobile/dist/ui-kit/{Description/DescriptionContent.js → Heading/HeadingProps.js} +1 -1
  845. package/mobile/dist/ui-kit/Heading/HeadingProps.js.map +1 -0
  846. package/mobile/dist/ui-kit/Img/Img.d.ts +0 -3
  847. package/mobile/dist/ui-kit/Img/Img.js +4 -31
  848. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  849. package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  850. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  851. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  852. package/mobile/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  853. package/mobile/dist/ui-kit/Img/ImgInner.js +19 -0
  854. package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -0
  855. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  856. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  857. package/mobile/dist/ui-kit/Logo/Logo.js +2 -9
  858. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  859. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  860. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  861. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  862. package/mobile/dist/ui-kit/SVG.d.ts +2 -2
  863. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -7
  864. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  865. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  866. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  867. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  868. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -3
  869. package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +1 -2
  870. package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
  871. package/mobile/dist/utils/url.d.ts +1 -0
  872. package/mobile/dist/utils/url.js +3 -1
  873. package/mobile/dist/utils/url.js.map +1 -1
  874. package/mobile/lib/components/Accordion/useActiveHandler.d.ts +1 -1
  875. package/mobile/lib/components/Accordion/useActiveHandler.js +4 -4
  876. package/mobile/lib/components/Accordion/useActiveHandler.js.map +1 -1
  877. package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
  878. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  879. package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +7 -26
  880. package/mobile/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
  881. package/mobile/lib/components/BaseTile/getTileHeadingType.js +3 -3
  882. package/mobile/lib/components/BaseTile/getTileHeadingType.js.map +1 -1
  883. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
  884. package/mobile/lib/components/Bonus/BonusContent.d.ts +2 -3
  885. package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  886. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  887. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  888. package/mobile/lib/components/Calculator/Calculator.js +7 -7
  889. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  890. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  891. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  892. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  893. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  894. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  895. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  896. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  897. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  898. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  899. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  900. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  901. package/mobile/lib/components/Calculator/Rate.d.ts +7 -0
  902. package/mobile/lib/components/Calculator/Rate.js +4 -0
  903. package/mobile/lib/components/Calculator/Rate.js.map +1 -0
  904. package/mobile/lib/components/Calculator/constants.d.ts +13 -4
  905. package/mobile/lib/components/Calculator/constants.js +33 -4
  906. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  907. package/mobile/lib/components/Calculator/getBonus.d.ts +2 -0
  908. package/mobile/lib/components/Calculator/getBonus.js +13 -0
  909. package/mobile/lib/components/Calculator/getBonus.js.map +1 -0
  910. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  911. package/mobile/lib/components/Calculator/getDefaultMonths.js +1 -4
  912. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  913. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  914. package/mobile/lib/components/Calculator/getDefaultSum.js +1 -3
  915. package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -1
  916. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  917. package/mobile/lib/components/Calculator/getMonthlyPayment.js +11 -12
  918. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  919. package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  920. package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  921. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  922. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  923. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  924. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  925. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  926. package/mobile/lib/components/Calculator/renderMonthsInput.js +4 -3
  927. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  928. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  929. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  930. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  931. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  932. package/mobile/lib/components/Calculator/renderRealEstateValue.js +6 -5
  933. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  934. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  935. package/mobile/lib/components/Calculator/renderWantedSumInput.js +5 -7
  936. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  937. package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  938. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  939. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  940. package/mobile/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  941. package/mobile/lib/components/Calculator/useCalculatorParams.js +9 -0
  942. package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  943. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  944. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  945. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  946. package/mobile/lib/components/Catalog/CatalogContent.d.ts +3 -4
  947. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  948. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +4 -4
  949. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  950. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
  951. package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +1 -2
  952. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  953. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  954. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  955. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  956. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  957. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  958. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  959. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  960. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  961. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  962. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  963. package/mobile/lib/components/ExchangeRateTile/renderButton.js +2 -2
  964. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  965. package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
  966. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  967. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -2
  968. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  969. package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  970. package/mobile/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  971. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  972. package/mobile/lib/components/Footer/MediaButton.js +2 -1
  973. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  974. package/mobile/lib/components/Footer/TextInformation.js +2 -2
  975. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  976. package/mobile/lib/components/Footer/TextInformationLink.d.ts +8 -0
  977. package/mobile/lib/components/Footer/TextInformationLink.js +4 -0
  978. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -0
  979. package/mobile/lib/components/Gallery/Gallery.js +2 -1
  980. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  981. package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -2
  982. package/mobile/lib/components/GroupBlock/GroupBlock.js +1 -1
  983. package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -1
  984. package/mobile/lib/components/GroupBlock/GroupBlockTabs.d.ts +2 -3
  985. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +10 -8
  986. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  987. package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  988. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
  989. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  990. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  991. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  992. package/mobile/lib/components/Header/DropdownMenu.d.ts +1 -0
  993. package/mobile/lib/components/Header/DropdownMenu.js +6 -3
  994. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  995. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  996. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  997. package/mobile/lib/components/Headline/Headline.js +1 -1
  998. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  999. package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -4
  1000. package/mobile/lib/components/Headline/constants.d.ts +9 -0
  1001. package/mobile/lib/components/Headline/constants.js +32 -0
  1002. package/mobile/lib/components/Headline/constants.js.map +1 -1
  1003. package/mobile/lib/components/Insurance/Insurance.js +5 -5
  1004. package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
  1005. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +2 -5
  1006. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  1007. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  1008. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  1009. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  1010. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  1011. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  1012. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  1013. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -6
  1014. package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
  1015. package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
  1016. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
  1017. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
  1018. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
  1019. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +1 -1
  1020. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +3 -3
  1021. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  1022. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +1 -1
  1023. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  1024. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +2 -2
  1025. package/mobile/lib/components/Placeholder/Placeholder.js +2 -4
  1026. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  1027. package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
  1028. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -5
  1029. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +3 -4
  1030. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  1031. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  1032. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  1033. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  1034. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  1035. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
  1036. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +2 -2
  1037. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  1038. package/mobile/lib/components/ProductTile/ProductTile.js +4 -5
  1039. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  1040. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -3
  1041. package/mobile/lib/components/PromoTile/PromoTile.js +2 -2
  1042. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  1043. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +3 -3
  1044. package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +4 -4
  1045. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
  1046. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  1047. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
  1048. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +3 -1
  1049. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  1050. package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -2
  1051. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  1052. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  1053. package/mobile/lib/components/TextBlock/TextBlock.js +2 -1
  1054. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  1055. package/mobile/lib/components/Tile/Tile.js +4 -3
  1056. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  1057. package/mobile/lib/components/Tile/TileContent.d.ts +3 -3
  1058. package/mobile/lib/content-page-repository/transformPicture.js +7 -3
  1059. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  1060. package/mobile/lib/hooks/useExchangeRates.js +5 -7
  1061. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  1062. package/mobile/lib/hooks/useLink.d.ts +3 -1
  1063. package/mobile/lib/hooks/useLink.js +1 -1
  1064. package/mobile/lib/hooks/useLink.js.map +1 -1
  1065. package/mobile/lib/icons/IconName.d.ts +4 -2
  1066. package/mobile/lib/icons/IconName.js +2 -0
  1067. package/mobile/lib/icons/IconName.js.map +1 -1
  1068. package/mobile/lib/model/HeadlineType.d.ts +17 -0
  1069. package/mobile/lib/model/HeadlineType.js +2 -0
  1070. package/mobile/lib/model/HeadlineType.js.map +1 -0
  1071. package/mobile/lib/model/Picture.d.ts +4 -3
  1072. package/mobile/lib/model/VNode.d.ts +1 -1
  1073. package/mobile/lib/services/sitemap/findActiveSubItem.d.ts +1 -1
  1074. package/mobile/lib/services/sitemap/findActiveSubItem.js +2 -3
  1075. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  1076. package/mobile/lib/types.d.ts +0 -1
  1077. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  1078. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  1079. package/mobile/lib/ui-kit/Breadcrumb.d.ts +1 -1
  1080. package/mobile/lib/ui-kit/Button/Button.js +1 -1
  1081. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  1082. package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -2
  1083. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  1084. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +3 -1
  1085. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
  1086. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  1087. package/mobile/lib/ui-kit/Button/LikeButton.d.ts +1 -1
  1088. package/mobile/lib/ui-kit/Button/renderArrows.d.ts +2 -4
  1089. package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -1
  1090. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  1091. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  1092. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  1093. package/mobile/lib/ui-kit/Description/Description.d.ts +2 -2
  1094. package/mobile/lib/ui-kit/Description/Description.js +1 -1
  1095. package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
  1096. package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -2
  1097. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  1098. package/mobile/lib/ui-kit/Foldable/useActiveHandler.d.ts +1 -1
  1099. package/mobile/lib/ui-kit/Foldable/useActiveHandler.js.map +1 -1
  1100. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +4 -4
  1101. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  1102. package/mobile/lib/ui-kit/Heading/Heading.d.ts +1 -5
  1103. package/mobile/lib/ui-kit/Heading/Heading.js +2 -5
  1104. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  1105. package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +20 -0
  1106. package/mobile/lib/ui-kit/Heading/HeadingProps.js +2 -0
  1107. package/mobile/lib/ui-kit/Heading/HeadingProps.js.map +1 -0
  1108. package/mobile/lib/ui-kit/Img/Img.d.ts +0 -3
  1109. package/mobile/lib/ui-kit/Img/Img.js +4 -30
  1110. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  1111. package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  1112. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  1113. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  1114. package/mobile/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  1115. package/mobile/lib/ui-kit/Img/ImgInner.js +17 -0
  1116. package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -0
  1117. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  1118. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -2
  1119. package/mobile/lib/ui-kit/Logo/Logo.js +2 -9
  1120. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  1121. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  1122. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  1123. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  1124. package/mobile/lib/ui-kit/SVG.d.ts +2 -2
  1125. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -8
  1126. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  1127. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  1128. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  1129. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  1130. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -3
  1131. package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +1 -2
  1132. package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
  1133. package/mobile/lib/utils/url.d.ts +1 -0
  1134. package/mobile/lib/utils/url.js +1 -0
  1135. package/mobile/lib/utils/url.js.map +1 -1
  1136. package/mobile/src/components/Accordion/useActiveHandler.ts +5 -5
  1137. package/mobile/src/components/BaseTile/BaseTile.tsx +1 -1
  1138. package/mobile/src/components/BaseTile/BaseTileProps.ts +7 -30
  1139. package/mobile/src/components/BaseTile/getTileHeadingType.ts +3 -3
  1140. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -9
  1141. package/mobile/src/components/Blocks.spec.tsx +74 -0
  1142. package/mobile/src/components/Bonus/BonusContent.ts +5 -7
  1143. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  1144. package/mobile/src/components/Calculator/Calculator.tsx +10 -10
  1145. package/mobile/src/components/Calculator/CalculatorContent.ts +14 -4
  1146. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  1147. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  1148. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  1149. package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  1150. package/mobile/src/components/Calculator/Rate.tsx +22 -0
  1151. package/mobile/src/components/Calculator/constants.ts +41 -4
  1152. package/mobile/src/components/Calculator/getBonus.ts +38 -0
  1153. package/mobile/src/components/Calculator/getDefaultMonths.ts +2 -7
  1154. package/mobile/src/components/Calculator/getDefaultSum.ts +2 -5
  1155. package/mobile/src/components/Calculator/getMonthlyPayment.ts +12 -28
  1156. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  1157. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  1158. package/mobile/src/components/Calculator/renderMonthsInput.tsx +7 -10
  1159. package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  1160. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  1161. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  1162. package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  1163. package/mobile/src/components/Calculator/useCalculatorParams.ts +16 -0
  1164. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  1165. package/mobile/src/components/Catalog/CatalogContent.ts +6 -8
  1166. package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +6 -6
  1167. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +2 -2
  1168. package/mobile/src/components/ContentPage/ContentPageContext.tsx +1 -2
  1169. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  1170. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  1171. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +10 -8
  1172. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  1173. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  1174. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  1175. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  1176. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  1177. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -20
  1178. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  1179. package/mobile/src/components/Footer/MediaButton.tsx +2 -7
  1180. package/mobile/src/components/Footer/TextInformation.tsx +2 -22
  1181. package/mobile/src/components/Footer/TextInformationLink.tsx +21 -0
  1182. package/mobile/src/components/Gallery/Gallery.tsx +3 -5
  1183. package/mobile/src/components/GracePeriod/GracePeriodContent.ts +2 -2
  1184. package/mobile/src/components/GroupBlock/GroupBlock.tsx +5 -3
  1185. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +24 -25
  1186. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +3 -3
  1187. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  1188. package/mobile/src/components/Header/DropdownMenu.tsx +23 -10
  1189. package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
  1190. package/mobile/src/components/Headline/Headline.example.json +1 -0
  1191. package/mobile/src/components/Headline/Headline.tsx +1 -1
  1192. package/mobile/src/components/Headline/HeadlineContent.ts +2 -5
  1193. package/mobile/src/components/Headline/constants.ts +42 -0
  1194. package/mobile/src/components/Insurance/Insurance.tsx +15 -10
  1195. package/mobile/src/components/Insurance/InsuranceContent.ts +2 -5
  1196. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  1197. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  1198. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  1199. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +15 -10
  1200. package/mobile/src/components/LinkDocs/LinkDocs.example.json +1 -0
  1201. package/mobile/src/components/LinkDocs/LinkDocs.tsx +0 -1
  1202. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -6
  1203. package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
  1204. package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -3
  1205. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +2 -4
  1206. package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +4 -4
  1207. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +2 -2
  1208. package/mobile/src/components/PictureText/PictureTextContent.ts +2 -2
  1209. package/mobile/src/components/Placeholder/Placeholder.tsx +8 -19
  1210. package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -3
  1211. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -7
  1212. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +10 -21
  1213. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  1214. package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -6
  1215. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -5
  1216. package/mobile/src/components/ProductTile/ProductTile.example.json +1 -1
  1217. package/mobile/src/components/ProductTile/ProductTile.tsx +10 -15
  1218. package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -5
  1219. package/mobile/src/components/PromoTile/PromoTile.tsx +10 -6
  1220. package/mobile/src/components/PromoTile/PromoTileContent.ts +4 -4
  1221. package/mobile/src/components/Recommendation/RecommendationContent.ts +4 -8
  1222. package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -9
  1223. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +4 -1
  1224. package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
  1225. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +12 -14
  1226. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -1
  1227. package/mobile/src/components/Tile/Tile.example.json +0 -1
  1228. package/mobile/src/components/Tile/Tile.tsx +9 -10
  1229. package/mobile/src/components/Tile/TileContent.ts +4 -5
  1230. package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +755 -0
  1231. package/mobile/src/content-page-repository/transformPicture.ts +7 -5
  1232. package/mobile/src/hooks/useExchangeRates.ts +6 -7
  1233. package/mobile/src/hooks/useLink.ts +2 -2
  1234. package/mobile/src/icons/IconName.ts +4 -4
  1235. package/mobile/src/icons/Logo.svg +7 -0
  1236. package/mobile/src/model/HeadlineType.ts +21 -0
  1237. package/mobile/src/model/Picture.ts +5 -3
  1238. package/mobile/src/model/VNode.ts +1 -1
  1239. package/mobile/src/services/sitemap/findActiveSubItem.ts +4 -5
  1240. package/mobile/src/types.ts +0 -2
  1241. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  1242. package/mobile/src/ui-kit/Breadcrumb.tsx +1 -1
  1243. package/mobile/src/ui-kit/Button/Button.tsx +2 -2
  1244. package/mobile/src/ui-kit/Button/ButtonInner.tsx +3 -3
  1245. package/mobile/src/ui-kit/Button/ButtonProps.ts +1 -1
  1246. package/mobile/src/ui-kit/Button/ButtonSection.tsx +2 -2
  1247. package/mobile/src/ui-kit/Button/LikeButton.tsx +1 -1
  1248. package/mobile/src/ui-kit/Button/renderArrows.tsx +2 -3
  1249. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  1250. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  1251. package/mobile/src/ui-kit/Description/Description.tsx +3 -3
  1252. package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
  1253. package/mobile/src/ui-kit/Foldable/useActiveHandler.ts +1 -1
  1254. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
  1255. package/mobile/src/ui-kit/Heading/Heading.tsx +3 -13
  1256. package/mobile/src/ui-kit/Heading/HeadingProps.ts +24 -0
  1257. package/mobile/src/ui-kit/Img/Img.tsx +4 -71
  1258. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  1259. package/mobile/src/ui-kit/Img/ImgInner.tsx +37 -0
  1260. package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
  1261. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -3
  1262. package/mobile/src/ui-kit/Logo/Logo.tsx +2 -13
  1263. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  1264. package/mobile/src/ui-kit/SVG.tsx +2 -2
  1265. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
  1266. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  1267. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -4
  1268. package/mobile/src/ui-kit/Tabs/TabsProps.ts +1 -2
  1269. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
  1270. package/mobile/src/utils/url.ts +2 -0
  1271. package/package.json +4 -1
  1272. package/src/components/Accordion/useActiveHandler.ts +5 -5
  1273. package/src/components/BaseTile/BaseTile.tsx +1 -1
  1274. package/src/components/BaseTile/BaseTileProps.ts +7 -30
  1275. package/src/components/BaseTile/getTileHeadingType.ts +3 -3
  1276. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -9
  1277. package/src/components/Blocks.spec.tsx +74 -0
  1278. package/src/components/Bonus/BonusContent.ts +5 -7
  1279. package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  1280. package/src/components/Calculator/Calculator.fixture.tsx +2 -14
  1281. package/src/components/Calculator/Calculator.tsx +10 -10
  1282. package/src/components/Calculator/CalculatorContent.ts +14 -4
  1283. package/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  1284. package/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  1285. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  1286. package/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  1287. package/src/components/Calculator/Rate.tsx +22 -0
  1288. package/src/components/Calculator/constants.ts +41 -4
  1289. package/src/components/Calculator/getBonus.ts +38 -0
  1290. package/src/components/Calculator/getDefaultMonths.ts +2 -7
  1291. package/src/components/Calculator/getDefaultSum.ts +2 -5
  1292. package/src/components/Calculator/getMonthlyPayment.ts +12 -28
  1293. package/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  1294. package/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  1295. package/src/components/Calculator/renderMonthsInput.tsx +7 -10
  1296. package/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  1297. package/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  1298. package/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  1299. package/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  1300. package/src/components/Calculator/useCalculatorParams.ts +16 -0
  1301. package/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  1302. package/src/components/Catalog/CatalogContent.ts +6 -8
  1303. package/src/components/ComparisonTable/ComparisonTable.tsx +4 -6
  1304. package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +6 -6
  1305. package/src/components/ComparisonTable/ComparisonTableRows.tsx +2 -2
  1306. package/src/components/ComparisonTable/HeaderCell.tsx +0 -1
  1307. package/src/components/ContentPage/ContentPageContext.tsx +1 -2
  1308. package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  1309. package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  1310. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +10 -8
  1311. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  1312. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +9 -1
  1313. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  1314. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  1315. package/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  1316. package/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  1317. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -20
  1318. package/src/components/Footer/HorizontalNavigation.tsx +2 -20
  1319. package/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  1320. package/src/components/Footer/MediaButton.tsx +2 -7
  1321. package/src/components/Footer/TextInformation.mobile.tsx +2 -22
  1322. package/src/components/Footer/TextInformation.tsx +2 -22
  1323. package/src/components/Footer/TextInformationLink.tsx +21 -0
  1324. package/src/components/Gallery/Gallery.mobile.tsx +3 -5
  1325. package/src/components/GracePeriod/GracePeriodContent.ts +2 -2
  1326. package/src/components/GroupBlock/GroupBlock.tsx +5 -3
  1327. package/src/components/GroupBlock/GroupBlockTabs.tsx +24 -25
  1328. package/src/components/GroupBlock/GroupBlocksItem.tsx +3 -3
  1329. package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  1330. package/src/components/Header/DropdownMenu.tsx +23 -10
  1331. package/src/components/Header/Header.tsx +1 -1
  1332. package/src/components/Header/HeaderSubMenu.tsx +2 -1
  1333. package/src/components/Headline/Headline.example.json +1 -0
  1334. package/src/components/Headline/Headline.fixture.tsx +25 -0
  1335. package/src/components/Headline/Headline.mobile.tsx +1 -1
  1336. package/src/components/Headline/Headline.tsx +13 -7
  1337. package/src/components/Headline/HeadlineContent.ts +2 -5
  1338. package/src/components/Headline/constants.ts +42 -0
  1339. package/src/components/Insurance/Insurance.tsx +15 -10
  1340. package/src/components/Insurance/InsuranceContent.ts +2 -5
  1341. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  1342. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +7 -2
  1343. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  1344. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  1345. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +15 -10
  1346. package/src/components/LinkDocs/LinkDocs.example.json +1 -0
  1347. package/src/components/LinkDocs/LinkDocs.mobile.tsx +0 -1
  1348. package/src/components/LinkDocs/LinkDocs.tsx +5 -4
  1349. package/src/components/LinkDocs/LinkDocsContent.ts +3 -6
  1350. package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
  1351. package/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -3
  1352. package/src/components/MobileAppTile/MobileAppTile.tsx +4 -3
  1353. package/src/components/MobileAppTile/MobileAppTileContent.ts +2 -4
  1354. package/src/components/NavigatorTabs/NavigatorTabItem.tsx +4 -4
  1355. package/src/components/OtherProducts/OtherProductsItem.tsx +2 -2
  1356. package/src/components/PictureText/PictureTextContent.ts +2 -2
  1357. package/src/components/Placeholder/Placeholder.tsx +8 -19
  1358. package/src/components/Placeholder/PlaceholderContent.ts +2 -3
  1359. package/src/components/ProductBlock/ProductBlock.fixture.tsx +5 -5
  1360. package/src/components/ProductBlock/ProductBlock.tsx +8 -2
  1361. package/src/components/ProductBlock/ProductBlockContent.ts +4 -7
  1362. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +10 -21
  1363. package/src/components/ProductBlock/ProductBlockInner.tsx +11 -26
  1364. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  1365. package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -6
  1366. package/src/components/ProductBlock/renderBenefit.tsx +2 -4
  1367. package/src/components/ProductGallery/ProductGallery.fixture.tsx +8 -8
  1368. package/src/components/ProductGallery/ProductGalleryBlock.tsx +7 -12
  1369. package/src/components/ProductTile/ProductTile.example.json +1 -1
  1370. package/src/components/ProductTile/ProductTile.fixture.tsx +2 -6
  1371. package/src/components/ProductTile/ProductTile.tsx +10 -15
  1372. package/src/components/ProductTile/ProductTileContent.ts +2 -5
  1373. package/src/components/PromoTile/PromoTile.tsx +10 -6
  1374. package/src/components/PromoTile/PromoTileContent.ts +4 -4
  1375. package/src/components/Recommendation/RecommendationContent.ts +4 -8
  1376. package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -9
  1377. package/src/components/StepsBlock/StepsBlock.tsx +22 -19
  1378. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +4 -1
  1379. package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
  1380. package/src/components/TariffsTable/TariffsTableContent.ts +12 -14
  1381. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -1
  1382. package/src/components/TextBlock/TextBlock.tsx +1 -1
  1383. package/src/components/Tile/Tile.example.json +0 -1
  1384. package/src/components/Tile/Tile.tsx +9 -10
  1385. package/src/components/Tile/TileContent.ts +4 -5
  1386. package/src/components/__snapshots__/Blocks.spec.tsx.snap +755 -0
  1387. package/src/content-page-repository/transformPicture.ts +7 -5
  1388. package/src/hooks/useExchangeRates.ts +6 -7
  1389. package/src/hooks/useLink.ts +2 -2
  1390. package/src/icons/IconName.ts +4 -1
  1391. package/src/icons/Logo.svg +7 -0
  1392. package/src/model/HeadlineType.ts +21 -0
  1393. package/src/model/Picture.ts +5 -3
  1394. package/src/model/VNode.ts +1 -1
  1395. package/src/services/sitemap/findActiveSubItem.ts +4 -5
  1396. package/src/types.ts +0 -2
  1397. package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  1398. package/src/ui-kit/Breadcrumb.tsx +1 -1
  1399. package/src/ui-kit/Button/Button.mobile.tsx +2 -2
  1400. package/src/ui-kit/Button/Button.tsx +2 -2
  1401. package/src/ui-kit/Button/ButtonInner.tsx +3 -3
  1402. package/src/ui-kit/Button/ButtonProps.ts +1 -1
  1403. package/src/ui-kit/Button/ButtonSection.tsx +2 -2
  1404. package/src/ui-kit/Button/LikeButton.tsx +1 -1
  1405. package/src/ui-kit/Button/renderArrows.tsx +2 -3
  1406. package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  1407. package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  1408. package/src/ui-kit/Description/Description.tsx +3 -3
  1409. package/src/ui-kit/Foldable/Foldable.tsx +7 -5
  1410. package/src/ui-kit/Foldable/useActiveHandler.ts +1 -1
  1411. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +4 -6
  1412. package/src/ui-kit/HeaderItem/HeaderItem.tsx +2 -2
  1413. package/src/ui-kit/Heading/Heading.mobile.tsx +3 -13
  1414. package/src/ui-kit/Heading/Heading.tsx +9 -19
  1415. package/src/ui-kit/Heading/HeadingProps.ts +24 -0
  1416. package/src/ui-kit/Img/Img.mobile.tsx +4 -71
  1417. package/src/ui-kit/Img/Img.tsx +6 -60
  1418. package/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  1419. package/src/ui-kit/Img/ImgInner.tsx +37 -0
  1420. package/src/ui-kit/Img/ImgProps.ts +1 -0
  1421. package/src/ui-kit/InputRange/InputRangeProps.ts +1 -3
  1422. package/src/ui-kit/Logo/Logo.mobile.tsx +2 -13
  1423. package/src/ui-kit/Logo/Logo.tsx +5 -11
  1424. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +26 -0
  1425. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  1426. package/src/ui-kit/SVG.tsx +2 -2
  1427. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -41
  1428. package/src/ui-kit/SearchBar/SearchBar.tsx +3 -43
  1429. package/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  1430. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -4
  1431. package/src/ui-kit/Tabs/TabsProps.ts +1 -2
  1432. package/src/ui-kit/TopItem/TopItem.tsx +1 -1
  1433. package/src/utils/url.ts +2 -0
  1434. package/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  1435. package/dist/components/Calculator/getCalculatorParams.js +0 -12
  1436. package/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  1437. package/dist/components/Calculator/renderRate.d.ts +0 -8
  1438. package/dist/components/Calculator/renderRate.js +0 -9
  1439. package/dist/components/Calculator/renderRate.js.map +0 -1
  1440. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  1441. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -14
  1442. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  1443. package/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  1444. package/dist/hooks/useCreditCalculatorData.js +0 -15
  1445. package/dist/hooks/useCreditCalculatorData.js.map +0 -1
  1446. package/dist/ui-kit/Description/DescriptionContent.d.ts +0 -4
  1447. package/dist/ui-kit/Description/DescriptionContent.js.map +0 -1
  1448. package/dist/ui-kit/Heading/HeadingContent.d.ts +0 -15
  1449. package/dist/ui-kit/Heading/HeadingContent.js.map +0 -1
  1450. package/dist/ui-kit/SearchBar.mobile.d.ts +0 -2
  1451. package/dist/ui-kit/SearchBar.mobile.js +0 -14
  1452. package/dist/ui-kit/SearchBar.mobile.js.map +0 -1
  1453. package/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  1454. package/lib/components/Calculator/getCalculatorParams.js +0 -9
  1455. package/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  1456. package/lib/components/Calculator/renderRate.d.ts +0 -8
  1457. package/lib/components/Calculator/renderRate.js +0 -6
  1458. package/lib/components/Calculator/renderRate.js.map +0 -1
  1459. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  1460. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -12
  1461. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  1462. package/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  1463. package/lib/hooks/useCreditCalculatorData.js +0 -12
  1464. package/lib/hooks/useCreditCalculatorData.js.map +0 -1
  1465. package/lib/ui-kit/Description/DescriptionContent.d.ts +0 -4
  1466. package/lib/ui-kit/Description/DescriptionContent.js +0 -2
  1467. package/lib/ui-kit/Description/DescriptionContent.js.map +0 -1
  1468. package/lib/ui-kit/Heading/HeadingContent.d.ts +0 -15
  1469. package/lib/ui-kit/Heading/HeadingContent.js +0 -2
  1470. package/lib/ui-kit/Heading/HeadingContent.js.map +0 -1
  1471. package/lib/ui-kit/SearchBar.mobile.d.ts +0 -2
  1472. package/lib/ui-kit/SearchBar.mobile.js +0 -12
  1473. package/lib/ui-kit/SearchBar.mobile.js.map +0 -1
  1474. package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  1475. package/mobile/dist/components/Calculator/getCalculatorParams.js +0 -12
  1476. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  1477. package/mobile/dist/components/Calculator/renderRate.d.ts +0 -8
  1478. package/mobile/dist/components/Calculator/renderRate.js +0 -9
  1479. package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
  1480. package/mobile/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  1481. package/mobile/dist/hooks/useCreditCalculatorData.js +0 -15
  1482. package/mobile/dist/hooks/useCreditCalculatorData.js.map +0 -1
  1483. package/mobile/dist/ui-kit/Description/DescriptionContent.d.ts +0 -4
  1484. package/mobile/dist/ui-kit/Description/DescriptionContent.js.map +0 -1
  1485. package/mobile/dist/ui-kit/Heading/HeadingContent.d.ts +0 -15
  1486. package/mobile/dist/ui-kit/Heading/HeadingContent.js.map +0 -1
  1487. package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  1488. package/mobile/lib/components/Calculator/getCalculatorParams.js +0 -9
  1489. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  1490. package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
  1491. package/mobile/lib/components/Calculator/renderRate.js +0 -6
  1492. package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
  1493. package/mobile/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  1494. package/mobile/lib/hooks/useCreditCalculatorData.js +0 -12
  1495. package/mobile/lib/hooks/useCreditCalculatorData.js.map +0 -1
  1496. package/mobile/lib/ui-kit/Description/DescriptionContent.d.ts +0 -4
  1497. package/mobile/lib/ui-kit/Description/DescriptionContent.js +0 -2
  1498. package/mobile/lib/ui-kit/Description/DescriptionContent.js.map +0 -1
  1499. package/mobile/lib/ui-kit/Heading/HeadingContent.d.ts +0 -15
  1500. package/mobile/lib/ui-kit/Heading/HeadingContent.js +0 -2
  1501. package/mobile/lib/ui-kit/Heading/HeadingContent.js.map +0 -1
  1502. package/mobile/src/components/Calculator/getCalculatorParams.ts +0 -18
  1503. package/mobile/src/components/Calculator/renderRate.tsx +0 -22
  1504. package/mobile/src/hooks/useCreditCalculatorData.ts +0 -20
  1505. package/mobile/src/ui-kit/Description/DescriptionContent.ts +0 -4
  1506. package/mobile/src/ui-kit/Heading/HeadingContent.ts +0 -17
  1507. package/src/components/Calculator/getCalculatorParams.ts +0 -18
  1508. package/src/components/Calculator/renderRate.tsx +0 -22
  1509. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +0 -32
  1510. package/src/hooks/useCreditCalculatorData.ts +0 -20
  1511. package/src/ui-kit/Description/DescriptionContent.ts +0 -4
  1512. package/src/ui-kit/Heading/HeadingContent.ts +0 -17
  1513. package/src/ui-kit/SearchBar.mobile.tsx +0 -45
@@ -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";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:a,...l}={})=>{const r=Object.assign({},l,a?{innerHTML:a.__html}:{});return e(t,r,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),a=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:a,...l}=t||{},r=n?.slots?.default,i=a||r&&r();return e(Object.assign(l,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const r="likesToken";const i=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},s=l((({anchor:e,className:t,context:a,children:l,Tag:r="section"})=>{const{IntersectionObserverTag:s}=a;return e?n(s,{Tag:r,className:t,observerCallback:i,observerOptions:{threshold:1},anchor:e,children:l}):n(r,{className:t,children:l})})),o={h1:"text-title-xl tracking-[-0.3px]",h2:"text-title-lg",h3:"text-title",h4:"text-title-sm",h5:"text-title-xs",h6:"text-title-2xs tracking-[0.2px]"},c=l((e=>{const{className:t="",headingType:a,title:l,as:r}=e;if(!a)return;return n(r||a,{className:`font-sans m-0 ${o[a]} ${t}`,children:l})}));var d,m;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(d||(d={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(m||(m={}));const h=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 ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},x={normal:"text-primary-main",black:"text-black",white:"text-black invert"},u=l((({className:e="",imageClassName:t="",name:l="",alt:r=`Иконка ${m[l]||l}`,title:i=r,iconVersion:s="normal",asSVG:o,...c})=>{const d=`${h.CDN||""}icons/${l}.svg`;return o?a("svg",{className:e,...c,"aria-hidden":"true",children:[i?n("title",{children:i}):null,r?n("desc",{children:r}):null,n("use",{className:`${x[s]} ${t}`,href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):n("img",{className:e,src:d,alt:r,title:i,...c,"aria-hidden":"true"})}));function p(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const g=l((({className:e="",image:t,imageClassName:a="",...l})=>{if(!t)return null;const r="string"==typeof t?t:t.icon;return r||""===r?r.length?n(u,{className:e,imageClassName:a,iconVersion:p(t),name:r,...l}):null:n(b,{className:e,imageClassName:a,image:t})})),b=l((({className:e="",image:t,imageClassName:l=""})=>t?a("picture",{className:`flex-none ${e}`,children:[t?.sources?.length?t.sources.map((({src:e,format:t,media:a,size:l},r)=>n("source",{srcSet:e,type:N(t),media:a,...l},`${r}_${e}`))):null,f(t,l)]}):null)),f=(e,t="")=>{const a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:t,alt:l,title:a,...e.size})};function N(e){return e?`image/${String(e)}`:void 0}function v(e){return e?e.filter(Boolean).join(" "):""}const y={left:"text-left",center:"text-center",right:"text-right"},w={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"}},I=l((({bgColorHeadline:e="transparent",align:t="left",className:l="",title:r,description:i,headingType:o="h2",...d})=>{const m=w[e];return a(s,{className:`p-[50px] flex flex-col gap-4 ${m.background} ${l}`,...d,children:[r?n(c,{headingType:o,className:`text-primary-text ${m.text} ${y[t]}`,title:r}):null,i?n("p",{className:`text-base ${m.text} ${y[t]}`,children:i}):null]})})),C=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:r,doc:i,icon:s})=>{const{text:o,fileSize:c,...d}=i;return a("a",{className:e,role:"link",...d,children:[s?n(g,{className:t,image:s,width:"24px",height:"24px",asSVG:!0}):null,o?a("span",{className:l,children:[o,n("span",{className:r,children:d?.href&&k(S(d.href),c)})]}):null]})})),k=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),S=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},$=l((({className:e="",doc:t,icon:a})=>n(C,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center font-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:a}))),T=l((({className:e,documents:t,columnsMode:a="double",icon:l})=>t?.length?n("div",{className:e,role:"list",children:t.map(((e,t)=>n("div",{className:"double"===a?"basis-[calc(50%-20px)]":"",role:"listitem",children:n($,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:l})},String(t))))}):null)),D={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},B=l((({context:e,className:t="",title:l,description:r,align:i="center",documents:o,icon:c={icon:"DocIcon"},columnsMode:d="double",...m})=>a(s,{context:e,className:`font-sans text-primary-text p-[50px] bg-white ${t}`,...m,children:[n(I,{className:"!p-0",title:l,description:r,context:e,align:i,headingType:"h3"}),n(T,{className:`mt-8 ${D[d]}`,columnsMode:d,documents:o,icon:c})]}))),M={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},A=l((({className:e="",title:t,image:l,benefits:r,version:i="primary",directionRight:o=!1,...d})=>a(s,{className:`relative font-sans p-14 ${M[i]} ${e}`,...d,children:[n(c,{headingType:"h2",className:"text-center",title:t}),a("div",{className:"flex justify-center mt-9",children:[l?.src&&n(g,{className:o?"order-2 ml-6":"mr-6",image:l}),r?.length?n("div",{className:"flex flex-col",children:r.map(((e,t)=>function(e,t,l){return a("div",{className:"flex flex-row mb-8",children:[e.icon?n(g,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",image:e.icon,width:"48",height:"48",asSVG:!0}):null,a("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e?.label?n("div",{className:"font-medium text-xl-light m-0 "+("primary"===l?"text-primary-text":""),children:e.label}):null,e?.description?n("div",{className:"font-normal text-sm "+("primary"===l?"text-secondary-text":""),children:e.description}):null]})]},String(t))}(e,t,i)))}):null]})]})));const R=e=>e?.includes("//"),P=e=>(e||"").replace(/\/?\?.*/,""),V=e=>{if(!e||!R(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t},L=e=>{if(!e||!R(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var _=Object.freeze({__proto__:null,isURL:R,withoutQuery:P,getOrigin:V,getHash:L});const j="/mobile",G=(e,t)=>{if(!e)return e;const n=V(t?.href);return n?e.replace(n,"")||"/":e},U=e=>e;function O({router:e,handlerDecorator:t=U},n){const a=((e,t)=>{if(!e)return e;const n=G(e,t)||"",a=t?.pathname.startsWith(j);return a&&!R(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!R(a),r=!n.target||"_self"===n.target;l&&r&&(t.preventDefault(),e.push(a))}),n)}}const W=l((({text:e,href:t,target:a,onClick:l,className:r="",children:i})=>t?n("a",{className:`no-underline ${r}`,href:t,target:a,onClick:l,children:n("span",{className:r,children:e||i})}):n("span",{className:r,children:e||i})));function F(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const E=l((e=>{const{text:t,aboveText:l,appendLeft:r,appendRight:i}=e;return a("div",{className:H(e),children:[r||null,Z(e)?a("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:l}),n("div",{className:"text-base text-left",children:t})]}):null,i||null]})})),H=e=>{const{version:t,aboveText:n,rounded:a}=e;if("link"===t)return"";const l="px-9 gap-2 "+(n?"py-2":"py-4");return["flex items-center justify-center",Z(e)?l:"h-12 w-12",a?"rounded-full":""].join(" ")},Z=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),z={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},J={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},X="text-center font-sans select-none",q=l((e=>{const{text:t,aboveText:a,appendLeft:l,appendRight:r,children:i,disabled:s,rounded:o,...c}=e,d=i??n(E,{text:t,aboveText:a,appendLeft:l,appendRight:r,rounded:o});return n(s?Q:K,{rounded:o,...c,children:d})})),K=l((({className:e="",ariaLabel:t,version:a="none",rounded:l,href:r,target:i,children:s,onClick:o,...c})=>n("a",{className:`${X} inline-block cursor-pointer no-underline ${z[a]||""} ${l?"rounded-full":"rounded-md"} ${e}`,href:r,target:i,onClick:o,"aria-label":t,role:r?"link":"button",...c,children:s}))),Q=l((({className:e,children:t,ariaLabel:a,version:l="none",rounded:r})=>n("div",{role:"button","aria-disabled":"true","aria-label":a,tabIndex:"-1",className:`inline-block ${X} ${J[l]||""} ${r?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),Y=l((({context:e,className:t="",buttons:a})=>{const{handlerDecorator:l}=e,r=e.useRouter();return a?.length?n("div",{className:t,children:a.map(((e,t)=>function({icon:e,iconRight:t,...a},l){if(!a?.text)return;return n(q,e?{appendLeft:n(g,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:n(g,{image:t,width:"24",height:"24",asSVG:!0}),...a}:{...a},String(l))}(O({router:r,handlerDecorator:l},e),t)))}):null}));const ee=l((e=>{const{className:t="",description:a}=e;return n("div",{className:`font-normal text-base ${t}`,children:a})})),te={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},ne={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ae=l((({className:e="",isDotted:t=!0,children:l,version:r="primary"})=>a("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:le(r)}):null,n("span",{children:l})]}))),le=e=>`${te[e]} ${ne[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,re={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},ie=l((e=>{const{className:t="",itemClassName:a,isDotted:l,items:r,version:i="primary"}=e;return n("section",{className:`${re[i]} ${t}`,role:"list",children:r?.length?r.map(((e,t)=>n(ae,{className:a,isDotted:l,version:i,children:e},String(t)))):null})})),se=l((({className:e="",title:t,children:l,buttons:r,image:i})=>a("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,a("div",{className:"flex grow w-full justify-between",children:[a("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:l}),r?n("div",{children:r}):null]}),i]})]}))),oe={primary:"text-primary-text",secondary:"text-white"},ce={primary:"text-secondary-text",secondary:"text-white"};function de(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${n}`}const me=l((({className:e="",context:t,title:l,headingType:r="h2",description:i,benefits:s,benefitsVersion:o="normal",buttons:c,image:d,items:m,version:h="primary",isDotted:x=!0,textBlockClassName:u=""})=>{const p="secondary"===h?"text-white":"text-primary-text";return a("div",{className:`flex grow justify-between items-stretch ${e}`,children:[n("div",{className:`flex flex-col ${u}`,children:a(se,{context:t,title:he(l,r),buttons:xe(t,c),children:[i?n(ee,{className:`mt-4 max-w-[600px] text-md font-light ${p}`,description:i}):null,s?.filter((e=>e.label))?.length?n("div",{className:"flex gap-6 mt-6",children:s.map(((e,t)=>function({benefit:e,version:t="primary",benefitsVersion:l="normal"},r){const i="white"===l||"secondary"===t;return a("div",{className:"flex gap-4 items-center",children:[e.icon?n(g,{className:de(t,l),image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,a("div",{className:"flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]",children:[n("div",{className:`text-xl-light m-0 ${oe[t]}`,children:e.label}),e.description?n("div",{className:`font-light text-m-md ${ce[t]}`,children:e.description}):null]})]},String(r))}({benefit:e,version:h,benefitsVersion:o},t)))}):null,m?.length?n(ie,{className:"mt-5 text-title-2xs font-light",items:m,itemClassName:"mb-[7px]",version:h,isDotted:x}):null]})}),d?.src&&n(g,{className:"mt-[-50px]",image:d})]})})),he=(e,t)=>e?n(c,{headingType:t,title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,xe=(e,t)=>t?.length?n(Y,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null;function ue(e,t,l){const r="primary"===t?"white":"black",i=e?.icon||{icon:"ArrowLeftIcon"};return a("div",{className:`flex items-center ${l}`,children:[n(q,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:e?.text,href:e?.href,children:n(g,{className:"w-4 h-4",image:{...i,iconVersion:r},asSVG:!0})}),e?.text?n("span",{className:"text-m-md font-light",children:e.text}):null]})}const pe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ge={primary:"text-secondary-text",secondary:"text-white/80"},be=l((e=>{const{context:t,className:l="",breadcrumbs:r,backwardButton:i,version:o="primary",...c}=e,d=t.useRouter(),{handlerDecorator:m}=t;return a(s,{context:t,className:`font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${pe[o]} ${l}`,...c,children:[i?.text?ue(i,o,"mb-10 -mt-2.5"):null,r?.length?n("div",{className:"text-xs mb-6",children:F(n("span",{className:`mx-2 ${ge[o]}`,children:"/"}))(r.map(((e,t)=>n(W,{...O({router:d,handlerDecorator:m},{className:ge[o],...e})},String(t)))))}):null,n(me,{context:t,version:o,...c})]})})),fe={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"}},Ne=l((({title:e,description:t,blockVersion:l="primary",iconVersion:r,image:i,className:o,...c})=>{const d=fe[l];return a(s,{className:`font-sans px-9 py-4 flex ${d.background} ${o||""}`,...c,children:["small"===r?ve(d.icon):null,"big"===r?ye(i):null,a("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null]})]})}));function ve(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function ye(e){return e?.src?n(g,{className:"pt-0.5 pr-3",image:e}):null}const we=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Ie(e=""){const t=we(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Ce(e=""){const t=we(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ke={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Se=l((e=>{const{context:t,title:l,headingType:r="h3",description:i,items:o,children:d,buttons:m,image:h,isDotted:x=!0,className:u="",version:p="primary",...b}=e;return n(s,{context:t,className:`overflow-hidden font-sans p-9 pr-3 box-border ${u} ${ke[p]} ${Ce(u)} ${Ie(u)} `,...b,children:a(se,{context:t,title:l?n(c,{headingType:r,as:"h3",title:l,className:`whitespace-pre-wrap max-w-[600px] ${l?"mb-3":""}\n ${"primary"===p?"text-primary-text":""}`}):null,buttons:m?.length?n(Y,{context:t,buttons:m.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-9 gap-3"}):null,image:h?.src&&n(g,{className:"mt-auto ml-7",image:h}),children:[i?n(ee,{className:"max-w-[600px] text-title-new-sm font-light",description:i}):null,d,$e(o,p,x)]})})}));function $e(e,t,a){return e?.length?n(ie,{items:e,isDotted:a,itemClassName:"text-title-2xs font-light mt-2",version:"primary"===t?"tile":"tile-white"}):null}const Te={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},De=l((({context:e,className:t="",title:l,headingType:r="h3",description:i,additionalDescription:o,benefits:d,buttons:m,image:h,version:x="primary",...u})=>a(s,{context:e,className:`bg-white overflow-hidden text-primary-text font-sans p-9 box-border min-h-[364px] relative justify-between grid ${t} ${Te[x]} ${Ce(t)} ${Ie(t)} `,...u,children:[a("div",{className:"z-[1]",children:[l?n(c,{headingType:r,as:"h3",title:l,className:"whitespace-pre-wrap text-h4"}):null,i?n(ee,{className:"mt-2 text-md font-light",description:i}):null,Be(d||[],x),o?Ae(o,x):null]}),m?.length?n(Y,{context:e,buttons:m,className:"flex self-end mt-5 gap-4 z-[1]"}):null,h?.src?n(g,{className:"absolute right-0 bottom-0",image:h}):null]})));function Be(e,t){return a("div",{className:"flex mt-4",children:[e.length?n("div",{className:"mr-6 gap-2.5 text-title-2xs",children:e.map(Me)}):null,e.length?n("div",{className:"pt-1 text-m",children:e.map(((e,a)=>function(e,t,a="primary"){return n("div",{className:`${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[a]}`,children:e.description},String(t))}(e,a,t)))}):null]})}function Me(e,t){return n("div",{className:""+(t?"mt-2.5":""),children:e.label},String(t))}function Ae(e,t="primary"){return n("div",{className:`text-m mt-2.5 ${{primary:"text-secondary-text",secondary:"text-white"}[t]}`,children:e})}const Re=l((({className:e,disabled:t,...a})=>n(q,{rounded:!0,className:`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,...a,children:n(g,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},width:"16",height:"16",asSVG:!0})})));function Pe({handler:e,isShown:t,btnClass:l,className:r="",isDisabled:i=!1}){return a("div",{children:[t[0]||i?n(Re,{className:`absolute z-10 ${l[0]} ${r}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||i?n(Re,{className:`absolute z-10 rotate-180 ${l[1]} ${r}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const Ve={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Le={normal:3,mini:4},_e={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},je={normal:380,mini:276},Ge=l((({title:e,description:t,image:l,items:r,button:i,version:s,isDotted:o=!0})=>{const c=function(e){return`text-xl-light m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(s);return a("div",{className:"h-full flex flex-col justify-between text-center",children:[a("div",{children:[l?.src?n("div",{className:"flex justify-center",children:n(g,{className:"mb-6",image:l})}):null,e?Oe(e,c):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,r?.length?We(r,o,s):null]}),i?.text?Ue(i):null]})}));function Ue(e){return n(q,{className:"mt-6 w-full",appendLeft:e.icon&&n(g,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Oe(e,t){return n("div",{className:`text-xl-light m-0 ${t}`,children:e})}function We(e,t,a="primary"){return n(ie,{className:"max-w-[308px] mt-2 text-sm "+("primary"===a?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:a})}const Fe=l((({context:e,title:t,description:l,cards:r=[],version:i="normal",activeCardIndex:s})=>a("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),a("div",{className:"flex flex-col items-center mb-8",children:[t?n(c,{headingType:"h2",className:"text-center",title:t}):null,l?n("div",{className:"font-light text-md max-w-[600px] mt-2.5",children:l}):null]}),n("div",{className:`flex ${r?.length<=Le[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${s*je[i]}px)`},role:"list",children:r?.map(((t,a)=>function({card:e,version:t},a){return n("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${_e[t]} ${Ve[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Ge,{...e})},String(a))}({card:t,version:i,context:e},a)))})]})));const Ee=l((({context:e,cards:t=[],className:l="",version:r="normal",...i})=>{const[o,c]=e.useState(0),d=t?.length>Le[r],m=d&&t?.length-o>Le[r],h=d&&o>0;return a(s,{context:e,className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${l}`,...i,children:[n(Fe,{context:e,cards:t,version:r,activeCardIndex:o,...i}),Pe({handler:[()=>c(o-1),()=>c(o+1)],isShown:[h,m],btnClass:["left-8","right-8"],className:"top-1/2"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]})})),He=l((e=>n(Ee,{...e,version:"normal"}))),Ze=l((e=>n(Ee,{...e,version:"mini"}))),ze=l((({className:e="",documents:t,...a})=>n(s,{className:`font-sans bg-white mt-[10px] ${e}`,...a,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Je(t):null})}))),Je=e=>e.map(((e,t)=>{const{text:a,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:a||null})},`list_item_${String(t)}`)})),Xe={Headline:I,LinkDocs:B,TextBlock:Ne,PictureText:A,ProductBlock:be,Tile:Se,ProductTile:De,Gallery:He,MiniGallery:Ze,LinkList:ze},qe=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Ke({context:t,className:n})):null,Ke=({context:e,className:t})=>(a,l)=>{const r=a?.blockListType;if(!r||!(r in Xe))return null;const{style:i,...s}=a,o=v(i);return n(Xe[r],{className:`${t} ${o}`,context:e,...s},`block_${l}`)},Qe=l((({blocks:e,context:t})=>n("div",{className:"grid grid-cols-12 transition-all duration-300 max-h-0 overflow-hidden",children:qe({context:t,blocks:e,className:"!p-0 mb-5"})}))),Ye=l((({label:e,isExpanded:t,blocks:l,context:r})=>{const{isActive:i,hasContent:s,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[a,l]=e.useState(n),r=t?.length;return{isActive:a,hasContent:r,icon:a?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!r)return;l(!a);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:r,blocks:l,initialState:t});return a("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[a("button",{className:`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans\n ${s?"group cursor-pointer":""}\n `,onClick:c,children:[n("span",{className:"text-xl-light pr-2.5 font-medium",children:e}),s?n(g,{image:o,className:"text-primary-main",width:"24",height:"24",asSVG:!0}):null]}),s?n(Qe,{isExpanded:i,blocks:l,context:r}):null]})})),et={left:"text-left",center:"text-center",right:"text-right"},tt=l((({title:e,description:t,accordionItems:l,context:r,className:i="",accordionAlignTitle:o="center",...d})=>a(s,{context:r,className:`p-[50px] font-sans bg-white text-primary-text ${i}`,...d,children:[e?n(c,{headingType:"h4",className:`mb-2.5 ${et[o]}`,title:e}):null,t?n("div",{className:"mb-2.5 text-base",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Ye,{...e,context:r},`AccordionItem${t}`)))}):null]}))),nt=l((({className:e="",headingType:t="h2",title:l,benefitList:r,...i})=>a(s,{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e}`,...i,children:[l?n(c,{headingType:t,as:"h2",className:"max-w-[47rem] text-center",title:l}):null,r?.length?at(r):null]}))),at=e=>n("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-9",children:e.map(lt)}),lt=(e,t)=>{const l=e?.description||void 0;return a("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-[46px]",children:[e?.icon?n(g,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px] mr-5",image:e.icon,width:"70",height:"70"}):null,a("div",{children:[e?.label?n("h3",{className:"font-medium text-xl-light m-0",children:e.label}):null,rt(l)]})]},String(t))},rt=e=>{const t=e?e?.benefitType:null;return t&&e?n("div",{className:"font-light text-base text-secondary-text mt-2",children:"list"===t?st(e):it(e)}):null},it=e=>e?e.name:null,st=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?n("ul",{className:t,children:e.items.map(((e,t)=>n("li",{children:e},`benefitListItem-${t}`)))}):null},ot=l((e=>{const{className:t="",title:l,description:r,bonusItems:i,...o}=e;return n(s,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:a("div",{className:"container",children:[l?n(c,{headingType:"h3",className:"text-center",title:l}):null,r?n("div",{className:"text-md font-light text-center mt-[10px]",children:r}):null,n("div",{className:"flex flex-wrap w-full mt-9",children:i?i.map(((e,t)=>n("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0",children:a("div",{className:"flex justify-between w-full",children:[a("div",{className:"mr-4",children:[n("div",{className:"text-title-sm",children:e.title}),n("div",{className:"text-md font-light mt-[14px] max-w-[488px]",children:e.description})]}),e.bonusCount?a("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[n("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),n("span",{className:"text-[44px] bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})}));function ct(e=""){const t=we(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const dt=l((({className:e="",title:t,subtitle:l,bonusBenefits:r,...i})=>a(s,{className:`font-sans text-primary-text bg-white p-50 flex flex-col text-center ${e}`,...i,children:[t?n(c,{headingType:"h3",className:"mb-[10px]",title:t}):null,l?n("span",{className:"text-md font-normal",children:l}):null,r?.length?n("div",{className:`grid gap-1 ${ct(e)}`,children:r.map(mt)}):null]}))),mt=(e,t)=>a("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?n(g,{className:"h-[180px] w-[160px] min-w-[160px] min-h-[160px]",image:e.icon,width:"160",height:"180"}):null,n("div",{children:e?.label?n("span",{className:"title-2xs m-0",children:e.label}):null})]},String(t));function ht(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),xt);return n||{}}async function xt(e){const t=await fetch(e);return await t.json()}const ut=l((({className:e,viewBox:t,fill:a="none",width:l,height:r,paths:i,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:a,width:l,height:r,children:i.map((({d:e,fill:t,...a},l)=>n("path",{d:e,fill:t||"currentColor",...s,...a},l)))}))),pt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],gt=l((({text:e,checked:t,onChange:l,className:r})=>n("div",{className:r,children:a("label",{className:"flex items-center cursor-pointer relative",children:[n("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{l(e.target.checked)},checked:t}),n(ut,{paths:pt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?n("span",{className:"font-sans ml-3 text-m-base cursor-pointer",children:e}):null]})}))),bt=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),ft=l((({title:e,value:t,postfix:l="",prefix:r,className:i=""})=>a("div",{className:`mb-5 ${i}`,children:[e?n("div",{className:"text-base font-light",children:e}):null,t?a("div",{className:"text-title font-normal",children:[r," ",bt(Math.round(t))," ",l]}):null]}))),Nt=3e4,vt=3e6,yt=Math.round(41.5),wt=l((({className:e,title:t,items:l=[],min:r=1,max:i=100,step:s=1,value:o=r,onChange:c})=>{const d=e=>{if(!c)return;const t=Number(e.replace(/\D/g,""));c(t)},m={backgroundSize:`${(100*(o-r)/(i-r)).toFixed(2)}% 100%`};return a("div",{className:e,children:[a("label",{className:"block relative",children:[t?n("span",{className:"text-base text-secondary-text pl-4",children:t}):null,n("input",{className:"m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text",value:bt(o),onChange:e=>d(e.target.value),onBlur:()=>{c&&(o<r&&c(r),o>i&&c(i))}}),n("div",{className:"absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]",children:n("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:r,max:i,step:s,value:o,onChange:e=>d(e.target.value),style:m})})]}),n("div",{className:"flex justify-between my-3",children:l.map(((e,t)=>n("span",{className:"text-sm leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})}));function It(e){const{title:t,className:a="",calculatorParams:l,moneyValue:r,defaultSum:i,setMoneyValue:s,isShowItems:o=!0}=e,c=l?.minSum||Nt,d=l?.maxSum||vt,m=[`От ${bt(c)} ₽`,`До ${bt(d)} ₽`];return n(wt,{className:a,title:t,items:o?m:[],min:c,max:d,step:1e3,value:r||i,onChange:s})}const Ct=10.2,kt=e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||Ct:t?.rateWithoutInsurance||Ct:Ct},St=e=>{const{tableRows:t,isAnnuity:n=!1}=e;if(!t)return{};return t.find((e=>e.isAnnuity===n))||{}},$t=e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3,Tt=e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):yt,Dt=(e,t,n)=>Math.max(t,Math.min(e,n));function Bt(e){const{title:t,minMonths:a,maxMonths:l,monthsValue:r,defaultMonths:i,setMonthsValue:s}=e,o=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return n(wt,{className:"mt-6",title:t,items:[`От ${o(a)}`,`До ${o(l)}`],min:a,max:l,step:1,value:r||i,onChange:s})}function Mt(e,t){return t?.length?n(Y,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}function At({rate:e,title:t,sup:l,className:r=""}){const i=String(e).replace(".",",");return a("div",{children:[n("div",{className:"text-sm font-light ml-3",children:t}),a("div",{className:"flex justify-start",children:[n("span",{className:`calc-rate-text font-mohave text-title-huge pr-4 mt-[-16px] ${r}`,children:i}),l?n("span",{className:"calc-rate-text text-[65px] leading-[75px]",children:l}):""]})]})}const Rt=l((({context:e,className:t="",buttons:l})=>{const[r,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,d]=e.useState(!1),[m,h]=e.useState(!1),[x,u]=e.useState(!1),p=ht(e.useAsyncData,"directoryName").rows,g=St({tableRows:p,isAnnuity:c}),b=$t(g),f=Tt(g),N=g?.minMonths||1,v=g?.maxMonths||84,y=kt({calculatorParams:g,isInsurance:x}),w=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=Dt(l,t.minSum||Nt,t.maxSum||vt);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,r)-1))}return i/r+i*(Number(a)/12)})({calculatorParams:g,paymentType:"annuity",rate:y,sum:r||b,months:s||f});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[It({title:"Сумма кредита, ₽",calculatorParams:g,moneyValue:r,defaultSum:b,setMoneyValue:i}),Bt({title:"Сумма кредита, ₽",minMonths:N,maxMonths:v,monthsValue:s,defaultMonths:f,setMonthsValue:o}),a("div",{className:"pt-7",children:[n(gt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:d}),n(gt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:m,onChange:h}),n(gt,{className:"mt-3",text:"Комплексная страховая защита",checked:x,onChange:u})]})]}),n("div",{children:y?At({rate:y,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[w?n(ft,{title:"Ежемесячный платеж",value:w,postfix:"₽"}):null,Mt(e,l)]})]})}));function Pt(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||Nt,s=t?.maxSum||vt;return n(wt,{title:"Стоимость недвижимости, ₽ ",items:[`От ${bt(i)} ₽`,`До ${bt(s)} ₽`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Vt(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||Nt,s=t?.maxSum||vt;return n(wt,{className:"mt-6",title:"Первоначальный взнос, ₽ ",items:[`От ${bt(i)} рублей`,`До ${bt(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Lt({credit:e,period:t,taxRefund:l}){return a("div",{children:[n(ft,{title:"Сумма кредита",value:e,postfix:"₽"}),n(ft,{title:"Срок",value:t,postfix:"лет"}),n(ft,{title:"Налоговый вычет",value:l,postfix:"₽"})]})}const _t={CreditCalculatorForm:Rt,MortgageCalculatorForm:l((({context:e,className:t="",buttons:l})=>{const[r,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,d]=e.useState(!1),[m,h]=e.useState(!1),x=ht(e.useAsyncData,"directoryName").rows,u=St({tableRows:x,isAnnuity:c}),p=$t(u),g=Tt(u),b=u?.minMonths||1,f=u?.maxMonths||84,N=kt({calculatorParams:u,isInsurance:c});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Pt({calculatorParams:u,moneyValue:r,defaultSum:p,setMoneyValue:i}),Vt({calculatorParams:u,moneyValue:r,defaultSum:p,setMoneyValue:i}),Bt({title:"Срок ипотеки, месяцев",minMonths:b,maxMonths:f,monthsValue:s,defaultMonths:g,setMonthsValue:o}),a("div",{className:"mt-7",children:[n(gt,{text:"Страхование жизни",checked:c,onChange:d}),n(gt,{className:"mt-4",text:"Страхование жизни, злоровья и временной утраты трудоспособности",checked:m,onChange:h})]})]}),a("div",{children:[n("div",{children:N?At({rate:N,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),n(ft,{title:"Ежемесячный платеж",value:777777,postfix:"₽"})]}),a("div",{children:[n("div",{className:"w-[351px]",children:Lt({credit:3892e3,period:15,taxRefund:65e4})}),Mt(e,l)]})]})})),DepositCalculatorForm:l((({context:e,className:t="",buttons:l,rate:r,minSum:i,maxSum:s,minMonths:o,maxMonths:c})=>{const[d,m]=e.useState(void 0),[h,x]=e.useState(void 0),u=ht(e.useAsyncData,"directoryName").rows,p=St({tableRows:u,isAnnuity:!1}),g=$t(p),b=Tt(p);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[It({title:"Сумма вклада, ₽",calculatorParams:{minSum:i,maxSum:s},moneyValue:d,defaultSum:g,setMoneyValue:m}),Bt({title:"Срок вклада, месяцев",minMonths:o||1,maxMonths:c||84,monthsValue:h,defaultMonths:b,setMonthsValue:x})]}),n("div",{children:r?At({rate:r,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[n(ft,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),n(ft,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),Mt(e,l)]})]})})),BonusCalculatorForm:l((({context:e,className:t="",buttons:l,bonus:r,minSumTrip:i,maxSumTrip:s,minSumOther:o,maxSumOther:c})=>{const[d,m]=e.useState(void 0),[h,x]=e.useState(void 0),u={minSum:i,maxSum:s},p={minSum:o,maxSum:c},g=r||2528;return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[It({title:"Сумма покупок в категории путешествия, ₽",calculatorParams:u,moneyValue:d,defaultSum:$t(u),setMoneyValue:m,isShowItems:!1}),It({className:"mt-6",title:"Сумма покупок в остальных категориях, ₽",calculatorParams:p,moneyValue:h,defaultSum:$t(p),setMoneyValue:x,isShowItems:!1})]}),n("div",{children:g?At({rate:g,title:"Баллов за месяц",className:"tracking-[-14px]"}):null}),a("div",{className:"w-[240px]",children:[n(ft,{title:"Баллов за год",value:948841}),Mt(e,l)]})]})}))},jt=({context:e,className:t})=>(a,l)=>{const r=a?.calcType;if(!r||!(r in _t))return null;return n("section",{className:`box-border relative flex shrink-0 basis-full ${t}`,role:"listitem",children:n("div",{className:"box-border p-9 w-full",children:n(_t[r],{context:e,...a,className:"flex justify-between"})})},String(l))},Gt=l((({className:e="",context:t,calcTabs:l=[],...r})=>{const i=l.map((e=>e.nav||{})),o=l.map((({calculatorBlock:e})=>e||{})),[c,d]=t.useState(0),[m,h]=t.useState(0),x=l?.length>3&&l?.length>m+3,u=m>0;return a(s,{context:t,className:`box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${e}`,...r,children:[a("div",{children:[i.length>1?Ut({tabsShift:m,tabsNav:i,activeSlideIndex:c,setActiveSlideIndex:d}):null,Pe({handler:[()=>h(m-1),()=>h(m+1)],isShown:[u,x],btnClass:["left-3","right-3"],className:"top-8"})]}),n("div",{className:"flex",style:{transform:`translateX(-${c}00%)`},role:"list",children:o?.length?o.map(jt({context:t,className:e})):null})]})}));function Ut({tabsShift:e,tabsNav:t,activeSlideIndex:l,setActiveSlideIndex:r}){return a("div",{children:[n("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-[38px] box-border duration-1000",children:n("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:l,onClick:r}){const i=t===l,s=i?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",o=i?"text-md-new mb-1.5":"text-base mb-[3px]",c=i?"text-base text-white":"text-m-md",d=i?"":"text-primary-main";return a("button",{type:"button",onClick:r,"aria-label":e?.title,className:`box-border font-sans relative border border-main-stroke cursor-pointer text-left border-b-0 flex\n ${s}`,children:[n(g,{className:`h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${d}`,image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}),a("div",{className:"border-0",children:[n("div",{className:`font-medium ${o}`,children:e?.title}),n("div",{className:`text-secondary-text ${c}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:l,onClick:()=>r(t)})))})}),n("div",{className:"w-full h-2 bg-primary-main"})]})}const Ot={black:"bg-black",white:"bg-white"},Wt=l((({className:e="",title:t,description:l,image:r,price:i,button:s,colors:o})=>a("section",{className:`border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[r?.src?n(g,{className:"mb-5",image:r}):null,t?n(c,{headingType:"h6",as:"h5",className:"text-left mb-1.5",title:t}):null,l?n("div",{className:"text-m-md text-left mb-4",children:l}):null,o?.length?a("div",{className:"flex mb-4 text-m-md text-secondary-text",children:["Доступные цвета: ",o.map(Ft)]}):null,i?a("div",{className:"text-title-sm text-left",children:[i," ₽"]}):null,s?.text?n(q,{className:"mt-6 w-full",...s}):null]}))),Ft=(e,t)=>n("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Ot[e]}`},String(t)),Et="absolute top-0 bottom-0 w-[84px]",Ht=l((({context:e,cards:t=[],className:l="",title:r,description:i,...o})=>{const[d,m]=e.useState(0);return a(s,{context:e,className:`bg-white relative font-sans p-9 overflow-hidden text-center ${l}`,...o,children:[r?n(c,{headingType:"h2",className:"mb-6",title:r}):null,i?n(ee,{className:"mb-6",description:i}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${430*d}px)`},role:"list",children:t?.length?t.map(Zt(e)):null}),zt({cardsCount:t.length,activeCardIndex:d,setActiveCardIndex:m}),n("div",{className:`${Et} left-0 bg-opacity-from-white`}),n("div",{className:`${Et} right-0 bg-opacity-to-white`})]})})),Zt=e=>(t,a)=>n(Wt,{context:e,...t},String(a)),zt=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const a=e>3;return Pe({handler:[()=>n(t-1),()=>n(t+1)],isShown:[a&&t>0,a&&e-t>3],btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"})},Jt=l((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),Xt="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",qt="border-main-stroke border-solid border",Kt="border-main-divider border border-t-0 border-x-0",Qt="w-[200px] mr-6",Yt={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},en=l((({children:e,activeCardIndex:t,columnWidth:a,version:l="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:Yt[l],style:{transform:`translateX(-${t*a}px)`},children:e})}))),tn=l((({icon:e,image:t,title:l,link:r})=>a("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${qt} ${Xt}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&n(g,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&n(g,{className:"mb-[18px]",image:t}),l?n(c,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,r?.text&&n("div",{className:"mt-auto w-full",children:n(q,{href:r.href,target:r.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:n("div",{className:"font-medium text-xs py-[11px]",children:r.text})})})]}))),nn=l((({colHeaders:e,activeCardIndex:t,router:l,handlerDecorator:r})=>a(Jt,{children:[n("div",{className:Qt,role:"columnheader",scope:"col"}),n(en,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(tn,{...e,link:e.link&&O({router:l,handlerDecorator:r},e.link)},String(t))))})]}))),an=l((({cell:e,isFirstRow:t,isLastRow:a,isFillGradient:l})=>n("div",{className:`w-80 box-border flex flex-col ${qt} ${a?"border-t-0 rounded-b-md":"border-y-0"} ${l?Xt:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${Kt} ${l&&t?"border-t":""} ${a?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>sn(e,t,l)))})}))),ln=(e=!1)=>"text-xl-light font-medium m-0 "+(e?"text-white":""),rn=(e=!1)=>"text-sm opacity-80 "+(e?"text-white":"text-secondary-text"),sn=({label:e,description:t},l,r)=>a("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?n("h4",{className:ln(r),children:e}):null,t?n("div",{className:rn(r),children:t}):null]},String(l)),on=(e=!1)=>`text-sm py-7 ${Kt} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,cn=l((({row:{header:e,data:t},activeCardIndex:l,isColoredFirstColumn:r,isFirstRow:i,isLastRow:s})=>a(Jt,{children:[e?.title?n("div",{className:on(s),children:e.title}):null,t?.length?n(en,{activeCardIndex:l,columnWidth:336,children:t.map(((e,t)=>n(an,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:r&&0===t},String(t))))}):null]}))),dn=l((({isScrollAvailable:e,handleNextClick:t,handlePrevClick:a,showNextButton:l,showPrevButton:r})=>e?n("div",{children:Pe({handler:[a,t],isShown:[r,l],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null)),mn=l((({rowData:e,activeCardIndex:t,isColoredFirstColumn:l,...r})=>a("div",{className:"relative",children:[e.map(((e,a,{length:r})=>n(cn,{row:e,isFirstRow:0===a,isLastRow:a+1===r,activeCardIndex:t,isColoredFirstColumn:l},String(a)))),n(dn,{...r})]}))),hn=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{handleNextClick:()=>a(n+1),handlePrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},xn=l((({context:e,columns:t,rowHeaders:l,isShowAllRow:r,visibleRowLength:i,isColoredFirstColumn:s})=>{const o=e.useRouter(),{handlerDecorator:c}=e,d=t?.map((({header:e})=>e||{})),m=t?.map((({data:e})=>e))||[],h=l?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[{}]))}))).slice(0,r?l.length:i),[x,u]=e.useState(0),p=hn({columnsLength:m.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:u}),{isScrollAvailable:g}=p;return a("div",{children:[a("div",{role:"table",children:[d?.length?n(nn,{colHeaders:d,activeCardIndex:x,router:o,handlerDecorator:c}):null,h?.length?n(mn,{rowData:h,activeCardIndex:x,isColoredFirstColumn:s,...p}):null]}),g?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),un=l((({className:e,context:t,title:l,rowHeaders:r,columns:i,visibleRowLength:o=0,isColoredFirstColumn:d=!1,...m})=>{const[h,x]=t.useState(!o);return a(s,{context:t,className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,...m,children:[n(c,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:l}),n(xn,{context:t,columns:i,rowHeaders:r,isShowAllRow:h,isColoredFirstColumn:d,visibleRowLength:o}),o?pn({isShowAllRow:h,onClick:()=>x(!h)}):null]})})),pn=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:a("div",{className:"flex w-full",children:[n("div",{className:Qt}),n("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:n("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})});async function gn(){try{const e=await fetch(bn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(fn)});return await e.json()}catch(e){console.error(e)}}const bn="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",fn={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Nn=e=>e.reduce(((e,t)=>{const n=t.currency_first;if(!vn(t.rate_buy)&&!vn(t.rate_sell))return e;const a=n.code;return e.some((e=>e.code===a))||e.push({code:a,buy:Number(t.rate_buy),sell:Number(t.rate_sell)}),e}),[]),vn=e=>Math.round(e)>0;function yn(e=""){const t=we(e);return t<=4?"h4":t<=8?"h3":"h2"}var wn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(wn||(wn={}));const In=new Intl.NumberFormat("ru",{style:"currency",currency:wn.RUB}),Cn=e=>e?In.format(e):"",kn="font-light text-left font-normal text-sm text-secondary-text",Sn={USD:"DollarIcon",EUR:"EuroIcon"},$n=l((({className:e,exchangeCurrencyItems:t})=>a("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:a("tr",{children:[n("th",{className:kn,children:"Валюта"}),n("th",{className:`${kn} pl-11`,children:"Купить"}),n("th",{className:`${kn} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Tn(e)))})]}))),Tn=e=>{const t=e?.code;return a("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:a("div",{className:"flex items-center",children:[t?n(g,{image:{icon:Sn[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Cn(e.buy)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Cn(e.sell)})]},t)},Dn=l((({className:e="",address:t,distance:l})=>a("div",{className:`flex text-sm ${e}`,children:[n(g,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),a("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,l?a("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),Bn=(e,t,n)=>{const a=Number(Mn(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(a)},Mn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),An=e=>{return(t=[[e=>e.value!==wn.RUB&&e.oppositeValue!==wn.RUB,()=>e.handleConvert(e.value,wn.RUB)],[e=>e.value===wn.RUB&&e.oppositeValue===wn.RUB,()=>e.handleConvert(e.value,wn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};const Rn=l((({className:e="",id:t,name:a,type:l="text",placeholder:r,pattern:i,value:s,onChange:o})=>n("input",{className:e,id:t,name:a||t,type:l,pattern:i,placeholder:r,value:s,onChange:e=>(e=>{const t=e.target.validity.valid?e.target.value:s;o(t)})(e)}))),Pn=l((({className:e="",id:t,name:a,children:l,value:r,onChange:i})=>n("select",{className:e,id:t,name:a||t,value:r,onChange:e=>i(e.target.value),children:l}))),Vn=l((({className:e="",value:t,selected:a,children:l})=>n("option",{className:e,value:`${t}`,selected:a,children:l})));function Ln(e){const{placeholder:t,rates:l,selected:r,value:i,setValue:s,setSelected:o}=e;return a("div",{className:"relative flex items-center",children:[n(Rn,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",placeholder:t,type:"text",value:i,onChange:s}),l.length?n(Pn,{className:"h-9 -translate-x-4",value:r,onChange:e=>o(e),children:l.map(((e,t)=>n(Vn,{value:e.code,children:e.code},String(t))))}):null]})}const _n=l((({context:e,className:t="",currencyRatesBuy:l,currencyRatesSell:r})=>{const[i,s]=e.useState({inputSell:"",inputBuy:"",selectSell:l?.[0]?.code||wn.RUB,selectBuy:r?.[0]?.code||wn.USD}),o=e=>{s((t=>({...t,...e})))};return a("div",{className:`grid gap-3.5 ${t}`,children:[Ln({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:jn(i,o,r),value:i.inputSell,setValue:e=>Un(o,r)(e,i.selectSell,i.selectBuy)}),Ln({placeholder:"Получу",rates:r,selected:i.selectBuy,setSelected:Gn(i,o,l),value:i.inputBuy,setValue:e=>On(o,l)(e,i.selectBuy,i.selectSell)}),n(q,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"https://coins.rshb.ru/exchange",target:"_blank",children:"Купить валюту"})]})})),jn=(e,t,n)=>a=>{t({selectSell:a}),An({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,l=e.selectBuy)=>{Un(t,n)(e.inputSell,a,l)}})},Gn=(e,t,n)=>a=>{t({selectBuy:a}),An({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,l=e.selectSell)=>On(t,n)(e.inputBuy,a,l)})},Un=(e,t)=>(n,a,l)=>{e({inputSell:Mn(n),selectBuy:l});const r=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===a))?.sell;r&&e({inputBuy:String(Bn(n,r,a===wn.RUB)||"")})},On=(e,t)=>(n,a,l)=>{e({inputBuy:Mn(n),selectSell:l});const r=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===a))?.buy;r&&e({inputSell:String(Bn(n,r,a===wn.RUB)||"")})},Wn={address:"Москва, ул.Ленина д.28",distance:"6км"},Fn=l((({className:e="",context:t,title:l="Курсы обмена валют",...r})=>{const i=function(e){const{data:t}=e(bn,gn),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?Nn(n):n}(t.useAsyncData),o=i.filter((e=>e.buy));o.unshift({code:wn.RUB});const d=i.filter((e=>e.sell));return d.push({code:wn.RUB}),n(s,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...r,children:n(se,{context:t,title:n(c,{headingType:yn(e),title:l,className:"whitespace-pre-wrap"}),children:a("div",{className:"flex",children:[a("div",{className:"mr-[43px] pt-4",children:[i?n($n,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(Dn,{...Wn})]}),i.length&&o.length&&d.length?n(_n,{className:"grow",context:t,currencyRatesBuy:o,currencyRatesSell:d}):null]})})})})),En=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],Hn={"bg-white":"text-primary-main",transparent:"text-white"},Zn={"bg-white":"text-black",transparent:"text-white"},zn=l((({className:e="",href:t,logo:l,children:r=l?.title,targetBlank:i,bgColor:s="bg-white",hideTitle:o})=>a("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:i?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[l?.image?.src?n(g,{image:l.image,className:Hn[s],width:"40",height:"45",asSVG:!0}):n(ut,{className:`${Hn[s]} w-10`,viewBox:"0 0 40 45",paths:En.map((e=>({d:e})))}),o?null:Jn(r,s,l?.title)]}))),Jn=(e,t,a)=>n("span",{className:`${Zn[t]} font-medium ml-2.5`,children:e||a||"Россельхозбанк"}),Xn=l((({className:e,context:t})=>{const{term:l,setTerm:r}=t.useSearch();return a("form",{className:`relative ${e||""}`,children:[a("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[24px] h-[24px]",children:n(g,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-light text-base text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:l,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input"}),n(q,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),qn=l((({className:e="",items:t,hasButton:l,context:r})=>{const i=r.useRouter(),{handlerDecorator:s}=r;return a("div",{className:e,children:[t?.length?t.map(Kn):null,l?n(q,{version:"primary",className:"mb-6 w-full",...O({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Kn=(e,t)=>{const{type:l,text:r,description:i}=e;return a("div",{className:"mb-4",children:[n("div",{children:Qn(l,r)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},Qn=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`tel:${Yn(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Yn=e=>e.replaceAll(/\D/g,""),ea=l((({links:e,className:t="",context:a})=>{const l=a.useRouter(),{handlerDecorator:r}=a;return n("div",{className:t,children:e?.length?n("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>n(ta,{index:t,...O({router:l,handlerDecorator:r},e)},String(t))))}):null})})),ta=l((({className:e="",index:t,text:a,href:l,target:r,onClick:i})=>n("a",{className:`font-sans font-light text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:l,target:r,onClick:i,children:a||`Документ ${t}`}))),na=e=>t=>e?.href===t?.href,aa=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(na(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(na(e))))));var n,a,l};function la(e){const{data:t}=e(ia(),ra);return t||{}}async function ra(){const e=await fetch(ia());return await e.json()}function ia(){return`/wcms-resources/${h.SITEMAP||"sitemap"}.json`}const sa=l((({className:e="",items:t,context:a})=>{const l=la(a.useAsyncData),r=aa(l.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return n("div",{className:`flex items-start justify-between gap-11 xl:gap-5 ${e}`,children:r?.map(((e,t)=>oa(e,t,i)))})})),oa=(e,t,{router:l,handlerDecorator:r})=>{const{text:i,href:s,items:o,target:c}=e;return a("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-[14px]",children:[n("a",{className:"block font-sans leading-5 text-base text-primary-text no-underline",href:s,target:c||"_self",children:i||`Раздел ${t}`}),o?.map(((e,t)=>n(ca,{...O({router:l,handlerDecorator:r},e),index:t},String(t))))]},String(t))},ca=l((({text:e,href:t,target:a,index:l})=>n("a",{className:"block font-sans font-light text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:a||"_self",children:e||`Раздел ${l}`}))),da=[{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"}],ma=l((({href:e,version:t="primary"})=>{const{icon:a,label:l}=da.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!a)return null;const r="primary"===t;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-main-divider border-solid border-[1px] hover:bg-primary-main"} ${r?"hover:text-black":""}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:a?n(g,{image:a,imageClassName:r?"group-hover:text-white":"",width:"24",height:"24",asSVG:!0}):null})})),ha=l((({className:e="",media:t,version:l,context:r,children:i})=>{const s=r.useRouter(),{handlerDecorator:o}=r;return a("div",{children:[n("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>n(ma,{version:l,...O({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),xa=l((({className:e,links:t,context:l})=>{const r=l.useRouter(),{handlerDecorator:i}=l;return a("div",{className:`${e||""}`,children:[n("div",{className:"pt-5",children:n("span",{className:"font-sans font-light text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>n(ua,{index:t,...O({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),ua=l((({className:e,index:t,text:a,href:l,target:r,onClick:i})=>n("a",{className:`font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:l,target:r,onClick:i,children:a||`Документ ${t}`}))),pa="w-[204px]",ga=l((({className:e,documents:t,relatedEnterprises:l,contacts:r,socialMedia:i,mobileApps:o,topItems:c,context:d,...m})=>a(s,{Tag:"footer",context:d,className:`p-9 bg-white ${e||""}`,...m,children:[a("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(zn,{className:pa}),n(Xn,{context:d,className:"grow"})]}),a("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[a("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[n(qn,{items:r,context:d,hasButton:!0}),n(ha,{media:i,context:d,children:"Соцсети"}),n(ha,{className:"mt-6",media:o,context:d,children:"Мобильное приложение"})]}),n(sa,{className:"pt-[3px]",context:d,items:c})]}),n(ea,{className:"mt-[98px]",links:l,context:d}),n(xa,{links:t,context:d})]}))),ba=l((({className:e="",title:t,description:l,calendar:r,...i})=>a(s,{className:`font-sans bg-white p-[50px] ${e}`,...i,children:[n(c,{headingType:"h3",className:"text-center",title:t}),n("div",{className:"font-light text-base-md text-center mt-3",children:l}),r?fa(r):null]}))),fa=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*t+"%"})));return a("div",{className:"w-full flex flex-col justify-center mt-[54px]",children:[n("div",{className:"flex w-full mb-3 font-light text-m-title-md text-center",children:l.map((e=>Na(e,t)))}),n("div",{className:"flex w-full",children:l.map(((e,t)=>a("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:[n("div",{className:"flex",children:va(e)}),a("div",{className:"font-light text-sm text-primary-text mt-3",children:[n("span",{children:e.text})," ",n("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Na=(e,t)=>e.month.map(((e,a)=>n("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${a}`))),va=e=>e.month.map((e=>e.image?.src?n("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:n(g,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),ya={ProductBlock:be,ProductTile:De},wa=l((({groupBlocks:e,context:t})=>n("div",{className:"grid grid-cols-12 gap-2 box-border",children:e?.length?e.map(Ia(t)):null}))),Ia=e=>(t,a)=>{const l=t?.blockType;if(!l||!(l in ya))return null;const r=v(t?.style);return n(ya[l],{context:e,...t,className:r},`block_${a}`)},Ca=l((e=>{const{tabs:t,currentTag:a,onTabClick:l,className:r="",isShowCounter:i}=e;return n("div",{className:`mb-2 box-border flex gap-x-1 ${r}`,role:"tablist",children:t?.map(ka(l,i,a))})})),ka=(e,t,l)=>(r,i)=>{const s=l===r.tag,o=s?"text-white":"text-secondary-text group-hover:text-primary-main",c="min-w-[22px] w-[22px] h-[22px] rounded-full text-m-sm \n "+(s?"bg-white/30 text-white":"bg-secondary-light text-secondary-text");return n("div",{className:`flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${s?"bg-primary-main":"group bg-white"}`,role:"tab",onClick:()=>e(r.tag),"aria-selected":String(s),tag:r?.tag,children:a("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?n("h3",{className:o,children:r?.title}):null,t?n("div",{className:`flex items-center justify-center ml-8 text-s-bold ${c}`,children:n("span",{children:r.count})}):null]})},String(i))},Sa=l((({className:e="",tabs:t,context:l,groupBlocks:r=[],isShowCounter:i,...o})=>{const[c,d]=l.useState(t?.[0]?.tag),m=(h=r,(x=c)?h.filter((e=>e?.tags?.includes(x))):h);var h,x;const u=t?.map((e=>{const t=e.tag?r.filter((t=>t?.tags?.includes(e.tag))).length:r.length;return{...e,count:t}}));return a(s,{context:l,className:`box-border gap-1 ${e}`,...o,children:[u?.length?n(Ca,{currentTag:c,onTabClick:d,tabs:u,isShowCounter:i}):null,r.length?n(wa,{context:l,groupBlocks:m}):null]})})),$a=(e,t,n=((e,t)=>t.startsWith(e)))=>n(P(e),(e=>(e||"").replace(j,""))(P(R(e)?t.href:t.pathname))),Ta=e=>t=>$a(t.href,e),Da=e=>t=>t.items?.some(Ta(e))||$a(t.href,e)||((e,t)=>V(e)===V(t.href))(t.href,e),Ba="font-sans font-light text-sm",Ma=l((({className:e="",text:t,href:a,target:l,active:r,flat:i,onClick:s,children:o,ariaLabel:c,bgColor:d="bg-white"})=>n("a",{className:`${Aa(d,r,i)} ${e}`,href:a,target:l,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:Ra(d,r,i),children:t||o})}))),Aa=(e,t=!1,n=!1)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},Ra=(e,t=!1,n=!1)=>{if("bg-white"!==e)return`text-white ${Ba}`;return`${t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${Ba}`},Pa=l((({className:e="",children:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":a,children:t}))),Va={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},La={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},_a={"bg-white":"black",transparent:"white"},ja=l((({context:e,className:t,defaultLocation:l="",bgColor:r="bg-white"})=>{const[i,s]=e.useGeolocation(l);return a("div",{className:`flex items-center ${t||""}`,children:[n(Ma,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:r}),n(Ma,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:r}),n(Pa,{className:`mr-5 ${Va[r]}`,ariaLabel:"Поиск по сайту",children:n(g,{image:{icon:"LoupeIcon",iconVersion:_a[r]},className:"h-full",asSVG:!0})}),n(Pa,{className:`${La[r]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(g,{image:{icon:"GridIcon",iconVersion:_a[r]},className:"h-full bg-secondary-light rounded-full",asSVG:!0})})]})})),Ga=e=>(t=[])=>{const n=t?.filter(Ta(e));var a;return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):null},Ua="absolute left-0 -bottom-3 w-full h-[2px]",Oa=l((({className:e="",text:t,href:l,target:r,active:i,onClick:s,children:o,bgColor:c="bg-white",dataItemName:d})=>a("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:l,target:r,onClick:s,"data-item-name":d,children:[n("span",{className:Wa(c,i),children:t||o}),i?n("div",{className:Fa(c,i)}):null]}))),Wa=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-light text-base`},Fa=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ua}`:Ua,Ea={"bg-white":"bg-primary-text",transparent:"bg-white"},Ha=l((e=>{const{menuVisible:t,toggleMenu:l,menuItems:r,bgColor:i,context:s}=e,{useRouter:o,handlerDecorator:c}=s,d=o();return a("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(t?"bg-white rounded-md shadow-blue-gray/24":""),children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:l,"aria-label":""+(t?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(i).map(za)}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(t?"":"hidden"),"aria-hidden":!t,children:Za(r,d,c)})]})})),Za=(e,t,a)=>e?.map((e=>n("a",{...O({router:t,handlerDecorator:a},e),className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),za=(e,t)=>n("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Ea[e]}`},String(t)),Ja=l((({context:e,subItems:t=[],bgColor:l})=>{const[r,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o,IntersectionObserverTag:c}=e,[d,m]=e.useState(t.length),h=t.slice(d),x=Ga(s)(t);return a("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:t.map(((e,t)=>{return n(c,{Tag:"span",observerCallback:(a=t,e=>{e.length&&(e[0].intersectionRatio<1?m((e=>Math.min(e,a))):m((e=>Math.max(e,a+1))))}),observerOptions:{threshold:1},children:n(Oa,{className:"mr-8 "+(d-1<t?"invisible":""),active:e===x,...O({router:s,handlerDecorator:o},e),bgColor:l})},String(t));var a}))}),h.length?n(Ha,{context:e,menuVisible:r,toggleMenu:()=>i(!r),menuItems:h,bgColor:l}):null]})})),Xa={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},qa=l((({className:e="",defaultLocation:t="Москва",showSubMenu:l=!0,bgColor:r="bg-white",context:i,topItems:o,logo:c,...d})=>{const m=i.useRouter(),h=la(i.useAsyncData),{handlerDecorator:x}=i,u=aa(h.topItems,o),p=u.find(Da(m)),g=u.map(((e,t)=>n(Ma,{active:e===p,...O({router:m,handlerDecorator:x},e),"aria-label":e.text,bgColor:r},String(t))));return n(s,{Tag:"header",context:i,className:`pt-6 pb-8 px-20 ${r} ${e}`,...d,children:a("div",{className:"container",children:[a("div",{className:"flex items-center",children:[n(zn,{className:"mr-8",bgColor:r,logo:c}),g,n(ja,{context:i,className:"ml-auto",defaultLocation:t,bgColor:r})]}),n("div",{className:`mt-6 h-[1px] ${Xa[r]}`}),l&&p?.items?.length?n(Ja,{context:i,subItems:p.items,bgColor:r}):null]})})})),Ka=l((({className:e="",title:t,description:l,image:r,benefits:i,sum:o,monthLimit:d,...m})=>a(s,{className:`px-[100px] py-[50px] bg-white text-primary-text font-sans ${e}`,...m,children:[t?n(c,{headingType:"h3",title:t,className:"text-center"}):null,l?n("div",{className:"text-center text-md mt-3",children:l}):null,n("div",{children:a("div",{className:"mt-5 mx-auto flex justify-center gap-[122px] mt-[30px]",children:[r?.src?n(g,{image:r}):null,a("div",{className:"w-[558px] m-auto",children:[i?n("div",{className:"flex flex-col gap-4",children:i.map(Qa)}):null,Ya(o,d)]})]})})]})));function Qa(e,t){return a("div",{className:"flex items-center gap-4",children:[e?.icon?n(g,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-secondary-light",image:e.icon,asSVG:!0}):null,a("div",{children:[e?.label?n("div",{className:"text-title-2xs font-normal",children:e.label}):null,e?.description?n("div",{className:"mt-0.5 font-light text-secondary-text font-light",children:e.description}):null]})]},String(t))}function Ya(e,t){return e||t?a("div",{className:"bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4",children:[Number.isFinite(e)?el("Страховая сумма:",e,Boolean(t)):null,Number.isFinite(t)?el("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function el(e,t,l){return a("div",{className:`flex justify-between items-center gap-2 w-full ${l?"w-fit":"w-full"}`,children:[n("span",{className:"text-secondary-text text-base",children:e}),a("span",{className:"text-primary-main text-title-2xs",children:[bt(t)," ₽"]})]})}const tl=l((({className:e="",context:t,cards:l=[]})=>{const[r,i]=t.useState(0),[s,o]=t.useState(0),c=l?.length??0,d=l?.length>2&&c>s+2,m=s>0;return n("section",{className:`min-w-full ${e}`,children:a("div",{className:"relative mt-7 overflow-hidden",children:[c?nl({tabsShift:s,cards:l,activeSlideIndex:r,isLastShift:c===s+2,setActiveSlideIndex:i}):null,Pe({handler:[()=>o(s-1),()=>o(s+1)],isShown:[m,d],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?n("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,d?n("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]})})}));function nl({tabsShift:e,cards:t,activeSlideIndex:l,isLastShift:r,setActiveSlideIndex:i}){return n("div",{style:{transform:`translateX(-${r?460*e-240:460*e}px)`},className:"duration-1000 px-[50px]",children:n("div",{className:"w-full flex flex-nowrap gap-3.5 pb-[38px]",children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:r}){const i=t===l;return a("button",{type:"button",onClick:r,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(i?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?n(g,{className:"h-[108px] w-[108px] p-3 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"24",height:"24"}):null,a("div",{className:"flex gap-3.5",children:[e?.sum?al("страховая сумма",e.sum):null,e?.fee?al("страховой взнос",e.fee):null]}),ll(i)]},String(t))}({slide:e,i:t,activeSlideIndex:l,onClick:()=>i(t)})))})})}function al(e,t){return a("div",{className:"flex flex-col text-left",children:[a("span",{className:"whitespace-pre text-title-2xs",children:[bt(t)," ₽"]}),n("span",{className:"whitespace-pre text-secondary-text font-light text-base mt-1",children:e})]})}function ll(e){return e?n(g,{className:"h-[24px] w-[24px] min-w-[24px] min-h-[24px] absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const rl=l((({className:e="",context:t,title:l,insuranceTabs:r=[],button:i,...o})=>{const[d,m]=t.useState(0);return a(s,{context:t,className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...o,children:[l?n(c,{className:"text-center",title:l,headingType:"h3"}):null,n("div",{className:"p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]",children:r.map(((e,t)=>function({title:e,i:t,activeSlideIndex:a,onClick:l}){return n("button",{type:"button",onClick:l,"aria-label":e,className:"box-border px-4 py-3 text-m-md "+(t===a?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:d,onClick:()=>m(t)})))}),n("div",{className:"flex",style:{transform:`translateX(-${d}00%)`},role:"list",children:il({context:t,className:e,insuranceTabs:r})}),i?.text?n("div",{className:"flex justify-center",children:n(q,{className:"box-border p-4 h-14 w-full max-w-[240px]",version:i?.version||"primary",href:i.href,children:i.text})}):null]})})),il=({insuranceTabs:e,context:t,className:a=""})=>{const l=e?.map((e=>e.cards));return l?.length?l.map((e=>n(tl,{context:t,className:a,cards:e}))):null};const sl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ol=l((({className:e="",context:t,title:l="Мобильное приложение",qr:r,buttons:i,version:o="primary",items:d,image:m,...h})=>{const x="primary"===o?"text-primary-text":"";return a(s,{context:t,className:`flex justify-between font-sans p-9 box-border relative\n ${Ce(e)} ${Ie(e)}\n ${sl[o]}\n ${e}`,...h,children:[n(se,{context:t,title:l?n(c,{headingType:"h3",title:l,className:`whitespace-pre-wrap max-w-[509px] mb-6\n ${x}`}):null,buttons:i?.length?n(Y,{context:t,buttons:i,className:"flex mt-[30px] gap-4"}):null,children:a("div",{className:"flex flex-1 items-center",children:[r?.src&&r?.href&&n("a",{href:r.href,target:"_blank","aria-label":l,children:n("img",{src:r.src,alt:l,title:l,width:"122",height:"122",className:"w-[122px] h-[122px] min-w-[122px] min-h-[122px] bg-secondary-light mr-[23px] rounded-md"})}),cl(o,d)]})}),m?.src?n("div",{className:"absolute right-0 bottom-0",children:n(g,{image:m})}):null]})})),cl=(e,t)=>t?.length?n(ie,{items:t,itemClassName:"base font-light mb-2 last:mb-0",version:"primary"===e?"tile":"tile-white"}):n("span",{className:"font-light text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),dl=l((({className:e,text:t,onClick:a,href:l,target:r,isActive:i})=>n("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${i?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:a,href:l,target:r,children:t}))),ml=l((({className:e,context:t,title:l,buttons:r,...i})=>{const o=t.useRouter(),{handlerDecorator:c}=t,d=Ga(o)(r);return a(s,{context:t,className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,...i,children:[n("h2",{className:"font-medium text-xl-light m-0",children:l}),r?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:r.filter((({text:e})=>e)).map(((e,t)=>n(dl,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===d,...O({router:o,handlerDecorator:c},e)},String(t))))}):null]})})),hl=l((({className:e="",text:t,active:a,onClick:l,href:r,target:i="_self",children:s})=>n("a",{className:xl(e,a),target:i,href:r,onClick:l,children:n("span",{className:ul(a),children:t||s})}))),xl=(e,t)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,ul=e=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans font-normal text-m-md`,pl=l((({className:e="",navigatorTabs:t,context:a,...l})=>n(s,{context:a,className:`sticky top-0 z-20 box-border flex gap-x-1 h-14 ${e}`,...l,children:t?t.map(gl(a)):null}))),gl=e=>(t,a)=>{const{handlerDecorator:l,useRouter:r}=e,i=r(),s=L(i.href),o=s?t.href===s:0===a;return n(hl,{active:o,...O({router:i,handlerDecorator:l},t)},t.text)},bl="transition-all duration-300 max-h-0 overflow-hidden",fl=l((({blocks:e=[],context:t,hiddenBlocksNum:l=0,foldButtonClasses:r,foldButtonLabel:i,foldButtonDataTheme:s,isUnfolded:o,containerClasses:c,render:d=(e=>e)})=>{const m=Dt(l,0,e.length),{icon:h,handleToggle:x,isActive:p}=(({context:e,initialState:t=!1})=>{const[n,a]=e.useState(t);return{icon:n?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;a(!n);const l=t.previousSibling.getElementsByClassName(bl)[0];l.style.maxHeight=l.style.maxHeight?"":`${l.scrollHeight}px`},isActive:n}})({context:t,initialState:o});return e?a("div",{children:[Nl(e,d,{blocksToHide:m,isActive:p,containerClasses:c}),l?a("button",{className:r||"border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer","data-theme":s,onClick:x,children:[n("span",{className:"pr-3",children:p?"Скрыть":i}),h?n(u,{name:h,iconVersion:"white",width:"20",height:"20",asSVG:!0}):null]}):null]}):null})),Nl=(e,t,{blocksToHide:l,isActive:r,containerClasses:i})=>{const s=e.slice(0,e.length-l),o=e.slice(-l);return t(a("div",{children:[s,n("div",{className:`${bl} ${i}`,children:o})]}),r)},vl=l((({label:e,blocks:t,context:a,dataTheme:l,isUnfolded:r})=>{const i=qe({context:a,blocks:t});return n("div",{className:"border-0 border-b border-solid border-main-divider",children:t?.length?n(fl,{foldButtonDataTheme:l,hiddenBlocksNum:t?.length,blocks:i,isUnfolded:r,context:a,foldButtonLabel:e,containerClasses:"grid grid-cols-12 gap-1 border-box",render:(e,t)=>n(yl,{isActive:t,children:e})}):null})})),yl=l((({children:e})=>n("div",{className:"box-border",children:e}))),wl=l((({blockItems:e,colorPalette:t,context:a,className:l="",...r})=>n(s,{context:a,className:`font-sans text-primary-text ${l}`,...r,children:e?.length?n("div",{className:"box-border1",children:e.map(((e,l)=>n(vl,{...e,dataTheme:t,context:a},`BlockItem${l}`)))}):null}))),Il=l((({className:e,context:t,title:l,description:r="Блок в разработке...",...i})=>n(s,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ce(e)} ${Ie(e)} `,...i,children:a(se,{context:t,title:l?n(c,{headingType:yn(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[r?n(ee,{className:"mt-4 max-w-[600px]",description:r}):null,n("figure",{className:"m-0 min-w-[600px]",children:Cl()})]})}))),Cl=(e=3)=>Sl(100,e).map((e=>Math.floor(e))).map(kl),kl=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Sl=(e,t)=>[e].concat(t>0?Sl(e/1.618,t-1):[]),$l={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Tl={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},Dl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Bl=l((({className:e="",context:t,slides:l=[],version:r="primary",...i})=>{const o=l.map((e=>e.nav)),c=l.map((e=>e.productBlock)),[d,m]=t.useState(0);return a(s,{context:t,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${$l[r]}`,...i,children:[n("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${d}00%)`},role:"list",children:c.map(((e,a)=>function(e,t,a){const{version:l}=e,r=l?Tl[l].title:"";return n("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:n("div",{className:"flex grow",children:n(me,{className:`pl-[50px] z-[1] ${r}`,context:a,textBlockClassName:"mb-[154px]",...e})})},String(t))}({...e,version:r},a,t)))}),n("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border",children:o.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:r,version:i}){const s=t===l,o=s?"bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none":`min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10\n ${Dl[i]}`,c=s?"text-primary-text text-title-2xs":`text-base ${Tl[i].title}`,d=s?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${Tl[i].text}`,m="secondary"===i?"border-white/50":"border-black/50";return n("button",{type:"button",onClick:r,"aria-label":e?.title,className:`box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${o} ${m}\n `,children:a("div",{className:"border-0 px-6",children:[n("div",{className:`font-medium ${c}`,children:e?.title}),n("div",{className:`text-secondary-text ${d}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:d,onClick:()=>m(t),version:r})))})]})}));const Ml={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Al=l((({className:e="",context:t,title:l="Акции и спецпредложения",date:r,description:i,buttons:o=[],version:d="primary",...m})=>n(s,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ml[d]} ${Ce(e)} ${Ie(e)} `,...m,children:n(se,{context:t,title:l?n(c,{headingType:yn(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:o?.length?n(Y,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:a("div",{className:"mt-1.5",children:[r?n("div",{className:"text-sm mb-2",children:Rl(r)}):null,n("div",{className:"text-base",children:i})]})})})));function Rl(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Pl=l((({context:e,className:t="",title:l,description:r,items:i,image:s,version:o,socialMedia:d})=>n("section",{className:`border border-solid box-border p-[30px] min-w-[524px] ${t}`,role:"listitem",children:a(se,{context:e,className:"flex justify-between",title:l?n(c,{headingType:"h4",as:"h3",className:"font-normal mb-3.5",title:l}):null,image:s?.src&&n(g,{className:"mt-auto ml-7",image:s}),children:[r?n(ee,{className:"text-left",description:r}):null,i?.length?n(ie,{className:"text-md text-left font-light flex flex-col flex-1 gap-2",items:i,version:o}):null,n(ha,{className:"pt-[42px] pb-0",media:d,version:o,context:e})]})}))),Vl="absolute top-0 bottom-0 w-[84px]",Ll=l((({context:e,recommendations:t=[],className:l="",title:r,version:i,...o})=>{const[d,m]=e.useState(0),h="secondary"===i?"border-white/50":"border-main-stroke";return a(s,{context:e,className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${l}`,...o,children:[r?n(c,{headingType:"h2",className:"mb-6",title:r}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*d}px)`},role:"list",children:t?.length?t.map(_l({context:e,version:i,className:h})):null}),jl({cardsCount:t.length,activeCardIndex:d,setActiveCardIndex:m}),n("div",{className:`${Vl} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${Vl} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),_l=({context:e,version:t,className:a})=>(l,r)=>n(Pl,{context:e,...l,version:t,className:a},String(r)),jl=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:a})=>{const l=e>2;return n("div",{children:Pe({handler:[()=>a(t-1),()=>a(t+1)],isShown:[l&&t>0,l&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-6"})})},Gl=e=>Boolean(e?.icon||e?.src),Ul={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},Ol=l((({className:e="",title:t,showLines:l=!0,steps:r=[],button:i,version:o="primary",...d})=>{const m=(e=>Ul[e])(o),h=r.length>3;return a(s,{className:["box-border font-sans text-primary-text bg-white",h?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",m.background,m.title,e].join(" "),...d,children:[n(c,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),r?.length?a("div",{className:"box-border "+(t?"mt-9":""),children:[n("div",{className:"flex items-center px-[88px]",children:F(n("div",{className:"h-0.5 w-full bg-secondary-light "+(l?"":"opacity-0")}))(r.map(Wl(m)))}),n("div",{className:"flex justify-between "+(h?"gap-x-3":"gap-x-[101px]"),children:r.map(Fl(m,Boolean(i?.text)))})]}):null,i?.text?n(q,{className:"mt-8 w-full max-w-[240px]",version:"primary",...i}):null]})})),Wl=e=>({icon:t},a)=>n("div",{className:"flex flex-col items-center text-center relative",children:n("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 ${e.iconBackground}`,children:Gl(t)?n(g,{image:t,width:"48",height:"48",asSVG:!0}):n("span",{className:`font-normal text-title-sm ${e.title}`,children:a+1})})},String(a)),Fl=(e,t)=>(l,r)=>a("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[a("div",{children:[l.label?n("div",{className:"font-normal text-xl-light m-0 mt-4",children:l.label}):null,l.description?n("div",{className:`font-light text-base ${e.description} ${l.label?"mt-2":"mt-4"}`,children:l.description}):null]}),l?.button?.text&&!t?n(q,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:l?.button?.href,children:l.button.text}):null]},String(r)),El=e=>e?.alt||e?.title||m[e?.icon?e.icon:""],Hl=l((({cell:e,isLastRow:t})=>n("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:n("div",{children:e.map(Zl)})}))),Zl=({label:e,description:t,list:l,image:r,buttons:i},s)=>a("div",{className:"first:pt-5 last:pb-5",children:[s>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?n("div",{className:"text-xl font-medium m-0",children:e}):null,t?n("div",{className:"text-sm text-secondary-text",children:t}):null,l?.items?.length?zl(l):null,r?n(g,{image:r}):null,i?.length?Jl(i):null]},String(s)),zl=e=>n(ie,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Jl=e=>n("div",{children:e.map((({icon:e,rounded:t,...a},l)=>n(q,{className:(l>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:El(e),rounded:t,appendLeft:e?n(g,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...a},String(l))))}),Xl=l((({row:{header:e,data:t},activeCardIndex:l,isLastRow:r})=>a(Jt,{children:[n("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(r?"":"border-solid"),children:a("div",{className:"flex items-center text-primary-text",children:[e?.icon?n(g,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title]})}),t?.length?n(en,{activeCardIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(Hl,{cell:e,isLastRow:r},String(t))))}):null]}))),ql=l((({className:e,context:t,title:l,description:r,rowHeaders:i,columns:o,hiddenRowsNum:d=0,...m})=>{const[h,x]=t.useState(0),u=Kl(o),p=Ql(i,u),g=hn({columnsLength:u.length,colsLengthForScroll:2,activeCardIndex:h,setActiveCardIndex:x}),b=p?.map(((e,t,{length:a})=>n(Xl,{row:e,isLastRow:t+1===a,activeCardIndex:h},String(t))));return a(s,{context:t,className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,...m,children:[l?n(c,{headingType:"h2",className:"text-center "+(r?"mb-2.5":"mb-9"),title:l}):null,r?n("div",{className:"mb-9 text-center text-m-base",children:r}):null,p?.length?n(fl,{blocks:b,hiddenBlocksNum:d,context:t,render:e=>n(Yl,{tableArrowScrollControlProps:g,children:e}),foldButtonLabel:"Развернуть"}):null]})})),Kl=e=>e?.map((({data:e})=>e))||[],Ql=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),Yl=l((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:l}=t;return a("div",{role:"table",children:[a("div",{className:"relative",children:[e,n(dn,{...t})]}),l?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),er={Accordion:tt,BenefitsBlock:nt,Bonus:ot,ComparisonTable:un,Calculator:Gt,Catalog:Ht,ExchangeRateTile:Fn,Footer:ga,Gallery:He,GracePeriod:ba,Header:qa,Headline:I,Insurance:Ka,InsuranceAmountBlock:rl,LinkDocs:B,MiniGallery:Ze,MobileAppTile:ol,NavigatorTabs:pl,PictureText:A,ProductBlock:be,ProductGallery:Bl,ProductTile:De,PromoTile:Al,OtherProducts:wl,Recommendation:Ll,StepsBlock:Ol,TariffsTable:ql,TextBlock:Ne,Tile:Se,Navigation:ml,Placeholder:Il,GroupBlock:Sa,BonusBenefitsBlock:dt},tr=l((({className:e,onClick:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":a,children:nr()}))),nr=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("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"}),n("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"})]})},ar=l((({className:e,context:t,...l})=>{const r=t.useLikeService();return a(s,{Tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...l,children:[n(tr,{onClick:r.like,ariaLabel:"Поставить отметку «лайк»"}),n(tr,{onClick:r.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:r.likeCount})]})})),lr=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),rr=l((({className:e="",context:t,blocksRegistry:l,data:{style:r,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:d=lr})=>{const{header:m}=s;return a("section",{className:`relative ${v(r)} ${e}`,"data-theme":c,children:[m?.blocks?.length?n("div",{className:`${v(m?.style)}`,children:m.blocks.map(((e,n)=>ir({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>ir({block:e,blockDecorator:d,blocksRegistry:l,context:t},n)))}):null,o?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(ar,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function ir({block:e,blockDecorator:t,blocksRegistry:a,context:l},r){const{type:i}=e;i&&i in a||console.warn(`No block with "${i}" is registered`);const s=a[i||"Placeholder"]||Il;return t({blockClassName:`scroll-mt-12 ${v(e.style)}`,block:e,render:e=>{const{version:t,content:a,anchor:o}=e.block;return n(s,{className:e.blockClassName,version:t,context:l,anchor:o,...a},`${i}-${r}`)}},`block-${r}`)}e.Blocks=er,e.ContentPage=rr,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(r)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:a}=await e.json();return globalThis.localStorage.setItem(r,JSON.stringify({token:n,name:a})),{token:n,name:a}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...a){if(!a.length)return[];const{token:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:a})}),{likes:r}=await n.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(a){if(!a)return 0;const{token:l,name:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:r},body:JSON.stringify({node_id:a,user_name:r})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(a){if(!a)return 0;const{token:l,name:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:r},body:JSON.stringify({node_id:a,user_name:r})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=F,e.projectSettings=h,e.setup=t,e.url=_,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";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:a,...r}={})=>{const l=Object.assign({},r,a?{innerHTML:a.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),a=(...e)=>t._jsxs(...e),r=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:a,...r}=t||{},l=n?.slots?.default,i=a||l&&l();return e(Object.assign(r,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},s=r((({anchor:e,className:t,context:a,children:r,Tag:l="section"})=>{const{IntersectionObserverTag:s}=a;return e?n(s,{Tag:l,className:t,observerCallback:i,observerOptions:{threshold:1},anchor:e,children:r}):n(l,{className:t,children:r})})),o={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},c=r((e=>{const{className:t="",headingType:a="h3",title:r,as:l="h3"}=e;return n(l,{className:`font-sans m-0 ${o[a]} ${t}`,children:r})}));var d,m;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.Logo="Logo",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(d||(d={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.Logo="Logo",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(m||(m={}));const h=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 ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},x={normal:"text-primary-main",black:"text-black",white:"text-black invert"},u=r((({className:e="",imageClassName:t="",name:r="",alt:l=`Иконка ${m[r]||r}`,title:i=l,iconVersion:s="normal",asSVG:o,...c})=>{const d=`${h.CDN||""}icons/${r}.svg`;return o?a("svg",{className:e,...c,"aria-hidden":"true",children:[i?n("title",{children:i}):null,l?n("desc",{children:l}):null,n("use",{className:`${x[s]} ${t}`,href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):n("img",{className:e,src:d,alt:l,title:i,...c,"aria-hidden":"true"})}));function p(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const g=(e,t)=>e.media&&t.media?e.media-t.media:0,b=r((({className:e="",image:t,imageClassName:r="",isMobile:l=!1})=>{if(!t)return null;return a("picture",{className:`${l?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(g).map((({src:e,format:t,media:a,size:r},l)=>n("source",{srcSet:e,type:N(t),media:a?`(max-width: ${a}px)`:"",...r},`${l}_${e}`))):null,f(t,r,l)]})})),f=(e,t="",a=!1)=>{const r=e.title||"",l=e.alt||e.title,i=a?"m-auto":"m-0";return n("img",{src:e.src,className:`${i} ${t}`,alt:l,title:r,...e.size})};function N(e){return e?`image/${String(e)}`:void 0}const v=r((({className:e="",image:t,imageClassName:a="",isMobile:r,...l})=>{if(!t)return null;const i="string"==typeof t?t:t.icon;return i||""===i?i.length?n(u,{className:e,imageClassName:a,iconVersion:p(t),name:i,...l}):null:n(b,{className:e,imageClassName:a,image:t,isMobile:r})})),y=r((({className:e="",imageClassName:t,image:a,...r})=>n(v,{className:e,imageClassName:t,image:a,...r})));function w(e){return e?e.filter(Boolean).join(" "):""}const I={left:"text-left",center:"text-center",right:"text-right"},C={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"}},k={XXL:{descriptionFont:"text-h4-alt",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"}},S=r((e=>{const{className:t="",description:a}=e;return n("div",{className:`${t}`,children:a})})),$=r((({bgColorHeadline:e="transparent",align:t="left",className:r="",title:l,description:i,headlineVersion:o="XL",...d})=>{const m=C[e],h=k[o];return a(s,{className:`font-sans flex flex-col p-[50px] ${h.gap} ${m.background} ${r}`,...d,children:[l?n(c,{headingType:h?.headingType,as:h?.as,className:`whitespace-pre-wrap ${m.text} ${I[t]}`,title:l}):null,i?n(S,{className:`${h.descriptionFont} ${m.text} ${I[t]}`,description:i}):null]})})),T=r((({className:e,iconClassName:t,textClassName:r,suffixClassName:l,doc:i,icon:s})=>{const{text:o,fileSize:c,...d}=i;return a("a",{className:e,role:"link",...d,children:[s?n(y,{className:t,image:s,width:"24px",height:"24px",asSVG:!0}):null,o?a("span",{className:r,children:[o,n("span",{className:l,children:d?.href&&B(D(d.href),c)})]}):null]})})),B=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),D=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},R=r((({className:e="",doc:t,icon:a})=>n(T,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center font-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:a}))),A=r((({className:e,documents:t,columnsMode:a="double",icon:r})=>t?.length?n("div",{className:e,role:"list",children:t.map(((e,t)=>n("div",{className:"double"===a?"basis-[calc(50%-20px)]":"",role:"listitem",children:n(R,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:r})},String(t))))}):null)),L={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},M=r((({context:e,className:t="",title:r,description:l,align:i="center",documents:o,icon:c={icon:"DocIcon"},columnsMode:d="double",headlineVersion:m="M",...h})=>a(s,{className:`font-sans text-primary-text p-[50px] bg-white ${t}`,context:e,...h,children:[n($,{className:"!p-0",title:r,description:l,context:e,align:i,headlineVersion:m}),n(A,{className:`mt-8 ${L[d]}`,columnsMode:d,documents:o,icon:c})]}))),P={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},V=r((({className:e="",title:t,image:r,benefits:l,version:i="primary",directionRight:o=!1,...d})=>a(s,{className:`relative font-sans p-14 ${P[i]} ${e}`,...d,children:[n(c,{headingType:"h2",className:"text-center",title:t}),a("div",{className:"flex justify-center mt-9",children:[r?.src&&n(y,{className:o?"order-2 ml-6":"mr-6",image:r}),l?.length?n("div",{className:"flex flex-col",children:l.map(((e,t)=>function(e,t,r){return a("div",{className:"flex flex-row mb-8",children:[e.icon?n(y,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",image:e.icon,width:"48",height:"48",asSVG:!0}):null,a("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e?.label?n("div",{className:"font-medium text-xl-light m-0 "+("primary"===r?"text-primary-text":""),children:e.label}):null,e?.description?n("div",{className:"font-normal text-sm "+("primary"===r?"text-secondary-text":""),children:e.description}):null]})]},String(t))}(e,t,i)))}):null]})]})));const _=e=>e?.includes("//"),j=e=>(e||"").replace(/\/?\?.*/,""),G=e=>{if(!e||!_(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t},O=e=>{if(!e||!_(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var U=Object.freeze({__proto__:null,isURL:_,withoutQuery:j,getOrigin:G,getHash:O,isHash:e=>e?.startsWith("#")});const F="/mobile",E=(e,t)=>{if(!e)return e;const n=G(t?.href);return n?e.replace(n,"")||"/":e},W=e=>e;function H({router:e,handlerDecorator:t=W},n){const a=((e,t)=>{if(!e)return e;const n=E(e,t)||"",a=t?.pathname.startsWith(F);return a&&!_(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const r=a&&!_(a),l=!n.target||"_self"===n.target;r&&l&&(t?.preventDefault(),e.push(a))}),n)}}const z=r((({text:e,href:t,target:a,onClick:r,className:l="",children:i})=>t?n("a",{className:`no-underline ${l}`,href:t,target:a,onClick:r,children:n("span",{className:l,children:e||i})}):n("span",{className:l,children:e||i})));function X(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const J=r((e=>{const{text:t,aboveText:r,appendLeft:l,appendRight:i}=e;return a("div",{className:q(e),children:[l||null,K(e)?a("div",{children:[n("div",{className:"text-xs text-left",children:r}),n("div",{className:"text-left "+(r?"text-s -mt-0.5":"text-base"),children:t})]}):null,i||null]})})),q=e=>{const{version:t,aboveText:n,rounded:a}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-9");return["flex items-center justify-center",K(e)?r:"h-12 w-12",a?"rounded-full":""].join(" ")},K=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},Z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Y="text-center font-sans select-none",ee=r((e=>{const{text:t,aboveText:a,appendLeft:r,appendRight:l,children:i,disabled:s,rounded:o,...c}=e,d=i??n(J,{text:t,aboveText:a,appendLeft:r,appendRight:l,rounded:o});return n(s?ne:te,{rounded:o,...c,children:d})})),te=r((({className:e="",ariaLabel:t,version:a="none",rounded:r,href:l,target:i,children:s,onClick:o,...c})=>n("a",{className:`${Y} inline-block cursor-pointer no-underline ${Q[a]||""} ${r?"rounded-full":"rounded-md"} ${e}`,href:l,target:i,onClick:o,"aria-label":t,role:l?"link":"button",...c,children:s}))),ne=r((({className:e,children:t,ariaLabel:a,version:r="none",rounded:l})=>n("div",{role:"button","aria-disabled":"true","aria-label":a,tabIndex:-1,className:`inline-block ${Y} ${Z[r]||""} ${l?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),ae=r((({context:e,className:t="",buttons:a})=>{const{handlerDecorator:r}=e,l=e.useRouter();return a&&a?.length?n("div",{className:t,children:a.map(((e,t)=>function({icon:e,iconRight:t,...a},r){if(!a?.text)return null;return n(ee,e?{appendLeft:n(y,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:n(y,{image:t,width:"24",height:"24",asSVG:!0}),...a}:{...a},String(r))}(H({router:l,handlerDecorator:r},e),t)))}):null}));const re={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},le={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ie=r((({className:e="",isDotted:t=!0,children:r,version:l="primary"})=>a("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:se(l)}):null,n("span",{children:r})]}))),se=e=>`${re[e]} ${le[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,oe={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},ce=r((e=>{const{className:t="",itemClassName:a,isDotted:r,items:l,version:i="primary"}=e;return n("section",{className:`${oe[i]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(ie,{className:a,isDotted:r,version:i,children:e},String(t)))):null})})),de=r((({className:e="",title:t="",children:r,buttons:l,image:i})=>a("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,a("div",{className:"flex grow w-full justify-between",children:[a("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:r}),l?n("div",{children:l}):null]}),i]})]}))),me={primary:"text-primary-text",secondary:"text-white"},he={primary:"text-secondary-text",secondary:"text-white"};function xe(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${n}`}const ue=r((({className:e="",context:t,title:r,headlineVersion:l="L",description:i,benefits:s,benefitsVersion:o="normal",buttons:c,image:d,items:m,version:h="primary",isDotted:x=!0,textBlockClassName:u=""})=>a("div",{className:`flex grow justify-between items-stretch ${e}`,children:[a("div",{className:`flex flex-col ${u}`,children:[n($,{context:t,title:r,description:i,className:"!p-0 max-w-[600px]",bgColorHeadline:h,headlineVersion:l}),a(de,{context:t,buttons:pe(t,c),children:[s?.filter((e=>e.label))?.length?n("div",{className:"flex gap-6 mt-6",children:s.map(((e,t)=>function({benefit:e,version:t="primary",benefitsVersion:r="normal"},l){const i="white"===r||"secondary"===t;return a("div",{className:"flex gap-4 items-center",children:[e.icon?n(y,{className:xe(t,r),image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,a("div",{className:"flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]",children:[n("div",{className:`text-h6 m-0 ${me[t]}`,children:e.label}),e.description?n("div",{className:`text-m ${he[t]}`,children:e.description}):null]})]},String(l))}({benefit:e,version:h,benefitsVersion:o},t)))}):null,m?.length?n(ce,{className:"mt-5 text-h6 font-light",items:m,itemClassName:"mb-[7px]",version:h,isDotted:x}):null]})]}),d?.src&&n(y,{className:"mt-[-50px]",image:d})]}))),pe=(e,t)=>t?.length?n(ae,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null;function ge(e,t,r){const{text:l,href:i,target:s,onClick:o}=e,c="primary"===t?"white":"black";return a("div",{className:`flex items-center ${r}`,children:[n(ee,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:l,href:i,target:s,onClick:o,children:n(y,{className:"w-4 h-4",image:{...e?.icon||{icon:"ArrowLeftIcon"},iconVersion:c},asSVG:!0})}),l?n("span",{className:"text-m",children:l}):null]})}const be={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},fe={primary:"text-secondary-text",secondary:"text-white/80"},Ne=r((e=>{const{context:t,className:r="",breadcrumbs:l,backwardButton:i,version:o="primary",...c}=e,d=t.useRouter(),{handlerDecorator:m}=t;return a(s,{context:t,className:`font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${be[o]} ${r}`,...c,children:[i?.text?ge(H({router:d,handlerDecorator:m},i),o,"mb-10 -mt-2.5"):null,l?.length?n("div",{className:"text-xs mb-6",children:X(n("span",{className:`mx-2 ${fe[o]}`,children:"/"}))(l.map(((e,t)=>n(z,{...H({router:d,handlerDecorator:m},{className:fe[o],...e})},String(t)))))}):null,n(ue,{context:t,version:o,...c})]})})),ve={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"}},ye=r((({title:e,description:t,blockVersion:r="primary",iconVersion:l,image:i,className:o,...c})=>{const d=ve[r];return a(s,{className:`font-sans px-9 py-4 flex ${d.background} ${o||""}`,...c,children:["small"===l?we(d.icon):null,"big"===l?Ie(i):null,a("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null]})]})}));function we(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function Ie(e){return e?.src?n(y,{className:"pt-0.5 pr-3",image:e}):null}const Ce=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ke(e=""){const t=Ce(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Se(e=""){const t=Ce(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const $e={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Te=r((e=>{const{context:t,title:r,headingType:l="h3",description:i,items:o,children:d,buttons:m,image:h,isDotted:x=!0,className:u="",version:p="primary",...g}=e;return n(s,{context:t,className:`overflow-hidden font-sans p-9 pr-3 box-border ${u} ${$e[p]} ${Se(u)} ${ke(u)} `,...g,children:a(de,{context:t,title:r?n(c,{headingType:l,as:"h3",title:r,className:"whitespace-pre-wrap max-w-[600px] text-h4\n "+("primary"===p?"text-primary-text":"")}):null,buttons:m?.length?n(ae,{context:t,buttons:m.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-9 gap-3"}):null,image:h?.src?n(y,{className:"mt-auto ml-7",image:h}):null,children:[i?n(S,{className:"max-w-[600px] text-xl-light mt-2",description:i}):null,d,Be(o,p,x)]})})}));function Be(e,t,a){const r="primary"===t?"tile":"tile-white";return e?.length?n(ce,{items:e,isDotted:a,itemClassName:"text-h6 font-light mt-2",version:r}):null}const De={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Re=r((({context:e,className:t="",title:r,headlineVersion:l="S",description:i,additionalDescription:o,benefits:c,buttons:d,image:m,version:h="primary",...x})=>a(s,{context:e,className:`bg-white overflow-hidden text-primary-text font-sans p-9 box-border min-h-[364px] relative justify-between grid ${t} ${De[h]} ${Se(t)} ${ke(t)} `,...x,children:[a("div",{className:"z-[1]",children:[n($,{context:e,className:"!p-0",title:r,description:i,headlineVersion:l}),Ae(c||[],h),o?Me(o,h):null]}),d?.length?n(ae,{context:e,buttons:d,className:"flex self-end mt-5 gap-4 z-[1]"}):null,m?.src?n(y,{className:"absolute right-0 bottom-0",image:m}):null]})));function Ae(e,t){return a("div",{className:"flex mt-4",children:[e.length?n("div",{className:"mr-6 gap-2.5 text-h6",children:e.map(Le)}):null,e.length?n("div",{className:"pt-1 text-m",children:e.map(((e,a)=>function(e,t,a="primary"){return n("div",{className:`${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[a]}`,children:e.description},String(t))}(e,a,t)))}):null]})}function Le(e,t){return n("div",{className:""+(t?"mt-2.5":""),children:e.label},String(t))}function Me(e,t="primary"){return n("div",{className:`text-m mt-2.5 ${{primary:"text-secondary-text",secondary:"text-white"}[t]}`,children:e})}const Pe=r((({className:e,disabled:t,...a})=>n(ee,{rounded:!0,className:`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,...a,children:n(y,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},width:"16",height:"16",asSVG:!0})})));function Ve({handler:e,isShown:t,btnClass:r,className:l="",isDisabled:i=!1}){return a("div",{children:[t[0]||i?n(Pe,{className:`absolute z-10 ${r[0]} ${l}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||i?n(Pe,{className:`absolute z-10 rotate-180 ${r[1]} ${l}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const _e={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},je={normal:3,mini:4},Ge={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Oe={normal:380,mini:276},Ue=r((({title:e,description:t,image:r,items:l,button:i,version:s,isDotted:o=!0})=>{const c=function(e){return`text-xl-light m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(s);return a("div",{className:"h-full flex flex-col justify-between text-center",children:[a("div",{children:[r?.src?n("div",{className:"flex justify-center",children:n(y,{className:"mb-6",image:r})}):null,e?Ee(e,c):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,l?.length?We(l,o,s):null]}),i?.text?Fe(i):null]})}));function Fe(e){return n(ee,{className:"mt-6 w-full",appendLeft:e.icon&&n(y,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Ee(e,t){return n("div",{className:`text-xl-light m-0 ${t}`,children:e})}function We(e,t,a="primary"){return n(ce,{className:"max-w-[308px] mt-2 text-sm "+("primary"===a?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:a})}const He=r((({context:e,title:t,description:r,cards:l=[],version:i="normal",activeCardIndex:s})=>a("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),a("div",{className:"flex flex-col items-center mb-8",children:[t?n(c,{headingType:"h2",className:"text-center",title:t}):null,r?n("div",{className:"font-light text-md max-w-[600px] mt-2.5",children:r}):null]}),n("div",{className:`flex ${l?.length<=je[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${s*Oe[i]}px)`},role:"list",children:l?.map(((t,a)=>function({card:e,version:t},a){return n("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Ge[t]} ${_e[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Ue,{...e})},String(a))}({card:t,version:i,context:e},a)))})]})));const ze=r((({context:e,cards:t=[],className:r="",version:l="normal",...i})=>{const[o,c]=e.useState(0),d=t?.length>je[l],m=d&&t?.length-o>je[l],h=d&&o>0;return a(s,{context:e,className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${r}`,...i,children:[n(He,{context:e,cards:t,version:l,activeCardIndex:o,...i}),Ve({handler:[()=>c(o-1),()=>c(o+1)],isShown:[h,m],btnClass:["left-8","right-8"],className:"top-1/2"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]})})),Xe=r((e=>n(ze,{...e,version:"normal"}))),Je=r((e=>n(ze,{...e,version:"mini"}))),qe=r((({className:e="",documents:t,...a})=>n(s,{className:`font-sans bg-white mt-[10px] ${e}`,...a,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Ke(t):null})}))),Ke=e=>e.map(((e,t)=>{const{text:a,...r}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...r,children:a||null})},`list_item_${String(t)}`)})),Qe={Headline:$,LinkDocs:M,TextBlock:ye,PictureText:V,ProductBlock:Ne,Tile:Te,ProductTile:Re,Gallery:Xe,MiniGallery:Je,LinkList:qe},Ze=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Ye({context:t,className:n})):null,Ye=({context:e,className:t})=>(a,r)=>{if(!a)return null;const{style:l,blockListType:i,...s}=a;if(!i||!(i in Qe))return null;const o=w(l);return n(Qe[i],{className:`${t} ${o}`,context:e,...s},`block_${r}`)},et=r((({blocks:e,context:t})=>n("div",{className:"grid grid-cols-12 transition-all duration-300 max-h-0 overflow-hidden",children:Ze({context:t,blocks:e,className:"!p-0 mb-5"})}))),tt=r((({label:e,isExpanded:t,blocks:r,context:l})=>{const{isActive:i,hasContent:s,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[a,r]=e.useState(n),l=t?.length;return{isActive:a,hasContent:l,icon:a?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;r(!a);const n=t.nextSibling;n.style.maxHeight=n.style.maxHeight?"":`${n.scrollHeight}px`}}})({context:l,blocks:r,initialState:t});return a("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[a("button",{className:`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans\n ${s?"group cursor-pointer":""}\n `,onClick:c,children:[n("span",{className:"text-xl-light pr-2.5 font-medium",children:e}),s?n(y,{image:o,className:"text-primary-main",width:"24",height:"24",asSVG:!0}):null]}),s?n(et,{isExpanded:i,blocks:r,context:l}):null]})})),nt={left:"text-left",center:"text-center",right:"text-right"},at=r((({title:e,description:t,accordionItems:r,context:l,className:i="",accordionAlignTitle:o="center",...d})=>a(s,{context:l,className:`p-[50px] font-sans bg-white text-primary-text ${i}`,...d,children:[e?n(c,{headingType:"h4",className:`mb-2.5 ${nt[o]}`,title:e}):null,t?n("div",{className:"mb-2.5 text-base",children:t}):null,r?.length?n("ul",{className:"list-none m-0 p-0",children:r.map(((e,t)=>n(tt,{...e,context:l},`AccordionItem${t}`)))}):null]}))),rt=r((({className:e="",headingType:t="h2",title:r,benefitList:l,...i})=>a(s,{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e}`,...i,children:[r?n(c,{headingType:t,as:"h2",className:"max-w-[47rem] text-center",title:r}):null,l?.length?lt(l):null]}))),lt=e=>n("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-9",children:e.map(it)}),it=(e,t)=>{const r=e?.description||void 0;return a("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-[46px]",children:[e?.icon?n(y,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px] mr-5",image:e.icon,width:"70",height:"70"}):null,a("div",{children:[e?.label?n("h3",{className:"font-medium text-xl-light m-0",children:e.label}):null,st(r)]})]},String(t))},st=e=>{const t=e?e?.benefitType:null;return t&&e?n("div",{className:"font-light text-base text-secondary-text mt-2",children:"list"===t?ct(e):ot(e)}):null},ot=e=>e?e.name:null,ct=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?n("ul",{className:t,children:e.items.map(((e,t)=>n("li",{children:e},`benefitListItem-${t}`)))}):null},dt=r((e=>{const{className:t="",title:r,description:l,bonusItems:i,...o}=e;return n(s,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:a("div",{className:"container",children:[r?n(c,{headingType:"h3",className:"text-center",title:r}):null,l?n("div",{className:"text-md font-light text-center mt-[10px]",children:l}):null,n("div",{className:"flex flex-wrap w-full mt-9",children:i?i.map(((e,t)=>n("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0",children:a("div",{className:"flex justify-between w-full",children:[a("div",{className:"mr-4",children:[n("div",{className:"text-title-sm",children:e.title}),n("div",{className:"text-md font-light mt-[14px] max-w-[488px]",children:e.description})]}),e.bonusCount?a("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[n("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),n("span",{className:"text-[44px] bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})}));function mt(e=""){const t=Ce(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const ht=r((({className:e="",title:t,subtitle:r,bonusBenefits:l,...i})=>a(s,{className:`font-sans text-primary-text bg-white p-50 flex flex-col text-center ${e}`,...i,children:[t?n(c,{headingType:"h3",className:"mb-[10px]",title:t}):null,r?n("span",{className:"text-md font-normal",children:r}):null,l?.length?n("div",{className:`grid gap-1 ${mt(e)}`,children:l.map(xt)}):null]}))),xt=(e,t)=>a("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?n(y,{className:"h-[180px] w-[160px] min-w-[160px] min-h-[160px]",image:e.icon,width:"160",height:"180"}):null,n("div",{children:e?.label?n("span",{className:"title-2xs m-0",children:e.label}):null})]},String(t)),ut=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),pt=r((({title:e,value:t,postfix:r="",prefix:l,className:i=""})=>a("div",{className:`mb-5 ${i}`,children:[e?n("div",{className:"text-base font-light",children:e}):null,t?a("div",{className:"text-title font-normal",children:[l," ",ut(Math.round(t))," ",r]}):null]}))),gt=6e4,bt=2e6,ft=97e4,Nt=Math.round(23.5),vt={minSum:gt,maxSum:bt,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},yt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},wt=r((({rate:e,title:t="Ставка",unit:r,rateBlockClassName:l})=>a("div",{children:[n("div",{className:"text-sm font-light ml-3",children:t}),a("div",{className:"flex justify-start",children:[n("span",{className:`block calc-rate-text font-mohave text-title-huge pr-6 -mt-4 ${l}`,children:String(e).replace(".",",")}),r?n("span",{className:"calc-rate-text text-[65px] leading-[75px]",children:r}):""]})]})));function It(e,t){return t?.length?n(ae,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}const Ct=r((({className:e,title:t,items:r=[],min:l=1,max:i=100,step:s=1,value:o=l,onChange:c})=>{const d=e=>{if(!c)return;const t=Number(e.replace(/\D/g,""));c(t)},m={backgroundSize:`${(100*(o-l)/(i-l)).toFixed(2)}% 100%`};return a("div",{className:e,children:[a("label",{className:"block relative",children:[t?n("span",{className:"text-base text-secondary-text pl-4",children:t}):null,n("input",{className:"m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text",value:ut(o),onChange:e=>d(e.target.value),onBlur:()=>{c&&(o<l&&c(l),o>i&&c(i))}}),n("div",{className:"absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]",children:n("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:i,step:s,value:o,onChange:e=>d(e.target.value),style:m})})]}),n("div",{className:"flex justify-between my-3",children:r.map(((e,t)=>n("span",{className:"text-sm leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})})),kt=(e,t,n)=>Math.max(t,Math.min(e,n)),St=1e3;function $t(e,t,a){const{moneyValue:r,minSum:l,maxSum:i,step:s=St,isShowItems:o=!0}=t,c=[`От ${ut(l)} ₽`,`До ${ut(i)} ₽`];return n(Ct,{title:e,items:o?c:[],min:l,max:i,step:s,value:kt(r,l,i),onChange:a})}function Tt(e,t){const{data:n}=e(`/wcms-resources/${t}.json`,Bt);return n}async function Bt(e){const t=await fetch(e);return await t.json()}const Dt=(e,t,n)=>{const{travelExpenseValue:a,restExpenseValue:r}=t,l=Tt(e.useAsyncData,n||"bonus-calculator-data")||yt,[i,s]=((e,t,n)=>{const{minSumTravel:a,minSumOther:r,maxBonus:l,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===a&&n===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),l);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),l)*(12-i)]})(l,a,r);return{...l,...t,monthBonus:i,yearBonus:s}},Rt=r((({context:e,className:t="",sourceBookDir:r,buttons:l})=>{const[i,s]=e.useState(6e3),[o,c]=e.useState(6e3),d={travelExpenseValue:i,restExpenseValue:o},{minSumTravel:m,maxSumTravel:h,minSumOther:x,maxSumOther:u,monthBonus:p,yearBonus:g}=Dt(e,d,r);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[$t("Сумма покупок в категории путешествия, ₽",{minSum:m,maxSum:h,moneyValue:i,step:500,isShowItems:!1},s),$t("Сумма покупок в остальных категориях, ₽",{className:"mt-6",minSum:x,maxSum:u,moneyValue:o,step:500,isShowItems:!1},c)]}),n("div",{children:p>=0?n(wt,{title:"Баллов за месяц",rate:p,rateBlockClassName:"tracking-[-14px]"}):null}),a("div",{className:"w-[240px]",children:[g>=0?n(pt,{title:"Баллов за год",value:g}):null,It(e,l)]})]})})),At=r((({className:e,viewBox:t,fill:a="none",width:r,height:l,paths:i,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:a,width:r,height:l,children:i.map((({d:e,fill:t,...a},r)=>n("path",{d:e,fill:t||"currentColor",...s,...a},r)))}))),Lt=[{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"}],Mt=r((({className:e,text:t,checked:r,isRadio:l,onChange:i})=>n("div",{className:e,children:a("label",{className:"flex items-center cursor-pointer relative",children:[n("input",{className:`peer appearance-none w-5 h-5 border-solid\n ${l?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${r?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{i(e.target.checked)},checked:r}),l?n("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):n(At,{paths:Lt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?n("span",{className:"font-sans ml-3 text-m-base cursor-pointer",children:t}):null]})})));function Pt(e,t,a){const{minMonths:r,maxMonths:l,monthsValue:i}=t,s=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return n(Ct,{className:"mt-6",title:e,items:[`От ${s(r)}`,`До ${s(l)}`],min:r,max:l,step:1,value:kt(i,r,l),onChange:a})}const Vt=r((({items:e,checkedItem:t,onChangeCheckedItem:a})=>n("div",{children:e?.map((({id:e,text:r})=>n(Mt,{isRadio:!0,text:r,checked:t===e,onChange:()=>a(e)},e)))})));function _t(e,{items:t,checkedItem:a,onChange:r}){return n(Vt,{context:e,items:t,checkedItem:a,onChangeCheckedItem:r})}const jt=(e,t,n)=>{const{isInsurance:a,isSalaryClient:r,isStateEmployee:l,moneyValue:i}=t,s=Tt(e.useAsyncData,n||"credit-calculator-data")?.rows.find((e=>a===e.isInsurance&&r===e.isSalaryClient&&l===e.isStateEmployee))||vt,{rateBottomRange:o,rateTopRange:c,sumBorder:d}=s,m=i<=d?o:c,h=((e,t)=>{const{isAnnuity:n,moneyValue:a,monthsValue:r}=t;if(n){const t=e/1200;return a*(t+t/(Math.pow(1+t,r)-1))}return Math.round(a/r)+a*(e/1200)})(m,t);return{...s,...t,finalRate:m,monthlyPayment:h}},Gt="annuity",Ot="differential",Ut=[{id:Gt,text:"Аннуитетный"},{id:Ot,text:"Дифференцированный"}],Ft=r((({context:e,className:t="",sourceBookDir:r,buttons:l})=>{const[i,s]=e.useState(!1),[o,c]=e.useState(!0),[d,m]=e.useState(!1),[h,x]=e.useState(!1),[u,p]=e.useState(ft),[g,b]=e.useState(Nt),f=jt(e,{isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:h,moneyValue:u,monthsValue:g},r);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[$t("Сумма кредита, ₽",{...f,step:500},p),Pt("Срок кредита, месяцев",f,b),a("div",{className:"pt-7",children:[n(Mt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),n(Mt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:h,onChange:x}),n(Mt,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),n(wt,{title:"Ставка",rate:f.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),a("div",{className:"w-[351px]",children:[n(pt,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:f.monthlyPayment,postfix:"₽"}),_t(e,{items:Ut,checkedItem:i?Gt:Ot,onChange:e=>s(e===Gt)}),It(e,l)]})]})})),Et=r((({context:e,className:t="",buttons:r,rate:l})=>{const[i,s]=e.useState(ft),[o,c]=e.useState(Nt);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[$t("Сумма вклада, ₽",{moneyValue:i,minSum:gt,maxSum:bt},s),Pt("Срок вклада, месяцев",{minMonths:13,maxMonths:60,monthsValue:o},c)]}),n(wt,{rate:l||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),a("div",{className:"w-[351px]",children:[n(pt,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),n(pt,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),It(e,r)]})]})})),Wt=10.2;function Ht(e,t,a){const{moneyValue:r}=t,l=bt;return n(Ct,{className:"mt-6",title:e,items:[`От ${ut(6e4)} рублей`,`До ${ut(l)} рублей`],min:6e4,max:l,step:1e3,value:r,onChange:a})}function zt({credit:e,period:t,taxRefund:r}){return a("div",{children:[n(pt,{title:"Сумма кредита",value:e,postfix:"₽"}),n(pt,{title:"Срок",value:t,postfix:"лет"}),n(pt,{title:"Налоговый вычет",value:r,postfix:"₽"})]})}function Xt(e,t,a){const{moneyValue:r}=t,l=bt;return n(Ct,{title:e,items:[`От ${ut(6e4)} ₽`,`До ${ut(l)} ₽`],min:6e4,max:l,step:1e3,value:r,onChange:a})}const Jt={CreditCalculatorForm:Ft,MortgageCalculatorForm:r((({context:e,className:t="",buttons:r})=>{const[l,i]=e.useState(1e6),[s,o]=e.useState(12),[c,d]=e.useState(!1),[m,h]=e.useState(!1),x=(e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||Wt:t?.rateWithoutInsurance||Wt:Wt})({calculatorParams:{},isInsurance:c});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Xt("Стоимость недвижимости, ₽",{moneyValue:l},i),Ht("Первоначальный взнос, ₽",{moneyValue:l},i),Pt("Срок ипотеки, месяцев",{minMonths:13,maxMonths:60,monthsValue:s},o),a("div",{className:"mt-7",children:[n(Mt,{text:"Страхование жизни",checked:c,onChange:d}),n(Mt,{className:"mt-4",text:"Страхование жизни, злоровья и временной утраты трудоспособности",checked:m,onChange:h})]})]}),a("div",{children:[n(wt,{rate:x,rateBlockClassName:"tracking-[-25px]",unit:"%"}),n(pt,{title:"Ежемесячный платеж",value:777777,postfix:"₽"})]}),a("div",{children:[n("div",{className:"w-[351px]",children:zt({credit:3892e3,period:15,taxRefund:65e4})}),It(e,r)]})]})})),DepositCalculatorForm:Et,BonusCalculatorForm:Rt},qt=({context:e,className:t})=>(a,r)=>{const l=a?.calcType;if(!l||!(l in Jt))return null;return n("section",{className:`box-border relative flex shrink-0 basis-full ${t}`,role:"listitem",children:n("div",{className:"box-border p-9 w-full",children:n(Jt[l],{context:e,...a,className:"flex justify-between"})})},String(r))},Kt=r((({className:e="",context:t,calculatorTabs:r=[],...l})=>{const i=r.map((e=>e.nav||{})),o=r.map((({calculatorBlock:e})=>e||{})),[c,d]=t.useState(0),[m,h]=t.useState(0),x=r?.length>3&&r?.length>m+3,u=m>0;return a(s,{context:t,className:`box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${e}`,...l,children:[a("div",{children:[i.length>1?Qt({tabsShift:m,tabsNav:i,activeSlideIndex:c,setActiveSlideIndex:d}):null,Ve({handler:[()=>h(m-1),()=>h(m+1)],isShown:[u,x],btnClass:["left-3","right-3"],className:"top-8"})]}),n("div",{className:"flex",style:{transform:`translateX(-${c}00%)`},role:"list",children:o?.length?o.map(qt({context:t,className:e})):null})]})}));function Qt({tabsShift:e,tabsNav:t,activeSlideIndex:r,setActiveSlideIndex:l}){return a("div",{children:[n("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-[38px] box-border duration-1000",children:n("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:r,onClick:l}){const i=t===r,s=i?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",o=i?"text-md-new mb-1.5":"text-base mb-[3px]",c=i?"text-base text-white":"text-m-md",d=i?"":"text-primary-main";return a("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border font-sans relative border border-main-stroke cursor-pointer text-left border-b-0 flex\n ${s}`,children:[n(y,{className:`h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${d}`,image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}),a("div",{className:"border-0",children:[n("div",{className:`font-medium ${o}`,children:e?.title}),n("div",{className:`text-secondary-text ${c}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:r,onClick:()=>l(t)})))})}),n("div",{className:"w-full h-2 bg-primary-main"})]})}const Zt={black:"bg-black",white:"bg-white"},Yt=r((({className:e="",title:t,description:r,image:l,price:i,button:s,colors:o})=>a("section",{className:`border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[l?.src?n(y,{className:"mb-5",image:l}):null,t?n(c,{headingType:"h6",as:"h5",className:"text-left mb-1.5",title:t}):null,r?n("div",{className:"text-m-md text-left mb-4",children:r}):null,o?.length?a("div",{className:"flex mb-4 text-m-md text-secondary-text",children:["Доступные цвета: ",o.map(en)]}):null,i?a("div",{className:"text-title-sm text-left",children:[i," ₽"]}):null,s?.text?n(ee,{className:"mt-6 w-full",...s}):null]}))),en=(e,t)=>n("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Zt[e]}`},String(t)),tn="absolute top-0 bottom-0 w-[84px]",nn=r((({context:e,cards:t=[],className:r="",title:l,description:i,...o})=>{const[d,m]=e.useState(0);return a(s,{context:e,className:`bg-white relative font-sans p-9 overflow-hidden text-center ${r}`,...o,children:[l?n(c,{headingType:"h2",className:"mb-6",title:l}):null,i?n(S,{className:"mb-6",description:i}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${430*d}px)`},role:"list",children:t?.length?t.map(an(e)):null}),rn({cardsCount:t.length,activeCardIndex:d,setActiveCardIndex:m}),n("div",{className:`${tn} left-0 bg-opacity-from-white`}),n("div",{className:`${tn} right-0 bg-opacity-to-white`})]})})),an=e=>(t,a)=>n(Yt,{context:e,...t},String(a)),rn=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const a=e>3;return Ve({handler:[()=>n(t-1),()=>n(t+1)],isShown:[a&&t>0,a&&e-t>3],btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"})},ln="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",sn="border-main-stroke border-solid border",on="border-main-divider border border-t-0 border-x-0",cn="w-[200px] mr-6",dn=r((({icon:e,image:t,title:r,link:l})=>a("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${sn} ${ln}`,role:"columnheader",children:[e&&!t?.src&&n(y,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&n(y,{className:"mb-[18px]",image:t}),r?n(c,{headingType:"h4",as:"h3",className:"text-center text-white",title:r}):null,l?.text&&n("div",{className:"mt-auto w-full",children:n(ee,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:n("div",{className:"font-medium text-xs py-[11px]",children:l.text})})})]}))),mn={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},hn=r((({children:e,activeCardIndex:t,columnWidth:a,version:r="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:mn[r],style:{transform:`translateX(-${t*a}px)`},children:e})}))),xn=r((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),un=r((({colHeaders:e,activeCardIndex:t,router:r,handlerDecorator:l})=>a(xn,{children:[n("div",{className:cn,role:"columnheader"}),n(hn,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(dn,{...e,link:e.link&&H({router:r,handlerDecorator:l},e.link)},String(t))))})]}))),pn=r((({cell:e,isFirstRow:t,isLastRow:a,isFillGradient:r})=>n("div",{className:`w-80 box-border flex flex-col ${sn} ${a?"border-t-0 rounded-b-md":"border-y-0"} ${r?ln:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${on} ${r&&t?"border-t":""} ${a?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>fn(e,t,r)))})}))),gn=(e=!1)=>"text-xl-light font-medium m-0 "+(e?"text-white":""),bn=(e=!1)=>"text-sm opacity-80 "+(e?"text-white":"text-secondary-text"),fn=({label:e,description:t},r,l)=>a("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?n("h4",{className:gn(l),children:e}):null,t?n("div",{className:bn(l),children:t}):null]},String(r)),Nn=(e=!1)=>`text-sm py-7 ${on} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,vn=r((({row:{header:e,data:t},activeCardIndex:r,isColoredFirstColumn:l,isFirstRow:i,isLastRow:s})=>a(xn,{children:[e?.title?n("div",{className:Nn(s),children:e.title}):null,t?.length?n(hn,{activeCardIndex:r,columnWidth:336,children:t.map(((e,t)=>n(pn,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:l&&0===t},String(t))))}):null]}))),yn=r((({isScrollAvailable:e,handleNextClick:t,handlePrevClick:a,showNextButton:r,showPrevButton:l})=>e?n("div",{children:Ve({handler:[a,t],isShown:[l,r],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null)),wn=r((({rowData:e,activeCardIndex:t,isColoredFirstColumn:r,...l})=>a("div",{className:"relative",children:[e.map(((e,a,{length:l})=>n(vn,{row:e,isFirstRow:0===a,isLastRow:a+1===l,activeCardIndex:t,isColoredFirstColumn:r},String(a)))),n(yn,{...l})]}))),In=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const r=e>t;return{handleNextClick:()=>a(n+1),handlePrevClick:()=>a(n-1),isScrollAvailable:r,showNextButton:r&&e-n>t,showPrevButton:Boolean(r&&n>0)}},Cn=r((({context:e,columns:t,rowHeaders:r,isShowAllRow:l,visibleRowLength:i,isColoredFirstColumn:s})=>{const o=e.useRouter(),{handlerDecorator:c}=e,d=t?.map((({header:e})=>e||{})),m=t?.map((({data:e})=>e))||[],h=r?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[{}]))}))).slice(0,l?r.length:i),[x,u]=e.useState(0),p=In({columnsLength:m.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:u}),{isScrollAvailable:g}=p;return a("div",{children:[a("div",{role:"table",children:[d?.length?n(un,{colHeaders:d,activeCardIndex:x,router:o,handlerDecorator:c}):null,h?.length?n(wn,{rowData:h,activeCardIndex:x,isColoredFirstColumn:s,...p}):null]}),g?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),kn=r((({className:e="",context:t,title:r,rowHeaders:l,columns:i,visibleRowLength:o=0,isColoredFirstColumn:d=!1,...m})=>{const[h,x]=t.useState(!o);return a(s,{context:t,className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...m,children:[n(c,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:r}),n(Cn,{context:t,columns:i,rowHeaders:l,isShowAllRow:h,isColoredFirstColumn:d,visibleRowLength:o}),o?Sn({isShowAllRow:h,onClick:()=>x(!h)}):null]})})),Sn=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:a("div",{className:"flex w-full",children:[n("div",{className:cn}),n("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:n("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})});async function $n(){try{const e=await fetch(Tn,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Bn)});return await e.json()}catch(e){return console.error(e),Promise.resolve()}}const Tn="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",Bn={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Dn=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:Rn(Number(t.rate_buy)),sell:Rn(Number(t.rate_sell))}),e}),[]),Rn=e=>Math.round(1e3*e)/1e3;var An;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(An||(An={}));const Ln=new Intl.NumberFormat("ru",{style:"currency",currency:An.RUB}),Mn=e=>e?Ln.format(e):"",Pn="text-left text-m text-secondary-text",Vn={USD:"DollarIcon",EUR:"EuroIcon"},_n=r((({className:e,exchangeCurrencyItems:t})=>a("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:a("tr",{children:[n("th",{className:Pn,children:"Валюта"}),n("th",{className:`${Pn} pl-11`,children:"Купить"}),n("th",{className:`${Pn} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>jn(e)))})]}))),jn=e=>{const t=e?.code;return a("tr",{className:"pb-1 text-h6",children:[n("td",{className:"pt-4",children:a("div",{className:"flex items-center",children:[t?n(y,{image:{icon:Vn[t]},width:"24",height:"24"}):null,n("span",{className:"ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11",children:Mn(e?.sell)}),n("td",{className:"pt-4 pl-11",children:Mn(e?.buy)})]},t)},Gn=r((({className:e="",address:t,distance:r})=>a("div",{className:`flex ${e}`,children:[n(y,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),a("div",{className:"ml-3",children:[t?n("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,r?a("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",r]}):null]})]}))),On=(e,t,n)=>{const a=Number(Un(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(a)},Un=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Fn=e=>{return(t=[[e=>e.value!==An.RUB&&e.oppositeValue!==An.RUB,()=>e.handleConvert(e.value,An.RUB)],[e=>e.value===An.RUB&&e.oppositeValue===An.RUB,()=>e.handleConvert(e.value,An.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function En(e){return n(ee,{className:"py-4 mr-1",version:e?.version,href:e?.href,target:"_blank",children:e?.text})}const Wn=r((({className:e="",id:t,name:a,type:r="text",placeholder:l,pattern:i,value:s,onChange:o})=>n("input",{className:e,id:t,name:a||t,type:r,pattern:i,placeholder:l,value:s,onChange:e=>(e=>{const t=e.target.validity.valid?e.target.value:s;o(t)})(e)}))),Hn=r((({className:e="",id:t,name:a,children:r,value:l,onChange:i})=>n("select",{className:e,id:t,name:a||t,value:l,onChange:e=>i(e.target.value),children:r}))),zn=r((({className:e="",value:t,selected:a,children:r})=>n("option",{className:e,value:`${t}`,selected:a,children:r})));function Xn(e){const{placeholder:t,rates:r,selected:l,value:i,setValue:s,setSelected:o}=e;return a("div",{className:"relative flex items-center",children:[n(Wn,{className:"h-13 border pl-4 pt-4 pb-4 rounded-md text-l w-full appearance-none -mr-12",placeholder:t,type:"text",value:i,onChange:s}),r.length?n(Hn,{className:"h-9 -translate-x-4 bg-transparent",value:l,onChange:e=>o(e),children:r.map(((e,t)=>n(zn,{value:e.code,children:e.code},String(t))))}):null]})}const Jn=r((({context:e,className:t="",currencyRatesBuy:n,currencyRatesSell:r,button:l})=>{const[i,s]=e.useState({inputSell:"",inputBuy:"",selectSell:n?.[0]?.code||An.RUB,selectBuy:r?.[0]?.code||An.USD}),o=e=>{s((t=>({...t,...e})))};return a("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[Xn({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:qn(i,o,r),value:i.inputSell,setValue:e=>Qn(o,r)(e,i.selectSell,i.selectBuy)}),Xn({placeholder:"Получу",rates:r,selected:i.selectBuy,setSelected:Kn(i,o,n),value:i.inputBuy,setValue:e=>Zn(o,n)(e,i.selectBuy,i.selectSell)}),l?.text?En(l):null]})})),qn=(e,t,n)=>a=>{t({selectSell:a}),Fn({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,r=e.selectBuy)=>{Qn(t,n)(e.inputSell,a,r)}})},Kn=(e,t,n)=>a=>{t({selectBuy:a}),Fn({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,r=e.selectSell)=>Zn(t,n)(e.inputBuy,a,r)})},Qn=(e,t)=>(n,a,r)=>{e({inputSell:Un(n),selectBuy:r});const l=t.find((e=>e.code===r))?.buy||t.find((e=>e.code===a))?.sell;l&&e({inputBuy:String(On(n,l,a===An.RUB)||"")})},Zn=(e,t)=>(n,a,r)=>{e({inputBuy:Un(n),selectSell:r});const l=t.find((e=>e.code===r))?.sell||t.find((e=>e.code===a))?.buy;l&&e({inputSell:String(On(n,l,a===An.RUB)||"")})},Yn={address:"Москва, ул.Ленина д.28",distance:"6км"},ea=r((({className:e="",context:t,title:r="Курсы обмена валют",button:l,...i})=>{const o=function(e){const{data:t}=e(Tn,$n),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?Dn(n):n}(t.useAsyncData),d=o.filter((e=>e.buy));d.unshift({code:An.RUB});const m=o.filter((e=>e.sell));return m.push({code:An.RUB}),n(s,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...i,children:n(de,{context:t,title:n(c,{headingType:"h4",title:r,className:"whitespace-pre-wrap text-h4"}),children:a("div",{className:"flex",children:[a("div",{className:"mr-14 pt-4",children:[o?n(_n,{className:"mb-[30px]",exchangeCurrencyItems:o}):null,n(Gn,{...Yn})]}),o.length&&d.length&&m.length?n(Jn,{className:"grow",context:t,currencyRatesBuy:d,currencyRatesSell:m,button:l}):null]})})})})),ta={"bg-white":"text-primary-main",transparent:"text-white"},na={"bg-white":"text-black",transparent:"text-white"},aa=r((({className:e="",href:t,logo:r,children:l=r?.title,targetBlank:i,bgColor:s="bg-white",hideTitle:o})=>a("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:i?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[n(y,r?.image?.src?{image:r.image,className:ta[s],width:"40",height:"45",asSVG:!0}:{image:{icon:"Logo"},className:`${ta[s]} w-10`,width:"40",height:"45",asSVG:!0}),o?null:ra(l,s,r?.title)]}))),ra=(e,t,a)=>n("span",{className:`${na[t]} font-medium ml-2.5`,children:e||a||"Россельхозбанк"}),la=r((({className:e,context:t,isMobile:r=!1})=>{const{term:l,setTerm:i}=t.useSearch(),s=r?"font-normal text-sm":"font-light text-base",o=r?" placeholder-transparent font-normal":"font-light h-full",c=r?"some search":void 0;return a("form",{className:`font-sans relative ${e}`,children:[a("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:r?"w-[20px] h-[20px]":"w-[24px] h-[24px]",children:n(y,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${s}`,children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-base text-black border border-solid rounded box-border\n outline-none pr-[6%] border-main-divider focus:border-primary-text ${o}`,value:l,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:c}),r?n("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(),i("")},children:n(y,{image:"CloseIcon",width:"24",height:"24"})}):n(ee,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),ia=r((({className:e="",context:t})=>n(la,{context:t,className:e}))),sa=r((({className:e="",items:t,hasButton:r,context:l})=>{const i=l.useRouter(),{handlerDecorator:s}=l;return a("div",{className:e,children:[t?.length?t.map(oa):null,r?n(ee,{version:"primary",className:"mb-6 w-full",...H({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),oa=(e,t)=>{const{type:r,text:l,description:i}=e;return a("div",{className:"mb-4",children:[n("div",{children:ca(r,l)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},ca=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`tel:${da(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},da=e=>e.replaceAll(/\D/g,""),ma=r((({className:e="",index:t,text:a,href:r,target:l,onClick:i})=>n("a",{className:`font-sans text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:l,onClick:i,children:a||`Документ ${t}`}))),ha=r((({links:e,className:t="",context:a})=>{const r=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:t,children:e?.length?n("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>n(ma,{index:t,className:"font-light max-w-[292px]",...H({router:r,handlerDecorator:l},e)},String(t))))}):null})})),xa=e=>t=>e?.href===t?.href,ua=(e,t)=>{return(a=e,r=t,(a||[]).map((e=>r?.find(xa(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(xa(e))))));var n,a,r};function pa(e){const{data:t}=e(ba(),ga);return t||{}}async function ga(){const e=await fetch(ba());return await e.json()}function ba(){return`/wcms-resources/${h.SITEMAP||"sitemap"}.json`}const fa=r((({className:e="",items:t,context:a})=>{const r=pa(a.useAsyncData),l=ua(r.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return n("div",{className:`flex items-start justify-between gap-11 xl:gap-5 ${e}`,children:l?.map(((e,t)=>Na(e,t,i)))})})),Na=(e,t,{router:r,handlerDecorator:l})=>{const{text:i,href:s,items:o,target:c}=e;return a("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-[14px]",children:[n("a",{className:"block font-sans leading-5 text-base text-primary-text no-underline",href:s,target:c||"_self",children:i||`Раздел ${t}`}),o?.map(((e,t)=>n(va,{...H({router:r,handlerDecorator:l},e),index:t},String(t))))]},String(t))},va=r((({text:e,href:t,target:a,index:r})=>n("a",{className:"block font-sans font-light text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:a||"_self",children:e||`Раздел ${r}`}))),ya=[{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"}],wa=r((({href:e,version:t="primary"})=>{const{icon:a,label:r}=ya.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!a)return null;const l="primary"===t;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-main-divider border-solid border-[1px] hover:bg-primary-main"} ${l?"hover:text-black":""}`,href:e,"aria-label":r,target:"_blank",rel:"noopener noreferrer",children:a?n(y,{image:a,imageClassName:l?"group-hover:text-white":"",width:"24",height:"24",asSVG:!0}):null})})),Ia=r((({className:e="",media:t,version:r,context:l,children:i})=>{const s=l.useRouter(),{handlerDecorator:o}=l;return a("div",{children:[n("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>n(wa,{version:r,...H({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),Ca=r((({className:e="",index:t,text:a,href:r,target:l,onClick:i})=>n("a",{className:`font-sans text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:i,children:a||`Документ ${t}`}))),ka=r((({className:e,links:t,context:r})=>{const l=r.useRouter(),{handlerDecorator:i}=r;return a("div",{className:`${e||""}`,children:[n("div",{className:"pt-5",children:n("span",{className:"font-sans font-light text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>n(Ca,{index:t,className:"font-light",...H({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),Sa="w-[204px]",$a=r((({className:e,documents:t,relatedEnterprises:r,contacts:l,socialMedia:i,mobileApps:o,topItems:c,context:d,...m})=>a(s,{Tag:"footer",context:d,className:`p-9 bg-white ${e||""}`,...m,children:[a("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(aa,{className:Sa}),n(ia,{context:d,className:"grow"})]}),a("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[a("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[n(sa,{items:l,context:d,hasButton:!0}),n(Ia,{media:i,context:d,children:"Соцсети"}),n(Ia,{className:"mt-6",media:o,context:d,children:"Мобильное приложение"})]}),n(fa,{className:"pt-[3px]",context:d,items:c})]}),n(ha,{className:"mt-[98px]",links:r,context:d}),n(ka,{links:t,context:d})]}))),Ta=r((({className:e="",title:t,description:r,calendar:l,...i})=>a(s,{className:`font-sans bg-white p-[50px] ${e}`,...i,children:[n(c,{headingType:"h3",className:"text-center",title:t}),n("div",{className:"font-light text-base-md text-center mt-3",children:r}),l?Ba(l):null]}))),Ba=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),r=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return a("div",{className:"w-full flex flex-col justify-center mt-[54px]",children:[n("div",{className:"flex w-full mb-3 font-light text-m-title-md text-center",children:r.map((e=>Da(e,t)))}),n("div",{className:"flex w-full",children:r.map(((e,t)=>a("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:[n("div",{className:"flex",children:Ra(e)}),a("div",{className:"font-light text-sm text-primary-text mt-3",children:[n("span",{children:e.text})," ",n("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Da=(e,t)=>e.month.map(((e,a)=>n("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${a}`))),Ra=e=>e.month.map((e=>e.image?.src?n("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:n(y,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Aa={ProductBlock:Ne,ProductTile:Re},La=r((({groupBlocks:e,context:t})=>n("div",{className:"grid grid-cols-12 gap-1 box-border",children:e?.length?e.map(Ma(t)):null}))),Ma=e=>(t,a)=>{const r=t?.blockType;if(!r||!(r in Aa))return null;const l=w(t?.style);return n(Aa[r],{context:e,...t,className:l},`block_${a}`)},Pa=r((e=>{const{className:t="",tabs:a,currentTag:r,isShowCounter:l=!1,onTabClick:i}=e;return n("div",{className:`box-border flex gap-x-1 h-14 ${t}`,role:"tablist",children:a?.map(Va({currentTag:r,isShowCounter:l,onTabClick:i}))})})),Va=({currentTag:e,isShowCounter:t,onTabClick:r})=>(l,i)=>{const s=e===l.tag,o="text-m "+(s?"text-white":"text-secondary-text group-hover:text-primary-main"),c="min-w-[22px] w-[22px] h-[22px] rounded-full text-xs ml-2\n "+(s?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main");return a("div",{className:`flex-1 flex items-center justify-center cursor-pointer ${s?"bg-primary-main":"group bg-white"}`,role:"tab",onClick:()=>r(l.tag),"aria-selected":s,children:[l?.title?n("div",{className:o,children:l.title}):null,t?n("div",{className:`flex items-center justify-center ${c}`,children:l.count}):null]},String(i))},_a=r((({className:e="",tabs:t,context:r,groupBlocks:l=[],isShowCounter:i,...o})=>{const[c,d]=r.useState(t?.[0]?.tag),m=(h=l,(x=c)?h.filter((e=>e?.tags?.includes(x))):h);var h,x;const u=t?.map((e=>{const t=e.tag?l.filter((t=>t?.tags?.includes(e.tag))).length:l.length;return{...e,count:t}}));return a(s,{context:r,className:`box-border ${e}`,...o,children:[u?.length?n(Pa,{currentTag:c,onTabClick:d,tabs:u,isShowCounter:i}):null,l.length?n("div",{className:"mt-1",children:n(La,{context:r,groupBlocks:m})}):null]})})),ja=(e,t,n=((e,t)=>t.startsWith(e)))=>n(j(e),(e=>(e||"").replace(F,""))(j(_(e)?t.href:t.pathname))),Ga=e=>t=>ja(t.href,e),Oa=e=>t=>t.items?.some(Ga(e))||ja(t.href,e)||((e,t)=>G(e)===G(t.href))(t.href,e),Ua="font-sans font-light text-sm",Fa=r((({className:e="",text:t,href:a,target:r,active:l,flat:i,onClick:s,children:o,ariaLabel:c,bgColor:d="bg-white"})=>n("a",{className:`${Ea(d,l,i)} ${e}`,href:a,target:r,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:Wa(d,l,i),children:t||o})}))),Ea=(e,t=!1,n=!1)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},Wa=(e,t=!1,n=!1)=>{if("bg-white"!==e)return`text-white ${Ua}`;return`${t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${Ua}`},Ha=r((({className:e="",children:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":a,children:t}))),za={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Xa={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Ja={"bg-white":"black",transparent:"white"},qa=r((({context:e,className:t,defaultLocation:r="",bgColor:l="bg-white"})=>{const[i,s]=e.useGeolocation(r);return a("div",{className:`flex items-center ${t||""}`,children:[n(Fa,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),n(Fa,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),n(Ha,{className:`mr-5 ${za[l]}`,ariaLabel:"Поиск по сайту",children:n(y,{image:{icon:"LoupeIcon",iconVersion:Ja[l]},className:"h-full",asSVG:!0})}),n(Ha,{className:`${Xa[l]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(y,{image:{icon:"GridIcon",iconVersion:Ja[l]},className:"h-full bg-secondary-light rounded-full",asSVG:!0})})]})})),Ka=e=>(t=[])=>{const n=t?.filter(Ga(e));return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):void 0;var a},Qa="absolute left-0 -bottom-3 w-full h-[2px]",Za=r((({className:e="",text:t,href:r,target:l,active:i,onClick:s,children:o,bgColor:c="bg-white",dataItemName:d})=>a("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:r,target:l,onClick:s,"data-item-name":d,children:[n("span",{className:Ya(c,i),children:t||o}),i?n("div",{className:er(c,i)}):null]}))),Ya=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-light text-base`},er=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Qa}`:Qa,tr={"bg-white":"bg-primary-text",transparent:"bg-white"},nr=r((e=>{const{menuVisible:t,toggleMenu:r,menuItems:l,bgColor:i,context:s,activeSubItem:o}=e,{useRouter:c,handlerDecorator:d}=s,m=c();return a("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(t?"bg-white rounded-md shadow-blue-gray/24":""),children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:r,"aria-label":""+(t?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(i).map(rr)}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(t?"":"hidden"),"aria-hidden":!t,children:ar({menuItems:l,router:m,handlerDecorator:d,activeSubItem:o})})]})})),ar=({menuItems:e,router:t,handlerDecorator:a,activeSubItem:r})=>e?.map((e=>{return n("a",{...H({router:t,handlerDecorator:a},e),className:"text-base font-light pb-4 hover:text-primary-main "+(l=e,l===r?"text-primary-main":""),children:e.text},e.href);var l})),rr=(e,t)=>n("div",{className:`w-[3px] h-[3px] rounded mr-1 ${tr[e]}`},String(t)),lr=r((({context:e,subItems:t=[],bgColor:r})=>{const[l,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o,IntersectionObserverTag:c}=e,[d,m]=e.useState(t.length),h=t.slice(d),x=Ka(s)(t);return a("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:t.map(((e,t)=>{return n(c,{Tag:"span",observerCallback:(a=t,e=>{e.length&&(e[0].intersectionRatio<1?m((e=>Math.min(e,a))):m((e=>Math.max(e,a+1))))}),observerOptions:{threshold:1},children:n(Za,{className:"mr-8 "+(d-1<t?"invisible":""),active:e===x,...H({router:s,handlerDecorator:o},e),bgColor:r})},String(t));var a}))}),h.length?n(nr,{context:e,activeSubItem:x,menuVisible:l,toggleMenu:()=>i(!l),menuItems:h,bgColor:r}):null]})})),ir={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},sr=r((({className:e="",defaultLocation:t="Москва",showSubMenu:r=!0,bgColor:l="bg-white",context:i,topItems:o,logo:c,...d})=>{const m=i.useRouter(),h=pa(i.useAsyncData),{handlerDecorator:x}=i,u=ua(h.topItems,o),p=u.find(Oa(m)),g=u.map(((e,t)=>n(Fa,{active:e===p,...H({router:m,handlerDecorator:x},e),"aria-label":e.text,bgColor:l},String(t))));return n(s,{Tag:"header",context:i,className:`pt-6 pb-5 px-20 ${l} ${e}`,...d,children:a("div",{className:"container",children:[a("div",{className:"flex items-center",children:[n(aa,{className:"mr-8",bgColor:l,logo:c}),g,n(qa,{context:i,className:"ml-auto",defaultLocation:t,bgColor:l})]}),n("div",{className:`mt-6 h-[1px] ${ir[l]}`}),r&&p?.items?.length?n(lr,{context:i,subItems:p.items,bgColor:l}):null]})})})),or=r((({context:e,className:t="",title:r,description:l,image:i,benefits:o,sum:c,monthLimit:d,...m})=>a(s,{className:`px-[100px] py-[50px] bg-white text-primary-text font-sans ${t}`,context:e,...m,children:[n($,{context:e,className:"!p-0",title:r,description:l,headlineVersion:"M",align:"center"}),n("div",{children:a("div",{className:"mt-5 mx-auto flex justify-center gap-[122px] mt-[30px]",children:[i?.src?n(y,{image:i}):null,a("div",{className:"w-[558px] m-auto",children:[o?n("div",{className:"flex flex-col gap-4",children:o.map(cr)}):null,dr(c,d)]})]})})]})));function cr(e,t){return a("div",{className:"flex items-center gap-4",children:[e?.icon?n(y,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-secondary-light",image:e.icon,asSVG:!0}):null,a("div",{children:[e?.label?n("div",{className:"text-h6",children:e.label}):null,e?.description?n("div",{className:"mt-0.5 text-secondary-text text-m",children:e.description}):null]})]},String(t))}function dr(e,t){return e||t?a("div",{className:"bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4",children:[Number.isFinite(e)?mr("Страховая сумма:",e,Boolean(t)):null,Number.isFinite(t)?mr("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function mr(e,t,r){return a("div",{className:`flex justify-between items-center gap-2 w-full ${r?"w-fit":"w-full"}`,children:[n("span",{className:"text-secondary-text text-l-light",children:e}),a("span",{className:"text-primary-main text-h6",children:[ut(t)," ₽"]})]})}const hr=r((({className:e="",context:t,cards:r=[]})=>{const[l,i]=t.useState(0),[s,o]=t.useState(0),c=r?.length??0,d=r?.length>2&&c>s+2,m=c===s+2,h=s>0,x=r[l]?.href;return a("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[a("div",{className:"relative mt-7 overflow-hidden",children:[c?xr({tabsShift:s,cards:r,activeSlideIndex:l,isLastShift:m,setActiveSlideIndex:i}):null,Ve({handler:[()=>o(s-1),()=>o(s+1)],isShown:[h,d],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),h?n("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,d?n("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),n(ee,{className:"w-[240px] p-4 text-center",version:"primary",href:x,children:"Выбрать программу"})]})}));function xr({tabsShift:e,cards:t,activeSlideIndex:r,isLastShift:l,setActiveSlideIndex:i}){return n("div",{style:{transform:`translateX(-${l?460*e-240:460*e}px)`},className:"duration-1000 px-[50px]",children:n("div",{className:"w-full flex flex-nowrap gap-3.5 pb-[38px]",children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:r,onClick:l}){const i=t===r;return a("button",{type:"button",onClick:l,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(i?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?n(y,{className:"p-3 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"70",height:"70"}):null,a("div",{className:"flex gap-3.5",children:[e?.sum?ur("страховая сумма",e.sum):null,e?.fee?ur("страховой взнос",e.fee):null]}),pr(i)]},String(t))}({slide:e,i:t,activeSlideIndex:r,onClick:()=>i(t)})))})})}function ur(e,t){return a("div",{className:"flex flex-col text-left whitespace-pre",children:[a("span",{className:"text-h6",children:[ut(t)," ₽"]}),n("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function pr(e){return e?n(y,{className:"h-[24px] w-[24px] min-w-[24px] min-h-[24px] absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const gr=r((({className:e="",context:t,title:r,insuranceTabs:l=[],...i})=>{const[o,d]=t.useState(0);return a(s,{context:t,className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...i,children:[r?n(c,{className:"text-center",title:r,headingType:"h3"}):null,l?.length>1?n("div",{className:"p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]",children:l.map(((e,t)=>function({title:e,i:t,activeSlideIndex:a,onClick:r}){return n("button",{type:"button",onClick:r,"aria-label":e,className:"box-border px-4 py-3 text-m "+(t===a?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:o,onClick:()=>d(t)})))}):null,n("div",{className:"flex",style:{transform:`translateX(-${o}00%)`},role:"list",children:br({context:t,className:e,insuranceTabs:l})})]})})),br=({insuranceTabs:e,context:t,className:a=""})=>{const r=e?.map((e=>e.cards));return r?.length?r.map(((e,r)=>n(hr,{context:t,className:a,cards:e},String(r)))):null};const fr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Nr=r((({className:e="",context:t,title:r="Мобильное приложение",qr:l,buttons:i,version:o="primary",items:d,image:m,...h})=>{const x="primary"===o?"text-primary-text":"";return a(s,{context:t,className:`flex justify-between font-sans p-9 box-border relative\n ${Se(e)} ${ke(e)}\n ${fr[o]}\n ${e}`,...h,children:[n(de,{context:t,title:r?n(c,{headingType:"h4",as:"h3",title:r,className:`whitespace-pre-wrap max-w-[509px] mb-6\n ${x}`}):null,buttons:i?.length?n(ae,{context:t,buttons:i,className:"flex mt-[30px] gap-4"}):null,children:a("div",{className:"flex flex-1 items-center",children:[l?.src&&l?.href&&n("a",{href:l.href,target:"_blank","aria-label":r,children:n("img",{src:l.src,alt:r,title:r,width:"122",height:"122",className:"w-[122px] h-[122px] min-w-[122px] min-h-[122px] bg-secondary-light mr-4 rounded-md"})}),vr(o,d)]})}),m?.src?n("div",{className:"absolute right-0 bottom-0",children:n(y,{image:m})}):null]})})),vr=(e,t)=>t?.length?n(ce,{items:t,itemClassName:"base font-light mb-2 last:mb-0",version:"primary"===e?"tile":"tile-white"}):n("span",{className:"text-m text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),yr=r((({className:e,text:t,onClick:a,href:r,target:l,isActive:i})=>n("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${i?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:a,href:r,target:l,children:t}))),wr=r((({className:e,context:t,title:r,buttons:l,...i})=>{const o=t.useRouter(),{handlerDecorator:c}=t,d=Ka(o)(l);return a(s,{context:t,className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,...i,children:[n("h2",{className:"font-medium text-xl-light m-0",children:r}),l?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:l.filter((({text:e})=>e)).map(((e,t)=>n(yr,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===d,...H({router:o,handlerDecorator:c},e)},String(t))))}):null]})})),Ir=r((({className:e="",text:t,active:a,onClick:r,href:l,target:i="_self",children:s})=>n("a",{className:Cr(e,a),target:i,href:l,onClick:r,children:n("span",{className:kr(a),children:t||s})}))),Cr=(e,t=!1)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,kr=(e=!1)=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans text-m`,Sr=r((({className:e="",navigatorTabs:t,context:a,...r})=>n(s,{context:a,className:`sticky top-0 z-20 box-border flex gap-x-1 h-14 ${e}`,...r,children:t?t.map($r(a)):null}))),$r=e=>(t,a)=>{const{handlerDecorator:r,useRouter:l}=e,i=l(),s=O(i.href),o=s?t.href===s:0===a;return n(Ir,{active:o,...H({router:i,handlerDecorator:r},t)},t.text)},Tr="transition-all duration-300 max-h-0 overflow-hidden",Br=r((({blocks:e=[],context:t,hiddenBlocksNum:r=0,foldButtonClasses:l,foldButtonLabel:i,foldButtonDataTheme:s,isUnfolded:o,containerClasses:c,render:d=(e=>e)})=>{const m=kt(r,0,e.length),{icon:h,handleToggle:x,isActive:p}=(({context:e,initialState:t=!1})=>{const[n,a]=e.useState(t);return{icon:n?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;a(!n);const r=t.previousSibling.getElementsByClassName(Tr)[0];r.style.maxHeight=r.style.maxHeight?"":`${r.scrollHeight}px`},isActive:n}})({context:t,initialState:o}),g=l||"border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer",b=p?"Скрыть":i;return e?a("div",{children:[Dr(e,d,{blocksToHide:m,isActive:p,containerClasses:c}),r?a("button",{className:g,"data-theme":s,onClick:x,children:[n("span",{className:"pr-3",children:b}),h?n(u,{name:h,iconVersion:"white",width:"20",height:"20",asSVG:!0}):null]}):null]}):null})),Dr=(e,t,{blocksToHide:r,isActive:l,containerClasses:i})=>{const s=e.slice(0,e.length-r),o=e.slice(-r);return t(a("div",{children:[s,n("div",{className:`${Tr} ${i}`,children:o})]}),l)},Rr=r((({label:e,blocks:t,context:a,dataTheme:r,isUnfolded:l})=>{const i=Ze({context:a,blocks:t});return n("div",{className:"border-0 border-b border-solid border-main-divider",children:t?.length?n(Br,{foldButtonDataTheme:r,hiddenBlocksNum:t?.length,blocks:i,isUnfolded:l,context:a,foldButtonLabel:e,containerClasses:"grid grid-cols-12 gap-1 border-box",render:e=>n(Ar,{children:e})}):null})})),Ar=r((({children:e})=>n("div",{className:"box-border",children:e}))),Lr=r((({blockItems:e,colorPalette:t,context:a,className:r="",...l})=>n(s,{context:a,className:`font-sans text-primary-text ${r}`,...l,children:e?.length?n("div",{className:"box-border1",children:e.map(((e,r)=>n(Rr,{...e,dataTheme:t,context:a},`BlockItem${r}`)))}):null})));function Mr(e=""){const t=Ce(e);return t<=4?"S":t<=8?"M":"L"}const Pr=r((({className:e,context:t,title:r,description:l="Блок в разработке...",...i})=>a(s,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Se(e)} ${ke(e)} `,...i,children:[n($,{context:t,className:"!p-0 max-w-[600px]",title:r,description:l,headlineVersion:Mr(e)}),n("figure",{className:"m-0 min-w-[600px]",children:Vr()})]}))),Vr=(e=3)=>jr(100,e).map((e=>Math.floor(e))).map(_r),_r=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),jr=(e,t)=>[e].concat(t>0?jr(e/1.618,t-1):[]),Gr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Or={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},Ur={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Fr=r((({className:e="",context:t,slides:r=[],version:l="primary",...i})=>{const o=r.map((e=>e.nav)),c=r.map((e=>e.productBlock)),[d,m]=t.useState(0);return a(s,{context:t,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${Gr[l]}`,...i,children:[n("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${d}00%)`},role:"list",children:c.map(((e,a)=>function(e,t,a){const{version:r}=e,l=r?Or[r].title:"";return n("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:n("div",{className:"flex grow",children:n(ue,{className:`pl-[50px] z-[1] ${l}`,context:a,textBlockClassName:"mb-[154px]",...e})})},String(t))}({...e,version:l},a,t)))}),n("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border",children:o.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:r,onClick:l,version:i}){const s=t===r,o=s?"bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none":`min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10\n ${Ur[i]}`,c=s?"text-primary-text text-title-2xs":`text-base ${Or[i].title}`,d=s?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${Or[i].text}`,m="secondary"===i?"border-white/50":"border-black/50";return n("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${o} ${m}\n `,children:a("div",{className:"border-0 px-6",children:[n("div",{className:`font-medium ${c}`,children:e?.title}),n("div",{className:`text-secondary-text ${d}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:d,onClick:()=>m(t),version:l})))})]})}));const Er={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Wr=r((({className:e="",context:t,title:r="Акции и спецпредложения",date:l,description:i,buttons:o=[],version:c="primary",...d})=>n(s,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Er[c]} ${Se(e)} ${ke(e)} `,...d,children:n(de,{context:t,title:r?n("div",{children:n($,{context:t,title:r,className:"!p-0 max-w-[600px]",headlineVersion:Mr(e),bgColorHeadline:c})}):null,buttons:o?.length?n(ae,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:a("div",{className:"mt-1.5",children:[l?n("div",{className:"text-sm mb-2",children:Hr(l)}):null,n("div",{className:"text-base",children:i})]})})})));function Hr(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const zr=r((({context:e,className:t="",title:r,description:l,items:i,image:s,version:o,socialMedia:d})=>n("section",{className:`border border-solid box-border p-[30px] min-w-[524px] ${t}`,role:"listitem",children:a(de,{context:e,className:"flex justify-between",title:r?n(c,{headingType:"h4",as:"h3",className:"font-normal mb-3.5",title:r}):null,image:s?.src&&n(y,{className:"mt-auto ml-7",image:s}),children:[l?n(S,{className:"text-left",description:l}):null,i?.length?n(ce,{className:"text-md text-left font-light flex flex-col flex-1 gap-2",items:i,version:o}):null,n(Ia,{className:"pt-[42px] pb-0",media:d,version:o,context:e})]})}))),Xr="absolute top-0 bottom-0 w-[84px]",Jr=r((({context:e,recommendations:t=[],className:r="",title:l,version:i,...o})=>{const[d,m]=e.useState(0),h="secondary"===i?"border-white/50":"border-main-stroke";return a(s,{context:e,className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${r}`,...o,children:[l?n(c,{headingType:"h2",className:"mb-6",title:l}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*d}px)`},role:"list",children:t?.length?t.map(qr({context:e,version:i,className:h})):null}),Kr({cardsCount:t.length,activeCardIndex:d,setActiveCardIndex:m}),n("div",{className:`${Xr} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${Xr} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),qr=({context:e,version:t,className:a})=>(r,l)=>n(zr,{context:e,...r,version:t,className:a},String(l)),Kr=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:a})=>{const r=e>2;return n("div",{children:Ve({handler:[()=>a(t-1),()=>a(t+1)],isShown:[r&&t>0,r&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-6"})})},Qr=e=>Boolean(e?.icon||e?.src),Zr={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white"}},Yr=r((({className:e="",title:t,showLines:r=!0,steps:l=[],button:i,version:o="primary",...d})=>{const m=(e=>Zr[e])(o),h=l.length>3,x=h?"gap-x-3":"gap-x-[101px]",u=r?"":"opacity-0";return a(s,{className:["box-border font-sans text-primary-text bg-white",h?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",m.background,m.title,e].join(" "),...d,children:[t?n(c,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center mb-9",title:t}):null,l?.length?a("div",{className:"box-border",children:[n("div",{className:"flex items-center px-[88px]",children:X(n("div",{className:`h-0.5 w-full bg-secondary-light ${u}`}))(l.map(el(m)))}),n("div",{className:`flex justify-between whitespace-pre-line ${x}`,children:l.map(tl(m,Boolean(i?.text)))})]}):null,i?.text?n(ee,{className:"mt-8 w-full max-w-[240px]",version:"primary",...i}):null]})})),el=e=>({icon:t},a)=>n("div",{className:"flex flex-col items-center text-center",children:n("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 ${e.iconBackground}`,children:Qr(t)?n(y,{image:t,width:"48",height:"48",asSVG:!0}):n("span",{className:`text-h4 ${e.iconText}`,children:a+1})})},String(a)),tl=(e,t)=>(r,l)=>a("div",{className:"flex flex-col items-center justify-between text-center w-[276px] overflow-hidden",children:[a("div",{children:[r.label?n("div",{className:"text-xl m-0 mt-4",children:r.label}):null,r.description?n("div",{className:`text-l ${e.description} ${r.label?"mt-2":"mt-4"}`,children:r.description}):null]}),r?.button?.text&&!t?n(ee,{className:"mt-8 py-4 w-full max-w-[240px]",version:"primary",href:r?.button?.href,children:r.button.text}):null]},String(l)),nl=e=>e?.alt||e?.title||m[e?.icon?e.icon:""],al=r((({cell:e,isLastRow:t})=>n("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:n("div",{children:e.map(rl)})}))),rl=({label:e,description:t,list:r,image:l,buttons:i},s)=>a("div",{className:"first:pt-5 last:pb-5",children:[s>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?n("div",{className:"text-xl font-medium m-0",children:e}):null,t?n("div",{className:"text-sm text-secondary-text",children:t}):null,r?.items?.length?ll(r):null,l?n(y,{image:l}):null,i?.length?il(i):null]},String(s)),ll=e=>n(ce,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),il=e=>n("div",{children:e.map((({icon:e,rounded:t,...a},r)=>n(ee,{className:(r>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:nl(e),rounded:t,appendLeft:e?n(y,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...a},String(r))))}),sl=r((({row:{header:e,data:t},activeCardIndex:r,isLastRow:l})=>a(xn,{children:[n("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(l?"":"border-solid"),children:a("div",{className:"flex items-center text-primary-text",children:[e?.icon?n(y,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title]})}),t?.length?n(hn,{activeCardIndex:r,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(al,{cell:e,isLastRow:l},String(t))))}):null]}))),ol=r((({className:e,context:t,title:r,description:l,rowHeaders:i,columns:o,hiddenRowsNum:d=0,...m})=>{const[h,x]=t.useState(0),u=cl(o),p=dl(i,u),g=In({columnsLength:u.length,colsLengthForScroll:2,activeCardIndex:h,setActiveCardIndex:x}),b=p?.map(((e,t,{length:a})=>n(sl,{row:e,isLastRow:t+1===a,activeCardIndex:h},String(t))));return a(s,{context:t,className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,...m,children:[r?n(c,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:r}):null,l?n("div",{className:"mb-9 text-center text-m-base",children:l}):null,p?.length?n(Br,{blocks:b,hiddenBlocksNum:d,context:t,render:e=>n(ml,{tableArrowScrollControlProps:g,children:e}),foldButtonLabel:"Развернуть"}):null]})})),cl=e=>e?.map((({data:e})=>e))||[],dl=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),ml=r((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:r}=t;return a("div",{role:"table",children:[a("div",{className:"relative",children:[e,n(yn,{...t})]}),r?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),hl={Accordion:at,BenefitsBlock:rt,Bonus:dt,ComparisonTable:kn,Calculator:Kt,Catalog:nn,ExchangeRateTile:ea,Footer:$a,Gallery:Xe,GracePeriod:Ta,Header:sr,Headline:$,Insurance:or,InsuranceAmountBlock:gr,LinkDocs:M,MiniGallery:Je,MobileAppTile:Nr,NavigatorTabs:Sr,PictureText:V,ProductBlock:Ne,ProductGallery:Fr,ProductTile:Re,PromoTile:Wr,OtherProducts:Lr,Recommendation:Jr,StepsBlock:Yr,TariffsTable:ol,TextBlock:ye,Tile:Te,Navigation:wr,Placeholder:Pr,GroupBlock:_a,BonusBenefitsBlock:ht},xl=r((({className:e,onClick:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":a,children:ul()}))),ul=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("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"}),n("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"})]})},pl=r((({className:e,context:t,...r})=>{const l=t.useLikeService();return a(s,{Tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...r,children:[n(xl,{onClick:l.like,ariaLabel:"Поставить отметку «лайк»"}),n(xl,{onClick:l.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:l.likeCount})]})})),gl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),bl=r((({className:e="",context:t,blocksRegistry:r,data:{style:l,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:d=gl})=>{const{header:m}=s;return a("section",{className:`relative ${w(l)} ${e}`,"data-theme":c,children:[m?.blocks?.length?n("div",{className:`${w(m?.style)}`,children:m.blocks.map(((e,n)=>fl({block:e,blockDecorator:d,blocksRegistry:r,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>fl({block:e,blockDecorator:d,blocksRegistry:r,context:t},n)))}):null,o?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(pl,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function fl({block:e,blockDecorator:t,blocksRegistry:a,context:r},l){const{type:i}=e;i&&i in a||console.warn(`No block with "${i}" is registered`);const s=a[i||"Placeholder"]||Pr;return t({blockClassName:`scroll-mt-12 ${w(e.style)}`,block:e,render:e=>{const{version:t,content:a,anchor:o}=e.block;return n(s,{className:e.blockClassName,version:t,context:r,anchor:o,...a},`${i}-${l}`)}},`block-${l}`)}e.Blocks=hl,e.ContentPage=bl,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:a}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:a})),{token:n,name:a}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...a){if(!a.length)return[];const{token:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:r},body:JSON.stringify({node_ids:a})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(a){if(!a)return 0;const{token:r,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:r,UserID:l},body:JSON.stringify({node_id:a,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(a){if(!a)return 0;const{token:r,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:r,UserID:l},body:JSON.stringify({node_id:a,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=X,e.projectSettings=h,e.setup=t,e.url=U,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1 @@
1
+ <svg id="icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 40 45"><path fill="currentColor" d="m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z"/>,<path fill="currentColor" d="M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z"/>,<path fill="currentColor" d="M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z"/>,<path fill="currentColor" d="M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z"/>,<path fill="currentColor" d="M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"/></svg>
@@ -3,5 +3,5 @@ export declare const useActiveHandler: ({ context, blocks, initialState }: Activ
3
3
  isActive: boolean;
4
4
  hasContent: number | undefined;
5
5
  icon: "MinusIcon" | "PlusIcon";
6
- handleToggle: (e: MouseEvent) => void;
6
+ handleToggle: (e: any) => void;
7
7
  };
@@ -4,15 +4,15 @@ const useActiveHandler = ({ context, blocks, initialState = false }) => {
4
4
  const [isActive, setIsActive] = context.useState(initialState);
5
5
  const hasContent = blocks?.length;
6
6
  const icon = isActive ? 'MinusIcon' : 'PlusIcon';
7
- const getContentBlock = ({ currentTarget }) => currentTarget.nextSibling;
8
7
  const handleToggle = (e) => {
9
- if (!hasContent) {
8
+ const currentTarget = e.currentTarget;
9
+ if (!currentTarget) {
10
10
  return;
11
11
  }
12
12
  setIsActive(!isActive);
13
- const contentBlock = getContentBlock(e);
13
+ const contentBlock = currentTarget.nextSibling;
14
14
  contentBlock.style.maxHeight = contentBlock.style.maxHeight
15
- ? null
15
+ ? ''
16
16
  : `${contentBlock.scrollHeight}px`;
17
17
  };
18
18
  return { isActive, hasContent, icon, handleToggle };