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

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 (1315) hide show
  1. package/bin/migration-scripts/0.12.9.js +30 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +349 -180
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  6. package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  7. package/bundle/components/Calculator/CalculatorContent.d.ts +20 -1
  8. package/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
  9. package/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
  10. package/bundle/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
  11. package/bundle/components/Calculator/constants.d.ts +12 -0
  12. package/bundle/components/Calculator/getMonthlyPayment.d.ts +8 -2
  13. package/bundle/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
  14. package/bundle/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
  15. package/bundle/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
  16. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
  17. package/bundle/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
  18. package/bundle/components/CarouselProductCard/alignTextStyle.mobile.d.ts +1 -0
  19. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -2
  20. package/bundle/model/Attachment.d.ts +2 -0
  21. package/bundle/model/ContentPageDef.d.ts +0 -2
  22. package/bundle/model/JSXBlock.d.ts +2 -2
  23. package/bundle/ui-kit/RichText/RichTextProps.d.ts +7 -6
  24. package/bundle/utils/formatBytes.d.ts +1 -0
  25. package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  26. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  27. package/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
  28. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  29. package/dist/components/ApplicationForm/ResponseNotification.js +1 -1
  30. package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
  31. package/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  32. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  33. package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -4
  34. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  35. package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  36. package/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
  37. package/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  38. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  39. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +4 -0
  40. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
  41. package/dist/components/Bonus/Bonus.js +2 -2
  42. package/dist/components/Bonus/Bonus.js.map +1 -1
  43. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -2
  44. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  45. package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  46. package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  47. package/dist/components/BusinessBlock/BusinessCard.js +2 -2
  48. package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
  49. package/dist/components/Calculator/BonusCalculatorForm.js +2 -2
  50. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  51. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
  52. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  53. package/dist/components/Calculator/Calculator.js +5 -5
  54. package/dist/components/Calculator/Calculator.js.map +1 -1
  55. package/dist/components/Calculator/CalculatorContent.d.ts +20 -1
  56. package/dist/components/Calculator/CreditCalculatorForm.js +2 -2
  57. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  58. package/dist/components/Calculator/DepositCalculatorForm.js +3 -3
  59. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  60. package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
  61. package/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -0
  62. package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  63. package/dist/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
  64. package/dist/components/Calculator/RefinancingCalculatorForm.js +63 -0
  65. package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -0
  66. package/dist/components/Calculator/UnknownRate.js +1 -1
  67. package/dist/components/Calculator/UnknownRate.js.map +1 -1
  68. package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
  69. package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +23 -0
  70. package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -0
  71. package/dist/components/Calculator/constants.d.ts +12 -0
  72. package/dist/components/Calculator/constants.js +25 -1
  73. package/dist/components/Calculator/constants.js.map +1 -1
  74. package/dist/components/Calculator/getMonthlyPayment.d.ts +8 -2
  75. package/dist/components/Calculator/getMonthlyPayment.js +7 -2
  76. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  77. package/dist/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
  78. package/dist/components/Calculator/getRefinancingCalculatorLimitParams.js +10 -0
  79. package/dist/components/Calculator/getRefinancingCalculatorLimitParams.js.map +1 -0
  80. package/dist/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
  81. package/dist/components/Calculator/getRefinancingCalculatorRateParams.js +16 -0
  82. package/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -0
  83. package/dist/components/Calculator/rangeHelpers.js +7 -3
  84. package/dist/components/Calculator/rangeHelpers.js.map +1 -1
  85. package/dist/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
  86. package/dist/components/Calculator/useRefinancingCalculatorParams.js +57 -0
  87. package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -0
  88. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  89. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  90. package/dist/components/Carousel/Carousel.js +1 -1
  91. package/dist/components/Carousel/Carousel.js.map +1 -1
  92. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  93. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  94. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
  95. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  96. package/dist/components/CarouselCard/CarouselCard.js +2 -2
  97. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  98. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -3
  99. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  100. package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
  101. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  102. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  103. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  104. package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  105. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  106. package/dist/components/CarouselProductCard/CarouselProductCard.js +10 -9
  107. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  108. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
  109. package/dist/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
  110. package/dist/components/CarouselProductCard/alignTextStyle.js +4 -0
  111. package/dist/components/CarouselProductCard/alignTextStyle.js.map +1 -0
  112. package/dist/components/CarouselProductCard/alignTextStyle.mobile.d.ts +1 -0
  113. package/dist/components/CarouselProductCard/alignTextStyle.mobile.js +4 -0
  114. package/dist/components/CarouselProductCard/alignTextStyle.mobile.js.map +1 -0
  115. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  116. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  117. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  118. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  119. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  120. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +1 -1
  121. package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -1
  122. package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  123. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  124. package/dist/components/ComparisonTable/HeaderCell.mobile.js +2 -2
  125. package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
  126. package/dist/components/ComparisonTable/TableCell.js +1 -1
  127. package/dist/components/ComparisonTable/TableCell.js.map +1 -1
  128. package/dist/components/ComparisonTable/TableColumn.js +2 -2
  129. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  130. package/dist/components/ContactsBlock/ContactsBlock.js +2 -2
  131. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  132. package/dist/components/ContentPage/ContentPage.js +1 -1
  133. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  134. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +1 -1
  135. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
  136. package/dist/components/ExchangeRateOffice/renderCurrencies.js +3 -3
  137. package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
  138. package/dist/components/ExchangeRateOffice/renderTableHeader.js +1 -1
  139. package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
  140. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  141. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  142. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  143. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  144. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  145. package/dist/components/Footer/Contacts.js +4 -3
  146. package/dist/components/Footer/Contacts.js.map +1 -1
  147. package/dist/components/Footer/Footer.js +1 -1
  148. package/dist/components/Footer/Footer.js.map +1 -1
  149. package/dist/components/Footer/Footer.mobile.js +1 -1
  150. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  151. package/dist/components/GracePeriod/GracePeriod.js +1 -1
  152. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  153. package/dist/components/Header/Header.js +1 -1
  154. package/dist/components/Header/Header.js.map +1 -1
  155. package/dist/components/Header/Header.mobile.js +1 -1
  156. package/dist/components/Header/Header.mobile.js.map +1 -1
  157. package/dist/components/Header/HeaderBurger.js +1 -1
  158. package/dist/components/Header/HeaderSubMenu.js +1 -1
  159. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  160. package/dist/components/Headline/Headline.js +1 -1
  161. package/dist/components/Headline/Headline.js.map +1 -1
  162. package/dist/components/Headline/headlineVersionStyles.js +4 -4
  163. package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  164. package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
  165. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  166. package/dist/components/HorizontalLayout/gapStyles.js +6 -6
  167. package/dist/components/HorizontalLayout/gapStyles.js.map +1 -1
  168. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  169. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  170. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
  171. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  172. package/dist/components/InvestmentInfo/InvestmentInfo.js +7 -9
  173. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  174. package/dist/components/LinkDocs/LinkDocs.js +6 -2
  175. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  176. package/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -2
  177. package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  178. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  179. package/dist/components/MobileAppTile/renderDescription.js +1 -1
  180. package/dist/components/MobileAppTile/renderList.js +1 -1
  181. package/dist/components/MobileAppTile/renderList.js.map +1 -1
  182. package/dist/components/OfficeMap/OfficeMap.js +1 -1
  183. package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  184. package/dist/components/PictureText/PictureText.js +1 -1
  185. package/dist/components/PictureText/PictureText.js.map +1 -1
  186. package/dist/components/PictureText/renderInsuranceSumMonth.js +1 -1
  187. package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  188. package/dist/components/Placeholder/Placeholder.js +2 -2
  189. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  190. package/dist/components/ProductBlock/ProductBlock.js +1 -1
  191. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  192. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  193. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  194. package/dist/components/ProductTile/ProductTile.js +1 -1
  195. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  196. package/dist/components/PromoTile/PromoTile.js +1 -1
  197. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  198. package/dist/components/RollupItem/RollupItem.js +1 -1
  199. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  200. package/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  201. package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  202. package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
  203. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  204. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  205. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  206. package/dist/components/StepsBlock/StepsBlock.js +5 -5
  207. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  208. package/dist/components/StepsBlock/StepsBlock.mobile.js +3 -3
  209. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  210. package/dist/components/StepsBlock/renderStep.js +2 -2
  211. package/dist/components/StepsBlock/renderStep.js.map +1 -1
  212. package/dist/components/Tabs/renderGroupTab.js +1 -1
  213. package/dist/components/Tabs/renderGroupTab.js.map +1 -1
  214. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +1 -1
  215. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  216. package/dist/components/TariffsTable/TableTileHeader.js +1 -1
  217. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  218. package/dist/components/TariffsTable/TariffsTable.js +2 -8
  219. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  220. package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
  221. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  222. package/dist/components/TariffsTable/TariffsTableRenderCell.js +1 -1
  223. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  224. package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  225. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  226. package/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
  227. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  228. package/dist/components/Tile/Tile.js +1 -1
  229. package/dist/components/Tile/Tile.js.map +1 -1
  230. package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  231. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  232. package/dist/content-page-repository/transformDocument.js +3 -0
  233. package/dist/content-page-repository/transformDocument.js.map +1 -1
  234. package/dist/content-page-repository/transformImg.js +1 -1
  235. package/dist/content-page-repository/transformImg.js.map +1 -1
  236. package/dist/model/Attachment.d.ts +2 -0
  237. package/dist/model/ContentPageDef.d.ts +0 -2
  238. package/dist/model/JSXBlock.d.ts +2 -2
  239. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
  240. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  241. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  242. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  243. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  244. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  245. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  246. package/dist/ui-kit/BlockWrapper.js +1 -1
  247. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  248. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  249. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  250. package/dist/ui-kit/Dialog/Dialog.js +1 -1
  251. package/dist/ui-kit/Dialog/Dialog.js.map +1 -1
  252. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +3 -3
  253. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  254. package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
  255. package/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  256. package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  257. package/dist/ui-kit/Input/Input.js +1 -1
  258. package/dist/ui-kit/Input/Input.js.map +1 -1
  259. package/dist/ui-kit/InputRange/InputRange.js +1 -1
  260. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  261. package/dist/ui-kit/LinkButton/LinkButton.js +2 -2
  262. package/dist/ui-kit/List/List.js +4 -4
  263. package/dist/ui-kit/List/List.js.map +1 -1
  264. package/dist/ui-kit/List/ListItem.js +3 -3
  265. package/dist/ui-kit/List/ListItem.js.map +1 -1
  266. package/dist/ui-kit/LocationDialog/LocationDialog.js +3 -3
  267. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  268. package/dist/ui-kit/Logo/renderTitle.js +1 -1
  269. package/dist/ui-kit/Logo/renderTitle.js.map +1 -1
  270. package/dist/ui-kit/RichText/RichTextProps.d.ts +7 -6
  271. package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  272. package/dist/ui-kit/Select/Select.js +1 -1
  273. package/dist/ui-kit/Select/Select.js.map +1 -1
  274. package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  275. package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  276. package/dist/utils/formatBytes.d.ts +1 -0
  277. package/dist/utils/formatBytes.js +13 -0
  278. package/dist/utils/formatBytes.js.map +1 -0
  279. package/lib/common.css +1 -1
  280. package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  281. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  282. package/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
  283. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  284. package/lib/components/ApplicationForm/ResponseNotification.js +1 -1
  285. package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
  286. package/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  287. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  288. package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -4
  289. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  290. package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  291. package/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
  292. package/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  293. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  294. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +2 -0
  295. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
  296. package/lib/components/Bonus/Bonus.js +2 -2
  297. package/lib/components/Bonus/Bonus.js.map +1 -1
  298. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -2
  299. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  300. package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  301. package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  302. package/lib/components/BusinessBlock/BusinessCard.js +2 -2
  303. package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
  304. package/lib/components/Calculator/BonusCalculatorForm.js +2 -2
  305. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  306. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
  307. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  308. package/lib/components/Calculator/Calculator.fixture.d.ts +1 -0
  309. package/lib/components/Calculator/Calculator.js +5 -5
  310. package/lib/components/Calculator/Calculator.js.map +1 -1
  311. package/lib/components/Calculator/CalculatorContent.d.ts +20 -1
  312. package/lib/components/Calculator/CreditCalculatorForm.js +2 -2
  313. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  314. package/lib/components/Calculator/DepositCalculatorForm.js +3 -3
  315. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  316. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
  317. package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -0
  318. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  319. package/lib/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
  320. package/lib/components/Calculator/RefinancingCalculatorForm.js +61 -0
  321. package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -0
  322. package/lib/components/Calculator/UnknownRate.js +1 -1
  323. package/lib/components/Calculator/UnknownRate.js.map +1 -1
  324. package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
  325. package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +20 -0
  326. package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -0
  327. package/lib/components/Calculator/constants.d.ts +12 -0
  328. package/lib/components/Calculator/constants.js +24 -0
  329. package/lib/components/Calculator/constants.js.map +1 -1
  330. package/lib/components/Calculator/getMonthlyPayment.d.ts +8 -2
  331. package/lib/components/Calculator/getMonthlyPayment.js +7 -2
  332. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  333. package/lib/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
  334. package/lib/components/Calculator/getRefinancingCalculatorLimitParams.js +7 -0
  335. package/lib/components/Calculator/getRefinancingCalculatorLimitParams.js.map +1 -0
  336. package/lib/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
  337. package/lib/components/Calculator/getRefinancingCalculatorRateParams.js +13 -0
  338. package/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -0
  339. package/lib/components/Calculator/rangeHelpers.js +7 -3
  340. package/lib/components/Calculator/rangeHelpers.js.map +1 -1
  341. package/lib/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
  342. package/lib/components/Calculator/useRefinancingCalculatorParams.js +54 -0
  343. package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -0
  344. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  345. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  346. package/lib/components/Carousel/Carousel.js +1 -1
  347. package/lib/components/Carousel/Carousel.js.map +1 -1
  348. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  349. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  350. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
  351. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  352. package/lib/components/CarouselCard/CarouselCard.js +2 -2
  353. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  354. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -3
  355. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  356. package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
  357. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  358. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  359. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  360. package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  361. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  362. package/lib/components/CarouselProductCard/CarouselProductCard.js +10 -9
  363. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  364. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
  365. package/lib/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
  366. package/lib/components/CarouselProductCard/alignTextStyle.js +2 -0
  367. package/lib/components/CarouselProductCard/alignTextStyle.js.map +1 -0
  368. package/lib/components/CarouselProductCard/alignTextStyle.mobile.d.ts +1 -0
  369. package/lib/components/CarouselProductCard/alignTextStyle.mobile.js +2 -0
  370. package/lib/components/CarouselProductCard/alignTextStyle.mobile.js.map +1 -0
  371. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  372. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  373. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  374. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  375. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  376. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +1 -1
  377. package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -1
  378. package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  379. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  380. package/lib/components/ComparisonTable/HeaderCell.mobile.js +2 -2
  381. package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
  382. package/lib/components/ComparisonTable/TableCell.js +1 -1
  383. package/lib/components/ComparisonTable/TableCell.js.map +1 -1
  384. package/lib/components/ComparisonTable/TableColumn.js +2 -2
  385. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  386. package/lib/components/ContactsBlock/ContactsBlock.js +2 -2
  387. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  388. package/lib/components/ContentPage/ContentPage.js +1 -1
  389. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  390. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +1 -1
  391. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
  392. package/lib/components/ExchangeRateOffice/renderCurrencies.js +3 -3
  393. package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
  394. package/lib/components/ExchangeRateOffice/renderTableHeader.js +1 -1
  395. package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
  396. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  397. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  398. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  399. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  400. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  401. package/lib/components/Footer/Contacts.js +4 -3
  402. package/lib/components/Footer/Contacts.js.map +1 -1
  403. package/lib/components/Footer/Footer.js +1 -1
  404. package/lib/components/Footer/Footer.js.map +1 -1
  405. package/lib/components/Footer/Footer.mobile.js +1 -1
  406. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  407. package/lib/components/GracePeriod/GracePeriod.js +1 -1
  408. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  409. package/lib/components/Header/Header.js +1 -1
  410. package/lib/components/Header/Header.js.map +1 -1
  411. package/lib/components/Header/Header.mobile.js +1 -1
  412. package/lib/components/Header/Header.mobile.js.map +1 -1
  413. package/lib/components/Header/HeaderBurger.js +1 -1
  414. package/lib/components/Header/HeaderSubMenu.js +1 -1
  415. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  416. package/lib/components/Headline/Headline.js +1 -1
  417. package/lib/components/Headline/Headline.js.map +1 -1
  418. package/lib/components/Headline/headlineVersionStyles.js +4 -4
  419. package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  420. package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
  421. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  422. package/lib/components/HorizontalLayout/gapStyles.js +6 -6
  423. package/lib/components/HorizontalLayout/gapStyles.js.map +1 -1
  424. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  425. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  426. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
  427. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  428. package/lib/components/InvestmentInfo/InvestmentInfo.js +7 -9
  429. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  430. package/lib/components/LinkDocs/LinkDocs.js +6 -2
  431. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  432. package/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -2
  433. package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  434. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  435. package/lib/components/MobileAppTile/renderDescription.js +1 -1
  436. package/lib/components/MobileAppTile/renderList.js +1 -1
  437. package/lib/components/MobileAppTile/renderList.js.map +1 -1
  438. package/lib/components/OfficeMap/OfficeMap.js +1 -1
  439. package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  440. package/lib/components/PictureText/PictureText.js +1 -1
  441. package/lib/components/PictureText/PictureText.js.map +1 -1
  442. package/lib/components/PictureText/renderInsuranceSumMonth.js +1 -1
  443. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  444. package/lib/components/Placeholder/Placeholder.js +2 -2
  445. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  446. package/lib/components/ProductBlock/ProductBlock.js +1 -1
  447. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  448. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  449. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  450. package/lib/components/ProductTile/ProductTile.js +1 -1
  451. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  452. package/lib/components/PromoTile/PromoTile.js +1 -1
  453. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  454. package/lib/components/RollupItem/RollupItem.js +1 -1
  455. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  456. package/lib/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  457. package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  458. package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
  459. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  460. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  461. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  462. package/lib/components/StepsBlock/StepsBlock.js +5 -5
  463. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  464. package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -3
  465. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  466. package/lib/components/StepsBlock/renderStep.js +2 -2
  467. package/lib/components/StepsBlock/renderStep.js.map +1 -1
  468. package/lib/components/Tabs/renderGroupTab.js +1 -1
  469. package/lib/components/Tabs/renderGroupTab.js.map +1 -1
  470. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +1 -1
  471. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  472. package/lib/components/TariffsTable/TableTileHeader.js +1 -1
  473. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  474. package/lib/components/TariffsTable/TariffsTable.js +2 -8
  475. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  476. package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
  477. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  478. package/lib/components/TariffsTable/TariffsTableRenderCell.js +1 -1
  479. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  480. package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  481. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  482. package/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
  483. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  484. package/lib/components/Tile/Tile.js +1 -1
  485. package/lib/components/Tile/Tile.js.map +1 -1
  486. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -1
  487. package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  488. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  489. package/lib/content-page-repository/transformDocument.js +3 -0
  490. package/lib/content-page-repository/transformDocument.js.map +1 -1
  491. package/lib/content-page-repository/transformImg.js +1 -1
  492. package/lib/content-page-repository/transformImg.js.map +1 -1
  493. package/lib/model/Attachment.d.ts +2 -0
  494. package/lib/model/ContentPageDef.d.ts +0 -2
  495. package/lib/model/JSXBlock.d.ts +2 -2
  496. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
  497. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  498. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  499. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  500. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  501. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  502. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  503. package/lib/ui-kit/BlockWrapper.js +1 -1
  504. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  505. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  506. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  507. package/lib/ui-kit/Dialog/Dialog.js +1 -1
  508. package/lib/ui-kit/Dialog/Dialog.js.map +1 -1
  509. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +3 -3
  510. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  511. package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
  512. package/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  513. package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  514. package/lib/ui-kit/Input/Input.js +1 -1
  515. package/lib/ui-kit/Input/Input.js.map +1 -1
  516. package/lib/ui-kit/InputRange/InputRange.js +1 -1
  517. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  518. package/lib/ui-kit/LinkButton/LinkButton.js +2 -2
  519. package/lib/ui-kit/List/List.js +4 -4
  520. package/lib/ui-kit/List/List.js.map +1 -1
  521. package/lib/ui-kit/List/ListItem.js +3 -3
  522. package/lib/ui-kit/List/ListItem.js.map +1 -1
  523. package/lib/ui-kit/LocationDialog/LocationDialog.js +3 -3
  524. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  525. package/lib/ui-kit/Logo/renderTitle.js +1 -1
  526. package/lib/ui-kit/Logo/renderTitle.js.map +1 -1
  527. package/lib/ui-kit/RichText/RichTextProps.d.ts +7 -6
  528. package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  529. package/lib/ui-kit/Select/Select.js +1 -1
  530. package/lib/ui-kit/Select/Select.js.map +1 -1
  531. package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  532. package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  533. package/lib/utils/formatBytes.d.ts +1 -0
  534. package/lib/utils/formatBytes.js +10 -0
  535. package/lib/utils/formatBytes.js.map +1 -0
  536. package/mobile/bundle/bundle.umd.js +103 -88
  537. package/mobile/bundle/bundle.umd.min.js +1 -1
  538. package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  539. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +20 -1
  540. package/mobile/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
  541. package/mobile/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
  542. package/mobile/bundle/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
  543. package/mobile/bundle/components/Calculator/constants.d.ts +12 -0
  544. package/mobile/bundle/components/Calculator/getMonthlyPayment.d.ts +8 -2
  545. package/mobile/bundle/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
  546. package/mobile/bundle/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
  547. package/mobile/bundle/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
  548. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
  549. package/mobile/bundle/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
  550. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -2
  551. package/mobile/bundle/model/Attachment.d.ts +2 -0
  552. package/mobile/bundle/model/ContentPageDef.d.ts +0 -2
  553. package/mobile/bundle/model/JSXBlock.d.ts +2 -2
  554. package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +7 -6
  555. package/mobile/bundle/utils/formatBytes.d.ts +1 -0
  556. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  557. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  558. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
  559. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  560. package/mobile/dist/components/ApplicationForm/ResponseNotification.js +1 -1
  561. package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
  562. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  563. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  564. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -4
  565. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  566. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  567. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
  568. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  569. package/mobile/dist/components/Bonus/Bonus.js +2 -2
  570. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  571. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -2
  572. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  573. package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  574. package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  575. package/mobile/dist/components/BusinessBlock/BusinessCard.js +2 -2
  576. package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
  577. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +2 -2
  578. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  579. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
  580. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  581. package/mobile/dist/components/Calculator/Calculator.js +5 -5
  582. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  583. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +20 -1
  584. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +2 -2
  585. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  586. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -3
  587. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  588. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
  589. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -0
  590. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  591. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
  592. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +63 -0
  593. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -0
  594. package/mobile/dist/components/Calculator/UnknownRate.js +1 -1
  595. package/mobile/dist/components/Calculator/UnknownRate.js.map +1 -1
  596. package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
  597. package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +23 -0
  598. package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -0
  599. package/mobile/dist/components/Calculator/constants.d.ts +12 -0
  600. package/mobile/dist/components/Calculator/constants.js +25 -1
  601. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  602. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +8 -2
  603. package/mobile/dist/components/Calculator/getMonthlyPayment.js +7 -2
  604. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  605. package/mobile/dist/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
  606. package/mobile/dist/components/Calculator/getRefinancingCalculatorLimitParams.js +10 -0
  607. package/mobile/dist/components/Calculator/getRefinancingCalculatorLimitParams.js.map +1 -0
  608. package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
  609. package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js +16 -0
  610. package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -0
  611. package/mobile/dist/components/Calculator/rangeHelpers.js +7 -3
  612. package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
  613. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
  614. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +57 -0
  615. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -0
  616. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  617. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  618. package/mobile/dist/components/Carousel/Carousel.js +1 -1
  619. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  620. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  621. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  622. package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
  623. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  624. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -3
  625. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  626. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
  627. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  628. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  629. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  630. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  631. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  632. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +10 -9
  633. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  634. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
  635. package/mobile/dist/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
  636. package/mobile/dist/components/CarouselProductCard/alignTextStyle.js +4 -0
  637. package/mobile/dist/components/CarouselProductCard/alignTextStyle.js.map +1 -0
  638. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  639. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  640. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  641. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  642. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +1 -1
  643. package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -1
  644. package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -2
  645. package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  646. package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -2
  647. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  648. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +2 -2
  649. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  650. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  651. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  652. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +1 -1
  653. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
  654. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +3 -3
  655. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
  656. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +1 -1
  657. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
  658. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  659. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  660. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  661. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  662. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  663. package/mobile/dist/components/Footer/Contacts.js +4 -3
  664. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  665. package/mobile/dist/components/Footer/Footer.js +1 -1
  666. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  667. package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -1
  668. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  669. package/mobile/dist/components/Header/Header.js +1 -1
  670. package/mobile/dist/components/Header/Header.js.map +1 -1
  671. package/mobile/dist/components/Header/HeaderBurger.js +1 -1
  672. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  673. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  674. package/mobile/dist/components/Headline/Headline.js +1 -1
  675. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  676. package/mobile/dist/components/Headline/headlineVersionStyles.js +4 -4
  677. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  678. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
  679. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  680. package/mobile/dist/components/HorizontalLayout/gapStyles.js +6 -6
  681. package/mobile/dist/components/HorizontalLayout/gapStyles.js.map +1 -1
  682. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  683. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  684. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
  685. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  686. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +7 -9
  687. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  688. package/mobile/dist/components/LinkDocs/LinkDocs.js +6 -2
  689. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  690. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -2
  691. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  692. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  693. package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
  694. package/mobile/dist/components/MobileAppTile/renderList.js +1 -1
  695. package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
  696. package/mobile/dist/components/OfficeMap/OfficeMap.js +1 -1
  697. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  698. package/mobile/dist/components/PictureText/PictureText.js +1 -1
  699. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  700. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +1 -1
  701. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  702. package/mobile/dist/components/Placeholder/Placeholder.js +2 -2
  703. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  704. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
  705. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  706. package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
  707. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  708. package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
  709. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  710. package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
  711. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  712. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  713. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  714. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
  715. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  716. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  717. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  718. package/mobile/dist/components/StepsBlock/StepsBlock.js +3 -3
  719. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  720. package/mobile/dist/components/StepsBlock/renderStep.js +2 -2
  721. package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
  722. package/mobile/dist/components/Tabs/renderGroupTab.js +1 -1
  723. package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
  724. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +1 -1
  725. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  726. package/mobile/dist/components/TariffsTable/TableTileHeader.js +1 -1
  727. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  728. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  729. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  730. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +1 -1
  731. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  732. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  733. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  734. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
  735. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  736. package/mobile/dist/components/Tile/Tile.js +1 -1
  737. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  738. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  739. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  740. package/mobile/dist/content-page-repository/transformDocument.js +3 -0
  741. package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
  742. package/mobile/dist/content-page-repository/transformImg.js +1 -1
  743. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  744. package/mobile/dist/model/Attachment.d.ts +2 -0
  745. package/mobile/dist/model/ContentPageDef.d.ts +0 -2
  746. package/mobile/dist/model/JSXBlock.d.ts +2 -2
  747. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
  748. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  749. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  750. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  751. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  752. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  753. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  754. package/mobile/dist/ui-kit/BlockWrapper.js +1 -1
  755. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  756. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  757. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  758. package/mobile/dist/ui-kit/Dialog/Dialog.js +1 -1
  759. package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -1
  760. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +3 -3
  761. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  762. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
  763. package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  764. package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  765. package/mobile/dist/ui-kit/Input/Input.js +1 -1
  766. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  767. package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
  768. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  769. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +2 -2
  770. package/mobile/dist/ui-kit/List/List.js +4 -4
  771. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  772. package/mobile/dist/ui-kit/List/ListItem.js +3 -3
  773. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  774. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +3 -3
  775. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  776. package/mobile/dist/ui-kit/Logo/renderTitle.js +1 -1
  777. package/mobile/dist/ui-kit/Logo/renderTitle.js.map +1 -1
  778. package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +7 -6
  779. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  780. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  781. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  782. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  783. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  784. package/mobile/dist/utils/formatBytes.d.ts +1 -0
  785. package/mobile/dist/utils/formatBytes.js +13 -0
  786. package/mobile/dist/utils/formatBytes.js.map +1 -0
  787. package/mobile/fonts/mohave/Mohave-Regular.otf +0 -0
  788. package/mobile/fonts/mohave/Mohave-Regular.ttf +0 -0
  789. package/mobile/fonts/mohave/mohave.css +7 -0
  790. package/mobile/fonts/ubuntu/ubuntu.css +67 -0
  791. package/mobile/fonts/ubuntu/ubuntu.eot +0 -0
  792. package/mobile/fonts/ubuntu/ubuntu.ttf +0 -0
  793. package/mobile/fonts/ubuntu/ubuntu.woff +0 -0
  794. package/mobile/fonts/ubuntu/ubuntu.woff2 +0 -0
  795. package/mobile/fonts/ubuntu/ubuntubold.ttf +0 -0
  796. package/mobile/fonts/ubuntu/ubuntubold.woff +0 -0
  797. package/mobile/fonts/ubuntu/ubuntubold.woff2 +0 -0
  798. package/mobile/fonts/ubuntu/ubuntubolditalic.ttf +0 -0
  799. package/mobile/fonts/ubuntu/ubuntubolditalic.woff +0 -0
  800. package/mobile/fonts/ubuntu/ubuntubolditalic.woff2 +0 -0
  801. package/mobile/fonts/ubuntu/ubuntuitalic.ttf +0 -0
  802. package/mobile/fonts/ubuntu/ubuntuitalic.woff +0 -0
  803. package/mobile/fonts/ubuntu/ubuntuitalic.woff2 +0 -0
  804. package/mobile/fonts/ubuntu/ubuntulight.ttf +0 -0
  805. package/mobile/fonts/ubuntu/ubuntulight.woff +0 -0
  806. package/mobile/fonts/ubuntu/ubuntulight.woff2 +0 -0
  807. package/mobile/fonts/ubuntu/ubuntulightitalic.ttf +0 -0
  808. package/mobile/fonts/ubuntu/ubuntulightitalic.woff +0 -0
  809. package/mobile/fonts/ubuntu/ubuntulightitalic.woff2 +0 -0
  810. package/mobile/fonts/ubuntu/ubuntumedium.ttf +0 -0
  811. package/mobile/fonts/ubuntu/ubuntumedium.woff +0 -0
  812. package/mobile/fonts/ubuntu/ubuntumedium.woff2 +0 -0
  813. package/mobile/fonts/ubuntu/ubuntumediumitalic.ttf +0 -0
  814. package/mobile/fonts/ubuntu/ubuntumediumitalic.woff +0 -0
  815. package/mobile/fonts/ubuntu/ubuntumediumitalic.woff2 +0 -0
  816. package/mobile/lib/common.css +1 -1
  817. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  818. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  819. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
  820. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  821. package/mobile/lib/components/ApplicationForm/ResponseNotification.js +1 -1
  822. package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
  823. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  824. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  825. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -4
  826. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  827. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  828. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
  829. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  830. package/mobile/lib/components/Bonus/Bonus.js +2 -2
  831. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  832. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -2
  833. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  834. package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  835. package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  836. package/mobile/lib/components/BusinessBlock/BusinessCard.js +2 -2
  837. package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
  838. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +2 -2
  839. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  840. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
  841. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  842. package/mobile/lib/components/Calculator/Calculator.js +5 -5
  843. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  844. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +20 -1
  845. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +2 -2
  846. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  847. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +3 -3
  848. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  849. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
  850. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -0
  851. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  852. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
  853. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +61 -0
  854. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -0
  855. package/mobile/lib/components/Calculator/UnknownRate.js +1 -1
  856. package/mobile/lib/components/Calculator/UnknownRate.js.map +1 -1
  857. package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
  858. package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +20 -0
  859. package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -0
  860. package/mobile/lib/components/Calculator/constants.d.ts +12 -0
  861. package/mobile/lib/components/Calculator/constants.js +24 -0
  862. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  863. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +8 -2
  864. package/mobile/lib/components/Calculator/getMonthlyPayment.js +7 -2
  865. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  866. package/mobile/lib/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
  867. package/mobile/lib/components/Calculator/getRefinancingCalculatorLimitParams.js +7 -0
  868. package/mobile/lib/components/Calculator/getRefinancingCalculatorLimitParams.js.map +1 -0
  869. package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
  870. package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js +13 -0
  871. package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -0
  872. package/mobile/lib/components/Calculator/rangeHelpers.js +7 -3
  873. package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
  874. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
  875. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +54 -0
  876. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -0
  877. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  878. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  879. package/mobile/lib/components/Carousel/Carousel.js +1 -1
  880. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  881. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  882. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  883. package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
  884. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  885. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -3
  886. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  887. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
  888. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  889. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  890. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  891. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  892. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  893. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +10 -9
  894. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  895. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
  896. package/mobile/lib/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
  897. package/mobile/lib/components/CarouselProductCard/alignTextStyle.js +2 -0
  898. package/mobile/lib/components/CarouselProductCard/alignTextStyle.js.map +1 -0
  899. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  900. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  901. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  902. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  903. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +1 -1
  904. package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -1
  905. package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -2
  906. package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  907. package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -2
  908. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  909. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +2 -2
  910. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  911. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  912. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  913. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +1 -1
  914. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
  915. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +3 -3
  916. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
  917. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +1 -1
  918. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
  919. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  920. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  921. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  922. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  923. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  924. package/mobile/lib/components/Footer/Contacts.js +4 -3
  925. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  926. package/mobile/lib/components/Footer/Footer.js +1 -1
  927. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  928. package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -1
  929. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  930. package/mobile/lib/components/Header/Header.js +1 -1
  931. package/mobile/lib/components/Header/Header.js.map +1 -1
  932. package/mobile/lib/components/Header/HeaderBurger.js +1 -1
  933. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  934. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  935. package/mobile/lib/components/Headline/Headline.js +1 -1
  936. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  937. package/mobile/lib/components/Headline/headlineVersionStyles.js +4 -4
  938. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  939. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
  940. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  941. package/mobile/lib/components/HorizontalLayout/gapStyles.js +6 -6
  942. package/mobile/lib/components/HorizontalLayout/gapStyles.js.map +1 -1
  943. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  944. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  945. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
  946. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  947. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +7 -9
  948. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  949. package/mobile/lib/components/LinkDocs/LinkDocs.js +6 -2
  950. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  951. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -2
  952. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  953. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  954. package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
  955. package/mobile/lib/components/MobileAppTile/renderList.js +1 -1
  956. package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
  957. package/mobile/lib/components/OfficeMap/OfficeMap.js +1 -1
  958. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  959. package/mobile/lib/components/PictureText/PictureText.js +1 -1
  960. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  961. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +1 -1
  962. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
  963. package/mobile/lib/components/Placeholder/Placeholder.js +2 -2
  964. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  965. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
  966. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  967. package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
  968. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  969. package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
  970. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  971. package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
  972. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  973. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  974. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  975. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
  976. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  977. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  978. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  979. package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -3
  980. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  981. package/mobile/lib/components/StepsBlock/renderStep.js +2 -2
  982. package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
  983. package/mobile/lib/components/Tabs/renderGroupTab.js +1 -1
  984. package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
  985. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +1 -1
  986. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  987. package/mobile/lib/components/TariffsTable/TableTileHeader.js +1 -1
  988. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  989. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
  990. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  991. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +1 -1
  992. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  993. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  994. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  995. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
  996. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  997. package/mobile/lib/components/Tile/Tile.js +1 -1
  998. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  999. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  1000. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  1001. package/mobile/lib/content-page-repository/transformDocument.js +3 -0
  1002. package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
  1003. package/mobile/lib/content-page-repository/transformImg.js +1 -1
  1004. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  1005. package/mobile/lib/model/Attachment.d.ts +2 -0
  1006. package/mobile/lib/model/ContentPageDef.d.ts +0 -2
  1007. package/mobile/lib/model/JSXBlock.d.ts +2 -2
  1008. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
  1009. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  1010. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  1011. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  1012. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  1013. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  1014. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  1015. package/mobile/lib/ui-kit/BlockWrapper.js +1 -1
  1016. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  1017. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  1018. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  1019. package/mobile/lib/ui-kit/Dialog/Dialog.js +1 -1
  1020. package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -1
  1021. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +3 -3
  1022. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  1023. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
  1024. package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  1025. package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  1026. package/mobile/lib/ui-kit/Input/Input.js +1 -1
  1027. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  1028. package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
  1029. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  1030. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +2 -2
  1031. package/mobile/lib/ui-kit/List/List.js +4 -4
  1032. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  1033. package/mobile/lib/ui-kit/List/ListItem.js +3 -3
  1034. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  1035. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +3 -3
  1036. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  1037. package/mobile/lib/ui-kit/Logo/renderTitle.js +1 -1
  1038. package/mobile/lib/ui-kit/Logo/renderTitle.js.map +1 -1
  1039. package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +7 -6
  1040. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  1041. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  1042. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  1043. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  1044. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  1045. package/mobile/lib/utils/formatBytes.d.ts +1 -0
  1046. package/mobile/lib/utils/formatBytes.js +10 -0
  1047. package/mobile/lib/utils/formatBytes.js.map +1 -0
  1048. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  1049. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +4 -4
  1050. package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +3 -3
  1051. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +6 -6
  1052. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
  1053. package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
  1054. package/mobile/src/components/Bonus/Bonus.tsx +2 -2
  1055. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -3
  1056. package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +2 -2
  1057. package/mobile/src/components/BusinessBlock/BusinessCard.tsx +9 -7
  1058. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
  1059. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +2 -2
  1060. package/mobile/src/components/Calculator/Calculator.tsx +7 -7
  1061. package/mobile/src/components/Calculator/CalculatorContent.ts +25 -1
  1062. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
  1063. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +5 -5
  1064. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +4 -1
  1065. package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +147 -0
  1066. package/mobile/src/components/Calculator/UnknownRate.tsx +2 -2
  1067. package/mobile/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +45 -0
  1068. package/mobile/src/components/Calculator/constants.ts +26 -0
  1069. package/mobile/src/components/Calculator/getMonthlyPayment.ts +14 -4
  1070. package/mobile/src/components/Calculator/getRefinancingCalculatorLimitParams.ts +25 -0
  1071. package/mobile/src/components/Calculator/getRefinancingCalculatorRateParams.ts +40 -0
  1072. package/mobile/src/components/Calculator/rangeHelpers.ts +7 -3
  1073. package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +136 -0
  1074. package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
  1075. package/mobile/src/components/Carousel/Carousel.tsx +1 -1
  1076. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
  1077. package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
  1078. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +13 -17
  1079. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -1
  1080. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
  1081. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +2 -2
  1082. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +36 -32
  1083. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +6 -4
  1084. package/mobile/src/components/CarouselProductCard/alignTextStyle.tsx +1 -0
  1085. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +5 -5
  1086. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
  1087. package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +1 -1
  1088. package/mobile/src/components/ComparisonTable/HeaderCell.tsx +4 -9
  1089. package/mobile/src/components/ComparisonTable/TableColumn.tsx +2 -2
  1090. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +4 -4
  1091. package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
  1092. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +5 -5
  1093. package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +3 -3
  1094. package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +1 -1
  1095. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +6 -6
  1096. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +4 -4
  1097. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  1098. package/mobile/src/components/Footer/Contacts.tsx +7 -6
  1099. package/mobile/src/components/Footer/Footer.tsx +1 -1
  1100. package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
  1101. package/mobile/src/components/Header/Header.tsx +1 -1
  1102. package/mobile/src/components/Header/HeaderBurger.tsx +1 -1
  1103. package/mobile/src/components/Header/HeaderSubMenu.tsx +3 -3
  1104. package/mobile/src/components/Headline/Headline.tsx +1 -1
  1105. package/mobile/src/components/Headline/headlineVersionStyles.ts +4 -4
  1106. package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
  1107. package/mobile/src/components/HorizontalLayout/gapStyles.ts +6 -6
  1108. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +4 -4
  1109. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  1110. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +10 -19
  1111. package/mobile/src/components/LinkDocs/LinkDocs.tsx +8 -1
  1112. package/mobile/src/components/LinkDocs/LinkDocs.ui.json +3 -0
  1113. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +0 -2
  1114. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
  1115. package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
  1116. package/mobile/src/components/MobileAppTile/renderList.tsx +1 -1
  1117. package/mobile/src/components/OfficeMap/OfficeMap.tsx +1 -1
  1118. package/mobile/src/components/PictureText/PictureText.tsx +1 -1
  1119. package/mobile/src/components/PictureText/PictureText.ui.json +3 -0
  1120. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +1 -1
  1121. package/mobile/src/components/Placeholder/Placeholder.tsx +2 -2
  1122. package/mobile/src/components/ProductBlock/ProductBlock.tsx +2 -2
  1123. package/mobile/src/components/ProductBlock/ProductBlock.ui.json +10 -0
  1124. package/mobile/src/components/ProductTile/ProductTile.tsx +1 -1
  1125. package/mobile/src/components/ProductTile/ProductTile.ui.json +3 -0
  1126. package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
  1127. package/mobile/src/components/RollupItem/RollupItem.tsx +2 -2
  1128. package/mobile/src/components/SafeDepositRental/RenderRadioButtons.tsx +1 -1
  1129. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  1130. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
  1131. package/mobile/src/components/StepsBlock/StepsBlock.tsx +5 -5
  1132. package/mobile/src/components/StepsBlock/renderStep.tsx +7 -7
  1133. package/mobile/src/components/Tabs/renderGroupTab.tsx +1 -1
  1134. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +1 -1
  1135. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +1 -1
  1136. package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -2
  1137. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +1 -1
  1138. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +2 -2
  1139. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
  1140. package/mobile/src/components/Tile/Tile.tsx +1 -1
  1141. package/mobile/src/components/Tile/Tile.ui.json +10 -0
  1142. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  1143. package/mobile/src/content-page-repository/transformDocument.ts +3 -0
  1144. package/mobile/src/content-page-repository/transformImg.ts +1 -1
  1145. package/mobile/src/model/Attachment.ts +2 -0
  1146. package/mobile/src/model/ContentPageDef.ts +1 -4
  1147. package/mobile/src/model/JSXBlock.ts +2 -2
  1148. package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
  1149. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  1150. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  1151. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
  1152. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -1
  1153. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
  1154. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  1155. package/mobile/src/ui-kit/Dialog/Dialog.tsx +3 -3
  1156. package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +4 -6
  1157. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
  1158. package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -4
  1159. package/mobile/src/ui-kit/Input/Input.tsx +1 -1
  1160. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
  1161. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +2 -2
  1162. package/mobile/src/ui-kit/List/List.tsx +4 -4
  1163. package/mobile/src/ui-kit/List/ListItem.tsx +3 -3
  1164. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -5
  1165. package/mobile/src/ui-kit/Logo/renderTitle.tsx +1 -1
  1166. package/mobile/src/ui-kit/RichText/RichTextProps.ts +8 -6
  1167. package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
  1168. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  1169. package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +2 -1
  1170. package/mobile/src/utils/formatBytes.ts +12 -0
  1171. package/package.json +5 -3
  1172. package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  1173. package/src/components/ApplicationForm/ApplicationFormWed.tsx +4 -4
  1174. package/src/components/ApplicationForm/ResponseNotification.tsx +3 -3
  1175. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +6 -6
  1176. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +0 -1
  1177. package/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
  1178. package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +1 -0
  1179. package/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
  1180. package/src/components/Bonus/Bonus.tsx +2 -2
  1181. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -3
  1182. package/src/components/BusinessBlock/BusinessBlock.tsx +2 -2
  1183. package/src/components/BusinessBlock/BusinessCard.tsx +9 -7
  1184. package/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
  1185. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +2 -2
  1186. package/src/components/Calculator/Calculator.fixture.tsx +40 -0
  1187. package/src/components/Calculator/Calculator.tsx +7 -7
  1188. package/src/components/Calculator/CalculatorContent.ts +25 -1
  1189. package/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
  1190. package/src/components/Calculator/DepositCalculatorForm.tsx +5 -5
  1191. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +4 -1
  1192. package/src/components/Calculator/RefinancingCalculatorForm.tsx +147 -0
  1193. package/src/components/Calculator/UnknownRate.tsx +2 -2
  1194. package/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +45 -0
  1195. package/src/components/Calculator/constants.ts +26 -0
  1196. package/src/components/Calculator/getMonthlyPayment.ts +14 -4
  1197. package/src/components/Calculator/getRefinancingCalculatorLimitParams.ts +25 -0
  1198. package/src/components/Calculator/getRefinancingCalculatorRateParams.ts +40 -0
  1199. package/src/components/Calculator/rangeHelpers.ts +7 -3
  1200. package/src/components/Calculator/useRefinancingCalculatorParams.ts +136 -0
  1201. package/src/components/CardTransfer/CardTransfer.tsx +1 -1
  1202. package/src/components/Carousel/Carousel.tsx +1 -1
  1203. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +1 -1
  1204. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
  1205. package/src/components/CarouselCard/CarouselCard.tsx +2 -2
  1206. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +13 -17
  1207. package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -1
  1208. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
  1209. package/src/components/CarouselLinks/CarouselLinks.tsx +2 -2
  1210. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +2 -2
  1211. package/src/components/CarouselProductCard/CarouselProductCard.tsx +36 -32
  1212. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +6 -4
  1213. package/src/components/CarouselProductCard/alignTextStyle.mobile.tsx +1 -0
  1214. package/src/components/CarouselProductCard/alignTextStyle.tsx +1 -0
  1215. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +5 -5
  1216. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +2 -2
  1217. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  1218. package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +1 -1
  1219. package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  1220. package/src/components/ComparisonTable/HeaderCell.mobile.tsx +4 -9
  1221. package/src/components/ComparisonTable/TableCell.tsx +1 -1
  1222. package/src/components/ComparisonTable/TableColumn.tsx +2 -2
  1223. package/src/components/ContactsBlock/ContactsBlock.tsx +4 -4
  1224. package/src/components/ContentPage/ContentPage.tsx +1 -1
  1225. package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +5 -5
  1226. package/src/components/ExchangeRateOffice/renderCurrencies.tsx +3 -3
  1227. package/src/components/ExchangeRateOffice/renderTableHeader.tsx +1 -1
  1228. package/src/components/ExchangeRateTile/CurrencyTable.tsx +6 -6
  1229. package/src/components/ExchangeRateTile/CurrentLocation.tsx +4 -4
  1230. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  1231. package/src/components/Footer/Contacts.tsx +7 -6
  1232. package/src/components/Footer/Footer.mobile.tsx +1 -1
  1233. package/src/components/Footer/Footer.tsx +7 -7
  1234. package/src/components/GracePeriod/GracePeriod.tsx +1 -1
  1235. package/src/components/Header/Header.mobile.tsx +1 -1
  1236. package/src/components/Header/Header.tsx +4 -4
  1237. package/src/components/Header/HeaderBurger.tsx +1 -1
  1238. package/src/components/Header/HeaderSubMenu.tsx +3 -3
  1239. package/src/components/Headline/Headline.tsx +1 -1
  1240. package/src/components/Headline/headlineVersionStyles.ts +4 -4
  1241. package/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
  1242. package/src/components/HorizontalLayout/gapStyles.ts +6 -6
  1243. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +4 -4
  1244. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  1245. package/src/components/InvestmentInfo/InvestmentInfo.tsx +10 -19
  1246. package/src/components/LinkDocs/LinkDocs.tsx +8 -1
  1247. package/src/components/LinkDocs/LinkDocs.ui.json +3 -0
  1248. package/src/components/LinkDocs/LinkDocsContent.ts +0 -2
  1249. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +3 -0
  1250. package/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
  1251. package/src/components/MobileAppTile/renderDescription.tsx +1 -1
  1252. package/src/components/MobileAppTile/renderList.tsx +1 -1
  1253. package/src/components/OfficeMap/OfficeMap.tsx +1 -1
  1254. package/src/components/PictureText/PictureText.tsx +1 -1
  1255. package/src/components/PictureText/PictureText.ui.json +3 -0
  1256. package/src/components/PictureText/renderInsuranceSumMonth.tsx +1 -1
  1257. package/src/components/Placeholder/Placeholder.tsx +2 -2
  1258. package/src/components/ProductBlock/ProductBlock.tsx +2 -2
  1259. package/src/components/ProductBlock/ProductBlock.ui.json +10 -0
  1260. package/src/components/ProductGallery/ProductGallery.tsx +2 -2
  1261. package/src/components/ProductTile/ProductTile.tsx +1 -1
  1262. package/src/components/ProductTile/ProductTile.ui.json +3 -0
  1263. package/src/components/PromoTile/PromoTile.tsx +1 -1
  1264. package/src/components/RollupItem/RollupItem.tsx +2 -2
  1265. package/src/components/SafeDepositRental/RenderRadioButtons.tsx +1 -1
  1266. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  1267. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
  1268. package/src/components/StepsBlock/StepsBlock.mobile.tsx +5 -5
  1269. package/src/components/StepsBlock/StepsBlock.tsx +20 -20
  1270. package/src/components/StepsBlock/renderStep.tsx +7 -7
  1271. package/src/components/Tabs/renderGroupTab.tsx +1 -1
  1272. package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +1 -1
  1273. package/src/components/TariffsTable/TableTileHeader.tsx +1 -1
  1274. package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -2
  1275. package/src/components/TariffsTable/TariffsTable.tsx +4 -19
  1276. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +1 -1
  1277. package/src/components/TariffsTable/TariffsTableRow.tsx +2 -2
  1278. package/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
  1279. package/src/components/Tile/Tile.tsx +1 -1
  1280. package/src/components/Tile/Tile.ui.json +10 -0
  1281. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +1 -1
  1282. package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  1283. package/src/content-page-repository/transformDocument.ts +3 -0
  1284. package/src/content-page-repository/transformImg.ts +1 -1
  1285. package/src/model/Attachment.ts +2 -0
  1286. package/src/model/ContentPageDef.ts +1 -4
  1287. package/src/model/JSXBlock.ts +2 -2
  1288. package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
  1289. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  1290. package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  1291. package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
  1292. package/src/ui-kit/BlockWrapper.tsx +1 -1
  1293. package/src/ui-kit/Button/ButtonInner.tsx +1 -1
  1294. package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  1295. package/src/ui-kit/Dialog/Dialog.tsx +3 -3
  1296. package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +4 -6
  1297. package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
  1298. package/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -4
  1299. package/src/ui-kit/Input/Input.tsx +1 -1
  1300. package/src/ui-kit/InputRange/InputRange.tsx +1 -1
  1301. package/src/ui-kit/LinkButton/LinkButton.tsx +2 -2
  1302. package/src/ui-kit/List/List.fixture.tsx +4 -4
  1303. package/src/ui-kit/List/List.tsx +4 -4
  1304. package/src/ui-kit/List/ListItem.tsx +3 -3
  1305. package/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -5
  1306. package/src/ui-kit/Logo/renderTitle.tsx +1 -1
  1307. package/src/ui-kit/NumberInput/NumberInput.fixture.tsx +1 -1
  1308. package/src/ui-kit/RichText/RichText.fixture.tsx +1 -1
  1309. package/src/ui-kit/RichText/RichTextProps.ts +8 -6
  1310. package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
  1311. package/src/ui-kit/Select/Select.tsx +1 -1
  1312. package/src/ui-kit/Tags/Tags.fixture.tsx +1 -1
  1313. package/src/ui-kit/YandexMap/renderSearchField.tsx +2 -1
  1314. package/src/utils/formatBytes.ts +12 -0
  1315. package/tailwind.config.cjs +15 -12
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),i=n("useCallback"),r=n("useMemo"),s=n("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:l,...a}=t||{},i=n?.slots?.default,r=l||i&&i();return e(Object.assign(a,r&&{children:r}),n)}return t.inheritAttrs=!1,t};class f{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=new f;function v(e,{sensitivity:t,rootRef:n}={}){const l=s(null),i=r((()=>({threshold:y(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,i);return t.observe(l.current),()=>{t.disconnect()}}),[e,i]),l}function y(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const N=new f;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},C=g((({className:e,version:t="primary",isTheme:n=!0,defaultPadding:r="p-m",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,p=function(e){return v(i((t=>{if(!e||!t?.length)return;const n=t[t.length-1];N.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(o),[g,x]=l(!1);a((()=>b.subscribe("tab",(e=>{x(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const f=t&&n;return u(h,{className:w("font-sans",f?"group":"",k[t],g?"hidden":"",s||r,e),...f?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:p}:{},role:d,children:m})})),S={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},I=g((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>u(n,{className:w("font-sans m-0",S[t],e),children:l||a}))),T=e=>e,B=(e,t)=>{const[n,a]=l(e),[r,o]=l(!1),[c,d]=l({}),m=s({}),h=i(((e,t)=>{const{parse:l=T,format:i=T}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{a((n=>({...n,[e]:l(t)}))),d((t=>({...t,[e]:!0})))},{value:i(n[e]),isDirty:r||c[e],onChange:m.current[e]}}),[n,r,c]),u=i((()=>{a(e),o(!1),d({})}),[e]),p=i((e=>{e.preventDefault(),o(!0),t&&t(n)}),[t,n]);return[n,{isDirty:r||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:p}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,n])=>n(t[e])))||[],P=e=>!e?.length,M=e=>t=>n=>e(n)?[]:[t],$=e=>null!=e,z=new Map;function V(e,t,{fallback:n,cache:i}={}){const s=r((()=>_(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=l(void 0),[m,h]=l(void 0);a((()=>{!s.some($)||(async()=>{try{const e=await(o?((e,t=z)=>n=>{const l=t.get(n);if($(l))return l;const a=e(n);return $(a)?t.set(n,Promise.resolve(a)):t.delete(n),a})(t,i)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,i,s]);const u=n&&o&&n[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function _(e){return Array.isArray(e)?e:e instanceof Function?_(e()):[e]}async function j(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}const L=[];function A(){const{data:e}=V("/api/v1/regions",D);return e||L}const O=(e="")=>({open:t=>b.fire("dialog",{type:"open",id:e,message:t}),close:()=>b.fire("dialog",{type:"close"})}),E=e=>Boolean(e?.includes(":")),F=(e,t)=>Boolean(e&&!E(e)&&(!t||"_self"===t)),U=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),H=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var X=Object.freeze({__proto__:null,isURL:E,isLocalURL:F,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:U,joinPath:H});const W=e=>(t,n=d.BASE_PATH)=>{if(!t||E(t)||K(t,d.CDN))return t;const l=t.startsWith("/");return H(K(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},K=(e,t)=>t&&e&&e.startsWith(t),G=(e,t)=>G._impl(e,t);function J(){return J._impl()}function Y(e={}){const{isRemote:t,basePath:n}=e,l=J(),{close:a}=O();return e=>({...e,href:t&&!n?e.href:W(l)(e.href,n),"aria-label":e.text,onClick:G(i(e),e)});function i({href:e,target:n,onClick:i}){return r=>{i&&i(r),e&&!t&&F(e,n)&&(a(),r?.preventDefault(),l.push(e))}}}G._impl=e=>e,G.setup=e=>{G._impl=e},J._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),J.setup=e=>{J._impl=e};const q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Z="bg-main-divider text-main-disabled",Q={primary:Z,secondary:Z,white:Z,link:"",transparent:"",gray:Z,"":""},ee="text-center font-sans select-none",te={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},ne=g((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:i="primary"}=e;return p("div",{className:w(le(e),"flex gap-2"),children:[l?u("div",{className:te[i],children:l}):null,ae(e)?p("div",{children:[n?u("div",{className:"text-xs font-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,a?u("div",{className:te[i],children:a}):null]})})),le=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",ae(e)?a:"h-12 w-12",l?"rounded-full":""].join(" ")},ae=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ie=({className:e,rounded:t,version:n})=>["inline-block",ee,n?Q[n]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:n})=>[ee,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?q[n]:"",t?"rounded-full":"rounded-md",e].join(" "),se=g((({disabled:e,children:t,...n})=>{const l=Y()(n),a=t??u(ne,{...l});return u(e?ce:oe,{...l,children:a})})),oe=g((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:i,rounded:r,onClick:s,children:o})=>u("a",{className:re({className:e,version:i,rounded:r}),href:t,rel:n,target:l,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),ce=g((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ie({className:e,rounded:l,version:n}),children:a}))),de=g((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),me=g((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),he=g((({link:e})=>p(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:[u(me,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(se,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(me,{children:e.text})}):null]}))),ue=(e,t)=>{const{value:n,isDirty:l}=e,a=l?t(n):[];return{...e,errors:a,error:a[0]}},pe=g((({key:e,className:t="",inputClassName:n="",id:l,name:a,type:r="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:g,onBlur:x,pattern:f})=>{const b=i((e=>{h&&h(e.target?.value||"")}),[h]),v=m?"pr-8":"",y=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",t),children:[p("label",{children:[s?u("div",{className:"mb-2",children:u(me,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",v,y,n),id:l,name:a||l,placeholder:o,type:r,value:c,onInput:b,onFocus:g,onBlur:x,pattern:f},e)]}),m]})})),ge=g((({className:e,label:t,value:n="",error:l,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(pe,{type:"text","aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:i}),u("div",{className:"h-2",children:l?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:l}):null})]}))),xe=e=>"_"===e,fe=e=>/\d/.test(e),be=e=>xe(e)||fe(e),ve=[..."+7 (___) ___-__-__"],ye=ve.findIndex(xe),Ne=ve.map(((e,t)=>be(e)?ve.slice(0,t).filter(be).length:-1));const we=g((({children:e,onChange:t,...n})=>{const l=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),n=ve.map(((e,n)=>fe(e)?e:t.charAt(Ne[n])||e)),l=Ne.indexOf(t.length-1)+1;return(l?n.slice(0,Math.max(ye,l)):n).join("")}(e))),[t]);return u(pe,{onChange:l,onFocus:e=>l(e?.target?.value||""),...n,children:e})})),ke=g((({className:e,label:t,value:n,error:l,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(we,{"aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:i}),u("div",{className:"h-2",children:l?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:l}):null})]}))),Ce="Некорректно заполненное поле",Se=M((e=>null!=e&&""!==e))(Ce),Ie=M((e=>"string"==typeof e&&e.length>1))(Ce),Te=M((e=>"string"==typeof e&&(10===e.length||12===e.length)))(Ce),Be=(Re=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,M((e=>"string"==typeof e&&Re.test(e))))(Ce);var Re;const Pe=e=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7",children:[p("div",{className:"sm:w-1/2",children:[u(ge,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...ue(e("fullName"),Se)}),u(ge,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)})]}),p("div",{className:"sm:w-1/2",children:[u(ge,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]})]}),Me=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function $e(e=!1){const[t,n]=l(e),a=i((()=>n(!0)),[]),r=i((()=>n(!1)),[]),s=i((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:r,toggle:s}]}function ze(e){const t=s(null);return a((()=>{const n=n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}}),[e]),t}const Ve={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},_e=g((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:i="color",...r})=>{const s=J(),o=W(s)(H(d.CDN,"/icons",`${n}.svg`));return"normal"!==i?u(De,{className:e,children:p("svg",{className:w(je(r.width),Ve[i],"white"===i?"invert":"",t),...r,"aria-hidden":"true",children:[a?u("title",{children:a}):null,l?u("desc",{children:l}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(r.style={height:`${r.height}px`}),u("img",{className:e,src:o,alt:l,title:a,"aria-hidden":"true",...r}))})),je=e=>e?"":"w-full h-full",De=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Le=g((({className:e="",label:t,options:n=[],value:l,valid:a=!0,isBorder:r=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=$e(),h=ze(d),g=i((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-2",children:u(me,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center text-primary-text cursor-pointer",Ee(r,a)),onClick:m,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Oe(l)||s}),u(_e,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),n?.length?u("div",{className:w("h-0",c?"":"overflow-hidden"),children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:n.map(Ae(g,c,(e=>e.key===l?.key)))})}):null]})]})})),Ae=(e,t,n)=>(l,a)=>p("div",{onClick:()=>{e(l)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:Oe(l)}),u(_e,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",n(l)&&t?"":"hidden")})]},String(a)),Oe=e=>e?.text||e?.key||"",Ee=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Fe=g((e=>p("div",{children:[u(Le,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:e.error}):null})]}))),Ue=({regions:e,field:t})=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Me.map((({name:e=""})=>({key:e,text:e}))),...ue(t("acquiringType"),Se)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Se)})})]}),He=g((({value:e=!1,text:t,type:n="checkbox",onChange:l})=>p("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-3",onClick:()=>l&&l(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-[50%]":"left-[5%]")})}),u(me,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),Xe=e=>p("div",{className:"sm:mb-5",children:[u(He,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(He,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),We=(e,t)=>{const n=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4 mt-3 w-full sm:mt-0 sm:w-auto",n,t),children:e?.text?e.text:"Отправить заявку"})},Ke={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ge=R({acquiringType:Se,region:Se,fullName:Se,inn:Te,name:Ie,phone:Be}),Je=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=i((e=>{const{acquiringType:t,region:n,fullName:a,inn:i,name:r,phone:s,onlineCheckout:o,posTerminal:c}=e;P(Ge(e))&&l({typeForm:"acqr",region:n?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:i,name:r,phone:s})}),[l]),[,{field:r,...s}]=B(Ke,a),o=A();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Вид эквайринга и регион",className:"sm:text-center mb-4"}),Ue({regions:o,field:r}),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),Pe(r),Xe(r),We(t,"mb-4"),u(he,{link:n})]})})),Ye=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-5",children:[p("div",{className:"sm:w-1/2",children:[u(ge,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(ge,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)})]}),p("div",{className:"sm:w-1/2",children:[u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)}),u(ge,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...ue(e("mail"),Se)})]})]}),qe=({regions:e,field:t})=>u("div",{className:"w-full mb-3 sm:mb-5",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Se)})}),Ze={name:"",phone:"",inn:"",mail:""},Qe=R({region:Se,name:Ie,phone:Be,inn:Te,mail:Se}),et=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=i((e=>{const{region:t,name:n,phone:a,inn:i,mail:r}=e;P(Qe(e))&&l({typeForm:"bcrd",region:t?.text||"",name:n,phone:a,inn:i,mail:r})}),[l]),[,{field:r,...s}]=B(Ze,a),o=A();return p("form",{className:"container",onSubmit:s.onSubmit,children:[qe({regions:o,field:r}),Ye(r),We(t,"mb-4"),u(he,{link:n})]})})),tt=[];const nt=async e=>await j(e,{method:"GET"})||tt,lt=["От 1 000 ₽","До 1 000 000 000 ₽"],at=["От 1 мес","До 15 лет"],it=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"sm:w-1/2",children:[u(ge,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...e("fullName")}),u(ge,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]}),p("div",{className:"sm:w-1/2",children:[u(ge,{className:"shrink-0 w-full mb-3",label:"Годовая выручка, ₽",...ue(e("annualRevenue"),Se)}),u(ge,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(ge,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),rt=(e,{normalize:t,format:n})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:h}},st=(e,t,n)=>Math.max(t,Math.min(e,n)),ot=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0);function ct(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function dt({list:e=[],min:t,max:n,step:l,value:a=e[0]||t,disabled:i,onChange:r}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(n-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||i?"bg-gray":"bg-primary-main")},String(t))))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:o,type:"range",min:t,max:n,step:l,value:s,disabled:i,onInput:t=>{const n=ct(t.target?.value),l=e.length?e[n]:n;r&&r(l||0)}})})]})}const mt=1,ht=100,ut=g((e=>{const{className:t,title:n,items:l=[],list:a=[],min:r=(a.length?0:mt),max:s=(a.length?a.length-1:ht),step:o=1,value:c=a[0]||r,disabled:d=!1,onChange:m}=e,h=rt(e,{normalize:(e=0)=>a.length?pt(a)(e):st(e,r,s),format:ot()}),g=i((e=>{m&&m(ct(e.target?.value))}),[m]);return p("div",{className:t,children:[p("label",{className:"block relative",children:[n?u(me,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,u("input",{className:w("m-0 mt-2 font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md outline-none","p-0 pl-4 box-border","text-primary-text hover:border-primary-hover focus:border-primary-text","disabled:border-gray disabled:bg-main-divider"),disabled:d,onInput:g,...h}),dt({list:a,min:r,max:s,step:o,disabled:d,value:c,onChange:m})]}),gt(l)]})})),pt=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),gt=e=>u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),xt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Сумма кредита, ₽"})}),u(ut,{items:lt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Срок кредита, месяцев"})}),u(ut,{items:at,min:1,max:180,...e("term")})]})]}),ft=({regions:e,branches:t,field:n})=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(n("region"),Se)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...ue(n("department"),Se)})})]}),bt={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},vt=R({annualRevenue:Se,inn:Te,name:Ie,phone:Be,region:Se,department:Se}),yt=g((({button:e,link:t,onSubmit:n})=>{const l=i((e=>{const{amount:t,term:l,fullName:a,inn:i,name:r,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;P(vt(e))&&n({typeForm:"cred",fullName:a,inn:i,name:r,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${l}/Выручка=${m}`})}),[n]),[a,{field:r,...s}]=B(bt,l),o=A(),c=function(e){const{data:t}=V(e?`/api/v1/branches?regionCode=${e}`:null,nt);return t||tt}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Параметры кредита",className:"sm:text-center mb-4"}),xt(r),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),it(r),u(I,{headingType:"h6",title:"Офис банка",className:"sm:text-center mb-4"}),ft({regions:o,branches:c,field:r}),We(e,"mb-4"),u(he,{link:t})]})})),Nt={name:"",phone:""},wt=R({name:Ie,phone:Be}),kt=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=i((e=>{const{name:t,phone:n}=e;P(wt(e))&&l({typeForm:"dpst",name:t,phone:n})}),[l]),[,{field:r,...s}]=B(Nt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"sm:text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(ge,{className:"shrink-0 w-full mb-3",label:"Имя",...ue(r("name"),Ie)}),u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(r("phone"),Be)})]}),p("div",{className:"flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto",children:[u("div",{className:"flex-1 mt-4 sm:mt-0",children:u(he,{link:n})}),We(t)]})]})})),Ct=(e,t)=>e?.media&&t?.media?e.media-t.media:0,St=g((({className:e="",image:t,imageClassName:n="",pathPrefix:l})=>{const a=J();return p("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Ct).map((({src:e,format:n,media:i},r)=>u("source",{srcSet:Tt(a,l)(e),type:Bt(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,t?.src?It({...t,src:Tt(a,l)(t.src)},n):null]})})),It=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),Tt=(e,t)=>n=>n&&!E(n)?W(e)(H(t,n)):n,Bt=e=>e?`image/${String(e)}`:void 0,Rt=g((({className:e="",image:t,imageClassName:n="",pathPrefix:l,...a})=>t?.src||t?.icon?t.icon?u(_e,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...a}):u(St,{className:e,imageClassName:n,image:t,pathPrefix:l}):null)),Pt=g((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:i,...r})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:i.map((({d:e,fill:t,...n},l)=>u("path",{d:e,fill:t||"currentColor",...r,...n},l)))}))),Mt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],$t=g((({className:e,value:t,text:n,disabled:l,isRadio:a,onChange:r})=>{const s=i((e=>{l||(e.preventDefault(),r&&r(!t))}),[r,l,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(Pt,{paths:Mt,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":zt(t),t?"border-primary-main":"border-gray",l?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(l)}),t?o:null,n?u("div",{className:"ml-3",children:u(me,{size:"text-l",font:"font-light",children:n})}):null]})})})),zt=e=>w("rounded border",e?"bg-primary-main":""),Vt=e=>{const t=e("text");return p("div",{className:"mb-3 sm:mb-6",children:[p("div",{className:"mb-4 sm:flex sm:items-center sm:gap-6",children:[u($t,{className:"mb-3 sm:mb-0",text:"Валютный контроль",...e("currencyControl")}),u($t,{className:"mb-3 sm:mb-0",text:"Документарные операции",...e("documentaryOperations")}),u($t,{className:"mb-3 sm:mb-0",text:"Конверсионные операции",...e("conversionOperations")})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},_t=e=>p("div",{children:[p("div",{className:"sm:flex sm:justify-between sm:gap-5",children:[u("div",{className:"sm:w-1/2",children:u(ge,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...ue(e("fullName"),Se)})}),u("div",{className:"sm:w-1/2",children:u(ge,{className:"shrink-0 w-full mb-3",label:"ФИО",...ue(e("name"),Ie)})})]}),p("div",{className:"sm:flex sm:justify-between sm:gap-5 sm:mb-7",children:[u("div",{className:"sm:w-1/2",children:u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})}),u("div",{className:"sm:w-1/2",children:u(ge,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...ue(e("mail"),Se)})})]})]}),jt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Dt=R({fullName:Se,name:Ie,phone:Be,mail:Se}),Lt=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=i((e=>{const{fullName:t,name:n,phone:a,mail:i,currencyControl:r,documentaryOperations:s,conversionOperations:o,text:c}=e;P(Dt(e))&&l({typeForm:"kved",fullName:t,name:n,phone:a,mail:i,partnerComments:`Валютный контроль=${r}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[l]),[,{field:r,...s}]=B(jt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),_t(r),u(I,{headingType:"h6",title:"Интересующий вопрос",className:"sm:text-center mb-4"}),Vt(r),p("div",{className:"flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9",children:[We(t,"mb-4 sm:mr-5 sm:mb-0"),u(he,{link:n})]}),u(I,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"sm:text-center mb-4"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(Rt,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(Rt,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),At=g((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-ok":"bg-fail"}`,children:[u(Rt,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(I,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Ot={credit:e=>u(yt,{...e}),acquiring:e=>u(Je,{...e}),"business-card":e=>u(et,{...e}),deposit:e=>u(kt,{...e}),wed:e=>u(Lt,{...e})},Et={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Ft=g((e=>{const{className:t,title:n,typeForm:a="credit",button:r,link:s,...o}=e,[c,d]=l(""),m=i((async e=>{const t=await Et.send(e)?"OK":"Fail";return d(t),t}),[]);return u(C,{className:t,defaultPadding:"p-default",...o,children:p("div",{className:"container max-w-[978px]",children:[n?u(I,{headingType:"h3",title:n,className:"mb-4 sm:mb-8 sm:text-center"}):null,Ot[a]({button:r,link:s,onSubmit:m}),c?u(At,{responseType:c}):null]})})})),Ut={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Ht=g((({className:e,defaultIconSize:t=44,iconBgVersion:n="primary",size:l,icon:a,...i})=>{const r=String(l?.width||t);return a?u("div",{style:{width:`${r}px`,height:`${r}px`},className:w("rounded-icon object-fit flex justify-center items-center ",Ut[n],e),children:u(_e,{...i,width:"54%",height:"54%",name:a})}):null})),Xt=g((({className:e="",title:t,benefitList:n,...l})=>p(C,{className:e,defaultPadding:"p-default",...l,children:[t?u(I,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,n?.length?u("div",{className:"flex flex-wrap w-full sm:justify-center mt-m gap-xl",role:"list",children:n.map(Wt)}):null]}))),Wt=(e,t)=>p("div",{className:"flex gap-s items-center md:basis-1/2 md:max-w-[400px]",role:"listitem",children:[e?.icon?.icon?u(Ht,{className:"shrink-0",defaultIconSize:44,iconBgVersion:e?.iconBgVersion||"",...e?.icon}):null,e?.icon?.src?u(Rt,{className:"shrink-0",image:e.icon}):null,e?.label?p("div",{className:"sm:h-full",children:[u(I,{headingType:"h6",children:e.label}),Kt(e.description)]}):null]},String(t)),Kt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Jt(e):Gt(e)}):null},Gt=e=>e?.name||null,Jt=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Yt=(e,{className:t,buttonClassName:n,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-s",t),children:e.map(qt(n))}):null,qt=(e="")=>(t,n)=>{const{text:l,icon:a,iconRight:i,version:r,...s}=t||{},o="secondary"===r?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return l||a?.icon?u(se,{className:w("basis-full sm:basis-auto",e),appendLeft:Zt({...a,iconVersion:c}),appendRight:Zt({...i,iconVersion:c}),version:r,text:l,...s},n?String(n):""):null},Zt=e=>e?.icon||e?.src?u(Rt,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Qt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-m"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-text"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},en={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},tn=g((({className:e,version:t="",headlineVersion:n="XL",title:l,description:a,align:i="text-center",as:r,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=Qt[n],m={marginTop:d.descriptionStyle};return p(C,{className:e,defaultPadding:s?"p-default":"",version:t,isTheme:o,...c,children:[l?u(I,{className:w("whitespace-pre-wrap",i),...d?.title,as:r||d?.title.as,title:l}):null,a?u(de,{size:d.descriptionSize,font:d.descriptionWeight,align:i,...m,children:a}):null]})})),nn=g((e=>{const{className:t="",title:n,description:l,bonusItems:a,...i}=e;return u(C,{className:t,defaultPadding:"p-default",...i,children:p("div",{className:"container",children:[u(tn,{className:"!p-0",title:n,description:l,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(me,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-2",children:u(de,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[Yt(e?.buttons),e.bonusItemContent?.bonusType?ln(e.bonusItemContent):null]})]},String(t)))):null})]})})})),ln=e=>u("div",{children:"count"===e.bonusType?an(e):rn(e)}),an=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),rn=e=>e.image?u(Rt,{className:"w-12 h-12 min-w-12 p-3 rounded-icon",image:e.image}):null,sn={left:"text-left",center:"text-center",right:"text-right"},on="text-center",cn=({icon:e,title:t,description:n},l)=>p("div",{className:w("flex flex-col","items-center",n||t?"":"justify-center"),children:[t?u(me,{size:"text-h6",font:"font-normal",align:on,children:t}):null,e?u(Rt,{image:e,height:"180",className:"w-auto"}):null,n?u(me,{size:"text-h6",font:"font-normal",align:on,children:n}):null]},String(l)),dn=(e,t,n)=>u("div",{className:`grid gap-1 ${sn[n]} ${mn(t)}`,children:e.map(cn)}),mn=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},hn=g((({bonusBenefits:e,cardTextAlign:t="center",className:n="",columnsCount:l="4",subtitle:a,title:i,...r})=>p(C,{className:w("p-default",n),defaultPadding:"p-default",...r,children:[u(tn,{className:"mb-4 sm:mb-8",isPadding:!1,title:i,description:a,headlineVersion:"M"}),e?.length?dn(e,l,t):null]}))),un=g((e=>{const{title:t,image:n,cardItems:l,button:a}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[n?p("div",{className:"flex justify-center",children:[n?.src?u(Rt,{className:"mb-5",image:n}):null,n?.icon?u(Rt,{image:n}):null]}):null,t?u(I,{headingType:"h4",title:t,className:"mb-6"}):null,l?.length?u("ul",{children:l.map(((e,t)=>pn(e,String(t))))}):null,Yt([a],{buttonClassName:"mt-6"})]})})),pn=(e,t)=>{const{icon:n,text:l}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[n?.icon?u(Rt,{image:n,className:"w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider"}):null,n?.src?u(Rt,{image:n}):null,u(me,{size:"text-xl",font:"font-light",children:l})]},t)},gn=g((({className:e,title:t,cards:n,...l})=>p(C,{className:e,defaultPadding:"p-default",...l,children:[u(I,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:n?.length?n.map(((e,t)=>u(un,{...e},String(t)))):null})]}))),xn=g((({buttons:e,className:t,...n})=>u(C,{className:w("!bg-transparent",t),defaultPadding:"p-0",...n,children:Yt(e)}))),fn=e=>{const{itemCount:t,visibleItemCount:n}=e,[a,r]=l(0),s=i((()=>r((e=>Math.min(e+1,t-1)))),[t]),o=i((()=>r((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(n||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const bn=g((({className:e,disabled:t,...n})=>u(se,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:u(Rt,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),vn=g((e=>u(bn,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),yn=g((e=>u(bn,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Nn({dec:e,inc:t,canDec:n,canInc:l,btnClass:a,className:i=""}){return n||l?p("div",{children:[n?u(bn,{className:`absolute z-40 ${a[0]} ${i}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,l?u(bn,{className:`absolute z-40 rotate-180 ${a[1]} ${i}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!l}):null]}):null}const wn=g((({title:e,value:t,postfix:n="",prefix:l,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(me,{size:"text-h3",children:[l," ",ot(2)(Math.round(t))," ",n]})}:{children:u(me,{size:"text-h3",children:"-"})})]}))),kn=Math.round(23.5),Cn={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Sn={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},In={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Tn={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Bn=g((({rate:e,title:t="Ставка",unit:n,depositeName:l,isShowDepositeName:a,rateBlockClassName:i,fractionDigits:r=2})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start gradient-color-text",children:[u("span",{className:w("font-mohave text-title-huge pr-6 -mt-4",i),children:String(e.toFixed(r)).replace(".",",")}),n?u("span",{className:"text-7xl",children:n}):null]}),l&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:l}):null]})]}))),Rn=e=>e?u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e}):null;function Pn({isShowItems:e=!0,step:t=1e3,...n}){const l=[`От ${ot(2)(n.min||0)} ₽`,`До ${ot(2)(n.max||0)} ₽`];return u(ut,{items:e?l:[],step:t,...n})}function Mn(e){const{data:t}=V(`/wcms-resources/${e}.json`,D);return t}const $n=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,a=Mn(t||"bonus-calculator-data")||Sn,[i,r]=((e,t,n)=>{const{minSumTravel:l,minSumOther:a,maxBonus:i,prefMonthsNum:r,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===l&&n===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),i);return[m,m*r+Math.min(Math.round(c*t)+Math.round(d*n),i)*(12-r)]})(a,n,l);return{...a,...e,monthBonus:i,yearBonus:r}},zn=g((({className:e="",sourceBookDir:t="",buttons:n,footnote:l})=>{const[a,{field:i}]=B({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:r,maxSumTravel:s,minSumOther:o,maxSumOther:c,monthBonus:d,yearBonus:m}=$n(a,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Pn({title:"Сумма покупок в категории путешествия, ₽",min:r,max:s,step:500,isShowItems:!1,...i("travelExpenseValue")}),Pn({title:"Сумма покупок в остальных категориях, ₽",className:"mt-7",min:o,max:c,step:500,isShowItems:!1,...i("restExpenseValue")})]}),u("div",{children:d>=0?u(Bn,{title:"Баллов за месяц",rate:d,rateBlockClassName:"tracking-[-14px]",fractionDigits:0}):null}),p("div",{className:"w-full max-w-[350px]",children:[m>=0?u(wn,{title:"Баллов за год",value:m}):null,Yt(n,{className:"mt-7",isVertical:!0}),Rn(l)]})]})})),Vn=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,_n={horizontal:"gap-10",vertical:"flex-col gap-3"},jn=g((({items:e,checkedItem:t,onChange:n,orientation:l="horizontal"})=>u("div",{className:`flex ${_n[l]}`,children:e?.map((({id:e,text:l})=>u($t,{isRadio:!0,text:l,value:t===e,onChange:()=>n&&n(e)},String(e))))}))),Dn=({items:e,title:t,orientation:n="horizontal",value:l,onChange:a})=>p("div",{children:[t?u("div",{className:"mb-3",children:u(me,{color:"text-secondary-text",font:"font-light",children:t})}):null,u(jn,{orientation:n,items:e,checkedItem:e[l?0:1].id,onChange:t=>a&&a(t===e[0].id)})]}),Ln=e=>Dn({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),An=g((({title:e="Ставка"})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(_e,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-[250px] mt-3.5",children:p(de,{size:"text-xl",font:"font-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),On=e=>e,En=(e=On)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),Fn=En(),Un=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,i]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,i)]):n++}return t},Hn=(e=On)=>En((t=>-e(t))),Xn=Hn(),Wn=([e,t],n,l=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:Kn([e,t],l),Kn=([e,t],n=[])=>({[e]:n.length?Xn(n.filter((t=>t[e])).map((t=>t[e]))):0,[t]:n.length?Fn(n.filter((e=>e[t])).map((e=>e[t]))):0}),Gn=(e,[t,n],l)=>e>=l[t]&&e<=l[n],Jn=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Yn=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,daysValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a/30)-l):Math.round(l*e*a/365/100)},qn=g((({className:e="",sourceBookDir:t,buttons:n,footnote:l,bottomFootnote:a,isShowDepositeName:i})=>{const[r,{field:s}]=B({moneyValue:1e5,daysValue:90,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,isMonthlyInterestPayment:!1}),o=((e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:i,isSmallBusiness:r,isMonthlyInterestPayment:s}=e,o=Mn(t||"business-calculator-data"),c=i||a,d=n<90||n>730;if(n<=30)return{...Tn,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&r===e.isSmallBusiness&&Jn(c,e)&&Gn(l,["minSum","maxSum"],e)&&Gn(n,["minDays","maxDays"],e)))||Tn,{rate:h}=m,u=Yn(h,e),p=l+u,g=o?.rateRows||[Tn];return{...m,...Kn(["minSum","maxSum"],g),...Kn(["minDays","maxDays"],g),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})(r,t),{income:c,finalSum:d,rate:m,depositeName:h,isShowUnknownRate:g}=o;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[Pn({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),(x={title:"Срок вклада, дни",min:o.minDays,max:o.maxDays,...s("daysValue"),value:o.daysValue},u(ut,{className:"mt-7",items:[`От ${Vn(x.min||0)}`,`До ${Vn(x.max||0)}`],step:1,...x})),p("div",{className:"mt-7 flex justify-between",children:[Zn(o,s),Ln({title:"Выплата процентов",orientation:"vertical",...s("isMonthlyInterestPayment")})]})]}),g?u(An,{}):u(Bn,{rate:m,depositeName:h,isShowDepositeName:i,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(wn,{title:"Доход по вкладу",value:c,postfix:"₽",prefix:"+"}),u(wn,{title:"Сумма в конце срока",value:d,postfix:"₽"}),Yt(n,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:Rn(l)})]})]}),u("div",{className:"mt-5",children:Rn(a)})]});var x})),Zn=(e,t)=>p("div",{children:[u($t,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),u($t,{className:"mt-3",disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal}),u($t,{className:"mt-3",text:"Являюсь малым предприятием",...t("isSmallBusiness"),value:e.isSmallBusiness})]}),Qn=({min:e=0,max:t=0,availableMonths:n,...l})=>u(ut,{className:"mt-7",items:[`От ${el(e)}`,`До ${el(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...l}),el=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,tl=e=>nl({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&nl({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&nl({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&nl({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),nl=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],ll=(e,t,n)=>{let{moneyValue:l,monthsValue:a}=e;const i=Mn(t||"credit-calculator-data"),s=i?.rateRows||[Cn],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>tl({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:i?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=Wn(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=Wn(["minMonths","maxMonths"],o,s);l=st(l,c,d),a=st(a,m,h);const u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a})=>e?.find((e=>tl({row:e,userInputParams:t,paramsViewSettings:n})&&Gn(l,["minSum","maxSum"],e)&&Gn(a,["minMonths","maxMonths"],e)))||Cn)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a}),{rate:p}=u,g=((e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a}=t;if(0===e)return 0;if(n){const t=e/1200;return l*(t+t/(Math.pow(1+t,a)-1))}return Math.round(l/a)+l*(e/1200)})(p,e);return r((()=>({...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:l,monthsValue:a,monthlyPayment:g})),[e,i])},al=g((({className:e,sourceBookDir:t,buttons:n,footnote:l,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!1,isInsurance:!0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,moneyValue:2e5,monthsValue:kn}),s=ll(i,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Pn({title:"Сумма кредита, ₽",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),Qn({title:"Срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue}),u("div",{className:"mt-7",children:il({...s,...a},r)})]}),u(Bn,{title:"Ставка",rate:s.rate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(wn,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),(o={orientation:"vertical",...r("isAnnuity")},Dn({...o,items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]})),Yt(n,{className:"mt-7",isVertical:!0}),Rn(l)]})]});var o})),il=(e,t)=>p("div",{children:[e.isShowSalaryClient?u($t,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowStateEmployee?u($t,{className:"mt-3",text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?u($t,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?u($t,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),rl=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,i=Mn(t||"deposit-calculator-data"),r=i?.rateRows?.[0]?cl(i.rateRows[0].minMonths,i.rateRows[0].maxMonths):1,s=!n?.isShowMonthlyInterestPayment,o=!n?.isShowRemoteRegistration,c=i?.rateRows?.find((t=>ol({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&ol({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Gn(l,["minSum","maxSum"],t)&&Gn(a||r,["minMonths","maxMonths"],t)))||In,{rate:d}=c,m=sl(d,e),h=l+m,u=i?.rateRows||[In];return{...c,...Kn(["minSum","maxSum"],u),...Kn(["minMonths","maxMonths"],u),availableMonths:Un(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((l,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:r,income:m,finalSum:h}},sl=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,monthsValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a)-l):Math.round(l*e*30*a/365/100)},ol=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],cl=(e,t)=>e+Math.round((t-e)/2),dl=g((({className:e,sourceBookDir:t,buttons:n,footnote:l,paramsViewSettings:i})=>{const[r,{field:s}]=B({moneyValue:2e4,monthsValue:0,isMonthlyInterestPayment:!1,isRemoteRegistration:!1}),o=rl(r,t,i),{defaultMonth:c,income:d,finalSum:m,rate:h}=o,{onChange:g}=s("monthsValue");return a((()=>{g&&g(c)}),[c]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Pn({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),Qn({title:"Срок вклада, месяцев",min:o.minMonths,max:o.maxMonths,availableMonths:o.availableMonths,...s("monthsValue"),value:o.monthsValue}),u("div",{className:"mt-7",children:ml({...o,...i},s)})]}),u(Bn,{rate:h,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(wn,{title:"Доход по вкладу",value:d,postfix:"₽",prefix:"+"}),u(wn,{title:"Сумма в конце срока",value:m,postfix:"₽"}),Yt(n,{className:"mt-7",isVertical:!0}),Rn(l)]})]})})),ml=(e,t)=>{return p("div",{className:"flex flex-col gap-y-7",children:[e.isShowMonthlyInterestPayment?Ln({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment}):null,e.isShowRemoteRegistration?(n={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration},Dn({...n,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]});var n},hl={CreditCalculatorForm:al,DepositCalculatorForm:dl,BusinessDepositCalculatorForm:qn,BonusCalculatorForm:zn},ul=(e,t)=>{const n=e?.calcType;if(!n||!(n in hl))return null;const l=hl[n];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(I,{className:"text-center mb-6",title:e.title}):null,u(l,{...e})]})},String(t))},pl=g((({className:e="",calculatorTabs:t=[],...n})=>{const a=t.map((e=>e.nav||{})),r=t.map((({calculatorBlock:e})=>e||{})),[s,o]=l(0),c=i((e=>o(e)),[]),[d,m]=fn({itemCount:t?.length,visibleItemCount:3});return p(C,{className:w("box-border overflow-hidden relative",e),defaultPadding:"p-0",...n,children:[p("div",{className:"bg-white",children:[a.length>1?gl({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,Nn({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:r?.length?r.map(ul):null})]})}));function gl({activeIndex:e,tabsNav:t,slideIndexShift:n,onClick:l}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:n,onClick:l}){const a=n?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",i=n?"text-xl mb-1.5":"text-l mb-[3px]",r=n?"text-l font-light text-white":"text-m font-light text-secondary-text",s=n?"":"text-primary-main",o=e?.icon?.iconVersion,c=n?"white":"normal";return p("button",{type:"button",onClick:l,"aria-label":e?.title,className:w("box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]",a),children:[u(Rt,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:i,children:e?.title}),u("div",{className:r,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const xl=g((e=>{const{onChange:t,min:n,max:l,defaultValue:a="0",fractionDigits:r=0,...s}=e,o=rt(e,{normalize:(e=a)=>n&&l?String(st(Number(fl(e)),n,l)):fl(e),format:ot(r)}),c=i((e=>t&&t(fl(e))),[t]);return u(pe,{onChange:c,...s,...o})})),fl=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),bl=g((e=>u(xl,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(me,{size:"text-xl",font:"font-light",children:"₽"})})}))),vl="amount",yl={[vl]:1500},Nl=g((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:l="1500",button:a,...i})=>{const[{amount:r},{field:s}]=B(yl),o=r<=0,c=o?ie({version:a?.version}):re({className:"text-white",version:a?.version}),d=Y();return p(C,{className:w("flex flex-col items-center",e),defaultPadding:"p-default",...i,children:[t?u(I,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,p("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(bl,{name:vl,valid:!o,placeholder:l,label:n,...s(vl,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",c),disabled:o,...d(a),children:a.text}):null]})]})})),wl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),kl=[];function Cl(e,t,{className:n,...l}={}){const{key:a,blockDecorator:i=wl,blocksRegistry:r={},ancestors:s=kl}=t,{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const c=o&&r[o];return i({blockClassName:w("scroll-mt-12",n,e.style||"col-span-12"),block:e,ancestors:s,render:({block:n,blockClassName:i})=>{const{content:r}=n;return c?u(c,{className:i,block:e,options:t,...r,...l},a):null}},a)}const Sl=[],Il=(e,{key:t,ancestors:n=Sl,slotName:l=null,renderProps:a=Cl,...i})=>(e||[]).map(((e,r)=>a(e,{...i,key:`${t||e.type}-${r}`,ancestors:i.parent?[...n||Sl,[i.parent,l]]:n})));function Tl({children:e,block:t,options:n,renderProps:l}){return e||(t&&n?Il(t.blocks,{...n,parent:t,renderProps:l}):null)}const Bl=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Rl=g((({className:e="",style:t,idx:n,activeIndex:l,observerOptions:a,children:r,onIntersection:s})=>{const o=v(i((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===l),ref:o,children:r})})),Pl=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Ml=g((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:l=0,gap:a=0,padding:r=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const g={sensitivity:1,rootRef:t},x=s([]),f=i(((e,t)=>{const n=[...x.current||[]];n[e]=t,x.current=n,h&&h(n),p&&p(zl(n))}),[h,p]),b=l>0?a*Number(l)-1:0,v="vertical-list"===o,y="horizontal-list"===o,N={...y?$l(r,b):{},...v?Bl(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(k=(e,t)=>u(Rl,{className:w(c,l?Pl[l-1]:"",v?"h-full":""),style:y?$l(r/4):{},activeIndex:n,idx:t,observerOptions:g,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),$l=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),zl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Vl=e=>t=>e.scrollWidth/t,_l=e=>(t,n)=>{e.scrollBy({left:n*Vl(e)(t),behavior:"smooth"})},jl=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const a=s(null),[r,o]=l([]),c=i((e=>{o((t=>{return(n=t)===(l=e)||Boolean(n&&l&&n?.length===l?.length&&n.every(((e,t)=>e===l[t])))?t:e;var n,l})),n&&n(e)}),[e]),[d,m]=r.length?[Hn()(r),En()(r)]:[-1,-1],h=d>0,u=m<e-1,p=i((()=>{var n;a.current&&(t&&!h?(n=a.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):_l(a.current)(e,-1))}),[t,e,h]),g=i((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):_l(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Dl="absolute top-[calc(50%-24px)] z-40",Ll="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Al=g((({scroll:e,arrowsPadded:t,isBlur:n,onScrollLeft:l,onScrollRight:a,hasEdgeBlocks:r,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,g=r?s>0:c,x=r?s<o-1:d,f=i((()=>{r?(c&&s!==o-1&&m(),l()):m()}),[m,l,r,c,s,o]),b=i((()=>{r?(d&&0!==s&&h(),a()):h()}),[h,a,r,c,s,o]);return p("div",{children:[Ol(n,e),g?u(vn,{className:w(Dl,t?"left-8":"left-0"),onClick:f}):null,x?u(yn,{className:w(Dl,t?"right-8":"right-0"),onClick:b}):null]})})),Ol=(e,t)=>e?p("div",{children:[t.canScrollLeft?u("div",{className:w(Ll,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Ll,"right-0 bg-opacity-to-white")}):null]}):null,El={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Fl={"horizontal-list":"w-6","vertical-list":"h-6"},Ul=g((({containerRef:e,activeIndex:t,dotCount:n=0,listType:l="horizontal-list",version:a})=>n?u("div",{className:w("flex gap-2",El[l],a?"group":""),...a?{"data-ver":a}:{},children:new Array(n).fill(null).map(((n,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Fl[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),Hl=({showArrows:e,showDots:t,scrollButtonsProps:n,dotsProps:l})=>[e?u(Al,{...n},"0"):null,t?u(Ul,{...l,listType:"horizontal-list"},"1"):null],Xl=g((({className:e="",itemCount:t,visibleItemCount:n=0,isBlur:a=!0,isCyclic:r=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,showArrows:m=!0,isGap:h=!0,...g})=>{const{blocks:x=[]}=g.block||{},f=t||x?.length,[b,v]=l(Math.floor(n/2)),y=i((()=>v((e=>e+1))),[]),N=i((()=>v((e=>e-1))),[]),[k,S]=jl({itemCount:f,isCyclic:r}),[I]=S.visibleIndicesRange,T=x&&"CarouselBankHistoryCard"===x[0]?.type;return u(C,{className:e,defaultPadding:Wl(o),...g,children:p("div",{className:w(Kl(d),"relative max-w-full"),children:[u(Ml,{containerRef:k,visibleItemCount:n,snapAlign:"snap-start",gap:h?16:void 0,onVisibleIndicesChange:S.handleVisibleIndicesChange,children:Tl({...g,renderProps:T?(e,t)=>Cl(e,t,{blocksLength:x?.length,activeIndex:b}):Cl})}),Hl({showArrows:m,showDots:c,scrollButtonsProps:{scroll:S,arrowsPadded:s,isBlur:a,onScrollLeft:N,onScrollRight:y,hasEdgeBlocks:T,activeIndex:b,itemCount:f},dotsProps:{containerRef:k,activeIndex:I,dotCount:f}})]})})}));Xl.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Wl=e=>e?"p-default":"",Kl=e=>e?"flex justify-center":"",Gl=g((({title:e,description:t,blocksLength:n=0,activeIndex:l,options:a})=>{const i=Number(a?.key?.split("-").slice(-1)[0])||0;return u(C,{className:"flex h-[485px]",defaultPadding:"p-0",children:u("div",i===l?{className:"relative flex items-center w-full",children:u(tn,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue",ql(i,n),Jl(i))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",Jl(i)),children:u("span",{className:Yl(i),children:e})})})})})),Jl=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Yl=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},ql=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",Zl=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12},Ql={normal:"min-w-[970px]",small:"min-w-[355px]"};function ea(e="",t="normal"){return Zl(e)<=4?"w-[375px]":Ql[t]}const ta="absolute border border-solid border-gray w-full h-full sm:hidden",na=g((({className:e="",button:t,description:n,title:l,carouselVersion:a="normal",version:i=""})=>u("section",{className:w("flex pb-9 pl-12 sm:p-5 border-box h-full sm:max-w-[375px]",ea(e,a),e),children:p("div",{className:"relative w-full",children:[u("div",{className:`${ta} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${ta} z-10 top-6 right-8 bg-green`}),u("div",{className:`${ta} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(tn,{className:"!p-0",title:l,description:n,headlineVersion:"L",align:"text-left",version:i}),Yt([t],{className:"mt-14 sm:justify-center",isVertical:!0})]})]})}))),la={black:"bg-black",white:"bg-white"},aa=g((({className:e="",title:t,description:n,image:l,price:a,button:i,colors:r,...s})=>p(C,{className:w("border box-border border-gray p-default sm:p-7 h-full flex flex-col justify-left",e),...s,children:[l?.src?u(Rt,{className:"mb-5 flex justify-center",image:l}):null,t?u(I,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?u("div",{className:"mb-4",children:u(de,{size:"text-m",align:"text-left",font:"font-light",children:n})}):null,r?.length?p("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(me,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(ia)]}):null,a?p(me,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Yt([i],{buttonClassName:"mt-5 w-full"})]}))),ia=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${la[e]}`},String(t)),ra=g((({className:e="",href:t,target:n,isRemote:l=!1,children:a})=>{const i=Y({isRemote:l})({href:t,target:n});return u(t?"a":"div",{className:w("block",e),...t?i:{},children:a})})),sa=g((({className:e="",icon:t,title:n,description:l,href:a,target:i,...r})=>u(C,{className:w("w-[365px]",e),defaultPadding:"p-0",...r,children:p(ra,{className:"flex flex-col",href:a,target:i,children:[t?.icon?u(Rt,{image:t}):null,t?.src?u(Rt,{image:t}):null,n?u(I,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:n}):null,l?u("div",{className:"mb-4",children:u(me,{font:"font-light",size:"text-m",color:"text-secondary-text",children:l})}):null]})}))),oa={start:"self-start",center:"self-center",end:"self-end"},ca=g((({className:e,defaultPadding:t,padding:n,title:l="",insetTitle:a="",buttons:i,leftImage:r,rightImage:s,imageAlign:o,backImage:c,children:d})=>p("div",{className:w("relative flex flex-col gap-lg font-sans overflow-hidden",n||t,e),children:[c?u("div",{className:"absolute bottom-0 right-0 z-0",children:c}):null,l?u("div",{className:"relative",children:l}):null,p("div",{className:"grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-lg",children:[da(r,{imageAlign:o}),p("div",{className:w("flex flex-col gap-lg max-w-[600px] xl:max-w-[728px]",r?"":"grow"),children:[a,u("div",{className:"grow",children:d}),i]}),da(s,{className:"-order-1 sm:order-1",imageAlign:o})]})]}))),da=(e,{className:t,imageAlign:n})=>e?u("div",{className:w("flex-shrink-0",n&&oa[n],t),children:e}):null,ma={1:"flex-col",2:"gap-x-10 flex-wrap"},ha=g((({className:e,padding:t,additionalDescription:n,cardsList:l=[],columnsMode:a=1,description:i,image:r,title:s,...o})=>u(C,{className:w("box-border text-left w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",e),padding:"p-0",...o,children:p(ca,{className:"h-full",defaultPadding:"p-m",padding:t,title:s?u(I,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:s}):null,backImage:r?.src?u(Rt,{image:r}):null,children:[p("div",{className:"flex justify-between mb-4",children:[i?u("div",{className:"w-1/3",children:u(me,{size:"text-h6",children:i})}):null,n?u(me,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:n}):null]}),l.length?u("ul",{className:w("list-none m-0 p-0 flex gap-y-2",ma[a]),children:ua(l,a)}):null]})}))),ua=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,n)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(me,{size:(l=t,1===l?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(n));var l})),pa="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",ga=g((({text:e,href:t="",target:n="",className:l=""})=>{const a=Y()({href:t,target:n});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${l}`,children:[p("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l font-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(Rt,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:`${pa} mx-1.5 mt-1.5`}),u("div",{className:`${pa} mt-3 mr-3`})]}):null})),xa=g((({className:e,additionalDescription:t,description:n,links:l,title:a,...i})=>p(C,{className:w("flex w-full overflow-hidden justify-between",e),...i,children:[p("div",{className:"flex flex-col max-w-96 pr-m text-white text-xl font-light",children:[u(tn,{isPadding:!1,title:a,description:n,as:"h1",align:"text-left"}),t?u(tn,{className:"pt-s",description:t,align:"text-left",isPadding:!1}):null]}),l?.length?fa(l):null]}))),fa=e=>{const t=Math.ceil(e.length/10);return u(Xl,{className:"min-w-[832px] w-[832px]",version:"",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,n)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*n,10*(n+1)).map(((e,t)=>u(ga,{className:"m-1",...e},String(t))))},String(n))))})},ba={L:"w-1.5 h-1.5 mr-4",M:"w-1.5 h-1.5 mr-3",S:"w-1 h-1 mr-2"},va=g((({className:e,isDotted:t=!0,children:n,size:l="M"})=>p("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",ba[l])})}):null,u("span",{children:n})]}))),ya={S:"text-l font-light",M:"text-h6",L:"text-h5"},Na={S:"ml-2",M:"ml-3",L:"ml-4"},wa=g((({className:e,hasIndent:t,isDotted:n,items:l,listItemSize:a="M"})=>l?.length?u("section",{className:w("flex flex-col gap-2 text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",ya[a],t?Na[a]:"",e),role:"list",children:l.map(((e,t)=>u(va,{isDotted:n,size:a,children:e},String(t))))}):null)),ka=g((({additionalDescription:e,align:t="text-center",button:n={},className:l="",description:a,headlineSmallVersion:i="H6",href:r,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...g})=>p(C,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,l),defaultPadding:"p-0",version:u,...g,children:[p(ra,{className:"p-s",href:r,target:m,children:[Ca(s),Sa(i,h),Ia(a,h),Ba(d,o,u),Ta(e)]}),Yt([n],{className:w("p-s pt-0",c?"":"self-center min-w-[158px]"),isVertical:c})]}))),Ca=e=>p("div",{className:"flex justify-center",children:[e?.src?u(Rt,{className:"mb-5",image:e}):null,e?.icon?u(Rt,{className:"w-8 h-8 min-w-8 mb-5",image:e}):null]}),Sa=(e,t)=>t?u("div",{children:u(me,{size:en[e],children:t})}):null,Ia=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(de,{size:"text-l",children:e})}):null,Ta=e=>e?u("div",{className:"mt-auto",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Ba=(e,t,n="primary")=>e?.length?u(wa,{className:w("max-w-[308px] mt-2","primary"===n?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,listItemSize:"S"}):null,Ra=g((({className:e="",title:t,icon:n,list:l=[],href:a,target:i,...r})=>u(C,{className:w("border border-gray",e),defaultPadding:"p-lg sm:p-0",...r,children:p(ra,{className:"sm:flex sm:items-center",href:a,target:i,children:[u("div",{className:"min-w-[200px] flex justify-center",children:n?.src||n?.icon?u(Rt,{image:n}):null}),p("div",{className:"sm:px-3 py-xl",children:[t?u(I,{className:"mb-2 sm:mb-3.5",headingType:"h6",title:t}):null,l.length?u("div",{className:"flex flex-col gap-2 sm:gap-3",children:l?.map(Pa)}):null]})]})}))),Pa=(e,t)=>p("div",{className:"flex flex-row-reverse justify-between gap-y-1 sm:flex-col",children:[e.title?u(me,{size:"text-l",font:"font-normal",children:e.title}):null,e.description?u(de,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e.description}):null]},String(t)),Ma={default:"w-14 h-14",small:"w-12 h-12"},$a=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",Ma[t]),za=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],Va=g((({buttonSize:e="default",rounded:t=!1,icon:n,...l})=>{const{href:a,version:i,text:r=""}=l,{iconMapped:s,label:o}=(e=>za.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(a),c=_a(n)??s;return u(se,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",$a(r,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:r,version:i,...l,children:c&&!r?u(Rt,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),_a=e=>e?.src||e?.icon?e:void 0,ja=g((({className:e="",media:t,children:n,buttonSize:l})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(Va,{buttonSize:l,...e},String(t))))}),u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:n})]}))),Da=g((({className:e="",description:t,href:n,icon:l,items:a=[],socialMedia:i=[],target:r,title:s,align:o="text-left",version:c="primary",...d})=>u(C,{className:w("relative min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),defaultPadding:"p-s",version:c,...d,children:p(ra,{href:n,target:r,children:[u(tn,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(wa,{items:a,listItemSize:"S"}):null,i.length?u(ja,{className:"pt-10",media:i}):null]}),La(l)]})}))),La=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(Rt,{image:e}):null,e?.src?u(Rt,{image:e}):null]}),Aa=g((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:w(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Oa=g((({className:e="",__html:t,richVersion:n="striped",...l})=>u(C,{className:w("border border-gray h-full min-w-96",e),...l,children:u(Aa,{__html:t,richVersion:n})}))),Ea=g((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=l(n),c=i((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=r?r({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Fa=g((({className:e="",isUnfolded:t,children:n})=>{const l=s(null);return a((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} ${e}`,children:n})})),Ua=(e=!1)=>e?"p-8 mt-8 pt-20":"p-8 mt-20",Ha=(e,t)=>{const{title:n,description:l,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[n?u("div",{className:"opacity-80",children:u(me,{size:"text-m",color:"text-secondary-text",children:n})}):null,l?u("div",{className:"mt-1",children:u(me,{size:"text-xl",color:"text-primary-text",children:l})}):null,a?.length?u("div",{className:"text-primary-main",children:Yt(a)}):null]},String(t))},Xa=g((({className:e="",title:t,align:n="text-center",icon:l,isHighlighting:a=!1,button:i,cardCells:r=[],...s})=>{const o=r.map(Ha),c=o.slice(0,1),d=o.slice(1);return p(C,{className:w("relative border border-gray flex flex-col",e),defaultPadding:Ua(a),...s,children:[a?Ga():null,Wa(l),t?u(I,{className:w("pt-xs",n),headingType:"h5",title:t}):null,i?u(se,{className:"w-full mt-4",...i}):null,r.length?u(Ea,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[c,u(Fa,{isUnfolded:e,children:d})]}),renderFoldButton:r.length>1?Ka:null}):null]})})),Wa=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(Rt,{image:e}):null}),Ka=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(_e,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Ga=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(_e,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(de,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Ja="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Ya="border-gray border-solid border",qa="border-main-divider border border-t-0 border-x-0",Za="w-[200px] mr-6",Qa=g((({icon:e,image:t,title:n,link:l})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Ya} ${Ja}`,role:"columnheader",children:[e&&!t?.src&&u(Rt,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&u(Rt,{className:"mb-[18px]",image:t}),n?u(I,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,l?.text&&u("div",{className:"mt-auto w-full",children:u(se,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs font-light font-medium py-[11px]",children:l.text})})})]}))),ei={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ti=g((({children:e,activeIndex:t,columnWidth:n,version:l="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:ei[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),ni=g((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),li=g((({colHeaders:e,activeIndex:t})=>p(ni,{children:[u("div",{className:Za,role:"columnheader"}),u(ti,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(Qa,{...e},String(t))))})]}))),ai=g((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:l})=>u("div",{className:`w-80 box-border flex flex-col ${Ya} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${l?Ja:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${qa} ${l&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>si(e,t,l)))})}))),ii=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),ri=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),si=({label:e,description:t},n,l)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:ii(l),children:e}):null,t?u("div",{className:ri(l),children:t}):null]},String(n)),oi=(e=!1)=>`text-s py-7 ${qa} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,ci=g((({row:{header:e,data:t},activeIndex:n,isColoredFirstColumn:l,isFirstRow:a,isLastRow:i})=>p(ni,{children:[e?.title?u("div",{className:oi(i),children:e.title}):null,t?.length?u(ti,{activeIndex:n,columnWidth:336,children:t.map(((e,t)=>u(ai,{cell:e,isFirstRow:a,isLastRow:i,isFillGradient:l&&0===t},String(t))))}):null]}))),di=g((({rowData:e,isColoredFirstColumn:t,activeIndex:n,controls:l})=>{const{isScrollAvailable:a}=l;return p("div",{className:"relative",children:[e.map(((e,l,{length:a})=>u(ci,{row:e,isFirstRow:0===l,isLastRow:l+1===a,activeIndex:n,isColoredFirstColumn:t},String(l)))),a?Nn({...l,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),mi=g((({columns:e=[],rowHeaders:t,isShowAllRow:n,visibleRowLength:l,isColoredFirstColumn:a})=>{const i=e?.map((({header:e})=>e||{})),r=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:r.map((e=>e?.[t]||[{}]))}))).slice(0,n?t.length:l),[o,c]=fn({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[i?.length?u(li,{colHeaders:i,activeIndex:o}):null,s?.length?u(di,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),hi=g((({className:e="",title:t,rowHeaders:n,columns:a,visibleRowLength:r=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=l(!r),m=i((()=>d((e=>!e))),[]);return p(C,{className:w("overflow-hidden relative",e),defaultPadding:"p-default",...o,children:[u(I,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(mi,{columns:a,rowHeaders:n,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:r}),r?ui({isShowAllRow:c,onClick:m}):null]})})),ui=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:Za}),u("button",{onClick:t,className:"mt-m py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u(me,{size:"text-xs",font:"font-medium",children:e?"Скрыть":"Показать все параметры"})})]})}),pi=g((({className:e,contacts:t,info:n,version:l="secondary",...a})=>p(C,{className:w("flex",e),defaultPadding:"p-default",version:l,...a,children:[n?.length?gi(n):null,t?.length?gi(t):null]}))),gi=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>xi({column:e,index:t})))}),xi=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:l},a)=>p("div",{className:"mt-6 first:mt-0",children:[u(tn,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),n?u("div",{className:"mt-1.5 opacity-80",children:u(de,{size:"text-m",font:"font-light",children:n})}):null,l?.href?u(se,{className:"mt-6",...l}):null]},String(a))))},`col-${String(t)}`):null,fi=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,bi=(e,t)=>Object.entries(e).map((([t,n])=>"number"==typeof n?((e,t)=>n=>fi(t[e])||fi(n[e])||vi(t[e])<=vi(n[e]))(t,e):"object"==typeof n&&"min"in n&&"max"in n?((e,t)=>n=>fi(t[e])||fi(n[e])||vi(t[e]?.min)>=vi(n[e]?.min)&&vi(t[e]?.min)<=vi(n[e]?.max))(t,e):Array.isArray(n)?((e,t)=>n=>fi(t[e])||fi(n[e])||t[e]?.some((t=>n[e]?.includes(t))))(t,e):((e,t)=>n=>fi(t[e])||fi(n[e])||t[e]===n[e])(t,e))).every((e=>e(t))),vi=e=>Number(e||0),yi=g((({className:e="",label:t,icon:n,dataTheme:l="",disabled:a=!1,onClick:i})=>p("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:i,disabled:a,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(Rt,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Ni=({isUnfolded:e,onToggle:t})=>u(yi,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),wi=["ArrowDownIcon","ArrowUpIcon"],ki="grid grid-cols-12 gap-1 border-box",Ci=g((({label:e="",filtrationState:t={},topItemsCount:n=0,block:l,notFound:a,...i})=>{const r=l?.blocks?.filter((e=>bi(t,e.content||{})))||[],[s,o]=n>0?[r.slice(0,n),r.slice(n)]:[r,[]];return p("div",{children:[u("div",{className:w(r.length?"hidden":"block"),children:a?Si(a):null}),p("div",{className:w(r.length?"":"hidden"),children:[u("div",{className:w("mb-1",ki),children:Il(s,{...i.options,parent:l})}),u(Ea,{renderFoldableSection:({isUnfolded:e})=>u(Fa,{className:w(ki,e?"mb-1":""),isUnfolded:e,children:Il(o,{...i.options,parent:l})}),renderFoldButton:({isUnfolded:t,onToggle:l})=>u(yi,{className:w(n<1?"hidden":""),disabled:!o?.length,label:e,icon:wi[Number(t)],dataTheme:i.options?.page?.colorPalette,onClick:l})})]})]})}));function Si({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(de,{align:"text-center",children:u(me,{size:"text-h4",children:e})})}):null,t?u(de,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const Ii=g((({value:e,onChange:t,items:n=[],multiple:l})=>n.map((n=>u(He,{text:n.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(t)if(l){const l=e?.includes(n);t(l?(e||[]).filter((e=>e!==n)):[...e||[],n])}else t(e===n?"":n)})(n.value),type:l?"checkbox":"radio"},n.value))))),Ti=({field:e,reset:t,filtrationSchema:n,resetButton:l,children:a})=>p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[p("div",{className:"flex gap-11",children:[a,Object.entries(n).map(Bi(e))]}),l?u("div",{children:u(se,{className:"w-72 ml-3",onClick:t,...l})}):null]}),Bi=e=>([t,n])=>{const l=n?.type;return"array"===l?Ri(t,e)(n):null},Ri=(e,t)=>n=>{const l=n?.items?.enum?.map(((e,t)=>({value:e,title:n?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[n?.title?u("div",{className:"mb-4",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:n.title})}):null,u(Ii,{items:l,multiple:!0,...t(e)})]},e)},Pi={sum:500,period:{min:3,max:36}},Mi=g((({className:e,filtrationSchema:t={},resetButton:n,sumInput:l,periodInput:a,...i})=>{const[r,{field:s,reset:o}]=B(Pi),c=a?.max||36,d=p("div",{children:[u(bl,{label:l?.title,min:500,max:1e9,...s("sum",{parse:Number,format:String})}),u(ut,{title:a?.title,items:["От 3 мес","До 3 лет"],min:a?.min||3,max:c,...s("period",{parse:e=>({min:e,max:c}),format:({min:e})=>e})})]});return p(C,{className:w(e),defaultPadding:"p-0",version:"transparent",...i,children:[Ti({field:s,reset:o,filtrationSchema:t,resetButton:n,children:d}),u(Ci,{filtrationState:r,...i})]})}));Mi.childrenTypes=["ProductTile"],Mi.childSchema=e=>e?.filtrationSchema||{};const $i=e=>"Image"===e?.errorContentType&&e?.image?u(Rt,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,zi=g((({className:e="",title:t,subtitle:n,error:l,button:a,...i})=>{return p(C,{className:w("flex flex-col justify-center items-center",e),defaultPadding:(r=a?.text,r?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),version:"transparent",...i,children:[u("div",{className:"flex justify-center py-20",children:$i(l)}),t?u(I,{headingType:"h1",className:"text-left mb-4",title:t}):null,n?u("div",{className:"mb-7 max-w-[613px] text-center",children:u(me,{size:"text-xl",font:"font-light",children:n})}):null,a?.text?u(se,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var r}));var Vi;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(Vi||(Vi={}));const _i={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},ji=e=>e?Ai.format(e):"",Di=(e,t)=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:ji(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:ji(t)})]}),Li=(e,t="")=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:ji(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),Ai=new Intl.NumberFormat("ru",{style:"currency",currency:Vi.RUB}),Oi=e=>u("th",{className:"pl-11",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:e})}),Ei=g((({className:e,currencies:t=[],actuality:n="",officeName:l="",...a})=>{const i=Fi(t,4);return p(C,{className:e,...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between mb-8",children:[u(I,{headingType:"h4",title:"Курс обмена валют в "+l,className:"whitespace-pre-wrap text-h4 mb-5"}),u("div",{className:"pl-11",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:n})})]}),u("div",{className:"flex flex-row pt-4 text-left",children:i.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),Oi("Купить"),Oi("Продать"),Oi("Лучшая покупка"),Oi("Лучшая продажа")]})}),u("tbody",{children:i.map((e=>(({title:e,buyPrice:t,buyDifference:n,sellPrice:l,sellDifference:a,buyOfficeName:i,sellOfficeName:r})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(Rt,{image:{icon:_i[e]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:e})]})}),Di(t,n),Di(l,a),Li(t,i),Li(l,r)]},e))(e)))})]}):null})]})})),Fi=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var Ui;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Ui||(Ui={}));const Hi=new Intl.NumberFormat("ru",{style:"currency",currency:Ui.RUB}),Xi=e=>e?Hi.format(e):"",Wi="text-left text-m font-light text-secondary-text",Ki=`${Wi} pl-11`,Gi={USD:"DollarIcon",EUR:"EuroIcon"},Ji=g((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:Wi,children:"Валюта"}),u("th",{className:Ki,children:"Купить"}),u("th",{className:Ki,children:"Продать"})]})}),u("tbody",{children:t.map(Yi)})]}))),Yi=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(Rt,{image:{icon:Gi[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:Xi(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:Xi(e?.buyExchangeRate)})]},t)},qi=g((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(Rt,{image:{icon:"GpsIcon"},width:"24",height:"24"}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Zi=(e,t,n)=>{const l=Number(Qi(e))*Math.pow(t,n?-1:1);return Number.isInteger(l)?l:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(l)},Qi=e=>e.replace(/[^\d.,]/g,"").replace(",","."),er=e=>{return(t=[[e=>e.value!==Ui.RUB&&e.oppositeValue!==Ui.RUB,()=>e.handleConvert(e.value,Ui.RUB)],[e=>e.value===Ui.RUB&&e.oppositeValue===Ui.RUB,()=>e.handleConvert(e.value,Ui.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function tr(e){const{placeholder:t,rates:n,selected:l,value:a,setValue:i,setSelected:r}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:l,text:l};return p("div",{className:"relative flex",children:[u(pe,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:i}),s.length?u(Le,{isBorder:!1,onChange:e=>r(e.key),options:s,value:o}):null]})}const nr=g((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[r,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Ui.RUB,selectBuy:n?.[0]?.currency?.currency||Ui.USD}),o=i((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[tr({placeholder:"Хочу продать",rates:n,selected:r.selectSell,setSelected:lr(r,o,n),value:r.inputSell,setValue:e=>ir(o,n)(e,r.selectSell,r.selectBuy)}),tr({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:ar(r,o,t),value:r.inputBuy,setValue:e=>rr(o,t)(e,r.selectBuy,r.selectSell)}),a?.text?u(se,{className:"py-4",version:a?.version,...a,children:a.text}):null]})})),lr=(e,t,n)=>l=>{t({selectSell:l}),er({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{ir(t,n)(e.inputSell,l,a)}})},ar=(e,t,n)=>l=>{t({selectBuy:l}),er({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>rr(t,n)(e.inputBuy,l,a)})},ir=(e,t)=>(n,l,a)=>{e({inputSell:Qi(n),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===l))?.saleExchangeRate;i&&e({inputBuy:String(Zi(n,i,l===Ui.RUB)||"")})},rr=(e,t)=>(n,l,a)=>{e({inputBuy:Qi(n),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===l))?.buyExchangeRate;i&&e({inputSell:String(Zi(n,i,l===Ui.RUB)||"")})};const sr=async e=>{const t=await or(),n=t?.code||"000";return{region:t,exchangeRates:await cr(e,n)}},or=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},cr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},dr=g((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const{exchangeRates:a}=function(){const{data:e}=V("/api/v1/exchangerates",sr);return e||{}}(),i=mr(a?.exchangeRate?.currencies),r=i.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:Ui.RUB}});const s=i.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Ui.RUB}}),u(C,{className:w("box-border min-h-80",e),...l,children:u(ca,{className:"h-full",title:u(I,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:p("div",{className:"flex gap-xxl",children:[p("div",{children:[i?u(Ji,{className:"mb-xl",exchangeCurrencyItems:i}):null,u(qi,{address:a?.address})]}),i.length&&r.length&&s.length?u(nr,{className:"grow",currencyRatesBuy:r,currencyRatesSell:s,button:n}):null]})})})})),mr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],hr={};function ur(e,t={}){const{data:n}=V(`/wcms-resources/${e}.json`,D,{fallback:t});return n||hr}const pr={"bg-white":"color",transparent:"white"},gr={"bg-white":"text-primary-main",transparent:"text-white"},xr=(e,t,n)=>u(Rt,t?.src?{image:t,className:gr[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:pr[e]},className:gr[e],width:n?.width,height:n?.height}),fr={"bg-white":"text-primary-text",transparent:"text-white"},br=(e,t,n)=>u("span",{className:`${fr[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),vr=g((({className:e="",href:t="/",logo:n,children:l=n?.title,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0})=>p("a",{className:w("inline-flex items-center font-sans no-underline",e),href:t,target:a?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[xr(i,n?.image,{width:"40",height:"45"}),r?br(l||n?.title,i):null]}))),yr=g((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(Rt,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Nr(e){throw new Error(e)}function wr({onOpen:e,onClose:t}={}){a((()=>b.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:Nr(n)}}))),[e,t])}const kr=(e,t,n=300)=>a((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t);function Cr(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const Sr=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:l,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),l=new Array(e.length),a=new Array(t.length);let i=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-n),o=Math.min(r+n,t.length-1);for(let n=s;n<=o;n++)l[r]||a[n]||e[r]!==t[n]||(i++,l[r]=!0,a[n]=!0)}return{m:i,s1Matches:l,s2Matches:a}}(e,t);if(0===n)return 0;const i=function(e,t,{s1Matches:n,s2Matches:l}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!n[i])continue;let s=r;for(;s<t.length;s++)if(l[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:l,s2Matches:a}),r=(n/e.length+n/t.length+(n-i/2)/n)/3,s=r>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return r+s*(1-r)};const Ir=(e,t)=>(n,l)=>{for(const[a,i]of l)n.set(a,e(n.get(a)||t,i));return n},Tr=(e=[])=>e.reduce(((e,t)=>e+t),0),Br=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Rr=e=>t=>e.map((([e,n])=>[Sr(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>Mr(t,e))).reduce(Ir(Math.max,0),new Map),Pr=e=>t=>{return Cr(t,t.map((({title:e})=>e)).map((e=>t=>{const n=Br(t||"");return n.length?Tr(e.map((e=>Fn(n.map(Sr(e)))))):0})(e))).sort((l=([,e])=>e,n=(e,t)=>l(e)-l(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,l},Mr=(e,t)=>new Map(e.map((e=>[e,t]))),$r=["/"],zr=({basePathList:e=$r,initialQuery:t="",wasOpened:n})=>{const[i,s]=l(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=r((()=>e.map((e=>n?e:null))),[n,e]),{data:c}=V(o,Vr),[d,m]=l(null);return kr((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=Br(e);if(!a.length)return[];const i=Object.entries(l),r=[...a.map(Rr(i)).reduce(Ir(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return Pr(a)(r)})(i)))}),[c,i]),[d,{value:i,onChange:s}]},Vr=async(...e)=>(await Promise.allSettled(e.map((e=>j(H(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),_r=g((({className:e,isOpened:t,head:n,children:l,onClose:i})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&i&&i()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[i]),t?u("div",{className:w("fixed inset-0 bg-white text-l font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(yr,{className:"absolute top-0 -right-12",onClick:i}),n]}),l]})}):null)));function jr(e,t=!1){const[n,{setTrue:a,setFalse:r}]=$e(t),[o,c]=l({id:e}),d=s(n);d.current||=n;const m=i((t=>{t.id===e?(c(t),a()):r()}),[e]),h=i((()=>{r(),b.fire("dialog",{type:"close"})}),[]);return wr({onOpen:m,onClose:r}),{...o,isOpened:n,wasOpened:d.current,open:a,close:r,onClose:h}}const Dr=g((({className:e,topItems:t})=>{const n=Y({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(n).map(Lr)})})),Lr=(e,t)=>{const{text:n,items:l,href:a,target:i,onClick:r}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:i||"_self",onClick:r,children:n||`Раздел ${t}`}),l?.map(((e,t)=>u(Ar,{...e,basePath:o(a),index:t},String(t))))]},String(t))},Ar=g((({text:e,index:t,basePath:n,...l})=>{const a=Y({isRemote:!(!d.BASE_PATH||!n)&&!d.BASE_PATH.startsWith(n),basePath:n}),{href:i,target:r,onClick:s}=a(l);return u("a",{className:w("text-l font-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:i,target:r||"_self",onClick:s,children:e||`Раздел ${t}`})})),Or=g((({className:e,value:t,autoFocus:n,onChange:l,onFocus:a})=>{const r=i((e=>{l&&l(e.target?.value||"")}),[l]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(Rt,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:n,onChange:r,onFocus:a})]})})),Er="search",Fr=g((({topItems:e})=>{const t=jr(Er),n=r((()=>e?.map((e=>e.href||"/"))),[e]),[l,i]=zr({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=r((()=>Ur(e)(l)),[e,l]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(_r,{...t,head:u(Or,{className:"my-5",autoFocus:!0,...i}),children:u(Dr,{topItems:s})})})),Ur=e=>t=>e?.length&&t?.length?Cr(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:H("/",t)})))}))):[];const Hr=g((({className:e})=>{const[t,n]=l(""),a=i((()=>n("")),[]);wr({onClose:a});const{open:r}=O(Er),s=i((e=>{n(e),Xr(e)&&r(e)}),[]);return p("div",{className:e,children:[u(Or,{value:t,onChange:s}),u(yr,{className:"absolute top-2 right-3 sm:hidden",onClick:a})]})})),Xr=e=>e&&e.length>=3,Wr=g((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(Kr):null,n?u(se,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Kr=(e,t)=>p("div",{className:"mb-6",children:[u("div",{className:"mb-4",children:u(me,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{children:e.items?.map(Gr)})]},String(t)),Gr=(e,t)=>p("div",{className:"mb-4",children:[u("div",{children:Jr(e.type,e.text)}),u("div",{className:"mt-1 text-s font-light text-secondary-text",children:e.description})]},String(t)),Jr=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Yr(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Yr=e=>e.replaceAll(/\D/g,""),qr=g((({className:e="",index:t,text:n,...l})=>{const a=Y(),{href:i,target:r,onClick:s}=a(l);return u("a",{className:w("text-secondary-text",e),href:i,target:r,onClick:s,children:n||`Документ ${t}`})})),Zr=g((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(qr,{index:t,className:"text-l font-light max-w-[292px]",...e},String(t))))}):null}))),Qr=g((({className:e="",index:t,...n})=>{const l=Y({isRemote:!0}),{href:a,target:i,text:r,onClick:s}=l(n);return u("a",{className:`text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),es=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(me,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(Qr,{index:t,...e},String(t))))}):null]}))),ts="w-[204px]",ns=g((({className:e="",...t})=>{const n=t.options?.page?.fallback,l=ur(d.SITEMAP||"sitemap",n),{documents:a,relatedEnterprises:i,contacts:r,socialMedia:s,mobileApps:o,logo:c}=ur(d.FOOTER||"footer",n);return p(C,{tag:"footer",className:e,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-8 xl:gap-8",children:[u(vr,{className:ts,logo:c}),u(Hr,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(Wr,{items:r,hasButton:!0}),u(ja,{media:s,children:"Соцсети"}),u(ja,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u(Dr,{className:"flex-grow",topItems:l?.topItems})]}),u(Zr,{className:"mt-[98px]",links:i}),u(es,{links:a})]})})),ls=g((({className:e="",title:t,description:n,calendar:l,...a})=>p(C,{className:e,defaultPadding:"p-default",...a,children:[u(tn,{className:"!p-0 mb-4",title:t,description:n,headlineVersion:"M"}),l?as(l):null]}))),as=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>is(e,t)))}),u("div",{className:"flex w-full",children:n.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:rs(e)}),p("div",{className:"text-s font-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},is=(e,t)=>e.month?.map(((e,n)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),rs=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(Rt,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),ss=864e5;function os(e,t,n=globalThis?.localStorage){const l=i((async(...l)=>{const a=`async:${e}`,i=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<ss?t:void 0}(n.getItem(a));if(i)return i;const r=await t(...l);return n.setItem(a,JSON.stringify({data:r,timestamp:Date.now()})),r}),[e,t]);return V(e,l)}const cs=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},ds=e=>({href:t})=>U(E(t)?e.href:e.pathname).startsWith(U(t));const ms=g((({className:e,searchTerm:t,onSearch:n})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>n(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),hs="location",us=g((({currentLocation:e,onChangeLocation:t,foreignOffices:n})=>{const a=jr(hs),[r,s]=l(""),o=gs(function(){const{data:e}=V("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const n=new Map;for(const l of e){const e=t(l),a=n.get(e)||[];n.set(e,[...a,l])}return n})(o,ps),d=i((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(_r,{...a,head:p("div",{children:[u(xs,{currentLocation:e,onChangeLocation:d}),u(ms,{onSearch:s,searchTerm:r,className:"mb-7"})]}),children:[r&&r.length>=3?u("div",{children:o.filter((({name:e})=>e&&Sr(e.toLowerCase())(r.toLowerCase())>=.8)).map(bs(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(fs(d))}),u(vs,{foreignOffices:n})]})})),ps=e=>e.name?.charAt(0)||"",gs=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),xs=g((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(me,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(me,{color:"text-primary-main",children:e.name})})]}):null)),fs=e=>([t,n])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(me,{size:"text-h6",children:t})}),n.map(bs(e))]},t),bs=e=>t=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),vs=g((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(ys,{...e},String(t))))})]}):null)),ys=g((({icon:e,...t})=>{const n=Y(),{text:l,target:a,href:i,onClick:r}=n(t);return p("div",{className:"flex gap-x-3",children:[e?u(Rt,{pathPrefix:"/wcms-resources/",image:e}):null,l?u("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:l}):null]})})),Ns=g((({className:e="",active:t,flat:n,children:l,...a})=>{const i=Y({isRemote:!0}),{href:r,target:s,text:o,onClick:c}=i(a);return u("a",{className:w(ws(t,n),e),href:r,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:ks(t,n),children:o||l})})})),ws=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),ks=(e=!1,t=!1)=>w("font-sans text-s font-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Cs={default:"w-6 h-6",large:"w-12 h-12"},Ss=g((({className:e,isRounded:t,buttonSize:n="default",isGrayBg:l=!1,disabled:a,ariaLabel:i,image:r,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",l?"p-3 rounded-full":"p-0 bg-inherit",l&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Cs[n]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":i,onClick:s,children:u(Rt,{image:r,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),Is=g((({className:e,version:t,locationName:n,officesLink:l})=>{const a="transparent"===t?"white":"black",{open:r}=O(hs),s=i((()=>r()),[]),{open:o}=O(Er),c=i((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Ns,{flat:!0,href:"#",text:n,onClick:s}),l?u(Ns,{flat:!0,href:l,text:"Офисы и банкоматы"}):null,u(Ss,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),Ts=g((({className:e="",items:t,activeItem:n})=>{const a=Y(),[r,s]=l(!1),o=i((()=>s((e=>!e))),[]),c=ze(i((()=>s(!1)),[]));return p("div",{className:w(r?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(r?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",r?"":"hidden"),"aria-hidden":!r,children:t?.map(((e,t)=>{const{text:l,...i}=e;return u("a",{className:w("text-l font-light pb-4 hover:text-primary-main",e===n?"text-primary-main":""),...a(i),children:l},e.href||String(t))}))})]})})),Bs=g((({className:e="",active:t,dataItemName:n,children:l,...a})=>{const i=Y(),{href:r,target:s,text:o,onClick:c}=i(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:r,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:Rs(t),children:o||l}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Rs=(e=!1)=>w("font-sans text-l font-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Ps=g((({observerOptions:e,onVisibilityChange:t,children:n,className:l,...a})=>{const r=v(i((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return u("span",{ref:r,className:l,children:u(Bs,{...a,children:n})})})),Ms=e=>globalThis[e];function $s(e,t){const[n,r]=l(),s=i((()=>r(Ms(e))),[e]);return a((()=>{const n=document.getElementById(t);if(!n){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),r(void 0)}}if(!Ms(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}const zs={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Vs=g((e=>{const[t,{setTrue:n}]=$e();return t?u(_s,{...e}):js({...e,onClick:n})})),_s=g((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),$s("chatbot",zs[e])})(e),js(t)))),js=({className:e,iconVersion:t,onClick:n})=>u(Ss,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:n,buttonSize:"large",isGrayBg:!0}),Ds={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},Ls=g((({version:e,internetBankUrl:t})=>t?u(se,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",Ds["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),As=g((({subItems:e=[],version:t,internetBankUrl:n})=>{const a="transparent"===t?"white":"black",i=(e=>(t=[])=>{const n=t?.filter(ds(e));return n?.length?En((e=>e.href?.length||0))(n):void 0})(J())(e),[o,c]=l(e.length),m=e.slice(o),h=s(null),g={rootRef:h},x=r((()=>e.map(((e,t)=>e=>{c(e?Os(t):Es(t))}))),[e]);return p("nav",{className:"relative mt-3 flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-3 mt-2",children:e.map(((e,t)=>u(Ps,{className:w("ml-8 first:ml-0",o-1<t?"invisible":""),active:e===i,observerOptions:g,onVisibilityChange:x[t],...e},String(t))))}),m.length?u(Ts,{className:"relative w-auto z-40",items:m,activeItem:i}):null,d.CHAT_BOT?u(Vs,{className:"ml-9",iconVersion:a,chat:d.CHAT_BOT}):null,u(Ls,{version:t,internetBankUrl:n})]})})),Os=e=>t=>Math.max(t,e+1),Es=e=>t=>Math.min(t,e),Fs={"bg-white":"primary",transparent:"transparent"},Us=g((({bgColor:e="bg-white",className:t,showSubMenu:n=!0,version:r=Fs[e],...s})=>{const o=J(),{topItems:c,logo:m,defaultLocation:h,foreignOffices:g,officesLink:x,internetBankUrl:f}=ur(d.SITEMAP||"sitemap",s.options?.page?.fallback),b=c?.find((e=>ds(d.BASE_PATH?{pathname:d.BASE_PATH}:e))(o)),[v,y]=function(e="Москва"){const t=cs(),[n,r]=l(t?.region??{name:e}),{data:s}=os("/api/v1/region",D);return a((()=>{r(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,i((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),r(e)}),[])]}(h);return p(C,{tag:"header",className:w("pt-6 px-20",n&&b?.items?.length?"pb-4":"pb-5",t),defaultPadding:"",version:r,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(vr,{className:"mr-8",bgColor:e,logo:m}),c?.map(((e,t)=>u(Ns,{active:e===b,...e},String(t)))),u(Is,{version:r,className:"ml-auto",locationName:v.name,officesLink:x})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===r?"opacity-30":"")}),n&&b?.items?.length?u(As,{subItems:b.items,version:r,internetBankUrl:f}):null]}),u(Fr,{topItems:c}),u(us,{currentLocation:v,foreignOffices:g,onChangeLocation:y})]})})),Hs={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Xs=g((({className:e="",gap:t="XS",isPadding:n=!1,version:l="transparent",isTheme:a=!1,...i})=>u(C,{className:w("relative","grid grid-cols-12",Hs[t],e),defaultPadding:n?"p-default":"",version:l,isTheme:a,...i,children:Tl(i)})));Xs.childrenTypes={exclude:["HorizontalLayout"]};const Ws=g((e=>{const{className:t,image:n,...l}=e;return u(C,{className:t,defaultPadding:"p-0",...l,children:u(Rt,{image:n})})})),Ks=g((({className:e="",cards:t=[],button:n})=>{const[a,r]=l(0),s=i((e=>r(e)),[]),o=t.length,[c,d]=fn({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,g=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?Gs({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,Nn({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(se,{className:"w-60 text-center",version:"primary",...n,href:g})]})}));function Gs({activeIndex:e,cards:t,selectedCardIndex:n,onClick:l}){const a=460*e,i=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){return p("button",{type:"button",onClick:l,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(n?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(Rt,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?Js("страховая сумма",e.sum):null,e?.fee?Js("страховой взнос",e.fee):null]}),Ys(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})})}function Js(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[ot(2)(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Ys(e){return e?u(Rt,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const qs=g((({className:e="",title:t,insuranceTabs:n=[],button:a,...r})=>{const[s,o]=l(0),c=i((e=>o(e)),[]);return p(C,{className:w("box-border overflow-hidden relative px-0",e),defaultPadding:"p-default",...r,children:[t?u(I,{className:"text-center mb-8",title:t,headingType:"h3"}):null,n?.length>1?u("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:n.map(((e,t)=>function({title:e,i:t,isActive:n,onClick:l}){return u("button",{type:"button",onClick:l,"aria-label":e,className:"box-border px-4 py-3 text-m font-light "+(n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Zs({insuranceTabs:n,button:a})})]})})),Zs=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>u(Ks,{button:t,cards:e},String(n)))):null};const Qs=e=>t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:`sep-${l}`},n):[n]),[]),eo={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},to={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},no=g((e=>{const{className:t="",items:n,isDotted:l,investmentZeroColumn:a,investmentColumns:i,...r}=e,s=i?[...i]:[];return a&&s.unshift(a),u(C,{className:t,...r,children:p("div",{className:"container text-m font-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[Qs(u("div",{className:"w-px h-4 bg-gray"}))(s.map(lo)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(ro)})]}):null,n?.length?u(wa,{className:"mt-9 max-w-[657px]",items:n,isDotted:l,listItemSize:"M"}):null]})})})),lo=(e,t,n)=>{const l=1===t,a=t===n.length-1;return u("div",{className:`${ao(l,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(io)}):null},`column_${t}`)},ao=(e,t,n=[])=>[n.length?"flex-1":"flex-0",!n.length||e||t?"":"pl-2.5",n.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),io=(e,t)=>{const n=e.cellSize||"XS",l=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${to[n]} ${eo[l]} ${"XS"===n?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},ro=(e,t,n)=>{const l=0===t,a=t===n.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${l?"pl-9":""} ${a?"mr-3.5":" "}`,children:e.title},`title_${t}`)},so=g((({icon:e,text:t,fileSize:n,...l})=>p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...l,children:[e,t?p(me,{size:"text-l",font:"font-light",children:[t,u(me,{color:"text-secondary-text",children:l?.href&&oo(co(l.href),n)})]}):null]}))),oo=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),co=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},mo={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},ho=g((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const o=J();return p(C,{className:e,defaultPadding:"p-default",...s,children:[u(tn,{className:"!p-0",title:t,description:n,align:l,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-5 sm:mt-8 flex flex-col gap-6",mo[r]),role:"list",children:a.map(uo(o,r,i))}):null]})})),uo=(e,t,n)=>(l,a)=>{const i="Attachment"===l?.docType?W(e)(l?.attachment?.src):l?.href;return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(so,{...l,href:i,icon:n?u(Rt,{className:"min-w-6 min-h-6",image:n,width:"24",height:"24"}):null})},String(a))},po=e=>e?u("div",{className:"mb-5 pt-0.5 sm:mb-0 sm:pt-0",children:u(me,{size:"text-xl","font-weight":"light",children:e})}):null,go=e=>e?.length?u(wa,{items:e,className:"text-l font-light mb-2 last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),xo=g((({className:e,padding:t,alignTitle:n="left",buttons:l=[],description:a,headingType:i="h4",image:r,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-3.5 min-w-[120px]":"min-w-[92px]";return u(C,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:p(ca,{className:"h-full",padding:t,defaultPadding:"p-default",title:c?u(I,{headingType:i,title:c,className:w("whitespace-pre-wrap",sn[n])}):null,backImage:r?.src?u(Rt,{image:r}):null,buttons:Yt(l,{isVertical:l.length>3}),children:[po(a),p("div",{className:"flex flex-1 gap-s items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(Rt,{className:"w-fit",image:o})}):null,go(s)]})]})})})),fo={},bo=g((({className:e,filtrationSchema:t={},resetButton:n,...l})=>{const[a,{field:i,reset:r}]=B(fo);return p(C,{className:w(e),defaultPadding:"p-0",version:"transparent",...l,children:[Ti({field:i,reset:r,filtrationSchema:t,resetButton:n}),u(Ci,{filtrationState:a,...l})]})}));bo.childrenTypes=["ProductTile"],bo.childSchema=e=>e?.filtrationSchema||{};const vo=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function yo(e,t,n){t.geoObjects.removeAll();const l=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:l,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),i=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(i),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const No={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},wo=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(No).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),ko={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},Co=(e,t,n)=>p("div",{className:`${Object.values(ko).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(_e,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const l=t.target?.value?t.target?.value.toLowerCase():"";if(l){const t=e.filter((e=>e.text.toLowerCase().indexOf(l)>-1?e:null));n(t)}else n(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),So={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},Io=(e,t,n)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(So).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(_e,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),To={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},Bo=g((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const n=e.current.getZoom(),l="in"===t?n+1:n-1;e.current.setZoom(l,{checkZoomRange:!0})},className:`${Object.values(To).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(_e,{name:n,width:"20",height:"16"})})})),Ro={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},Po=g((({points:e,className:t="",zoom:n=5,showSearchField:i=!1})=>{const r=s(null),o=$s("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${d.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[c,m]=l(),[h,g]=l(Vo(vo)),x=Mo(e);if(a((()=>{r?.current||o?.ready((()=>{r.current=new o.Map("map",{center:x,zoom:n,controls:[],suppressMapOpenBlock:!0}),yo(o,r.current,h)}))}),[o,r,h]),a((()=>{if(r.current&&h&&o){const e=h.length<1?Vo(vo):h;yo(o,r.current,e)}}),[r,h,o]),!o)return null;const f=c?"z-[100000]":"z-10";return p("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${f}`,children:i?Co(vo,0,(e=>{if(e){const t=Vo(e);g(t)}})):wo(x)}),u("div",{className:`${Object.values(Ro).join(" ")} ${f} right-2 top-4 bg-white`,onClick:()=>{const e=r.current.container;c?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(_e,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${f}`,children:[u(Bo,{yandexMaps:r}),u(Bo,{yandexMaps:r,direction:"out"})]}),Io(r.current,o,`right-2 top-80 ${f}`)]})})),Mo=e=>[zo($o(e,0)),zo($o(e,1))],$o=(e,t)=>e.map((e=>e[t])),zo=e=>e.reduce(((e,t)=>e+t))/e.length,Vo=e=>e?e.map((e=>e.coords)):null,_o={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null},jo=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Do=({lunchHour:e,status:t,workTime:n})=>{const l=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:n||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?l:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Lo=({icon:e,title:t,distance:n,time:l},a)=>p("div",{className:"flex mr-4",children:[u(_e,{name:e,width:"16",height:"16",className:"mr-1"}),t?p(me,{size:"text-m",children:[t," "]}):null,p(me,{size:"text-m",font:"font-light",children:[n?` (${n})`:null,l?`, ${l}`:null]})]},`nearbyOffice${a}`),Ao=({title:e,status:t,workTime:n,lunchHour:l,description:a},i)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m font-light text-error",children:"Выходной"}),t&&n?u("div",{children:n}):null]}),t&&l?Oo(l):null,a?u("div",{className:"pb-1 text-s font-light text-secondary-text",children:a}):null]},`day${i}`),Oo=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m font-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m font-light text-primary-main",children:u("div",{children:e})}),Eo=g((({className:e=""})=>{const t=_o,{name:n,address:l,gpsLatitude:a,gpsLongitude:i,workSchedule:r}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:g}=r,{workTime:x,lunchHour:f,workTimeSaturday:b,lunchHourSaturday:v}=r,y=a&&i?[a,i]:null,N=[{title:"Понедельник",status:s,workTime:x,lunchHour:f},{title:"Вторник",status:o,workTime:x,lunchHour:f},{title:"Среда",status:c,workTime:x,lunchHour:f},{title:"Четверг",status:d,workTime:x,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:x,lunchHour:f},{title:"Суббота",status:h,workTime:b,lunchHour:v},{title:"Воскресенье",status:g}],w=(new Date).getDay(),k=w>0?N[w-1]:N[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:n}),Do(k)]}),p("div",{className:"flex text-l font-light pt-4",children:[u(_e,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),l]}),u("div",{className:"flex pt-4",children:jo.map(Lo)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:y?u(Po,{points:[y],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:N.map(Ao)})]})]})})),Fo=g((({className:e="",title:t,servicesList:n,...l})=>p(C,{className:w("flex flex-col",e),...l,children:[t?u(I,{headingType:"h5",className:"mb-5",title:t}):null,n?.length?u("ul",{className:"list-none m-0 p-0",children:n.map(Uo)}):null]}))),Uo=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(Rt,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u(me,{size:"text-l",font:"font-light",children:e.label}):null]},`list_item_${String(t)}`),Ho=g((({text:e,size:t,align:n,font:l,children:a,...i})=>u(C,{defaultPadding:"p-0",...i,children:u(de,{size:t,align:n,font:l,children:e||a})}))),Xo=(e=[])=>e?.length?Tr(e)/e.length:0,Wo=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(Rt,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Ko=(e,t)=>e?u(de,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,Go=(e,t)=>e?u(me,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Jo=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(Aa,{...e},`rte-${t}`):["label"in e?Go(e.label,t):null,"description"in e?Ko(e.description,t):null],Yo=g((({className:e,benefitsVersion:t,...n})=>p("div",{className:w("flex gap-s","description"in n&&n.description?"items-start":"items-center",e),children:["icon"in n?Wo(n.icon,t):null,u("div",{children:Jo(n)})]}))),qo=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),Zo=e=>{return((t=e.map(qo))?.length?Math.sqrt(Math.abs(Xo(t.map((e=>e**2)))-Xo(t)**2)):0)>16;var t},Qo=g((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?u("div",{className:w("flex gap-x-m gap-y-s",Zo(n)?"flex-col":"flex-wrap",e),children:n.map(((e,n)=>u(Yo,{benefitsVersion:t,...e},String(n))))}):null)),ec=g((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(Jo)}):null)),tc=g((({isTabularBenefits:e,...t})=>u(e?ec:Qo,{...t}))),nc=g((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(lc)}):null)),lc=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(me,{size:"text-m",font:"font-light",children:e})},String(t)),ac=g((({className:e,padding:t,defaultPadding:n,title:l,description:a,headlineVersion:i="L",align:r="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:g=!0,listItemSize:x,tags:f,buttons:b,image:v,imageOptions:{imageAlign:y="end",directionRight:N=!0,isBackground:w}={},children:k})=>{const C=v?.src?u(Rt,{image:v}):null,S=u(tn,{title:l,description:a,headlineVersion:i,align:r,isPadding:!1});return u(ca,{className:e,padding:t,defaultPadding:n,...s?{insetTitle:S}:{title:S},...w?{backImage:C}:ic(C,N),imageAlign:y,buttons:Yt(b),children:p("div",{className:"flex flex-col gap-m",children:[u(tc,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(Aa,{__html:m}):null,h?.length?u(wa,{items:h,isDotted:g,listItemSize:x}):null,k,f?.length?u(nc,{tags:f}):null]})})})),ic=(e,t)=>t?{rightImage:e}:{leftImage:e},rc=(e,t)=>e||t?p("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-m",children:[Number(e)>0?sc("Страховая сумма:",e):null,Number(t)>0?sc("Ежемесячный лимит:",t):null]}):null,sc=(e,t=0)=>p("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(me,{font:"font-light",size:"text-l",children:e}),p(me,{size:"text-h6",color:"text-primary-text",children:[ot(2)(t)," ₽"]})]}),oc=g((({className:e,padding:t,headlineVersion:n="M",align:l="text-center",sum:a,monthLimit:i,imageOptions:r,...s})=>u(C,{className:e,padding:"p-0",...s,children:u(ac,{className:"h-full",defaultPadding:"p-default",padding:t,headlineVersion:n,align:l,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...r},...s,children:rc(Number(a),Number(i))})}))),cc=g((({className:e,title:t,description:n="Блок в разработке...",...l})=>p(C,{className:w("box-border",e),...l,children:[u(tn,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-m min-w-[80%]",children:dc()})]}))),dc=(e=3)=>hc(100,e).map((e=>Math.floor(e))).map(mc),mc=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),hc=(e,t)=>[e].concat(t>0?hc(e/1.618,t-1):[]);function uc({text:e,href:t,target:n,icon:l},a){const i="primary"===a?"white":"black",r={text:e,href:t,target:n,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(se,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:a,rounded:!0,...r,children:u(Rt,{className:"w-4 h-4",image:{...l,icon:l?.icon||"ArrowLeftIcon",iconVersion:l?.iconVersion||i}})}),u(se,{version:"link",...r})]})}const pc=g((({className:e,padding:t,backwardButton:n,...l})=>p(C,{className:w("overflow-hidden flex flex-col gap-lg box-border",e),defaultPadding:"p-default",padding:t,...l,children:[n?.text?uc(n,l.version&&"primary"!==l.version?"white":"primary"):null,u(ac,{className:"grow h-full",...l})]}))),gc=g((({className:e="",padding:t,slides:n=[],...a})=>{const[i,r]=l(0);return p(C,{className:w("box-border overflow-hidden",e),defaultPadding:"py-default",padding:t,...a,children:[u("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*i}%)`},role:"list",children:n.map((({productBlock:e},t)=>u("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:u(ac,{className:"pl-default h-full",headlineVersion:"XXL",...e,...a})},String(t))))}),u("div",{className:"h-28 px-xs mt-m -mb-m flex gap-xs box-border",children:n.map(xc({activeSlideIndex:i,onClick:r}))})]})})),xc=({activeSlideIndex:e,onClick:t})=>({nav:n},l)=>{const a=l===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-[290px] ease-in duration-300 bg-white/10 px-6 py-5 hover:py-6 backdrop-blur",r=a?"text-primary-text text-h6 py-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",s=a?"text-secondary-text text-l font-light":"text-secondary-text text-m font-light group-data-secondary:text-white/80";return p("button",{type:"button",onClick:()=>t(l),"aria-label":n?.title,className:w("relative px-6 box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50",i),children:[u("div",{className:r,children:n?.title}),u("div",{className:s,children:n?.description})]},String(l))},fc=g((({className:e,padding:t,headlineVersion:n="S",isTabularBenefits:l=!0,additionalDescription:a,imageOptions:i,...r})=>u(C,{className:e,padding:"p-0",...r,children:u(ac,{className:"h-full",defaultPadding:"p-m",padding:t,headlineVersion:n,isTabularBenefits:l,imageOptions:{isBackground:!0,...i},...r,children:a?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:a}):null})}))),bc=g((({className:e,title:t="Акции и спецпредложения",description:n,headlineVersion:l="S",date:a,buttons:i=[],...r})=>u(C,{className:w("box-border",e),...r,children:p(ca,{className:"h-full",title:t?u(tn,{title:t,headlineVersion:l,align:"text-left",isPadding:!1}):null,buttons:Yt(i),children:[a?u("div",{className:"text-s mb-2",children:vc(a)}):null,u("div",{className:"text-l",children:n})]})})));function vc(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const yc=g((({address:e,email:t,telephone:n,button:l,className:a="",__html:i,icon:r,title:s,version:o="primary",...c})=>p(C,{className:w("box-border text-left",a),version:o,...c,children:[p("div",{className:"w-full sm:flex sm:justify-between sm:flex-row-reverse",children:[Nc(r),s?u(I,{headingType:"h4",as:"h3",className:"mb-3 sm:mb-6",title:s}):null]}),p("div",{className:"w-full",children:[i?wc(i):null,kc("Адрес",e,"GeolocationIcon"),kc("Телефон",n,"PhoneIcon"),kc("E-mail",t,"MailIcon"),l?.text?Yt([l],{className:"mb-6"}):null]})]}))),Nc=e=>p("div",{className:"w-10 h-7 sm:w-24 sm:h-16 mb-3 sm:mb-0 sm:mt-3",children:[e?.src?u(Rt,{image:e}):null,e?.icon?u(Rt,{image:e}):null]}),wc=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(Aa,{__html:e})}),kc=(e,t,n)=>p("div",{className:"flex mb-4",children:[u(_e,{className:"pr-4",iconVersion:"black",name:n,width:"24",height:"24"}),p("div",{className:"flex flex-col first:pb-1",children:[u(me,{size:"text-m",font:"font-light",children:e}),t?u(me,{size:"text-h6",color:"text-green",children:t}):null]})]}),Cc=g((e=>{const{__html:t,richVersion:n,...l}=e;return u(C,{defaultPadding:"p-0",...l,children:u(Aa,{__html:t,richVersion:n})})})),Sc=e=>e?"MinusIcon":"PlusIcon",Ic=g((({className:e="",label:t="Развернуть",labelIcon:n,labelIconBgVersion:l,isExpanded:a,isFoldButtonOnTop:i=!0,version:r="primary",...s})=>u(C,{className:w("w-full","border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(Ea,{isFoldButtonOnTop:i,unfoldedByDefault:a,renderFoldableSection:({isUnfolded:e})=>u(Fa,{className:w("gap-5 [&>*]:p-0","grid grid-cols-12 [&>*]:pb-4"),isUnfolded:e,children:Tl(s)}),renderFoldButton:({isUnfolded:e,onToggle:a})=>Tc({version:r,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:e,onToggle:a})})})));Ic.childrenTypes={exclude:["RollupItem"]};const Tc=({version:e,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:a,onToggle:i})=>{const r=t||(a?"Скрыть":"Развернуть");return"primary"===e?Bc({label:r,labelIcon:n,labelIconBgVersion:l,icon:Sc(a),onToggle:i}):u(yi,{label:r,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:i})},Bc=({label:e,labelIconBgVersion:t,icon:n,onToggle:l,labelIcon:a})=>p("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",a?.icon?"py-2":"py-5"),onClick:l,children:[p("div",{className:"flex items-center group-hover/button:text-primary-main gap-3",children:[null,e?u(me,{size:"text-h6",font:"font-normal",children:e}):null]}),n?u(_e,{name:n,iconVersion:"color",width:"24",height:"24"}):null]}),Rc=g((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),o=s.find((e=>e.key===l));return u(Le,{options:s,label:r,placeholder:a||l,onChange:e=>i(e.key),value:o})})),Pc=g((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:i})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(Rc,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(Rc,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Mc=g((({name:e,text:t,value:n,checked:l,onChange:a,className:i})=>u("div",{className:i,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:n,name:e,checked:l,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),$c=g((()=>{const[e,t]=l("option2"),n=i((e=>t(e)),[]);return p("div",{children:[u(Mc,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),u(Mc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),zc=["От 1 дня","До 365 дней"],Vc=g((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m font-light mb-1",children:"Срок аренды"}),u(ut,{min:1,max:365,value:e,items:zc,onChange:t})]}))),_c=g((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:i})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(Rc,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(Rc,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),jc=g((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(Pc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:Dc(c)}),u(Vc,{days:a,setDays:e=>c({days:e})}),u(_c,{caseVolumes:o,selectedCaseVolume:i,onSelectedCaseVolume:Lc(c),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u($c,{}),u(se,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Dc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Lc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Ac=g((({days:e,tariffs:t=[]})=>{const n=Ec(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[Oc("Аренда за",e,"mr-11"),Oc("Цена",n+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(Rt,{image:{icon:"PackA4Icon"},width:"290",height:"257"}),p("span",{className:"text-s font-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),Oc=(e,t,n="")=>p("div",{className:n,children:[u("div",{className:"text-m font-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),Ec=(e,t)=>{const n=Fc(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Fc=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},Uc=(e,t)=>e.find((e=>e.branchCode===t)),Hc=g((e=>{const{regions:t,data:n,branches:l,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,i]);const s=Uc(l,n.selectedBranch),o=Xc(s?.safeBoxCaseVolumes),c=Wc(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=Kc(c,n.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(jc,{...n,regions:t,onClick:r,branches:l,caseVolumes:o,safeBoxCases:c,onChange:i}),u(Ac,{days:n.days,tariffs:d})]})})),Xc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Wc=(e,t)=>e?.find((e=>e.volume===t)),Kc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,Gc=[];const Jc=async e=>await j(e,{method:"GET"})||Gc,Yc=g((({title:e,footnote:t,className:n="",...a})=>{const[r,s]=l(!1),o=i((()=>s((e=>!e))),[]),[c,d]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=A(),h=qc(c.selectedRegion,m),g=function(e){const{data:t}=V(e?`/api/v1/safeboxes?regionCode=${e}`:null,Jc);return t||Gc}(h),x=i((e=>d((t=>({...t,...e})))),[d]),f=(b=Uc(g,c.selectedBranch)||g,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return p(C,{className:n,defaultPadding:"",...a,children:[p("div",{className:"px-8 py-12",children:[e?u(I,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(Hc,{regions:m,branches:g,data:{...c,selectedRegion:h},onClick:o,onChange:x}),t?u(de,{size:"text-s",font:"font-light",children:t}):null]}),f.length&&r?u(Po,{points:f,className:"h-[640px]"}):null]})})),qc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Zc=e=>Boolean(e?.icon||e?.src),Qc=({styleMap:e,isMainButton:t,version:n})=>(l,a,i)=>{const{label:r,description:s,button:o,items:c,isDotted:d}=l;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",ed(i.length)),children:[p("div",{className:w(o?.text?"mb-8":"","text-center"),children:[r?u("div",{className:"mb-2",children:u(me,{size:"text-h6",children:r})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(wa,{className:w(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(se,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:n,...o,children:o?.text}):null]},String(a))},ed=e=>e<5?"w-[276px]":"w-[210px]",td={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},nd=g((({className:e="",showLines:t=!0,steps:n=[],buttons:l,size:a="normal",version:i="primary",stepVersion:r="gray",title:s,...o})=>{const c=n.length>3,d=td,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(n.length),g=Boolean(l?.every((e=>e?.text)));return p(C,{className:w("box-border flex flex-col items-center overflow-hidden",e),defaultPadding:"p-default",version:i,...o,children:[s?u(I,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,n?.length?p("div",{className:"box-border",children:[u("div",{className:w("flex items-center",h),children:Qs(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(n.map(ld(d,a,r)))}),u("div",{className:w("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:n.map((x={styleMap:d,isMainButton:g,version:i},(e,t,n)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return Qc(x)(e,t,n);case"rte":return u("div",{className:w("text-center",ed(n.length)),children:u(Aa,{__html:e.__html})},String(t));default:return null}}))})]}):null,Yt(l,{className:"mt-8"})]});var x})),ld=(e,t,n)=>({icon:l},a)=>{const i="secondary"===n?"group-data-primary:text-white":"text-secondary-text",r="secondary"===n?"white":"color";return u(C,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:n,children:Zc(l)?u(Rt,{image:{...l,iconVersion:l.iconVersion||r},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===n?e.iconText:i),children:a+1})},String(a))},ad=g((({className:e,version:t,gap:n=14,padding:l=16,showDots:a=!0,minHeight:i,children:r,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(r)?r.length:0,[d,m]=jl({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(Ml,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:n,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:i,children:r}),a?u(Ul,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),id=g((({listType:e,showDots:t,options:n,version:l,...a})=>u(C,{version:l,defaultPadding:"p-0",...a,children:u(ad,{listType:e,showDots:t,version:l,children:Tl({...a,options:n})})})));id.childrenTypes={exclude:["SwipeListControlBlock"]};const rd="h-12 flex-1 flex items-center justify-center cursor-pointer",sd="font-sans text-m text-center",od="text-secondary-text sm:group-hover/btn:text-primary-main",cd={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${rd} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${rd} group/btn bg-white`},centered:{active:`px-4 rounded-md ${rd} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${rd} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${rd} bg-primary-main text-white whitespace-nowrap`,default:`${rd} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${sd} flex items-center h-full border-0 border-b-2`,default:`${sd} ${od}`},centered:{active:`${sd} text-white`,default:`${sd} ${od}`},wideScreen:{active:`${sd} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${sd} ${od} px-2.5 bg-white`}}},dd=(e,t,n)=>{const l=t?"active":"default";return cd[e][n||"wideScreen"][l]},md=g((e=>{const{tab:t,currentTab:n,onClick:l,tabsMode:a}=e,i="link"===n?.type&&n.href===t.href,r=Y()(t);return u("div",{className:dd("block",i,a),role:"tab","aria-selected":i,onClick:()=>l(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",dd("text",i,a)),target:t.target,href:r.href,onClick:e=>{r.onClick(e),l(t)},children:u("span",{children:t.text})})})})),hd=(e,t,n)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center",n&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),ud=({page:e,showCounter:t,...n})=>(l,a)=>{const i=l.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:n,onClick:l,tabsMode:a})=>(i,r)=>{const s=t===i,o=i.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(i.ref))).length:0;return u("div",{className:dd("block",s,a),role:"tab","aria-selected":s,onClick:()=>l(i),children:p("div",{className:w("flex flex-1 items-center justify-center h-full",dd("text",s,a)),children:[u("span",{children:i.title}),n&&o?hd(a,o,s):null]})},`group-${String(r)}`)})({page:e,showCounter:t,...n})(l,a);case"link":return u(md,{tab:l,...n},String(a));default:Nr(i)}return null},pd=g((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(ud({...t}))}))),gd=g((e=>{const{tabs:t,...n}=e,[l,a]=jl({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(Ml,{containerRef:l,snapAlign:"snap-start",onVisibleIndicesChange:a.handleVisibleIndicesChange,children:t?.map(ud({...n}))})}),a.canScrollLeft?u(vn,{className:"absolute z-40 top-0 left-6",onClick:a.scrollLeft}):null,a.canScrollRight?u(yn,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:a.scrollRight}):null]})})),xd=g((e=>{const{className:t="",isSticky:n,tabs:r,...s}=e,[o,c]=l(r?r[0]:void 0);a((()=>{r&&r[0]&&bd(r[0])}),[]),a((()=>{"group"===o?.type&&b.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=i((e=>{bd(e),c(e)}),[]);return u(C,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",n?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:fd({tabs:r,onClick:d,currentTab:o,...s})})})),fd=({tabsMode:e,tabs:t,...n})=>{switch(e){case"wideScreen":return t?.map(ud({tabsMode:e,...n}));case"centered":return u(pd,{tabs:t,tabsMode:e,...n});case"scrollable":return u(gd,{tabs:t,tabsMode:e,...n})}return null},bd=e=>{"group"===e.type&&b.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&b.fire("tab",{type:e.type,label:e.href})},vd=g((({isOpen:e,onClick:t})=>p(se,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать"}),u(_e,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20"})]}))),yd={Buttons:({buttons:e})=>Yt(e),Img:({image:e})=>e?.src?u(Rt,{image:e}):null,List:({isDotted:e,...t})=>u(wa,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l font-light",children:t}):null]}),Table:g((({isVisible:e,displayTable:t,dataUrl:n,pdfUrl:l,isOpen:a})=>e?u(vd,{isOpen:a,onClick:()=>{t({dataUrl:n,pdfUrl:l})}}):null))},Nd=({rowIdx:e,cellIdx:t,setTableInner:n,tableInner:i,openTableInnerIdx:r,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=l(!0);a((()=>{t===r&&i||m(!0)}),[i,r]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,wd({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),n(e)},isVisible:d}})]},String(c))},wd=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in yd))return null;return u(yd[n],{...t,...l})},kd=g((({cells:e,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Nd({rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})):null}))),Cd=g((({rows:e})=>{const t=e?.[0]?.length??0,[n,l]=fn({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Sd(n)),Nn({...l,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Sd=e=>(t,n)=>{if(!t?.length)return null;const[l,...a]=t,i=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),r=["flex duration-1000 text-center",0!==n?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[l?.data?u("div",{className:"text-xl fontd-light w-[214px] pb-5 "+(0===n?"pt-8":"pt-6"),children:l.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:r,style:{transform:`translateX(-${i}px)`},children:a?.map(((t,n)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl font-light mb-3",children:t.data}):null,t?.cols?Id(t.cols,e):null]},`row${n}`)))})})]},String(n))},Id=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,Td=g((({activeTabIndex:e,items:t})=>{const[n,a]=l({}),r=i((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,l)=>{const a=`activeTabIdx:${e}-tableIdx:${l}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-center justify-center cursor-pointer relative",onClick:()=>r(a),children:[u(me,{size:"text-xl",font:"font-light",children:t.title}),u(Rt,{image:{icon:n[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(n[a]?"h-0":""),children:u("div",{className:"relative",children:u(Cd,{rows:t.rowsData})})})]},a)}))})})),Bd=g((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:l})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl font-light px-4 py-3 cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>l(t),children:e||t+1},e)))}):null,t?u(se,{href:t,version:"secondary",target:"_blank",appendLeft:u(_e,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function Rd(e){const t=await fetch(e);return await t.json()}const Pd=g((({dataUrl:e,pdfUrl:t,onClick:n})=>{const{tableData:a}=function(e){const{data:t}=V(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Rd);return t||{}}(e),[r,s]=l(0),o=i((e=>s(e)),[]),c=a?.[r]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Bd,{currencies:d,activeTabIndex:r,setActiveTabIndex:o,linkToPDF:t}),u(Td,{activeTabIndex:r,items:c}),u(vd,{onClick:n,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(vd,{onClick:n,isOpen:!0})]})})),Md=g((({children:e,tableInner:t,onHideContentClick:n})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(Pd,{...t,onClick:n})}):null]}))),$d=g((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...r})=>{const[s,o]=l(void 0),c=i((e=>o(e)),[]),[d,m]=l(void 0),h=i((e=>m(e)),[]);return p(Md,{onHideContentClick:()=>o(void 0),tableInner:s,...r,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(Rt,{className:"mr-3.5 max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m font-light",children:e?.title}):null]})}),t?.length?u(ti,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(kd,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...r},String(t))))}):null]})})),zd=g((({className:e="",title:t,description:n,rowHeaders:l,tariffsColumns:a,hiddenRowsNum:i=0,...r})=>{const s=a?.map((({data:e})=>e))||[],o=l?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=fn({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u($d,{row:e,activeIndex:d,rowIdx:t,...r},String(t)))),[g,x]=i>0?[h.slice(0,-i),h.slice(-i)]:[h,[]];return p(C,{className:w("overflow-hidden relative",e),defaultPadding:w("p-default",c>1?"pr-0":""),...r,children:[Vd({title:t,description:n}),_d(n),i>0?u(Ea,{renderFoldableSection:({isUnfolded:e})=>p(jd,{controls:m,children:[g,u(Fa,{isUnfolded:e,children:x})]}),renderFoldButton:Ni}):u(jd,{controls:m,children:h})]})}));function Vd({title:e,description:t}){return e?u(I,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function _d(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const jd=g((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Nn({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),n?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Dd=g((({className:e="",title:t,description:n,iconVersion:l,image:a,__html:i,items:r=[],...s})=>p(C,{className:w("flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===l?u("div",{className:"mt-1",children:Ld()}):null,"big"===l?Ad(a):null,p("div",{className:"flex flex-col w-fit gap-1 sm:gap-2",children:[t?u(me,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?Od(n):null,r?.length?Ed(r,!0):null,i?u(Aa,{__html:i}):null]})]}))),Ld=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Ad=e=>e?.src?u(Rt,{className:"h-fit flex-shrink-0",image:e}):null,Od=e=>u(de,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Ed=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(me,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),Fd=g((({className:e,padding:t,headlineVersion:n="S",listItemSize:l="M",...a})=>u(C,{className:e,padding:"p-0",...a,children:u(ac,{className:"h-full",defaultPadding:"p-m",padding:t,headlineVersion:n,listItemSize:l,...a})}))),Ud={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},Hd=g((({className:e="",gap:t="",align:n="stretch",isPadding:l=!1,isInnerPadding:a=!0,version:i="transparent",isTheme:r=!1,...s})=>{const o=a?"":"!p-0";return u(C,{className:w("relative","flex flex-col [&>*]:max-w-full",Hs[t],n&&Ud[n],e),defaultPadding:l?"p-default":"",version:i,isTheme:r,...s,children:Tl({...s,renderProps:(e,t)=>Cl(e,t,{className:o})})})}));Hd.childrenTypes=[];const Xd=e=>Zl(e)<10?"py-6 px-11":"py-12 px-32",Wd=g((({className:e,title:t,url:n,previewImg:l,...a})=>{const i=J();return p(C,{className:e,defaultPadding:Xd(e),...a,children:[u(tn,{title:t,headlineVersion:"M"}),n?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:W(i)(l?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:W(i)(n)})}):null]})})),Kd={ApplicationForm:Ft,BenefitsBlock:Xt,Bonus:nn,BonusBenefitsBlock:hn,BusinessBlock:gn,ButtonsBlock:xn,Calculator:pl,CardTransfer:Nl,Carousel:Xl,CarouselBankHistoryCard:Gl,CarouselCard:na,CarouselCatalogCard:aa,CarouselEventCard:sa,CarouselInvestmentCard:ha,CarouselLinks:xa,CarouselProductCard:ka,CarouselProgramsCard:Ra,CarouselRecommendationCard:Da,CarouselRichTextCard:Oa,CarouselTariffsCard:Xa,ComparisonTable:hi,ContactsBlock:pi,DepositFiltration:Mi,ErrorBlock:zi,ExchangeRateTile:dr,Footer:ns,GracePeriod:ls,Header:Us,Headline:tn,HorizontalLayout:Xs,ImgBlock:Ws,InsuranceAmountBlock:qs,InvestmentInfo:no,LinkDocs:ho,MobileAppTile:xo,MortgageFiltration:bo,OfficeMap:Eo,OfficeServicesBlock:Fo,ParagraphBlock:Ho,PictureText:oc,Placeholder:cc,ProductBlock:pc,ProductGallery:gc,ProductTile:fc,PromoTile:bc,RepresentativeOfficeInfo:yc,RichTextBlock:Cc,RollupItem:Ic,SafeDepositRental:Yc,StepsBlock:nd,SwipeListControlBlock:id,Tabs:xd,TariffsTable:zd,TextBlock:Dd,Tile:Fd,VerticalLayout:Hd,Video:Wd,ExchangeRateOffice:Ei};const Gd=["Header","Footer"],Jd=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Yd(e=globalThis){const t=s(new Map);a((()=>N.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),a((()=>{const n=((e,t=600)=>{let n;const l=(...a)=>{l.dispose(),n=setTimeout((()=>{e(...a)}),t)};return l.dispose=()=>{n&&clearTimeout(n)},l})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Gd.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?Hn(Jd)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const qd="cookie",Zd=g((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:n,open:l,close:a}=jr(qd);kr((()=>{globalThis.localStorage?.getItem(qd)||l()}),[],3e3);const r=i((()=>{globalThis.localStorage?.setItem(qd,"true"),a()}),[a]);return n?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"sm:flex-1",children:p(de,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(ra,{isRemote:!0,className:w(Qd(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(ra,{isRemote:!0,className:w(Qd(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"ml-3 sm:ml-0 w-24 flex justify-end",children:u(yr,{className:"bg-main-gray rounded-md",onClick:r})})]})}):null})),Qd=e=>["inline mx-1",e?"text-green-dark":""],em=h();const tm=g((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:nm()}))),nm=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},lm=g((({className:e=""})=>{const t=function(e){const[t,n]=l(0);return a((()=>{(async()=>{const[t]=await em.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:i((async()=>{n(await em.like(e))}),[e]),dislike:i((async()=>{n(await em.dislike(e))}),[e])}}(J().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(tm,{onClick:G(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(tm,{onClick:G(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),am=g((e=>{const{className:t="",blocksRegistry:n,blockDecorator:l,data:a={}}=e,{style:i,blocks:r,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:n,blockDecorator:l,parent:a};Yd();const[m,{setTrue:h,setFalse:g}]=$e();return wr({onOpen:h,onClose:g}),p("section",{className:w("relative",i,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:Il(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[Il(r,d),s?.footer?Il(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(lm,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(Zd,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));am.childrenTypes=[],am.slots=()=>["header","footer"];e.Blocks=Kd,e.ContentPage=am,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=G,e.joinList=Qs,e.packageVersion="0.12.9",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=X,e.useRouter=J,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),a=l("useEffect"),i=l("useCallback"),r=l("useMemo"),s=l("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:n,...a}=t||{},i=l?.slots?.default,r=n||i&&i();return e(Object.assign(a,r&&{children:r}),l)}return t.inheritAttrs=!1,t};class f{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=new f;function v(e,{sensitivity:t,rootRef:l}={}){const n=s(null),i=r((()=>({threshold:y(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,i);return t.observe(n.current),()=>{t.disconnect()}}),[e,i]),n}function y(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const N=new f;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),S={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e,version:t="primary",isTheme:l=!0,defaultPadding:r="p-xl",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,p=function(e){return v(i((t=>{if(!e||!t?.length)return;const l=t[t.length-1];N.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(o),[x,g]=n(!1);a((()=>b.subscribe("tab",(e=>{g(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const f=t&&l;return u(h,{className:w("font-sans",f?"group":"",S[t],x?"hidden":"",s||r,e),...f?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:p}:{},role:d,children:m})})),C={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},I=x((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>u(l,{className:w("font-sans m-0",C[t],e),children:n||a}))),T=e=>e,B=(e,t)=>{const[l,a]=n(e),[r,o]=n(!1),[c,d]=n({}),m=s({}),h=i(((e,t)=>{const{parse:n=T,format:i=T}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{a((l=>({...l,[e]:n(t)}))),d((t=>({...t,[e]:!0})))},{value:i(l[e]),isDirty:r||c[e],onChange:m.current[e]}}),[l,r,c]),u=i((()=>{a(e),o(!1),d({})}),[e]),p=i((e=>{e.preventDefault(),o(!0),t&&t(l)}),[t,l]);return[l,{isDirty:r||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:p}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,l])=>l(t[e])))||[],M=e=>!e?.length,P=e=>t=>l=>e(l)?[]:[t],V=e=>null!=e,z=new Map;function $(e,t,{fallback:l,cache:i}={}){const s=r((()=>_(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=n(void 0),[m,h]=n(void 0);a((()=>{!s.some(V)||(async()=>{try{const e=await(o?((e,t=z)=>l=>{const n=t.get(l);if(V(n))return n;const a=e(l);return V(a)?t.set(l,Promise.resolve(a)):t.delete(l),a})(t,i)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,i,s]);const u=l&&o&&l[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function _(e){return Array.isArray(e)?e:e instanceof Function?_(e()):[e]}async function j(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}const A=[];function L(){const{data:e}=$("/api/v1/regions",D);return e||A}const O=(e="")=>({open:t=>b.fire("dialog",{type:"open",id:e,message:t}),close:()=>b.fire("dialog",{type:"close"})}),E=e=>Boolean(e?.includes(":")),F=(e,t)=>Boolean(e&&!E(e)&&(!t||"_self"===t)),U=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),H=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var X=Object.freeze({__proto__:null,isURL:E,isLocalURL:F,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:U,joinPath:H});const W=e=>(t,l=d.BASE_PATH)=>{if(!t||E(t)||K(t,d.CDN))return t;const n=t.startsWith("/");return H(K(t,l)?"":l,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},K=(e,t)=>t&&e&&e.startsWith(t),G=(e,t)=>G._impl(e,t);function J(){return J._impl()}function Y(e={}){const{isRemote:t,basePath:l}=e,n=J(),{close:a}=O();return e=>({...e,href:t&&!l?e.href:W(n)(e.href,l),"aria-label":e.text,onClick:G(i(e),e)});function i({href:e,target:l,onClick:i}){return r=>{i&&i(r),e&&!t&&F(e,l)&&(a(),r?.preventDefault(),n.push(e))}}}G._impl=e=>e,G.setup=e=>{G._impl=e},J._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),J.setup=e=>{J._impl=e};const q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Z="bg-main-divider text-main-disabled",Q={primary:Z,secondary:Z,white:Z,link:"",transparent:"",gray:Z,"":""},ee="text-center font-sans select-none",te={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},le=x((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:i="primary"}=e;return p("div",{className:w(ne(e),"flex gap-2"),children:[n?u("div",{className:te[i],children:n}):null,ae(e)?p("div",{children:[l?u("div",{className:"text-xs font-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?u("div",{className:te[i],children:a}):null]})})),ne=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a=""+(l?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",ae(e)?a:"h-12 w-12",n?"rounded-full":""].join(" ")},ae=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ie=({className:e,rounded:t,version:l})=>["inline-block",ee,l?Q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:l})=>[ee,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",l?q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),se=x((({disabled:e,children:t,...l})=>{const n=Y()(l),a=t??u(le,{...n});return u(e?ce:oe,{...n,children:a})})),oe=x((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:i,rounded:r,onClick:s,children:o})=>u("a",{className:re({className:e,version:i,rounded:r}),href:t,rel:l,target:n,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),ce=x((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ie({className:e,rounded:n,version:l}),children:a}))),de=x((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),me=x((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),he=x((({link:e})=>p(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:[u(me,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(se,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(me,{children:e.text})}):null]}))),ue=(e,t)=>{const{value:l,isDirty:n}=e,a=n?t(l):[];return{...e,errors:a,error:a[0]}},pe=x((({key:e,className:t="",inputClassName:l="",id:n,name:a,type:r="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:x,onBlur:g,pattern:f})=>{const b=i((e=>{h&&h(e.target?.value||"")}),[h]),v=m?"pr-8":"",y=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",t),children:[p("label",{children:[s?u("div",{className:"mb-xs",children:u(me,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",v,y,l),id:n,name:a||n,placeholder:o,type:r,value:c,onInput:b,onFocus:x,onBlur:g,pattern:f},e)]}),m]})})),xe=x((({className:e,label:t,value:l="",error:n,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(pe,{type:"text","aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i}),u("div",{className:"h-2",children:n?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:n}):null})]}))),ge=e=>"_"===e,fe=e=>/\d/.test(e),be=e=>ge(e)||fe(e),ve=[..."+7 (___) ___-__-__"],ye=ve.findIndex(ge),Ne=ve.map(((e,t)=>be(e)?ve.slice(0,t).filter(be).length:-1));const we=x((({children:e,onChange:t,...l})=>{const n=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),l=ve.map(((e,l)=>fe(e)?e:t.charAt(Ne[l])||e)),n=Ne.indexOf(t.length-1)+1;return(n?l.slice(0,Math.max(ye,n)):l).join("")}(e))),[t]);return u(pe,{onChange:n,onFocus:e=>n(e?.target?.value||""),...l,children:e})})),Se=x((({className:e,label:t,value:l,error:n,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(we,{"aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i}),u("div",{className:"h-2",children:n?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:n}):null})]}))),ke="Некорректно заполненное поле",Ce=P((e=>null!=e&&""!==e))(ke),Ie=P((e=>"string"==typeof e&&e.length>1))(ke),Te=P((e=>"string"==typeof e&&(10===e.length||12===e.length)))(ke),Be=(Re=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,P((e=>"string"==typeof e&&Re.test(e))))(ke);var Re;const Me=e=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...ue(e("fullName"),Ce)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)})]}),p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]})]}),Pe=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function Ve(e=!1){const[t,l]=n(e),a=i((()=>l(!0)),[]),r=i((()=>l(!1)),[]),s=i((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:r,toggle:s}]}function ze(e){const t=s(null);return a((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const $e={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},_e=x((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:i="color",...r})=>{const s=J(),o=W(s)(H(d.CDN,"/icons",`${l}.svg`));return"normal"!==i?u(De,{className:e,children:p("svg",{className:w(je(r.width),$e[i],"white"===i?"invert":"",t),...r,"aria-hidden":"true",children:[a?u("title",{children:a}):null,n?u("desc",{children:n}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(r.style={height:`${r.height}px`}),u("img",{className:e,src:o,alt:n,title:a,"aria-hidden":"true",...r}))})),je=e=>e?"":"w-full h-full",De=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Ae=x((({className:e="",label:t,options:l=[],value:n,valid:a=!0,isBorder:r=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=Ve(),h=ze(d),x=i((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-xs",children:u(me,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center text-primary-text cursor-pointer",Ee(r,a)),onClick:m,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Oe(n)||s}),u(_e,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),l?.length?u("div",{className:w("h-0",c?"":"overflow-hidden"),children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:l.map(Le(x,c,(e=>e.key===n?.key)))})}):null]})]})})),Le=(e,t,l)=>(n,a)=>p("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:Oe(n)}),u(_e,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",l(n)&&t?"":"hidden")})]},String(a)),Oe=e=>e?.text||e?.key||"",Ee=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Fe=x((e=>p("div",{children:[u(Ae,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:e.error}):null})]}))),Ue=({regions:e,field:t})=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Pe.map((({name:e=""})=>({key:e,text:e}))),...ue(t("acquiringType"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})})]}),He=x((({value:e=!1,text:t,type:l="checkbox",onChange:n})=>p("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-3",onClick:()=>n&&n(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-[50%]":"left-[5%]")})}),u(me,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),Xe=e=>p("div",{className:"sm:mb-5",children:[u(He,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(He,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),We=(e,t)=>{const l=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4 mt-3 w-full sm:mt-0 sm:w-auto",l,t),children:e?.text?e.text:"Отправить заявку"})},Ke={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ge=R({acquiringType:Ce,region:Ce,fullName:Ce,inn:Te,name:Ie,phone:Be}),Je=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{acquiringType:t,region:l,fullName:a,inn:i,name:r,phone:s,onlineCheckout:o,posTerminal:c}=e;M(Ge(e))&&n({typeForm:"acqr",region:l?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:i,name:r,phone:s})}),[n]),[,{field:r,...s}]=B(Ke,a),o=L();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Вид эквайринга и регион",className:"sm:text-center mb-4"}),Ue({regions:o,field:r}),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),Me(r),Xe(r),We(t,"mb-4"),u(he,{link:l})]})})),Ye=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-5",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)})]}),p("div",{className:"sm:w-1/2",children:[u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...ue(e("mail"),Ce)})]})]}),qe=({regions:e,field:t})=>u("div",{className:"w-full mb-3 sm:mb-5",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})}),Ze={name:"",phone:"",inn:"",mail:""},Qe=R({region:Ce,name:Ie,phone:Be,inn:Te,mail:Ce}),et=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{region:t,name:l,phone:a,inn:i,mail:r}=e;M(Qe(e))&&n({typeForm:"bcrd",region:t?.text||"",name:l,phone:a,inn:i,mail:r})}),[n]),[,{field:r,...s}]=B(Ze,a),o=L();return p("form",{className:"container",onSubmit:s.onSubmit,children:[qe({regions:o,field:r}),Ye(r),We(t,"mb-4"),u(he,{link:l})]})})),tt=[];const lt=async e=>await j(e,{method:"GET"})||tt,nt=["От 1 000 ₽","До 1 000 000 000 ₽"],at=["От 1 мес","До 15 лет"],it=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...e("fullName")}),u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]}),p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Годовая выручка, ₽",...ue(e("annualRevenue"),Ce)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),rt=(e,{normalize:t,format:l})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=n(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!l?a:l(a),onFocus:m,onBlur:h}},st=(e,t,l)=>Math.max(t,Math.min(e,l)),ot=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0);function ct(e){const t=(e||"").replace(/\D/g,""),l=parseInt(t,10);return Number.isNaN(l)?0:l}function dt({list:e=[],min:t,max:l,step:n,value:a=e[0]||t,disabled:i,onChange:r}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(l-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||i?"bg-gray":"bg-primary-main")},String(t))))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:o,type:"range",min:t,max:l,step:n,value:s,disabled:i,onInput:t=>{const l=ct(t.target?.value),n=e.length?e[l]:l;r&&r(n||0)}})})]})}const mt=1,ht=100,ut=x((e=>{const{className:t,title:l,items:n=[],list:a=[],min:r=(a.length?0:mt),max:s=(a.length?a.length-1:ht),step:o=1,value:c=a[0]||r,disabled:d=!1,onChange:m}=e,h=rt(e,{normalize:(e=0)=>a.length?pt(a)(e):st(e,r,s),format:ot()}),x=i((e=>{m&&m(ct(e.target?.value))}),[m]);return p("div",{className:t,children:[p("label",{className:"block relative",children:[l?u(me,{size:"text-m",font:"font-light",color:"text-primary-text",children:l}):null,u("input",{className:w("m-0 mt-xs font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md outline-none","p-0 pl-4 box-border","text-primary-text hover:border-primary-hover focus:border-primary-text","disabled:border-gray disabled:bg-main-divider"),disabled:d,onInput:x,...h}),dt({list:a,min:r,max:s,step:o,disabled:d,value:c,onChange:m})]}),xt(n)]})})),pt=e=>t=>e.reduce(((e,l)=>Math.abs(l-t)<Math.abs(e-t)?l:e)),xt=e=>u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),gt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Сумма кредита, ₽"})}),u(ut,{items:nt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Срок кредита, месяцев"})}),u(ut,{items:at,min:1,max:180,...e("term")})]})]}),ft=({regions:e,branches:t,field:l})=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(l("region"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...ue(l("department"),Ce)})})]}),bt={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},vt=R({annualRevenue:Ce,inn:Te,name:Ie,phone:Be,region:Ce,department:Ce}),yt=x((({button:e,link:t,onSubmit:l})=>{const n=i((e=>{const{amount:t,term:n,fullName:a,inn:i,name:r,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;M(vt(e))&&l({typeForm:"cred",fullName:a,inn:i,name:r,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${n}/Выручка=${m}`})}),[l]),[a,{field:r,...s}]=B(bt,n),o=L(),c=function(e){const{data:t}=$(e?`/api/v1/branches?regionCode=${e}`:null,lt);return t||tt}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Параметры кредита",className:"sm:text-center mb-4"}),gt(r),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),it(r),u(I,{headingType:"h6",title:"Офис банка",className:"sm:text-center mb-4"}),ft({regions:o,branches:c,field:r}),We(e,"mb-4"),u(he,{link:t})]})})),Nt={name:"",phone:""},wt=R({name:Ie,phone:Be}),St=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{name:t,phone:l}=e;M(wt(e))&&n({typeForm:"dpst",name:t,phone:l})}),[n]),[,{field:r,...s}]=B(Nt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"sm:text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Имя",...ue(r("name"),Ie)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(r("phone"),Be)})]}),p("div",{className:"flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto",children:[u("div",{className:"flex-1 mt-4 sm:mt-0",children:u(he,{link:l})}),We(t)]})]})})),kt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Ct=x((({className:e="",image:t,imageClassName:l="",pathPrefix:n})=>{const a=J();return p("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(kt).map((({src:e,format:l,media:i},r)=>u("source",{srcSet:Tt(a,n)(e),type:Bt(l),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,t?.src?It({...t,src:Tt(a,n)(t.src)},l):null]})})),It=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),Tt=(e,t)=>l=>l&&!E(l)?W(e)(H(t,l)):l,Bt=e=>e?`image/${String(e)}`:void 0,Rt=x((({className:e="",image:t,imageClassName:l="",pathPrefix:n,...a})=>t?.src||t?.icon?t.icon?u(_e,{className:e,imageClassName:l,iconVersion:t?.iconVersion,name:t.icon,...a}):u(Ct,{className:e,imageClassName:l,image:t,pathPrefix:n}):null)),Mt=x((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:i,...r})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:i.map((({d:e,fill:t,...l},n)=>u("path",{d:e,fill:t||"currentColor",...r,...l},n)))}))),Pt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],Vt=x((({className:e,value:t,text:l,disabled:n,isRadio:a,onChange:r})=>{const s=i((e=>{n||(e.preventDefault(),r&&r(!t))}),[r,n,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(Mt,{paths:Pt,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":zt(t),t?"border-primary-main":"border-gray",n?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(n)}),t?o:null,l?u("div",{className:"ml-3",children:u(me,{size:"text-l",font:"font-light",children:l})}):null]})})})),zt=e=>w("rounded border",e?"bg-primary-main":""),$t=e=>{const t=e("text");return p("div",{className:"mb-3 sm:mb-6",children:[p("div",{className:"mb-4 sm:flex sm:items-center sm:gap-6",children:[u(Vt,{className:"mb-3 sm:mb-0",text:"Валютный контроль",...e("currencyControl")}),u(Vt,{className:"mb-3 sm:mb-0",text:"Документарные операции",...e("documentaryOperations")}),u(Vt,{className:"mb-3 sm:mb-0",text:"Конверсионные операции",...e("conversionOperations")})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},_t=e=>p("div",{children:[p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Наименование организации",...ue(e("fullName"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"ФИО",...ue(e("name"),Ie)})})]}),p("div",{className:"sm:flex sm:justify-between sm:gap-lg sm:mb-2xl",children:[u("div",{className:"sm:w-1/2",children:u(Se,{className:"shrink-0 w-full mb-s",label:"Телефон",...ue(e("phone"),Be)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Электронная почта",...ue(e("mail"),Ce)})})]})]}),jt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Dt=R({fullName:Ce,name:Ie,phone:Be,mail:Ce}),At=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{fullName:t,name:l,phone:a,mail:i,currencyControl:r,documentaryOperations:s,conversionOperations:o,text:c}=e;M(Dt(e))&&n({typeForm:"kved",fullName:t,name:l,phone:a,mail:i,partnerComments:`Валютный контроль=${r}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[n]),[,{field:r,...s}]=B(jt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-m"}),_t(r),u(I,{headingType:"h6",title:"Интересующий вопрос",className:"sm:text-center mb-m"}),$t(r),p("div",{className:"flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9",children:[We(t,"mb-m sm:mr-lg sm:mb-0"),u(he,{link:l})]}),u(I,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"sm:text-center mb-m"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(Rt,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(Rt,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),Lt=x((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-lg p-lg rounded-md space-x-m ${t?"bg-ok":"bg-fail"}`,children:[u(Rt,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34"}),p("div",{children:[u(I,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Ot={credit:e=>u(yt,{...e}),acquiring:e=>u(Je,{...e}),"business-card":e=>u(et,{...e}),deposit:e=>u(St,{...e}),wed:e=>u(At,{...e})},Et={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Ft=x((e=>{const{className:t,title:l,typeForm:a="credit",button:r,link:s,...o}=e,[c,d]=n(""),m=i((async e=>{const t=await Et.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:t,defaultPadding:"p-6xl",...o,children:p("div",{className:"container max-w-[978px]",children:[l?u(I,{headingType:"h3",title:l,className:"mb-4 sm:mb-8 sm:text-center"}):null,Ot[a]({button:r,link:s,onSubmit:m}),c?u(Lt,{responseType:c}):null]})})})),Ut={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Ht=x((({className:e,defaultIconSize:t=44,iconBgVersion:l="primary",size:n,icon:a,...i})=>{const r=String(n?.width||t);return a?u("div",{style:{width:`${r}px`,height:`${r}px`},className:w("rounded-icon object-fit flex justify-center items-center ",Ut[l],e),children:u(_e,{...i,width:"54%",height:"54%",name:a})}):null})),Xt=x((({className:e="",title:t,benefitList:l,...n})=>p(k,{className:e,defaultPadding:"p-6xl",...n,children:[t?u(I,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full sm:justify-center mt-xl gap-5xl",role:"list",children:l.map(Wt)}):null]}))),Wt=(e,t)=>p("div",{className:"flex gap-m items-center md:basis-1/2 md:max-w-[400px]",role:"listitem",children:[e?.icon?.icon?u(Ht,{className:"shrink-0",defaultIconSize:44,iconBgVersion:e?.iconBgVersion||"",...e?.icon}):null,e?.icon?.src?u(Rt,{className:"shrink-0",image:e.icon}):null,e?.label?p("div",{className:"sm:h-full",children:[u(I,{headingType:"h6",children:e.label}),Kt(e.description)]}):null]},String(t)),Kt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Jt(e):Gt(e)}):null},Gt=e=>e?.name||null,Jt=e=>{const t=e?.bullets?"list-disc pl-3xl":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Yt=(e,{className:t,buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",n?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-m",t),children:e.map(qt(l))}):null,qt=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:i,version:r,...s}=t||{},o="secondary"===r?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return n||a?.icon?u(se,{className:w("basis-full sm:basis-auto",e),appendLeft:Zt({...a,iconVersion:c}),appendRight:Zt({...i,iconVersion:c}),version:r,text:n,...s},l?String(l):""):null},Zt=e=>e?.icon||e?.src?u(Rt,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Qt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},el={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},tl=x((({className:e,version:t="",headlineVersion:l="XL",title:n,description:a,align:i="text-center",as:r,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=Qt[l],m={marginTop:d.descriptionStyle};return p(k,{className:e,defaultPadding:s?"p-6xl":"",version:t,isTheme:o,...c,children:[n?u(I,{className:w("whitespace-pre-wrap",i),...d?.title,as:r||d?.title.as,title:n}):null,a?u(de,{size:d.descriptionSize,font:d.descriptionWeight,align:i,...m,children:a}):null]})})),ll=x((e=>{const{className:t="",title:l,description:n,bonusItems:a,...i}=e;return u(k,{className:t,defaultPadding:"p-6xl",...i,children:p("div",{className:"container",children:[u(tl,{className:"!p-0",title:l,description:n,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(me,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-xs",children:u(de,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[Yt(e?.buttons),e.bonusItemContent?.bonusType?nl(e.bonusItemContent):null]})]},String(t)))):null})]})})})),nl=e=>u("div",{children:"count"===e.bonusType?al(e):il(e)}),al=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),il=e=>e.image?u(Rt,{className:"w-12 h-12 min-w-12 p-3 rounded-icon",image:e.image}):null,rl={left:"text-left",center:"text-center",right:"text-right"},sl="text-center",ol=({icon:e,title:t,description:l},n)=>p("div",{className:w("flex flex-col","items-center",l||t?"":"justify-center"),children:[t?u(me,{size:"text-h6",font:"font-normal",align:sl,children:t}):null,e?u(Rt,{image:e,height:"180",className:"w-auto"}):null,l?u(me,{size:"text-h6",font:"font-normal",align:sl,children:l}):null]},String(n)),cl=(e,t,l)=>u("div",{className:`grid gap-1 ${rl[l]} ${dl(t)}`,children:e.map(ol)}),dl=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},ml=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:a,title:i,...r})=>p(k,{className:l,defaultPadding:"p-6xl",...r,children:[u(tl,{className:"mb-4 sm:mb-3xl",isPadding:!1,title:i,description:a,headlineVersion:"M"}),e?.length?cl(e,n,t):null]}))),hl=x((e=>{const{title:t,image:l,cardItems:n,button:a}=e;return p("div",{className:"border-gray border p-4xl w-1/2 space-y-lg",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(Rt,{image:l}):null,l?.icon?u(Rt,{image:l}):null]}):null,t?u(I,{headingType:"h4",title:t}):null,n?.length?u("ul",{className:"space-y-s",children:n.map(((e,t)=>ul(e,String(t))))}):null,Yt([a])]})})),ul=(e,t)=>{const{icon:l,text:n}=e;return p("li",{className:"flex items-center gap-s last:mb-0",children:[l?.icon?u(Rt,{image:l,className:"w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider"}):null,l?.src?u(Rt,{image:l}):null,u(me,{size:"text-xl",font:"font-light",children:n})]},t)},pl=x((({className:e,title:t,cards:l,...n})=>p(k,{className:e,defaultPadding:"p-6xl space-y-3xl",...n,children:[u(I,{headingType:"h3",title:t,className:"text-center"}),u("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>u(hl,{...e},String(t)))):null})]}))),xl=x((({buttons:e,className:t,...l})=>u(k,{className:w("!bg-transparent",t),defaultPadding:"p-0",...l,children:Yt(e)}))),gl=e=>{const{itemCount:t,visibleItemCount:l}=e,[a,r]=n(0),s=i((()=>r((e=>Math.min(e+1,t-1)))),[t]),o=i((()=>r((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(l||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const fl=x((({className:e,disabled:t,...l})=>u(se,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:u(Rt,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),bl=x((e=>u(fl,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),vl=x((e=>u(fl,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function yl({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:i=""}){return l||n?p("div",{children:[l?u(fl,{className:`absolute z-40 ${a[0]} ${i}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?u(fl,{className:`absolute z-40 rotate-180 ${a[1]} ${i}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const Nl=x((({title:e,value:t,postfix:l="",prefix:n,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(me,{size:"text-h3",children:[n," ",ot(2)(Math.round(t))," ",l]})}:{children:u(me,{size:"text-h3",children:"-"})})]}))),wl=Math.round(23.5),Sl={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},kl={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:7.5,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Cl={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Il={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Tl={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Bl=x((({rate:e,title:t="Ставка",unit:l,depositeName:n,isShowDepositeName:a,rateBlockClassName:i,fractionDigits:r=2})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start gradient-color-text",children:[u("span",{className:w("font-mohave text-title-huge pr-6 -mt-4",i),children:String(e.toFixed(r)).replace(".",",")}),l?u("span",{className:"text-7xl",children:l}):null]}),n&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:n}):null]})]}))),Rl=e=>e?u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e}):null;function Ml({isShowItems:e=!0,step:t=1e3,...l}){const n=[`От ${ot(2)(l.min||0)} ₽`,`До ${ot(2)(l.max||0)} ₽`];return u(ut,{items:e?n:[],step:t,...l})}function Pl(e){const{data:t}=$(`/wcms-resources/${e}.json`,D);return t}const Vl=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,a=Pl(t||"bonus-calculator-data")||Cl,[i,r]=((e,t,l)=>{const{minSumTravel:n,minSumOther:a,maxBonus:i,prefMonthsNum:r,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),i);return[m,m*r+Math.min(Math.round(c*t)+Math.round(d*l),i)*(12-r)]})(a,l,n);return{...a,...e,monthBonus:i,yearBonus:r}},zl=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[a,{field:i}]=B({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:r,maxSumTravel:s,minSumOther:o,maxSumOther:c,monthBonus:d,yearBonus:m}=Vl(a,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Ml({title:"Сумма покупок в категории путешествия, ₽",min:r,max:s,step:500,isShowItems:!1,...i("travelExpenseValue")}),Ml({title:"Сумма покупок в остальных категориях, ₽",className:"mt-7",min:o,max:c,step:500,isShowItems:!1,...i("restExpenseValue")})]}),u("div",{children:d>=0?u(Bl,{title:"Баллов за месяц",rate:d,rateBlockClassName:"tracking-[-14px]",fractionDigits:0}):null}),p("div",{className:"w-96",children:[m>=0?u(Nl,{title:"Баллов за год",value:m}):null,Yt(l,{className:"mt-7",isVertical:!0}),Rl(n)]})]})})),$l=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,_l={horizontal:"gap-10",vertical:"flex-col gap-3"},jl=x((({items:e,checkedItem:t,onChange:l,orientation:n="horizontal"})=>u("div",{className:`flex ${_l[n]}`,children:e?.map((({id:e,text:n})=>u(Vt,{isRadio:!0,text:n,value:t===e,onChange:()=>l&&l(e)},String(e))))}))),Dl=({items:e,title:t,orientation:l="horizontal",value:n,onChange:a})=>p("div",{children:[t?u("div",{className:"mb-3",children:u(me,{color:"text-secondary-text",font:"font-light",children:t})}):null,u(jl,{orientation:l,items:e,checkedItem:e[n?0:1].id,onChange:t=>a&&a(t===e[0].id)})]}),Al=e=>Dl({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),Ll=x((({title:e="Ставка"})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-2xs pt-2xs pl-lg pb-xs",children:u(_e,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-[250px] mt-m",children:p(de,{size:"text-xl",font:"font-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),Ol=e=>e,El=(e=Ol)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Fl=El(),Ul=(e=Ol)=>El((t=>-e(t))),Hl=Ul(),Xl=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,n]=t[l-1],[a,i]=t[l];n>=a?t.splice(l-1,2,[e,Math.max(n,i)]):l++}return t},Wl=([e,t],l,n=[])=>l&&l[e]&&l[t]?{[e]:l[e],[t]:l[t]}:Kl([e,t],n),Kl=([e,t],l=[])=>({[e]:l.length?Hl(l.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:l.length?Fl(l.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),Gl=(e,[t,l],n)=>e>=n[t]&&e<=n[l],Jl=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Yl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,daysValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a/30)-n):Math.round(n*e*a/365/100)},ql=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:a,isShowDepositeName:i})=>{const[r,{field:s}]=B({moneyValue:1e5,daysValue:90,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,isMonthlyInterestPayment:!1}),o=((e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:i,isSmallBusiness:r,isMonthlyInterestPayment:s}=e,o=Pl(t||"business-calculator-data"),c=i||a,d=l<90||l>730;if(l<=30)return{...Tl,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&r===e.isSmallBusiness&&Jl(c,e)&&Gl(n,["minSum","maxSum"],e)&&Gl(l,["minDays","maxDays"],e)))||Tl,{rate:h}=m,u=Yl(h,e),p=n+u,x=o?.rateRows||[Tl];return{...m,...Kl(["minSum","maxSum"],x),...Kl(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})(r,t),{income:c,finalSum:d,rate:m,depositeName:h,isShowUnknownRate:x}=o;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-2/5",children:[Ml({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),(g={title:"Срок вклада, дни",min:o.minDays,max:o.maxDays,...s("daysValue"),value:o.daysValue},u(ut,{className:"mt-7",items:[`От ${$l(g.min||0)}`,`До ${$l(g.max||0)}`],step:1,...g})),p("div",{className:"mt-7 flex justify-between",children:[Zl(o,s),Al({title:"Выплата процентов",orientation:"vertical",...s("isMonthlyInterestPayment")})]})]}),x?u(Ll,{}):u(Bl,{rate:m,depositeName:h,isShowDepositeName:i,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Nl,{title:"Доход по вкладу",value:c,postfix:"₽",prefix:"+"}),u(Nl,{title:"Сумма в конце срока",value:d,postfix:"₽"}),Yt(l,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:Rl(n)})]})]}),u("div",{className:"mt-5",children:Rl(a)})]});var g})),Zl=(e,t)=>p("div",{children:[u(Vt,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),u(Vt,{className:"mt-3",disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal}),u(Vt,{className:"mt-3",text:"Являюсь малым предприятием",...t("isSmallBusiness"),value:e.isSmallBusiness})]}),Ql=({min:e=0,max:t=0,availableMonths:l,...n})=>u(ut,{className:"mt-7",items:[`От ${en(e)}`,`До ${en(t)}`],step:1,...l?.length?{list:l}:{min:e,max:t},...n}),en=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,tn=e=>Dl({...e,items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),ln=e=>nn({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&nn({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&nn({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&nn({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),nn=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],an=(e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a,moneyExtra:i}=t;if(0===e)return 0;if(l){const t=e/1200;return i?(n+i)*(t+t/(Math.pow(1+t,a)-1)):n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)},rn=(e,t,l)=>{let{moneyValue:n,monthsValue:a}=e;const i=Pl(t||"credit-calculator-data"),s=i?.rateRows||[Sl],o=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>ln({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:i?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:c,maxSum:d}=Wl(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=Wl(["minMonths","maxMonths"],o,s);n=st(n,c,d),a=st(a,m,h);const u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a})=>e?.find((e=>ln({row:e,userInputParams:t,paramsViewSettings:l})&&Gl(n,["minSum","maxSum"],e)&&Gl(a,["minMonths","maxMonths"],e)))||Sl)({rateRows:s,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a}),{rate:p}=u,x=an(p,e);return r((()=>({...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:n,monthsValue:a,monthlyPayment:x})),[e,i])},sn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!1,isInsurance:!0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,moneyValue:2e5,monthsValue:wl}),s=rn(i,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Ml({title:"Сумма кредита, ₽",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),Ql({title:"Срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue}),u("div",{className:"mt-2xl",children:on({...s,...a},r)})]}),u(Bl,{title:"Ставка",rate:s.rate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Nl,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),tn({orientation:"vertical",...r("isAnnuity")}),Yt(l,{className:"mt-2xl",isVertical:!0}),Rl(n)]})]})})),on=(e,t)=>p("div",{children:[e.isShowSalaryClient?u(Vt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowStateEmployee?u(Vt,{className:"mt-3",text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?u(Vt,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?u(Vt,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),cn=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,i=Pl(t||"deposit-calculator-data"),r=i?.rateRows?.[0]?hn(i.rateRows[0].minMonths,i.rateRows[0].maxMonths):1,s=!l?.isShowMonthlyInterestPayment,o=!l?.isShowRemoteRegistration,c=i?.rateRows?.find((t=>mn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&mn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Gl(n,["minSum","maxSum"],t)&&Gl(a||r,["minMonths","maxMonths"],t)))||Il,{rate:d}=c,m=dn(d,e),h=n+m,u=i?.rateRows||[Il];return{...c,...Kl(["minSum","maxSum"],u),...Kl(["minMonths","maxMonths"],u),availableMonths:Xl(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((n,a)=>t>=e?e+a*l:e-a*l)))(e,t))),...e,defaultMonth:r,income:m,finalSum:h}},dn=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a)-n):Math.round(n*e*30*a/365/100)},mn=({row:e,userInputParams:t,paramKey:l,isExclude:n})=>n||t[l]===e[l],hn=(e,t)=>e+Math.round((t-e)/2),un=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:i})=>{const[r,{field:s}]=B({moneyValue:2e4,monthsValue:0,isMonthlyInterestPayment:!1,isRemoteRegistration:!1}),o=cn(r,t,i),{defaultMonth:c,income:d,finalSum:m,rate:h}=o,{onChange:x}=s("monthsValue");return a((()=>{x&&x(c)}),[c]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Ml({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),Ql({title:"Срок вклада, месяцев",min:o.minMonths,max:o.maxMonths,availableMonths:o.availableMonths,...s("monthsValue"),value:o.monthsValue}),u("div",{className:"mt-2xl",children:pn({...o,...i},s)})]}),u(Bl,{rate:h,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Nl,{title:"Доход по вкладу",value:d,postfix:"₽",prefix:"+"}),u(Nl,{title:"Сумма в конце срока",value:m,postfix:"₽"}),Yt(l,{className:"mt-2xl",isVertical:!0}),Rl(n)]})]})})),pn=(e,t)=>{return p("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowMonthlyInterestPayment?Al({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment}):null,e.isShowRemoteRegistration?(l={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration},Dl({...l,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]});var l},xn=e=>gn({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&gn({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"})&&gn({...e,fieldKey:"isExtraMoney",viewSettingFieldKey:"isShowExtraMoney"}),gn=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],fn=(e,t,l)=>{let{moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}=e;const o=Pl(t||"refinancing-calculator-data"),c=o?.rateRows||[kl],d=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>xn({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:o?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:m,maxSum:h}=Wl(["minSum","maxSum"],d,c),{minSumOld:u,maxSumOld:p}=Wl(["minSumOld","maxSumOld"],d,c),{minSumExtra:x,maxSumExtra:g}=Wl(["minSumExtra","maxSumExtra"],d,c),{minMonths:f,maxMonths:b}=Wl(["minMonths","maxMonths"],d,c);n=st(n,m,h),i=st(i,u,p),s=st(s,x,g),a=st(a,f,b);const v=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r})=>e?.find((e=>xn({row:e,userInputParams:t,paramsViewSettings:l})&&Gl(n,["minSum","maxSum"],e)&&Gl(i,["minSumOld","maxSumOld"],e)&&Gl(r,["minSumExtra","maxSumExtra"],e)&&Gl(a,["minMonths","maxMonths"],e)))||kl)({rateRows:c,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}),{rate:y}=v,N=an(y,e),w=e.oldMonthlyPayment-N;return r((()=>({...v,...e,minSum:m,maxSum:h,minMonths:f,maxMonths:b,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s,monthlyPayment:N,benefit:w})),[e,o])},bn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),s=fn(i,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Ml({title:"Остаток долга в других банках, ₽ ",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),Ml({title:"Ежемесячный платеж в других банках, ₽",isShowItems:!1,step:500,min:s.minSumOld,max:s.maxSumOld,...r("oldMonthlyPayment"),value:s.oldMonthlyPayment}),Ql({title:"Новый срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue}),u("div",{className:w("mt-7",s.isExtraMoney?"mb-3":""),children:vn({...s,...a},r)}),s.isExtraMoney?Ml({title:"Дополнительная сумма, ₽ ",step:500,min:s.minSumExtra,max:s.maxSumExtra,...r("moneyExtra"),value:s.moneyExtra}):null]}),u(Bl,{title:"Ставка",rate:s.rate,fractionDigits:1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Nl,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),s.benefit>0?u(Nl,{title:"Выгода в месяц",value:s.benefit,postfix:"₽"}):null,tn({orientation:"vertical",...r("isAnnuity")}),Yt(l,{className:"mt-7",isVertical:!0}),Rl(n)]})]})})),vn=(e,t)=>p("div",{children:[e.isShowSalaryClient?u(Vt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?u(Vt,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,e.isShowExtraMoney?u(Vt,{className:"mt-3",text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney}):null]}),yn={CreditCalculatorForm:sn,DepositCalculatorForm:un,BusinessDepositCalculatorForm:ql,BonusCalculatorForm:zl,RefinancingCalculatorForm:bn},Nn=(e,t)=>{const l=e?.calcType;if(!l||!(l in yn))return null;const n=yn[l];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(I,{className:"text-center mb-6",title:e.title}):null,u(n,{...e})]})},String(t))},wn=x((({className:e="",calculatorTabs:t=[],...l})=>{const a=t.map((e=>e.nav||{})),r=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=i((e=>o(e)),[]),[d,m]=gl({itemCount:t?.length,visibleItemCount:3});return p(k,{className:w("box-border overflow-hidden relative",e),defaultPadding:"p-0",...l,children:[p("div",{className:"bg-white",children:[a.length>1?Sn({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,yl({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:r?.length?r.map(Nn):null})]})}));function Sn({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-xs",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const a=l?"h-20 w-96 p-xl border-none bg-primary-main text-white":"h-20 w-96 px-lg ease-in duration-300 bg-white text-primary-text",i=l?"text-xl mb-xs":"text-l mb-2xs",r=l?"text-l font-light text-white":"text-m font-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return p("button",{type:"button",onClick:n,"aria-label":e?.title,className:w("box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-20 space-x-m",a),children:[u(Rt,{className:w("h-6 w-6 min-w-6 min-h-6",s),image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:i,children:e?.title}),u("div",{className:r,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const kn=x((e=>{const{onChange:t,min:l,max:n,defaultValue:a="0",fractionDigits:r=0,...s}=e,o=rt(e,{normalize:(e=a)=>l&&n?String(st(Number(Cn(e)),l,n)):Cn(e),format:ot(r)}),c=i((e=>t&&t(Cn(e))),[t]);return u(pe,{onChange:c,...s,...o})})),Cn=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),In=x((e=>u(kn,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(me,{size:"text-xl",font:"font-light",children:"₽"})})}))),Tn="amount",Bn={[Tn]:1500},Rn=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:n="1500",button:a,...i})=>{const[{amount:r},{field:s}]=B(Bn),o=r<=0,c=o?ie({version:a?.version}):re({className:"text-white",version:a?.version}),d=Y();return p(k,{className:w("flex flex-col items-center",e),defaultPadding:"p-6xl",...i,children:[t?u(I,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,p("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(In,{name:Tn,valid:!o,placeholder:n,label:l,...s(Tn,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",c),disabled:o,...d(a),children:a.text}):null]})]})})),Mn=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),Pn=[];function Vn(e,t,{className:l,...n}={}){const{key:a,blockDecorator:i=Mn,blocksRegistry:r={},ancestors:s=Pn}=t,{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const c=o&&r[o];return i({blockClassName:w("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:s,render:({block:l,blockClassName:i})=>{const{content:r}=l;return c?u(c,{className:i,block:e,options:t,...r,...n},a):null}},a)}const zn=[],$n=(e,{key:t,ancestors:l=zn,slotName:n=null,renderProps:a=Vn,...i})=>(e||[]).map(((e,r)=>a(e,{...i,key:`${t||e.type}-${r}`,ancestors:i.parent?[...l||zn,[i.parent,n]]:l})));function _n({children:e,block:t,options:l,renderProps:n}){return e||(t&&l?$n(t.blocks,{...l,parent:t,renderProps:n}):null)}const jn=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Dn=x((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:a,children:r,onIntersection:s})=>{const o=v(i((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===n),ref:o,children:r})})),An=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Ln=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:a=0,padding:r=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),f=i(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(En(l))}),[h,p]),b=n>0?a*Number(n)-1:0,v="vertical-list"===o,y="horizontal-list"===o,N={...y?On(r,b):{},...v?jn(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(S=(e,t)=>u(Dn,{className:w(c,n?An[n-1]:"",v?"h-full":""),style:y?On(r/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(m)});var S})),On=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),En=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Fn=e=>t=>e.scrollWidth/t,Un=e=>(t,l)=>{e.scrollBy({left:l*Fn(e)(t),behavior:"smooth"})},Hn=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const a=s(null),[r,o]=n([]),c=i((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=r.length?[Ul()(r),El()(r)]:[-1,-1],h=d>0,u=m<e-1,p=i((()=>{var l;a.current&&(t&&!h?(l=a.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):Un(a.current)(e,-1))}),[t,e,h]),x=i((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):Un(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Xn="absolute top-[calc(50%-24px)] z-40",Wn="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Kn=x((({scroll:e,arrowsPadded:t,isBlur:l,onScrollLeft:n,onScrollRight:a,hasEdgeBlocks:r,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=r?s>0:c,g=r?s<o-1:d,f=i((()=>{r?(c&&s!==o-1&&m(),n()):m()}),[m,n,r,c,s,o]),b=i((()=>{r?(d&&0!==s&&h(),a()):h()}),[h,a,r,c,s,o]);return p("div",{children:[Gn(l,e),x?u(bl,{className:w(Xn,t?"left-8":"left-0"),onClick:f}):null,g?u(vl,{className:w(Xn,t?"right-8":"right-0"),onClick:b}):null]})})),Gn=(e,t)=>e?p("div",{children:[t.canScrollLeft?u("div",{className:w(Wn,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Wn,"right-0 bg-opacity-to-white")}):null]}):null,Jn={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Yn={"horizontal-list":"w-6","vertical-list":"h-6"},qn=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list",version:a})=>l?u("div",{className:w("flex gap-2",Jn[n],a?"group":""),...a?{"data-ver":a}:{},children:new Array(l).fill(null).map(((l,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Yn[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),Zn=({showArrows:e,showDots:t,scrollButtonsProps:l,dotsProps:n})=>[e?u(Kn,{...l},"0"):null,t?u(qn,{...n,listType:"horizontal-list"},"1"):null],Qn=x((({className:e="",itemCount:t,visibleItemCount:l=0,isBlur:a=!0,isCyclic:r=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,showArrows:m=!0,isGap:h=!0,...x})=>{const{blocks:g=[]}=x.block||{},f=t||g?.length,[b,v]=n(Math.floor(l/2)),y=i((()=>v((e=>e+1))),[]),N=i((()=>v((e=>e-1))),[]),[S,C]=Hn({itemCount:f,isCyclic:r}),[I]=C.visibleIndicesRange,T=g&&"CarouselBankHistoryCard"===g[0]?.type;return u(k,{className:e,defaultPadding:ea(o),...x,children:p("div",{className:w(ta(d),"relative max-w-full"),children:[u(Ln,{containerRef:S,visibleItemCount:l,snapAlign:"snap-start",gap:h?16:void 0,onVisibleIndicesChange:C.handleVisibleIndicesChange,children:_n({...x,renderProps:T?(e,t)=>Vn(e,t,{blocksLength:g?.length,activeIndex:b}):Vn})}),Zn({showArrows:m,showDots:c,scrollButtonsProps:{scroll:C,arrowsPadded:s,isBlur:a,onScrollLeft:N,onScrollRight:y,hasEdgeBlocks:T,activeIndex:b,itemCount:f},dotsProps:{containerRef:S,activeIndex:I,dotCount:f}})]})})}));Qn.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const ea=e=>e?"p-6xl":"",ta=e=>e?"flex justify-center":"",la=x((({title:e,description:t,blocksLength:l=0,activeIndex:n,options:a})=>{const i=Number(a?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",defaultPadding:"p-0",children:u("div",i===n?{className:"relative flex items-center w-full",children:u(tl,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-3xl text-white shadow-dark-blue",ia(i,l),na(i))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",na(i)),children:u("span",{className:aa(i),children:e})})})})})),na=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},aa=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},ia=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",ra=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12},sa={normal:"min-w-[970px]",small:"min-w-[355px]"};function oa(e="",t="normal"){return ra(e)<=4?"w-[375px]":sa[t]}const ca="absolute border border-solid border-gray w-full h-full hidden sm:block",da=x((({className:e="",button:t,description:l,title:n,carouselVersion:a="normal",version:i=""})=>u("section",{className:w("flex pl-6xl sm:p-lg border-box h-full sm:max-w-[375px]",oa(e,a),e),children:p("div",{className:"relative w-full",children:[u("div",{className:`${ca} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${ca} z-10 top-6 right-8 bg-green`}),u("div",{className:`${ca} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(tl,{className:"!p-0",title:n,description:l,headlineVersion:"L",align:"text-left",version:i}),Yt([t],{className:"mt-14 sm:justify-center",isVertical:!0})]})]})}))),ma={black:"bg-black",white:"bg-white"},ha=x((({className:e="",title:t,description:l,image:n,price:a,button:i,colors:r,...s})=>p(k,{className:w("border box-border border-gray p-6xl sm:p-7 h-full flex flex-col justify-left gap-m",e),...s,children:[n?.src?u(Rt,{className:"flex justify-center",image:n}):null,u(tl,{title:t,description:l,headlineVersion:"XS",isPadding:!1,align:"text-left"}),r?.length?p("div",{className:"flex text-secondary-text",children:[u("div",{className:"mr-xs",children:u(me,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(ua)]}):null,a?p(me,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Yt([i],{buttonClassName:"w-full"})]}))),ua=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${ma[e]}`},String(t)),pa=x((({className:e="",href:t,target:l,isRemote:n=!1,children:a})=>{const i=Y({isRemote:n})({href:t,target:l});return u(t?"a":"div",{className:w("block",e),...t?i:{},children:a})})),xa=x((({className:e="",icon:t,title:l,description:n,href:a,target:i,...r})=>u(k,{className:w("w-[365px]",e),defaultPadding:"p-0",...r,children:p(pa,{className:"flex flex-col",href:a,target:i,children:[t?.icon?u(Rt,{image:t}):null,t?.src?u(Rt,{image:t}):null,l?u(I,{headingType:"h6",as:"h4",className:"text-left pt-s mb-xs",title:l}):null,n?u("div",{className:"mb-4",children:u(me,{font:"font-light",size:"text-m",color:"text-secondary-text",children:n})}):null]})}))),ga={start:"self-start",center:"self-center",end:"self-end"},fa=x((({className:e,defaultPadding:t,padding:l,title:n="",insetTitle:a="",buttons:i,leftImage:r,rightImage:s,imageAlign:o,backImage:c,children:d})=>p("div",{className:w("relative flex flex-col gap-3xl font-sans overflow-hidden",l||t,e),children:[c?u("div",{className:"absolute bottom-0 right-0 z-0",children:c}):null,n?u("div",{className:"relative",children:n}):null,p("div",{className:"grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-3xl",children:[ba(r,{imageAlign:o}),p("div",{className:w("flex flex-col gap-3xl max-w-[600px] xl:max-w-[728px]",r?"":"grow"),children:[a,u("div",{className:"grow",children:d}),i]}),ba(s,{className:"-order-1 sm:order-1",imageAlign:o})]})]}))),ba=(e,{className:t,imageAlign:l})=>e?u("div",{className:w("flex-shrink-0",l&&ga[l],t),children:e}):null,va={1:"flex-col",2:"gap-x-10 flex-wrap"},ya=x((({className:e,padding:t,additionalDescription:l,cardsList:n=[],columnsMode:a=1,description:i,image:r,title:s,...o})=>u(k,{className:w("box-border text-left w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",e),padding:"p-0",...o,children:p(fa,{className:"h-full",defaultPadding:"p-xl",padding:t,title:s?u(I,{headingType:"h4",as:"h3",className:"mb-m z-10",title:s}):null,backImage:r?.src?u(Rt,{image:r}):null,children:[p("div",{className:"flex justify-between mb-4",children:[i?u("div",{className:"w-1/3",children:u(me,{size:"text-h6",children:i})}):null,l?u(me,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:l}):null]}),n.length?u("ul",{className:w("list-none m-0 p-0 flex gap-y-2",va[a]),children:Na(n,a)}):null]})}))),Na=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(me,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),wa="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Sa=x((({text:e,href:t="",target:l="",className:n=""})=>{const a=Y()({href:t,target:l});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${n}`,children:[p("a",{className:"absolute border border-primary-main ml-s px-xl py-lg\n text-l font-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-3xs",children:e}),u("div",{className:"w-6 h-6",children:u(Rt,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:`${wa} mx-1.5 mt-1.5`}),u("div",{className:`${wa} mt-3 mr-3`})]}):null})),ka=x((({className:e,additionalDescription:t,description:l,links:n,title:a,...i})=>p(k,{className:w("flex w-full overflow-hidden justify-between",e),...i,children:[p("div",{className:"flex flex-col max-w-96 pr-xl text-white text-xl font-light",children:[u(tl,{isPadding:!1,title:a,description:l,as:"h1",align:"text-left"}),t?u(tl,{className:"pt-m",description:t,align:"text-left",isPadding:!1}):null]}),n?.length?Ca(n):null]}))),Ca=e=>{const t=Math.ceil(e.length/10);return u(Qn,{className:"min-w-[832px] w-[832px]",version:"",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,l)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*l,10*(l+1)).map(((e,t)=>u(Sa,{className:"m-1",...e},String(t))))},String(l))))})},Ia={L:"w-1.5 h-1.5 mr-m",M:"w-1.5 h-1.5 mr-s",S:"w-1 h-1 mr-xs"},Ta=x((({className:e,isDotted:t=!0,children:l,size:n="M"})=>p("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",Ia[n])})}):null,u("span",{children:l})]}))),Ba={S:"text-l font-light",M:"text-h6",L:"text-h5"},Ra={S:"ml-xs",M:"ml-s",L:"ml-m"},Ma=x((({className:e,hasIndent:t,isDotted:l,items:n,listItemSize:a="M"})=>n?.length?u("section",{className:w("flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",Ba[a],t?Ra[a]:"",e),role:"list",children:n.map(((e,t)=>u(Ta,{isDotted:l,size:a,children:e},String(t))))}):null)),Pa=x((({additionalDescription:e,align:t="text-center",button:l={},className:n="",description:a,headlineSmallVersion:i="H6",href:r,icon:s,isDotted:o=!0,isButtonFullWidth:c=!0,isImageFullWidth:d=!1,isTopPosition:m=!1,items:h=[],target:u,title:x,version:g="primary",...f})=>p(k,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,n),defaultPadding:"p-0",version:g,...f,children:[p(pa,{className:"p-m flex flex-col gap-xs",href:r,target:u,children:[za(i,x),$a(a),ja(h,o,g),_a(e),Va(s,d,m)]}),Yt([l],{className:w("p-m pt-0",c?"":"self-center"),isVertical:c})]}))),Va=(e,t,l)=>p("div",{className:w("flex gap-lg",l?"order-first":"order-last",t?"":"justify-center"),children:[e?.src?u(Rt,{className:"shrink-0",image:e}):null,e?.icon?u(Rt,{className:w("shrink-0",t?"":"w-8 h-8 min-w-8"),image:e}):null]}),za=(e,t)=>t?u(me,{size:el[e],children:t}):null,$a=e=>e?u(de,{size:"text-l",children:e}):null,_a=e=>e?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e}):null,ja=(e,t,l="primary")=>e?.length?u(Ma,{className:w("text-s","primary"===l?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,listItemSize:"S"}):null,Da=x((({className:e="",title:t,icon:l,list:n=[],href:a,target:i,...r})=>u(k,{className:w("border border-gray",e),defaultPadding:"p-3xl sm:p-0",...r,children:p(pa,{className:"sm:flex sm:items-center",href:a,target:i,children:[u("div",{className:"min-w-[200px] flex justify-center",children:l?.src||l?.icon?u(Rt,{image:l}):null}),p("div",{className:"sm:px-s p-5xl",children:[t?u(I,{className:"mb-xs sm:mb-m",headingType:"h6",title:t}):null,n.length?u("div",{className:"flex flex-col gap-xs sm:gap-s",children:n?.map(Aa)}):null]})]})}))),Aa=(e,t)=>p("div",{className:"flex flex-row-reverse justify-between gap-y-2xs sm:flex-col",children:[e.title?u(me,{size:"text-l",font:"font-normal",children:e.title}):null,e.description?u(de,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e.description}):null]},String(t)),La={default:"w-14 h-14",small:"w-12 h-12"},Oa=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",La[t]),Ea=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],Fa=x((({buttonSize:e="default",rounded:t=!1,icon:l,...n})=>{const{href:a,version:i,text:r=""}=n,{iconMapped:s,label:o}=(e=>Ea.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(a),c=Ua(l)??s;return u(se,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",Oa(r,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:r,version:i,...n,children:c&&!r?u(Rt,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),Ua=e=>e?.src||e?.icon?e:void 0,Ha=x((({className:e="",media:t,children:l,buttonSize:n})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(Fa,{buttonSize:n,...e},String(t))))}),u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:l})]}))),Xa=x((({className:e="",description:t,href:l,icon:n,items:a=[],socialMedia:i=[],target:r,title:s,align:o="text-left",version:c="primary",...d})=>u(k,{className:w("relative min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),defaultPadding:"p-m",version:c,...d,children:p(pa,{href:l,target:r,children:[u(tl,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(Ma,{items:a,listItemSize:"S"}):null,i.length?u(Ha,{className:"pt-10",media:i}):null]}),Wa(n)]})}))),Wa=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(Rt,{image:e}):null,e?.src?u(Rt,{image:e}):null]}),Ka=x((e=>{const{__html:t="",richVersion:l=""}=e;return u("div",{className:w(l,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Ga=x((({className:e="",__html:t,richVersion:l="striped",...n})=>u(k,{className:w("border border-gray h-full min-w-96",e),...n,children:u(Ka,{__html:t,richVersion:l})}))),Ja=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=n(l),c=i((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=r?r({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Ya=x((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return a((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),qa=(e=!1)=>e?"p-8 mt-8 pt-20":"p-8 mt-20",Za=(e,t)=>{const{title:l,description:n,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[l?u("div",{className:"opacity-80",children:u(me,{size:"text-m",color:"text-secondary-text",children:l})}):null,n?u("div",{className:"mt-1",children:u(me,{size:"text-xl",color:"text-primary-text",children:n})}):null,a?.length?u("div",{className:"text-primary-main",children:Yt(a)}):null]},String(t))},Qa=x((({className:e="",title:t,align:l="text-center",icon:n,isHighlighting:a=!1,button:i,cardCells:r=[],...s})=>{const o=r.map(Za),c=o.slice(0,1),d=o.slice(1);return p(k,{className:w("relative border border-gray flex flex-col",e),defaultPadding:qa(a),...s,children:[a?li():null,ei(n),t?u(I,{className:w("pt-xs",l),headingType:"h5",title:t}):null,i?u(se,{className:"w-full mt-4",...i}):null,r.length?u(Ja,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[c,u(Ya,{isUnfolded:e,children:d})]}),renderFoldButton:r.length>1?ti:null}):null]})})),ei=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(Rt,{image:e}):null}),ti=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(_e,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),li=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(_e,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(de,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),ni="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",ai="border-gray border-solid border",ii="border-main-divider border border-t-0 border-x-0",ri="w-[200px] mr-6",si=x((({icon:e,image:t,title:l,link:n})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${ai} ${ni}`,role:"columnheader",children:[e&&!t?.src&&u(Rt,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&u(Rt,{className:"mb-[18px]",image:t}),l?u(I,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&u("div",{className:"mt-auto w-full",children:u(se,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs font-light font-medium py-[11px]",children:n.text})})})]}))),oi={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ci=x((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:oi[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),di=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),mi=x((({colHeaders:e,activeIndex:t})=>p(di,{children:[u("div",{className:ri,role:"columnheader"}),u(ci,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(si,{...e},String(t))))})]}))),hi=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>u("div",{className:`w-80 box-border flex flex-col ${ai} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?ni:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${ii} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>xi(e,t,n)))})}))),ui=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),pi=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),xi=({label:e,description:t},l,n)=>p("div",{className:"first:pt-2xl pt-xl last:pb-2xl",children:[e?u("h4",{className:ui(n),children:e}):null,t?u("div",{className:pi(n),children:t}):null]},String(l)),gi=(e=!1)=>`text-s py-7 ${ii} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,fi=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:a,isLastRow:i})=>p(di,{children:[e?.title?u("div",{className:gi(i),children:e.title}):null,t?.length?u(ci,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(hi,{cell:e,isFirstRow:a,isLastRow:i,isFillGradient:n&&0===t},String(t))))}):null]}))),bi=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:a}=n;return p("div",{className:"relative",children:[e.map(((e,n,{length:a})=>u(fi,{row:e,isFirstRow:0===n,isLastRow:n+1===a,activeIndex:l,isColoredFirstColumn:t},String(n)))),a?yl({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),vi=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:a})=>{const i=e?.map((({header:e})=>e||{})),r=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:r.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=gl({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[i?.length?u(mi,{colHeaders:i,activeIndex:o}):null,s?.length?u(bi,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),yi=x((({className:e="",title:t,rowHeaders:l,columns:a,visibleRowLength:r=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!r),m=i((()=>d((e=>!e))),[]);return p(k,{className:w("overflow-hidden relative",e),defaultPadding:"p-6xl",...o,children:[u(I,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(vi,{columns:a,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:r}),r?Ni({isShowAllRow:c,onClick:m}):null]})})),Ni=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:ri}),u("button",{onClick:t,className:"mt-m py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u(me,{size:"text-xs",font:"font-medium",children:e?"Скрыть":"Показать все параметры"})})]})}),wi=x((({className:e,contacts:t,info:l,version:n="secondary",...a})=>p(k,{className:w("flex",e),defaultPadding:"p-6xl",version:n,...a,children:[l?.length?Si(l):null,t?.length?Si(t):null]}))),Si=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>ki({column:e,index:t})))}),ki=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>p("div",{className:"mt-xl first:mt-0",children:[u(tl,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?u("div",{className:"mt-xs opacity-80",children:u(de,{size:"text-m",font:"font-light",children:l})}):null,n?.href?u(se,{className:"mt-xl",...n}):null]},String(a))))},`col-${String(t)}`):null,Ci=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,Ii=(e,t)=>Object.entries(e).map((([t,l])=>"number"==typeof l?((e,t)=>l=>Ci(t[e])||Ci(l[e])||Ti(t[e])<=Ti(l[e]))(t,e):"object"==typeof l&&"min"in l&&"max"in l?((e,t)=>l=>Ci(t[e])||Ci(l[e])||Ti(t[e]?.min)>=Ti(l[e]?.min)&&Ti(t[e]?.min)<=Ti(l[e]?.max))(t,e):Array.isArray(l)?((e,t)=>l=>Ci(t[e])||Ci(l[e])||t[e]?.some((t=>l[e]?.includes(t))))(t,e):((e,t)=>l=>Ci(t[e])||Ci(l[e])||t[e]===l[e])(t,e))).every((e=>e(t))),Ti=e=>Number(e||0),Bi=x((({className:e="",label:t,icon:l,dataTheme:n="",disabled:a=!1,onClick:i})=>p("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:i,disabled:a,"data-theme":n,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(Rt,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Ri=({isUnfolded:e,onToggle:t})=>u(Bi,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Mi=["ArrowDownIcon","ArrowUpIcon"],Pi="grid grid-cols-12 gap-1 border-box",Vi=x((({label:e="",filtrationState:t={},topItemsCount:l=0,block:n,notFound:a,...i})=>{const r=n?.blocks?.filter((e=>Ii(t,e.content||{})))||[],[s,o]=l>0?[r.slice(0,l),r.slice(l)]:[r,[]];return p("div",{children:[u("div",{className:w(r.length?"hidden":"block"),children:a?zi(a):null}),p("div",{className:w(r.length?"":"hidden"),children:[u("div",{className:w("mb-1",Pi),children:$n(s,{...i.options,parent:n})}),u(Ja,{renderFoldableSection:({isUnfolded:e})=>u(Ya,{className:w(Pi,e?"mb-1":""),isUnfolded:e,children:$n(o,{...i.options,parent:n})}),renderFoldButton:({isUnfolded:t,onToggle:n})=>u(Bi,{className:w(l<1?"hidden":""),disabled:!o?.length,label:e,icon:Mi[Number(t)],dataTheme:i.options?.page?.colorPalette,onClick:n})})]})]})}));function zi({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-xs",children:u(de,{align:"text-center",children:u(me,{size:"text-h4",children:e})})}):null,t?u(de,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const $i=x((({value:e,onChange:t,items:l=[],multiple:n})=>l.map((l=>u(He,{text:l.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(t)if(n){const n=e?.includes(l);t(n?(e||[]).filter((e=>e!==l)):[...e||[],l])}else t(e===l?"":l)})(l.value),type:n?"checkbox":"radio"},l.value))))),_i=({field:e,reset:t,filtrationSchema:l,resetButton:n,children:a})=>p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[p("div",{className:"flex gap-11",children:[a,Object.entries(l).map(ji(e))]}),n?u("div",{children:u(se,{className:"w-72 ml-3",onClick:t,...n})}):null]}),ji=e=>([t,l])=>{const n=l?.type;return"array"===n?Di(t,e)(l):null},Di=(e,t)=>l=>{const n=l?.items?.enum?.map(((e,t)=>({value:e,title:l?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[l?.title?u("div",{className:"mb-4",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:l.title})}):null,u($i,{items:n,multiple:!0,...t(e)})]},e)},Ai={sum:500,period:{min:3,max:36}},Li=x((({className:e,filtrationSchema:t={},resetButton:l,sumInput:n,periodInput:a,...i})=>{const[r,{field:s,reset:o}]=B(Ai),c=a?.max||36,d=p("div",{children:[u(In,{label:n?.title,min:500,max:1e9,...s("sum",{parse:Number,format:String})}),u(ut,{title:a?.title,items:["От 3 мес","До 3 лет"],min:a?.min||3,max:c,...s("period",{parse:e=>({min:e,max:c}),format:({min:e})=>e})})]});return p(k,{className:w(e),defaultPadding:"p-0",version:"transparent",...i,children:[_i({field:s,reset:o,filtrationSchema:t,resetButton:l,children:d}),u(Vi,{filtrationState:r,...i})]})}));Li.childrenTypes=["ProductTile"],Li.childSchema=e=>e?.filtrationSchema||{};const Oi=e=>"Image"===e?.errorContentType&&e?.image?u(Rt,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Ei=x((({className:e="",title:t,subtitle:l,error:n,button:a,...i})=>{return p(k,{className:w("flex flex-col justify-center items-center",e),defaultPadding:(r=a?.text,r?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),version:"transparent",...i,children:[u("div",{className:"flex justify-center py-20",children:Oi(n)}),t?u(I,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?u("div",{className:"mb-7 max-w-[613px] text-center",children:u(me,{size:"text-xl",font:"font-light",children:l})}):null,a?.text?u(se,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var r}));var Fi;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(Fi||(Fi={}));const Ui={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},Hi=e=>e?Ki.format(e):"",Xi=(e,t)=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:Hi(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:Hi(t)})]}),Wi=(e,t="")=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:Hi(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),Ki=new Intl.NumberFormat("ru",{style:"currency",currency:Fi.RUB}),Gi=e=>u("th",{className:"pl-5xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:e})}),Ji=x((({className:e,currencies:t=[],actuality:l="",officeName:n="",...a})=>{const i=Yi(t,4);return p(k,{className:w("space-y-3xl",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between space-y-lg",children:[u(I,{headingType:"h4",title:"Курс обмена валют в "+n,className:"whitespace-pre-wrap text-h4"}),u("div",{className:"pl-6xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:l})})]}),u("div",{className:"flex flex-row pt-m text-left",children:i.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),Gi("Купить"),Gi("Продать"),Gi("Лучшая покупка"),Gi("Лучшая продажа")]})}),u("tbody",{children:i.map((e=>(({title:e,buyPrice:t,buyDifference:l,sellPrice:n,sellDifference:a,buyOfficeName:i,sellOfficeName:r})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(Rt,{image:{icon:Ui[e]},width:"24",height:"24"}):null,u("span",{className:"ml-xs",children:e})]})}),Xi(t,l),Xi(n,a),Wi(t,i),Wi(n,r)]},e))(e)))})]}):null})]})})),Yi=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var qi;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(qi||(qi={}));const Zi=new Intl.NumberFormat("ru",{style:"currency",currency:qi.RUB}),Qi=e=>e?Zi.format(e):"",er="text-left text-m font-light text-secondary-text",tr=`${er} pl-5xl`,lr={USD:"DollarIcon",EUR:"EuroIcon"},nr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:er,children:"Валюта"}),u("th",{className:tr,children:"Купить"}),u("th",{className:tr,children:"Продать"})]})}),u("tbody",{children:t.map(ar)})]}))),ar=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-2xs text-h6",children:[u("td",{className:"pt-m",children:p("div",{className:"flex items-center",children:[t?u(Rt,{image:{icon:lr[t]},width:"24",height:"24"}):null,u("span",{className:"ml-xs",children:t})]})}),u("td",{className:"pt-m pl-5xl",children:Qi(e?.saleExchangeRate)}),u("td",{className:"pt-m pl-5xl",children:Qi(e?.buyExchangeRate)})]},t)},ir=x((({className:e="",address:t})=>p("div",{className:`flex gap-s ${e}`,children:[u(Rt,{image:{icon:"GpsIcon"},width:"24",height:"24"}),p("div",{className:"space-y-2xs",children:[t?u("p",{className:"text-primary-main text-l",children:t}):null,u("p",{className:"text-secondary-text text-m",children:"Курс указан для заданного офиса"})]})]}))),rr=(e,t,l)=>{const n=Number(sr(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},sr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),or=e=>{return(t=[[e=>e.value!==qi.RUB&&e.oppositeValue!==qi.RUB,()=>e.handleConvert(e.value,qi.RUB)],[e=>e.value===qi.RUB&&e.oppositeValue===qi.RUB,()=>e.handleConvert(e.value,qi.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function cr(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:i,setSelected:r}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return p("div",{className:"relative flex",children:[u(pe,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:i}),s.length?u(Ae,{isBorder:!1,onChange:e=>r(e.key),options:s,value:o}):null]})}const dr=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[r,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||qi.RUB,selectBuy:l?.[0]?.currency?.currency||qi.USD}),o=i((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[cr({placeholder:"Хочу продать",rates:l,selected:r.selectSell,setSelected:mr(r,o,l),value:r.inputSell,setValue:e=>ur(o,l)(e,r.selectSell,r.selectBuy)}),cr({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:hr(r,o,t),value:r.inputBuy,setValue:e=>pr(o,t)(e,r.selectBuy,r.selectSell)}),a?.text?u(se,{className:"py-4",version:a?.version,...a,children:a.text}):null]})})),mr=(e,t,l)=>n=>{t({selectSell:n}),or({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{ur(t,l)(e.inputSell,n,a)}})},hr=(e,t,l)=>n=>{t({selectBuy:n}),or({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>pr(t,l)(e.inputBuy,n,a)})},ur=(e,t)=>(l,n,a)=>{e({inputSell:sr(l),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;i&&e({inputBuy:String(rr(l,i,n===qi.RUB)||"")})},pr=(e,t)=>(l,n,a)=>{e({inputBuy:sr(l),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;i&&e({inputSell:String(rr(l,i,n===qi.RUB)||"")})};const xr=async e=>{const t=await gr(),l=t?.code||"000";return{region:t,exchangeRates:await fr(e,l)}},gr=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},fr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},br=x((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:a}=function(){const{data:e}=$("/api/v1/exchangerates",xr);return e||{}}(),i=vr(a?.exchangeRate?.currencies),r=i.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:qi.RUB}});const s=i.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:qi.RUB}}),u(k,{className:w("box-border min-h-80",e),...n,children:u(fa,{className:"h-full",title:u(I,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:p("div",{className:"flex gap-6xl",children:[p("div",{children:[i?u(nr,{className:"mb-xl",exchangeCurrencyItems:i}):null,u(ir,{address:a?.address})]}),i.length&&r.length&&s.length?u(dr,{className:"grow",currencyRatesBuy:r,currencyRatesSell:s,button:l}):null]})})})})),vr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],yr={};function Nr(e,t={}){const{data:l}=$(`/wcms-resources/${e}.json`,D,{fallback:t});return l||yr}const wr={"bg-white":"color",transparent:"white"},Sr={"bg-white":"text-primary-main",transparent:"text-white"},kr=(e,t,l)=>u(Rt,t?.src?{image:t,className:Sr[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:wr[e]},className:Sr[e],width:l?.width,height:l?.height}),Cr={"bg-white":"text-primary-text",transparent:"text-white"},Ir=(e,t,l)=>u("span",{className:`${Cr[t]} ml-s font-medium ${l||""}`,children:e||"Россельхозбанк"}),Tr=x((({className:e="",href:t="/",logo:l,children:n=l?.title,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0})=>p("a",{className:w("inline-flex items-center font-sans no-underline",e),href:t,target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[kr(i,l?.image,{width:"40",height:"45"}),r?Ir(n||l?.title,i):null]}))),Br=x((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(Rt,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Rr(e){throw new Error(e)}function Mr({onOpen:e,onClose:t}={}){a((()=>b.subscribe("dialog",(l=>{switch(l.type){case"open":e&&e(l);break;case"close":t&&t();break;default:Rr(l)}}))),[e,t])}const Pr=(e,t,l=300)=>a((()=>{const t=setTimeout(e,l);return()=>{clearTimeout(t)}}),t);function Vr(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const zr=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:n,s2Matches:a}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),n=new Array(e.length),a=new Array(t.length);let i=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-l),o=Math.min(r+l,t.length-1);for(let l=s;l<=o;l++)n[r]||a[l]||e[r]!==t[l]||(i++,n[r]=!0,a[l]=!0)}return{m:i,s1Matches:n,s2Matches:a}}(e,t);if(0===l)return 0;const i=function(e,t,{s1Matches:l,s2Matches:n}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!l[i])continue;let s=r;for(;s<t.length;s++)if(n[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:n,s2Matches:a}),r=(l/e.length+l/t.length+(l-i/2)/l)/3,s=r>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return r+s*(1-r)};const $r=(e,t)=>(l,n)=>{for(const[a,i]of n)l.set(a,e(l.get(a)||t,i));return l},_r=(e=[])=>e.reduce(((e,t)=>e+t),0),jr=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Dr=e=>t=>e.map((([e,l])=>[zr(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>Lr(t,e))).reduce($r(Math.max,0),new Map),Ar=e=>t=>{return Vr(t,t.map((({title:e})=>e)).map((e=>t=>{const l=jr(t||"");return l.length?_r(e.map((e=>Fl(l.map(zr(e)))))):0})(e))).sort((n=([,e])=>e,l=(e,t)=>n(e)-n(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,n},Lr=(e,t)=>new Map(e.map((e=>[e,t]))),Or=["/"],Er=({basePathList:e=Or,initialQuery:t="",wasOpened:l})=>{const[i,s]=n(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=r((()=>e.map((e=>l?e:null))),[l,e]),{data:c}=$(o,Fr),[d,m]=n(null);return Pr((()=>{c&&m(c.map((e=>t=>{const{corpus:l,dictionary:n}=t||{};if(!(e&&l?.length&&n&&Object.keys(n).length))return[];const a=jr(e);if(!a.length)return[];const i=Object.entries(n),r=[...a.map(Dr(i)).reduce($r(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>l[e]));return Ar(a)(r)})(i)))}),[c,i]),[d,{value:i,onChange:s}]},Fr=async(...e)=>(await Promise.allSettled(e.map((e=>j(H(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Ur=x((({className:e,isOpened:t,head:l,children:n,onClose:i})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&i&&i()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[i]),t?u("div",{className:w("fixed inset-0 bg-white text-l font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-6xl min-h-full",children:[p("div",{className:"sticky bg-white pt-xl top-0",children:[u(Br,{className:"absolute top-0 -right-6xl",onClick:i}),l]}),n]})}):null)));function Hr(e,t=!1){const[l,{setTrue:a,setFalse:r}]=Ve(t),[o,c]=n({id:e}),d=s(l);d.current||=l;const m=i((t=>{t.id===e?(c(t),a()):r()}),[e]),h=i((()=>{r(),b.fire("dialog",{type:"close"})}),[]);return Mr({onOpen:m,onClose:r}),{...o,isOpened:l,wasOpened:d.current,open:a,close:r,onClose:h}}const Xr=x((({className:e,topItems:t})=>{const l=Y({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(l).map(Wr)})})),Wr=(e,t)=>{const{text:l,items:n,href:a,target:i,onClick:r}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:i||"_self",onClick:r,children:l||`Раздел ${t}`}),n?.map(((e,t)=>u(Kr,{...e,basePath:o(a),index:t},String(t))))]},String(t))},Kr=x((({text:e,index:t,basePath:l,...n})=>{const a=Y({isRemote:!(!d.BASE_PATH||!l)&&!d.BASE_PATH.startsWith(l),basePath:l}),{href:i,target:r,onClick:s}=a(n);return u("a",{className:w("text-l font-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:i,target:r||"_self",onClick:s,children:e||`Раздел ${t}`})})),Gr=x((({className:e,value:t,autoFocus:l,onChange:n,onFocus:a})=>{const r=i((e=>{n&&n(e.target?.value||"")}),[n]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:u(Rt,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:l,onChange:r,onFocus:a})]})})),Jr="search",Yr=x((({topItems:e})=>{const t=Hr(Jr),l=r((()=>e?.map((e=>e.href||"/"))),[e]),[n,i]=Er({basePathList:l,initialQuery:t.message,wasOpened:t.wasOpened}),s=r((()=>qr(e)(n)),[e,n]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(Ur,{...t,head:u(Gr,{className:"my-5",autoFocus:!0,...i}),children:u(Xr,{topItems:s})})})),qr=e=>t=>e?.length&&t?.length?Vr(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:H("/",t)})))}))):[];const Zr=x((({className:e})=>{const[t,l]=n(""),a=i((()=>l("")),[]);Mr({onClose:a});const{open:r}=O(Jr),s=i((e=>{l(e),Qr(e)&&r(e)}),[]);return p("div",{className:e,children:[u(Gr,{value:t,onChange:s}),u(Br,{className:"absolute top-2 right-3 sm:hidden",onClick:a})]})})),Qr=e=>e&&e.length>=3,es=x((({className:e="",items:t,hasButton:l})=>p("div",{className:w("space-y-xl",e),children:[t?.length?t.map(ts):null,l?u(se,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),ts=(e,t)=>p("div",{className:"space-y-m",children:[u("div",{className:"",children:u(me,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{className:"space-y-m",children:e.items?.map(ls)})]},String(t)),ls=(e,t)=>p("div",{className:"space-y-2xs",children:[u("div",{children:ns(e.type,e.text)}),u("div",{className:"text-s font-light text-secondary-text",children:e.description})]},String(t)),ns=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${as(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},as=e=>e.replaceAll(/\D/g,""),is=x((({className:e="",index:t,text:l,...n})=>{const a=Y(),{href:i,target:r,onClick:s}=a(n);return u("a",{className:w("text-secondary-text",e),href:i,target:r,onClick:s,children:l||`Документ ${t}`})})),rs=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(is,{index:t,className:"text-l font-light max-w-[292px]",...e},String(t))))}):null}))),ss=x((({className:e="",index:t,...l})=>{const n=Y({isRemote:!0}),{href:a,target:i,text:r,onClick:s}=n(l);return u("a",{className:`text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),os=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(me,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(ss,{index:t,...e},String(t))))}):null]}))),cs="w-[204px]",ds=x((({className:e="",...t})=>{const l=t.options?.page?.fallback,n=Nr(d.SITEMAP||"sitemap",l),{documents:a,relatedEnterprises:i,contacts:r,socialMedia:s,mobileApps:o,logo:c}=Nr(d.FOOTER||"footer",l);return p(k,{tag:"footer",className:e,...t,children:[p("div",{className:"flex items-stretch gap-6xl xl:gap-3xl pb-3xl ",children:[u(Tr,{className:cs,logo:c}),u(Zr,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-6xl xl:gap-3xl",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden space-y-xl",children:[u(es,{items:r,hasButton:!0}),u(Ha,{media:s,children:"Соцсети"}),u(Ha,{media:o,children:"Мобильное приложение"})]}),u(Xr,{className:"flex-grow",topItems:n?.topItems})]}),u(rs,{className:"mt-24",links:i}),u(os,{links:a})]})})),ms=x((({className:e="",title:t,description:l,calendar:n,...a})=>p(k,{className:e,defaultPadding:"p-6xl",...a,children:[u(tl,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),n?hs(n):null]}))),hs=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>us(e,t)))}),u("div",{className:"flex w-full",children:l.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:ps(e)}),p("div",{className:"text-s font-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},us=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),ps=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(Rt,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),xs=864e5;function gs(e,t,l=globalThis?.localStorage){const n=i((async(...n)=>{const a=`async:${e}`,i=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<xs?t:void 0}(l.getItem(a));if(i)return i;const r=await t(...n);return l.setItem(a,JSON.stringify({data:r,timestamp:Date.now()})),r}),[e,t]);return $(e,n)}const fs=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},bs=e=>({href:t})=>U(E(t)?e.href:e.pathname).startsWith(U(t));const vs=x((({className:e,searchTerm:t,onSearch:l})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),ys="location",Ns=x((({currentLocation:e,onChangeLocation:t,foreignOffices:l})=>{const a=Hr(ys),[r,s]=n(""),o=Ss(function(){const{data:e}=$("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;for(const n of e){const e=t(n),a=l.get(e)||[];l.set(e,[...a,n])}return l})(o,ws),d=i((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(Ur,{...a,head:p("div",{children:[u(ks,{currentLocation:e,onChangeLocation:d}),u(vs,{onSearch:s,searchTerm:r,className:"mb-7"})]}),children:[r&&r.length>=3?u("div",{children:o.filter((({name:e})=>e&&zr(e.toLowerCase())(r.toLowerCase())>=.8)).map(Is(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(Cs(d))}),u(Ts,{foreignOffices:l})]})})),ws=e=>e.name?.charAt(0)||"",Ss=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),ks=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(me,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(me,{color:"text-primary-main",children:e.name})})]}):null)),Cs=e=>([t,l])=>p("div",{className:"break-inside-avoid mb-2xl w-[224px]",children:[u("div",{className:"mb-s",children:u(me,{size:"text-h6",children:t})}),l.map(Is(e))]},t),Is=e=>t=>u("div",{className:"mb-2xs",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Ts=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-2xs pt-2xs",children:[u("div",{className:"mb-m",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Bs,{...e},String(t))))})]}):null)),Bs=x((({icon:e,...t})=>{const l=Y(),{text:n,target:a,href:i,onClick:r}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(Rt,{pathPrefix:"/wcms-resources/",image:e}):null,n?u("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:n}):null]})})),Rs=x((({className:e="",active:t,flat:l,children:n,...a})=>{const i=Y({isRemote:!0}),{href:r,target:s,text:o,onClick:c}=i(a);return u("a",{className:w(Ms(t,l),e),href:r,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:Ps(t,l),children:o||n})})})),Ms=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),Ps=(e=!1,t=!1)=>w("font-sans text-s font-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Vs={default:"w-6 h-6",large:"w-12 h-12"},zs=x((({className:e,isRounded:t,buttonSize:l="default",isGrayBg:n=!1,disabled:a,ariaLabel:i,image:r,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",n?"p-3 rounded-full":"p-0 bg-inherit",n&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Vs[l]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":i,onClick:s,children:u(Rt,{image:r,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),$s=x((({className:e,version:t,locationName:l,officesLink:n})=>{const a="transparent"===t?"white":"black",{open:r}=O(ys),s=i((()=>r()),[]),{open:o}=O(Jr),c=i((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Rs,{flat:!0,href:"#",text:l,onClick:s}),n?u(Rs,{flat:!0,href:n,text:"Офисы и банкоматы"}):null,u(zs,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),_s=x((({className:e="",items:t,activeItem:l})=>{const a=Y(),[r,s]=n(!1),o=i((()=>s((e=>!e))),[]),c=ze(i((()=>s(!1)),[]));return p("div",{className:w(r?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(r?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",r?"":"hidden"),"aria-hidden":!r,children:t?.map(((e,t)=>{const{text:n,...i}=e;return u("a",{className:w("text-l font-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...a(i),children:n},e.href||String(t))}))})]})})),js=x((({className:e="",active:t,dataItemName:l,children:n,...a})=>{const i=Y(),{href:r,target:s,text:o,onClick:c}=i(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:r,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:Ds(t),children:o||n}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Ds=(e=!1)=>w("font-sans text-l font-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),As=x((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const r=v(i((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:r,className:n,children:u(js,{...a,children:l})})})),Ls=e=>globalThis[e];function Os(e,t){const[l,r]=n(),s=i((()=>r(Ls(e))),[e]);return a((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),r(void 0)}}if(!Ls(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const Es={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Fs=x((e=>{const[t,{setTrue:l}]=Ve();return t?u(Us,{...e}):Hs({...e,onClick:l})})),Us=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Os("chatbot",Es[e])})(e),Hs(t)))),Hs=({className:e,iconVersion:t,onClick:l})=>u(zs,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l,buttonSize:"large",isGrayBg:!0}),Xs={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},Ws=x((({version:e,internetBankUrl:t})=>t?u(se,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",Xs["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),Ks=x((({subItems:e=[],version:t,internetBankUrl:l})=>{const a="transparent"===t?"white":"black",i=(e=>(t=[])=>{const l=t?.filter(bs(e));return l?.length?El((e=>e.href?.length||0))(l):void 0})(J())(e),[o,c]=n(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=r((()=>e.map(((e,t)=>e=>{c(e?Gs(t):Js(t))}))),[e]);return p("nav",{className:"relative mt-s flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-s mt-xs",children:e.map(((e,t)=>u(As,{className:w("ml-3xl first:ml-0",o-1<t?"invisible":""),active:e===i,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(_s,{className:"relative w-auto z-40",items:m,activeItem:i}):null,d.CHAT_BOT?u(Fs,{className:"ml-9",iconVersion:a,chat:d.CHAT_BOT}):null,u(Ws,{version:t,internetBankUrl:l})]})})),Gs=e=>t=>Math.max(t,e+1),Js=e=>t=>Math.min(t,e),Ys={"bg-white":"primary",transparent:"transparent"},qs=x((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:r=Ys[e],...s})=>{const o=J(),{topItems:c,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g,internetBankUrl:f}=Nr(d.SITEMAP||"sitemap",s.options?.page?.fallback),b=c?.find((e=>bs(d.BASE_PATH?{pathname:d.BASE_PATH}:e))(o)),[v,y]=function(e="Москва"){const t=fs(),[l,r]=n(t?.region??{name:e}),{data:s}=gs("/api/v1/region",D);return a((()=>{r(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,i((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),r(e)}),[])]}(h);return p(k,{tag:"header",className:w("pt-3xl px-20",l&&b?.items?.length?"pb-m":"pb-lg",t),defaultPadding:"",version:r,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Tr,{className:"mr-3xl",bgColor:e,logo:m}),c?.map(((e,t)=>u(Rs,{active:e===b,...e},String(t)))),u($s,{version:r,className:"ml-auto",locationName:v.name,officesLink:g})]}),u("div",{className:w("mt-xl h-px bg-main-divider","transparent"===r?"opacity-30":"")}),l&&b?.items?.length?u(Ks,{subItems:b.items,version:r,internetBankUrl:f}):null]}),u(Yr,{topItems:c}),u(Ns,{currentLocation:v,foreignOffices:x,onChangeLocation:y})]})})),Zs={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Qs=x((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",isTheme:a=!1,...i})=>u(k,{className:w("relative","grid grid-cols-12",Zs[t],e),defaultPadding:l?"p-6xl":"",version:n,isTheme:a,...i,children:_n(i)})));Qs.childrenTypes={exclude:["HorizontalLayout"]};const eo=x((e=>{const{className:t,image:l,...n}=e;return u(k,{className:t,defaultPadding:"p-0",...n,children:u(Rt,{image:l})})})),to=x((({className:e="",cards:t=[],button:l})=>{const[a,r]=n(0),s=i((e=>r(e)),[]),o=t.length,[c,d]=gl({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?lo({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,yl({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(se,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function lo({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,i=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-6xl",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-6xl ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return p("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(Rt,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?no("страховая сумма",e.sum):null,e?.fee?no("страховой взнос",e.fee):null]}),ao(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function no(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[ot(2)(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function ao(e){return e?u(Rt,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const io=x((({className:e="",title:t,insuranceTabs:l=[],button:a,...r})=>{const[s,o]=n(0),c=i((e=>o(e)),[]);return p(k,{className:w("box-border overflow-hidden relative px-0 space-y-2xl",e),defaultPadding:"p-6xl",...r,children:[t?u(I,{className:"text-center",title:t,headingType:"h3"}):null,l?.length>1?u("div",{className:"p-xs bg-secondary-light w-fit mx-auto rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m font-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:ro({insuranceTabs:l,button:a})})]})})),ro=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(to,{button:t,cards:e},String(l)))):null};const so=e=>t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:`sep-${n}`},l):[l]),[]),oo={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},co={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},mo=x((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:a,investmentColumns:i,...r}=e,s=i?[...i]:[];return a&&s.unshift(a),u(k,{className:t,...r,children:p("div",{className:"container text-m font-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-3xl pr-lg text-white",children:[so(u("div",{className:"w-px h-4 bg-gray"}))(s.map(ho)),u("div",{className:"absolute right-3xl w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-xs mx-3xl"}),u("div",{className:"flex justify-between text-primary-text mt-s -mx-5xl",children:s.map(xo)})]}):null,l?.length?u(Ma,{className:"mt-9 max-w-[657px]",items:l,isDotted:n,listItemSize:"M"}):null]})})})),ho=(e,t,l)=>{const n=1===t,a=t===l.length-1;return u("div",{className:`${uo(n,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-2xs min-w-[290px]":""),children:e.cells.reverse().map(po)}):null},`column_${t}`)},uo=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-s",l.length&&!t?"pr-s pb-3xl":"pb-xl"].join(" "),po=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-xs ${co[l]} ${oo[n]} ${"XS"===l?"px-s":"px-5xl"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},xo=(e,t)=>u("div",{className:"flex-1 max-w-[180px] text-center px-xs last:pr-3xl",children:e.title},`title_${t}`),go=["байт","Кб","Мб","Гб","Тб","Пб"],fo=x((({icon:e,text:t,fileSize:l,...n})=>p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...n,children:[e,t?p(me,{size:"text-l",font:"font-light",children:[t,u(me,{color:"text-secondary-text",children:n?.href&&bo(vo(n.href),l)})]}):null]}))),bo=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),vo=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},yo={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},No=x((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const o=J();return p(k,{className:e,defaultPadding:"p-6xl",...s,children:[u(tl,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-5 sm:mt-8 flex flex-col gap-6",yo[r]),role:"list",children:a.map(wo(o,r,i))}):null]})})),wo=(e,t,l)=>(n,a)=>{const i="Attachment"===n?.docType?W(e)(n?.attachment?.src):n?.href,r="Attachment"===n?.docType?((e,t=2)=>{if(0===e)return"";const l=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,l)).toFixed(t))} ${go[l]}`})(n?.attachment?.fileSize||0):n?.fileSize;return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(fo,{...n,href:i,fileSize:r,icon:l?u(Rt,{className:"min-w-6 min-h-6",image:l,width:"24",height:"24"}):null})},String(a))},So=e=>e?u("div",{className:"mb-5 pt-3xs sm:mb-0 sm:pt-0",children:u(me,{size:"text-xl","font-weight":"light",children:e})}):null,ko=e=>e?.length?u(Ma,{items:e,className:"text-l font-light mb-xs last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Co=x((({className:e,padding:t,alignTitle:l="left",buttons:n=[],description:a,headingType:i="h4",image:r,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-m min-w-[120px]":"min-w-[92px]";return u(k,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:p(fa,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:c?u(I,{headingType:i,title:c,className:w("whitespace-pre-wrap",rl[l])}):null,buttons:Yt(n,{isVertical:n.length>4}),children:[So(a),p("div",{className:"flex flex-1 flex-wrap gap-m items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(Rt,{className:"w-fit",image:o})}):null,ko(s),r?.src?u(Rt,{image:r}):null]})]})})})),Io={},To=x((({className:e,filtrationSchema:t={},resetButton:l,...n})=>{const[a,{field:i,reset:r}]=B(Io);return p(k,{className:w(e),defaultPadding:"p-0",version:"transparent",...n,children:[_i({field:i,reset:r,filtrationSchema:t,resetButton:l}),u(Vi,{filtrationState:a,...n})]})}));To.childrenTypes=["ProductTile"],To.childSchema=e=>e?.filtrationSchema||{};const Bo=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function Ro(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),i=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(i),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Mo={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},Po=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Mo).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Vo={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},zo=(e,t,l)=>p("div",{className:`${Object.values(Vo).join(" ")} bg-white py-s pl-5xl pr-m w-full`,children:[u(_e,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),$o={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},_o=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values($o).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(_e,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),jo={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},Do=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(jo).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(_e,{name:l,width:"20",height:"16"})})})),Ao={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},Lo=x((({points:e,className:t="",zoom:l=5,showSearchField:i=!1})=>{const r=s(null),o=Os("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${d.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[c,m]=n(),[h,x]=n(Uo(Bo)),g=Oo(e);if(a((()=>{r?.current||o?.ready((()=>{r.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),Ro(o,r.current,h)}))}),[o,r,h]),a((()=>{if(r.current&&h&&o){const e=h.length<1?Uo(Bo):h;Ro(o,r.current,e)}}),[r,h,o]),!o)return null;const f=c?"z-[100000]":"z-10";return p("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${f}`,children:i?zo(Bo,0,(e=>{if(e){const t=Uo(e);x(t)}})):Po(g)}),u("div",{className:`${Object.values(Ao).join(" ")} ${f} right-2 top-4 bg-white`,onClick:()=>{const e=r.current.container;c?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(_e,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${f}`,children:[u(Do,{yandexMaps:r}),u(Do,{yandexMaps:r,direction:"out"})]}),_o(r.current,o,`right-2 top-80 ${f}`)]})})),Oo=e=>[Fo(Eo(e,0)),Fo(Eo(e,1))],Eo=(e,t)=>e.map((e=>e[t])),Fo=e=>e.reduce(((e,t)=>e+t))/e.length,Uo=e=>e?e.map((e=>e.coords)):null,Ho={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null},Xo=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Wo=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Ko=({icon:e,title:t,distance:l,time:n},a)=>p("div",{className:"flex mr-4",children:[u(_e,{name:e,width:"16",height:"16",className:"mr-1"}),t?p(me,{size:"text-m",children:[t," "]}):null,p(me,{size:"text-m",font:"font-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${a}`),Go=({title:e,status:t,workTime:l,lunchHour:n,description:a},i)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m font-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&n?Jo(n):null,a?u("div",{className:"pb-1 text-s font-light text-secondary-text",children:a}):null]},`day${i}`),Jo=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m font-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m font-light text-primary-main",children:u("div",{children:e})}),Yo=x((({className:e=""})=>{const t=Ho,{name:l,address:n,gpsLatitude:a,gpsLongitude:i,workSchedule:r}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=r,{workTime:g,lunchHour:f,workTimeSaturday:b,lunchHourSaturday:v}=r,y=a&&i?[a,i]:null,N=[{title:"Понедельник",status:s,workTime:g,lunchHour:f},{title:"Вторник",status:o,workTime:g,lunchHour:f},{title:"Среда",status:c,workTime:g,lunchHour:f},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:f},{title:"Суббота",status:h,workTime:b,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),S=w>0?N[w-1]:N[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),Wo(S)]}),p("div",{className:"flex text-l font-light pt-4",children:[u(_e,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),n]}),u("div",{className:"flex pt-4",children:Xo.map(Ko)})]}),p("div",{className:"flex justify-between pt-3xl",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:y?u(Lo,{points:[y],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:N.map(Go)})]})]})})),qo=x((({className:e="",title:t,servicesList:l,...n})=>p(k,{className:w("flex flex-col",e),...n,children:[t?u(I,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?u("ul",{className:"list-none m-0 p-0",children:l.map(Zo)}):null]}))),Zo=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(Rt,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u(me,{size:"text-l",font:"font-light",children:e.label}):null]},`list_item_${String(t)}`),Qo=x((({text:e,size:t,align:l,font:n,children:a,...i})=>u(k,{defaultPadding:"p-0",...i,children:u(de,{size:t,align:l,font:n,children:e||a})}))),ec=(e=[])=>e?.length?_r(e)/e.length:0,tc=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(Rt,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,lc=(e,t)=>e?u(de,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,nc=(e,t)=>e?u(me,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,ac=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(Ka,{...e},`rte-${t}`):["label"in e?nc(e.label,t):null,"description"in e?lc(e.description,t):null],ic=x((({className:e,benefitsVersion:t,...l})=>p("div",{className:w("flex gap-m","description"in l&&l.description?"items-start":"items-center",e),children:["icon"in l?tc(l.icon,t):null,u("div",{children:ac(l)})]}))),rc=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),sc=e=>{return((t=e.map(rc))?.length?Math.sqrt(Math.abs(ec(t.map((e=>e**2)))-ec(t)**2)):0)>16;var t},oc=x((({className:e,benefitsVersion:t="normal",benefits:l})=>l?.length?u("div",{className:w("flex gap-x-m gap-y-s",sc(l)?"flex-col":"flex-wrap",e),children:l.map(((e,l)=>u(ic,{benefitsVersion:t,...e},String(l))))}):null)),cc=x((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(ac)}):null)),dc=x((({isTabularBenefits:e,...t})=>u(e?cc:oc,{...t}))),mc=x((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(hc)}):null)),hc=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(me,{size:"text-m",font:"font-light",children:e})},String(t)),uc=x((({className:e,padding:t,defaultPadding:l,title:n,description:a,headlineVersion:i="L",align:r="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:x=!0,listItemSize:g,tags:f,buttons:b,image:v,imageOptions:{imageAlign:y="end",directionRight:N=!0,isBackground:w}={},children:S})=>{const k=v?.src?u(Rt,{image:v}):null,C=u(tl,{title:n,description:a,headlineVersion:i,align:r,isPadding:!1});return u(fa,{className:e,padding:t,defaultPadding:l,...s?{insetTitle:C}:{title:C},...w?{backImage:k}:pc(k,N),imageAlign:y,buttons:Yt(b),children:p("div",{className:"flex flex-col gap-xl",children:[u(dc,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(Ka,{__html:m}):null,h?.length?u(Ma,{items:h,isDotted:x,listItemSize:g}):null,S,f?.length?u(mc,{tags:f}):null]})})})),pc=(e,t)=>t?{rightImage:e}:{leftImage:e},xc=(e,t)=>e||t?p("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",children:[Number(e)>0?gc("Страховая сумма:",e):null,Number(t)>0?gc("Ежемесячный лимит:",t):null]}):null,gc=(e,t=0)=>p("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(me,{font:"font-light",size:"text-l",children:e}),p(me,{size:"text-h6",color:"text-primary-text",children:[ot(2)(t)," ₽"]})]}),fc=x((({className:e,padding:t,headlineVersion:l="M",align:n="text-center",sum:a,monthLimit:i,imageOptions:r,...s})=>u(k,{className:e,padding:"p-0",...s,children:u(uc,{className:"h-full",defaultPadding:"p-6xl",padding:t,headlineVersion:l,align:n,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...r},...s,children:xc(Number(a),Number(i))})}))),bc=x((({className:e,title:t,description:l="Блок в разработке...",...n})=>p(k,{className:w("box-border",e),...n,children:[u(tl,{className:"max-w-[600px]",title:t,description:l,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-xl min-w-[80%]",children:vc()})]}))),vc=(e=3)=>Nc(100,e).map((e=>Math.floor(e))).map(yc),yc=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-light"},String(t)),Nc=(e,t)=>[e].concat(t>0?Nc(e/1.618,t-1):[]);function wc({text:e,href:t,target:l,icon:n},a){const i="primary"===a?"white":"black",r={text:e,href:t,target:l,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(se,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:a,rounded:!0,...r,children:u(Rt,{className:"w-4 h-4",image:{...n,icon:n?.icon||"ArrowLeftIcon",iconVersion:n?.iconVersion||i}})}),u(se,{version:"link",...r})]})}const Sc=x((({className:e,padding:t,backwardButton:l,...n})=>p(k,{className:w("overflow-hidden flex flex-col gap-3xl box-border",e),defaultPadding:"p-6xl",padding:t,...n,children:[l?.text?wc(l,n.version&&"primary"!==n.version?"white":"primary"):null,u(uc,{className:"grow h-full",...n})]}))),kc=x((({className:e="",padding:t,slides:l=[],...a})=>{const[i,r]=n(0);return p(k,{className:w("box-border overflow-hidden",e),defaultPadding:"py-6xl",padding:t,...a,children:[u("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*i}%)`},role:"list",children:l.map((({productBlock:e},t)=>u("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:u(uc,{className:"pl-6xl h-full",headlineVersion:"XXL",...e,...a})},String(t))))}),u("div",{className:"h-28 px-xs mt-m -mb-m flex gap-xs box-border",children:l.map(Cc({activeSlideIndex:i,onClick:r}))})]})})),Cc=({activeSlideIndex:e,onClick:t})=>({nav:l},n)=>{const a=n===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-[290px] ease-in duration-300 bg-white/10 px-6 py-5 hover:py-6 backdrop-blur",r=a?"text-primary-text text-h6 py-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",s=a?"text-secondary-text text-l font-light":"text-secondary-text text-m font-light group-data-secondary:text-white/80";return p("button",{type:"button",onClick:()=>t(n),"aria-label":l?.title,className:w("relative px-6 box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50",i),children:[u("div",{className:r,children:l?.title}),u("div",{className:s,children:l?.description})]},String(n))},Ic=x((({className:e,padding:t,headlineVersion:l="S",isTabularBenefits:n=!0,additionalDescription:a,imageOptions:i,...r})=>u(k,{className:e,padding:"p-0",...r,children:u(uc,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:l,isTabularBenefits:n,imageOptions:{isBackground:!0,...i},...r,children:a?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:a}):null})}))),Tc=x((({className:e,title:t="Акции и спецпредложения",description:l,headlineVersion:n="S",date:a,buttons:i=[],...r})=>u(k,{className:w("box-border",e),...r,children:p(fa,{className:"h-full",title:t?u(tl,{title:t,headlineVersion:n,align:"text-left",isPadding:!1}):null,buttons:Yt(i),children:[a?u("div",{className:"text-s mb-xs",children:Bc(a)}):null,u("div",{className:"text-l",children:l})]})})));function Bc(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Rc=x((({address:e,email:t,telephone:l,button:n,className:a="",__html:i,icon:r,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left",a),version:o,...c,children:[p("div",{className:"w-full sm:flex sm:justify-between sm:flex-row-reverse",children:[Mc(r),s?u(I,{headingType:"h4",as:"h3",className:"mb-3 sm:mb-6",title:s}):null]}),p("div",{className:"w-full",children:[i?Pc(i):null,Vc("Адрес",e,"GeolocationIcon"),Vc("Телефон",l,"PhoneIcon"),Vc("E-mail",t,"MailIcon"),n?.text?Yt([n],{className:"mb-6"}):null]})]}))),Mc=e=>p("div",{className:"w-10 h-7 sm:w-24 sm:h-16 mb-3 sm:mb-0 sm:mt-3",children:[e?.src?u(Rt,{image:e}):null,e?.icon?u(Rt,{image:e}):null]}),Pc=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(Ka,{__html:e})}),Vc=(e,t,l)=>p("div",{className:"flex mb-4",children:[u(_e,{className:"pr-4",iconVersion:"black",name:l,width:"24",height:"24"}),p("div",{className:"flex flex-col first:pb-1",children:[u(me,{size:"text-m",font:"font-light",children:e}),t?u(me,{size:"text-h6",color:"text-green",children:t}):null]})]}),zc=x((e=>{const{__html:t,richVersion:l,...n}=e;return u(k,{defaultPadding:"p-0",...n,children:u(Ka,{__html:t,richVersion:l})})})),$c=e=>e?"MinusIcon":"PlusIcon",_c=x((({className:e="",label:t="Развернуть",labelIcon:l,labelIconBgVersion:n,isExpanded:a,isFoldButtonOnTop:i=!0,version:r="primary",...s})=>u(k,{className:w("w-full","border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(Ja,{isFoldButtonOnTop:i,unfoldedByDefault:a,renderFoldableSection:({isUnfolded:e})=>u(Ya,{className:w("gap-5 [&>*]:p-0","grid grid-cols-12 [&>*]:pb-4"),isUnfolded:e,children:_n(s)}),renderFoldButton:({isUnfolded:e,onToggle:a})=>jc({version:r,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:e,onToggle:a})})})));_c.childrenTypes={exclude:["RollupItem"]};const jc=({version:e,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:a,onToggle:i})=>{const r=t||(a?"Скрыть":"Развернуть");return"primary"===e?Dc({label:r,labelIcon:l,labelIconBgVersion:n,icon:$c(a),onToggle:i}):u(Bi,{label:r,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:i})},Dc=({label:e,labelIconBgVersion:t,icon:l,onToggle:n,labelIcon:a})=>p("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",a?.icon?"py-xs":"py-lg"),onClick:n,children:[p("div",{className:"flex items-center group-hover/button:text-primary-main gap-s",children:[null,e?u(me,{size:"text-h6",font:"font-normal",children:e}):null]}),l?u(_e,{name:l,iconVersion:"color",width:"24",height:"24"}):null]}),Ac=x((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return u(Ae,{options:s,label:r,placeholder:a||n,onChange:e=>i(e.key),value:o})})),Lc=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:i})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(Ac,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(Ac,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Oc=x((({name:e,text:t,value:l,checked:n,onChange:a,className:i})=>u("div",{className:i,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Ec=x((()=>{const[e,t]=n("option2"),l=i((e=>t(e)),[]);return p("div",{children:[u(Oc,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),u(Oc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Fc=["От 1 дня","До 365 дней"],Uc=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m font-light mb-1",children:"Срок аренды"}),u(ut,{min:1,max:365,value:e,items:Fc,onChange:t})]}))),Hc=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:i})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(Ac,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(Ac,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Xc=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(Lc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Wc(c)}),u(Uc,{days:a,setDays:e=>c({days:e})}),u(Hc,{caseVolumes:o,selectedCaseVolume:i,onSelectedCaseVolume:Kc(c),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(Ec,{}),u(se,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Wc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Kc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Gc=x((({days:e,tariffs:t=[]})=>{const l=Yc(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[Jc("Аренда за",e,"mr-11"),Jc("Цена",l+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(Rt,{image:{icon:"PackA4Icon"},width:"290",height:"257"}),p("span",{className:"text-s font-light text-white opacity-80 mt-xs inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),Jc=(e,t,l="")=>p("div",{className:l,children:[u("div",{className:"text-m font-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),Yc=(e,t)=>{const l=qc(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},qc=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},Zc=(e,t)=>e.find((e=>e.branchCode===t)),Qc=x((e=>{const{regions:t,data:l,branches:n,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,i]);const s=Zc(n,l.selectedBranch),o=ed(s?.safeBoxCaseVolumes),c=td(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=ld(c,l.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(Xc,{...l,regions:t,onClick:r,branches:n,caseVolumes:o,safeBoxCases:c,onChange:i}),u(Gc,{days:l.days,tariffs:d})]})})),ed=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],td=(e,t)=>e?.find((e=>e.volume===t)),ld=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,nd=[];const ad=async e=>await j(e,{method:"GET"})||nd,id=x((({title:e,footnote:t,className:l="",...a})=>{const[r,s]=n(!1),o=i((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=L(),h=rd(c.selectedRegion,m),x=function(e){const{data:t}=$(e?`/api/v1/safeboxes?regionCode=${e}`:null,ad);return t||nd}(h),g=i((e=>d((t=>({...t,...e})))),[d]),f=(b=Zc(x,c.selectedBranch)||x,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return p(k,{className:l,defaultPadding:"",...a,children:[p("div",{className:"p-4xl",children:[e?u(I,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,u(Qc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u(de,{size:"text-s",font:"font-light",children:t}):null]}),f.length&&r?u(Lo,{points:f,className:"h-[640px]"}):null]})})),rd=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,sd=e=>Boolean(e?.icon||e?.src),od=({styleMap:e,isMainButton:t,version:l})=>(n,a,i)=>{const{label:r,description:s,button:o,items:c,isDotted:d}=n;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden space-y-3xl",cd(i.length)),children:[p("div",{className:"text-center space-y-xs",children:[r?u("div",{children:u(me,{size:"text-h6",children:r})}):null,p("div",{className:"flex flex-col items-center gap-3xs",children:[s?u("div",{className:e.description,children:s}):null,u(Ma,{className:e.description,items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(se,{className:"box-border py-s h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(a))},cd=e=>e<5?"w-[276px]":"w-[200px]",dd={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},md=x((({className:e="",showLines:t=!0,steps:l=[],buttons:n,size:a="normal",version:i="primary",stepVersion:r="gray",title:s,...o})=>{const c=l.length>3,d=dd,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-24":"px-16")(l.length),x=Boolean(n?.every((e=>e?.text)));return p(k,{className:w("box-border flex flex-col items-center overflow-hidden gap-y-3xl",e),defaultPadding:"p-6xl",version:i,...o,children:[s?u(I,{headingType:"h4",className:"text-center",title:s}):null,l?.length?p("div",{className:"box-border space-y-lg",children:[u("div",{className:w("flex items-center",h),children:so(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(hd(d,a,r)))}),u("div",{className:w("flex justify-between",c?"gap-x-3":"gap-x-20"),children:l.map((g={styleMap:d,isMainButton:x,version:i},(e,t,l)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return od(g)(e,t,l);case"rte":return u("div",{className:w("text-center",cd(l.length)),children:u(Ka,{__html:e.__html})},String(t));default:return null}}))})]}):null,Yt(n)]});var g})),hd=(e,t,l)=>({icon:n},a)=>{const i="secondary"===l?"white":"color";return u(k,{defaultPadding:"",className:`${ud(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:l,children:sd(n)?u(Rt,{image:{...n,iconVersion:n.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===l?e.iconText:pd(l)),children:a+1})},String(a))},ud=e=>"normal"===e?"h-24 w-24":"h-16 w-16",pd=e=>"secondary"===e?"group-data-primary:text-white":"text-secondary-text",xd=x((({className:e,version:t,gap:l=14,padding:n=16,showDots:a=!0,minHeight:i,children:r,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(r)?r.length:0,[d,m]=Hn({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(Ln,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:l,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:i,children:r}),a?u(qn,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),gd=x((({listType:e,showDots:t,options:l,version:n,...a})=>u(k,{version:n,defaultPadding:"p-0",...a,children:u(xd,{listType:e,showDots:t,version:n,children:_n({...a,options:l})})})));gd.childrenTypes={exclude:["SwipeListControlBlock"]};const fd="h-12 flex-1 flex items-center justify-center cursor-pointer",bd="font-sans text-m text-center",vd="text-secondary-text sm:group-hover/btn:text-primary-main",yd={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${fd} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${fd} group/btn bg-white`},centered:{active:`px-4 rounded-md ${fd} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${fd} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${fd} bg-primary-main text-white whitespace-nowrap`,default:`${fd} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${bd} flex items-center h-full border-0 border-b-2`,default:`${bd} ${vd}`},centered:{active:`${bd} text-white`,default:`${bd} ${vd}`},wideScreen:{active:`${bd} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${bd} ${vd} px-2.5 bg-white`}}},Nd=(e,t,l)=>{const n=t?"active":"default";return yd[e][l||"wideScreen"][n]},wd=x((e=>{const{tab:t,currentTab:l,onClick:n,tabsMode:a}=e,i="link"===l?.type&&l.href===t.href,r=Y()(t);return u("div",{className:Nd("block",i,a),role:"tab","aria-selected":i,onClick:()=>n(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",Nd("text",i,a)),target:t.target,href:r.href,onClick:e=>{r.onClick(e),n(t)},children:u("span",{children:t.text})})})})),Sd=(e,t,l)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-xs flex justify-center items-center",l&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),kd=({page:e,showCounter:t,...l})=>(n,a)=>{const i=n.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n,tabsMode:a})=>(i,r)=>{const s=t===i,o=i.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(i.ref))).length:0;return u("div",{className:Nd("block",s,a),role:"tab","aria-selected":s,onClick:()=>n(i),children:p("div",{className:w("flex flex-1 items-center justify-center h-full",Nd("text",s,a)),children:[u("span",{children:i.title}),l&&o?Sd(a,o,s):null]})},`group-${String(r)}`)})({page:e,showCounter:t,...l})(n,a);case"link":return u(wd,{tab:n,...l},String(a));default:Rr(i)}return null},Cd=x((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(kd({...t}))}))),Id=x((e=>{const{tabs:t,...l}=e,[n,a]=Hn({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(Ln,{containerRef:n,snapAlign:"snap-start",onVisibleIndicesChange:a.handleVisibleIndicesChange,children:t?.map(kd({...l}))})}),a.canScrollLeft?u(bl,{className:"absolute z-40 top-0 left-6",onClick:a.scrollLeft}):null,a.canScrollRight?u(vl,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:a.scrollRight}):null]})})),Td=x((e=>{const{className:t="",isSticky:l,tabs:r,...s}=e,[o,c]=n(r?r[0]:void 0);a((()=>{r&&r[0]&&Rd(r[0])}),[]),a((()=>{"group"===o?.type&&b.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=i((e=>{Rd(e),c(e)}),[]);return u(k,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",l?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:Bd({tabs:r,onClick:d,currentTab:o,...s})})})),Bd=({tabsMode:e,tabs:t,...l})=>{switch(e){case"wideScreen":return t?.map(kd({tabsMode:e,...l}));case"centered":return u(Cd,{tabs:t,tabsMode:e,...l});case"scrollable":return u(Id,{tabs:t,tabsMode:e,...l})}return null},Rd=e=>{"group"===e.type&&b.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&b.fire("tab",{type:e.type,label:e.href})},Md=x((({isOpen:e,onClick:t})=>p(se,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать"}),u(_e,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-s",iconVersion:"white",width:"20",height:"20"})]}))),Pd={Buttons:({buttons:e})=>Yt(e),Img:({image:e})=>e?.src?u(Rt,{image:e}):null,List:({isDotted:e,...t})=>u(Ma,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l font-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:a})=>e?u(Md,{isOpen:a,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},Vd=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:i,openTableInnerIdx:r,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);a((()=>{t===r&&i||m(!0)}),[i,r]);return p("div",{className:"Table"===o?.tableCellType?"ml-5xl":"first:pt-lg last:pb-lg pl-5xl",children:[c>0?u("div",{className:"h-5"}):null,zd({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},zd=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in Pd))return null;return u(Pd[l],{...t,...n})},$d=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Vd({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})):null}))),_d=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=gl({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(jd(l)),yl({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),jd=e=>(t,l)=>{if(!t?.length)return null;const[n,...a]=t,i=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),r=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?u("div",{className:"text-xl font-light w-[214px] py-lg ",children:n.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:r,style:{transform:`translateX(-${i}px)`},children:a?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl font-light",children:t.data}):null,t?.cols?Dd(t.cols,e):null]},`row${l}`)))})})]},String(l))},Dd=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-20 text-h6 mr-lg first:ml-3xl",children:e},String(t))))}):null,Ad=x((({activeTabIndex:e,items:t})=>{const[l,a]=n({}),r=i((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-center justify-center cursor-pointer relative",onClick:()=>r(a),children:[u(me,{size:"text-xl",font:"font-light",children:t.title}),u(Rt,{image:{icon:l[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:u("div",{className:"relative",children:u(_d,{rows:t.rowsData})})})]},a)}))})})),Ld=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>p("div",{className:"flex justify-between w-full px-s",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl font-light px-m py-s cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?u(se,{href:t,version:"secondary",target:"_blank",appendLeft:u(_e,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function Od(e){const t=await fetch(e);return await t.json()}const Ed=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:a}=function(e){const{data:t}=$(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Od);return t||{}}(e),[r,s]=n(0),o=i((e=>s(e)),[]),c=a?.[r]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Ld,{currencies:d,activeTabIndex:r,setActiveTabIndex:o,linkToPDF:t}),u(Ad,{activeTabIndex:r,items:c}),u(Md,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Md,{onClick:l,isOpen:!0})]})})),Fd=x((({children:e,tableInner:t,onHideContentClick:l})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(Ed,{...t,onClick:l})}):null]}))),Ud=x((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...r})=>{const[s,o]=n(void 0),c=i((e=>o(e)),[]),[d,m]=n(void 0),h=i((e=>m(e)),[]);return p(Fd,{onHideContentClick:()=>o(void 0),tableInner:s,...r,children:[u("div",{className:"text-s py-lg w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(Rt,{className:"mr-m max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m font-light",children:e?.title}):null]})}),t?.length?u(ci,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u($d,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...r},String(t))))}):null]})})),Hd=x((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:i=0,...r})=>{const s=a?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=gl({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(Ud,{row:e,activeIndex:d,rowIdx:t,...r},String(t)))),[x,g]=i>0?[h.slice(0,-i),h.slice(-i)]:[h,[]];return p(k,{className:w("overflow-hidden relative space-y-xl",e),defaultPadding:w("p-6xl",c>1?"pr-0":""),...r,children:[u(tl,{title:t,description:l,headlineVersion:"M",isPadding:!1}),i>0?u(Ja,{renderFoldableSection:({isUnfolded:e})=>p(Xd,{controls:m,children:[x,u(Ya,{isUnfolded:e,children:g})]}),renderFoldButton:Ri}):u(Xd,{controls:m,children:h})]})})),Xd=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,yl({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Wd=x((({className:e="",title:t,description:l,iconVersion:n,image:a,__html:i,items:r=[],...s})=>p(k,{className:w("flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?u("div",{className:"mt-1",children:Kd()}):null,"big"===n?Gd(a):null,p("div",{className:"flex flex-col w-fit gap-1 sm:gap-2",children:[t?u(me,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,l?Jd(l):null,r?.length?Yd(r,!0):null,i?u(Ka,{__html:i}):null]})]}))),Kd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Gd=e=>e?.src?u(Rt,{className:"h-fit flex-shrink-0",image:e}):null,Jd=e=>u(de,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Yd=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(me,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),qd=x((({className:e,padding:t,headlineVersion:l="S",listItemSize:n="M",...a})=>u(k,{className:e,padding:"p-0",...a,children:u(uc,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:l,listItemSize:n,...a})}))),Zd={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},Qd=x((({className:e="",gap:t="",align:l="stretch",isPadding:n=!1,isInnerPadding:a=!0,version:i="transparent",isTheme:r=!1,...s})=>{const o=a?"":"!p-0";return u(k,{className:w("relative","flex flex-col [&>*]:max-w-full",Zs[t],l&&Zd[l],e),defaultPadding:n?"p-6xl":"",version:i,isTheme:r,...s,children:_n({...s,renderProps:(e,t)=>Vn(e,t,{className:o})})})}));Qd.childrenTypes=[];const em=e=>ra(e)<10?"py-6 px-11":"py-12 px-32",tm=x((({className:e,title:t,url:l,previewImg:n,...a})=>{const i=J();return p(k,{className:e,defaultPadding:em(e),...a,children:[u(tl,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:W(i)(n?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:W(i)(l)})}):null]})})),lm={ApplicationForm:Ft,BenefitsBlock:Xt,Bonus:ll,BonusBenefitsBlock:ml,BusinessBlock:pl,ButtonsBlock:xl,Calculator:wn,CardTransfer:Rn,Carousel:Qn,CarouselBankHistoryCard:la,CarouselCard:da,CarouselCatalogCard:ha,CarouselEventCard:xa,CarouselInvestmentCard:ya,CarouselLinks:ka,CarouselProductCard:Pa,CarouselProgramsCard:Da,CarouselRecommendationCard:Xa,CarouselRichTextCard:Ga,CarouselTariffsCard:Qa,ComparisonTable:yi,ContactsBlock:wi,DepositFiltration:Li,ErrorBlock:Ei,ExchangeRateTile:br,Footer:ds,GracePeriod:ms,Header:qs,Headline:tl,HorizontalLayout:Qs,ImgBlock:eo,InsuranceAmountBlock:io,InvestmentInfo:mo,LinkDocs:No,MobileAppTile:Co,MortgageFiltration:To,OfficeMap:Yo,OfficeServicesBlock:qo,ParagraphBlock:Qo,PictureText:fc,Placeholder:bc,ProductBlock:Sc,ProductGallery:kc,ProductTile:Ic,PromoTile:Tc,RepresentativeOfficeInfo:Rc,RichTextBlock:zc,RollupItem:_c,SafeDepositRental:id,StepsBlock:md,SwipeListControlBlock:gd,Tabs:Td,TariffsTable:Hd,TextBlock:Wd,Tile:qd,VerticalLayout:Qd,Video:tm,ExchangeRateOffice:Ji};const nm=["Header","Footer"],am=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function im(e=globalThis){const t=s(new Map);a((()=>N.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),a((()=>{const l=((e,t=600)=>{let l;const n=(...a)=>{n.dispose(),l=setTimeout((()=>{e(...a)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!nm.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?Ul(am)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const rm="cookie",sm=x((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:l,open:n,close:a}=Hr(rm);Pr((()=>{globalThis.localStorage?.getItem(rm)||n()}),[],3e3);const r=i((()=>{globalThis.localStorage?.setItem(rm,"true"),a()}),[a]);return l?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"sm:flex-1",children:p(de,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(pa,{isRemote:!0,className:w(om(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(pa,{isRemote:!0,className:w(om(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"ml-3 sm:ml-0 w-24 flex justify-end",children:u(Br,{className:"bg-main-gray rounded-md",onClick:r})})]})}):null})),om=e=>["inline mx-1",e?"text-green-dark":""],cm=h();const dm=x((({className:e,onClick:t,ariaLabel:l})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:mm()}))),mm=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},hm=x((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return a((()=>{(async()=>{const[t]=await cm.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:i((async()=>{l(await cm.like(e))}),[e]),dislike:i((async()=>{l(await cm.dislike(e))}),[e])}}(J().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(dm,{onClick:G(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(dm,{onClick:G(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),um=x((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:a={}}=e,{style:i,blocks:r,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:l,blockDecorator:n,parent:a};im();const[m,{setTrue:h,setFalse:x}]=Ve();return Mr({onOpen:h,onClose:x}),p("section",{className:w("relative",i,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:$n(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[$n(r,d),s?.footer?$n(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(hm,{className:"rounded-tl-3xl sticky bottom-0 pointer-events-auto"})}):null,u(sm,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));um.childrenTypes=[],um.slots=()=>["header","footer"];e.Blocks=lm,e.ContentPage=um,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=G,e.joinList=so,e.packageVersion="0.12.11",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=X,e.useRouter=J,Object.defineProperty(e,"__esModule",{value:!0})}));