@redneckz/wildless-cms-uni-blocks 0.7.1 → 0.7.2
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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +282 -488
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BaseTile/BaseTile.d.ts +1 -4
- package/bundle/components/BaseTile/BaseTileProps.d.ts +3 -4
- package/bundle/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/bundle/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +2 -4
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -3
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -2
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/bundle/components/Footer/MediaButton.d.ts +2 -2
- package/bundle/components/Footer/SocialMedia.d.ts +1 -3
- package/bundle/components/Footer/SocialMedia.mobile.d.ts +0 -2
- package/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
- package/bundle/components/Gallery/GalleryInner.d.ts +1 -1
- package/bundle/components/Header/DropdownMenu.d.ts +0 -2
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +2 -2
- package/bundle/components/Header/HeaderSubMenu.d.ts +0 -2
- package/bundle/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/bundle/components/Headline/HeadlineContent.d.ts +0 -2
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +0 -2
- package/bundle/components/HorizontalLayout/gapStyles.d.ts +2 -0
- package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +5 -2
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +1 -0
- package/bundle/components/ProductTile/renderAdditionalDescription.d.ts +1 -2
- package/bundle/components/ProductTile/renderBenefit.d.ts +1 -2
- package/bundle/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +0 -2
- package/bundle/components/Tabs/tabItemClasses.d.ts +2 -2
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/bundle/components/Tile/Tile.d.ts +0 -1
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -7
- package/bundle/components/Video/getPaddings.d.ts +1 -1
- package/bundle/icons/IconName.d.ts +6 -4
- package/bundle/model/BlockVersion.d.ts +6 -20
- package/bundle/model/ButtonVersion.d.ts +3 -3
- package/bundle/model/JSXBlock.d.ts +2 -0
- package/bundle/ui-kit/BlockWrapper.d.ts +2 -0
- package/bundle/ui-kit/Button/renderButtonsSection.d.ts +9 -0
- package/bundle/ui-kit/Foldable/Foldable.d.ts +1 -0
- package/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +1 -1
- package/bundle/ui-kit/List/ListItem.d.ts +1 -2
- package/bundle/ui-kit/List/ListProps.d.ts +0 -6
- package/bundle/ui-kit/Text/TextProps.d.ts +2 -1
- package/bundle/ui-kit/TopItem/TopItem.d.ts +0 -2
- package/bundle/utils/getColSpan.d.ts +1 -1
- package/bundle/utils/style.d.ts +3 -1
- package/cosmos-static/icons/YoutubeIcon.svg +1 -0
- package/dist/BlockRenderer/renderBlock.js +4 -3
- package/dist/BlockRenderer/renderBlock.js.map +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +1 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.d.ts +1 -4
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +3 -4
- package/dist/components/BenefitsBlock/BenefitsBlock.js +5 -19
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +5 -7
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/ButtonBlock/ButtonBlock.js +2 -5
- package/dist/components/ButtonBlock/ButtonBlock.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +2 -2
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +1 -1
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +2 -2
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +2 -2
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +5 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/dist/components/CarouselCard/CarouselCard.js +2 -2
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +2 -4
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +3 -3
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +6 -9
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +3 -3
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +8 -19
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -3
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +7 -11
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -4
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +1 -1
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +2 -2
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +3 -4
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/MediaButton.d.ts +2 -2
- package/dist/components/Footer/MediaButton.js +12 -13
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +1 -3
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/SocialMedia.mobile.d.ts +0 -2
- package/dist/components/Footer/SocialMedia.mobile.js +1 -1
- package/dist/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/dist/components/Gallery/Gallery.js +1 -1
- package/dist/components/Gallery/Gallery.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +6 -7
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +8 -11
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.d.ts +1 -1
- package/dist/components/Gallery/GalleryContainer.js +5 -4
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.d.ts +1 -1
- package/dist/components/Gallery/GalleryInner.js +5 -5
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Header/DropdownMenu.d.ts +0 -2
- package/dist/components/Header/DropdownMenu.js +4 -7
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +6 -6
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +7 -2
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +2 -2
- package/dist/components/Header/HeaderSecondaryMenu.js +7 -18
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.d.ts +0 -2
- package/dist/components/Header/HeaderSubMenu.js +2 -2
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/Headline.js +4 -5
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +0 -2
- package/dist/components/HorizontalLayout/HorizontalLayout.js +3 -13
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +0 -2
- package/dist/components/HorizontalLayout/gapStyles.d.ts +2 -0
- package/dist/components/HorizontalLayout/gapStyles.js +12 -0
- package/dist/components/HorizontalLayout/gapStyles.js.map +1 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +2 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsList.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/LinkList/LinkList.js +1 -1
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MiniGallery/MiniGallery.js +1 -1
- package/dist/components/MiniGallery/MiniGallery.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +7 -11
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/ParagraphBlock/ParagraphBlock.js +1 -4
- package/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -1
- package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +5 -2
- package/dist/components/PictureText/PictureText.js +1 -2
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +2 -1
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +3 -7
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js +3 -3
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +4 -3
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +5 -9
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +7 -20
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -0
- package/dist/components/ProductTile/ProductTile.js +5 -6
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/renderAdditionalDescription.d.ts +1 -2
- package/dist/components/ProductTile/renderAdditionalDescription.js +2 -6
- package/dist/components/ProductTile/renderAdditionalDescription.js.map +1 -1
- package/dist/components/ProductTile/renderBenefit.d.ts +1 -2
- package/dist/components/ProductTile/renderBenefit.js +2 -6
- package/dist/components/ProductTile/renderBenefit.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +3 -3
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +2 -4
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/dist/components/Recommendation/RecommendationCard.js +4 -3
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +7 -15
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +3 -6
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +4 -4
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +0 -2
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +23 -4
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/dist/components/StepsBlock/renderStepContent.js +2 -7
- package/dist/components/StepsBlock/renderStepContent.js.map +1 -1
- package/dist/components/Tabs/renderGroupTab.js +1 -1
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/Tabs/tabItemClasses.d.ts +2 -2
- package/dist/components/Tabs/tabItemClasses.js +2 -2
- package/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +5 -6
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +6 -7
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js +1 -2
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.d.ts +0 -1
- package/dist/components/Tile/Tile.js +5 -10
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +4 -15
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -7
- package/dist/components/Video/Video.js +2 -4
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/components/Video/getPaddings.d.ts +1 -1
- package/dist/components/Video/getPaddings.js.map +1 -1
- package/dist/icons/IconName.d.ts +6 -4
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +6 -20
- package/dist/model/BlockVersion.js +0 -33
- package/dist/model/BlockVersion.js.map +1 -1
- package/dist/model/ButtonVersion.d.ts +3 -3
- package/dist/model/JSXBlock.d.ts +2 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -9
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.d.ts +2 -0
- package/dist/ui-kit/BlockWrapper.js +11 -3
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.js +2 -2
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.js +9 -3
- package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.d.ts +9 -0
- package/dist/ui-kit/Button/renderButtonsSection.js +16 -0
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -0
- package/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.d.ts +1 -0
- package/dist/ui-kit/Foldable/Foldable.js +2 -2
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Foldable/FoldablePartProps.d.ts +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +5 -17
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +8 -17
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +2 -5
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +3 -8
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/LinkButton/LinkButton.js +2 -2
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/dist/ui-kit/List/List.js +1 -12
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.d.ts +1 -2
- package/dist/ui-kit/List/ListItem.js +1 -8
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/List/ListProps.d.ts +0 -6
- package/dist/ui-kit/Location/Location.js +1 -1
- package/dist/ui-kit/Location/Location.js.map +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.js +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/dist/ui-kit/Text/Text.js +1 -1
- package/dist/ui-kit/Text/Text.js.map +1 -1
- package/dist/ui-kit/Text/TextProps.d.ts +2 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +0 -2
- package/dist/ui-kit/TopItem/TopItem.js +9 -18
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/getColSpan.d.ts +1 -1
- package/dist/utils/getColSpan.js +1 -1
- package/dist/utils/getColSpan.js.map +1 -1
- package/dist/utils/style.d.ts +3 -1
- package/dist/utils/style.js +4 -1
- package/dist/utils/style.js.map +1 -1
- package/lib/BlockRenderer/renderBlock.js +4 -3
- package/lib/BlockRenderer/renderBlock.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +1 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.js +1 -1
- package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.d.ts +1 -4
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +3 -4
- package/lib/components/BenefitsBlock/BenefitsBlock.js +5 -19
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +5 -7
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/ButtonBlock/ButtonBlock.js +2 -5
- package/lib/components/ButtonBlock/ButtonBlock.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +2 -2
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +1 -1
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +2 -2
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +2 -2
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +5 -3
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/lib/components/CarouselCard/CarouselCard.js +2 -2
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +2 -4
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +3 -3
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +6 -9
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +3 -3
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +8 -19
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -3
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +7 -11
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -4
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +2 -2
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +3 -4
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/MediaButton.d.ts +2 -2
- package/lib/components/Footer/MediaButton.js +12 -13
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +1 -3
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/SocialMedia.mobile.d.ts +0 -2
- package/lib/components/Footer/SocialMedia.mobile.js +1 -1
- package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/lib/components/Gallery/Gallery.js +1 -1
- package/lib/components/Gallery/Gallery.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +6 -7
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +8 -11
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.d.ts +1 -1
- package/lib/components/Gallery/GalleryContainer.js +5 -4
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.d.ts +1 -1
- package/lib/components/Gallery/GalleryInner.js +5 -5
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Header/DropdownMenu.d.ts +0 -2
- package/lib/components/Header/DropdownMenu.js +4 -7
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.js +6 -6
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +7 -2
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +2 -2
- package/lib/components/Header/HeaderSecondaryMenu.js +8 -19
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.d.ts +0 -2
- package/lib/components/Header/HeaderSubMenu.js +2 -2
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +0 -2
- package/lib/components/Headline/Headline.js +4 -5
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +0 -2
- package/lib/components/HorizontalLayout/HorizontalLayout.js +3 -13
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +0 -2
- package/lib/components/HorizontalLayout/gapStyles.d.ts +2 -0
- package/lib/components/HorizontalLayout/gapStyles.js +10 -0
- package/lib/components/HorizontalLayout/gapStyles.js.map +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +2 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsList.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/LinkList/LinkList.js +1 -1
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MiniGallery/MiniGallery.js +1 -1
- package/lib/components/MiniGallery/MiniGallery.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +7 -11
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/ParagraphBlock/ParagraphBlock.js +1 -4
- package/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -1
- package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +5 -2
- package/lib/components/PictureText/PictureText.js +1 -2
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +2 -1
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +3 -7
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.js +3 -3
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +4 -3
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +5 -9
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +7 -20
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -0
- package/lib/components/ProductTile/ProductTile.js +5 -6
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/renderAdditionalDescription.d.ts +1 -2
- package/lib/components/ProductTile/renderAdditionalDescription.js +2 -6
- package/lib/components/ProductTile/renderAdditionalDescription.js.map +1 -1
- package/lib/components/ProductTile/renderBenefit.d.ts +1 -2
- package/lib/components/ProductTile/renderBenefit.js +2 -6
- package/lib/components/ProductTile/renderBenefit.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +3 -3
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.js +2 -4
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/lib/components/Recommendation/RecommendationCard.js +4 -3
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +7 -15
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +3 -6
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +4 -4
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +0 -2
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +23 -4
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/lib/components/StepsBlock/renderStepContent.js +3 -8
- package/lib/components/StepsBlock/renderStepContent.js.map +1 -1
- package/lib/components/Tabs/renderGroupTab.js +1 -1
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/Tabs/tabItemClasses.d.ts +2 -2
- package/lib/components/Tabs/tabItemClasses.js +2 -2
- package/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +6 -7
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +6 -7
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +1 -2
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.d.ts +0 -1
- package/lib/components/Tile/Tile.js +5 -10
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +4 -15
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -7
- package/lib/components/Video/Video.js +2 -4
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/getPaddings.d.ts +1 -1
- package/lib/components/Video/getPaddings.js.map +1 -1
- package/lib/icons/IconName.d.ts +6 -4
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +6 -20
- package/lib/model/BlockVersion.js +1 -32
- package/lib/model/BlockVersion.js.map +1 -1
- package/lib/model/ButtonVersion.d.ts +3 -3
- package/lib/model/JSXBlock.d.ts +2 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -9
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.d.ts +2 -0
- package/lib/ui-kit/BlockWrapper.js +10 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.js +2 -2
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/buttonClassNameConstants.js +9 -3
- package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.d.ts +8 -0
- package/lib/ui-kit/Button/renderButtonsSection.js +13 -0
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -0
- package/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.d.ts +1 -0
- package/lib/ui-kit/Foldable/Foldable.js +2 -2
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Foldable/FoldablePartProps.d.ts +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +5 -17
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +8 -17
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +2 -5
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +3 -8
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/LinkButton/LinkButton.js +2 -2
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +0 -2
- package/lib/ui-kit/List/List.js +1 -12
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.d.ts +1 -2
- package/lib/ui-kit/List/ListItem.js +1 -8
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/List/ListProps.d.ts +0 -6
- package/lib/ui-kit/Location/Location.js +1 -1
- package/lib/ui-kit/Location/Location.js.map +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.js +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/lib/ui-kit/Text/Text.js +1 -1
- package/lib/ui-kit/Text/Text.js.map +1 -1
- package/lib/ui-kit/Text/TextProps.d.ts +2 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +0 -2
- package/lib/ui-kit/TopItem/TopItem.js +9 -18
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/getColSpan.d.ts +1 -1
- package/lib/utils/getColSpan.js +1 -1
- package/lib/utils/getColSpan.js.map +1 -1
- package/lib/utils/style.d.ts +3 -1
- package/lib/utils/style.js +4 -1
- package/lib/utils/style.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +147 -161
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BaseTile/BaseTile.d.ts +1 -4
- package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +3 -4
- package/mobile/bundle/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +2 -4
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -3
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -2
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/bundle/components/Footer/MediaButton.d.ts +2 -2
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +0 -2
- package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
- package/mobile/bundle/components/Gallery/GalleryInner.d.ts +1 -1
- package/mobile/bundle/components/Header/DropdownMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +2 -2
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +0 -2
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +0 -2
- package/mobile/bundle/components/HorizontalLayout/gapStyles.d.ts +2 -0
- package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +5 -2
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +1 -0
- package/mobile/bundle/components/ProductTile/renderAdditionalDescription.d.ts +1 -2
- package/mobile/bundle/components/ProductTile/renderBenefit.d.ts +1 -2
- package/mobile/bundle/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/mobile/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +0 -2
- package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +2 -2
- package/mobile/bundle/components/Tile/Tile.d.ts +0 -1
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -7
- package/mobile/bundle/components/Video/getPaddings.d.ts +1 -1
- package/mobile/bundle/icons/IconName.d.ts +6 -4
- package/mobile/bundle/model/BlockVersion.d.ts +6 -20
- package/mobile/bundle/model/ButtonVersion.d.ts +3 -3
- package/mobile/bundle/model/JSXBlock.d.ts +2 -0
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/renderButtonsSection.d.ts +9 -0
- package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +1 -0
- package/mobile/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +1 -1
- package/mobile/bundle/ui-kit/List/ListItem.d.ts +1 -2
- package/mobile/bundle/ui-kit/List/ListProps.d.ts +0 -6
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +2 -1
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +0 -2
- package/mobile/bundle/utils/getColSpan.d.ts +1 -1
- package/mobile/bundle/utils/style.d.ts +3 -1
- package/mobile/dist/BlockRenderer/renderBlock.js +4 -3
- package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.d.ts +1 -4
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +3 -4
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +5 -19
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +5 -7
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/ButtonBlock/ButtonBlock.js +2 -5
- package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +5 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +2 -4
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +3 -3
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +6 -9
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +3 -3
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +8 -19
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -3
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +7 -11
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -4
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +1 -1
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +2 -2
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +3 -4
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.d.ts +2 -2
- package/mobile/dist/components/Footer/MediaButton.js +12 -13
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +0 -2
- package/mobile/dist/components/Footer/SocialMedia.js +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +6 -7
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +8 -11
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +5 -4
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.d.ts +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +5 -5
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.d.ts +0 -2
- package/mobile/dist/components/Header/DropdownMenu.js +4 -7
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +7 -2
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +2 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +7 -18
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +6 -5
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +0 -2
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +3 -13
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +0 -2
- package/mobile/dist/components/HorizontalLayout/gapStyles.d.ts +2 -0
- package/mobile/dist/components/HorizontalLayout/gapStyles.js +12 -0
- package/mobile/dist/components/HorizontalLayout/gapStyles.js.map +1 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.js +1 -1
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/MiniGallery/MiniGallery.js +1 -1
- package/mobile/dist/components/MiniGallery/MiniGallery.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +1 -4
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -1
- package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +5 -2
- package/mobile/dist/components/PictureText/PictureText.js +1 -2
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +2 -1
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +3 -3
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +5 -9
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +7 -20
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -0
- package/mobile/dist/components/ProductTile/ProductTile.js +5 -6
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.d.ts +1 -2
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.js +2 -6
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.js.map +1 -1
- package/mobile/dist/components/ProductTile/renderBenefit.d.ts +1 -2
- package/mobile/dist/components/ProductTile/renderBenefit.js +2 -6
- package/mobile/dist/components/ProductTile/renderBenefit.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +3 -3
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +2 -4
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/mobile/dist/components/Recommendation/RecommendationCard.js +4 -3
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +7 -15
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +4 -4
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +0 -2
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +23 -4
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStepContent.js +2 -7
- package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/Tabs/tabItemClasses.d.ts +2 -2
- package/mobile/dist/components/Tabs/tabItemClasses.js +2 -2
- package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +6 -7
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +1 -2
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.d.ts +0 -1
- package/mobile/dist/components/Tile/Tile.js +5 -10
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +4 -15
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -7
- package/mobile/dist/components/Video/Video.js +2 -4
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/components/Video/getPaddings.d.ts +1 -1
- package/mobile/dist/components/Video/getPaddings.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +6 -4
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/BlockVersion.d.ts +6 -20
- package/mobile/dist/model/BlockVersion.js +0 -33
- package/mobile/dist/model/BlockVersion.js.map +1 -1
- package/mobile/dist/model/ButtonVersion.d.ts +3 -3
- package/mobile/dist/model/JSXBlock.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -9
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +2 -0
- package/mobile/dist/ui-kit/BlockWrapper.js +11 -3
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js +2 -2
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +9 -3
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.d.ts +9 -0
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +16 -0
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -0
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +1 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.js +2 -2
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldablePartProps.d.ts +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +8 -17
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +3 -8
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +2 -2
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/dist/ui-kit/List/List.js +1 -12
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -2
- package/mobile/dist/ui-kit/List/ListItem.js +1 -8
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +0 -6
- package/mobile/dist/ui-kit/Location/Location.js +1 -1
- package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/dist/ui-kit/Text/Text.js +1 -1
- package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
- package/mobile/dist/ui-kit/Text/TextProps.d.ts +2 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +0 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.js +9 -18
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/getColSpan.d.ts +1 -1
- package/mobile/dist/utils/getColSpan.js +1 -1
- package/mobile/dist/utils/getColSpan.js.map +1 -1
- package/mobile/dist/utils/style.d.ts +3 -1
- package/mobile/dist/utils/style.js +4 -1
- package/mobile/dist/utils/style.js.map +1 -1
- package/mobile/lib/BlockRenderer/renderBlock.js +4 -3
- package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
- package/mobile/lib/components/Accordion/Accordion.js +1 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.d.ts +1 -4
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +3 -4
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +5 -19
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +5 -7
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/ButtonBlock/ButtonBlock.js +2 -5
- package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +5 -3
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +2 -4
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +3 -3
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +6 -9
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +3 -3
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +8 -19
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -3
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +7 -11
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +0 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -4
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +1 -1
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +2 -2
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +3 -4
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.d.ts +2 -2
- package/mobile/lib/components/Footer/MediaButton.js +12 -13
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +0 -2
- package/mobile/lib/components/Footer/SocialMedia.js +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +6 -7
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +8 -11
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +5 -4
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.d.ts +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +5 -5
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.d.ts +0 -2
- package/mobile/lib/components/Header/DropdownMenu.js +4 -7
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +7 -2
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +2 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +8 -19
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +6 -5
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +0 -2
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +3 -13
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +0 -2
- package/mobile/lib/components/HorizontalLayout/gapStyles.d.ts +2 -0
- package/mobile/lib/components/HorizontalLayout/gapStyles.js +10 -0
- package/mobile/lib/components/HorizontalLayout/gapStyles.js.map +1 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.js +1 -1
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/MiniGallery/MiniGallery.js +1 -1
- package/mobile/lib/components/MiniGallery/MiniGallery.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +1 -4
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -1
- package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +5 -2
- package/mobile/lib/components/PictureText/PictureText.js +1 -2
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +2 -1
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +3 -3
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +5 -9
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +7 -20
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -0
- package/mobile/lib/components/ProductTile/ProductTile.js +5 -6
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.d.ts +1 -2
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.js +2 -6
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.js.map +1 -1
- package/mobile/lib/components/ProductTile/renderBenefit.d.ts +1 -2
- package/mobile/lib/components/ProductTile/renderBenefit.js +2 -6
- package/mobile/lib/components/ProductTile/renderBenefit.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +3 -3
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +2 -4
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/mobile/lib/components/Recommendation/RecommendationCard.js +4 -3
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +7 -15
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +4 -4
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +0 -2
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +23 -4
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStepContent.js +3 -8
- package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/Tabs/tabItemClasses.d.ts +2 -2
- package/mobile/lib/components/Tabs/tabItemClasses.js +2 -2
- package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +6 -7
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +1 -2
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.d.ts +0 -1
- package/mobile/lib/components/Tile/Tile.js +5 -10
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +4 -15
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -7
- package/mobile/lib/components/Video/Video.js +2 -4
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/components/Video/getPaddings.d.ts +1 -1
- package/mobile/lib/components/Video/getPaddings.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +6 -4
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/BlockVersion.d.ts +6 -20
- package/mobile/lib/model/BlockVersion.js +1 -32
- package/mobile/lib/model/BlockVersion.js.map +1 -1
- package/mobile/lib/model/ButtonVersion.d.ts +3 -3
- package/mobile/lib/model/JSXBlock.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -9
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +2 -0
- package/mobile/lib/ui-kit/BlockWrapper.js +10 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js +2 -2
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +9 -3
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.d.ts +9 -0
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +13 -0
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -0
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +1 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.js +2 -2
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.d.ts +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +8 -17
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +3 -8
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +2 -2
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/ui-kit/List/List.js +1 -12
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -2
- package/mobile/lib/ui-kit/List/ListItem.js +1 -8
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +0 -6
- package/mobile/lib/ui-kit/Location/Location.js +1 -1
- package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/lib/ui-kit/Text/Text.js +1 -1
- package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +2 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +0 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.js +9 -18
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/getColSpan.d.ts +1 -1
- package/mobile/lib/utils/getColSpan.js +1 -1
- package/mobile/lib/utils/getColSpan.js.map +1 -1
- package/mobile/lib/utils/style.d.ts +3 -1
- package/mobile/lib/utils/style.js +4 -1
- package/mobile/lib/utils/style.js.map +1 -1
- package/mobile/src/BlockRenderer/renderBlock.tsx +8 -3
- package/mobile/src/components/Accordion/Accordion.tsx +1 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +1 -5
- package/mobile/src/components/BaseTile/BaseTileProps.ts +3 -4
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +18 -40
- package/mobile/src/components/Bonus/Bonus.tsx +19 -27
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -7
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +2 -2
- package/mobile/src/components/ButtonBlock/ButtonBlock.tsx +4 -10
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +3 -3
- package/mobile/src/components/Calculator/Calculator.tsx +1 -4
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +3 -3
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +2 -2
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -4
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/Carousel.tsx +14 -3
- package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +6 -4
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +10 -12
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +8 -15
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +14 -5
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +26 -31
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +3 -3
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +2 -6
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +14 -25
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +0 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +13 -12
- package/mobile/src/components/Catalog/Catalog.tsx +1 -4
- package/mobile/src/components/Catalog/CatalogCard.tsx +2 -2
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +9 -9
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -5
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -4
- package/mobile/src/components/Footer/MediaButton.tsx +27 -25
- package/mobile/src/components/Footer/SocialMedia.tsx +2 -4
- package/mobile/src/components/Gallery/Gallery.tsx +23 -24
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +21 -26
- package/mobile/src/components/Gallery/GalleryContainer.tsx +22 -10
- package/mobile/src/components/Gallery/GalleryInner.tsx +12 -7
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +2 -8
- package/mobile/src/components/Header/DropdownMenu.tsx +41 -47
- package/mobile/src/components/Header/Header.tsx +57 -48
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +16 -35
- package/mobile/src/components/Header/HeaderSubMenu.tsx +1 -5
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -4
- package/mobile/src/components/Header/HeaderTop.tsx +2 -5
- package/mobile/src/components/Headline/Headline.tsx +28 -16
- package/mobile/src/components/Headline/HeadlineContent.ts +0 -2
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +11 -28
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +0 -3
- package/mobile/src/components/HorizontalLayout/gapStyles.ts +11 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +8 -5
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +1 -1
- package/mobile/src/components/LinkList/LinkList.tsx +1 -1
- package/mobile/src/components/MiniGallery/MiniGallery.tsx +1 -1
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -1
- package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +7 -9
- package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +5 -2
- package/mobile/src/components/PictureText/PictureText.tsx +3 -14
- package/mobile/src/components/Placeholder/Placeholder.tsx +6 -3
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +4 -4
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +30 -41
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +10 -31
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +1 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +14 -17
- package/mobile/src/components/ProductTile/renderAdditionalDescription.tsx +2 -13
- package/mobile/src/components/ProductTile/renderBenefit.tsx +6 -9
- package/mobile/src/components/PromoTile/PromoTile.tsx +12 -13
- package/mobile/src/components/Recommendation/Recommendation.tsx +3 -4
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +12 -14
- package/mobile/src/components/RollupItem/RollupItem.tsx +36 -41
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +10 -9
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +23 -6
- package/mobile/src/components/StepsBlock/renderStepContent.tsx +9 -8
- package/mobile/src/components/Tabs/renderGroupTab.tsx +2 -1
- package/mobile/src/components/Tabs/tabItemClasses.ts +2 -2
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +6 -13
- package/mobile/src/components/TextBlock/TextBlock.tsx +1 -7
- package/mobile/src/components/Tile/Tile.tsx +22 -42
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +8 -12
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +3 -8
- package/mobile/src/components/Video/Video.tsx +17 -20
- package/mobile/src/components/Video/getPaddings.ts +1 -1
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/YoutubeIcon.svg +3 -0
- package/mobile/src/model/BlockVersion.ts +11 -53
- package/mobile/src/model/ButtonVersion.ts +3 -3
- package/mobile/src/model/JSXBlock.ts +2 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +6 -12
- package/mobile/src/ui-kit/BlockWrapper.tsx +17 -2
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +2 -2
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +9 -3
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +52 -0
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +2 -2
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +4 -2
- package/mobile/src/ui-kit/Foldable/FoldablePartProps.ts +1 -1
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +20 -22
- package/mobile/src/ui-kit/Icon/Icon.tsx +6 -9
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +4 -4
- package/mobile/src/ui-kit/List/List.tsx +23 -43
- package/mobile/src/ui-kit/List/ListItem.tsx +13 -22
- package/mobile/src/ui-kit/List/ListProps.ts +0 -7
- package/mobile/src/ui-kit/Location/Location.tsx +1 -1
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +2 -2
- package/mobile/src/ui-kit/Text/Text.tsx +2 -4
- package/mobile/src/ui-kit/Text/TextProps.ts +5 -2
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +21 -27
- package/mobile/src/utils/getColSpan.ts +2 -2
- package/mobile/src/utils/style.ts +7 -2
- package/package.json +1 -1
- package/src/BlockRenderer/renderBlock.tsx +8 -3
- package/src/components/Accordion/Accordion.mobile.tsx +1 -1
- package/src/components/Accordion/Accordion.tsx +1 -4
- package/src/components/AccordionItem/AccordionItem.tsx +1 -1
- package/src/components/BaseTile/BaseTile.tsx +1 -5
- package/src/components/BaseTile/BaseTileProps.ts +3 -4
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +18 -40
- package/src/components/Bonus/Bonus.tsx +19 -27
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -7
- package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/src/components/BusinessBlock/BusinessCard.tsx +2 -2
- package/src/components/ButtonBlock/ButtonBlock.tsx +4 -10
- package/src/components/Calculator/BonusCalculatorForm.tsx +3 -3
- package/src/components/Calculator/Calculator.tsx +1 -4
- package/src/components/Calculator/CreditCalculatorForm.tsx +3 -3
- package/src/components/Calculator/DepositCalculatorForm.tsx +2 -2
- package/src/components/CardTransfer/CardTransfer.tsx +1 -4
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +20 -28
- package/src/components/Carousel/Carousel.tsx +14 -3
- package/src/components/Carousel/CarouselContent.ts +2 -0
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +3 -3
- package/src/components/CarouselCard/CarouselCard.tsx +6 -4
- package/src/components/CarouselCard/CarouselCardContent.ts +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +10 -12
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +8 -15
- package/src/components/CarouselLinks/CarouselLinks.tsx +14 -5
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +26 -31
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +3 -3
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +2 -6
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +14 -25
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +0 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +13 -12
- package/src/components/Catalog/Catalog.tsx +1 -4
- package/src/components/Catalog/CatalogCard.tsx +2 -2
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -4
- package/src/components/ContactsBlock/ContactsBlock.tsx +9 -9
- package/src/components/ContentPage/ContentPage.tsx +2 -5
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -4
- package/src/components/Footer/Footer.tsx +2 -2
- package/src/components/Footer/MediaButton.tsx +27 -25
- package/src/components/Footer/SocialMedia.mobile.tsx +2 -4
- package/src/components/Footer/SocialMedia.tsx +4 -12
- package/src/components/Gallery/Gallery.fixture.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +23 -24
- package/src/components/Gallery/Gallery.tsx +3 -1
- package/src/components/Gallery/GalleryCardInner.tsx +21 -26
- package/src/components/Gallery/GalleryContainer.tsx +22 -10
- package/src/components/Gallery/GalleryInner.tsx +12 -7
- package/src/components/GracePeriod/GracePeriod.tsx +2 -8
- package/src/components/Header/DropdownMenu.tsx +41 -47
- package/src/components/Header/Header.mobile.tsx +57 -48
- package/src/components/Header/Header.tsx +21 -17
- package/src/components/Header/HeaderSecondaryMenu.tsx +16 -35
- package/src/components/Header/HeaderSubMenu.tsx +1 -5
- package/src/components/Header/HeaderSubMenuItem.tsx +2 -4
- package/src/components/Header/HeaderTop.tsx +2 -5
- package/src/components/Headline/Headline.fixture.tsx +40 -43
- package/src/components/Headline/Headline.tsx +11 -11
- package/src/components/Headline/HeadlineContent.ts +0 -2
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +0 -1
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +11 -28
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +0 -3
- package/src/components/HorizontalLayout/gapStyles.ts +11 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +8 -5
- package/src/components/LinkDocs/LinkDocs.tsx +2 -2
- package/src/components/LinkDocs/LinkDocsList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/LinkList/LinkList.tsx +1 -1
- package/src/components/MiniGallery/MiniGallery.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +13 -19
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -1
- package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +2 -7
- package/src/components/ParagraphBlock/ParagraphBlock.tsx +7 -9
- package/src/components/ParagraphBlock/ParagraphBlockContent.ts +5 -2
- package/src/components/PictureText/PictureText.tsx +3 -14
- package/src/components/Placeholder/Placeholder.tsx +6 -3
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +4 -4
- package/src/components/ProductBlock/ProductBlock.tsx +5 -13
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +30 -41
- package/src/components/ProductBlock/ProductBlockInner.tsx +6 -15
- package/src/components/ProductGallery/ProductGallery.tsx +10 -31
- package/src/components/ProductGallery/ProductGalleryContent.ts +1 -0
- package/src/components/ProductTile/ProductTile.tsx +14 -17
- package/src/components/ProductTile/renderAdditionalDescription.tsx +2 -13
- package/src/components/ProductTile/renderBenefit.tsx +6 -9
- package/src/components/PromoTile/PromoTile.tsx +12 -13
- package/src/components/Recommendation/Recommendation.tsx +3 -4
- package/src/components/Recommendation/RecommendationCard.tsx +12 -14
- package/src/components/RollupItem/RollupItem.tsx +36 -41
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +10 -9
- package/src/components/StepsBlock/StepsBlock.tsx +3 -5
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +23 -6
- package/src/components/StepsBlock/renderStepContent.tsx +9 -8
- package/src/components/Tabs/renderGroupTab.tsx +2 -1
- package/src/components/Tabs/tabItemClasses.ts +2 -2
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +6 -13
- package/src/components/TariffsTable/EmbeddableCellData.tsx +8 -13
- package/src/components/TariffsTable/TariffsTable.tsx +1 -3
- package/src/components/TextBlock/TextBlock.mobile.tsx +1 -7
- package/src/components/Tile/Tile.tsx +22 -42
- package/src/components/VerticalLayout/VerticalLayout.tsx +8 -12
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +3 -8
- package/src/components/Video/Video.tsx +17 -20
- package/src/components/Video/getPaddings.ts +1 -1
- package/src/icons/IconName.ts +5 -2
- package/src/icons/YoutubeIcon.svg +3 -0
- package/src/model/BlockVersion.ts +11 -53
- package/src/model/ButtonVersion.ts +3 -3
- package/src/model/JSXBlock.ts +2 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +6 -12
- package/src/ui-kit/BlockWrapper.tsx +17 -2
- package/src/ui-kit/Button/ArrowButton.tsx +2 -2
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Button/buttonClassNameConstants.ts +9 -3
- package/src/ui-kit/Button/renderButtonsSection.tsx +52 -0
- package/src/ui-kit/Checkbox/Checkbox.tsx +2 -2
- package/src/ui-kit/Foldable/Foldable.tsx +4 -2
- package/src/ui-kit/Foldable/FoldablePartProps.ts +1 -1
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +20 -22
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +15 -22
- package/src/ui-kit/Heading/Heading.tsx +6 -8
- package/src/ui-kit/Icon/Icon.tsx +6 -9
- package/src/ui-kit/LinkButton/LinkButton.tsx +4 -4
- package/src/ui-kit/List/List.fixture.tsx +4 -14
- package/src/ui-kit/List/List.tsx +23 -43
- package/src/ui-kit/List/ListItem.tsx +13 -22
- package/src/ui-kit/List/ListProps.ts +0 -7
- package/src/ui-kit/Location/Location.tsx +1 -1
- package/src/ui-kit/Paragraph/Paragraph.tsx +2 -2
- package/src/ui-kit/Text/Text.tsx +2 -4
- package/src/ui-kit/Text/TextProps.ts +5 -2
- package/src/ui-kit/TopItem/TopItem.tsx +21 -27
- package/src/utils/getColSpan.ts +2 -2
- package/src/utils/style.ts +7 -2
- package/tailwind.config.cjs +6 -0
- package/bundle/components/Calculator/renderButtonSection.d.ts +0 -3
- package/bundle/components/Headline/Headline.mobile.d.ts +0 -5
- package/bundle/components/Headline/headlineStyles.d.ts +0 -7
- package/bundle/components/StepsBlock/renderItems.d.ts +0 -8
- package/bundle/model/BorderVersion.d.ts +0 -6
- package/bundle/ui-kit/Button/ButtonSection.d.ts +0 -13
- package/bundle/utils/style2className.d.ts +0 -1
- package/dist/components/Calculator/renderButtonSection.d.ts +0 -3
- package/dist/components/Calculator/renderButtonSection.js +0 -9
- package/dist/components/Calculator/renderButtonSection.js.map +0 -1
- package/dist/components/Headline/Headline.mobile.d.ts +0 -5
- package/dist/components/Headline/Headline.mobile.js +0 -13
- package/dist/components/Headline/Headline.mobile.js.map +0 -1
- package/dist/components/Headline/headlineStyles.d.ts +0 -7
- package/dist/components/Headline/headlineStyles.js +0 -18
- package/dist/components/Headline/headlineStyles.js.map +0 -1
- package/dist/components/StepsBlock/renderItems.d.ts +0 -8
- package/dist/components/StepsBlock/renderItems.js +0 -7
- package/dist/components/StepsBlock/renderItems.js.map +0 -1
- package/dist/model/BorderVersion.d.ts +0 -6
- package/dist/model/BorderVersion.js +0 -7
- package/dist/model/BorderVersion.js.map +0 -1
- package/dist/ui-kit/Button/ButtonSection.d.ts +0 -13
- package/dist/ui-kit/Button/ButtonSection.js +0 -23
- package/dist/ui-kit/Button/ButtonSection.js.map +0 -1
- package/dist/utils/style2className.d.ts +0 -1
- package/dist/utils/style2className.js +0 -7
- package/dist/utils/style2className.js.map +0 -1
- package/lib/components/Calculator/renderButtonSection.d.ts +0 -3
- package/lib/components/Calculator/renderButtonSection.js +0 -6
- package/lib/components/Calculator/renderButtonSection.js.map +0 -1
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +0 -20
- package/lib/components/Headline/Headline.mobile.d.ts +0 -5
- package/lib/components/Headline/Headline.mobile.js +0 -11
- package/lib/components/Headline/Headline.mobile.js.map +0 -1
- package/lib/components/Headline/headlineStyles.d.ts +0 -7
- package/lib/components/Headline/headlineStyles.js +0 -16
- package/lib/components/Headline/headlineStyles.js.map +0 -1
- package/lib/components/StepsBlock/renderItems.d.ts +0 -8
- package/lib/components/StepsBlock/renderItems.js +0 -4
- package/lib/components/StepsBlock/renderItems.js.map +0 -1
- package/lib/model/BorderVersion.d.ts +0 -6
- package/lib/model/BorderVersion.js +0 -5
- package/lib/model/BorderVersion.js.map +0 -1
- package/lib/ui-kit/Button/ButtonSection.d.ts +0 -13
- package/lib/ui-kit/Button/ButtonSection.js +0 -20
- package/lib/ui-kit/Button/ButtonSection.js.map +0 -1
- package/lib/utils/style2className.d.ts +0 -1
- package/lib/utils/style2className.js +0 -4
- package/lib/utils/style2className.js.map +0 -1
- package/mobile/bundle/components/Calculator/renderButtonSection.d.ts +0 -3
- package/mobile/bundle/components/Headline/headlineStyles.d.ts +0 -7
- package/mobile/bundle/components/StepsBlock/renderItems.d.ts +0 -8
- package/mobile/bundle/model/BorderVersion.d.ts +0 -6
- package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +0 -13
- package/mobile/bundle/utils/style2className.d.ts +0 -1
- package/mobile/dist/components/Calculator/renderButtonSection.d.ts +0 -3
- package/mobile/dist/components/Calculator/renderButtonSection.js +0 -9
- package/mobile/dist/components/Calculator/renderButtonSection.js.map +0 -1
- package/mobile/dist/components/Headline/headlineStyles.d.ts +0 -7
- package/mobile/dist/components/Headline/headlineStyles.js +0 -18
- package/mobile/dist/components/Headline/headlineStyles.js.map +0 -1
- package/mobile/dist/components/StepsBlock/renderItems.d.ts +0 -8
- package/mobile/dist/components/StepsBlock/renderItems.js +0 -7
- package/mobile/dist/components/StepsBlock/renderItems.js.map +0 -1
- package/mobile/dist/model/BorderVersion.d.ts +0 -6
- package/mobile/dist/model/BorderVersion.js +0 -7
- package/mobile/dist/model/BorderVersion.js.map +0 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +0 -13
- package/mobile/dist/ui-kit/Button/ButtonSection.js +0 -23
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +0 -1
- package/mobile/dist/utils/style2className.d.ts +0 -1
- package/mobile/dist/utils/style2className.js +0 -7
- package/mobile/dist/utils/style2className.js.map +0 -1
- package/mobile/lib/components/Calculator/renderButtonSection.d.ts +0 -3
- package/mobile/lib/components/Calculator/renderButtonSection.js +0 -6
- package/mobile/lib/components/Calculator/renderButtonSection.js.map +0 -1
- package/mobile/lib/components/Headline/headlineStyles.d.ts +0 -7
- package/mobile/lib/components/Headline/headlineStyles.js +0 -16
- package/mobile/lib/components/Headline/headlineStyles.js.map +0 -1
- package/mobile/lib/components/StepsBlock/renderItems.d.ts +0 -8
- package/mobile/lib/components/StepsBlock/renderItems.js +0 -4
- package/mobile/lib/components/StepsBlock/renderItems.js.map +0 -1
- package/mobile/lib/model/BorderVersion.d.ts +0 -6
- package/mobile/lib/model/BorderVersion.js +0 -5
- package/mobile/lib/model/BorderVersion.js.map +0 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +0 -13
- package/mobile/lib/ui-kit/Button/ButtonSection.js +0 -20
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +0 -1
- package/mobile/lib/utils/style2className.d.ts +0 -1
- package/mobile/lib/utils/style2className.js +0 -4
- package/mobile/lib/utils/style2className.js.map +0 -1
- package/mobile/src/components/Calculator/renderButtonSection.tsx +0 -8
- package/mobile/src/components/Headline/headlineStyles.ts +0 -25
- package/mobile/src/components/StepsBlock/renderItems.tsx +0 -23
- package/mobile/src/model/BorderVersion.ts +0 -10
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +0 -51
- package/mobile/src/utils/style2className.ts +0 -3
- package/src/components/Calculator/renderButtonSection.tsx +0 -8
- package/src/components/Headline/Headline.fixture.mobile.tsx +0 -128
- package/src/components/Headline/Headline.mobile.tsx +0 -40
- package/src/components/Headline/headlineStyles.ts +0 -25
- package/src/components/StepsBlock/renderItems.tsx +0 -23
- package/src/model/BorderVersion.ts +0 -10
- package/src/ui-kit/Button/ButtonSection.tsx +0 -51
- package/src/utils/style2className.ts +0 -3
package/bundle/bundle.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),r=l("useEffect"),i=l("useCallback"),a=l("useMemo"),s=l("useRef");const o=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH&&!this._.BASE_PATH.endsWith("/")?`${this._.BASE_PATH}/`:this._.BASE_PATH}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(c)||"");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(c,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/${o.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/${o.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,l){const{children:n,...r}=t||{},i=l?.slots?.default,a=n||i&&i();return e(Object.assign(r,a&&{children:a}),l)}return t.inheritAttrs=!1,t};function x(e){return e?e.filter(Boolean).join(" "):""}const g=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),b=[],f=["col-span-12"];function v(e,t){const{key:l,blockDecorator:n=g,blocksRegistry:r={},ancestors:i=b,className:a=""}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const o=s&&r[s];return n({blockClassName:`scroll-mt-12 ${a} ${x(e.style||f)}`,block:e,ancestors:i,render:({block:n,blockClassName:r})=>{const{content:i}=n;return o?m(o,{className:r,block:e,options:t,...i},l):null}},l)}const N=[],y=(e,{key:t,ancestors:l=N,slotName:n=null,renderChild:r=v,...i})=>(e||[]).map(((e,a)=>r(e,{...i,key:`${t||e.type}-${a}`,ancestors:i.parent?[...l||N,[i.parent,n]]:l})));function w({children:e,block:t,options:l,renderChild:n}){return e||(t&&l?y(t.blocks,{...l,parent:t,renderChild:n}):null)}const C={left:"text-left",center:"text-center",right:"text-right"};class k{static inst=new k;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function $(e,{sensitivity:t,rootRef:l}={}){const n=s(null),i=a((()=>({threshold:S(t),root:l?.current})),[t,l?.current]);return r((()=>{if(!n.current)return;const t=new IntersectionObserver(e,i);return t.observe(n.current),()=>{t.disconnect()}}),[e,i]),n}function S(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 I=e=>e?.replace("#",""),T=e=>`${globalThis.location?.pathname}#${I(e)}`;class B{static inst=new B;eventBus=new k;constructor(){const e=I(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=I(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",T(e))}replace(e){globalThis.history?.replaceState(null,"",T(e))}reset(){globalThis.history?.replaceState(null,"",T())}}const R=u((({className:e="",block:t,tag:l="section",role:a,children:s})=>{const o=l,c=function(e,t=B.inst){const l=$(i((l=>{if(!e||!l?.length)return;const n=l[l.length-1];t.eventBus.fire("intersection",{block:e,intersection:n})}),[e,t]),{sensitivity:1});return r((()=>{if(l.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{l.current&&e?.anchor===t&&l.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),l}(t),[d,h]=n(!0);return r((()=>k.inst.subscribe("tab",(e=>{if("group"===e.type){const l=t?.labels?.length||t?.anchor;h(!e.label||(!l||Boolean(t?.labels?.includes(e.label))))}else h(!0)}))),[t]),d?m(o,{className:e,role:a,...t?.anchor?{id:t.anchor,ref:c}:{},children:s}):null})),j={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},V=u((e=>{const{className:t="",headingType:l="h3",title:n,as:r="h3"}=e;return m(r,{className:`font-sans m-0 ${j[l]} ${t}`,children:n})})),_=u((({size:e,color:t,align:l,font:n,children:r})=>m("p",{className:["font-sans",e,t,l,n].filter(Boolean).join(" "),children:r}))),L=u((({children:e})=>m("ul",{className:"list-none m-0 p-0",children:e}))),M=u((({className:e="",title:t,accordionAlignTitle:l="center",description:n,...r})=>h(R,{className:`p-12 mb-1 last:mb-0 bg-white text-primary-text ${e}`,...r,children:[t?m(V,{headingType:"h3",as:"h2",className:`mb-2.5 ${C[l]}`,title:t}):null,n?m("div",{className:"mb-2.5",children:m(_,{size:"text-l",children:n})}):null,m(L,{children:w(r)})]})));M.childrenTypes=["AccordionItem"];const A=u((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:l,renderFoldButton:r})=>{const[a,s]=n(t),o=i((()=>{s((e=>!e))}),[]),c=l({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return h("div",e?{children:[d,c]}:{children:[c,d]})})),D=u((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),m("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),z={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},O=u((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:r=n,iconVersion:i="color",asSVG:a,...s})=>{const c=`${o.CDN||""}icons/${l}.svg`;return a&&"normal"!==i?m(F,{className:e,children:h("svg",{className:[E(e,s.width),z[i],t,P(i)].join(" "),...s,"aria-hidden":"true",children:[r?m("title",{children:r}):null,n?m("desc",{children:n}):null,m("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]})}):m("img",{className:e,src:c,alt:n,title:r,...s,"aria-hidden":"true"})})),P=e=>"white"===e?"invert":"",E=(e,t)=>t?`width: ${t}px `:"w-full h-full",F=u((({className:e,children:t})=>e?m("div",{className:e,children:t}):t)),U=(e,t)=>e.media&&t.media?e.media-t.media:0,H=u((({className:e="",image:t,imageClassName:l="",isMobile:n=!1,pathPrefix:r})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(U).map((({src:e,format:l,media:n},i)=>m("source",{srcSet:W(e,r),type:J(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${i}_${e}`))):null,X({...t,src:G(t.src,r)},l,n)]})})),X=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",i=e.alt||e.title,a=l?"m-auto":"m-0";return m("img",{src:e.src,className:`${a} ${t}`,alt:i,title:r,style:n,...e.size})},G=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,W=(e,t)=>e?.split(",").map((e=>G(e.trim(),t))).join(", ");function J(e){return e?`image/${String(e)}`:void 0}const Y=u((({className:e="",image:t,imageClassName:l="",isMobile:n,pathPrefix:r,...i})=>t?.src||t?.icon?t.icon?m(O,{className:e,imageClassName:l,iconVersion:t?.iconVersion||"normal",name:t.icon,...i}):m(H,{className:e,imageClassName:l,image:t,isMobile:n,pathPrefix:r}):null)),Z=u((({size:e,color:t,align:l,font:n,children:r})=>m("span",{className:["font-sans",e,t,l,n].filter(Boolean).join(" "),children:r}))),K=["PlusIcon","MinusIcon"],q=u((({className:e="",label:t="",isExpanded:l,...n})=>m("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:m(A,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m(D,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:w(n)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>m(Q,{label:t,icon:K[Number(e)],onClick:l})})})));q.childrenTypes=[];const Q=u((({label:e,icon:t,onClick:l})=>h("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[m(Z,{size:"text-xl",font:"font-medium",children:e}),m(Y,{image:{icon:t},className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),ee={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},te={primary:"text-secondary-text",secondary:"text-white"},le={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text"},ne={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},re={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},ie=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),ae={primary:"",secondary:"text-white"},se={primary:"text-secondary-text",secondary:"text-white opacity-80"},oe={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},ce=u((({className:e="",title:t,benefitList:l,version:n="primary",...r})=>h(R,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${ee[n]}`,...r,children:[t?m(V,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${ae[n]}`,title:t}):null,l?.length?m("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(de(n))}):null]}))),de=e=>(t,l)=>{const n=t.description;return h("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?m(Y,{className:`w-12 h-12 min-w-12 p-3 rounded-full ${oe[e]}`,image:ie(t.icon,e),asSVG:!0}):null,t?.icon?.src?m(Y,{image:t.icon}):null,h("div",{className:"ml-5",children:[t?.label?m("h3",{className:`text-h6 m-0 ${ae[e]}`,children:t.label}):null,me(n,e)]})]},String(l))},me=(e,t)=>{const l=e?.benefitType||null;return e&&l?m("div",{className:`text-l-light mt-2 ${se[t]}`,children:"list"===l?ue(e):he(e)}):null},he=e=>e?.name||null,ue=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?m("ul",{className:t,children:e.items.map(((e,t)=>m("li",{children:e},`benefitListItem-${t}`)))}):null};const pe=e=>e?.includes("//"),xe=e=>(e||"").replace(/\/?\?.*/,""),ge=e=>{if(!e||!pe(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t},be=e=>{if(!e||!pe(e))return;return new URL(e).pathname},fe=e=>e?.startsWith("#");var ve=Object.freeze({__proto__:null,isURL:pe,withoutQuery:xe,getOrigin:ge,getPathname:be,getHash:e=>{if(!e||!pe(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:fe});const Ne=(e,t)=>Ne._impl(e,t);function ye(){return ye._impl()}function we(){const e=ye(),t=B.inst;return l=>{const n=((e,t)=>{if(!e)return e;const l=ge(t?.href);return l?e.replace(l,"")||"/":e})(l.href,e);return{...l,href:n,"aria-label":l.text,onClick:Ne((r=>{l.onClick&&l.onClick(r),Ce(n,l.target)||(r?.preventDefault(),fe(n)?t.goto(n):n&&e.push(n))}),l)}}}Ne._impl=e=>e,Ne.setup=e=>{Ne._impl=e},ye._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ye.setup=e=>{ye._impl=e};const Ce=(e,t)=>pe(e)||t&&"_self"!==t||e?.startsWith("/"),ke={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:""},$e="bg-main-divider text-main-disabled",Se={primary:$e,secondary:$e,white:$e,link:""},Ie="text-center font-sans select-none",Te={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},Be=u((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:r,version:i="primary"}=e;return h("div",{className:Re(e),children:[n?m("div",{className:Te[i],children:n}):null,je(e)?h("div",{children:[l?m("div",{className:"text-xs-light text-left",children:l}):null,m("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?m("div",{className:Te[i],children:r}):null]})})),Re=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const r="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",je(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},je=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),Ve=({className:e,rounded:t,version:l})=>["inline-block",Ie,l?Se[l]:"",t?"rounded-full":"rounded-md",e].join(" "),_e=({className:e,rounded:t,version:l})=>[Ie,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",l?ke[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Le=u((({disabled:e,children:t,...l})=>{const n=we()(l),r=t??m(Be,{...n});return m(e?Ae:Me,{...n,children:r})})),Me=u((({className:e="",href:t,rel:l,target:n,ariaLabel:r,version:i,rounded:a,onClick:s,children:o})=>m("a",{className:_e({className:e,version:i,rounded:a}),href:t,rel:l,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ae=u((({className:e,ariaLabel:t,version:l,rounded:n,children:r})=>m("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ve({className:e,rounded:n,version:l}),children:r}))),De=u((({className:e="",buttons:t})=>t&&t?.length?m("div",{className:e,children:t.map(((e,t)=>ze({button:e,index:t})))}):null));function ze({button:e,buttonClassName:t,index:l}){const{icon:n,iconRight:r,version:i,text:a,...s}=e,o="secondary"===i?"color":"white",c=Oe({...n,iconVersion:o}),d=Oe({...r,iconVersion:o});return a?m(Le,{className:t,appendLeft:c,appendRight:d,version:i,text:a,...s},l?String(l):""):null}const Oe=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return m(Y,{image:e,width:t,height:"24",asSVG:!0})},Pe={transparent:{wrapper:"bg-transparent",titleColor:"text-primary-text"},primary:{wrapper:"bg-white",titleColor:"text-primary-text"},secondary:{wrapper:"bg-primary-main",titleColor:"text-white",descriptionColor:"text-white/80"}},Ee={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Fe={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"},Ue=u((({className:e="",title:t,description:l,headlineVersion:n="XL",bgColorHeadline:r="transparent",align:i="text-center",as:a,...s})=>{const o=Pe[r],c=Ee[n];return h(R,{className:`flex flex-col p-12 ${c.wrapper} ${o.wrapper} ${e}`,...s,children:[t?m(V,{className:`whitespace-pre-wrap ${o.titleColor} ${i}`,...c?.title,as:a||c?.title.as,title:t}):null,l?m(_,{color:o.descriptionColor||o.titleColor,size:c.descriptionSize,align:i,children:l}):null]})})),He=u((e=>{const{className:t="",title:l,description:n,bonusItems:r,...i}=e;return m(R,{className:`font-sans bg-white p-12 pb-9 ${t}`,...i,children:h("div",{className:"container",children:[m(Ue,{className:"!p-0",title:l,description:n,headlineVersion:"M",...i}),m("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,t)=>m("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:h("div",{className:"flex justify-between w-full",children:[h("div",{className:"flex flex-col justify-between mr-4",children:[h("div",{children:[m("div",{className:"text-h4",children:e.title}),m("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?m(De,{buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?Xe(e.bonusItemContent):null]})},String(t)))):null})]})})})),Xe=e=>m("div",{children:"count"===e.bonusType?Ge(e):We(e)}),Ge=e=>h("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?m("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?m("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),We=e=>e.image?m(Y,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Je=u((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:r,title:i,...a})=>h(R,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${l}`,...a,children:[m(Ue,{className:"!p-0 mb-8",title:i,description:r,headlineVersion:"M",...a}),e?.length?m("div",{className:`grid gap-1 ${C[t]} ${Ze(n)}`,children:e.map(Ye)}):null]}))),Ye=({icon:e,label:t,description:l},n)=>h("div",{className:"flex flex-col items-center text-h6",children:[l?m("span",{children:l}):null,e?m(Y,{image:e,height:"180",width:"auto",className:"h-[180px] w-auto"}):null,m("div",{children:t?m("span",{children:t}):null})]},String(n)),Ze=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Ke=u((e=>{const{title:t,image:l,cardItems:n,button:r}=e;return h("div",{className:"border-gray border p-9 w-1/2",children:[l?h("div",{className:"flex justify-center",children:[l?.src?m(Y,{className:"mb-5",image:l}):null,l?.icon?m(Y,{image:l,asSVG:!0}):null]}):null,t?m(V,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?m("ul",{children:n.map(((e,t)=>qe(e,String(t))))}):null,r?.text?ze({button:r,buttonClassName:"mt-6"}):null]})})),qe=(e,t)=>{const{icon:l,text:n}=e;return h("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?m(Y,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,l?.src?m(Y,{image:l}):null,m("span",{className:"text-xl-light",children:n})]},t)},Qe=u((({className:e="",title:t,cards:l,...n})=>h(R,{className:`font-sans bg-white p-12 pb-9 ${e}`,...n,children:[m(V,{headingType:"h3",title:t,className:"text-center mb-8"}),m("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>m(Ke,{...e},String(t)))):null})]}))),et=u((e=>{const{className:t,button:l,...n}=e;return m(R,{className:t,...n,children:l?ze({button:l}):null})})),tt=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:r}=e,[a,s]=n(0),o=i((()=>s((e=>r?(e+1)%t:Math.min(e+1,t-1)))),[r,t]),c=i((()=>s((e=>r?(t+e-1)%t:Math.max(e-1,0)))),[r,t]),d=r||function(e,{itemCount:t,visibleItemCount:l,container:n}){if(l)return t>l;if(n){return n.scrollWidth*e/t+n.clientWidth<n.scrollWidth}return!1}(a,e)&&a<t-(l||1),m=r||a>0;return[a,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const lt=u((({className:e,disabled:t,...l})=>m(Le,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:m(Y,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})}))),nt=u((e=>m(lt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),rt=u((e=>m(lt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function it({dec:e,inc:t,canDec:l,canInc:n,btnClass:r,className:i=""}){return l||n?h("div",{children:[l?m(lt,{className:`absolute z-50 ${r[0]} ${i}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?m(lt,{className:`absolute z-50 rotate-180 ${r[1]} ${i}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const at=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),st=u((({title:e,value:t,postfix:l="",prefix:n,className:r=""})=>h("div",{className:`mb-7 ${r}`,children:[e?m("div",{className:"text-l-light text-secondary-text",children:e}):null,t?h("div",{className:"text-h3",children:[n," ",at(Math.round(t))," ",l]}):null]}))),ot=2e6,ct=97e4,dt=Math.round(23.5),mt={minSum:6e4,maxSum:ot,minMonths:13,maxMonths:60,rateBottomRange:12,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},ht={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},ut={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:5.9,isMonthlyInterestPayment:!0},pt=u((({rate:e,title:t="Ставка",unit:l,rateBlockClassName:n})=>h("div",{children:[m("div",{className:"text-l-light text-secondary-text",children:t}),h("div",{className:"flex justify-start",children:[m("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${n}`,children:String(e).replace(".",",")}),l?m("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]})]})));function xt(e){return e?.length?m(De,{buttons:e,className:"flex flex-col mt-7 gap-2"}):null}const gt=e=>e?m("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,bt=(e,t,l)=>Math.max(t,Math.min(e,l)),ft=e=>e.split(/\s+/).join(""),vt=u((({className:e,title:t,items:l=[],min:n=1,max:r=100,step:i=1,value:a=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(bt(Number(ft(e.target.value)),n,r))},d={backgroundSize:`${(100*(a-n)/(r-n)).toFixed(2)}% 100%`};return h("div",{className:e,children:[h("label",{className:"block relative",children:[t?m("span",{className:"text-m-light text-primary-text",children:t}):null,m("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n 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",value:at(a),disabled:s,onChange:c,onBlur:c}),m("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:m("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:r,step:i,value:a,disabled:s,onChange:c,style:d})})]}),Nt(l)]})}));function Nt(e){return m("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>m("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const yt=1e3;function wt(e,t,l){const{moneyValue:n,minSum:r,maxSum:i,step:a=yt,isShowItems:s=!0}=t,o=[`От ${at(r)} ₽`,`До ${at(i)} ₽`];return m(vt,{title:e,items:s?o:[],min:r,max:i,step:a,value:bt(n,r,i),onChange:l})}const Ct=new Map;function kt(e,t,{fallback:l}={}){const i=a((()=>$t(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!i.every((e=>null===e)))try{const e=t(...i);"then"in e?(e=>{e.then((e=>Ct.get(i)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...i]);const u=i[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function $t(e){return e?Array.isArray(e)?e:e instanceof Function?$t(e()):[e]:[e]}async function St(e,t){try{return await It(e,t)}catch(e){console.error(e)}return null}async function It(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function Tt(e){const{data:t}=kt(`/wcms-resources/${e}.json`,It);return t}const Bt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,r=Tt(t||"bonus-calculator-data")||ht,[i,a]=((e,t,l)=>{const{minSumTravel:n,minSumOther:r,maxBonus:i,prefMonthsNum:a,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),i);return[m,m*a+Math.min(Math.round(c*t)+Math.round(d*l),i)*(12-a)]})(r,l,n);return{...r,...e,monthBonus:i,yearBonus:a}},Rt=u((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[a,s]=n(6e3),o=i((e=>s(e)),[]),[c,d]=n(6e3),u=i((e=>d(e)),[]),p={travelExpenseValue:a,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=Bt(p,t);return h("section",{className:e,children:[h("div",{className:"w-[468px]",children:[wt("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:a,step:500,isShowItems:!1},o),wt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},u)]}),m("div",{children:v>=0?m(pt,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),h("div",{className:"w-full max-w-[350px]",children:[N>=0?m(st,{title:"Баллов за год",value:N}):null,xt(l),gt(r)]})]})})),jt=u((({className:e,viewBox:t,fill:l="none",width:n,height:r,paths:i,...a})=>m("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:r,children:i.map((({d:e,fill:t,...l},n)=>m("path",{d:e,fill:t||"currentColor",...a,...l},n)))}))),Vt=[{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=u((({className:e,text:t,checked:l,isRadio:n,onChange:r})=>m("div",{className:e,children:h("label",{className:"flex items-center relative cursor-pointer group",children:[m("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-primary-hover\n ${n?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${l?"border-black":"border-gray"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l}),n?m("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):m(jt,{paths:Vt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?m("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),Lt=u((({items:e,checkedItem:t,onChange:l})=>m("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>m(_t,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))})));function Mt(e,t,l){const{minMonths:n,maxMonths:r,monthsValue:i}=t,a=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return m(vt,{className:"mt-7",title:e,items:[`От ${a(n)}`,`До ${a(r)}`],min:n,max:r,step:1,value:bt(i,n,r),onChange:l})}const At=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:r,moneyValue:i}=e,a=Tt(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&r===e.isStateEmployee))||mt,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=a,d=i<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:r}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,r)-1))}return Math.round(n/r)+n*(e/1200)})(d,e);return{...a,...e,finalRate:d,monthlyPayment:m}},Dt="annuity",zt="differential",Ot=[{id:Dt,text:"Аннуитетный"},{id:zt,text:"Дифференцированный"}],Pt=u((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[a,s]=n(!1),[o,c]=n(!0),[d,u]=n(!1),[p,x]=n(!1),[g,b]=n(ct),f=i((e=>b(e)),[]),[v,N]=n(dt),y=i((e=>N(e)),[]),w=At({isAnnuity:a,isInsurance:o,isSalaryClient:d,isStateEmployee:p,moneyValue:g,monthsValue:v},t);return h("section",{className:e,children:[h("div",{className:"w-[468px]",children:[wt("Сумма кредита, ₽",{...w,step:500},f),Mt("Срок кредита, месяцев",w,y),h("div",{className:"mt-7",children:[m(_t,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:u}),m(_t,{className:"mt-3",text:"Работаю в бюджетной организации",checked:p,onChange:x}),m(_t,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),m(pt,{title:"Ставка",rate:w.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),h("div",{className:"w-full max-w-[350px]",children:[m(st,{title:a?"Ежемесячный платеж":"Платёж в первый месяц",value:w.monthlyPayment,postfix:"₽"}),m(Lt,{items:Ot,checkedItem:a?Dt:zt,onChange:e=>s(e===Dt)}),xt(l),gt(r)]})]})})),Et=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:r}=t;return l?Math.round(n*Math.pow((1200+e)/1200,r)-n):Math.round(n*e*30*r/365/100)},Ft="everyMonth",Ut="atEndTerm",Ht=[{id:Ft,text:"Ежемесячно"},{id:Ut,text:"В конце срока"}],Xt={CreditCalculatorForm:Pt,DepositCalculatorForm:u((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[a,s]=n(ct),o=i((e=>s(e)),[]),[c,d]=n(dt),[u,p]=n(!1),x={moneyValue:a,monthsValue:c,isMonthlyInterestPayment:u},g=i((e=>d(e)),[]),b=((e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n}=e,r=Tt(t||"deposit-calculator-data")?.rows.find((e=>l===e.isMonthlyInterestPayment))||ut,{rate:i}=r,a=Et(i,e),s=n+a;return{...r,...e,income:a,finalSum:s}})(x,t),{income:f,finalSum:v,rate:N}=b;return h("section",{className:e,children:[h("div",{className:"w-[468px]",children:[wt("Сумма вклада, ₽",{...b},o),Mt("Срок вклада, месяцев",{...b},g)]}),m(pt,{rate:N||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),h("div",{className:"w-full max-w-[350px]",children:[f?m(st,{title:"Доход по вкладу",value:f,postfix:"₽",prefix:"+"}):null,v?m(st,{title:"Сумма в конце срока",value:v,postfix:"₽"}):null,m(Lt,{items:Ht,checkedItem:u?Ft:Ut,onChange:e=>p(e===Ft)}),xt(l),gt(r)]})]})})),BonusCalculatorForm:Rt},Gt=(e,t)=>{const l=e?.calcType;if(!l||!(l in Xt))return null;const n=Xt[l];return m("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:h("div",{className:"box-border p-9 w-full",children:[e?.title?m(V,{className:"text-center mb-6",title:e.title}):null,m(n,{...e,className:"flex justify-between"})]})},String(t))},Wt=u((({className:e="",calculatorTabs:t=[],...l})=>{const r=t.map((e=>e.nav||{})),a=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=i((e=>o(e)),[]),[d,u]=tt({itemCount:t?.length,visibleItemCount:3});return h(R,{className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[h("div",{className:"bg-white",children:[r.length>1?Jt({activeIndex:d,tabsNav:r,slideIndexShift:s,onClick:c}):null,it({...u,btnClass:["left-3","right-3"],className:"top-8"})]}),m("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:a?.length?a.map(Gt):null})]})}));function Jt({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return h("div",{children:[m("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:m("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",i=l?"text-xl mb-1.5":"text-l mb-[3px]",a=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[m(Y,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),h("div",{className:"border-0",children:[m("div",{className:`${i}`,children:e?.title}),m("div",{className:`${a}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),m("div",{className:"w-full h-2 bg-primary-main"})]})}const Yt=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Zt=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Kt=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),qt=u((({className:e="",inputClassName:t="",id:l,name:n,type:r="text",label:a,value:s="",valid:o=!0,children:c,onChange:d,onBlur:u,...p})=>{const x=i((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=i((e=>{if(!u)return;const t=e.target.validity.valid?e.target.value:s;u(t)}),[u]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return h("div",{className:`relative ${e}`,children:[a?m("label",{className:"block text-m-light mb-2",children:a}):null,m("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:n||l,type:r,value:s,onChange:x,onBlur:g,...p}),c]})})),Qt=u((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const a=i((e=>{if(!t)return;const r=Yt(Zt(Kt(ft(e))));const i=el(r,bt(Number(r),l,n));t(String(i))}),[t]),s=i((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(ft(l))).replace(",",".")))}),[t]);return m(qt,{className:e,inputClassName:"w-full",onChange:a,onBlur:s,...r,children:m("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),el=(e,t)=>Number(e)===t?e:String(t),tl=u((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:r="1500",button:a,...s})=>{const[o,c]=n(""),d=i((e=>c(e)),[]),u=!Number(ft(o)),p=u?Ve({version:a?.version}):_e({className:"text-white",version:a?.version}),x=we();return h(R,{className:`p-12 flex flex-col items-center font-sans bg-white ${e}`,...s,children:[t?m(V,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,h("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[m(Qt,{name:"amount",value:o,onChange:d,valid:""===o||!u,placeholder:r,label:l}),a?.text?m("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:u,...x(a),children:a.text}):null]})]})})),ll=(...e)=>e.filter(Boolean).join(" "),nl=u((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:r,children:a,onIntersection:s})=>{const o=$(i((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),r);return m("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(l===n),ref:o,children:a})})),rl=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],il=u((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:r=0,padding:a=0,listType:o="horizontal-list",snapAlign:c="snap-center",children:d,onVisibleItemsChange:h,onVisibleIndicesChange:u})=>{const p={sensitivity:1,rootRef:t},x=s([]),g=i(((e,t)=>{const l=[...x.current||[]];l[e]=t,x.current=l,h&&h(l),u&&u(sl(l))}),[h,u]),b=n>0?r*Number(n)-1:0,f="horizontal-list"===o,v={...f?al(a,b):{},gap:`${r}px`};return m("div",{className:ll("box-border overflow-auto no-scrollbar",o,e),style:v,role:"list",ref:t,children:(N=(e,t)=>m(nl,{className:ll(c,n?rl[n-1]:"","vertical-list"===o?"h-full":""),style:f?al(a/4):{},activeIndex:l,idx:t,observerOptions:p,onIntersection:g,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(N):N(e,0))(d)});var N})),al=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),sl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ol=e=>e,cl=(e=ol)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),dl=(e=ol)=>cl((t=>-e(t))),ml=e=>t=>e.scrollWidth/t,hl=e=>(t,l)=>{e.scrollBy({left:l*ml(e)(t),behavior:"smooth"})},ul=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const r=s(null),[a,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]=a.length?[dl()(a),cl()(a)]:[-1,-1],h=d>0,u=m<e-1,p=i((()=>{var l;r.current&&(t&&!h?(l=r.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):hl(r.current)(e,-1))}),[t,e,h]),x=i((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):hl(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},pl="absolute top-0 bottom-0 z-50 w-[84px]",xl="absolute top-[calc(50%-12px)] z-50",gl=u((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:r=!1,...i})=>{const{blocks:a}=i.block||{},s=t||a?.length||0,[o,c]=ul({itemCount:s,isCyclic:r});return m(R,{className:`font-sans p-12 ${e}`,...i,children:h("div",{className:"relative max-w-full",children:[m(il,{containerRef:o,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:c.handleVisibleIndicesChange,children:w(i)}),(c.canScrollLeft||c.canScrollRight)&&n?h("div",{children:[m("div",{className:`${pl} left-0 bg-opacity-from-white`}),m("div",{className:`${pl} right-0 bg-opacity-to-white`})]}):null,bl(c)]})})}));gl.childrenTypes=["CarouselCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselInvestmentCard"];const bl=({scrollLeft:e,scrollRight:t,canScrollLeft:l,canScrollRight:n})=>h("div",{children:[l?m(nt,{className:`${xl} left-8`,onClick:e}):null,n?m(rt,{className:`${xl} right-8`,onClick:t}):null]}),fl="absolute border border-solid border-gray w-full h-full",vl={normal:"min-w-[970px]",mini:"min-w-[355px]"},Nl=u((({className:e="",button:t,description:l,title:n,version:r="normal"})=>m("section",{className:`flex pb-9 pl-12 border-box ${vl[r]} ${e}`,children:h("div",{className:"relative w-full",children:[m("div",{className:`${fl} z-10 top-9 right-12 bg-green-dark`}),m("div",{className:`${fl} z-10 top-6 right-8 bg-green`}),m("div",{className:`${fl} z-10 top-3 right-4 bg-green-light`}),h("div",{className:"relative bg-white z-10 p-10 border border-solid border-green-light",children:[m(Ue,{className:"!p-0",title:n,description:l,headlineVersion:"L",align:"text-left"}),t?m("div",{className:"mt-14",children:ze({button:t})}):null]})]})}))),yl={black:"bg-black",white:"bg-white"},wl=u((({className:e="",title:t,description:l,image:n,price:r,button:i,colors:a,version:s="primary"})=>h("section",{className:`border box-border border-gray p-7 min-w-[392px] flex flex-col justify-left ${ee[s]} ${e}`,role:"listitem",children:[n?.src?m(Y,{className:"mb-5 flex justify-center",image:n}):null,t?m(V,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?m("div",{className:"mb-4",children:m(_,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,a?.length?h("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[m("div",{className:"mr-1.5",children:m(Z,{children:"Доступные цвета: "})}),a.map(Cl)]}):null,r?h(Z,{size:"text-h3",align:"text-left",children:[r," ₽"]}):null,i?ze({button:i,buttonClassName:"mt-5 w-full"}):null]}))),Cl=(e,t)=>m("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${yl[e]}`},String(t)),kl={primary:"border-gray",secondary:"border-white/50"},$l=u((({className:e="",title:t="",buttons:l,image:n,children:r})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{className:"h-full",children:r}),l?m("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]}))),Sl={1:"flex gap-y-2 flex-col",2:"flex gap-y-2 gap-x-10 flex-wrap"},Il=u((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:r,image:i,title:a,version:s="primary",...o})=>{const c=a?m(V,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:a}):null,d=i?.src?m(Y,{className:"absolute bottom-0 right-0 m-0",image:i}):null;return m(R,{className:["relative text-left border border-solid box-border p-9 w-[697px]",ee[s],kl[s],l].join(" "),...o,children:h($l,{title:c,image:d,children:[h("div",{className:"flex justify-between mb-4",children:[r?m("div",{className:"w-1/3",children:m(Z,{size:"text-h6",children:r})}):null,e?m(Z,{size:"text-m",font:"font-light",color:te[s],children:e}):null]}),t.length?m("ul",{className:`list-none m-0 p-0 ${Sl[n]}`,children:Tl(t,n)}):null]})})})),Tl=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return h("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?m("div",{className:"pr-2.5",children:m(Z,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?m(Z,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),Bl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Rl=u((({text:e,href:t="",target:l="",className:n=""})=>e?h("div",{className:`relative group cursor-pointer w-[328px] h-[82px] ${n}`,children:[h("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover:text-primary-main z-10",role:"link",href:t,target:l,children:[m("div",{className:"p-0.5",children:e}),m("div",{className:"w-6 h-6",children:m(Y,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),m("div",{className:`${Bl} mx-1.5 mt-1.5`}),m("div",{className:`${Bl} mt-3 mr-3`})]}):null)),jl=u((({className:e="",additionalDescription:t,description:l,links:n,title:r,...i})=>h(R,{className:`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${e}`,...i,children:[h("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[m(Ue,{title:r,as:"h1",description:l,align:"text-left",className:"p-0",bgColorHeadline:"secondary"}),t?m("div",{className:"pt-6",children:m(_,{children:t})}):null]}),n?.length?Vl(n):null]}))),Vl=e=>{const t=Math.ceil(e.length/12);return m(gl,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>m("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(12*l,12*(l+1)).map(((e,t)=>m(Rl,{className:"m-1",...e},String(t))))},String(l))))})},_l={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Ll={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},Ml=u((({className:e="",isDotted:t=!0,children:l,version:n="primary",size:r="M"})=>h("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?m("div",{children:m("div",{className:`rounded-full align-middle inline-block ${_l[n]} ${Ll[r]}`})}):null,m("span",{children:l})]}))),Al={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Dl={S:"text-l-light",M:"text-h6",L:"text-h5"},zl={S:"ml-2",M:"ml-3",L:"ml-4"},Ol=u((e=>{const{className:t="",hasIndent:l,isDotted:n,itemClassName:r="",items:i,listItemSize:a="M",version:s="primary"}=e;return i?.length?m("section",{className:`${Al[s]} ${Dl[a]} ${t} ${l?zl[a]:""}`,role:"list",children:i.map(((e,t)=>m(Ml,{className:`${r} mb-1.5`,isDotted:n,version:s,size:a,children:e},String(t))))}):null})),Pl={primary:"text-secondary-text",secondary:"text-white/80"},El="box-border border-solid border border-gray ",Fl=u((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:i=[],button:a={},version:s="primary",isDotted:o=!0,align:c="center"})=>h("section",{className:["flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6",El,C[c],ee[s]].join(" "),role:"listitem",children:[h("div",{className:"flex flex-col h-full",children:[Ul(r,s),Hl(t,e),Xl(l,e),Wl(i,o,s),Gl(n,s)]}),ze({button:a,buttonClassName:"mt-6"})]}))),Ul=(e,t)=>h("div",{className:"flex justify-center",children:[e?.src?m(Y,{className:"mb-5",image:e}):null,e?.icon?m(Y,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:ie(e,t),asSVG:!0}):null]}),Hl=(e,t)=>t?m(Z,{size:Fe[e],children:t}):null,Xl=(e,t)=>e?m("div",{className:t?"mt-2":"",children:m(_,{size:"text-l",children:e})}):null,Gl=(e,t="primary")=>e?m("div",{className:"mt-auto",children:m(Z,{size:"text-m",font:"font-light",color:Pl[t],children:e})}):null,Wl=(e,t,l="primary")=>e?.length?m(Ol,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:l}):null,Jl=u((({className:e="",title:t,icon:l,list:n=[],version:r="primary",...i})=>h(R,{className:`font-sans border border-gray flex min-w-[536px] ${ee[r]} ${e}`,...i,children:[h("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?m(Y,{image:ie(l),asSVG:!0}):null,l?.src?m(Y,{image:l}):null]}),h("div",{className:"p-8 pl-3 w-full",children:[t?m(V,{className:" mb-3.5",headingType:"h5",title:t}):null,n.length?m("div",{className:"flex flex-col gap-3",children:n?.map(Yl)}):null]})]}))),Yl=(e,t)=>h("div",{className:"break-words",children:[e.title?m("div",{className:"text-h6",children:e.title}):null,e.description?m("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Zl=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Kl={default:" w-14 h-14",small:" w-12 h-12"},ql=u((({version:e="primary",isRounded:t=!1,buttonSize:l="default",...n})=>{const r=we(),{href:i,onClick:a}=r(n),{icon:s,label:o}=Zl.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!s)return null;return m("a",{className:`flex items-center justify-center group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border border-main-divider hover:border-transparent hover:bg-primary-main"} ${t?"rounded-full":"rounded-md"} ${"primary"===e?"hover:text-black":""} ${Kl[l]}`,href:i,"aria-label":o,target:"_blank",rel:"noopener noreferrer",onClick:a,children:s?m(Y,{image:ie(s),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Ql=u((({className:e="",media:t,version:l,isRounded:n=!1,buttonSize:r,children:i})=>h("div",{className:"font-sans",children:[m("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>m(ql,{version:l,isRounded:n,buttonSize:r,...e},String(t))))}),m("span",{className:"text-s-light text-secondary-text",children:i})]}))),en=u((({button:e,className:t="",description:l,image:n,items:r=[],socialMedia:i=[],title:a,version:s="primary",...o})=>{const c=a?m(V,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:a}):null,d=n?.src?m(Y,{className:"absolute bottom-0 right-0 m-0",image:n}):null;return m(R,{className:`relative text-left border border-solid box-border p-7 min-w-[524px]\n ${kl[tn(s)]}\n ${le[s]}\n ${t}`,...o,children:m($l,{className:"flex justify-between",title:c,image:d,children:h("div",{className:"h-full flex flex-col justify-between",children:[l?m("span",{className:"mb-2",children:l}):null,r.length?m(Ol,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:r,version:s}):null,i.length?m(Ql,{className:"pt-10 pb-0",media:i,version:tn(s)}):null,e?.text?m("div",{className:"pt-2 mt-16",children:ze({button:e})}):null]})})})})),tn=e=>"gray"===e?"primary":e,ln=u((({className:e="",title:t,icon:l,isHighlighting:n,button:r,cardCells:i=[],...a})=>{const s=i.map(sn),o=s.slice(0,1),c=s.slice(1);return h(R,{className:`font-sans relative bg-white border border-gray min-w-[322px] p-8 flex flex-col\n ${rn(n)}\n ${e}`,...a,children:[n?on():null,nn(l),t?m(V,{className:"text-primary-text text-center pt-2",headingType:"h5",title:t}):null,r?m(Le,{className:"w-full mt-4",...r}):null,i.length?m(A,{renderFoldableSection:({isUnfolded:e})=>h("div",{children:[o,m(D,{isUnfolded:e,children:c})]}),renderFoldButton:i.length>1?an:null}):null]})})),nn=e=>h("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?m(Y,{image:e}):null,e?.icon?m(Y,{image:ie(e),asSVG:!0}):null]}),rn=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-7",an=({isUnfolded:e,onToggle:t})=>h("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[m("div",{children:e?"Скрыть":"Подробнее о тарифе"}),m(O,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),sn=(e,t)=>h("div",{className:"py-5 border-b border-main-divider",children:[e?.title?m("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?m("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),on=()=>h("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:[m(O,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),m(_,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),cn={black:"bg-black",white:"bg-white"},dn=u((({className:e="",title:t,description:l,image:n,price:r,button:i,colors:a})=>h("section",{className:`border border-solid box-border border-gray p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?m(Y,{className:"mb-5 flex justify-center",image:n}):null,t?m(V,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?m("div",{className:"text-m-light text-left mb-4",children:l}):null,a?.length?h("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[m("div",{className:"mr-1.5",children:"Доступные цвета: "}),a.map(mn)]}):null,r?h("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,i?ze({button:i,buttonClassName:"mt-5 w-full"}):null]}))),mn=(e,t)=>m("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cn[e]}`},String(t)),hn="absolute top-0 bottom-0 w-[84px]",un=u((({cards:e=[],className:t="",title:l,description:n,...r})=>{const[i,a]=tt({itemCount:e?.length,visibleItemCount:3});return h(R,{className:`bg-white relative font-sans p-12 overflow-hidden text-center ${t}`,...r,children:[m(Ue,{className:"!p-0",title:l,description:n,headlineVersion:"M",...r}),m("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*i}px)`},role:"list",children:e?.length?e.map(((e,t)=>m(dn,{...e},String(t)))):null}),it({...a,btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),m("div",{className:`${hn} left-0 bg-opacity-from-white`}),m("div",{className:`${hn} right-0 bg-opacity-to-white`})]})})),pn="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",xn="border-gray border-solid border",gn="border-main-divider border border-t-0 border-x-0",bn="w-[200px] mr-6",fn=u((({icon:e,image:t,title:l,link:n})=>h("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${xn} ${pn}`,role:"columnheader",children:[e&&!t?.src&&m(Y,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:ie(e),width:"63",height:"63",asSVG:!0}),t?.src&&m(Y,{className:"mb-[18px]",image:t}),l?m(V,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&m("div",{className:"mt-auto w-full",children:m(Le,{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:m("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),vn={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Nn=u((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>m("div",{className:"flex flex-1 overflow-hidden",children:m("div",{className:vn[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),yn=u((({children:e})=>m("div",{className:"self-start flex flex-col",role:"row",children:m("div",{className:"flex",children:e})}))),wn=u((({colHeaders:e,activeIndex:t})=>h(yn,{children:[m("div",{className:bn,role:"columnheader"}),m(Nn,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>m(fn,{...e},String(t))))})]}))),Cn=u((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>m("div",{className:`w-80 box-border flex flex-col ${xn} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?pn:""}`,role:"cell",children:m("div",{className:`mx-7 h-full ${gn} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Sn(e,t,n)))})}))),kn=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),$n=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Sn=({label:e,description:t},l,n)=>h("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?m("h4",{className:kn(n),children:e}):null,t?m("div",{className:$n(n),children:t}):null]},String(l)),In=(e=!1)=>`text-s py-7 ${gn} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Tn=u((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:i})=>h(yn,{children:[e?.title?m("div",{className:In(i),children:e.title}):null,t?.length?m(Nn,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>m(Cn,{cell:e,isFirstRow:r,isLastRow:i,isFillGradient:n&&0===t},String(t))))}):null]}))),Bn=u((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:r}=n;return h("div",{className:"relative",children:[e.map(((e,n,{length:r})=>m(Tn,{row:e,isFirstRow:0===n,isLastRow:n+1===r,activeIndex:l,isColoredFirstColumn:t},String(n)))),r?it({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Rn=u((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:r})=>{const i=e?.map((({header:e})=>e||{})),a=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:a.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=tt({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return h("div",{children:[h("div",{role:"table",children:[i?.length?m(wn,{colHeaders:i,activeIndex:o}):null,s?.length?m(Bn,{rowData:s,isColoredFirstColumn:r,activeIndex:o,controls:c}):null]}),d?m("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),jn=u((({className:e="",title:t,rowHeaders:l,columns:r,visibleRowLength:a=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!a),u=i((()=>d((e=>!e))),[]);return h(R,{className:`bg-white font-sans py-12 pl-12 overflow-hidden text-primary-text relative ${e}`,...o,children:[m(V,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),m(Rn,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:a}),a?Vn({isShowAllRow:c,onClick:u}):null]})})),Vn=({isShowAllRow:e,onClick:t})=>m("div",{className:"pr-12",children:h("div",{className:"flex w-full",children:[m("div",{className:bn}),m("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:m("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),_n=u((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>h(R,{className:`${ee[n]} flex p-12 ${e}`,...r,children:[l?.length?Ln(l,n):null,t?.length?Ln(t,n):null]}))),Ln=(e,t)=>m("div",{className:"flex grow basis-0",children:e.map(((e,l)=>Mn({column:e,index:l,version:t})))}),Mn=({column:e,index:t,version:l})=>e?m("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:r},i)=>h("div",{className:"mt-6 first:mt-0",children:[m(Ue,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left",bgColorHeadline:l}),n?m("div",{className:"mt-1.5 opacity-80",children:m(_,{size:"text-m-light",children:n})}):null,r?m(Le,{className:"mt-6",...r}):null]},String(i))))},`col-${String(t)}`):null,An=e=>"Image"===e?.errorContentType&&e?.image?m(Y,{image:e.image}):"Code"===e?.errorContentType&&e.code?m("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Dn=u((({className:e="",title:t,subtitle:l,error:n,button:r})=>h("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[m("div",{className:"flex justify-center py-20",children:An(n)}),t?m(V,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?m("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,r?.text?m(Le,{className:"py-4 px-9",version:r?.version,...r,children:r.text}):null]})));var zn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(zn||(zn={}));const On=new Intl.NumberFormat("ru",{style:"currency",currency:zn.RUB}),Pn=e=>e?On.format(e):"",En="text-left text-m-light text-secondary-text",Fn=`${En} pl-11`,Un={USD:"DollarIcon",EUR:"EuroIcon"},Hn=u((({className:e,exchangeCurrencyItems:t})=>h("table",{className:`h-fit w-fit ${e}`,children:[m("thead",{children:h("tr",{children:[m("th",{className:En,children:"Валюта"}),m("th",{className:Fn,children:"Купить"}),m("th",{className:Fn,children:"Продать"})]})}),m("tbody",{children:t.map(Xn)})]}))),Xn=e=>{const t=e?.currency?.currency;return h("tr",{className:"pb-1 text-h6",children:[m("td",{className:"pt-4",children:h("div",{className:"flex items-center",children:[t?m(Y,{image:{icon:Un[t]},width:"24",height:"24"}):null,m("span",{className:"ml-2",children:t})]})}),m("td",{className:"pt-4 pl-11",children:Pn(e?.saleExchangeRate)}),m("td",{className:"pt-4 pl-11",children:Pn(e?.buyExchangeRate)})]},t)},Gn=u((({className:e="",address:t})=>h("div",{className:`flex ${e}`,children:[m(Y,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),h("div",{className:"ml-3",children:[t?m("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,m("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Wn=(e,t,l)=>{const n=Number(Jn(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)},Jn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Yn=e=>{return(t=[[e=>e.value!==zn.RUB&&e.oppositeValue!==zn.RUB,()=>e.handleConvert(e.value,zn.RUB)],[e=>e.value===zn.RUB&&e.oppositeValue===zn.RUB,()=>e.handleConvert(e.value,zn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Zn(e){const t=s(null);return r((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const Kn=u((({className:e="",isBorder:t=!0,label:l,options:a=[],value:s,onChange:o,placeholder:c=""})=>{const[d,u]=n(a[0]||{key:"",text:""}),[p,x]=n(!1),g=Zn(i((()=>x(!1)),[]));return r((()=>{u(s||{key:"",text:""})}),[s]),h("div",{className:`${e}`,ref:g,children:[l?m("span",{className:"mb-2 flex text-primary-text",children:l}):null,h("div",{className:"relative "+(p?"z-20":"z-10"),children:[h("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${er(t)}`,onClick:()=>x(!p),children:[m("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),m(O,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),a?.length?m("div",{className:`h-0 ${qn(p)}`,children:m("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:a.map(Qn((e=>{u(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),qn=e=>e?"":"overflow-hidden",Qn=(e,t,l)=>(n,r)=>h("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[m("span",{className:"min-h-6",children:n.text}),m(O,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(r)),er=e=>e?"border border-gray rounded-md hover:border-primary-hover":"";function tr(e){const{placeholder:t,rates:l,selected:n,value:r,setValue:i,setSelected:a}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return h("div",{className:"relative flex",children:[m(qt,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:i}),s.length?m(Kn,{isBorder:!1,onChange:e=>a(e.key),options:s,value:o}):null]})}const lr=u((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:r})=>{const[a,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||zn.RUB,selectBuy:l?.[0]?.currency?.currency||zn.USD}),o=i((e=>s((t=>({...t,...e})))),[]);return h("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[tr({placeholder:"Хочу продать",rates:l,selected:a.selectSell,setSelected:nr(a,o,l),value:a.inputSell,setValue:e=>ir(o,l)(e,a.selectSell,a.selectBuy)}),tr({placeholder:"Получу",rates:t,selected:a.selectBuy,setSelected:rr(a,o,t),value:a.inputBuy,setValue:e=>ar(o,t)(e,a.selectBuy,a.selectSell)}),r?.text?m(Le,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),nr=(e,t,l)=>n=>{t({selectSell:n}),Yn({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{ir(t,l)(e.inputSell,n,r)}})},rr=(e,t,l)=>n=>{t({selectBuy:n}),Yn({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>ar(t,l)(e.inputBuy,n,r)})},ir=(e,t)=>(l,n,r)=>{e({inputSell:Jn(l),selectBuy:r});const i=t.find((e=>e.currency?.currency===r))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;i&&e({inputBuy:String(Wn(l,i,n===zn.RUB)||"")})},ar=(e,t)=>(l,n,r)=>{e({inputBuy:Jn(l),selectSell:r});const i=t.find((e=>e.currency?.currency===r))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;i&&e({inputSell:String(Wn(l,i,n===zn.RUB)||"")})};const sr=async e=>{const t=await or(),l=t?.code||"000";return{region:t,exchangeRates:await cr(e,l)}},or=async()=>{try{return await It("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},cr=async(e,t)=>{try{return await It(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},dr=u((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=kt("/api/v1/exchangerates",sr);return e||{}}(),i=mr(r?.exchangeRate?.currencies),a=i.filter((e=>e.buyExchangeRate));a.unshift({currency:{currency:zn.RUB}});const s=i.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:zn.RUB}}),m(R,{className:`bg-white text-primary-text font-sans p-9 box-border min-h-80 ${e}`,...n,children:m($l,{title:m(V,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:h("div",{className:"flex",children:[h("div",{className:"mr-14 pt-4",children:[i?m(Hn,{className:"mb-[30px]",exchangeCurrencyItems:i}):null,m(Gn,{address:r?.address})]}),i.length&&a.length&&s.length?m(lr,{className:"grow",currencyRatesBuy:a,currencyRatesSell:s,button:l}):null]})})})})),mr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function hr(e,t={}){const{data:l}=kt(`/wcms-resources/${e}.json`,It,{fallback:t});return l||{}}const ur={"bg-white":"color",transparent:"white"},pr={"bg-white":"text-primary-main",transparent:"text-white"},xr=(e,t,l)=>m(Y,t?.src?{image:t,className:pr[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:ur[e]},className:pr[e],width:l?.width,height:l?.height,asSVG:!0}),gr={"bg-white":"text-primary-text",transparent:"text-white"},br=(e,t,l)=>m("span",{className:`${gr[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),fr=u((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:r,bgColor:i="bg-white",showTitle:a=!0})=>h("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[xr(i,l?.image,{width:"40",height:"45"}),a?br(n||l?.title,i):null]}))),vr=()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}},Nr=u((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:n}=vr(),r=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",a=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-5 h-5":"w-6 h-6",children:m(Y,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),l?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${r}`,children:"Поиск по сайту"})]}),m("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:l,onChange:e=>n(e.target.value),type:"text",name:"search-bar-input",placeholder:a}),t?m("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),n("")},children:m(Y,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):m(Le,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),yr=u((e=>m(Nr,{...e}))),wr=u((({className:e="",items:t,hasButton:l})=>h("div",{className:e,children:[t?.length?t.map(Cr):null,l?m(Le,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Cr=(e,t)=>{const{type:l,text:n,description:r}=e;return h("div",{className:"mb-4",children:[m("div",{children:kr(l,n)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},kr=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${$r(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},$r=e=>e.replaceAll(/\D/g,""),Sr=u((({className:e="",index:t,text:l,...n})=>{const r=we(),{href:i,target:a,onClick:s}=r(n);return m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:i,target:a,onClick:s,children:l||`Документ ${t}`})})),Ir=u((({className:e="",links:t})=>m("div",{className:e,children:t?.length?m("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)=>m(Sr,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),Tr=e=>t=>e?.href===t?.href,Br=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(Tr(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(Tr(e))))));var l,n,r},Rr=u((({className:e="",items:t,fallback:l})=>{const n=we(),r=hr(o.SITEMAP||"sitemap",l),i=Br(r.topItems,t);return m("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:i?.map(((e,t)=>jr(n(e),t)))})})),jr=(e,t)=>{const{text:l,items:n,href:r,target:i,onClick:a}=e;return h("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[m("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:i||"_self",onClick:a,children:l||`Раздел ${t}`}),n?.map(((e,t)=>m(Vr,{...e,index:t},String(t))))]},String(t))},Vr=u((({text:e,index:t,...l})=>{const n=we(),{href:r,target:i,onClick:a}=n(l);return m("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:r,target:i||"_self",onClick:a,children:e||`Раздел ${t}`})})),_r=u((({className:e="",index:t,...l})=>{const n=we(),{href:r,target:i,text:a,onClick:s}=n(l);return m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:i,onClick:s,children:a||`Документ ${t}`})})),Lr=u((({className:e="",links:t})=>h("div",{className:e,children:[m("div",{className:"pt-5",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>m(_r,{index:t,...e},String(t))))}):null]}))),Mr="w-[204px]",Ar=u((({className:e,...t})=>{const l=t.options?.page?.fallback,{documents:n,relatedEnterprises:r,contacts:i,socialMedia:a,mobileApps:s,topItems:c,logo:d}=hr(o.FOOTER||"footer",l);return h(R,{tag:"footer",className:`p-9 bg-white font-sans ${e||""}`,...t,children:[h("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[m(fr,{className:Mr,logo:d}),m(yr,{className:"grow"})]}),h("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[h("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[m(wr,{items:i,hasButton:!0}),m(Ql,{media:a,children:"Соцсети"}),m(Ql,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),m(Rr,{className:"pt-[3px]",items:c,fallback:l})]}),m(Ir,{className:"mt-[98px]",links:r}),m(Lr,{links:n})]})})),Dr={normal:3,mini:4},zr={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Or={normal:380,mini:276},Pr=u((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:i,button:a,version:s,isFullWidth:o=!0,isDotted:c=!0,align:d="center"})=>h("div",{className:`h-full flex flex-col justify-between ${C[d]}`,children:[h("div",{className:"flex flex-col h-full",children:[Er(r,s),Fr(t,e),Ur(l,e),i?.length?Xr(i,c,s):null,Hr(n,s)]}),a?.text?ze({button:a,buttonClassName:"mt-6 "+(o?"":"self-center")}):null]}))),Er=(e,t)=>h("div",{className:"flex justify-center",children:[e?.src?m(Y,{className:"mb-5",image:e}):null,e?.icon?m(Y,{className:"w-8 h-8 min-w-8 mb-5 rounded-full",image:ie(e,t),asSVG:!0}):null]}),Fr=(e,t)=>t?m("div",{className:Fe[e],children:t}):null,Ur=(e,t)=>e?m("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,Hr=(e,t)=>e?m("div",{className:`text-m-light mt-auto ${te[t??"primary"]}`,children:e}):null,Xr=(e,t,l="primary")=>m(Ol,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:l}),Gr=u((({headlineVersion:e="M",cards:t=[],version:l="normal",activeIndex:n,...r})=>h("div",{children:[m(Ue,{...r,className:"!p-0",headlineVersion:e}),m("div",{className:`flex mt-8 ${t?.length<=Dr[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*Or[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,version:t},l){return m("section",{className:`box-border border-solid border border-gray p-6 mx-2 flex flex-col justify-between\n items-stretch ${zr[t]} ${ee[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:m(Pr,{...e})},String(l))}({card:e,version:l},t)))})]})));const Wr=u((({cards:e=[],className:t="",version:l="normal",button:n,...r})=>{const[i,a]=tt({itemCount:e?.length,visibleItemCount:Dr[l]}),{isScrollAvailable:s}=a;return h(R,{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${t}`,...r,children:[m(Gr,{cards:e,version:l,activeIndex:i,...r}),it({...a,btnClass:["left-8","right-8"],className:"top-1/2"}),s?h("div",{children:[m("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),m("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,n?ze({button:n,buttonClassName:"mt-8 mx-auto"}):null]})})),Jr=u((e=>m(Wr,{...e,version:"normal"}))),Yr=u((({className:e="",title:t,description:l,calendar:n,...r})=>h(R,{className:`font-sans bg-white p-12 ${e}`,...r,children:[m(Ue,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M",...r}),n?Zr(n):null]}))),Zr=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 h("div",{className:"w-full flex flex-col justify-center mt-13",children:[m("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Kr(e,t)))}),m("div",{className:"flex w-full",children:l.map(((e,t)=>h("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:[m("div",{className:"flex",children:qr(e)}),h("div",{className:"text-s-light text-primary-text mt-3",children:[m("span",{children:e.text})," ",m("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Kr=(e,t)=>e.month?.map(((e,l)=>m("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),qr=e=>e.month?.map((e=>e.image?.src?m("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:m(Y,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Qr=(e,t,l=((e,t)=>t.startsWith(e)))=>l(xe((e=>pe(e)||e?.startsWith("/")?e:`${o.BASE_PATH||""}${e}`)(e)),xe(pe(e)?t.href:be(t.href))),ei=e=>t=>Qr(t.href,e),ti=e=>t=>t.items?.some(ei(e))||Qr(t.href,e)||((e,t)=>[ge(e),ge(t.href)].every(((e,t,l)=>Boolean(e)&&e===l[0])))(t.href,e)||Boolean(o.BASE_PATH?.startsWith(t.href||"/")),li="font-sans text-s-light",ni=u((({className:e="",active:t,flat:l,ariaLabel:n,bgColor:r="bg-white",children:i,...a})=>{const s=we(),{href:o,target:c,text:d,onClick:h}=s(a);return m("a",{className:`${ri(r,t,l)} ${e}`,href:o,target:c,onClick:h,rel:"noopener noreferrer","aria-label":n,children:m("span",{className:ii(r,t,l),children:d||i})})})),ri=(e,t=!1,l=!1)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"}`},ii=(e,t=!1,l=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${li}`;return`${t?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${li}`},ai=864e5;function si(e,t,l=globalThis?.localStorage){const n=i((async(...n)=>{const r=`async:${e}`,i=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<ai?t:void 0}(l.getItem(r));if(i)return i;const a=await t(...n);return l.setItem(r,JSON.stringify({data:a,timestamp:Date.now()})),a}),[e,t]);return kt(e,n)}const oi=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const ci=u((({className:e,searchTerm:t,onSearch:l})=>h("form",{className:`font-sans relative ${e}`,children:[m("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:m("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),m("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),type:"text",name:"location-search-bar-input"})]}))),di=u((({currentLocation:e,onChangeLocation:t,close:l,foreignOffices:n})=>{const{term:r,setTerm:a}=vr(),s=i((e=>a(e)),[]),o=hi(function(){const{data:e}=kt("/api/v1/regions",It);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;return e.forEach((e=>{const n=t(e),r=l.get(n);l.set(n,[...r||[],e])})),l})(o,mi);return h("div",{className:"absolute h-full w-full inset-0 bg-white text-l-light z-50",children:[m(pi,{close:l}),h("div",{className:"container py-12",children:[m(ui,{currentLocation:e}),m(ci,{onSearch:s,searchTerm:r,className:"mb-7"}),r&&r.length>=3?m("div",{children:o.filter((e=>e.name?.startsWith(r))).map(gi({onChangeLocation:t,close:l}))}):m("div",{className:"columns-5",children:Array.from(c.entries()).map(xi({onChangeLocation:t,close:l}))}),m(bi,{foreignOffices:n})]})]})})),mi=e=>e.name?.charAt(0)||"",hi=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),ui=u((({currentLocation:e})=>e?h("div",{className:"mb-4",children:[m(Z,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),m("button",{className:"cursor-pointer",onClick:close,children:m(Z,{color:"text-green",children:e.name})})]}):null)),pi=u((({close:e})=>m("button",{className:"visible peer-placeholder-shown:invisible absolute top-6 right-6 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:t=>{t.preventDefault(),e&&e()},children:m(Y,{image:{icon:"CloseIcon"},width:"24",height:"24"})}))),xi=({onChangeLocation:e,close:t})=>([l,n])=>h("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[m("div",{className:"mb-2.5",children:m(Z,{size:"text-h6",children:l})}),n.map(gi({onChangeLocation:e,close:t}))]},l),gi=({onChangeLocation:e,close:t})=>l=>m("div",{className:"mb-1",children:m("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(l),t&&t()},children:l.name||""})},l.id),bi=u((({foreignOffices:e})=>e?.length?h("div",{className:"border-t border-main-divider mt-7 pt-7",children:[m("div",{className:"mb-4",children:m(Z,{size:"text-m-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),m("div",{className:"flex gap-10",children:e.map(((e,t)=>m(fi,{...e},String(t))))})]}):null)),fi=u((({icon:e,...t})=>{const l=we(),{text:n,target:r,href:i,onClick:a}=l(t);return h("div",{className:"flex gap-x-3",children:[e?m(Y,{pathPrefix:"/wcms-resources/",image:e}):null,n?m("a",{className:"hover:text-primary-hover",href:i,target:r,onClick:a,children:n}):null]})})),vi=u((({className:e="",children:t,ariaLabel:l})=>m("button",{type:"button",className:`border-0 p-0 w-6 h-6 flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":l,children:t}))),Ni={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},yi={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},wi={"bg-white":"black",transparent:"white"},Ci=u((({className:e,officesLink:t,defaultLocation:l="Москва",foreignOffices:a,bgColor:s="bg-white"})=>{const[o,c]=n(!1),[d,u]=function(e){const t=oi(),[l,a]=n(t?.region??{name:e}),{data:s}=si("/api/v1/region",It);return r((()=>{a(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,i((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),a(e)}),[a])]}(l);return h("div",{className:`flex items-center ${e||""}`,children:[m(ni,{className:"mr-5",flat:!0,href:"#",text:d.name,ariaLabel:"Местоположение",onClick:()=>{c(!0)},bgColor:s}),t?m(ni,{className:"mr-7",flat:!0,href:t,text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:s}):null,m(vi,{className:`mr-5 group ${Ni[s]}`,ariaLabel:"Поиск по сайту",children:m(Y,{image:{icon:"LoupeIcon",iconVersion:wi[s]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),m(vi,{className:`${yi[s]} group min-w-8 min-h-8`,ariaLabel:"Дополнительные ссылки",children:m(Y,{image:{icon:"GridIcon",iconVersion:wi[s]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})}),o?m(di,{currentLocation:d,foreignOffices:a,onChangeLocation:u,close:()=>{c(!1)}}):null]})})),ki={"bg-white":"bg-primary-text",transparent:"bg-white"},$i=u((({className:e="",items:t,activeItem:l,bgColor:r})=>{const a=we(),[s,o]=n(!1),c=i((()=>o((e=>!e))),[]),d=Zn(i((()=>o(!1)),[]));return h("div",{className:`${s?"bg-white rounded-md shadow-blue-gray":""} ${e}`,ref:d,children:[m("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6","aria-label":""+(s?"Скрыть другие разделы":"Показать другие разделы"),onClick:c,children:Array(3).fill(r).map(Si)}),m("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(s?"":"hidden"),"aria-hidden":!s,children:t?.map(((e,t)=>m("a",{className:"text-l-light pb-4 hover:text-primary-main "+(e===l?"text-primary-main":""),...a(e),children:e.text},e.href||String(t))))})]})})),Si=(e,t)=>m("div",{className:`w-[3px] h-[3px] rounded mr-1 ${ki[e]}`},String(t)),Ii="absolute left-0 -bottom-3 w-full h-0.5",Ti=u((({className:e="",active:t,bgColor:l="bg-white",dataItemName:n,children:r,...i})=>{const a=we(),{href:s,target:o,text:c,onClick:d}=a(i);return h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:s,target:o,"data-item-name":n,onClick:d,children:[m("span",{className:Bi(l,t),children:c||r}),t?m("div",{className:Ri(l,t)}):null]})})),Bi=(e,t=!1)=>{let l="text-white";return"bg-white"===e&&(l=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${l} font-sans text-l-light`},Ri=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ii}`:Ii,ji=u((({className:e,active:t,bgColor:l,observerOptions:n,onVisibilityChange:r,children:a,...s})=>{const o=$(i((e=>{if(!e.length||!r)return;const t=e[e.length-1];r(t.isIntersecting)}),[r]),n);return m("span",{ref:o,children:m(Ti,{className:e,active:t,bgColor:l,...s,children:a})})})),Vi=u((({subItems:e=[],bgColor:t})=>{const l=(e=>(t=[])=>{const l=t?.filter(ei(e));return l?.length?cl((e=>e.href?.length||0))(l):void 0})(ye())(e),[r,i]=n(e.length),o=e.slice(r),c=s(null),d={rootRef:c},u=a((()=>e.map(((e,t)=>e=>{i(e?_i(t):Li(t))}))),[e]);return h("nav",{className:"relative mt-6",children:[m("div",{ref:c,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>m(ji,{className:"mr-8 "+(r-1<n?"invisible":""),active:e===l,bgColor:t,observerOptions:d,onVisibilityChange:u[n],...e},String(n))))}),o.length?m($i,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:o,activeItem:l,bgColor:t}):null]})})),_i=e=>t=>Math.max(t,e+1),Li=e=>t=>Math.min(t,e),Mi={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ai=u((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,...n})=>{const r=ye(),{topItems:i,logo:a,defaultLocation:s,foreignOffices:c,officesLink:d}=hr(o.SITEMAP||"sitemap",n.options?.page?.fallback),u=i?.find(ti(r)),p=i?.map(((t,l)=>m(ni,{active:t===u,"aria-label":t.text,bgColor:e,...t},String(l))));return m(R,{tag:"header",className:`pt-6 px-20 ${e} ${t} ${l&&u?.items?.length?"pb-4":"pb-5"}`,...n,children:h("div",{className:"container",children:[h("div",{className:"flex items-center",children:[m(fr,{className:"mr-8",bgColor:e,logo:a}),p,m(Ci,{className:"ml-auto",foreignOffices:c,defaultLocation:s,officesLink:d,bgColor:e})]}),m("div",{className:`mt-6 h-px ${Mi[e]}`}),l&&u?.items?.length?m(Vi,{subItems:u.items,bgColor:e}):null]})})})),Di=u((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",options:r,...i})=>m(R,{className:["grid grid-cols-12",l?"p-12":"",ne[t],re[n],e].filter(Boolean).join(" "),...i,children:w({...i,options:r})})));Di.childrenTypes={exclude:["HorizontalLayout"]};const zi=u((e=>{const{className:t,image:l,...n}=e;return m(R,{className:t,...n,children:m(Y,{image:l})})})),Oi=u((({className:e="",cards:t=[],button:l})=>{const[r,a]=n(0),s=i((e=>a(e)),[]),o=t.length,[c,d]=tt({itemCount:o,visibleItemCount:2}),{canDec:u,canInc:p}=d,x=t[c]?.href;return h("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[h("div",{className:"relative overflow-hidden",children:[o?Pi({activeIndex:c,cards:t,selectedCardIndex:r,onClick:s}):null,it({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),u?m("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,p?m("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),m(Le,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function Pi({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const r=460*e,i=t.length>2?"justify-start":"justify-center";return m("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-12",children:m("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return h("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?m(Y,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,h("div",{className:"flex gap-3.5",children:[e?.sum?Ei("страховая сумма",e.sum):null,e?.fee?Ei("страховой взнос",e.fee):null]}),Fi(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function Ei(e,t){return h("div",{className:"flex flex-col text-left whitespace-pre",children:[h("span",{className:"text-h6",children:[at(t)," ₽"]}),m("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Fi(e){return e?m(Y,{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 Ui=u((({className:e="",title:t,insuranceTabs:l=[],button:r,...a})=>{const[s,o]=n(0),c=i((e=>o(e)),[]);return h(R,{className:`box-border py-12 overflow-hidden relative font-sans w-100 bg-white ${e}`,...a,children:[t?m(V,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?m("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return m("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,m("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Hi({insuranceTabs:l,button:r})})]})})),Hi=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>m(Oi,{button:t,cards:e},String(l)))):null};function Xi(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Gi={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Wi={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Ji=u((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:r,investmentColumns:i,...a}=e,s=i?[...i]:[];return r&&s.unshift(r),m(R,{className:`font-sans bg-white px-9 py-12 ${t}`,...a,children:h("div",{className:"container text-m-light",children:[s?.length?h("div",{children:[h("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[Xi(m("div",{className:"w-px h-4 bg-gray"}))(s.map(Yi)),m("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),m("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),m("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(qi)})]}):null,l?.length?m(Ol,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Yi=(e,t,l)=>{const n=1===t,r=t===l.length-1;return m("div",{className:`${Zi(n,r,e.cells)}`,children:e.cells?.length?m("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Ki)}):null},`column_${t}`)},Zi=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Ki=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?m("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Wi[l]} ${Gi[n]} ${"XS"===l?"px-3":"px-11"}`,children:m("div",{className:"text-center",children:e.text})},`cell_${t}`):null},qi=(e,t,l)=>{const n=0===t,r=t===l.length-1;return m("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${r?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Qi=u((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:r,icon:i})=>{const{text:a,fileSize:s,...o}=r;return h("a",{className:e,role:"link",...o,children:[i?m(Y,{className:t,image:ie(i),width:"24px",height:"24px",asSVG:!0}):null,a?h("span",{className:l,children:[a,m("span",{className:n,children:o?.href&&ea(ta(o.href),s)})]}):null]})})),ea=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ta=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},la=u((({className:e="",doc:t,icon:l})=>m(Qi,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:l}))),na=u((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?m("div",{className:e,role:"list",children:t.map(((e,t)=>m("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:m(la,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),ra={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},ia=u((({className:e="",title:t,description:l,align:n="text-center",documents:r,icon:i={icon:"DocIcon"},columnsMode:a="double",...s})=>h(R,{className:`font-sans text-primary-text p-12 bg-white ${e}`,...s,children:[m(Ue,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2",...s}),m(na,{className:`mt-8 ${ra[a]}`,columnsMode:a,documents:r,icon:i})]}))),aa=u((e=>m(Wr,{...e,version:"mini"}))),sa=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function oa(e=""){const t=sa(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const ca=u((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:r="primary",items:i,image:a,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const u="primary"===r?"text-primary-text":"",p="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=n?.map((e=>({...e,className:"min-w-[168px]"})));return h(R,{className:`flex justify-between font-sans p-12 box-border relative min-h-80\n ${oa(e)}\n ${ee[r]}\n ${e}`,...d,children:[h($l,{className:"z-10",title:t?m(V,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full\n ${u} ${C[o]}`}):null,buttons:n?.length?m(De,{buttons:x,className:"flex gap-4 mt-8",...d}):null,children:[ma(c),h("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?m("div",{className:`flex justify-center mr-5 bg-white rounded-md ${p}`,children:m(Y,{className:"w-fit",image:l})}):null,da(r,i)]})]}),a?.src?m("div",{className:"absolute right-0 bottom-0",children:m(Y,{image:a})}):null]})})),da=(e,t)=>t?.length?m(Ol,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):m("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),ma=e=>e?m("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,ha=[{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 ua(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),i=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(i),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const pa={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"},xa=e=>m("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(pa).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),ga={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},ba=(e,t,l)=>h("div",{className:`${Object.values(ga).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[m(O,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),m("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"})]}),fa={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"},va=(e,t,l)=>m("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(fa).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:m(O,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Na=e=>globalThis[e];const ya=()=>function(e,t){const[l,a]=n(),s=i((()=>a(Na(e))),[e]);return r((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),a(void 0)}}if(!Na(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${o.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),wa={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"},Ca=u((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return m("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(wa).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:m(O,{name:l,width:"20",height:"16"})})})),ka={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"},$a=u((({points:e,className:t="",zoom:l=5,showSearchField:i=!1})=>{const a=s(null),o=ya(),[c,d]=n(),[u,p]=n(Ba(ha)),x=Sa(e);if(r((()=>{a?.current||o?.ready((()=>{a.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),ua(o,a.current,u)}))}),[o,a,u]),r((()=>{if(a.current&&u&&o){const e=u.length<1?Ba(ha):u;ua(o,a.current,e)}}),[a,u,o]),!o)return null;const g=c?"z-[100000]":"z-10";return h("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[m("div",{className:`absolute flex left-2 top-4 w-[50%] ${g}`,children:i?ba(ha,0,(e=>{if(e){const t=Ba(e);p(t)}})):xa(x)}),m("div",{className:`${Object.values(ka).join(" ")} ${g} right-2 top-4 bg-white`,onClick:()=>{const e=a.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:m(O,{name:"FullScreenIcon",width:"16",height:"16"})}),h("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${g}`,children:[m(Ca,{yandexMaps:a}),m(Ca,{yandexMaps:a,direction:"out"})]}),va(a.current,o,`right-2 top-80 ${g}`)]})})),Sa=e=>[Ta(Ia(e,0)),Ta(Ia(e,1))],Ia=(e,t)=>e.map((e=>e[t])),Ta=e=>e.reduce(((e,t)=>e+t))/e.length,Ba=e=>e?e.map((e=>e.coords)):null,Ra=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],ja=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?h("div",{className:"flex",children:[m("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}),m("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):m("div",{className:"flex",children:m("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Va=({icon:e,title:t,distance:l,time:n},r)=>h("div",{className:"flex mr-4",children:[m(O,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?h("span",{className:"text-m",children:[t," "]}):null,h("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${r}`),_a=({title:e,status:t,workTime:l,lunchHour:n,description:r},i)=>h("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[h("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[m("div",{children:e}),t?null:m("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?m("div",{children:l}):null]}),t&&n?La(n):null,r?m("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${i}`),La=e=>/\d+/gi.test(e)?h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[m("div",{children:"Перерыв"}),m("div",{children:e})]}):m("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:m("div",{children:e})}),Ma={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function Aa(e){return e?St(e,{method:"GET"}):{}}const Da=u((({className:e=""})=>{const t=function(e){const{data:t}=kt(e?`/api/v1/branches?regionCode=${e}`:void 0,Aa);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),Ma}("000"),{name:l,address:n,gpsLatitude:r,gpsLongitude:i,workSchedule:a}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:u,workingSaturday:p,workingSunday:x}=a,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=a,N=r&&i?[r,i]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:u,workTime:g,lunchHour:b},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return h("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[h("div",{className:"flex flex-col px-12 pt-12",children:[h("div",{className:"flex justify-between",children:[m("div",{className:"text-h2",children:l}),ja(C)]}),h("div",{className:"flex text-l-light pt-4",children:[m(O,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),m("div",{className:"flex pt-4",children:Ra.map(Va)})]}),h("div",{className:"flex justify-between pt-8",children:[m("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?m($a,{points:[N],className:"h-full"}):null}),m("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(_a)})]})]})})),za=u((({className:e="",title:t,servicesList:l,...n})=>h(R,{className:`font-sans bg-white p-8 flex flex-col ${e}`,...n,children:[t?m(V,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?m("ul",{className:"list-none m-0 p-0",children:l.map(Oa)}):null]}))),Oa=(e,t)=>h("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?m(Y,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:ie(e.icon)}):null,e.label?m("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Pa=u((({className:e="",...t})=>m(R,{className:`font-sans text-primary-text ${e}`,...t,children:w(t)})));Pa.childrenTypes=["OtherProductsItem"];const Ea=u((({className:e="",label:t,icon:l,dataTheme:n="",onClick:r})=>h("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:r,children:[m("span",{className:"text-h4 pr-3",children:t}),l?m(Y,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Fa=({isUnfolded:e,onToggle:t})=>m(Ea,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Ua=["ArrowDownIcon","ArrowUpIcon"],Ha=u((({className:e,label:t="",isUnfolded:l,...n})=>{const{colorPalette:r}=function(e,t){const{content:l}=function(e){return e?.parent||{}}(e);return l||t}(n.options,{});return m("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:m(A,{unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m("div",{className:"box-border",children:m(D,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:w(n)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>m(Ea,{label:t,icon:Ua[Number(e)],dataTheme:r||n.options?.page?.colorPalette,onClick:l})})})}));Ha.childrenTypes=[];const Xa=u((e=>{const{className:t,text:l,size:n,color:r,align:i,font:a,...s}=e;return m(R,{className:t,...s,children:m(_,{size:n,color:r,align:i,font:a,children:l})})})),Ga={primary:"text-primary-text",secondary:"text-white"},Wa={primary:"text-secondary-text",secondary:"text-white"},Ja=u((e=>{const{className:t="",icon:l,label:n,description:r,version:i="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return h("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[l?m("div",{className:Ya(i,a),children:m(Y,{className:"w-6 h-6",image:ie(l,s),asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[n?m("div",{className:`text-h6 ${Ga[i]}`,children:n}):null,r?m("div",{className:`text-m-light ${Wa[i]}`,children:r}):null]})]})}));function Ya(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const Za=u((({className:e="",title:t,description:l,image:n,benefits:r,version:i="primary",sum:a,monthLimit:s,directionRight:o=!1,...c})=>h(R,{className:`relative font-sans py-12 px-24 ${ee[i]} ${e}`,...c,children:[m(Ue,{className:"!p-0",title:t,description:l,headlineVersion:"M",bgColorHeadline:i,...c}),h("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?m(Y,{className:o?"order-2":"",image:n}):null,h("div",{className:"w-[558px] m-auto",children:[r?.length?m("div",{className:"flex flex-col gap-4",children:r.map(Ka(i))}):null,qa(Number(a),Number(s))]})]})]}))),Ka=e=>(t,l)=>m(Ja,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function qa(e,t){return e||t?h("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Qa("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Qa("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Qa(e,t=0,l=!1){return h("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[m("span",{className:"text-secondary-text text-l-light",children:e}),h("span",{className:"text-primary-main text-h6",children:[at(t)," ₽"]})]})}function es(e=""){const t=sa(e);return t<=4?"S":t<=8?"M":"L"}function ts(e=""){const t=sa(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ls=u((({className:e,title:t,description:l="Блок в разработке...",...n})=>h(R,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${ts(e)} ${oa(e)} `,...n,children:[m(Ue,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:es(e),...n}),m("figure",{className:"m-0 min-w-[80%]",children:ns()})]}))),ns=(e=3)=>is(100,e).map((e=>Math.floor(e))).map(rs),rs=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),is=(e,t)=>[e].concat(t>0?is(e/1.618,t-1):[]),as=u((({className:e="",children:t,...l})=>{const n=we(),{text:r,href:i,target:a,onClick:s}=n(l);return i?m("a",{className:`no-underline ${e}`,href:i,target:a,onClick:s,children:m("span",{className:e,children:r||t})}):m("span",{className:e,children:r||t})})),ss=(e="primary",t="normal")=>({icon:l,label:n,description:r},i)=>m(Ja,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(i)),os=u((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:r=3,benefits:i,benefitsVersion:a,buttons:s,footnote:o,image:c,items:d,version:u="primary",isDotted:p=!0,textBlockClassName:x="",...g})=>{const b=i?.filter((e=>e.label))?.length,f=cs(r);return h("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[h("div",{className:`flex flex-col ${x}`,children:[m(Ue,{title:t,description:n,className:"!p-0 max-w-[600px]",bgColorHeadline:u,headlineVersion:l,align:"text-left",...g}),h("div",{className:"flex flex-col justify-between h-full",children:[h($l,{buttons:s?.length?m(De,{buttons:s,className:"flex gap-4",...g}):null,children:[b?m("div",{className:f,children:i.map(ss(u,a))}):null,d?.length?m(Ol,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",version:u,isDotted:p}):null]}),o?m("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&m(Y,{className:"mt-[-50px]",image:c})]})})),cs=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function ds(e,t,l){const{text:n,href:r,target:i,onClick:a}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return h("div",{className:`flex items-center cursor-pointer ${l}`,onClick:a,children:[m(Le,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:r,target:i,children:m(Y,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?m("span",{className:"text-m",children:n}):null]})}const ms={primary:"text-secondary-text",secondary:"text-white/80"},hs=u((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:r="primary",...i}=e,a="primary"===r?r:"white";return h(R,{className:`font-sans overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${ee[r]} ${t}`,...i,children:[n?.text?ds(n,a,"mb-10 -mt-2.5"):null,l?.length?m("div",{className:"text-xs-light mb-6",children:Xi(m("span",{className:`mx-2 ${ms[r]}`,children:"/"}))(l.map(((e,t)=>m(as,{className:ms[r],...e},String(t)))))}):null,m(os,{version:r,...i})]})})),us={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},ps=u((({className:e="",slides:t=[],version:l="primary",...r})=>{const a=t.map((e=>e.nav)),s=t.map((e=>e.productBlock)),[o,c]=n(0),d=i((e=>c(e)),[]);return h(R,{className:`box-border pt-12 overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${ee[l]}`,...r,children:[m("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,t)=>function(e,t){const{version:l}=e,n=l?us[l].title:"";return m("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:m("div",{className:"flex grow",children:m(os,{className:`pl-12 z-10 ${n}`,textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...r,version:l},t)))}),m("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n,version:r}){const i=l?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${ee[r]}`,a=l?"text-primary-text !text-h6 p-2":`text-l pb-1 ${us[r].title}`,s=l?"text-secondary-text text-l-light":`text-m-light ${us[r].text}`;return m("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${i} ${kl[r]}\n `,children:h("div",{className:"border-0 px-6",children:[m("div",{className:`last:pb-0 ${a}`,children:e?.title}),m("div",{className:`text-secondary-text ${s}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===o),onClick:()=>d(t),version:l})))})]})}));const xs={primary:"text-secondary-text",secondary:"text-white"};function gs(e,t,l="primary"){if(!e)return null;return m("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:m(_,{size:"text-m",font:"font-light",color:xs[l],children:e})})}const bs=u((e=>{const{__html:t=""}=e;return m("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})}));function fs(e){throw new Error(e)}const vs={primary:"text-secondary-text",secondary:"text-white"},Ns=(e="primary")=>(t,l)=>{const{type:n}=t;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return[m(Z,{size:"text-h6",children:t.label},`label-${l}`),m(Z,{size:"text-m-light",color:vs[e],children:t.description},`desc-${l}`)];case"rte":return m(bs,{__html:t.__html});default:fs(t)}};function ys(e,t){return e?.src?m(Y,{className:`absolute ${t?"right-0":"left-0"} bottom-0`,image:e}):null}const ws=u((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:r,benefits:i=[],buttons:a,image:s,isImageOnRightSide:o=!0,version:c="primary",...d})=>h(R,{className:`overflow-hidden font-sans p-9 box-border relative min-h-[364px]\n ${ee[c]} ${ts(e)} ${e}`,...d,children:[h("div",{className:"flex flex-col "+(o?"":"items-end"),children:[m(Ue,{className:"!p-0 !bg-transparent z-10 "+(t||n?"mb-3.5":""),as:"h2",title:t,description:n,headlineVersion:l,bgColorHeadline:c,align:"text-left",...d}),Cs(i,c,s),gs(r,s),a?.length?m(De,{buttons:a,className:"mt-5 gap-4 z-10 text-l"}):null]}),ys(s,o)]})));function Cs(e,t,l){if(!e.length)return null;return m("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${l?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(Ns(t)):null})}const ks=u((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,buttons:r=[],version:i="primary",...a})=>m(R,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${ee[i]} ${ts(e)} ${oa(e)} `,...a,children:m($l,{title:t?m(Ue,{title:t,className:"!p-0 max-w-[600px]",headlineVersion:es(e),bgColorHeadline:i,align:"text-left",as:"h2",...a}):null,buttons:r?.length?m(De,{buttons:r,className:"flex gap-3"}):null,children:h("div",{className:"mt-1.5",children:[l?m("div",{className:"text-s mb-2",children:$s(l)}):null,m("div",{className:"text-l",children:n})]})})})));function $s(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Ss=u((({className:e="",title:t,description:l,items:n,image:r,version:i,socialMedia:a,button:s})=>{const o=t?m(V,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?m(Y,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return m("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",children:m($l,{className:"flex justify-between",title:o,image:c,children:h("div",{className:"h-full flex flex-col justify-between",children:[l?m("span",{className:"mb-2",children:l}):null,n?.length?m(Ol,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n,version:i}):null,a?m(Ql,{className:"pt-10 pb-0",media:a,version:i}):null,s?.text?m("div",{className:"pt-2",children:ze({button:s,buttonClassName:"mt-16 px-5"})}):null]})})})})),Is="absolute top-0 bottom-0 w-[84px]",Ts=u((({recommendations:e=[],className:t="",title:l,version:n="primary",...r})=>{const[i,a]=tt({itemCount:e.length,visibleItemCount:2});return h(R,{className:`relative font-sans p-9 overflow-hidden text-center ${ee[n]} ${t}`,...r,children:[l?m(V,{headingType:"h3",className:"mb-6",title:l}):null,h("div",{children:[m("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*i}px)`},role:"list",children:e.length?e.map(((e,t)=>m(Ss,{version:n,className:kl[n],...e},String(t)))):null}),it({...a,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),m("div",{className:`${Is} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),m("div",{className:`${Is} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Bs=u((e=>{const{__html:t,...l}=e;return m(R,{...l,children:m(bs,{__html:t})})})),Rs=u((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:r="primary",...i})=>m("div",{className:`border-b border-solid border-main-divider w-full ${e}`,children:m(A,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m("div",{className:"box-border",children:m(D,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:w(i)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>js({isUnfolded:e,onToggle:l,label:t,version:r})})})));Rs.childrenTypes={exclude:["RollupItem","Accordion","AccordionItem","OtherProducts","OtherProductsItem","VerticalLayout"]};const js=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=l?[l,l]:["Развернуть","Скрыть"];return"primary"===n?m(Vs,{icon:["PlusIcon","MinusIcon"][Number(e)],label:r[Number(e)],onClick:t}):m(Ea,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:r[Number(e)],onClick:t})},Vs=u((({label:e,icon:t,onClick:l})=>h("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[m("span",{className:"text-xl font-medium pr-2.5",children:e}),t?m(Y,{image:ie({icon:t}),width:"24",height:"24",asSVG:!0}):null]}))),_s=[];const Ls=async e=>await St(e,{method:"GET"})||_s,Ms=u((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:r="",setSelected:i,label:a})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return m(Kn,{options:s,label:a,placeholder:r||n,onChange:e=>i(e.key),value:o})})),As=u((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:r,onSelectedBranch:i})=>h("div",{className:"flex justify-between gap-4 mb-6",children:[m("div",{className:"max-w-[396px] w-1/2",children:m(Ms,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),m("div",{className:"max-w-[396px] w-1/2",children:m(Ms,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Ds=u((({name:e,text:t,value:l,checked:n,onChange:r,className:i})=>m("div",{className:i,children:h("label",{className:"font-sans flex items-center relative cursor-pointer",children:[m("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=>r(e.target.value)}),t?m("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),zs=u((()=>{const[e,t]=n("option2"),l=i((e=>t(e)),[]);return h("div",{children:[m(Ds,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),m(Ds,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Os=["От 1 дня","До 365 дней"],Ps=u((({days:e,setDays:t})=>h("div",{className:"mb-6",children:[m("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),m(vt,{min:1,max:365,value:e,items:Os,onChange:t})]}))),Es=u((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:r,onSelectedBoxSize:i})=>h("div",{className:"flex justify-between mb-6",children:[m("div",{className:"mr-4 w-full",children:m(Ms,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),m("div",{className:"w-full",children:m(Ms,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Fs=u((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:i,selectedBoxSize:a,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>h("div",{className:"flex-1 mr-9",children:[m(As,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Us(c)}),m(Ps,{days:r,setDays:e=>c({days:e})}),m(Es,{caseVolumes:o,selectedCaseVolume:i,onSelectedCaseVolume:Hs(c),safeBoxCases:s,selectedBoxSize:a,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),m("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),h("div",{className:"flex justify-between items-center mt-5",children:[m(zs,{}),m(Le,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Us=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Hs=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Xs=u((({days:e,tariffs:t=[]})=>{const l=Ws(e,t);return h("div",{className:"flex flex-col justify-between",children:[h("div",{className:"flex",children:[Gs("Аренда за",e,"mr-11"),Gs("Цена",l+" ₽")]}),h("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[m(Y,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),h("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",m("br",{})," листов формата А4"]})]})]})})),Gs=(e,t,l="")=>h("div",{className:l,children:[m("div",{className:"text-m-light text-secondary-text mb-1",children:e}),m("span",{className:"text-h3 text-primary-text",children:t})]}),Ws=(e,t)=>{const l=Js(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},Js=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},Ys=(e,t)=>e.find((e=>e.branchCode===t)),Zs=u((e=>{const{regions:t,data:l,branches:n,onChange:i,onClick:a}=e;r((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,i]);const s=Ys(n,l.selectedBranch),o=Ks(s?.safeBoxCaseVolumes),c=qs(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=Qs(c,l.selectedBoxSize);return h("div",{className:"flex justify-between align-top mb-6",children:[m(Fs,{...l,regions:t,onClick:a,branches:n,caseVolumes:o,safeBoxCases:c,onChange:i}),m(Xs,{days:l.days,tariffs:d})]})})),Ks=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],qs=(e,t)=>e?.find((e=>e.volume===t)),Qs=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const eo=u((({title:e,footnote:t,className:l="",...r})=>{const[a,s]=n(!1),o=i((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),u=function(){const{data:e}=kt("/api/v1/regions",It);return e||[]}(),p=to(c.selectedRegion,u),x=function(e){const{data:t}=kt(e?`/api/v1/safeboxes?regionCode=${e}`:null,Ls);return t||_s}(p),g=i((e=>d((t=>({...t,...e})))),[d]),b=(f=Ys(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return h(R,{className:l,...r,children:[h("div",{className:"font-sans bg-white px-8 py-12",children:[e?m(V,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,m(Zs,{regions:u,branches:x,data:{...c,selectedRegion:p},onClick:o,onChange:g}),t?m("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&a?m($a,{points:b,className:"h-[640px]"}):null]})})),to=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,lo=e=>Boolean(e?.icon||e?.src),no=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?m(Ol,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,ro=({styleMap:e,isMainButton:t,version:l})=>(n,r,{length:i})=>{const{label:a,description:s,button:o,items:c,isDotted:d}=n,u=a&&(s||c)?"mt-2":"";return h("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${oo(i)}`,children:[h("div",{className:(o?.text?"mb-8":"")+" text-center",children:[io(a),h("div",{className:`${u} flex flex-col items-center`,children:[ao({description:s,className:e.description}),no({items:c,isDotted:d,version:l,className:so({className:"text-left",description:s,styleMap:e})})]})]}),o?.text&&!t?m(Le,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(r))},io=e=>e?m("div",{className:"text-h6",children:e}):null,ao=({description:e,className:t=""})=>e?m("div",{className:t,children:e}):null,so=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),oo=e=>e<5?"w-[276px]":"w-[210px]",co={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},mo=u((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...i})=>{const{title:a}=i,s=co[r],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=a?"mt-9":"",u=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return h(R,{className:["box-border py-12 font-sans",o?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",s.background,s.title,e].join(" "),...i,children:[a?m(V,{headingType:"h3",className:"max-w-[752px] text-center",title:a}):null,l?.length?h("div",{className:`box-border ${d}`,children:[m("div",{className:`flex items-center ${u}`,children:Xi(m("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(ho(s,r)))}),m("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(ro({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?m(Le,{className:"mt-8 min-w-60",version:"primary",...n}):null]})})),ho=(e,t)=>({icon:l},n)=>m("div",{className:"flex flex-col items-center text-center",children:m("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:lo(l)?m(Y,{image:ie(l||{},t),width:"48",height:"48",asSVG:!0}):m("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n)),uo={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},po={"horizontal-list":"w-6","vertical-list":"h-6"},xo=u((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list"})=>l?m("div",{className:`flex gap-2 ${uo[n]}`,children:new Array(l).fill(null).map(((l,r)=>m("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 ${r===t?po[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"})})(r)},String(r))))}):null)),go=u((({className:e="",gap:t=14,padding:l=16,showDots:n=!0,children:r,onVisibleIndicesChange:i,listType:a="horizontal-list"})=>{const s=Array.isArray(r)?r.length:0,[o,c]=ul({itemCount:s,onVisibleIndicesChange:i}),[d]=c.visibleIndicesRange;return h("div",{className:ll(e,"vertical-list"===a?"relative h-full":""),children:[m(il,{containerRef:o,activeIndex:d,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:c.handleVisibleIndicesChange,listType:a,children:r}),n?m(xo,{containerRef:o,activeIndex:d,dotCount:s,listType:a}):null]})})),bo=u((({gap:e,listType:t,padding:l,showDots:n,options:r,...i})=>m(R,{...i,children:m(go,{gap:e,listType:t,padding:l,showDots:n,children:w({...i,options:r})})})));bo.childrenTypes={exclude:["SwipeListControlBlock"]};const fo="h-12 flex-1 flex items-center justify-center cursor-pointer",vo="bg-primary-main",No="group bg-white",yo="font-sans text-m",wo="text-white",Co="text-secondary-text group-hover:text-primary-main",ko=u((e=>{const{tab:t,currentTab:l}=e,n="link"===l?.type&&l.href===t.href,r=we()(t);return m("a",{role:"tab",className:`${fo} ${n?vo:No}`,target:t.target,href:r.href,onClick:r.onClick,children:m("span",{className:`${yo} ${n?wo:Co}`,children:t.text})})})),$o=(e,t)=>m("h3",{className:`${yo} ${t?wo:Co}`,children:e}),So=(e,t)=>m("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),Io=({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,i)=>{const a=r.type;if("group"!==a&&"link"!==a)return null;switch(a){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,i)=>{const a=t===r,s=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return m("div",{className:`${fo} ${a?vo:No}`,role:"tab","aria-selected":a,onClick:()=>n(r),children:h("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?$o(r.title,a):null,l&&s?So(s,a):null]})},String(i))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,i);case"link":return m(ko,{tab:r,currentTab:t},String(i));default:fs(a)}},To=u((e=>{const{className:t="",tabs:l,showCounter:a,isSticky:s,...o}=e,[c,d]=n(l?l[0]:void 0);r((()=>k.inst.subscribe("tab",(e=>{const t=l?.find(Bo(e));"link"===e.type&&t&&d(t)}))),[l]),r((()=>"group"===c?.type?k.inst.subject("tab",{label:c.ref}):void 0),[c]);const h=i((e=>{"group"===e?.type&&k.inst.fire("tab",{type:e.type,label:e.ref}),d(e)}),[]);return m(R,{className:`${s?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${t}`,role:"tablist",...o,children:l?.map(Io({onClick:h,currentTab:c,showCounter:a,...o}))})})),Bo=e=>t=>"link"===t.type&&t.href===`#${e.label}`,Ro=u((({isOpen:e,onClick:t})=>h(Le,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[m("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),m(O,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),jo={Buttons:({buttons:e})=>e&&e?.length?m("div",{children:e.map((({rounded:e,...t},l)=>ze({button:{rounded:e,...t},buttonClassName:(l>0&&e?"ml-3":"")+" w-12 h-12"})))}):null,Img:({image:e})=>e?.src?m(Y,{image:e}):null,List:({isDotted:e,...t})=>m(Ol,{className:"flex flex-col justify-between items-start text-h6",version:"primary",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:u((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:r})=>e?m(Ro,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},Vo=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:i,openTableInnerIdx:a,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,u]=n(!0);r((()=>{t===a&&i||u(!0)}),[i,a]);return h("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?m("div",{className:"h-5"}):null,_o({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{u(!1),s(t),l(e)},isVisible:d}})]},String(c))},_o=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in jo))return null;return m(jo[l],{...t,...n})},Lo=u((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:a})=>m("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(Vo({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:a})):null}))),Mo=u((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=tt({itemCount:t,visibleItemCount:5});return h("div",{children:[e?.map(Ao(l)),it({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Ao=e=>(t,l)=>{if(!t?.length)return null;const[n,...r]=t,i=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),a=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return h("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?m("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,m("div",{className:"flex flex-grow overflow-hidden",children:m("div",{className:a,style:{transform:`translateX(-${i}px)`},children:r?.map(((t,l)=>h("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?m("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Do(t.cols,e):null]},`row${l}`)))})})]},String(l))},Do=(e,t)=>e?.length>0?m("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>m("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,zo=u((({activeTabIndex:e,items:t})=>{const[l,r]=n({}),a=i((e=>r((t=>({...t,[e]:!t[e]})))),[]);return m("div",{children:t.map(((t,n)=>{const r=`activeTabIdx:${e}-tableIdx:${n}`;return h("div",{className:"w-full",children:[h("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>a(r),children:[t.title,m(Y,{image:{icon:l[r]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),m("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[r]?"h-0":""),children:m("div",{className:"relative",children:m(Mo,{rows:t.rowsData})})})]},r)}))})})),Oo=u((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>h("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?m("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>m("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?m(Le,{href:t,version:"secondary",target:"_blank",appendLeft:m(O,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function Po(e){const t=await fetch(e);return await t.json()}const Eo=u((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:r}=function(e){const{data:t}=kt(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Po);return t||{}}(e),[a,s]=n(0),o=i((e=>s(e)),[]),c=r?.[a]?.items??[],d=r?.map((e=>e.currency??""));return h("div",r?{className:"bg-white z-10",children:[m(Oo,{currencies:d,activeTabIndex:a,setActiveTabIndex:o,linkToPDF:t}),m(zo,{activeTabIndex:a,items:c}),m(Ro,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[m("p",{children:"Данных нет"}),m(Ro,{onClick:l,isOpen:!0})]})})),Fo=u((({children:e,tableInner:t,onHideContentClick:l})=>h("div",{className:"self-start flex flex-col",role:"row",children:[m("div",{className:"flex",children:e}),t?m("div",{className:"origin-top animate-expansion",children:m(Eo,{...t,onClick:l})}):null]}))),Uo=u((({row:{header:e,data:t},activeIndex:l,rowIdx:r,...a})=>{const[s,o]=n(void 0),c=i((e=>o(e)),[]),[d,u]=n(void 0),p=i((e=>u(e)),[]);return h(Fo,{onHideContentClick:()=>o(void 0),tableInner:s,...a,children:[m("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:h("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?m(Y,{className:"mr-3.5 max-w-6 max-h-6",image:ie(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?m("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?m(Nn,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>m(Lo,{cells:e,rowIdx:r,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:p,...a},String(t))))}):null]})})),Ho=u((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:r,hiddenRowsNum:i=0,...a})=>{const s=r?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,u]=tt({itemCount:c,visibleItemCount:2}),p=(o||[]).map(((e,t)=>m(Uo,{row:e,activeIndex:d,rowIdx:t,...a},String(t)))),[x,g]=i>0?[p.slice(0,-i),p.slice(-i)]:[p,[]];return h(R,{className:`bg-white font-sans p-12 overflow-hidden text-primary-text relative ${c>1?"pr-0":""} ${e}`,...a,children:[Xo({title:t,description:l}),Go(l),i>0?m(A,{renderFoldableSection:({isUnfolded:e})=>h(Wo,{controls:u,children:[x,m(D,{isUnfolded:e,children:g})]}),renderFoldButton:Fa}):m(Wo,{controls:u,children:p})]})}));function Xo({title:e,description:t}){return e?m(V,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Go(e){return e?m("div",{className:"mb-9 text-center text-l",children:e}):null}const Wo=u((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return h("div",{role:"table",children:[h("div",{className:"relative",children:[e,it({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?m("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Jo={primary:"bg-white",secondary:"bg-primary-main","secondary-light":"bg-primary-main/10"},Yo=u((({className:e="",title:t,description:l,blockVersion:n="primary",iconVersion:r,image:i,...a})=>{const s="secondary"===n;return h(R,{className:`px-9 py-4 flex gap-3 ${Jo[n]} ${e}`,...a,children:["small"===r?m("div",{className:"mt-1",children:Zo(s)}):null,"big"===r?Ko(i):null,h("div",{children:[t?qo(t,s):null,l?m("div",{className:"mt-1",children:Qo(l,s)}):null]})]})})),Zo=e=>m("div",{className:"rounded-full h-4 w-4 text-center text-xs-light "+(e?"bg-white text-primary-main":"bg-primary-main text-white"),children:"i"}),Ko=e=>e?.src?m(Y,{image:e}):null,qo=(e,t)=>m(Z,{size:"text-l",font:"font-medium",color:t?"text-white":"text-primary-text",children:e}),Qo=(e,t)=>m(_,{size:"text-s",color:t?"text-white":"text-secondary-text",children:e}),ec=u((e=>{const{tags:t,className:l=""}=e;return t?.length?m("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(tc)}):null})),tc=(e,t)=>m("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),lc=u((e=>{const{title:t,headingType:l="h3",description:n,items:r,buttons:i,image:a,isDotted:s=!0,listItemSize:o="M",className:c="",version:d="primary",tags:u,children:p,...x}=e,g="primary"===d?"text-primary-text":"";return m(R,{className:`overflow-hidden font-sans p-9 pr-3 box-border ${c} ${ee[d]} ${ts(c)} ${oa(c)} `,...x,children:h($l,{title:t?m(V,{headingType:l,as:"h2",title:t,className:`whitespace-pre-wrap max-w-[600px] ${g}`}):null,buttons:i?.length?m(De,{buttons:i.map((e=>({...e,className:"min-w-[158px]"}))),className:"flex mt-8 gap-3",...x}):null,image:a?.src?m(Y,{className:"mt-auto ml-7",image:a}):null,children:[n?m("div",{className:"max-w-[600px] mt-2.5",children:m(_,{size:"text-xl-light",children:n})}):null,p,nc({version:d,isDotted:s,listItemSize:o},r),u?.length?m(ec,{tags:u,className:"mt-5"}):null]})})}));function nc({version:e,isDotted:t,listItemSize:l},n){return n?.length?m(Ol,{items:n,isDotted:t,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:e}):null}const rc={left:"items-start",center:"items-center",right:"items-end"},ic=u((({className:e="",gap:t="",align:l,isPadding:n=!1,isInnerPadding:r=!0,version:i="transparent",options:a,...s})=>{const o=r?"":"!p-0";return m(R,{className:["flex flex-col [&>*]:max-w-full",n?"p-12":"",ne[t],l&&rc[l],re[i],e].filter(Boolean).join(" "),...s,children:w({...s,options:{...a,className:o}})})}));ic.childrenTypes={exclude:["VerticalLayout"]};const ac=e=>sa(e)<10?"py-6 px-11":"py-12 px-32",sc=u((e=>{const{title:t,src:l,previewImg:n,className:r="",...i}=e;return h(R,{className:`bg-white ${ac(r)} ${r}`,...i,children:[m(Ue,{title:t,headlineVersion:"M"}),l?m("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:n?.src,style:{maxHeight:524},controls:!0,children:m("source",{src:l})}):null]})})),oc={Accordion:M,AccordionItem:q,BenefitsBlock:ce,Bonus:He,BonusBenefitsBlock:Je,BusinessBlock:Qe,ButtonBlock:et,Calculator:Wt,CardTransfer:tl,Carousel:gl,CarouselCard:Nl,CarouselCatalogCard:wl,CarouselInvestmentCard:Il,CarouselLinks:jl,CarouselProductCard:Fl,CarouselProgramsCard:Jl,CarouselRecommendationCard:en,CarouselTariffsCard:ln,Catalog:un,ComparisonTable:jn,ContactsBlock:_n,ErrorBlock:Dn,ExchangeRateTile:dr,Footer:Ar,Gallery:Jr,GracePeriod:Yr,Header:Ai,Headline:Ue,HorizontalLayout:Di,ImgBlock:zi,InsuranceAmountBlock:Ui,InvestmentInfo:Ji,LinkDocs:ia,MiniGallery:aa,MobileAppTile:ca,OfficeMap:Da,OfficeServicesBlock:za,OtherProducts:Pa,OtherProductsItem:Ha,ParagraphBlock:Xa,PictureText:Za,Placeholder:ls,ProductBlock:hs,ProductGallery:ps,ProductTile:ws,PromoTile:ks,Recommendation:Ts,RichTextBlock:Bs,RollupItem:Rs,SafeDepositRental:eo,StepsBlock:mo,SwipeListControlBlock:bo,Tabs:To,TariffsTable:Ho,TextBlock:Yo,Tile:lc,VerticalLayout:ic,Video:sc},cc=["Header","Footer"],dc=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function mc(e=B.inst,t=globalThis){const l=s(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{l.current&&l.current.set(e,t)}))),[e]),r((()=>{const n=((e,t=600)=>{let l;const n=(...r)=>{n.dispose(),l=setTimeout((()=>{e(...r)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!cc.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?dl(dc)(t):[];return l}([...l.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",n),()=>{n.dispose(),t.removeEventListener("scroll",n)}}),[e,t])}const hc=d();const uc=u((({className:e,onClick:t,ariaLabel:l})=>m("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:pc()}))),pc=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("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"}),m("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"})]})},xc=u((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await hc.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:i((async()=>{l(await hc.like(e))}),[e]),dislike:i((async()=>{l(await hc.dislike(e))}),[e])}}(ye().pathname);return h("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:[m(uc,{onClick:Ne(t.like),ariaLabel:"Поставить отметку «лайк»"}),m(uc,{onClick:Ne(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:t.likeCount})]})})),gc=u((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:r={}}=e,{style:i,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:l,blockDecorator:n,parent:r};return mc(),h("section",{className:`relative ${x(i)} ${t}`,"data-theme":c,children:[s?.header?m("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:y(s?.header,{...d,slotName:"header"})}):null,h("div",{className:"container grid grid-cols-12 gap-1",children:[y(a,d),s?.footer?y(s?.footer,{...d,slotName:"footer"}):null]}),o?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(xc,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));gc.childrenTypes=[],gc.slots=()=>["header","footer"];e.Blocks=oc,e.ContentPage=gc,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=d,e.handlerDecorator=Ne,e.joinList=Xi,e.packageVersion="0.7.1",e.projectSettings=o,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ve,e.useRouter=ye,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),r=l("useEffect"),a=l("useCallback"),i=l("useMemo"),s=l("useRef");const o=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH&&!this._.BASE_PATH.endsWith("/")?`${this._.BASE_PATH}/`:this._.BASE_PATH}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(c)||"");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(c,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/${o.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/${o.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,l){const{children:n,...r}=t||{},a=l?.slots?.default,i=n||a&&a();return e(Object.assign(r,i&&{children:i}),l)}return t.inheritAttrs=!1,t},x=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),g=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),b=[];function f(e,t){const{key:l,blockDecorator:n=g,blocksRegistry:r={},ancestors:a=b,className:i=""}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const o=s&&r[s];return n({blockClassName:x("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:a,render:({block:n,blockClassName:r})=>{const{content:a}=n;return o?m(o,{className:r,block:e,options:t,...a},l):null}},l)}const v=[],N=(e,{key:t,ancestors:l=v,slotName:n=null,renderChild:r=f,...a})=>(e||[]).map(((e,i)=>r(e,{...a,key:`${t||e.type}-${i}`,ancestors:a.parent?[...l||v,[a.parent,n]]:l})));function y({children:e,block:t,options:l,renderChild:n}){return e||(t&&l?N(t.blocks,{...l,parent:t,renderChild:n}):null)}const w={left:"text-left",center:"text-center",right:"text-right"};class C{static inst=new C;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function k(e,{sensitivity:t,rootRef:l}={}){const n=s(null),a=i((()=>({threshold:S(t),root:l?.current})),[t,l?.current]);return r((()=>{if(!n.current)return;const t=new IntersectionObserver(e,a);return t.observe(n.current),()=>{t.disconnect()}}),[e,a]),n}function S(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 $=e=>e?.replace("#",""),I=e=>`${globalThis.location?.pathname}#${$(e)}`;class T{static inst=new T;eventBus=new C;constructor(){const e=$(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=$(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",I(e))}replace(e){globalThis.history?.replaceState(null,"",I(e))}reset(){globalThis.history?.replaceState(null,"",I())}}const B={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","":""},R=u((({className:e="",version:t="primary",block:l,tag:i="section",role:s,children:o})=>{const c=i,d=function(e,t=T.inst){const l=k(a((l=>{if(!e||!l?.length)return;const n=l[l.length-1];t.eventBus.fire("intersection",{block:e,intersection:n})}),[e,t]),{sensitivity:1});return r((()=>{if(l.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{l.current&&e?.anchor===t&&l.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),l}(l),[h,u]=n(!0);return r((()=>C.inst.subscribe("tab",(e=>{if("group"===e.type){const t=l?.labels?.length||l?.anchor;u(!e.label||(!t||Boolean(l?.labels?.includes(e.label))))}else u(!0)}))),[l]),h?m(c,{className:x("group",B[t],e),...t?{"data-ver":t}:{},...l?.anchor?{id:l.anchor,ref:d}:{},role:s,children:o}):null})),V={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},j=u((({className:e="",headingType:t="h3",as:l="h3",title:n,children:r})=>m(l,{className:`font-sans m-0 ${V[t]} ${e}`,children:n||r}))),_=u((({children:e,...t})=>m("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),L=u((({children:e})=>m("ul",{className:"list-none m-0 p-0",children:e}))),M=u((({className:e="",title:t,accordionAlignTitle:l="center",description:n,...r})=>h(R,{className:`p-12 mb-1 last:mb-0 ${e}`,...r,children:[t?m(j,{headingType:"h3",as:"h2",className:`mb-2.5 ${w[l]}`,title:t}):null,n?m("div",{className:"mb-2.5",children:m(_,{size:"text-l",children:n})}):null,m(L,{children:y(r)})]})));M.childrenTypes=["AccordionItem"];const A=u((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:r,renderFoldButton:i})=>{const[s,o]=n(l),c=a((()=>{o((e=>!e))}),[]),d=r({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return h("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),D=u((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),m("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),z={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},O=u((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:r=n,iconVersion:a="color",asSVG:i,...s})=>{const c=`${o.CDN||""}icons/${l}.svg`;return i&&"normal"!==a?m(E,{className:e,children:h("svg",{className:x(P(s.width),z[a],"white"===a?"invert":"",t),...s,"aria-hidden":"true",children:[r?m("title",{children:r}):null,n?m("desc",{children:n}):null,m("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]})}):m("img",{className:e,src:c,alt:n,title:r,...s,"aria-hidden":"true"})})),P=e=>e?"":"w-full h-full",E=u((({className:e,children:t})=>e?m("div",{className:e,children:t}):t)),F=(e,t)=>e.media&&t.media?e.media-t.media:0,U=u((({className:e="",image:t,imageClassName:l="",isMobile:n=!1,pathPrefix:r})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(F).map((({src:e,format:l,media:n},a)=>m("source",{srcSet:G(e,r),type:W(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${a}_${e}`))):null,H({...t,src:X(t.src,r)},l,n)]})})),H=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,i=l?"m-auto":"m-0";return m("img",{src:e.src,className:`${i} ${t}`,alt:a,title:r,style:n,...e.size})},X=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,G=(e,t)=>e?.split(",").map((e=>X(e.trim(),t))).join(", ");function W(e){return e?`image/${String(e)}`:void 0}const J=u((({className:e="",image:t,imageClassName:l="",isMobile:n,pathPrefix:r,...a})=>t?.src||t?.icon?t.icon?m(O,{className:e,imageClassName:l,iconVersion:t?.iconVersion||"normal",name:t.icon,...a}):m(U,{className:e,imageClassName:l,image:t,isMobile:n,pathPrefix:r}):null)),Y=u((({children:e,...t})=>m("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),Z=["PlusIcon","MinusIcon"],K=u((({className:e="",label:t="",isExpanded:l,...n})=>m("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:m(A,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m(D,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:y(n)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>m(q,{label:t,icon:Z[Number(e)],onClick:l})})})));K.childrenTypes=[];const q=u((({label:e,icon:t,onClick:l})=>h("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[m(Y,{size:"text-xl",font:"font-medium",children:e}),m(J,{image:{icon:t},className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),Q=u((({className:e="",title:t,benefitList:l,...n})=>h(R,{className:`p-12 flex flex-col items-center ${e}`,...n,children:[t?m(j,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?m("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(ee)}):null]}))),ee=(e,t)=>{const l=e.description;return h("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?m(J,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon,asSVG:!0}):null,e?.icon?.src?m(J,{image:e.icon}):null,h("div",{className:"ml-5",children:[e?.label?m(j,{headingType:"h6",children:e.label}):null,te(l)]})]},String(t))},te=e=>{const t=e?.benefitType||null;return e&&t?m("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?ne(e):le(e)}):null},le=e=>e?.name||null,ne=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?m("ul",{className:t,children:e.items.map(((e,t)=>m("li",{children:e},`benefitListItem-${t}`)))}):null};const re=e=>e?.includes("//"),ae=e=>(e||"").replace(/\/?\?.*/,""),ie=e=>{if(!e||!re(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t},se=e=>{if(!e||!re(e))return;return new URL(e).pathname},oe=e=>e?.startsWith("#");var ce=Object.freeze({__proto__:null,isURL:re,withoutQuery:ae,getOrigin:ie,getPathname:se,getHash:e=>{if(!e||!re(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:oe});const de=(e,t)=>de._impl(e,t);function me(){return me._impl()}function he(){const e=me(),t=T.inst;return l=>{const n=((e,t)=>{if(!e)return e;const l=ie(t?.href);return l?e.replace(l,"")||"/":e})(l.href,e);return{...l,href:n,"aria-label":l.text,onClick:de((r=>{l.onClick&&l.onClick(r),ue(n,l.target)||(r?.preventDefault(),oe(n)?t.goto(n):n&&e.push(n))}),l)}}}de._impl=e=>e,de.setup=e=>{de._impl=e},me._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),me.setup=e=>{me._impl=e};const ue=(e,t)=>re(e)||t&&"_self"!==t||e?.startsWith("/"),pe={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:"","":""},xe="bg-main-divider text-main-disabled",ge={primary:xe,secondary:xe,white:xe,link:"",transparent:"","":""},be="text-center font-sans select-none",fe={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:"","":""},ve=u((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:r,version:a="primary"}=e;return h("div",{className:Ne(e),children:[n?m("div",{className:fe[a],children:n}):null,ye(e)?h("div",{children:[l?m("div",{className:"text-xs-light text-left",children:l}):null,m("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?m("div",{className:fe[a],children:r}):null]})})),Ne=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const r="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",ye(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},ye=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),we=({className:e,rounded:t,version:l})=>["inline-block",be,l?ge[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Ce=({className:e,rounded:t,version:l})=>[be,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",l?pe[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ke=u((({disabled:e,children:t,...l})=>{const n=he()(l),r=t??m(ve,{...n});return m(e?$e:Se,{...n,children:r})})),Se=u((({className:e="",href:t,rel:l,target:n,ariaLabel:r,version:a,rounded:i,onClick:s,children:o})=>m("a",{className:Ce({className:e,version:a,rounded:i}),href:t,rel:l,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),$e=u((({className:e,ariaLabel:t,version:l,rounded:n,children:r})=>m("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:we({className:e,rounded:n,version:l}),children:r}))),Ie=(e,{className:t="",buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text))?m("div",{className:x("flex",n?"flex-col gap-2":"gap-4",t),children:e.map(Te(l))}):null,Te=(e="")=>(t,l)=>{const{text:n,icon:r,iconRight:a,version:i,...s}=t||{},o="secondary"===i?"color":"white";return n?m(ke,{className:e,appendLeft:Be({...r,iconVersion:o}),appendRight:Be({...a,iconVersion:o}),version:i,text:n,...s},l?String(l):""):null},Be=e=>e?.icon||e?.src?m(J,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,Re={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Ve={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"},je=u((({className:e,title:t,description:l,headlineVersion:n="XL",align:r="text-center",as:a,version:i="",...s})=>{const o=Re[n];return h(R,{className:x("flex flex-col p-12",o.wrapper,e),version:i,...s,children:[t?m(j,{className:x("whitespace-pre-wrap",r),...o?.title,as:a||o?.title.as,title:t}):null,l?m(_,{color:"group-data-secondary:text-white/80",size:o.descriptionSize,align:r,children:l}):null]})})),_e=u((e=>{const{className:t="",title:l,description:n,bonusItems:r,...a}=e;return m(R,{className:`p-12 pb-9 ${t}`,...a,children:h("div",{className:"container",children:[m(je,{className:"!p-0",title:l,description:n,headlineVersion:"M"}),m("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,t)=>m("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:h("div",{className:"flex justify-between w-full",children:[h("div",{className:"flex flex-col justify-between mr-4",children:[h("div",{children:[m("div",{className:"text-h4",children:e.title}),m("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),Ie(e?.buttons)]}),e.bonusItemContent?.bonusType?Le(e.bonusItemContent):null]})},String(t)))):null})]})})})),Le=e=>m("div",{children:"count"===e.bonusType?Me(e):Ae(e)}),Me=e=>h("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?m("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?m("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Ae=e=>e.image?m(J,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,De=u((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:r,title:a,...i})=>h(R,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${l}`,...i,children:[m(je,{className:"!p-0 mb-8",title:a,description:r,headlineVersion:"M"}),e?.length?m("div",{className:`grid gap-1 ${w[t]} ${Oe(n)}`,children:e.map(ze)}):null]}))),ze=({icon:e,label:t,description:l},n)=>h("div",{className:"flex flex-col items-center text-h6",children:[l?m("span",{children:l}):null,e?m(J,{image:e,height:"180",width:"auto",className:"h-[180px] w-auto"}):null,m("div",{children:t?m("span",{children:t}):null})]},String(n)),Oe=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Pe=u((e=>{const{title:t,image:l,cardItems:n,button:r}=e;return h("div",{className:"border-gray border p-9 w-1/2",children:[l?h("div",{className:"flex justify-center",children:[l?.src?m(J,{className:"mb-5",image:l}):null,l?.icon?m(J,{image:l,asSVG:!0}):null]}):null,t?m(j,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?m("ul",{children:n.map(((e,t)=>Ee(e,String(t))))}):null,Ie([r],{buttonClassName:"mt-6"})]})})),Ee=(e,t)=>{const{icon:l,text:n}=e;return h("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?m(J,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,l?.src?m(J,{image:l}):null,m("span",{className:"text-xl-light",children:n})]},t)},Fe=u((({className:e="",title:t,cards:l,...n})=>h(R,{className:`p-12 pb-9 ${e}`,...n,children:[m(j,{headingType:"h3",title:t,className:"text-center mb-8"}),m("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>m(Pe,{...e},String(t)))):null})]}))),Ue=u((({button:e,...t})=>m(R,{...t,children:Ie([e])}))),He=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:r}=e,[i,s]=n(0),o=a((()=>s((e=>r?(e+1)%t:Math.min(e+1,t-1)))),[r,t]),c=a((()=>s((e=>r?(t+e-1)%t:Math.max(e-1,0)))),[r,t]),d=r||function(e,{itemCount:t,visibleItemCount:l,container:n}){if(l)return t>l;if(n){return n.scrollWidth*e/t+n.clientWidth<n.scrollWidth}return!1}(i,e)&&i<t-(l||1),m=r||i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const Xe=u((({className:e,disabled:t,...l})=>m(ke,{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:m(J,{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",asSVG:!0})}))),Ge=u((e=>m(Xe,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),We=u((e=>m(Xe,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Je({dec:e,inc:t,canDec:l,canInc:n,btnClass:r,className:a=""}){return l||n?h("div",{children:[l?m(Xe,{className:`absolute z-50 ${r[0]} ${a}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?m(Xe,{className:`absolute z-50 rotate-180 ${r[1]} ${a}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const Ye=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Ze=u((({title:e,value:t,postfix:l="",prefix:n,className:r=""})=>h("div",{className:`mb-7 ${r}`,children:[e?m("div",{className:"text-l-light text-secondary-text",children:e}):null,t?h("div",{className:"text-h3",children:[n," ",Ye(Math.round(t))," ",l]}):null]}))),Ke=2e6,qe=97e4,Qe=Math.round(23.5),et={minSum:6e4,maxSum:Ke,minMonths:13,maxMonths:60,rateBottomRange:12,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},tt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},lt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:5.9,isMonthlyInterestPayment:!0},nt=u((({rate:e,title:t="Ставка",unit:l,rateBlockClassName:n})=>h("div",{children:[m("div",{className:"text-l-light text-secondary-text",children:t}),h("div",{className:"flex justify-start",children:[m("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${n}`,children:String(e).replace(".",",")}),l?m("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]})]}))),rt=e=>e?m("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,at=(e,t,l)=>Math.max(t,Math.min(e,l)),it=e=>e.split(/\s+/).join(""),st=u((({className:e,title:t,items:l=[],min:n=1,max:r=100,step:a=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(at(Number(it(e.target.value)),n,r))},d={backgroundSize:`${(100*(i-n)/(r-n)).toFixed(2)}% 100%`};return h("div",{className:e,children:[h("label",{className:"block relative",children:[t?m("span",{className:"text-m-light text-primary-text",children:t}):null,m("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n 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",value:Ye(i),disabled:s,onChange:c,onBlur:c}),m("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:m("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:r,step:a,value:i,disabled:s,onChange:c,style:d})})]}),ot(l)]})}));function ot(e){return m("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>m("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const ct=1e3;function dt(e,t,l){const{moneyValue:n,minSum:r,maxSum:a,step:i=ct,isShowItems:s=!0}=t,o=[`От ${Ye(r)} ₽`,`До ${Ye(a)} ₽`];return m(st,{title:e,items:s?o:[],min:r,max:a,step:i,value:at(n,r,a),onChange:l})}const mt=new Map;function ht(e,t,{fallback:l}={}){const a=i((()=>ut(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>mt.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function ut(e){return e?Array.isArray(e)?e:e instanceof Function?ut(e()):[e]:[e]}async function pt(e,t){try{return await xt(e,t)}catch(e){console.error(e)}return null}async function xt(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function gt(e){const{data:t}=ht(`/wcms-resources/${e}.json`,xt);return t}const bt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,r=gt(t||"bonus-calculator-data")||tt,[a,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:r,maxBonus:a,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),a);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),a)*(12-i)]})(r,l,n);return{...r,...e,monthBonus:a,yearBonus:i}},ft=u((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[i,s]=n(6e3),o=a((e=>s(e)),[]),[c,d]=n(6e3),u=a((e=>d(e)),[]),p={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=bt(p,t);return h("section",{className:e,children:[h("div",{className:"w-[468px]",children:[dt("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),dt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},u)]}),m("div",{children:v>=0?m(nt,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),h("div",{className:"w-full max-w-[350px]",children:[N>=0?m(Ze,{title:"Баллов за год",value:N}):null,Ie(l,{className:"mt-7",isVertical:!0}),rt(r)]})]})})),vt=u((({className:e,viewBox:t,fill:l="none",width:n,height:r,paths:a,...i})=>m("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:r,children:a.map((({d:e,fill:t,...l},n)=>m("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),Nt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],yt=u((({className:e,text:t,checked:l,isRadio:n,onChange:r})=>m("div",{className:e,children:h("label",{className:"flex items-center relative cursor-pointer group/box",children:[m("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover/box:border-primary-hover\n ${n?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${l?"border-black":"border-gray"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l}),n?m("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):m(vt,{paths:Nt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?m("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),wt=u((({items:e,checkedItem:t,onChange:l})=>m("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>m(yt,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))})));function Ct(e,t,l){const{minMonths:n,maxMonths:r,monthsValue:a}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return m(st,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(r)}`],min:n,max:r,step:1,value:at(a,n,r),onChange:l})}const kt=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:r,moneyValue:a}=e,i=gt(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&r===e.isStateEmployee))||et,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=a<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:r}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,r)-1))}return Math.round(n/r)+n*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},St="annuity",$t="differential",It=[{id:St,text:"Аннуитетный"},{id:$t,text:"Дифференцированный"}],Tt=u((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[i,s]=n(!1),[o,c]=n(!0),[d,u]=n(!1),[p,x]=n(!1),[g,b]=n(qe),f=a((e=>b(e)),[]),[v,N]=n(Qe),y=a((e=>N(e)),[]),w=kt({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:p,moneyValue:g,monthsValue:v},t);return h("section",{className:e,children:[h("div",{className:"w-[468px]",children:[dt("Сумма кредита, ₽",{...w,step:500},f),Ct("Срок кредита, месяцев",w,y),h("div",{className:"mt-7",children:[m(yt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:u}),m(yt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:p,onChange:x}),m(yt,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),m(nt,{title:"Ставка",rate:w.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),h("div",{className:"w-full max-w-[350px]",children:[m(Ze,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:w.monthlyPayment,postfix:"₽"}),m(wt,{items:It,checkedItem:i?St:$t,onChange:e=>s(e===St)}),Ie(l,{className:"mt-7",isVertical:!0}),rt(r)]})]})})),Bt=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:r}=t;return l?Math.round(n*Math.pow((1200+e)/1200,r)-n):Math.round(n*e*30*r/365/100)},Rt="everyMonth",Vt="atEndTerm",jt=[{id:Rt,text:"Ежемесячно"},{id:Vt,text:"В конце срока"}],_t={CreditCalculatorForm:Tt,DepositCalculatorForm:u((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[i,s]=n(qe),o=a((e=>s(e)),[]),[c,d]=n(Qe),[u,p]=n(!1),x={moneyValue:i,monthsValue:c,isMonthlyInterestPayment:u},g=a((e=>d(e)),[]),b=((e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n}=e,r=gt(t||"deposit-calculator-data")?.rows.find((e=>l===e.isMonthlyInterestPayment))||lt,{rate:a}=r,i=Bt(a,e),s=n+i;return{...r,...e,income:i,finalSum:s}})(x,t),{income:f,finalSum:v,rate:N}=b;return h("section",{className:e,children:[h("div",{className:"w-[468px]",children:[dt("Сумма вклада, ₽",{...b},o),Ct("Срок вклада, месяцев",{...b},g)]}),m(nt,{rate:N||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),h("div",{className:"w-full max-w-[350px]",children:[f?m(Ze,{title:"Доход по вкладу",value:f,postfix:"₽",prefix:"+"}):null,v?m(Ze,{title:"Сумма в конце срока",value:v,postfix:"₽"}):null,m(wt,{items:jt,checkedItem:u?Rt:Vt,onChange:e=>p(e===Rt)}),Ie(l,{className:"mt-7",isVertical:!0}),rt(r)]})]})})),BonusCalculatorForm:ft},Lt=(e,t)=>{const l=e?.calcType;if(!l||!(l in _t))return null;const n=_t[l];return m("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:h("div",{className:"box-border p-9 w-full",children:[e?.title?m(j,{className:"text-center mb-6",title:e.title}):null,m(n,{...e,className:"flex justify-between"})]})},String(t))},Mt=u((({className:e="",calculatorTabs:t=[],...l})=>{const r=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=a((e=>o(e)),[]),[d,u]=He({itemCount:t?.length,visibleItemCount:3});return h(R,{className:`box-border overflow-hidden relative w-100 ${e}`,...l,children:[h("div",{className:"bg-white",children:[r.length>1?At({activeIndex:d,tabsNav:r,slideIndexShift:s,onClick:c}):null,Je({...u,btnClass:["left-3","right-3"],className:"top-8"})]}),m("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Lt):null})]})}));function At({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return h("div",{children:[m("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:m("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",a=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[m(J,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),h("div",{className:"border-0",children:[m("div",{className:`${a}`,children:e?.title}),m("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),m("div",{className:"w-full h-2 bg-primary-main"})]})}const Dt=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,zt=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Ot=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Pt=u((({className:e="",inputClassName:t="",id:l,name:n,type:r="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:u,...p})=>{const x=a((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=a((e=>{if(!u)return;const t=e.target.validity.valid?e.target.value:s;u(t)}),[u]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return h("div",{className:`relative ${e}`,children:[i?m("label",{className:"block text-m-light mb-2",children:i}):null,m("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:n||l,type:r,value:s,onChange:x,onBlur:g,...p}),c]})})),Et=u((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=Dt(zt(Ot(it(e))));const a=Ft(r,at(Number(r),l,n));t(String(a))}),[t]),s=a((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(it(l))).replace(",",".")))}),[t]);return m(Pt,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:m("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Ft=(e,t)=>Number(e)===t?e:String(t),Ut=u((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:r="1500",button:i,...s})=>{const[o,c]=n(""),d=a((e=>c(e)),[]),u=!Number(it(o)),p=u?we({version:i?.version}):Ce({className:"text-white",version:i?.version}),x=he();return h(R,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?m(j,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,h("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[m(Et,{name:"amount",value:o,onChange:d,valid:""===o||!u,placeholder:r,label:l}),i?.text?m("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:u,...x(i),children:i.text}):null]})]})})),Ht=u((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:r,children:i,onIntersection:s})=>{const o=k(a((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),r);return m("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(l===n),ref:o,children:i})})),Xt=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Gt=u((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:r=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",children:d,onVisibleItemsChange:h,onVisibleIndicesChange:u})=>{const p={sensitivity:1,rootRef:t},g=s([]),b=a(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),u&&u(Jt(l))}),[h,u]),f=n>0?r*Number(n)-1:0,v="horizontal-list"===o,N={...v?Wt(i,f):{},gap:`${r}px`};return m("div",{className:x("box-border overflow-auto no-scrollbar",o,e),style:N,role:"list",ref:t,children:(y=(e,t)=>m(Ht,{className:x(c,n?Xt[n-1]:"","vertical-list"===o?"h-full":""),style:v?Wt(i/4):{},activeIndex:l,idx:t,observerOptions:p,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(y):y(e,0))(d)});var y})),Wt=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Jt=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Yt=e=>e,Zt=(e=Yt)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Kt=(e=Yt)=>Zt((t=>-e(t))),qt=e=>t=>e.scrollWidth/t,Qt=e=>(t,l)=>{e.scrollBy({left:l*qt(e)(t),behavior:"smooth"})},el=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const r=s(null),[i,o]=n([]),c=a((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=i.length?[Kt()(i),Zt()(i)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var l;r.current&&(t&&!h?(l=r.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):Qt(r.current)(e,-1))}),[t,e,h]),x=a((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):Qt(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},tl="absolute top-0 bottom-0 z-50 w-[84px] pointer-events-none",ll="absolute top-[calc(50%-12px)] z-50",nl=u((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:r=!1,isPadding:a=!0,...i})=>{const{blocks:s}=i.block||{},o=t||s?.length||0,[c,d]=el({itemCount:o,isCyclic:r});return m(R,{className:x(al(a),e),...i,children:h("div",{className:"relative max-w-full",children:[m(Gt,{containerRef:c,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:d.handleVisibleIndicesChange,children:y(i)}),(d.canScrollLeft||d.canScrollRight)&&n?h("div",{children:[m("div",{className:`${tl} left-0 bg-opacity-from-white`}),m("div",{className:`${tl} right-0 bg-opacity-to-white`})]}):null,rl(d)]})})}));nl.childrenTypes=["CarouselCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselInvestmentCard"];const rl=({scrollLeft:e,scrollRight:t,canScrollLeft:l,canScrollRight:n})=>h("div",{children:[l?m(Ge,{className:`${ll} left-8`,onClick:e}):null,n?m(We,{className:`${ll} right-8`,onClick:t}):null]}),al=e=>e?"p-12":"",il="absolute border border-solid border-gray w-full h-full",sl={normal:"min-w-[970px]",mini:"min-w-[355px]"},ol=u((({className:e="",button:t,description:l,title:n,carouselVersion:r="normal"})=>m("section",{className:`flex pb-9 pl-12 border-box ${sl[r]} ${e}`,children:h("div",{className:"relative w-full",children:[m("div",{className:`${il} z-10 top-9 right-12 bg-green-dark`}),m("div",{className:`${il} z-10 top-6 right-8 bg-green`}),m("div",{className:`${il} z-10 top-3 right-4 bg-green-light`}),h("div",{className:"relative bg-white z-10 p-10 border border-solid border-green-light",children:[m(je,{className:"!p-0",title:n,description:l,headlineVersion:"L",align:"text-left"}),Ie([t],{className:"mt-14"})]})]})}))),cl={black:"bg-black",white:"bg-white"},dl=u((({className:e="",title:t,description:l,image:n,price:r,button:a,colors:i,...s})=>h(R,{className:`border box-border border-gray p-7 min-w-[392px] flex flex-col justify-left ${e}`,role:"listitem",...s,children:[n?.src?m(J,{className:"mb-5 flex justify-center",image:n}):null,t?m(j,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?m("div",{className:"mb-4",children:m(_,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?h("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[m("div",{className:"mr-1.5",children:m(Y,{children:"Доступные цвета: "})}),i.map(ml)]}):null,r?h(Y,{size:"text-h3",align:"text-left",children:[r," ₽"]}):null,Ie([a],{buttonClassName:"mt-5 w-full"})]}))),ml=(e,t)=>m("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cl[e]}`},String(t)),hl=u((({className:e="",title:t="",buttons:l,image:n,children:r})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{className:"h-full",children:r}),l?m("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]}))),ul={1:"flex-col",2:"gap-x-10 flex-wrap"},pl=u((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:r,image:a,title:i,...s})=>{const o=i?m(j,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=a?.src?m(J,{className:"absolute bottom-0 right-0 m-0",image:a}):null;return m(R,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",l].join(" "),...s,children:h(hl,{title:o,image:c,children:[h("div",{className:"flex justify-between mb-4",children:[r?m("div",{className:"w-1/3",children:m(Y,{size:"text-h6",children:r})}):null,e?m(Y,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?m("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${ul[n]}`,children:xl(t,n)}):null]})})})),xl=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return h("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?m("div",{className:"pr-2.5",children:m(Y,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?m(Y,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),gl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",bl=u((({text:e,href:t="",target:l="",className:n=""})=>e?h("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${n}`,children:[h("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",href:t,target:l,children:[m("div",{className:"p-0.5",children:e}),m("div",{className:"w-6 h-6",children:m(J,{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",asSVG:!0})})]}),m("div",{className:`${gl} mx-1.5 mt-1.5`}),m("div",{className:`${gl} mt-3 mr-3`})]}):null)),fl=u((({className:e="",additionalDescription:t,description:l,links:n,title:r,version:a="secondary",...i})=>h(R,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,version:a,...i,children:[h("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[m(je,{className:"p-0",title:r,description:l,as:"h1",align:"text-left"}),t?m("div",{className:"pt-6",children:m(_,{children:t})}):null]}),n?.length?vl(n):null]}))),vl=e=>{const t=Math.ceil(e.length/12);return m(nl,{version:"",className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>m("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(12*l,12*(l+1)).map(((e,t)=>m(bl,{className:"m-1",...e},String(t))))},String(l))))})},Nl={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},yl=u((({className:e="",isDotted:t=!0,children:l,size:n="M"})=>h("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?m("div",{children:m("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${Nl[n]}`})}):null,m("span",{children:l})]}))),wl={S:"text-l-light",M:"text-h6",L:"text-h5"},Cl={S:"ml-2",M:"ml-3",L:"ml-4"},kl=u((({className:e="",hasIndent:t,isDotted:l,itemClassName:n="",items:r,listItemSize:a="M"})=>r?.length?m("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${wl[a]} ${t?Cl[a]:""} ${e}`,role:"list",children:r.map(((e,t)=>m(yl,{className:`${n} mb-1.5`,isDotted:l,size:a,children:e},String(t))))}):null)),Sl=u((({className:e="",title:t,headlineSmallVersion:l="H6",description:n,additionalDescription:r,icon:a,items:i=[],button:s={},version:o="primary",isDotted:c=!0,align:d="text-center",...m})=>h(R,{className:x("flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6","box-border border-solid border border-gray",d,e),role:"listitem",version:o,...m,children:[h("div",{className:"flex flex-col h-full",children:[$l(a),Il(l,t),Tl(n,t),Rl(i,c,o),Bl(r)]}),Ie([s],{buttonClassName:"mt-6 w-full"})]}))),$l=e=>h("div",{className:"flex justify-center",children:[e?.src?m(J,{className:"mb-5",image:e}):null,e?.icon?m(J,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e,asSVG:!0}):null]}),Il=(e,t)=>t?m(Y,{size:Ve[e],children:t}):null,Tl=(e,t)=>e?m("div",{className:t?"mt-2":"",children:m(_,{size:"text-l",children:e})}):null,Bl=e=>e?m("div",{className:"mt-auto",children:m(Y,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Rl=(e,t,l="primary")=>e?.length?m(kl,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,Vl=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),jl=u((({className:e="",title:t,icon:l,list:n=[],...r})=>h(R,{className:`border border-gray flex min-w-[536px] ${e}`,...r,children:[h("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?m(J,{image:Vl(l),asSVG:!0}):null,l?.src?m(J,{image:l}):null]}),h("div",{className:"p-8 pl-3 w-full",children:[t?m(j,{className:" mb-3.5",headingType:"h5",title:t}):null,n.length?m("div",{className:"flex flex-col gap-3",children:n?.map(_l)}):null]})]}))),_l=(e,t)=>h("div",{className:"break-words",children:[e.title?m("div",{className:"text-h6",children:e.title}):null,e.description?m("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Ll=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],icon:{icon:"YoutubeIcon"},label:"Youtube"}],Ml={default:"w-14 h-14",small:"w-12 h-12"},Al=u((({isRounded:e=!1,buttonSize:t="default",iconVersion:l="color",...n})=>{const r=he(),{href:a,onClick:i}=r(n),{icon:s,label:o}=Ll.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=s?{...Vl(s),iconVersion:l}:null;return s?m("a",{className:x("group/media flex items-center justify-center box-border",Ml[t],e?"rounded-full":"rounded-md","border-solid border border-main-divider hover:border-transparent","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white group-data-secondary:hover:bg-secondary-hover"),href:a,"aria-label":o,target:"_blank",rel:"noopener noreferrer",onClick:i,children:c?m(J,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null}):null})),Dl=u((({className:e="",media:t,isRounded:l=!1,buttonSize:n,children:r})=>h("div",{className:"font-sans",children:[m("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>m(Al,{isRounded:l,buttonSize:n,...e},String(t))))}),m("span",{className:"text-s-light text-secondary-text",children:r})]}))),zl=u((({button:e,className:t="",description:l,image:n,items:r=[],socialMedia:a=[],title:i,...s})=>{const o=i?m(j,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=n?.src?m(J,{className:"absolute bottom-0 right-0 m-0",image:n}):null;return m(R,{className:x("relative p-7 min-w-[524px] text-left 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",t),...s,children:m(hl,{className:"flex justify-between",title:o,image:c,children:h("div",{className:"h-full flex flex-col justify-between",children:[l?m("span",{className:"mb-2",children:l}):null,r.length?m(kl,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:r}):null,a.length?m(Dl,{className:"pt-10 pb-0",media:a}):null,Ie([e],{className:"pt-2 mt-16"})]})})})})),Ol=u((({className:e="",title:t,icon:l,isHighlighting:n,button:r,cardCells:a=[],...i})=>{const s=a.map(Ul),o=s.slice(0,1),c=s.slice(1);return h(R,{className:x("relative border border-gray min-w-[322px] p-8 flex flex-col",El(n),e),...i,children:[n?Hl():null,Pl(l),t?m(j,{className:"text-center pt-2",headingType:"h5",title:t}):null,r?m(ke,{className:"w-full mt-4",...r}):null,a.length?m(A,{renderFoldableSection:({isUnfolded:e})=>h("div",{children:[o,m(D,{isUnfolded:e,children:c})]}),renderFoldButton:a.length>1?Fl:null}):null]})})),Pl=e=>h("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?m(J,{image:e}):null,e?.icon?m(J,{image:Vl(e),asSVG:!0}):null]}),El=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-7",Fl=({isUnfolded:e,onToggle:t})=>h("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[m("div",{children:e?"Скрыть":"Подробнее о тарифе"}),m(O,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),Ul=(e,t)=>h("div",{className:"py-5 border-b border-main-divider",children:[e?.title?m("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?m("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),Hl=()=>h("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:[m(O,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),m(_,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Xl={black:"bg-black",white:"bg-white"},Gl=u((({className:e="",title:t,description:l,image:n,price:r,button:a,colors:i})=>h("section",{className:`border border-solid box-border border-gray p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?m(J,{className:"mb-5 flex justify-center",image:n}):null,t?m(j,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?m("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?h("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[m("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(Wl)]}):null,r?h("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,Ie([a],{buttonClassName:"mt-5 w-full"})]}))),Wl=(e,t)=>m("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Xl[e]}`},String(t)),Jl="absolute top-0 bottom-0 w-[84px]",Yl=u((({cards:e=[],className:t="",title:l,description:n,...r})=>{const[a,i]=He({itemCount:e?.length,visibleItemCount:3});return h(R,{className:`p-12 overflow-hidden text-center ${t}`,...r,children:[m(je,{className:"!p-0",title:l,description:n,headlineVersion:"M",...r}),m("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*a}px)`},role:"list",children:e?.length?e.map(((e,t)=>m(Gl,{...e},String(t)))):null}),Je({...i,btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),m("div",{className:`${Jl} left-0 bg-opacity-from-white`}),m("div",{className:`${Jl} right-0 bg-opacity-to-white`})]})})),Zl="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Kl="border-gray border-solid border",ql="border-main-divider border border-t-0 border-x-0",Ql="w-[200px] mr-6",en=u((({icon:e,image:t,title:l,link:n})=>h("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Kl} ${Zl}`,role:"columnheader",children:[e&&!t?.src&&m(J,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:Vl(e),width:"63",height:"63",asSVG:!0}),t?.src&&m(J,{className:"mb-[18px]",image:t}),l?m(j,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&m("div",{className:"mt-auto w-full",children:m(ke,{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:m("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),tn={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ln=u((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>m("div",{className:"flex flex-1 overflow-hidden",children:m("div",{className:tn[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),nn=u((({children:e})=>m("div",{className:"self-start flex flex-col",role:"row",children:m("div",{className:"flex",children:e})}))),rn=u((({colHeaders:e,activeIndex:t})=>h(nn,{children:[m("div",{className:Ql,role:"columnheader"}),m(ln,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>m(en,{...e},String(t))))})]}))),an=u((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>m("div",{className:`w-80 box-border flex flex-col ${Kl} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?Zl:""}`,role:"cell",children:m("div",{className:`mx-7 h-full ${ql} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>cn(e,t,n)))})}))),sn=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),on=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),cn=({label:e,description:t},l,n)=>h("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?m("h4",{className:sn(n),children:e}):null,t?m("div",{className:on(n),children:t}):null]},String(l)),dn=(e=!1)=>`text-s py-7 ${ql} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,mn=u((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:a})=>h(nn,{children:[e?.title?m("div",{className:dn(a),children:e.title}):null,t?.length?m(ln,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>m(an,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:n&&0===t},String(t))))}):null]}))),hn=u((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:r}=n;return h("div",{className:"relative",children:[e.map(((e,n,{length:r})=>m(mn,{row:e,isFirstRow:0===n,isLastRow:n+1===r,activeIndex:l,isColoredFirstColumn:t},String(n)))),r?Je({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),un=u((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:r})=>{const a=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=He({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return h("div",{children:[h("div",{role:"table",children:[a?.length?m(rn,{colHeaders:a,activeIndex:o}):null,s?.length?m(hn,{rowData:s,isColoredFirstColumn:r,activeIndex:o,controls:c}):null]}),d?m("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),pn=u((({className:e="",title:t,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),u=a((()=>d((e=>!e))),[]);return h(R,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[m(j,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),m(un,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?xn({isShowAllRow:c,onClick:u}):null]})})),xn=({isShowAllRow:e,onClick:t})=>m("div",{className:"pr-12",children:h("div",{className:"flex w-full",children:[m("div",{className:Ql}),m("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:m("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),gn=u((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>h(R,{className:`flex p-12 ${e}`,version:n,...r,children:[l?.length?bn(l):null,t?.length?bn(t):null]}))),bn=e=>m("div",{className:"flex grow basis-0",children:e.map(((e,t)=>fn({column:e,index:t})))}),fn=({column:e,index:t})=>e?m("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},r)=>h("div",{className:"mt-6 first:mt-0",children:[m(je,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?m("div",{className:"mt-1.5 opacity-80",children:m(_,{size:"text-m",font:"font-light",children:l})}):null,n?m(ke,{className:"mt-6",...n}):null]},String(r))))},`col-${String(t)}`):null,vn=e=>"Image"===e?.errorContentType&&e?.image?m(J,{image:e.image}):"Code"===e?.errorContentType&&e.code?m("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Nn=u((({className:e="",title:t,subtitle:l,error:n,button:r})=>h("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[m("div",{className:"flex justify-center py-20",children:vn(n)}),t?m(j,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?m("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,r?.text?m(ke,{className:"py-4 px-9",version:r?.version,...r,children:r.text}):null]})));var yn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(yn||(yn={}));const wn=new Intl.NumberFormat("ru",{style:"currency",currency:yn.RUB}),Cn=e=>e?wn.format(e):"",kn="text-left text-m-light text-secondary-text",Sn=`${kn} pl-11`,$n={USD:"DollarIcon",EUR:"EuroIcon"},In=u((({className:e,exchangeCurrencyItems:t})=>h("table",{className:`h-fit w-fit ${e}`,children:[m("thead",{children:h("tr",{children:[m("th",{className:kn,children:"Валюта"}),m("th",{className:Sn,children:"Купить"}),m("th",{className:Sn,children:"Продать"})]})}),m("tbody",{children:t.map(Tn)})]}))),Tn=e=>{const t=e?.currency?.currency;return h("tr",{className:"pb-1 text-h6",children:[m("td",{className:"pt-4",children:h("div",{className:"flex items-center",children:[t?m(J,{image:{icon:$n[t]},width:"24",height:"24"}):null,m("span",{className:"ml-2",children:t})]})}),m("td",{className:"pt-4 pl-11",children:Cn(e?.saleExchangeRate)}),m("td",{className:"pt-4 pl-11",children:Cn(e?.buyExchangeRate)})]},t)},Bn=u((({className:e="",address:t})=>h("div",{className:`flex ${e}`,children:[m(J,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),h("div",{className:"ml-3",children:[t?m("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,m("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Rn=(e,t,l)=>{const n=Number(Vn(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)},Vn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),jn=e=>{return(t=[[e=>e.value!==yn.RUB&&e.oppositeValue!==yn.RUB,()=>e.handleConvert(e.value,yn.RUB)],[e=>e.value===yn.RUB&&e.oppositeValue===yn.RUB,()=>e.handleConvert(e.value,yn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function _n(e){const t=s(null);return r((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const Ln=u((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,u]=n(i[0]||{key:"",text:""}),[p,x]=n(!1),g=_n(a((()=>x(!1)),[]));return r((()=>{u(s||{key:"",text:""})}),[s]),h("div",{className:`${e}`,ref:g,children:[l?m("span",{className:"mb-2 flex text-primary-text",children:l}):null,h("div",{className:"relative "+(p?"z-20":"z-10"),children:[h("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${Dn(t)}`,onClick:()=>x(!p),children:[m("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),m(O,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?m("div",{className:`h-0 ${Mn(p)}`,children:m("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(An((e=>{u(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),Mn=e=>e?"":"overflow-hidden",An=(e,t,l)=>(n,r)=>h("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[m("span",{className:"min-h-6",children:n.text}),m(O,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(r)),Dn=e=>e?"border border-gray rounded-md hover:border-primary-hover":"";function zn(e){const{placeholder:t,rates:l,selected:n,value:r,setValue:a,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return h("div",{className:"relative flex",children:[m(Pt,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?m(Ln,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const On=u((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:r})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||yn.RUB,selectBuy:l?.[0]?.currency?.currency||yn.USD}),o=a((e=>s((t=>({...t,...e})))),[]);return h("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[zn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:Pn(i,o,l),value:i.inputSell,setValue:e=>Fn(o,l)(e,i.selectSell,i.selectBuy)}),zn({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:En(i,o,t),value:i.inputBuy,setValue:e=>Un(o,t)(e,i.selectBuy,i.selectSell)}),r?.text?m(ke,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),Pn=(e,t,l)=>n=>{t({selectSell:n}),jn({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{Fn(t,l)(e.inputSell,n,r)}})},En=(e,t,l)=>n=>{t({selectBuy:n}),jn({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>Un(t,l)(e.inputBuy,n,r)})},Fn=(e,t)=>(l,n,r)=>{e({inputSell:Vn(l),selectBuy:r});const a=t.find((e=>e.currency?.currency===r))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;a&&e({inputBuy:String(Rn(l,a,n===yn.RUB)||"")})},Un=(e,t)=>(l,n,r)=>{e({inputBuy:Vn(l),selectSell:r});const a=t.find((e=>e.currency?.currency===r))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;a&&e({inputSell:String(Rn(l,a,n===yn.RUB)||"")})};const Hn=async e=>{const t=await Xn(),l=t?.code||"000";return{region:t,exchangeRates:await Gn(e,l)}},Xn=async()=>{try{return await xt("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Gn=async(e,t)=>{try{return await xt(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Wn=u((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=ht("/api/v1/exchangerates",Hn);return e||{}}(),a=Jn(r?.exchangeRate?.currencies),i=a.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:yn.RUB}});const s=a.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:yn.RUB}}),m(R,{className:`p-9 box-border min-h-80 ${e}`,...n,children:m(hl,{title:m(j,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:h("div",{className:"flex",children:[h("div",{className:"mr-14 pt-4",children:[a?m(In,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,m(Bn,{address:r?.address})]}),a.length&&i.length&&s.length?m(On,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Jn=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function Yn(e,t={}){const{data:l}=ht(`/wcms-resources/${e}.json`,xt,{fallback:t});return l||{}}const Zn={"bg-white":"color",transparent:"white"},Kn={"bg-white":"text-primary-main",transparent:"text-white"},qn=(e,t,l)=>m(J,t?.src?{image:t,className:Kn[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Zn[e]},className:Kn[e],width:l?.width,height:l?.height,asSVG:!0}),Qn={"bg-white":"text-primary-text",transparent:"text-white"},er=(e,t,l)=>m("span",{className:`${Qn[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),tr=u((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:r,bgColor:a="bg-white",showTitle:i=!0})=>h("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[qn(a,l?.image,{width:"40",height:"45"}),i?er(n||l?.title,a):null]}))),lr=()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}},nr=u((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:n}=lr(),r=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",i=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-5 h-5":"w-6 h-6",children:m(J,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),l?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${r}`,children:"Поиск по сайту"})]}),m("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:l,onChange:e=>n(e.target.value),type:"text",name:"search-bar-input",placeholder:i}),t?m("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),n("")},children:m(J,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):m(ke,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),rr=u((e=>m(nr,{...e}))),ar=u((({className:e="",items:t,hasButton:l})=>h("div",{className:e,children:[t?.length?t.map(ir):null,l?m(ke,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),ir=(e,t)=>{const{type:l,text:n,description:r}=e;return h("div",{className:"mb-4",children:[m("div",{children:sr(l,n)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},sr=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${or(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},or=e=>e.replaceAll(/\D/g,""),cr=u((({className:e="",index:t,text:l,...n})=>{const r=he(),{href:a,target:i,onClick:s}=r(n);return m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:s,children:l||`Документ ${t}`})})),dr=u((({className:e="",links:t})=>m("div",{className:e,children:t?.length?m("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)=>m(cr,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),mr=e=>t=>e?.href===t?.href,hr=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(mr(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(mr(e))))));var l,n,r},ur=u((({className:e="",items:t,fallback:l})=>{const n=he(),r=Yn(o.SITEMAP||"sitemap",l),a=hr(r.topItems,t);return m("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a?.map(((e,t)=>pr(n(e),t)))})})),pr=(e,t)=>{const{text:l,items:n,href:r,target:a,onClick:i}=e;return h("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[m("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>m(xr,{...e,index:t},String(t))))]},String(t))},xr=u((({text:e,index:t,...l})=>{const n=he(),{href:r,target:a,onClick:i}=n(l);return m("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:e||`Раздел ${t}`})})),gr=u((({className:e="",index:t,...l})=>{const n=he(),{href:r,target:a,text:i,onClick:s}=n(l);return m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),br=u((({className:e="",links:t})=>h("div",{className:e,children:[m("div",{className:"pt-5",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>m(gr,{index:t,...e},String(t))))}):null]}))),fr="w-[204px]",vr=u((({className:e="",...t})=>{const l=t.options?.page?.fallback,{documents:n,relatedEnterprises:r,contacts:a,socialMedia:i,mobileApps:s,topItems:c,logo:d}=Yn(o.FOOTER||"footer",l);return h(R,{tag:"footer",className:`p-9 ${e}`,...t,children:[h("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[m(tr,{className:fr,logo:d}),m(rr,{className:"grow"})]}),h("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[h("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[m(ar,{items:a,hasButton:!0}),m(Dl,{media:i,children:"Соцсети"}),m(Dl,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),m(ur,{className:"pt-[3px]",items:c,fallback:l})]}),m(dr,{className:"mt-[98px]",links:r}),m(br,{links:n})]})})),Nr={normal:3,mini:4},yr={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},wr={normal:380,mini:276},Cr=u((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:a,button:i,isFullWidth:s=!0,isDotted:o=!0,align:c="center",...d})=>h(R,{className:`h-full flex flex-col justify-between ${w[c]}`,tag:"div",...d,children:[h("div",{className:"flex flex-col h-full",children:[kr(r),Sr(t,e),$r(l,e),a?.length?Tr(a,o):null,Ir(n)]}),Ie([i],{buttonClassName:"mt-6 "+(s?"w-full":"self-center")})]}))),kr=e=>h("div",{className:"flex justify-center",children:[e?.src?m(J,{className:"mb-5",image:e}):null,e?.icon?m(J,{className:"w-8 h-8 min-w-8 mb-5 rounded-full",image:Vl(e),asSVG:!0}):null]}),Sr=(e,t)=>t?m("div",{className:Ve[e],children:t}):null,$r=(e,t)=>e?m("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,Ir=e=>e?m("div",{className:"text-m-light mt-auto group-data-primary:text-secondary-text",children:e}):null,Tr=(e,t)=>m(kl,{className:"max-w-[308px] mt-2 text-s group-data-primary:text-secondary-text",itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}),Br=u((({headlineVersion:e="M",cards:t=[],galleryVersion:l="normal",activeIndex:n,title:r,description:a})=>h("div",{children:[m(je,{className:"!p-0",title:r,description:a,headlineVersion:e}),m("div",{className:`flex mt-8 ${t?.length<=Nr[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*wr[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,galleryVersion:t},l){return m("section",{className:`box-border border-solid border border-gray p-6 mx-2 flex flex-col justify-between\n items-stretch ${yr[t]} ${B[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:m(Cr,{...e})},String(l))}({card:e,galleryVersion:l},t)))})]})));const Rr=u((({cards:e=[],className:t="",galleryVersion:l="normal",button:n,...r})=>{const[a,i]=He({itemCount:e?.length,visibleItemCount:Nr[l]}),{isScrollAvailable:s}=i;return h(R,{className:`relative p-[42px] overflow-hidden flex flex-col ${t}`,...r,children:[m(Br,{cards:e,galleryVersion:l,activeIndex:a,...r}),Je({...i,btnClass:["left-8","right-8"],className:"top-1/2"}),s?h("div",{children:[m("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),m("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,Ie([n],{className:"mt-8 mx-auto"})]})})),Vr=u((e=>m(Rr,{...e,galleryVersion:"normal"}))),jr=u((({className:e="",title:t,description:l,calendar:n,...r})=>h(R,{className:`p-12 ${e}`,...r,children:[m(je,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),n?_r(n):null]}))),_r=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 h("div",{className:"w-full flex flex-col justify-center mt-13",children:[m("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Lr(e,t)))}),m("div",{className:"flex w-full",children:l.map(((e,t)=>h("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:[m("div",{className:"flex",children:Mr(e)}),h("div",{className:"text-s-light text-primary-text mt-3",children:[m("span",{children:e.text})," ",m("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Lr=(e,t)=>e.month?.map(((e,l)=>m("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Mr=e=>e.month?.map((e=>e.image?.src?m("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:m(J,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Ar=(e,t,l=((e,t)=>t.startsWith(e)))=>l(ae((e=>re(e)||e?.startsWith("/")?e:`${o.BASE_PATH||""}${e}`)(e)),ae(re(e)?t.href:se(t.href))),Dr=e=>t=>Ar(t.href,e),zr=e=>t=>t.items?.some(Dr(e))||Ar(t.href,e)||((e,t)=>[ie(e),ie(t.href)].every(((e,t,l)=>Boolean(e)&&e===l[0])))(t.href,e)||Boolean(o.BASE_PATH?.startsWith(t.href||"/")),Or=u((({className:e="",active:t,flat:l,ariaLabel:n,children:r,...a})=>{const i=he(),{href:s,target:o,text:c,onClick:d}=i(a);return m("a",{className:`${Pr(t,l)} ${e}`,href:s,target:o,onClick:d,rel:"noopener noreferrer","aria-label":n,children:m("span",{className:Er(t,l),children:c||r})})})),Pr=(e=!1,t=!1)=>x("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"),Er=(e=!1,t=!1)=>x("font-sans text-s-light",e?"text-primary-main":x(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Fr=864e5;function Ur(e,t,l=globalThis?.localStorage){const n=a((async(...n)=>{const r=`async:${e}`,a=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<Fr?t:void 0}(l.getItem(r));if(a)return a;const i=await t(...n);return l.setItem(r,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return ht(e,n)}const Hr=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const Xr=u((({className:e,searchTerm:t,onSearch:l})=>h("form",{className:`font-sans relative ${e}`,children:[m("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:m("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),m("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),type:"text",name:"location-search-bar-input"})]}))),Gr=u((({currentLocation:e,onChangeLocation:t,close:l,foreignOffices:n})=>{const{term:r,setTerm:i}=lr(),s=a((e=>i(e)),[]),o=Jr(function(){const{data:e}=ht("/api/v1/regions",xt);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;return e.forEach((e=>{const n=t(e),r=l.get(n);l.set(n,[...r||[],e])})),l})(o,Wr);return h("div",{className:"absolute h-full w-full inset-0 bg-white text-l-light z-50",children:[m(Zr,{close:l}),h("div",{className:"container py-12",children:[m(Yr,{currentLocation:e}),m(Xr,{onSearch:s,searchTerm:r,className:"mb-7"}),r&&r.length>=3?m("div",{children:o.filter((e=>e.name?.startsWith(r))).map(qr({onChangeLocation:t,close:l}))}):m("div",{className:"columns-5",children:Array.from(c.entries()).map(Kr({onChangeLocation:t,close:l}))}),m(Qr,{foreignOffices:n})]})]})})),Wr=e=>e.name?.charAt(0)||"",Jr=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Yr=u((({currentLocation:e})=>e?h("div",{className:"mb-4",children:[m(Y,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),m("button",{className:"cursor-pointer",onClick:close,children:m(Y,{color:"text-green",children:e.name})})]}):null)),Zr=u((({close:e})=>m("button",{className:"visible peer-placeholder-shown:invisible absolute top-6 right-6 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:t=>{t.preventDefault(),e&&e()},children:m(J,{image:{icon:"CloseIcon"},width:"24",height:"24"})}))),Kr=({onChangeLocation:e,close:t})=>([l,n])=>h("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[m("div",{className:"mb-2.5",children:m(Y,{size:"text-h6",children:l})}),n.map(qr({onChangeLocation:e,close:t}))]},l),qr=({onChangeLocation:e,close:t})=>l=>m("div",{className:"mb-1",children:m("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(l),t&&t()},children:l.name||""})},l.id),Qr=u((({foreignOffices:e})=>e?.length?h("div",{className:"border-t border-main-divider mt-7 pt-7",children:[m("div",{className:"mb-4",children:m(Y,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),m("div",{className:"flex gap-10",children:e.map(((e,t)=>m(ea,{...e},String(t))))})]}):null)),ea=u((({icon:e,...t})=>{const l=he(),{text:n,target:r,href:a,onClick:i}=l(t);return h("div",{className:"flex gap-x-3",children:[e?m(J,{pathPrefix:"/wcms-resources/",image:e}):null,n?m("a",{className:"hover:text-primary-hover",href:a,target:r,onClick:i,children:n}):null]})})),ta=u((({className:e="",children:t,ariaLabel:l})=>m("button",{type:"button",className:`border-0 p-0 w-6 h-6 flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":l,children:t}))),la=u((({version:e,className:t,officesLink:l,defaultLocation:i="Москва",foreignOffices:s})=>{const[o,c]=n(!1),[d,u]=function(e){const t=Hr(),[l,i]=n(t?.region??{name:e}),{data:s}=Ur("/api/v1/region",xt);return r((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,a((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[i])]}(i),p=a((()=>{c(!0)}),[]),x=a((()=>{c(!1)}),[]),g="transparent"===e?"white":"black";return h("div",{className:`flex items-center ${t||""}`,children:[m(Or,{className:"mr-5",flat:!0,href:"#",text:d.name,ariaLabel:"Местоположение",onClick:p}),l?m(Or,{className:"mr-7",flat:!0,href:l,text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов"}):null,m(ta,{className:"mr-5 group/btn text-primary-text hover:text-primary-main group-data-transparent:text-white",ariaLabel:"Поиск по сайту",children:m(J,{image:{icon:"LoupeIcon",iconVersion:g},className:"h-full pointer-events-none",imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0 pointer-events-none",asSVG:!0})}),m(ta,{className:"group/btn min-w-8 min-h-8 text-secondary-light hover:text-secondary-hover group-data-transparent:text-white",ariaLabel:"Дополнительные ссылки",children:m(J,{image:{icon:"GridIcon",iconVersion:g},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0",asSVG:!0})}),o?m(Gr,{currentLocation:d,foreignOffices:s,onChangeLocation:u,close:x}):null]})})),na=u((({className:e="",items:t,activeItem:l})=>{const r=he(),[i,s]=n(!1),o=a((()=>s((e=>!e))),[]),c=_n(a((()=>s(!1)),[]));return h("div",{className:`${i?"bg-white rounded-md shadow-blue-gray":""} ${e}`,ref:c,children:[m("button",{className:"group/btn flex justify-between items-center h-6 ml-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>m("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))))}),m("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>m("a",{className:"text-l-light pb-4 hover:text-primary-main "+(e===l?"text-primary-main":""),...r(e),children:e.text},e.href||String(t))))})]})})),ra=u((({className:e="",active:t,dataItemName:l,children:n,...r})=>{const a=he(),{href:i,target:s,text:o,onClick:c}=a(r);return h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:i,target:s,"data-item-name":l,onClick:c,children:[m("span",{className:aa(t),children:o||n}),t?m("div",{className:ia(t)}):null]})})),aa=(e=!1)=>x("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),ia=(e=!1)=>x("absolute left-0 -bottom-3 w-full h-0.5",e?"bg-primary-main group-data-transparent:bg-transparent":""),sa=u((({className:e,active:t,observerOptions:l,onVisibilityChange:n,children:r,...i})=>{const s=k(a((e=>{if(!e.length||!n)return;const t=e[e.length-1];n(t.isIntersecting)}),[n]),l);return m("span",{ref:s,children:m(ra,{className:e,active:t,...i,children:r})})})),oa=u((({subItems:e=[]})=>{const t=(e=>(t=[])=>{const l=t?.filter(Dr(e));return l?.length?Zt((e=>e.href?.length||0))(l):void 0})(me())(e),[l,r]=n(e.length),a=e.slice(l),o=s(null),c={rootRef:o},d=i((()=>e.map(((e,t)=>e=>{r(e?ca(t):da(t))}))),[e]);return h("nav",{className:"relative mt-6",children:[m("div",{ref:o,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>m(sa,{className:"mr-8 "+(l-1<n?"invisible":""),active:e===t,observerOptions:c,onVisibilityChange:d[n],...e},String(n))))}),a.length?m(na,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:a,activeItem:t}):null]})})),ca=e=>t=>Math.max(t,e+1),da=e=>t=>Math.min(t,e),ma={"bg-white":"primary",transparent:"transparent"},ha=u((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,version:n=ma[e],...r})=>{const a=me(),{topItems:i,logo:s,defaultLocation:c,foreignOffices:d,officesLink:u}=Yn(o.SITEMAP||"sitemap",r.options?.page?.fallback),p=i?.find(zr(a)),x=i?.map(((e,t)=>m(Or,{active:e===p,"aria-label":e.text,...e},String(t))));return m(R,{tag:"header",className:`pt-6 px-20 ${t} ${l&&p?.items?.length?"pb-4":"pb-5"}`,version:n,...r,children:h("div",{className:"container",children:[h("div",{className:"flex items-center",children:[m(tr,{className:"mr-8",bgColor:e,logo:s}),x,m(la,{version:n,className:"ml-auto",foreignOffices:d,defaultLocation:c,officesLink:u})]}),m("div",{className:"mt-6 h-px bg-main-divider"+("transparent"===n?" opacity-30":"")}),l&&p?.items?.length?m(oa,{subItems:p.items}):null]})})})),ua={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},pa=u((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",...r})=>m(R,{className:x("grid grid-cols-12",l?"p-12":"",ua[t],e),version:n,...r,children:y(r)})));pa.childrenTypes={exclude:["HorizontalLayout"]};const xa=u((e=>{const{className:t,image:l,...n}=e;return m(R,{className:t,...n,children:m(J,{image:l})})})),ga=u((({className:e="",cards:t=[],button:l})=>{const[r,i]=n(0),s=a((e=>i(e)),[]),o=t.length,[c,d]=He({itemCount:o,visibleItemCount:2}),{canDec:u,canInc:p}=d,x=t[c]?.href;return h("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[h("div",{className:"relative overflow-hidden",children:[o?ba({activeIndex:c,cards:t,selectedCardIndex:r,onClick:s}):null,Je({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),u?m("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,p?m("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),m(ke,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function ba({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const r=460*e,a=t.length>2?"justify-start":"justify-center";return m("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-12",children:m("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${a}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return h("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?m(J,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,h("div",{className:"flex gap-3.5",children:[e?.sum?fa("страховая сумма",e.sum):null,e?.fee?fa("страховой взнос",e.fee):null]}),va(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function fa(e,t){return h("div",{className:"flex flex-col text-left whitespace-pre",children:[h("span",{className:"text-h6",children:[Ye(t)," ₽"]}),m("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function va(e){return e?m(J,{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 Na=u((({className:e="",title:t,insuranceTabs:l=[],button:r,...i})=>{const[s,o]=n(0),c=a((e=>o(e)),[]);return h(R,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?m(j,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?m("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return m("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,m("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:ya({insuranceTabs:l,button:r})})]})})),ya=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>m(ga,{button:t,cards:e},String(l)))):null};function wa(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Ca={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},ka={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Sa=u((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:r,investmentColumns:a,...i}=e,s=a?[...a]:[];return r&&s.unshift(r),m(R,{className:`px-9 py-12 ${t}`,...i,children:h("div",{className:"container text-m-light",children:[s?.length?h("div",{children:[h("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[wa(m("div",{className:"w-px h-4 bg-gray"}))(s.map($a)),m("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),m("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),m("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(Ba)})]}):null,l?.length?m(kl,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),$a=(e,t,l)=>{const n=1===t,r=t===l.length-1;return m("div",{className:`${Ia(n,r,e.cells)}`,children:e.cells?.length?m("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Ta)}):null},`column_${t}`)},Ia=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Ta=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?m("div",{className:`flex-1 flex items-center justify-center relative py-2 ${ka[l]} ${Ca[n]} ${"XS"===l?"px-3":"px-11"}`,children:m("div",{className:"text-center",children:e.text})},`cell_${t}`):null},Ba=(e,t,l)=>{const n=0===t,r=t===l.length-1;return m("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${r?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Ra=u((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:r,icon:a})=>{const{text:i,fileSize:s,...o}=r;return h("a",{className:e,role:"link",...o,children:[a?m(J,{className:t,image:Vl(a),width:"24px",height:"24px",asSVG:!0}):null,i?h("span",{className:l,children:[i,m("span",{className:n,children:o?.href&&Va(ja(o.href),s)})]}):null]})})),Va=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ja=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},_a=u((({className:e="",doc:t,icon:l})=>m(Ra,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover/item:text-primary-main",doc:t,icon:l}))),La=u((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?m("div",{className:e,role:"list",children:t.map(((e,t)=>m("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:m(_a,{className:"group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),Ma={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},Aa=u((({className:e="",title:t,description:l,align:n="text-center",documents:r,icon:a={icon:"DocIcon"},columnsMode:i="double",...s})=>h(R,{className:x("p-12",e),...s,children:[m(je,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2"}),m(La,{className:`mt-8 ${Ma[i]}`,columnsMode:i,documents:r,icon:a})]}))),Da=u((e=>m(Rr,{...e,galleryVersion:"mini"}))),za=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function Oa(e=""){const t=za(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Pa=u((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:r="primary",items:a,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const u="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]";return h(R,{className:`flex justify-between p-12 box-border relative min-h-80 ${Oa(e)} ${e}`,version:r,...d,children:[h(hl,{className:"z-10",title:t?m(j,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${w[o]}`}):null,buttons:Ie(n,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Fa(c),h("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?m("div",{className:`flex justify-center mr-5 bg-white rounded-md ${u}`,children:m(J,{className:"w-fit",image:l})}):null,Ea(a)]})]}),i?.src?m("div",{className:"absolute right-0 bottom-0",children:m(J,{image:i})}):null]})})),Ea=e=>e?.length?m(kl,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):m("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Fa=e=>e?m("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,Ua=[{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 Ha(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),a=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(a),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Xa={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"},Ga=e=>m("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Xa).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Wa={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)]"},Ja=(e,t,l)=>h("div",{className:`${Object.values(Wa).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[m(O,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),m("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"})]}),Ya={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"},Za=(e,t,l)=>m("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Ya).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:m(O,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Ka=e=>globalThis[e];const qa=()=>function(e,t){const[l,i]=n(),s=a((()=>i(Ka(e))),[e]);return r((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!Ka(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${o.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),Qa={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"},ei=u((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return m("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(Qa).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:m(O,{name:l,width:"20",height:"16"})})})),ti={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"},li=u((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=qa(),[c,d]=n(),[u,p]=n(ii(Ua)),x=ni(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),Ha(o,i.current,u)}))}),[o,i,u]),r((()=>{if(i.current&&u&&o){const e=u.length<1?ii(Ua):u;Ha(o,i.current,e)}}),[i,u,o]),!o)return null;const g=c?"z-[100000]":"z-10";return h("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[m("div",{className:`absolute flex left-2 top-4 w-[50%] ${g}`,children:a?Ja(Ua,0,(e=>{if(e){const t=ii(e);p(t)}})):Ga(x)}),m("div",{className:`${Object.values(ti).join(" ")} ${g} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:m(O,{name:"FullScreenIcon",width:"16",height:"16"})}),h("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${g}`,children:[m(ei,{yandexMaps:i}),m(ei,{yandexMaps:i,direction:"out"})]}),Za(i.current,o,`right-2 top-80 ${g}`)]})})),ni=e=>[ai(ri(e,0)),ai(ri(e,1))],ri=(e,t)=>e.map((e=>e[t])),ai=e=>e.reduce(((e,t)=>e+t))/e.length,ii=e=>e?e.map((e=>e.coords)):null,si=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],oi=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?h("div",{className:"flex",children:[m("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}),m("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):m("div",{className:"flex",children:m("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},ci=({icon:e,title:t,distance:l,time:n},r)=>h("div",{className:"flex mr-4",children:[m(O,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?h("span",{className:"text-m",children:[t," "]}):null,h("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${r}`),di=({title:e,status:t,workTime:l,lunchHour:n,description:r},a)=>h("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[h("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[m("div",{children:e}),t?null:m("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?m("div",{children:l}):null]}),t&&n?mi(n):null,r?m("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),mi=e=>/\d+/gi.test(e)?h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[m("div",{children:"Перерыв"}),m("div",{children:e})]}):m("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:m("div",{children:e})}),hi={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function ui(e){return e?pt(e,{method:"GET"}):{}}const pi=u((({className:e=""})=>{const t=function(e){const{data:t}=ht(e?`/api/v1/branches?regionCode=${e}`:void 0,ui);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),hi}("000"),{name:l,address:n,gpsLatitude:r,gpsLongitude:a,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:u,workingSaturday:p,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=r&&a?[r,a]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:u,workTime:g,lunchHour:b},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return h("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[h("div",{className:"flex flex-col px-12 pt-12",children:[h("div",{className:"flex justify-between",children:[m("div",{className:"text-h2",children:l}),oi(C)]}),h("div",{className:"flex text-l-light pt-4",children:[m(O,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),m("div",{className:"flex pt-4",children:si.map(ci)})]}),h("div",{className:"flex justify-between pt-8",children:[m("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?m(li,{points:[N],className:"h-full"}):null}),m("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(di)})]})]})})),xi=u((({className:e="",title:t,servicesList:l,...n})=>h(R,{className:`p-8 flex flex-col ${e}`,...n,children:[t?m(j,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?m("ul",{className:"list-none m-0 p-0",children:l.map(gi)}):null]}))),gi=(e,t)=>h("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?m(J,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:Vl(e.icon)}):null,e.label?m("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),bi=u((({className:e="",...t})=>m(R,{className:`font-sans text-primary-text ${e}`,...t,children:y(t)})));bi.childrenTypes=["OtherProductsItem"];const fi=u((({className:e="",label:t,icon:l,dataTheme:n="",onClick:r})=>h("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:r,children:[m("span",{className:"text-h4 pr-3",children:t}),l?m(J,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),vi=({isUnfolded:e,onToggle:t})=>m(fi,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Ni=["ArrowDownIcon","ArrowUpIcon"],yi=u((({className:e,label:t="",isUnfolded:l,...n})=>{const{colorPalette:r}=function(e,t){const{content:l}=function(e){return e?.parent||{}}(e);return l||t}(n.options,{});return m("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:m(A,{unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m("div",{className:"box-border",children:m(D,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:y(n)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>m(fi,{label:t,icon:Ni[Number(e)],dataTheme:r||n.options?.page?.colorPalette,onClick:l})})})}));yi.childrenTypes=[];const wi=u((({text:e,size:t,align:l,font:n,children:r,...a})=>m(R,{...a,children:m(_,{size:t,align:l,font:n,children:e||r})}))),Ci=u((e=>{const{className:t="",icon:l,label:n,description:r,version:a="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return h("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[l?m("div",{className:ki(a,i),children:m(J,{className:"w-6 h-6",image:Vl(l,s),asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[n?m("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:n}):null,r?m("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:r}):null]})]})}));function ki(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const Si=u((({className:e="",title:t,description:l,image:n,benefits:r,sum:a,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>h(R,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[m(je,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),h("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?m(J,{className:s?"order-2":"",image:n}):null,h("div",{className:"w-[558px] m-auto",children:[r?.length?m("div",{className:"flex flex-col gap-4",children:r.map($i(o))}):null,Ii(Number(a),Number(i))]})]})]}))),$i=e=>(t,l)=>m(Ci,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function Ii(e,t){return e||t?h("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Ti("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Ti("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Ti(e,t=0,l=!1){return h("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[m("span",{className:"text-secondary-text text-l-light",children:e}),h("span",{className:"text-primary-main text-h6",children:[Ye(t)," ₽"]})]})}function Bi(e=""){const t=za(e);return t<=4?"S":t<=8?"M":"L"}function Ri(e=""){const t=za(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Vi=u((({className:e,title:t,description:l="Блок в разработке...",...n})=>h(R,{className:x("p-9 box-border",e,Ri(e),Oa(e)),...n,children:[m(je,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:Bi(e)}),m("figure",{className:"m-0 min-w-[80%]",children:ji()})]}))),ji=(e=3)=>Li(100,e).map((e=>Math.floor(e))).map(_i),_i=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Li=(e,t)=>[e].concat(t>0?Li(e/1.618,t-1):[]),Mi=u((({className:e="",children:t,...l})=>{const n=he(),{text:r,href:a,target:i,onClick:s}=n(l);return a?m("a",{className:`no-underline ${e}`,href:a,target:i,onClick:s,children:m("span",{className:e,children:r||t})}):m("span",{className:e,children:r||t})})),Ai=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>m(Ci,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),Di=u((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:r=3,benefits:a,benefitsVersion:i,buttons:s,footnote:o,image:c,items:d,version:u="primary",isDotted:p=!0,textBlockClassName:g=""})=>{const b=a?.filter((e=>e.label))?.length,f=zi(r);return h("div",{className:x("flex grow justify-between items-stretch h-full",e),children:[h("div",{className:x("flex flex-col",g),children:[m(je,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:l,align:"text-left"}),h("div",{className:"flex flex-col justify-between h-full",children:[h(hl,{buttons:Ie(s),children:[b?m("div",{className:f,children:a.map(Ai(u,i))}):null,d?.length?m(kl,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:p}):null]}),o?m("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&m(J,{className:"mt-[-50px]",image:c})]})})),zi=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Oi(e,t,l){const{text:n,href:r,target:a,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return h("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[m(ke,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:r,target:a,children:m(J,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?m("span",{className:"text-m",children:n}):null]})}const Pi="text-secondary-text group-data-secondary:text-white/80",Ei=u((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:r="primary",...a}=e,i="primary"===r?r:"white";return h(R,{className:`overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${t}`,version:r,...a,children:[n?.text?Oi(n,i,"mb-10 -mt-2.5"):null,l?.length?m("div",{className:"text-xs-light mb-6",children:wa(m("span",{className:`mx-2 ${Pi}`,children:"/"}))(l.map(((e,t)=>m(Mi,{className:Pi,...e},String(t)))))}):null,m(Di,{version:r,...a})]})})),Fi=u((({className:e="",slides:t=[],version:l="primary",...r})=>{const i=t.map((e=>e.nav)),s=t.map((e=>e.productBlock)),[o,c]=n(0),d=a((e=>c(e)),[]);return h(R,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,version:l,...r,children:[m("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,t)=>function(e,t){return m("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:m("div",{className:"flex grow",children:m(Di,{className:"pl-12 z-10 text-secondary-text group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...r,version:l},t)))}),m("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){const r=l?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",a=l?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=l?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return m("button",{type:"button",onClick:n,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${r}`,children:h("div",{className:"border-0 px-6",children:[m("div",{className:`last:pb-0 ${a}`,children:e?.title}),m("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===o),onClick:()=>d(t)})))})]})}));function Ui(e,t){if(!e)return null;return m("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:m(_,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const Hi=u((e=>{const{__html:t=""}=e;return m("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})}));function Xi(e){throw new Error(e)}const Gi=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[m(Y,{size:"text-h6",children:e.label},`label-${t}`),m(Y,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return m(Hi,{__html:e.__html});default:Xi(e)}};function Wi(e,t){return e?.src?m(J,{className:`absolute ${t?"right-0":"left-0"} bottom-0`,image:e}):null}const Ji=u((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:r,benefits:a=[],buttons:i,image:s,isImageOnRightSide:o=!0,...c})=>h(R,{className:x("overflow-hidden p-9 box-border relative min-h-[364px]",Ri(e),e),...c,children:[h("div",{className:x("flex flex-col",o?"":"items-end"),children:[m(je,{className:x("!p-0 !bg-transparent z-10",t||n?"mb-3.5":""),title:t,description:n,headlineVersion:l,as:"h2",align:"text-left"}),Yi(a,s),Ui(r,s),Ie(i,{className:"mt-5 z-10 text-l"})]}),Wi(s,o)]})));function Yi(e,t){if(!e.length)return null;return m("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(Gi):null})}const Zi=u((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,as:r,buttons:a=[],...i})=>m(R,{className:x("p-9 box-border",e,Ri(e),Oa(e)),...i,children:m(hl,{title:t?m(je,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:Bi(e),align:"text-left",as:r||"h2"}):null,buttons:Ie(a),children:h("div",{className:"mt-1.5",children:[l?m("div",{className:"text-s mb-2",children:Ki(l)}):null,m("div",{className:"text-l",children:n})]})})})));function Ki(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const qi=u((({className:e="",title:t,description:l,items:n,image:r,socialMedia:a,button:i,...s})=>{const o=t?m(j,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?m(J,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return m(R,{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",...s,children:m(hl,{className:"flex justify-between",title:o,image:c,children:h("div",{className:"h-full flex flex-col justify-between",children:[l?m("span",{className:"mb-2",children:l}):null,n?.length?m(kl,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n}):null,a?m(Dl,{className:"pt-10 pb-0",media:a}):null,i?.text?m("div",{className:"pt-2",children:Ie([i],{buttonClassName:"mt-16 px-5"})}):null]})})})})),Qi="absolute top-0 bottom-0 w-[84px]",es=u((({recommendations:e=[],className:t="",title:l,version:n="primary",...r})=>{const[a,i]=He({itemCount:e.length,visibleItemCount:2});return h(R,{className:`relative font-sans p-9 overflow-hidden text-center ${t}`,version:n,...r,children:[l?m(j,{headingType:"h3",className:"mb-6",title:l}):null,h("div",{children:[m("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*a}px)`},role:"list",children:e.length?e.map(((e,t)=>m(qi,{version:n,className:"border-gray group-data-secondary:border-white/50",...e},String(t)))):null}),Je({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),m("div",{className:`${Qi} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),m("div",{className:`${Qi} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),ts=u((e=>{const{__html:t,...l}=e;return m(R,{...l,children:m(Hi,{__html:t})})})),ls=u((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:r="primary",...a})=>m(R,{className:`border-b border-solid border-main-divider w-full ${e}`,tag:"div",...a,children:m(A,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m("div",{className:"box-border",children:m(D,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:y(a)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>ns({version:r,label:t,isUnfolded:e,onToggle:l})})})));ls.childrenTypes={exclude:["RollupItem","Accordion","AccordionItem","OtherProducts","OtherProductsItem"]};const ns=({version:e,label:t,isUnfolded:l,onToggle:n})=>{const r=t||(l?"Скрыть":"Развернуть");return"primary"===e?rs({label:r,icon:l?"MinusIcon":"PlusIcon",onToggle:n}):m(fi,{label:r,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:n})},rs=({label:e,icon:t,onToggle:l})=>h("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[m("span",{className:"text-xl font-medium pr-2.5",children:e}),t?m(J,{image:Vl({icon:t}),width:"24",height:"24",asSVG:!0}):null]}),as=[];const is=async e=>await pt(e,{method:"GET"})||as,ss=u((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:r="",setSelected:a,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return m(Ln,{options:s,label:i,placeholder:r||n,onChange:e=>a(e.key),value:o})})),os=u((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:r,onSelectedBranch:a})=>h("div",{className:"flex justify-between gap-4 mb-6",children:[m("div",{className:"max-w-[396px] w-1/2",children:m(ss,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),m("div",{className:"max-w-[396px] w-1/2",children:m(ss,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),cs=u((({name:e,text:t,value:l,checked:n,onChange:r,className:a})=>m("div",{className:a,children:h("label",{className:"font-sans flex items-center relative cursor-pointer",children:[m("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=>r(e.target.value)}),t?m("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),ds=u((()=>{const[e,t]=n("option2"),l=a((e=>t(e)),[]);return h("div",{children:[m(cs,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),m(cs,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),ms=["От 1 дня","До 365 дней"],hs=u((({days:e,setDays:t})=>h("div",{className:"mb-6",children:[m("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),m(st,{min:1,max:365,value:e,items:ms,onChange:t})]}))),us=u((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:r,onSelectedBoxSize:a})=>h("div",{className:"flex justify-between mb-6",children:[m("div",{className:"mr-4 w-full",children:m(ss,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),m("div",{className:"w-full",children:m(ss,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),ps=u((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>h("div",{className:"flex-1 mr-9",children:[m(os,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:xs(c)}),m(hs,{days:r,setDays:e=>c({days:e})}),m(us,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:gs(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),m("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),h("div",{className:"flex justify-between items-center mt-5",children:[m(ds,{}),m(ke,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),xs=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},gs=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},bs=u((({days:e,tariffs:t=[]})=>{const l=vs(e,t);return h("div",{className:"flex flex-col justify-between",children:[h("div",{className:"flex",children:[fs("Аренда за",e,"mr-11"),fs("Цена",l+" ₽")]}),h("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[m(J,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),h("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",m("br",{})," листов формата А4"]})]})]})})),fs=(e,t,l="")=>h("div",{className:l,children:[m("div",{className:"text-m-light text-secondary-text mb-1",children:e}),m("span",{className:"text-h3 text-primary-text",children:t})]}),vs=(e,t)=>{const l=Ns(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},Ns=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},ys=(e,t)=>e.find((e=>e.branchCode===t)),ws=u((e=>{const{regions:t,data:l,branches:n,onChange:a,onClick:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=ys(n,l.selectedBranch),o=Cs(s?.safeBoxCaseVolumes),c=ks(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=Ss(c,l.selectedBoxSize);return h("div",{className:"flex justify-between align-top mb-6",children:[m(ps,{...l,regions:t,onClick:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),m(bs,{days:l.days,tariffs:d})]})})),Cs=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],ks=(e,t)=>e?.find((e=>e.volume===t)),Ss=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const $s=u((({title:e,footnote:t,className:l="",...r})=>{const[i,s]=n(!1),o=a((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),u=function(){const{data:e}=ht("/api/v1/regions",xt);return e||[]}(),p=Is(c.selectedRegion,u),x=function(e){const{data:t}=ht(e?`/api/v1/safeboxes?regionCode=${e}`:null,is);return t||as}(p),g=a((e=>d((t=>({...t,...e})))),[d]),b=(f=ys(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return h(R,{className:l,...r,children:[h("div",{className:"px-8 py-12",children:[e?m(j,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,m(ws,{regions:u,branches:x,data:{...c,selectedRegion:p},onClick:o,onChange:g}),t?m("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?m(li,{points:b,className:"h-[640px]"}):null]})})),Is=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Ts=e=>Boolean(e?.icon||e?.src),Bs=({styleMap:e,isMainButton:t,version:l})=>(n,r,{length:a})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n,u=i&&(s||c)?"mt-2":"";return h("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${_s(a)}`,children:[h("div",{className:(o?.text?"mb-8":"")+" text-center",children:[Rs(i),h("div",{className:`${u} flex flex-col items-center`,children:[Vs({description:s,className:e.description}),m(kl,{className:js({className:"text-left",description:s,styleMap:e}),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?m(ke,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(r))},Rs=e=>e?m("div",{className:"text-h6",children:e}):null,Vs=({description:e,className:t=""})=>e?m("div",{className:t,children:e}):null,js=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),_s=e=>e<5?"w-[276px]":"w-[210px]",Ls={primary:{description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},gray:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},transparent:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},"":{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},Ms=u((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=Ls[r],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",u=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return h(R,{className:["box-border py-12",o?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e].join(" "),version:r,...a,children:[i?m(j,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?h("div",{className:`box-border ${d}`,children:[m("div",{className:`flex items-center ${u}`,children:wa(m("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(As(s,r)))}),m("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(Bs({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?m(ke,{className:"mt-8 min-w-60",version:"primary",...n}):null]})})),As=(e,t)=>({icon:l},n)=>m("div",{className:"flex flex-col items-center text-center",children:m("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center ${e.iconBackground}`,children:Ts(l)?m(J,{image:Vl(l||{},t),width:"48",height:"48",asSVG:!0}):m("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n)),Ds={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},zs={"horizontal-list":"w-6","vertical-list":"h-6"},Os=u((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list"})=>l?m("div",{className:`flex gap-2 ${Ds[n]}`,children:new Array(l).fill(null).map(((l,r)=>m("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 ${r===t?zs[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"})})(r)},String(r))))}):null)),Ps=u((({className:e="",gap:t=14,padding:l=16,showDots:n=!0,children:r,onVisibleIndicesChange:a,listType:i="horizontal-list"})=>{const s=Array.isArray(r)?r.length:0,[o,c]=el({itemCount:s,onVisibleIndicesChange:a}),[d]=c.visibleIndicesRange;return h("div",{className:x(e,"vertical-list"===i?"relative h-full":""),children:[m(Gt,{containerRef:o,activeIndex:d,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:c.handleVisibleIndicesChange,listType:i,children:r}),n?m(Os,{containerRef:o,activeIndex:d,dotCount:s,listType:i}):null]})})),Es=u((({gap:e,listType:t,padding:l,showDots:n,options:r,...a})=>m(R,{...a,children:m(Ps,{gap:e,listType:t,padding:l,showDots:n,children:y({...a,options:r})})})));Es.childrenTypes={exclude:["SwipeListControlBlock"]};const Fs="h-12 flex-1 flex items-center justify-center cursor-pointer",Us="bg-primary-main",Hs="group/btn bg-white",Xs="font-sans text-m",Gs="text-white",Ws="text-secondary-text group-hover/btn:text-primary-main",Js=u((e=>{const{tab:t,currentTab:l}=e,n="link"===l?.type&&l.href===t.href,r=he()(t);return m("a",{role:"tab",className:`${Fs} ${n?Us:Hs}`,target:t.target,href:r.href,onClick:r.onClick,children:m("span",{className:`${Xs} ${n?Gs:Ws}`,children:t.text})})})),Ys=(e,t)=>m("h3",{className:`${Xs} ${t?Gs:Ws}`,children:e}),Zs=(e,t)=>m("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:e}),Ks=({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=r.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=t===r,s=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return m("div",{className:`${Fs} ${i?Us:Hs}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:h("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?Ys(r.title,i):null,l&&s?Zs(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return m(Js,{tab:r,currentTab:t},String(a));default:Xi(i)}},qs=u((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,...o}=e,[c,d]=n(l?l[0]:void 0);r((()=>C.inst.subscribe("tab",(e=>{const t=l?.find(Qs(e));"link"===e.type&&t&&d(t)}))),[l]),r((()=>"group"===c?.type?C.inst.subject("tab",{label:c.ref}):void 0),[c]);const h=a((e=>{"group"===e?.type&&C.inst.fire("tab",{type:e.type,label:e.ref}),d(e)}),[]);return m(R,{className:`${s?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${t}`,role:"tablist",...o,children:l?.map(Ks({onClick:h,currentTab:c,showCounter:i,...o}))})})),Qs=e=>t=>"link"===t.type&&t.href===`#${e.label}`,eo=u((({isOpen:e,onClick:t})=>h(ke,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[m("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),m(O,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),to={Buttons:({buttons:e})=>Ie(e,{buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?m(J,{image:e}):null,List:({isDotted:e,...t})=>m(kl,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:u((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:r})=>e?m(eo,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},lo=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,u]=n(!0);r((()=>{t===i&&a||u(!0)}),[a,i]);return h("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?m("div",{className:"h-5"}):null,no({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{u(!1),s(t),l(e)},isVisible:d}})]},String(c))},no=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in to))return null;return m(to[l],{...t,...n})},ro=u((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})=>m("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(lo({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null}))),ao=u((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=He({itemCount:t,visibleItemCount:5});return h("div",{children:[e?.map(io(l)),Je({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),io=e=>(t,l)=>{if(!t?.length)return null;const[n,...r]=t,a=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return h("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?m("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,m("div",{className:"flex flex-grow overflow-hidden",children:m("div",{className:i,style:{transform:`translateX(-${a}px)`},children:r?.map(((t,l)=>h("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?m("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?so(t.cols,e):null]},`row${l}`)))})})]},String(l))},so=(e,t)=>e?.length>0?m("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>m("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,oo=u((({activeTabIndex:e,items:t})=>{const[l,r]=n({}),i=a((e=>r((t=>({...t,[e]:!t[e]})))),[]);return m("div",{children:t.map(((t,n)=>{const r=`activeTabIdx:${e}-tableIdx:${n}`;return h("div",{className:"w-full",children:[h("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(r),children:[t.title,m(J,{image:{icon:l[r]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),m("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[r]?"h-0":""),children:m("div",{className:"relative",children:m(ao,{rows:t.rowsData})})})]},r)}))})})),co=u((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>h("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?m("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>m("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?m(ke,{href:t,version:"secondary",target:"_blank",appendLeft:m(O,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function mo(e){const t=await fetch(e);return await t.json()}const ho=u((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:r}=function(e){const{data:t}=ht(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),mo);return t||{}}(e),[i,s]=n(0),o=a((e=>s(e)),[]),c=r?.[i]?.items??[],d=r?.map((e=>e.currency??""));return h("div",r?{className:"bg-white z-10",children:[m(co,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),m(oo,{activeTabIndex:i,items:c}),m(eo,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[m("p",{children:"Данных нет"}),m(eo,{onClick:l,isOpen:!0})]})})),uo=u((({children:e,tableInner:t,onHideContentClick:l})=>h("div",{className:"self-start flex flex-col",role:"row",children:[m("div",{className:"flex",children:e}),t?m("div",{className:"origin-top animate-expansion",children:m(ho,{...t,onClick:l})}):null]}))),po=u((({row:{header:e,data:t},activeIndex:l,rowIdx:r,...i})=>{const[s,o]=n(void 0),c=a((e=>o(e)),[]),[d,u]=n(void 0),p=a((e=>u(e)),[]);return h(uo,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[m("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:h("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?m(J,{className:"mr-3.5 max-w-6 max-h-6",image:Vl(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?m("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?m(ln,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>m(ro,{cells:e,rowIdx:r,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:p,...i},String(t))))}):null]})})),xo=u((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:r,hiddenRowsNum:a=0,...i})=>{const s=r?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,u]=He({itemCount:c,visibleItemCount:2}),p=(o||[]).map(((e,t)=>m(po,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=a>0?[p.slice(0,-a),p.slice(-a)]:[p,[]];return h(R,{className:`p-12 overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[go({title:t,description:l}),bo(l),a>0?m(A,{renderFoldableSection:({isUnfolded:e})=>h(fo,{controls:u,children:[x,m(D,{isUnfolded:e,children:g})]}),renderFoldButton:vi}):m(fo,{controls:u,children:p})]})}));function go({title:e,description:t}){return e?m(j,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function bo(e){return e?m("div",{className:"mb-9 text-center text-l",children:e}):null}const fo=u((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return h("div",{role:"table",children:[h("div",{className:"relative",children:[e,Je({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?m("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),vo={primary:"bg-white",secondary:"bg-primary-main","secondary-light":"bg-primary-main/10"},No=u((({className:e="",title:t,description:l,blockVersion:n="primary",iconVersion:r,image:a,...i})=>{const s="secondary"===n;return h(R,{className:`px-9 py-4 flex gap-3 ${vo[n]} ${e}`,...i,children:["small"===r?m("div",{className:"mt-1",children:yo(s)}):null,"big"===r?wo(a):null,h("div",{children:[t?Co(t,s):null,l?m("div",{className:"mt-1",children:ko(l,s)}):null]})]})})),yo=e=>m("div",{className:"rounded-full h-4 w-4 text-center text-xs-light "+(e?"bg-white text-primary-main":"bg-primary-main text-white"),children:"i"}),wo=e=>e?.src?m(J,{image:e}):null,Co=(e,t)=>m(Y,{size:"text-l",font:"font-medium",color:t?"text-white":"text-primary-text",children:e}),ko=(e,t)=>m(_,{size:"text-s",color:t?"text-white":"text-secondary-text",children:e}),So=u((e=>{const{tags:t,className:l=""}=e;return t?.length?m("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map($o)}):null})),$o=(e,t)=>m("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),Io=u((({title:e,headingType:t="h3",description:l,items:n,buttons:r,image:a,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,...u})=>m(R,{className:`overflow-hidden p-9 pr-3 box-border ${Ri(o)} ${Oa(o)} ${o}`,...u,children:h(hl,{title:e?m(j,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:Ie(r,{className:"mt-8",buttonClassName:"min-w-[158px]"}),image:a?.src?m(J,{className:"mt-auto ml-7",image:a}):null,children:[l?m("div",{className:"max-w-[600px] mt-2.5",children:m(_,{size:"text-xl-light",children:l})}):null,d,m(kl,{className:"mt-2.5",itemClassName:"mb-1.5",items:n,isDotted:i,listItemSize:s}),c?.length?m(So,{tags:c,className:"mt-5"}):null]})}))),To={left:"items-start",center:"items-center",right:"items-end"},Bo=u((({className:e="",gap:t="",align:l,isPadding:n=!1,isInnerPadding:r=!0,version:a="transparent",options:i,...s})=>{const o=r?"":"!p-0";return m(R,{className:x("flex flex-col [&>*]:max-w-full",n?"p-12":"",ua[t],l&&To[l],e),version:a,...s,children:y({...s,options:{...i,className:o}})})}));Bo.childrenTypes=[];const Ro=e=>za(e)<10?"py-6 px-11":"py-12 px-32",Vo=u((({className:e,title:t,src:l,previewImg:n,...r})=>h(R,{className:x(Ro(e),e),...r,children:[m(je,{title:t,headlineVersion:"M"}),l?m("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:n?.src,style:{maxHeight:524},controls:!0,children:m("source",{src:l})}):null]}))),jo={Accordion:M,AccordionItem:K,BenefitsBlock:Q,Bonus:_e,BonusBenefitsBlock:De,BusinessBlock:Fe,ButtonBlock:Ue,Calculator:Mt,CardTransfer:Ut,Carousel:nl,CarouselCard:ol,CarouselCatalogCard:dl,CarouselInvestmentCard:pl,CarouselLinks:fl,CarouselProductCard:Sl,CarouselProgramsCard:jl,CarouselRecommendationCard:zl,CarouselTariffsCard:Ol,Catalog:Yl,ComparisonTable:pn,ContactsBlock:gn,ErrorBlock:Nn,ExchangeRateTile:Wn,Footer:vr,Gallery:Vr,GracePeriod:jr,Header:ha,Headline:je,HorizontalLayout:pa,ImgBlock:xa,InsuranceAmountBlock:Na,InvestmentInfo:Sa,LinkDocs:Aa,MiniGallery:Da,MobileAppTile:Pa,OfficeMap:pi,OfficeServicesBlock:xi,OtherProducts:bi,OtherProductsItem:yi,ParagraphBlock:wi,PictureText:Si,Placeholder:Vi,ProductBlock:Ei,ProductGallery:Fi,ProductTile:Ji,PromoTile:Zi,Recommendation:es,RichTextBlock:ts,RollupItem:ls,SafeDepositRental:$s,StepsBlock:Ms,SwipeListControlBlock:Es,Tabs:qs,TariffsTable:xo,TextBlock:No,Tile:Io,VerticalLayout:Bo,Video:Vo},_o=["Header","Footer"],Lo=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Mo(e=T.inst,t=globalThis){const l=s(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{l.current&&l.current.set(e,t)}))),[e]),r((()=>{const n=((e,t=600)=>{let l;const n=(...r)=>{n.dispose(),l=setTimeout((()=>{e(...r)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!_o.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?Kt(Lo)(t):[];return l}([...l.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",n),()=>{n.dispose(),t.removeEventListener("scroll",n)}}),[e,t])}const Ao=d();const Do=u((({className:e,onClick:t,ariaLabel:l})=>m("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:zo()}))),zo=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("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"}),m("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"})]})},Oo=u((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await Ao.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await Ao.like(e))}),[e]),dislike:a((async()=>{l(await Ao.dislike(e))}),[e])}}(me().pathname);return h("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:[m(Do,{onClick:de(t.like),ariaLabel:"Поставить отметку «лайк»"}),m(Do,{onClick:de(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:t.likeCount})]})})),Po=u((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:r={}}=e,{style:a,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:l,blockDecorator:n,parent:r};return Mo(),h("section",{className:x("relative",a,t),"data-theme":c,children:[s?.header?m("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:N(s?.header,{...d,slotName:"header"})}):null,h("div",{className:"container grid grid-cols-12 gap-1",children:[N(i,d),s?.footer?N(s?.footer,{...d,slotName:"footer"}):null]}),o?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(Oo,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Po.childrenTypes=[],Po.slots=()=>["header","footer"];e.Blocks=jo,e.ContentPage=Po,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=d,e.handlerDecorator=de,e.joinList=wa,e.packageVersion="0.7.2",e.projectSettings=o,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ce,e.useRouter=me,Object.defineProperty(e,"__esModule",{value:!0})}));
|