@redneckz/wildless-cms-uni-blocks 0.8.26 → 0.8.28
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/bin/migration-scripts/0.8.17.js +4 -2
- package/bin/migration-scripts/0.8.24.js +24 -0
- package/bundle/EventBus/defaultEventBus.d.ts +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +230 -64
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/bundle/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/bundle/components/Bonus/BonusContent.d.ts +0 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/bundle/components/Calculator/CalculatorContent.d.ts +2 -4
- package/bundle/components/Carousel/CarouselContent.d.ts +1 -4
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/bundle/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/bundle/components/PictureText/PictureTextContent.d.ts +3 -21
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/bundle/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/bundle/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/bundle/components/Tabs/TabsContent.d.ts +1 -4
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/bundle/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/bundle/components/Tile/TileContent.d.ts +3 -22
- package/bundle/components/Video/VideoContent.d.ts +2 -15
- package/bundle/hooks/useCarouselControls.d.ts +0 -2
- package/{dist/services/sitemap → bundle/hooks}/useSWRResource.d.ts +1 -1
- package/bundle/model/Bullets.d.ts +4 -0
- package/bundle/model/Button.d.ts +15 -0
- package/bundle/model/HeadlineType.d.ts +4 -0
- package/bundle/model/Picture.d.ts +3 -10
- package/{dist/services/sitemap/SitemapProps.d.ts → bundle/services/sitemap/SitemapData.d.ts} +1 -1
- package/bundle/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/bundle/services/sitemap/search/joinMaps.d.ts +1 -0
- package/bundle/services/sitemap/search/search.d.ts +12 -0
- package/bundle/services/sitemap/search/textRank.d.ts +1 -0
- package/bundle/services/sitemap/search/tokenize.d.ts +1 -0
- package/bundle/services/sitemap/useSearch.d.ts +8 -0
- package/bundle/ui-kit/BlockWrapper.d.ts +1 -0
- package/bundle/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/bundle/ui-kit/List/ListProps.d.ts +3 -4
- package/bundle/ui-kit/Location/Location.d.ts +1 -18
- package/bundle/ui-kit/Location/LocationProps.d.ts +16 -0
- package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/bundle/utils/Comparator.d.ts +4 -0
- package/bundle/utils/maxBy.d.ts +1 -0
- package/bundle/utils/minBy.d.ts +1 -0
- package/bundle/utils/sum.d.ts +1 -0
- package/bundle/utils/unique.d.ts +1 -0
- package/bundle/utils/url.d.ts +1 -1
- package/bundle/utils/zip.d.ts +4 -0
- package/dist/EventBus/defaultEventBus.d.ts +1 -0
- package/dist/EventBus/defaultEventBus.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/dist/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/dist/components/Bonus/BonusContent.d.ts +0 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/dist/components/Calculator/CalculatorContent.d.ts +2 -4
- package/dist/components/Carousel/CarouselContent.d.ts +1 -4
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/dist/components/ContentPage/ContentPage.js +7 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +2 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/dist/components/Footer/Footer.js +22 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/dist/components/Footer/MediaButton.js +5 -2
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/Sitemap.d.ts +2 -2
- package/dist/components/Footer/Sitemap.js +2 -4
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +2 -0
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/dist/components/PictureText/PictureTextContent.d.ts +3 -21
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/dist/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/dist/components/Tabs/TabsContent.d.ts +1 -4
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/dist/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/dist/components/Tile/TileContent.d.ts +3 -22
- package/dist/components/VerticalLayout/VerticalLayout.js +5 -3
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +2 -15
- package/dist/hooks/useCarouselControls.d.ts +0 -2
- package/dist/hooks/useCarouselControls.js +7 -15
- package/dist/hooks/useCarouselControls.js.map +1 -1
- package/{lib/services/sitemap → dist/hooks}/useSWRResource.d.ts +1 -1
- package/{mobile/dist/services/sitemap → dist/hooks}/useSWRResource.js +1 -1
- package/dist/hooks/useSWRResource.js.map +1 -0
- package/dist/model/Bullets.d.ts +4 -0
- package/dist/{services/sitemap/SitemapProps.js → model/Bullets.js} +1 -1
- package/dist/model/Bullets.js.map +1 -0
- package/dist/model/Button.d.ts +15 -0
- package/{mobile/dist/services/sitemap/SitemapProps.js → dist/model/Button.js} +1 -1
- package/dist/model/Button.js.map +1 -0
- package/dist/model/HeadlineType.d.ts +4 -0
- package/dist/model/Picture.d.ts +3 -10
- package/{bundle/services/sitemap/SitemapProps.d.ts → dist/services/sitemap/SitemapData.d.ts} +1 -1
- package/dist/services/sitemap/SitemapData.js +2 -0
- package/dist/services/sitemap/SitemapData.js.map +1 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.js +67 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/dist/services/sitemap/search/joinMaps.d.ts +1 -0
- package/dist/services/sitemap/search/joinMaps.js +10 -0
- package/dist/services/sitemap/search/joinMaps.js.map +1 -0
- package/dist/services/sitemap/search/search.d.ts +12 -0
- package/dist/services/sitemap/search/search.js +39 -0
- package/dist/services/sitemap/search/search.js.map +1 -0
- package/dist/services/sitemap/search/textRank.d.ts +1 -0
- package/dist/services/sitemap/search/textRank.js +14 -0
- package/dist/services/sitemap/search/textRank.js.map +1 -0
- package/dist/services/sitemap/search/tokenize.d.ts +1 -0
- package/dist/services/sitemap/search/tokenize.js +9 -0
- package/dist/services/sitemap/search/tokenize.js.map +1 -0
- package/dist/services/sitemap/useSearch.d.ts +8 -0
- package/dist/services/sitemap/useSearch.js +33 -0
- package/dist/services/sitemap/useSearch.js.map +1 -0
- package/dist/ui-kit/BlockWrapper.d.ts +1 -0
- package/dist/ui-kit/BlockWrapper.js +3 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/dist/ui-kit/List/ListProps.d.ts +3 -4
- package/dist/ui-kit/Location/Location.d.ts +1 -18
- package/dist/ui-kit/Location/Location.js +6 -8
- package/dist/ui-kit/Location/Location.js.map +1 -1
- package/dist/ui-kit/Location/LocationProps.d.ts +16 -0
- package/dist/ui-kit/Location/LocationProps.js +2 -0
- package/dist/ui-kit/Location/LocationProps.js.map +1 -0
- package/dist/ui-kit/Location/SearchBar.js +1 -1
- package/dist/ui-kit/Location/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/utils/Comparator.d.ts +4 -0
- package/dist/utils/Comparator.js +9 -0
- package/dist/utils/Comparator.js.map +1 -0
- package/dist/utils/fetchJSON.js +1 -1
- package/dist/utils/fetchJSON.js.map +1 -1
- package/dist/utils/maxBy.d.ts +1 -0
- package/dist/utils/maxBy.js +2 -1
- package/dist/utils/maxBy.js.map +1 -1
- package/dist/utils/minBy.d.ts +1 -0
- package/dist/utils/minBy.js +2 -1
- package/dist/utils/minBy.js.map +1 -1
- package/dist/utils/sum.d.ts +1 -0
- package/dist/utils/sum.js +5 -0
- package/dist/utils/sum.js.map +1 -0
- package/dist/utils/unique.d.ts +1 -0
- package/dist/utils/unique.js +5 -0
- package/dist/utils/unique.js.map +1 -0
- package/dist/utils/url.d.ts +1 -1
- package/dist/utils/url.js.map +1 -1
- package/dist/utils/zip.d.ts +4 -0
- package/dist/utils/zip.js +7 -0
- package/dist/utils/zip.js.map +1 -0
- package/lib/EventBus/defaultEventBus.d.ts +1 -0
- package/lib/EventBus/defaultEventBus.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/lib/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/lib/components/Bonus/BonusContent.d.ts +0 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/lib/components/Calculator/CalculatorContent.d.ts +2 -4
- package/lib/components/Carousel/CarouselContent.d.ts +1 -4
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +4 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/lib/components/ContentPage/ContentPage.js +7 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +2 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/lib/components/Footer/Footer.js +22 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/lib/components/Footer/MediaButton.js +5 -2
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/Sitemap.d.ts +2 -2
- package/lib/components/Footer/Sitemap.js +2 -4
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +2 -0
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/lib/components/PictureText/PictureTextContent.d.ts +3 -21
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/lib/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/lib/components/Tabs/TabsContent.d.ts +1 -4
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/lib/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/lib/components/Tile/TileContent.d.ts +3 -22
- package/lib/components/VerticalLayout/VerticalLayout.js +5 -3
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +2 -15
- package/lib/hooks/useCarouselControls.d.ts +0 -2
- package/lib/hooks/useCarouselControls.js +7 -15
- package/lib/hooks/useCarouselControls.js.map +1 -1
- package/{bundle/services/sitemap → lib/hooks}/useSWRResource.d.ts +1 -1
- package/lib/{services/sitemap → hooks}/useSWRResource.js +1 -1
- package/lib/hooks/useSWRResource.js.map +1 -0
- package/lib/model/Bullets.d.ts +4 -0
- package/lib/model/Bullets.js +2 -0
- package/lib/model/Bullets.js.map +1 -0
- package/lib/model/Button.d.ts +15 -0
- package/lib/model/Button.js +2 -0
- package/lib/model/Button.js.map +1 -0
- package/lib/model/HeadlineType.d.ts +4 -0
- package/lib/model/Picture.d.ts +3 -10
- package/{mobile/bundle/services/sitemap/SitemapProps.d.ts → lib/services/sitemap/SitemapData.d.ts} +1 -1
- package/lib/services/sitemap/SitemapData.js +2 -0
- package/lib/services/sitemap/SitemapData.js.map +1 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.js +64 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/lib/services/sitemap/search/joinMaps.d.ts +1 -0
- package/lib/services/sitemap/search/joinMaps.js +7 -0
- package/lib/services/sitemap/search/joinMaps.js.map +1 -0
- package/lib/services/sitemap/search/search.d.ts +12 -0
- package/lib/services/sitemap/search/search.js +36 -0
- package/lib/services/sitemap/search/search.js.map +1 -0
- package/lib/services/sitemap/search/textRank.d.ts +1 -0
- package/lib/services/sitemap/search/textRank.js +11 -0
- package/lib/services/sitemap/search/textRank.js.map +1 -0
- package/lib/services/sitemap/search/tokenize.d.ts +1 -0
- package/lib/services/sitemap/search/tokenize.js +6 -0
- package/lib/services/sitemap/search/tokenize.js.map +1 -0
- package/lib/services/sitemap/useSearch.d.ts +8 -0
- package/lib/services/sitemap/useSearch.js +30 -0
- package/lib/services/sitemap/useSearch.js.map +1 -0
- package/lib/ui-kit/BlockWrapper.d.ts +1 -0
- package/lib/ui-kit/BlockWrapper.js +3 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/lib/ui-kit/List/ListProps.d.ts +3 -4
- package/lib/ui-kit/Location/Location.d.ts +1 -18
- package/lib/ui-kit/Location/Location.js +7 -9
- package/lib/ui-kit/Location/Location.js.map +1 -1
- package/lib/ui-kit/Location/LocationProps.d.ts +16 -0
- package/lib/ui-kit/Location/LocationProps.js +2 -0
- package/lib/ui-kit/Location/LocationProps.js.map +1 -0
- package/lib/ui-kit/Location/SearchBar.js +1 -1
- package/lib/ui-kit/Location/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/utils/Comparator.d.ts +4 -0
- package/lib/utils/Comparator.js +4 -0
- package/lib/utils/Comparator.js.map +1 -0
- package/lib/utils/fetchJSON.js +1 -1
- package/lib/utils/fetchJSON.js.map +1 -1
- package/lib/utils/maxBy.d.ts +1 -0
- package/lib/utils/maxBy.js +1 -0
- package/lib/utils/maxBy.js.map +1 -1
- package/lib/utils/minBy.d.ts +1 -0
- package/lib/utils/minBy.js +1 -0
- package/lib/utils/minBy.js.map +1 -1
- package/lib/utils/sum.d.ts +1 -0
- package/lib/utils/sum.js +2 -0
- package/lib/utils/sum.js.map +1 -0
- package/lib/utils/unique.d.ts +1 -0
- package/lib/utils/unique.js +2 -0
- package/lib/utils/unique.js.map +1 -0
- package/lib/utils/url.d.ts +1 -1
- package/lib/utils/url.js.map +1 -1
- package/lib/utils/zip.d.ts +4 -0
- package/lib/utils/zip.js +4 -0
- package/lib/utils/zip.js.map +1 -0
- package/mobile/bundle/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +25 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -4
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/bundle/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/bundle/components/Tile/TileContent.d.ts +3 -22
- package/mobile/bundle/components/Video/VideoContent.d.ts +2 -15
- package/mobile/bundle/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/bundle/{services/sitemap → hooks}/useSWRResource.d.ts +1 -1
- package/mobile/bundle/model/Bullets.d.ts +4 -0
- package/mobile/bundle/model/Button.d.ts +15 -0
- package/mobile/bundle/model/HeadlineType.d.ts +4 -0
- package/mobile/bundle/model/Picture.d.ts +3 -10
- package/{lib/services/sitemap/SitemapProps.d.ts → mobile/bundle/services/sitemap/SitemapData.d.ts} +1 -1
- package/mobile/bundle/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/search.d.ts +12 -0
- package/mobile/bundle/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/bundle/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/bundle/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/bundle/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/bundle/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/bundle/utils/Comparator.d.ts +4 -0
- package/mobile/bundle/utils/maxBy.d.ts +1 -0
- package/mobile/bundle/utils/minBy.d.ts +1 -0
- package/mobile/bundle/utils/sum.d.ts +1 -0
- package/mobile/bundle/utils/unique.d.ts +1 -0
- package/mobile/bundle/utils/url.d.ts +1 -1
- package/mobile/bundle/utils/zip.d.ts +4 -0
- package/mobile/dist/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/dist/EventBus/defaultEventBus.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/dist/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -4
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/dist/components/ContentPage/ContentPage.js +7 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/dist/components/Footer/MediaButton.js +5 -2
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/dist/components/Footer/Sitemap.js +2 -4
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/dist/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/dist/components/Tile/TileContent.d.ts +3 -22
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +5 -3
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +2 -15
- package/mobile/dist/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/dist/hooks/useCarouselControls.js +7 -15
- package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
- package/mobile/dist/hooks/useSWRResource.d.ts +2 -0
- package/{dist/services/sitemap → mobile/dist/hooks}/useSWRResource.js +1 -1
- package/mobile/dist/hooks/useSWRResource.js.map +1 -0
- package/mobile/dist/model/Bullets.d.ts +4 -0
- package/mobile/dist/model/Bullets.js +2 -0
- package/mobile/dist/model/Bullets.js.map +1 -0
- package/mobile/dist/model/Button.d.ts +15 -0
- package/mobile/dist/model/Button.js +2 -0
- package/mobile/dist/model/Button.js.map +1 -0
- package/mobile/dist/model/HeadlineType.d.ts +4 -0
- package/mobile/dist/model/Picture.d.ts +3 -10
- package/mobile/dist/services/sitemap/SitemapData.d.ts +32 -0
- package/mobile/dist/services/sitemap/SitemapData.js +2 -0
- package/mobile/dist/services/sitemap/SitemapData.js.map +1 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.js +67 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/dist/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/joinMaps.js +10 -0
- package/mobile/dist/services/sitemap/search/joinMaps.js.map +1 -0
- package/mobile/dist/services/sitemap/search/search.d.ts +12 -0
- package/mobile/dist/services/sitemap/search/search.js +39 -0
- package/mobile/dist/services/sitemap/search/search.js.map +1 -0
- package/mobile/dist/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/textRank.js +14 -0
- package/mobile/dist/services/sitemap/search/textRank.js.map +1 -0
- package/mobile/dist/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/tokenize.js +9 -0
- package/mobile/dist/services/sitemap/search/tokenize.js.map +1 -0
- package/mobile/dist/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/dist/services/sitemap/useSearch.js +33 -0
- package/mobile/dist/services/sitemap/useSearch.js.map +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/dist/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/dist/ui-kit/Location/Location.js +6 -8
- package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
- package/mobile/dist/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/dist/ui-kit/Location/LocationProps.js +2 -0
- package/mobile/dist/ui-kit/Location/LocationProps.js.map +1 -0
- package/mobile/dist/ui-kit/Location/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/Location/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/utils/Comparator.d.ts +4 -0
- package/mobile/dist/utils/Comparator.js +9 -0
- package/mobile/dist/utils/Comparator.js.map +1 -0
- package/mobile/dist/utils/fetchJSON.js +1 -1
- package/mobile/dist/utils/fetchJSON.js.map +1 -1
- package/mobile/dist/utils/maxBy.d.ts +1 -0
- package/mobile/dist/utils/maxBy.js +2 -1
- package/mobile/dist/utils/maxBy.js.map +1 -1
- package/mobile/dist/utils/minBy.d.ts +1 -0
- package/mobile/dist/utils/minBy.js +2 -1
- package/mobile/dist/utils/minBy.js.map +1 -1
- package/mobile/dist/utils/sum.d.ts +1 -0
- package/mobile/dist/utils/sum.js +5 -0
- package/mobile/dist/utils/sum.js.map +1 -0
- package/mobile/dist/utils/unique.d.ts +1 -0
- package/mobile/dist/utils/unique.js +5 -0
- package/mobile/dist/utils/unique.js.map +1 -0
- package/mobile/dist/utils/url.d.ts +1 -1
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/dist/utils/zip.d.ts +4 -0
- package/mobile/dist/utils/zip.js +7 -0
- package/mobile/dist/utils/zip.js.map +1 -0
- package/mobile/lib/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/lib/EventBus/defaultEventBus.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/lib/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -4
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/lib/components/ContentPage/ContentPage.js +7 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/lib/components/Footer/MediaButton.js +5 -2
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/lib/components/Footer/Sitemap.js +2 -4
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/lib/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/lib/components/Tile/TileContent.d.ts +3 -22
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +5 -3
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +2 -15
- package/mobile/lib/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/lib/hooks/useCarouselControls.js +7 -15
- package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
- package/mobile/lib/hooks/useSWRResource.d.ts +2 -0
- package/mobile/lib/{services/sitemap → hooks}/useSWRResource.js +1 -1
- package/mobile/lib/hooks/useSWRResource.js.map +1 -0
- package/mobile/lib/model/Bullets.d.ts +4 -0
- package/mobile/lib/model/Bullets.js +2 -0
- package/mobile/lib/model/Bullets.js.map +1 -0
- package/mobile/lib/model/Button.d.ts +15 -0
- package/mobile/lib/model/Button.js +2 -0
- package/mobile/lib/model/Button.js.map +1 -0
- package/mobile/lib/model/HeadlineType.d.ts +4 -0
- package/mobile/lib/model/Picture.d.ts +3 -10
- package/mobile/lib/services/sitemap/SitemapData.d.ts +32 -0
- package/mobile/lib/services/sitemap/SitemapData.js +2 -0
- package/mobile/lib/services/sitemap/SitemapData.js.map +1 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.js +64 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/lib/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/joinMaps.js +7 -0
- package/mobile/lib/services/sitemap/search/joinMaps.js.map +1 -0
- package/mobile/lib/services/sitemap/search/search.d.ts +12 -0
- package/mobile/lib/services/sitemap/search/search.js +36 -0
- package/mobile/lib/services/sitemap/search/search.js.map +1 -0
- package/mobile/lib/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/textRank.js +11 -0
- package/mobile/lib/services/sitemap/search/textRank.js.map +1 -0
- package/mobile/lib/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/tokenize.js +6 -0
- package/mobile/lib/services/sitemap/search/tokenize.js.map +1 -0
- package/mobile/lib/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/lib/services/sitemap/useSearch.js +30 -0
- package/mobile/lib/services/sitemap/useSearch.js.map +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/lib/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/lib/ui-kit/Location/Location.js +7 -9
- package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
- package/mobile/lib/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/lib/ui-kit/Location/LocationProps.js +2 -0
- package/mobile/lib/ui-kit/Location/LocationProps.js.map +1 -0
- package/mobile/lib/ui-kit/Location/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/Location/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/utils/Comparator.d.ts +4 -0
- package/mobile/lib/utils/Comparator.js +4 -0
- package/mobile/lib/utils/Comparator.js.map +1 -0
- package/mobile/lib/utils/fetchJSON.js +1 -1
- package/mobile/lib/utils/fetchJSON.js.map +1 -1
- package/mobile/lib/utils/maxBy.d.ts +1 -0
- package/mobile/lib/utils/maxBy.js +1 -0
- package/mobile/lib/utils/maxBy.js.map +1 -1
- package/mobile/lib/utils/minBy.d.ts +1 -0
- package/mobile/lib/utils/minBy.js +1 -0
- package/mobile/lib/utils/minBy.js.map +1 -1
- package/mobile/lib/utils/sum.d.ts +1 -0
- package/mobile/lib/utils/sum.js +2 -0
- package/mobile/lib/utils/sum.js.map +1 -0
- package/mobile/lib/utils/unique.d.ts +1 -0
- package/mobile/lib/utils/unique.js +2 -0
- package/mobile/lib/utils/unique.js.map +1 -0
- package/mobile/lib/utils/url.d.ts +1 -1
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/lib/utils/zip.d.ts +4 -0
- package/mobile/lib/utils/zip.js +4 -0
- package/mobile/lib/utils/zip.js.map +1 -0
- package/mobile/src/EventBus/defaultEventBus.ts +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +8 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -5
- package/mobile/src/components/BaseTile/BaseTileProps.ts +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -3
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -8
- package/mobile/src/components/Bonus/Bonus.example.json +2 -1
- package/mobile/src/components/Bonus/Bonus.ui.json +1 -1
- package/mobile/src/components/Bonus/BonusContent.ts +0 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +3 -8
- package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +42 -8
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +3 -9
- package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +3 -1
- package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +1 -5
- package/mobile/src/components/Calculator/CalculatorContent.ts +6 -7
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/CarouselContent.ts +1 -4
- package/mobile/src/components/CarouselCard/CarouselCard.example.json +4 -2
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -3
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +3 -10
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +3 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -10
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +13 -6
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +4 -21
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +11 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -29
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +25 -12
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +2 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -5
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +44 -26
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -21
- package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +8 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +15 -11
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +3 -3
- package/mobile/src/components/ContentPage/ContentPage.tsx +16 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +15 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +7 -4
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +5 -23
- package/mobile/src/components/Footer/Footer.tsx +3 -3
- package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
- package/mobile/src/components/Footer/MediaButton.tsx +13 -7
- package/mobile/src/components/Footer/Sitemap.tsx +4 -7
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +15 -0
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +1 -1
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +3 -14
- package/mobile/src/components/Header/Header.tsx +3 -3
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +4 -1
- package/mobile/src/components/Headline/Headline.tsx +5 -6
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.example.json +3 -1
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +3 -1
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +2 -4
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +3 -3
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +9 -2
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +4 -17
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +10 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +4 -20
- package/mobile/src/components/PictureText/PictureText.example.json +9 -1
- package/mobile/src/components/PictureText/PictureTextContent.ts +4 -21
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +10 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +5 -23
- package/mobile/src/components/ProductTile/ProductTile.example.json +10 -2
- package/mobile/src/components/ProductTile/ProductTileContent.ts +3 -17
- package/mobile/src/components/Recommendation/Recommendation.example.json +5 -1
- package/mobile/src/components/Recommendation/RecommendationContent.ts +2 -28
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +8 -4
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +19 -33
- package/mobile/src/components/Tabs/Tabs.example.json +2 -1
- package/mobile/src/components/Tabs/TabsContent.ts +1 -4
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +4 -9
- package/mobile/src/components/TextBlock/TextBlockContent.ts +5 -5
- package/mobile/src/components/Tile/Tile.example.json +9 -1
- package/mobile/src/components/Tile/TileContent.ts +5 -22
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -1
- package/mobile/src/components/Video/Video.example.json +7 -1
- package/mobile/src/components/Video/VideoContent.ts +2 -15
- package/mobile/src/hooks/useCarouselControls.ts +7 -30
- package/mobile/src/{services/sitemap → hooks}/useSWRResource.ts +2 -2
- package/mobile/src/model/Bullets.ts +4 -0
- package/mobile/src/model/Button.ts +16 -0
- package/mobile/src/model/HeadlineType.ts +5 -0
- package/mobile/src/model/Picture.ts +3 -10
- package/mobile/src/services/sitemap/{SitemapProps.ts → SitemapData.ts} +1 -1
- package/mobile/src/services/sitemap/search/jaroWinklerDistance.ts +98 -0
- package/mobile/src/services/sitemap/search/joinMaps.ts +9 -0
- package/mobile/src/services/sitemap/search/search.ts +73 -0
- package/mobile/src/services/sitemap/search/textRank.ts +14 -0
- package/mobile/src/services/sitemap/search/tokenize.ts +7 -0
- package/mobile/src/services/sitemap/useSearch.ts +56 -0
- package/mobile/src/ui-kit/BlockWrapper.tsx +8 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +4 -4
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/mobile/src/ui-kit/List/ListProps.ts +11 -11
- package/mobile/src/ui-kit/Location/Location.tsx +23 -40
- package/mobile/src/ui-kit/Location/LocationProps.ts +25 -0
- package/mobile/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +59 -56
- package/mobile/src/utils/Comparator.ts +14 -0
- package/mobile/src/utils/fetchJSON.ts +1 -1
- package/mobile/src/utils/maxBy.ts +2 -0
- package/mobile/src/utils/minBy.ts +2 -0
- package/mobile/src/utils/sum.ts +1 -0
- package/mobile/src/utils/unique.ts +1 -0
- package/mobile/src/utils/url.ts +1 -1
- package/mobile/src/utils/zip.ts +8 -0
- package/package.json +1 -1
- package/src/EventBus/defaultEventBus.ts +1 -0
- package/src/components/ApplicationForm/ApplicationForm.example.json +8 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -5
- package/src/components/BaseTile/BaseTileProps.ts +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -3
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -8
- package/src/components/Bonus/Bonus.example.json +2 -1
- package/src/components/Bonus/Bonus.ui.json +1 -1
- package/src/components/Bonus/BonusContent.ts +0 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +3 -8
- package/src/components/BusinessBlock/BusinessBlock.example.json +42 -8
- package/src/components/BusinessBlock/BusinessBlockContent.ts +3 -9
- package/src/components/ButtonBlock/ButtonBlock.example.json +3 -1
- package/src/components/ButtonBlock/ButtonBlockContent.ts +1 -5
- package/src/components/Calculator/CalculatorContent.ts +6 -7
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +5 -4
- package/src/components/Carousel/CarouselContent.ts +1 -4
- package/src/components/CarouselCard/CarouselCard.example.json +4 -2
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +3 -0
- package/src/components/CarouselCard/CarouselCard.tsx +4 -3
- package/src/components/CarouselCard/CarouselCardContent.ts +3 -10
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +3 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -10
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +13 -6
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +4 -21
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +11 -2
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -29
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +25 -12
- package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -5
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +82 -22
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +44 -26
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -21
- package/src/components/ComparisonTable/ComparisonTable.example.json +8 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +15 -11
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +3 -3
- package/src/components/ContentPage/ContentPage.tsx +16 -1
- package/src/components/ErrorBlock/ErrorBlock.example.json +15 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +7 -4
- package/src/components/ErrorBlock/ErrorBlockContent.ts +5 -23
- package/src/components/Footer/Footer.mobile.tsx +3 -3
- package/src/components/Footer/Footer.tsx +33 -3
- package/src/components/Footer/FooterDataProps.ts +2 -2
- package/src/components/Footer/MediaButton.tsx +13 -7
- package/src/components/Footer/Sitemap.tsx +4 -7
- package/src/components/Footer/SocialMedia.tsx +11 -2
- package/src/components/GracePeriod/GracePeriod.example.json +15 -0
- package/src/components/GracePeriod/GracePeriod.ui.json +1 -1
- package/src/components/GracePeriod/GracePeriodContent.ts +3 -14
- package/src/components/Header/Header.mobile.tsx +3 -3
- package/src/components/Header/Header.tsx +3 -3
- package/src/components/Header/HeaderSecondaryMenu.tsx +4 -1
- package/src/components/Headline/Headline.fixture.tsx +11 -11
- package/src/components/Headline/Headline.tsx +5 -6
- package/src/components/HorizontalLayout/HorizontalLayout.example.json +3 -1
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +3 -1
- package/src/components/ImgBlock/ImgBlockContent.ts +2 -4
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +3 -3
- package/src/components/LinkDocs/LinkDocs.example.json +9 -2
- package/src/components/LinkDocs/LinkDocsContent.ts +4 -17
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.example.json +10 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +4 -20
- package/src/components/PictureText/PictureText.example.json +9 -1
- package/src/components/PictureText/PictureTextContent.ts +4 -21
- package/src/components/ProductBlock/ProductBlock.example.json +10 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +5 -23
- package/src/components/ProductBlock/ProductBlockInner.tsx +0 -1
- package/src/components/ProductTile/ProductTile.example.json +10 -2
- package/src/components/ProductTile/ProductTileContent.ts +3 -17
- package/src/components/Recommendation/Recommendation.example.json +5 -1
- package/src/components/Recommendation/RecommendationContent.ts +2 -28
- package/src/components/StepsBlock/StepsBlock.example.json +8 -4
- package/src/components/StepsBlock/StepsBlockContent.ts +19 -33
- package/src/components/Tabs/Tabs.example.json +2 -1
- package/src/components/Tabs/TabsContent.ts +1 -4
- package/src/components/TariffsTable/TariffsTableContent.ts +4 -9
- package/src/components/TextBlock/TextBlockContent.ts +5 -5
- package/src/components/Tile/Tile.example.json +9 -1
- package/src/components/Tile/TileContent.ts +5 -22
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +1 -0
- package/src/components/VerticalLayout/VerticalLayout.tsx +5 -1
- package/src/components/Video/Video.example.json +7 -1
- package/src/components/Video/VideoContent.ts +2 -15
- package/src/hooks/useCarouselControls.ts +7 -30
- package/src/{services/sitemap → hooks}/useSWRResource.ts +2 -2
- package/src/model/Bullets.ts +4 -0
- package/src/model/Button.ts +16 -0
- package/src/model/HeadlineType.ts +5 -0
- package/src/model/Picture.ts +3 -10
- package/src/services/sitemap/{SitemapProps.ts → SitemapData.ts} +1 -1
- package/src/services/sitemap/search/jaroWinklerDistance.ts +98 -0
- package/src/services/sitemap/search/joinMaps.ts +9 -0
- package/src/services/sitemap/search/search.ts +73 -0
- package/src/services/sitemap/search/textRank.ts +14 -0
- package/src/services/sitemap/search/tokenize.ts +7 -0
- package/src/services/sitemap/useSearch.ts +56 -0
- package/src/ui-kit/BlockWrapper.tsx +8 -3
- package/src/ui-kit/Button/ButtonProps.ts +4 -4
- package/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/src/ui-kit/List/ListProps.ts +11 -11
- package/src/ui-kit/Location/Location.fixture.tsx +1 -1
- package/src/ui-kit/Location/Location.tsx +23 -40
- package/src/ui-kit/Location/LocationProps.ts +25 -0
- package/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +59 -56
- package/src/utils/Comparator.ts +14 -0
- package/src/utils/fetchJSON.ts +1 -1
- package/src/utils/maxBy.ts +2 -0
- package/src/utils/minBy.ts +2 -0
- package/src/utils/sum.ts +1 -0
- package/src/utils/unique.ts +1 -0
- package/src/utils/url.ts +1 -1
- package/src/utils/zip.ts +8 -0
- package/bundle/hooks/useSearch.d.ts +0 -4
- package/dist/hooks/useSearch.d.ts +0 -4
- package/dist/hooks/useSearch.js +0 -12
- package/dist/hooks/useSearch.js.map +0 -1
- package/dist/services/sitemap/SitemapProps.js.map +0 -1
- package/dist/services/sitemap/useSWRResource.js.map +0 -1
- package/lib/hooks/useSearch.d.ts +0 -4
- package/lib/hooks/useSearch.js +0 -9
- package/lib/hooks/useSearch.js.map +0 -1
- package/lib/services/sitemap/SitemapProps.js +0 -2
- package/lib/services/sitemap/SitemapProps.js.map +0 -1
- package/lib/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/bundle/hooks/useSearch.d.ts +0 -4
- package/mobile/dist/hooks/useSearch.d.ts +0 -4
- package/mobile/dist/hooks/useSearch.js +0 -12
- package/mobile/dist/hooks/useSearch.js.map +0 -1
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +0 -32
- package/mobile/dist/services/sitemap/SitemapProps.js.map +0 -1
- package/mobile/dist/services/sitemap/useSWRResource.d.ts +0 -2
- package/mobile/dist/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/lib/hooks/useSearch.d.ts +0 -4
- package/mobile/lib/hooks/useSearch.js +0 -9
- package/mobile/lib/hooks/useSearch.js.map +0 -1
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +0 -32
- package/mobile/lib/services/sitemap/SitemapProps.js +0 -2
- package/mobile/lib/services/sitemap/SitemapProps.js.map +0 -1
- package/mobile/lib/services/sitemap/useSWRResource.d.ts +0 -2
- package/mobile/lib/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/src/hooks/useSearch.ts +0 -10
- package/src/hooks/useSearch.ts +0 -10
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),a=l("useState"),n=l("useEffect"),r=l("useCallback"),i=l("useMemo"),s=l("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;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||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:a}=await e.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:a,...n}=t||{},r=l?.slots?.default,i=a||r&&r();return e(Object.assign(n,i&&{children:i}),l)}return t.inheritAttrs=!1,t},b=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),f=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),v=[];function N(e,t){const{key:l,blockDecorator:a=f,blocksRegistry:n={},ancestors:r=v,className:i="",extraProps:s={}}=t,{type:o}=e;o&&o in n||console.warn(`No block with "${o}" is registered`);const c=o&&n[o];return a({blockClassName:b("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:r,render:({block:a,blockClassName:n})=>{const{content:r}=a;return c?u(c,{className:n,block:e,options:t,...r,...s},l):null}},l)}const y=[],w=(e,{key:t,ancestors:l=y,slotName:a=null,renderProps:n=N,...r})=>(e||[]).map(((e,i)=>n(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...l||y,[r.parent,a]]:l})));function C({children:e,block:t,options:l,renderProps:a}){return e||(t&&l?w(t.blocks,{...l,parent:t,renderProps:a}):null)}const k={left:"text-left",center:"text-center",right:"text-right"};class S{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const T=new S;function I(e,{sensitivity:t,rootRef:l}={}){const a=s(null),r=i((()=>({threshold:$(t),root:l?.current})),[t,l?.current]);return n((()=>{if(!a.current)return;const t=new IntersectionObserver(e,r);return t.observe(a.current),()=>{t.disconnect()}}),[e,r]),a}function $(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 B=new S;const R={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","":""},V=x((({className:e="",version:t="primary",block:l,tag:i="section",role:s,isTheme:o=!0,children:c})=>{const d=i,m=function(e){return I(r((t=>{if(!e||!t?.length)return;const l=t[t.length-1];B.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(l),[h,p]=a(!1);return n((()=>T.subscribe("tab",(e=>{p(Boolean(e.label&&l?.labels?.length&&!l.labels.includes(e.label)))}))),[l]),u(d,{className:b(o?"group":"",R[t],h?"hidden":"",e),...t&&o?{"data-ver":t}:{},...l?.anchor?{id:l.anchor,ref:m}:{},role:s,children:c})})),j={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},_=x((({className:e="",headingType:t="h3",as:l="h3",title:a,children:n})=>u(l,{className:`font-sans m-0 ${j[t]} ${e}`,children:a||n}))),M=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),L=x((({className:e="",title:t,accordionAlignTitle:l="center",description:a,...n})=>p(V,{className:`p-12 mb-1 last:mb-0 ${e}`,...n,children:[t?u(_,{headingType:"h3",as:"h2",className:`mb-2.5 ${k[l]}`,title:t}):null,a?u("div",{className:"mb-2.5",children:u(M,{size:"text-l",children:a})}):null,u("div",{className:"list-none m-0 p-0",children:C(n)})]})));L.childrenTypes=["Accordion"];const D=x((({className:e="",inputClassName:t="",id:l,name:a,type:n="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...h})=>{const x=r((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=r((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:`relative ${e}`,children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:a||l,type:n,value:s,onChange:x,onBlur:g,...h}),c]})})),z=new Map;function A(e,t,{fallback:l}={}){const r=i((()=>O(e)),[e]),[s,o]=a(),[c,d]=a(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};n((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>z.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=l&&"string"==typeof u&&l[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function O(e){return e?Array.isArray(e)?e:e instanceof Function?O(e()):[e]:[e]}async function P(e,t){try{return await E(e,t)}catch(e){console.error(e)}return null}async function E(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function F(){const{data:e}=A("/api/v1/regions",E);return e||[]}const H=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}],U=e=>Boolean(e?.includes(":")),X=(e,t)=>Boolean(e&&!U(e)&&(!t||"_self"===t)),G=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),W=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var J=Object.freeze({__proto__:null,isURL:U,isLocalURL:X,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:G,joinPath:W});const Y=e=>t=>{if(!t||U(t)||c.CDN&&t.startsWith(c.CDN))return t;const l=t.startsWith("/");return W(c.BASE_PATH,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},q=(e,t)=>q._impl(e,t);function K(){return K._impl()}function Z(e=!1){const t=K();return a=>({...a,href:e?a.href:Y(t)(a.href),"aria-label":a.text,onClick:q(l(a),a)});function l({href:l,target:a,onClick:n}){return r=>{n&&n(r),l&&!e&&X(l,a)&&(r?.preventDefault(),t.push(l))}}}q._impl=e=>e,q.setup=e=>{q._impl=e},K._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),K.setup=e=>{K._impl=e};const Q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},ee="bg-main-divider text-main-disabled",te={primary:ee,secondary:ee,white:ee,link:"",transparent:"",gray:ee,"":""},le="text-center font-sans select-none",ae={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},ne=x((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:n,version:r="primary"}=e;return p("div",{className:re(e),children:[a?u("div",{className:ae[r],children:a}):null,ie(e)?p("div",{children:[l?u("div",{className:"text-xs-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,n?u("div",{className:ae[r],children:n}):null]})})),re=e=>{const{version:t,aboveText:l,rounded:a}=e;if("link"===t)return"";const n="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",ie(e)?n:"h-12 w-12",a?"rounded-full":""].join(" ")},ie=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),se=({className:e,rounded:t,version:l})=>["inline-block",le,l?te[l]:"",t?"rounded-full":"rounded-md",e].join(" "),oe=({className:e,rounded:t,version:l})=>[le,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",l?Q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ce=x((({disabled:e,children:t,...l})=>{const a=Z()(l),n=t??u(ne,{...a});return u(e?me:de,{...a,children:n})})),de=x((({className:e="",href:t,rel:l,target:a,ariaLabel:n,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:oe({className:e,version:r,rounded:i}),href:t,rel:l,target:a,"aria-label":n,role:t?"link":"button",onClick:s,children:o}))),me=x((({className:e,ariaLabel:t,version:l,rounded:a,children:n})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:se({className:e,rounded:a,version:l}),children:n}))),he=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ue=x((({link:e})=>p(M,{size:"text-s-light",color:"text-secondary-text",children:[u(he,{children:"Нажимая кнопку вы подтверждаете согласие с "}),e?u(ce,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(he,{children:e.text})}):null]}))),pe=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e;function xe(e){const t=s(null);return n((()=>{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 ge={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},be=x((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${l}`,title:n=a,iconVersion:r="color",asSVG:i,...s})=>{const o=K(),d=Y(o)(W(c.CDN,"/icons",`${l}.svg`));return i&&"normal"!==r?u(ve,{className:e,children:p("svg",{className:b(fe(s.width),ge[r],"white"===r?"invert":"",t),...s,"aria-hidden":"true",children:[n?u("title",{children:n}):null,a?u("desc",{children:a}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):(e.includes("h-")||(s.style={height:`${s.height}px`}),u("img",{className:e,src:d,alt:a,title:n,"aria-hidden":"true",...s}))})),fe=e=>e?"":"w-full h-full",ve=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Ne=x((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=a(i[0]||{key:"",text:""}),[h,x]=a(!1),g=xe(r((()=>x(!1)),[]));return n((()=>{m(s||{key:"",text:""})}),[s]),p("div",{className:`${e}`,ref:g,children:[l?u("span",{className:"mb-2 flex text-primary-text",children:l}):null,p("div",{className:"relative "+(h?"z-20":"z-10"),children:[p("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${Ce(t)}`,onClick:()=>x(!h),children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),u(be,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(h?"":"rotate-180")})]}),i?.length?u("div",{className:`h-0 ${ye(h)}`,children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(we((e=>{m(e),x(!1),o(e)}),h,(e=>Boolean(e.key===d.key))))})}):null]})]})})),ye=e=>e?"":"overflow-hidden",we=(e,t,l)=>(a,n)=>p("div",{onClick:()=>{e(a)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:a.text}),u(be,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(a)&&t?"":"hidden"].join(" ")})]},String(n)),Ce=e=>e?"border border-gray rounded-md hover:border-primary-hover":"",ke=x((({data:e,fieldLabel:t,fieldValue:l,selected:a,placeholder:n="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return u(Ne,{options:s,label:i,placeholder:n||a,onChange:e=>r(e.key),value:o})})),Se=({acquiringType:e,regions:t,region:l,handleChange:a})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(ke,{data:H,fieldValue:"name",fieldLabel:"name",selected:e,setSelected:e=>a({acquiringType:e}),label:"Вид эквайринга",placeholder:"Выберите эквайринг"})}),u("div",{className:"w-1/2",children:u(ke,{data:t,fieldValue:"code",fieldLabel:"name",selected:l,setSelected:e=>a({region:e}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Te=x((({checked:e,text:t,onClick:l})=>p("div",{role:"checkbox","aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-4",onClick:()=>l&&l(),children:[u("div",{className:"relative duration-300 w-9 h-5 mr-3 rounded rounded-2xl "+(e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:"absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded rounded-full "+(e?"left-[50%]":"left-[5%]")})}),u("div",{children:u(he,{size:"text-m",font:"font-light",color:"text-primary-text",children:t})})]}))),Ie=({"onlineСheckout":e,posTerminal:t,handleChange:l})=>p("div",{className:"mb-5",children:[u(Te,{checked:e,text:"Хочу купить онлайн-кассу",onClick:()=>l({"onlineСheckout":!e})}),u(Te,{checked:t,text:"Хочу купить POS-терминал",onClick:()=>l({posTerminal:!t})})]}),$e=(e,t)=>{const l=oe({className:"text-white",version:e?.version});return u("button",{type:"submit",className:`p-4 ${l} ${t}`,children:e?.text?e.text:"Отправить заявку"})},Be=({setFormState:e})=>({handleChange:r((t=>e((e=>({...e,...t})))),[])}),Re=x((e=>{const{button:t,link:l,handleSubmit:r}=e,[i,s]=a({acquiringType:"",region:"",fullName:"",inn:"",name:"",phone:"","onlineСheckout":!1,posTerminal:!1}),{acquiringType:o,region:c,fullName:d,inn:m,name:h,phone:x,"onlineСheckout":g,posTerminal:b}=i,f=F(),{handleChange:v}=Be({setFormState:s}),N=pe(c,f);n((()=>{s((e=>({...e,acquiringType:H?.length&&H[0]?.name?H[0].name:""})))}),[]);return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Вид эквайринга=${o}/Онлайн касса=${g}/POS-терминал=${b}`;r&&await r({typeForm:"acqr",region:f.find((e=>e.code===N))?.name||"",partnerComments:t,fullName:d,inn:m,name:h,phone:x})},className:"container",children:[u(_,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Se({acquiringType:o,regions:f,region:N,handleChange:v}),u(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Ve({fullName:d,inn:m,name:h,phone:x,handleChange:v}),Ie({"onlineСheckout":g,posTerminal:b,handleChange:v}),$e(t,"mb-4"),u(ue,{link:l})]})})),Ve=({fullName:e,inn:t,name:l,phone:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>n({fullName:e})}),u(D,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:l,onChange:e=>n({name:e})})]}),p("div",{className:"w-1/2",children:[u(D,{className:"shrink-0 text-l w-full mb-5",type:"text",label:"ИНН","aria-label":"ИНН",value:t,onChange:e=>n({inn:e})}),u(D,{className:"shrink-0 text-l w-full",type:"text",label:"Телефон","aria-label":"Телефон",value:a,onChange:e=>n({phone:e})})]})]}),je=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({region:"",name:"",phone:"",inn:"",mail:""}),{region:s,name:o,phone:c,inn:d,mail:m}=r,h=F(),{handleChange:x}=Be({setFormState:i}),g=pe(s,h);return p("form",{onSubmit:async e=>{e.preventDefault(),n&&await n({typeForm:"bcrd",region:h.find((e=>e.code===g))?.name||"",name:o,phone:c,inn:d,mail:m})},className:"container",children:[Me({regions:h,region:g,handleChange:x}),_e({name:o,phone:c,inn:d,mail:m,handleChange:x}),$e(t,"mb-4"),u(ue,{link:l})]})})),_e=({name:e,phone:t,mail:l,inn:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:e,onChange:e=>n({name:e})}),u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"ИНН",label:"ИНН",value:a,onChange:e=>n({inn:e})})]}),p("div",{className:"w-1/2",children:[u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Телефон",label:"Телефон",value:t,onChange:e=>n({phone:e})}),u(D,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:l,onChange:e=>n({mail:e})})]})]}),Me=({regions:e,region:t,handleChange:l})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(ke,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:e=>l({region:e}),label:"Регион",placeholder:"Выберите регион"})})}),Le=[];const De=async e=>await P(e,{method:"GET"})||Le,ze=["От 50 000 ₽","До 3 000 000 ₽"],Ae=["От 1 года","До 5 лет"],Oe=({regions:e,region:t,branches:l,department:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(ke,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:e=>n({region:e}),label:"Регион",placeholder:"Выберите регион"})}),u("div",{className:"w-1/2",children:u(ke,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:e=>n({department:e}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Pe=e=>new Intl.NumberFormat("ru-RU",{}).format(e),Ee=(e,t,l)=>Math.max(t,Math.min(e,l)),Fe=e=>e.split(/\s+/).join(""),He=x((({className:e,title:t,items:l=[],min:a=1,max:n=100,step:r=1,value:i=a,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(Ee(Number(Fe(e.target.value)),a,n))},d={backgroundSize:`${(100*(i-a)/(n-a)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("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:Pe(i),disabled:s,onChange:c,onBlur:c}),u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:a,max:n,step:r,value:i,disabled:s,onChange:c,style:d})})]}),Ue(l)]})}));function Ue(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Xe=e=>p("div",{className:"w-1/2",children:[u("label",{children:u(he,{size:"text-m-light",children:e.label})}),u(He,{...e})]}),Ge=({amount:e,term:t,handleChange:l})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[Xe({label:"Сумма кредита, ₽",value:e,onChange:e=>l({amount:e}),min:5e4,max:3e6,items:ze}),Xe({label:"Срок кредита, месяцев",value:t,onChange:e=>l({term:e}),min:1,max:60,items:Ae})]}),We=({fullName:e,inn:t,name:l,phone:a,mail:n,annualRevenue:r,handleChange:i})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>i({fullName:e})}),u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"ИНН",label:"ИНН",value:t,onChange:e=>i({inn:e})}),u(D,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Телефон",label:"Телефон",value:a,onChange:e=>i({phone:e})})]}),p("div",{className:"w-1/2",children:[u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Годовая выручка, ₽",label:"Годовая выручка, ₽",value:r,onChange:e=>i({annualRevenue:e})}),u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:l,onChange:e=>i({name:e})}),u(D,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:n,onChange:e=>i({mail:e})})]})]}),Je=x((e=>{const{button:t,link:l,handleSubmit:r}=e,[i,s]=a({amount:5e4,term:1,fullName:"",inn:"",name:"",phone:"",mail:"",region:"",department:"",annualRevenue:""}),{amount:o,term:c,fullName:d,inn:m,name:h,phone:x,mail:g,region:b,department:f,annualRevenue:v}=i,N=F(),{handleChange:y}=Be({setFormState:s}),w=pe(b,N),C=function(e){const{data:t}=A(e?`/api/v1/branches?regionCode=${e}`:null,De);return t||Le}(w).filter((e=>e.address));n((()=>{y({department:""})}),[i.region,y]);return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Сумма=${o}/Срок=${c}/Выручка=${v}`;r&&await r({typeForm:"cred",fullName:d,inn:m,name:h,phone:x,mail:g,region:N.find((e=>e.code===w))?.name||"",department:C.find((e=>e.branchCode===f))?.address||"",partnerComments:t})},className:"container",children:[u(_,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),Ge({amount:o,term:c,handleChange:y}),u(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),We({fullName:d,inn:m,name:h,phone:x,mail:g,annualRevenue:v,handleChange:y}),u(_,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),Oe({regions:N,region:w,branches:C,department:f,handleChange:y}),$e(t,"mb-4"),u(ue,{link:l})]})})),Ye=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({name:"",phone:""}),{name:s,phone:o}=r,{handleChange:c}=Be({setFormState:i});return p("form",{onSubmit:async e=>{e.preventDefault(),n&&await n({typeForm:"dpst",name:s,phone:o})},className:"container",children:[u(_,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),qe({name:r.name,phone:r.phone,handleChange:c}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(ue,{link:l})}),$e(t)]})]})})),qe=({name:e,phone:t,handleChange:l})=>p("div",{className:"max-w-[560px] m-auto",children:[u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Имя",label:"Имя",value:e,onChange:e=>l({name:e})}),u(D,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Телефон",label:"Телефон",value:t,onChange:e=>l({phone:e})})]}),Ke=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Ze=x((({className:e="",image:t,imageClassName:l="",isMobile:a=!1,pathPrefix:n})=>{const r=K();return p("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Ke).map((({src:e,format:l,media:a},i)=>u("source",{srcSet:et(r,n)(e),type:tt(l),media:a?`(max-width: ${a}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?Qe({...t,src:et(r,n)(t.src)},l,a):null]})})),Qe=(e,t="",l=!1)=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},n=e.title||"",r=e.alt||e.title,i=l?"m-auto":"m-0";return u("img",{src:e.src,className:`${i} ${t}`,alt:r,title:n,style:a,...e.size})},et=(e,t)=>l=>l&&!U(l)?Y(e)(W(t,l)):l,tt=e=>e?`image/${String(e)}`:void 0,lt=x((({className:e="",image:t,imageClassName:l="",isMobile:a,pathPrefix:n,...r})=>t?.src||t?.icon?t.icon?u(be,{className:e,imageClassName:l,iconVersion:t?.iconVersion||"normal",name:t.icon,...r}):u(Ze,{className:e,imageClassName:l,image:t,isMobile:a,pathPrefix:n}):null)),at=x((({className:e,viewBox:t,fill:l="none",width:a,height:n,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:a,height:n,children:r.map((({d:e,fill:t,...l},a)=>u("path",{d:e,fill:t||"currentColor",...i,...l},a)))}))),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"}],rt=x((({className:e,text:t,checked:l,disabled:a,isRadio:n,onChange:r})=>u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",children:[u("input",{className:b("peer appearance-none w-5 h-5 border-solid cursor-pointer checked:border-primary-main m-0",n?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",l?"border-black":"border-gray",a?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l,disabled:a}),n?u("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):u(at,{paths:nt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?u("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),it=({currencyControl:e,documentaryOperations:t,conversionOperations:l,text:a,handleChange:n})=>p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(rt,{text:"Валютный контроль",checked:e,onChange:e=>n({currencyControl:e})}),u(rt,{text:"Документарные операции",checked:t,onChange:e=>n({documentaryOperations:e})}),u(rt,{text:"Конверсионные операции",checked:l,onChange:e=>n({conversionOperations:e})})]}),u("textarea",{placeholder:"Укажите интересующий Вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:a,onChange:e=>n({text:e.target.value})})]}),st=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""}),{fullName:s,name:o,phone:c,mail:d,currencyControl:m,documentaryOperations:h,conversionOperations:x,text:g}=r,{handleChange:b}=Be({setFormState:i});return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Валютный контроль=${m}/Документарные операции=${h}/Конверсионные операции=${x}/Доп инф=${g}`;n&&await n({typeForm:"kved",fullName:s,name:o,phone:c,mail:d,partnerComments:t})},className:"container",children:[u(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),ot({fullName:s,name:o,phone:c,mail:d,handleChange:b}),u(_,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),it({currencyControl:m,documentaryOperations:h,conversionOperations:x,text:g,handleChange:b}),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[$e(t,"mr-5"),u(ue,{link:l})]}),u(_,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(lt,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(lt,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),ot=({fullName:e,name:t,phone:l,mail:a,handleChange:n})=>p("div",{children:[p("div",{className:"flex justify-between gap-5 mb-5",children:[u("div",{className:"w-1/2",children:u(D,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>n({fullName:e})})}),u("div",{className:"w-1/2",children:u(D,{className:"shrink-0 text-l w-full",type:"text","aria-label":"ФИО",label:"ФИО",value:t,onChange:e=>n({name:e})})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(D,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Телефон",label:"Телефон",value:l,onChange:e=>n({phone:e})})}),u("div",{className:"w-1/2",children:u(D,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:a,onChange:e=>n({mail:e})})})]})]}),ct=x((({responceType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(lt,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(_,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(he,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),dt={credit:e=>u(Je,{...e}),acquiring:e=>u(Re,{...e}),"business-card":e=>u(je,{...e}),deposit:e=>u(Ye,{...e}),wed:e=>u(st,{...e})},mt={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},ht=x((e=>{const{className:t="",title:l,typeForm:n="credit",button:i,link:s,...o}=e,[c,d]=a(""),m=r((async e=>{const t=await mt.send(e);return d(t?"OK":"Fail"),"OK"}),[]);return u(V,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:p("div",{className:"container max-w-[978px]",children:[l?u(_,{headingType:"h3",title:l,className:"text-center mb-8"}):null,dt[n]({button:i,link:s,handleSubmit:m}),c?u(ct,{responceType:c}):null]})})})),ut=x((({className:e="",title:t,benefitList:l,...a})=>p(V,{className:`p-12 flex flex-col items-center ${e}`,...a,children:[t?u(_,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(pt)}):null]}))),pt=(e,t)=>{const l=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(lt,{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?u(lt,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(_,{headingType:"h6",children:e.label}):null,xt(l)]})]},String(t))},xt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?bt(e):gt(e)}):null},gt=e=>e?.name||null,bt=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},ft=(e,{className:t="",buttonClassName:l,isVertical:a}={})=>e?.length&&e.some((e=>e?.text))?u("div",{className:b("flex",a?"flex-col gap-2":"gap-4",t),children:e.map(vt(l))}):null,vt=(e="")=>(t,l)=>{const{text:a,icon:n,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white";return a?u(ce,{className:e,appendLeft:Nt({...n,iconVersion:o}),appendRight:Nt({...r,iconVersion:o}),version:i,text:a,...s},l?String(l):""):null},Nt=e=>e?.icon||e?.src?u(lt,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,yt={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"}},wt={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"},Ct=x((({className:e,title:t,description:l,headlineVersion:a="XL",align:n="text-center",as:r,isPadding:i=!0,...s})=>{const o=yt[a];return p(V,{className:b("flex flex-col group-data-secondary:bg-primary-main group-data-secondary:text-white",i?"p-12":"",o.wrapper,e),...s,children:[t?u(_,{className:b("whitespace-pre-wrap",n),...o?.title,as:r||o?.title.as,title:t}):null,l?u(M,{color:"group-data-secondary:text-white/80",size:o.descriptionSize,align:n,children:l}):null]})})),kt=x((e=>{const{className:t="",title:l,description:a,bonusItems:n,...r}=e;return u(V,{className:`p-12 pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(Ct,{className:"!p-0",title:l,description:a,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:n?.length?n.map(((e,t)=>u("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:p("div",{className:"flex justify-between w-full",children:[p("div",{className:"flex flex-col justify-between mr-4",children:[p("div",{children:[u("div",{className:"text-h4",children:e.title}),u("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),ft(e?.buttons)]}),e.bonusItemContent?.bonusType?St(e.bonusItemContent):null]})},String(t)))):null})]})})})),St=e=>u("div",{children:"count"===e.bonusType?Tt(e):It(e)}),Tt=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),It=e=>e.image?u(lt,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,$t=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:a="4",subtitle:n,title:r,...i})=>p(V,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${l}`,...i,children:[u(Ct,{className:"!p-0 mb-8",title:r,description:n,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${k[t]} ${Rt(a)}`,children:e.map(Bt)}):null]}))),Bt=({icon:e,title:t,description:l},a)=>p("div",{className:b("flex flex-col items-center text-h6",l||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(lt,{image:e,height:"180",width:"auto",className:"w-auto"}):null,l?u("span",{children:l}):null]},String(a)),Rt=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Vt=x((e=>{const{title:t,image:l,cardItems:a,button:n}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(lt,{className:"mb-5",image:l}):null,l?.icon?u(lt,{image:l,asSVG:!0}):null]}):null,t?u(_,{headingType:"h4",title:t,className:"mb-6"}):null,a?.length?u("ul",{children:a.map(((e,t)=>jt(e,String(t))))}):null,ft([n],{buttonClassName:"mt-6"})]})})),jt=(e,t)=>{const{icon:l,text:a}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?u(lt,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,l?.src?u(lt,{image:l}):null,u("span",{className:"text-xl-light",children:a})]},t)},_t=x((({className:e="",title:t,cards:l,...a})=>p(V,{className:`p-12 pb-9 ${e}`,...a,children:[u(_,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>u(Vt,{...e},String(t)))):null})]}))),Mt=x((({button:e,className:t,...l})=>u(V,{className:b("!bg-transparent",t),...l,children:ft([e])}))),Lt=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:n}=e,[i,s]=a(0),o=r((()=>s((e=>n?(e+1)%t:Math.min(e+1,t-1)))),[n,t]),c=r((()=>s((e=>n?(t+e-1)%t:Math.max(e-1,0)))),[n,t]),d=n||function(e,{itemCount:t,visibleItemCount:l,container:a}){if(l)return t>l;if(a){return a.scrollWidth*e/t+a.clientWidth<a.scrollWidth}return!1}(i,e)&&i<t-(l||1),m=n||i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const Dt=x((({className:e,disabled:t,...l})=>u(ce,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:u(lt,{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})}))),zt=x((e=>u(Dt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),At=x((e=>u(Dt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Ot({dec:e,inc:t,canDec:l,canInc:a,btnClass:n,className:r=""}){return l||a?p("div",{children:[l?u(Dt,{className:`absolute z-50 ${n[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,a?u(Dt,{className:`absolute z-50 rotate-180 ${n[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!a}):null]}):null}const Pt=x((({title:e,value:t,postfix:l="",prefix:a,className:n=""})=>p("div",{className:b("mb-7",n),children:[e?u(he,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(he,{size:"text-h3",children:[a," ",Pe(Math.round(t))," ",l]})}:{children:u(he,{size:"text-h3",children:"-"})})]}))),Et=5e6,Ft=2485e3,Ht=Math.round(23.5),Ut={minSum:3e4,maxSum:Et,minMonths:13,maxMonths:60,rate:0,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0},Xt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Gt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Wt={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Jt=x((({rate:e,title:t="Ставка",unit:l,depositeName:a,isShowDepositeName:n,rateBlockClassName:r})=>p("div",{children:[u(he,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start",children:[u("span",{className:b("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(2)).replace(".",",")}),l?u("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]}),a&&n?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:a}):null]})]}))),Yt=e=>e?u(M,{size:"text-s-light",color:"text-secondary-text",children:e}):null,qt=1e3;function Kt(e,t,l){const{moneyValue:a,minSum:n,maxSum:r,step:i=qt,isShowItems:s=!0}=t,o=[`От ${Pe(n)} ₽`,`До ${Pe(r)} ₽`];return u(He,{title:e,items:s?o:[],min:n,max:r,step:i,value:Ee(a,n,r),onChange:l})}function Zt(e){const{data:t}=A(`/wcms-resources/${e}.json`,E);return t}const Qt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:a}=e,n=Zt(t||"bonus-calculator-data")||Xt,[r,i]=((e,t,l)=>{const{minSumTravel:a,minSumOther:n,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===a&&l===n)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),r)*(12-i)]})(n,l,a);return{...n,...e,monthBonus:r,yearBonus:i}},el=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[i,s]=a(6e3),o=r((e=>s(e)),[]),[c,d]=a(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:f,maxSumOther:v,monthBonus:N,yearBonus:y}=Qt(h,t);return p("section",{className:b("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Kt("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),Kt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:f,maxSum:v,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:N>=0?u(Jt,{title:"Баллов за месяц",rate:N,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[y>=0?u(Pt,{title:"Баллов за год",value:y}):null,ft(l,{className:"mt-7",isVertical:!0}),Yt(n)]})]})}));function tl(e,t,l){const{minDays:a,maxDays:n,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(He,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(n)}`],min:a,max:n,step:1,value:Ee(r,a,n),onChange:l})}const ll={horizontal:"gap-10",vertical:"flex-col gap-3"},al=x((({items:e,checkedItem:t,onChange:l,orientation:a="horizontal"})=>u("div",{className:`flex ${ll[a]}`,children:e?.map((({id:e,text:a})=>u(rt,{isRadio:!0,text:a,checked:t===e,onChange:()=>l&&l(e)},String(e))))}))),nl="everyMonth",rl="atEndTerm",il=[{id:nl,text:"Ежемесячно"},{id:rl,text:"В конце срока"}];function sl({isMonthlyInterestPayment:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(he,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(al,{orientation:a,items:il,checkedItem:e?nl:rl,onChange:e=>t&&t(e===nl)})})]})}const ol=x((({title:e="Ставка"})=>p("div",{children:[u(he,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(lt,{image:{icon:"PercentIcon"},width:"90",height:"85",asSVG:!0})}),u("div",{className:"w-[250px] mt-3.5",children:p(M,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),cl=e=>e,dl=(e=cl)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),ml=(e=cl)=>dl((t=>-e(t))),hl=([e,t],l=[])=>({[e]:l.length?ml()(l.map((t=>t[e]))):0,[t]:l.length?dl()(l.map((e=>e[t]))):0}),ul=(e,[t,l],a)=>e>=a[t]&&e<=a[l],pl=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,xl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a,daysValue:n}=t;return l?Math.round(a*Math.pow((1200+e)/1200,n/30)-a):Math.round(a*e*n/365/100)},gl=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=a(1e5),d=r((e=>c(e)),[]),[m,h]=a(90),x=r((e=>h(e)),[]),[g,b]=a(!1),f=r((e=>b(e)),[]),[v,N]=a(!1),y=r((e=>N(e)),[]),[w,C]=a(!1),k=r((e=>C(e)),[]),[S,T]=a(!1),I=r((e=>T(e)),[]),$=((e,t)=>{const{daysValue:l,moneyValue:a,isPartialWithdrawal:n,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=Zt(t||"business-calculator-data"),c=r||n,d=l<90||l>730;if(l<=30)return{...Wt,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&pl(c,e)&&ul(a,["minSum","maxSum"],e)&&ul(l,["minDays","maxDays"],e)))||Wt,{rate:h}=m,u=xl(h,e),p=a+u,x=o?.rows||[Wt];return{...m,...hl(["minSum","maxSum"],x),...hl(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:B,finalSum:R,rate:V,depositeName:j,isShowUnknownRate:_}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[Kt("Сумма вклада, ₽",$,d),tl("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[bl({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),sl({isMonthlyInterestPayment:S,callback:I,title:"Выплата процентов",orientation:"vertical"})]})]}),_?u(ol,{}):u(Jt,{rate:V,depositeName:j,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Pt,{title:"Доход по вкладу",value:B,postfix:"₽",prefix:"+"}),u(Pt,{title:"Сумма в конце срока",value:R,postfix:"₽"}),ft(l,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:Yt(n)})]})]}),u("div",{className:"mt-5",children:Yt(i)})]})})),bl=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:l,isSmallBusiness:a,handleIsReplenished:n,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(rt,{text:"Пополнение",disabled:e,checked:t,onChange:n}),u(rt,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:l,onChange:r}),u(rt,{className:"mt-3",text:"Являюсь малым предприятием",checked:a,onChange:i})]});function fl(e,t,l){const{minMonths:a,maxMonths:n,monthsValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return u(He,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(n)}`],min:a,max:n,step:1,value:Ee(r,a,n),onChange:l})}const vl="annuity",Nl="differential",yl=[{id:vl,text:"Аннуитетный"},{id:Nl,text:"Дифференцированный"}];function wl({isAnnuity:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(he,{color:"text-secondary-text",font:"font-light",children:l})}):null,u(al,{orientation:a,items:yl,checkedItem:e?vl:Nl,onChange:e=>t&&t(e===vl)})]})}const Cl=(e,t)=>{const{isInsurance:l,isSalaryClient:a,isStateEmployee:n,moneyValue:r,monthsValue:i}=e,s=Zt(t||"credit-calculator-data"),o=s?.rows?.find((e=>l===e.isInsurance&&a===e.isSalaryClient&&n===e.isStateEmployee&&ul(r,["minSum","maxSum"],e)&&ul(i,["minMonths","maxMonths"],e)))||Ut,{rate:c}=o,d=((e,t)=>{const{isAnnuity:l,moneyValue:a,monthsValue:n}=t;if(0===e)return 0;if(l){const t=e/1200;return a*(t+t/(Math.pow(1+t,n)-1))}return Math.round(a/n)+a*(e/1200)})(c,e),m=s?.rows||[Ut];return{...o,...hl(["minSum","maxSum"],m),...hl(["minMonths","maxMonths"],m),...e,monthlyPayment:d}},kl=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n})=>{const[i,s]=a(!1),[o,c]=a(!0),[d,m]=a(!1),[h,x]=a(!1),[g,f]=a(Ft),v=r((e=>f(e)),[]),[N,y]=a(Ht),w=r((e=>y(e)),[]),C=Cl({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:h,moneyValue:g,monthsValue:N},t);return p("section",{className:b("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Kt("Сумма кредита, ₽",{...C,step:500},v),fl("Срок кредита, месяцев",C,w),p("div",{className:"mt-7",children:[u(rt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),u(rt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:h,onChange:x}),u(rt,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),u(Jt,{title:"Ставка",rate:C.rate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Pt,{title:"Ежемесячный платеж",value:C.monthlyPayment,postfix:"₽"}),wl({isAnnuity:i,orientation:"vertical",callback:s}),ft(l,{className:"mt-7",isVertical:!0}),Yt(n)]})]})})),Sl="remote",Tl="office",Il=[{id:Tl,text:"Офис Банка"},{id:Sl,text:"Дистанционно"}];function $l({isRemoteRegistration:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(he,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(al,{orientation:a,items:Il,checkedItem:e?Sl:Tl,onChange:e=>t&&t(e===Sl)})})]})}const Bl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a,monthsValue:n}=t;return l?Math.round(a*Math.pow((1200+e)/1200,n)-a):Math.round(a*e*30*n/365/100)},Rl={CreditCalculatorForm:kl,DepositCalculatorForm:x((({className:e="",sourceBookDir:t,buttons:l,footnote:n})=>{const[i,s]=a(Ft),o=r((e=>s(e)),[]),[c,d]=a(Ht),[m,h]=a(!1),x=r((e=>h(e)),[]),[g,f]=a(!1),v=r((e=>f(e)),[]),N={moneyValue:i,monthsValue:c,isMonthlyInterestPayment:m,isRemoteRegistration:g},y=r((e=>d(e)),[]),w=((e,t)=>{const{isMonthlyInterestPayment:l,isRemoteRegistration:a,moneyValue:n,monthsValue:r}=e,i=Zt(t||"deposit-calculator-data"),s=i?.rows?.find((e=>l===e.isMonthlyInterestPayment&&a===e.isRemoteRegistration&&ul(n,["minSum","maxSum"],e)&&ul(r,["minMonths","maxMonths"],e)))||Gt,{rate:o}=s,c=Bl(o,e),d=n+c,m=i?.rows||[Gt];return{...s,...hl(["minSum","maxSum"],m),...hl(["minMonths","maxMonths"],m),...e,income:c,finalSum:d}})(N,t),{income:C,finalSum:k,rate:S}=w;return p("section",{className:b("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Kt("Сумма вклада, ₽",{...w},o),fl("Срок вклада, месяцев",{...w},y),p("div",{className:"mt-7 flex flex-col gap-y-7",children:[sl({isMonthlyInterestPayment:m,callback:x,title:"Выплата процентов"}),$l({isRemoteRegistration:g,callback:v,title:"Оформление"})]})]}),u(Jt,{rate:S,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Pt,{title:"Доход по вкладу",value:C,postfix:"₽",prefix:"+"}),u(Pt,{title:"Сумма в конце срока",value:k,postfix:"₽"}),ft(l,{className:"mt-7",isVertical:!0}),Yt(n)]})]})})),BusinessDepositCalculatorForm:gl,BonusCalculatorForm:el},Vl=(e,t)=>{const l=e?.calcType;if(!l||!(l in Rl))return null;const a=Rl[l];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(_,{className:"text-center mb-6",title:e.title}):null,u(a,{...e})]})},String(t))},jl=x((({className:e="",calculatorTabs:t=[],...l})=>{const n=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=a(0),c=r((e=>o(e)),[]),[d,m]=Lt({itemCount:t?.length,visibleItemCount:3});return p(V,{className:`box-border overflow-hidden relative w-100 ${e}`,...l,children:[p("div",{className:"bg-white",children:[n.length>1?_l({activeIndex:d,tabsNav:n,slideIndexShift:s,onClick:c}):null,Ot({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Vl):null})]})}));function _l({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:a}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:a}){const n=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",r=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 p("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${n}`,children:[u(lt,{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}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>a(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const Ml=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Ll=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Dl=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),zl=x((({className:e="",onChange:t,minValue:l=0,maxValue:a=3e5,...n})=>{const i=r((e=>{if(!t)return;const n=Ml(Ll(Dl(Fe(e))));const r=Al(n,Ee(Number(n),l,a));t(String(r))}),[t]),s=r((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(Fe(l))).replace(",",".")))}),[t]);return u(D,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...n,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Al=(e,t)=>Number(e)===t?e:String(t),Ol=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:n="1500",button:i,...s})=>{const[o,c]=a(""),d=r((e=>c(e)),[]),m=!Number(Fe(o)),h=m?se({version:i?.version}):oe({className:"text-white",version:i?.version}),x=Z();return p(V,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?u(_,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(zl,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:n,label:l}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),Pl=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),El=x((({className:e="",style:t,idx:l,activeIndex:a,observerOptions:n,children:i,onIntersection:s})=>{const o=I(r((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),n);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===a),ref:o,children:i})})),Fl=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Hl=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:a=0,gap:n=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),f=r(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(Xl(l))}),[h,p]),v=a>0?n*Number(a)-1:0,N="vertical-list"===o,y="horizontal-list"===o,w={...y?Ul(i,v):{},...N?Pl(d):{},gap:`${n}px`};return u("div",{className:b("box-border overflow-auto no-scrollbar",o,e),style:w,ref:t,children:(C=(e,t)=>u(El,{className:b(c,a?Fl[a-1]:"",N?"h-full":""),style:y?Ul(i/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(m)});var C})),Ul=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Xl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Gl=e=>t=>e.scrollWidth/t,Wl=e=>(t,l)=>{e.scrollBy({left:l*Gl(e)(t),behavior:"smooth"})},Jl=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const n=s(null),[i,o]=a([]),c=r((e=>{o((t=>{return(l=t)===(a=e)||Boolean(l&&a&&l?.length===a?.length&&l.every(((e,t)=>e===a[t])))?t:e;var l,a})),l&&l(e)}),[e]),[d,m]=i.length?[ml()(i),dl()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var l;n.current&&(t&&!h?(l=n.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):Wl(n.current)(e,-1))}),[t,e,h]),x=r((()=>{n.current&&(t&&!u?n.current.scrollTo({left:0,behavior:"smooth"}):Wl(n.current)(e,1))}),[e,t,u]);return[n,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Yl="absolute top-[calc(50%-24px)] z-50",ql="absolute top-0 bottom-0 z-50 w-[84px] pointer-events-none",Kl=x((({scroll:e,arrowsPadded:t,isBlur:l,onScrollLeft:a,onScrollRight:n,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,f=r((()=>{i?(c&&s!==o-1&&m(),a()):m()}),[m,a,i,c,s,o]),v=r((()=>{i?(d&&0!==s&&h(),n()):h()}),[h,n,i,c,s,o]);return p("div",{children:[Zl(l,e),x?u(zt,{className:b(Yl,t?"left-8":"left-0"),onClick:f}):null,g?u(At,{className:b(Yl,t?"right-8":"right-0"),onClick:v}):null]})})),Zl=(e,t)=>(t.canScrollLeft||t.canScrollRight)&&e?p("div",{children:[u("div",{className:b(ql,"left-0 bg-opacity-from-white")}),u("div",{className:b(ql,"right-0 bg-opacity-to-white")})]}):null,Ql=x((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,options:c,...d})=>{const{blocks:m}=d.block||{},h=t||m?.length||0,[x,g]=a(Math.floor((l||0)/2)),f=r((()=>g((e=>e+1))),[]),v=r((()=>g((e=>e-1))),[]),[N,y]=Jl({itemCount:h,isCyclic:i}),w=m&&"CarouselBankHistoryCard"===m[0]?.type;return u(V,{className:b(ea(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...d,children:p("div",{className:"relative max-w-full",children:[u(Hl,{containerRef:N,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:C(w?{...d,options:{...c,extraProps:{blocksLength:m?.length,activeIndex:x}}}:{...d,options:c})}),u(Kl,{scroll:y,isBlur:n,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:w,activeIndex:x,itemCount:h})]})})}));Ql.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselInvestmentCard","CarouselEventCard"];const ea=e=>e?"p-12":"",ta=x((({title:e,description:t,blocksLength:l=0,activeIndex:a,options:n})=>{const r=Number(n?.key?.split("-").slice(-1)[0])||0;return u(V,{className:"flex h-[485px]",children:u("div",r===a?{className:"relative flex items-center w-full",children:u(Ct,{headlineVersion:"S",title:e,description:t,align:"text-left",className:b("absolute z-10 h-[385px] w-[440px] text-white shadow-dark-blue",na(r,l),la(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:b("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",la(r)),children:u("span",{className:aa(r),children:e})})})})})),la=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},aa=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},na=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",ra="absolute border border-solid border-gray w-full h-full",ia={normal:"min-w-[970px]",small:"min-w-[355px]"},sa=x((({className:e="",button:t,description:l,title:a,carouselVersion:n="normal"})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${ia[n]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${ra} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${ra} z-10 top-6 right-8 bg-green`}),u("div",{className:`${ra} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(Ct,{className:"!p-0",title:a,description:l,headlineVersion:"L",align:"text-left"}),ft([t],{className:"mt-14"})]})]})}))),oa={black:"bg-black",white:"bg-white"},ca=x((({className:e="",title:t,description:l,image:a,price:n,button:r,colors:i,...s})=>p(V,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[a?.src?u(lt,{className:"mb-5 flex justify-center",image:a}):null,t?u(_,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?u("div",{className:"mb-4",children:u(M,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?p("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(he,{children:"Доступные цвета: "})}),i.map(da)]}):null,n?p(he,{size:"text-h3",align:"text-left",children:[n," ₽"]}):null,ft([r],{buttonClassName:"mt-5 w-full"})]}))),da=(e,t)=>u("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${oa[e]}`},String(t)),ma=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),ha=x((({className:e="",icon:t,title:l,description:a,href:n,target:r,...i})=>u(V,{className:b("flex flex-col w-[365px]",e),...i,children:p("a",{href:n,target:r,role:"link",children:[t?.icon?u(lt,{image:ma(t),asSVG:!0}):null,t?.src?u(lt,{image:t}):null,l?u(_,{headingType:"h6",as:"h4",className:"text-left mb-2",title:l}):null,a?u("div",{className:"mb-4",children:u(he,{font:"font-light",size:"text-s",color:"text-secondary-text",children:a})}):null]})}))),ua=x((({className:e="",title:t="",buttons:l,image:a,children:n})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:n}),l?u("div",{className:"mt-auto pt-8",children:l}):null]}),a]})]}))),pa={1:"flex-col",2:"gap-x-10 flex-wrap"},xa=x((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:a=1,description:n,image:r,title:i,...s})=>{const o=i?u(_,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?u(lt,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return u(V,{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:p(ua,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[n?u("div",{className:"w-1/3",children:u(he,{size:"text-h6",children:n})}):null,e?u(he,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?u("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${pa[a]}`,children:ga(t,a)}):null]})})})),ga=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(he,{size:(a=t,1===a?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(he,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var a})),ba="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",fa=x((({text:e,href:t="",target:l="",className:a=""})=>{const n=Z()({href:t,target:l});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${a}`,children:[p("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",...n,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(lt,{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})})]}),u("div",{className:`${ba} mx-1.5 mt-1.5`}),u("div",{className:`${ba} mt-3 mr-3`})]}):null})),va=x((({className:e="",additionalDescription:t,description:l,links:a,title:n,...r})=>p(V,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(Ct,{isPadding:!1,title:n,description:l,as:"h1",align:"text-left"}),t?u("div",{className:"pt-6",children:u(M,{children:t})}):null]}),a?.length?Na(a):null]}))),Na=e=>{const t=Math.ceil(e.length/10);return u(Ql,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>u("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(10*l,10*(l+1)).map(((e,t)=>u(fa,{className:"m-1",...e},String(t))))},String(l))))})},ya={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"},wa=x((({className:e="",isDotted:t=!0,children:l,size:a="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${ya[a]}`})}):null,u("span",{children:l})]}))),Ca={S:"text-l-light",M:"text-h6",L:"text-h5"},ka={S:"ml-2",M:"ml-3",L:"ml-4"},Sa=x((({className:e="",hasIndent:t,isDotted:l,itemClassName:a="",items:n,listItemSize:r="M"})=>n?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${Ca[r]} ${t?ka[r]:""} ${e}`,role:"list",children:n.map(((e,t)=>u(wa,{className:a,isDotted:l,size:r,children:e},String(t))))}):null)),Ta=x((({className:e="",title:t,headlineSmallVersion:l="H6",description:a,additionalDescription:n,icon:r,items:i=[],button:s={},version:o="primary",isDotted:c=!0,align:d="text-center",...m})=>p(V,{className:b("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),version:o,...m,children:[p("div",{className:"flex flex-col h-full",children:[Ia(r),$a(l,t),Ba(a,t),Va(i,c,o),Ra(n)]}),ft([s],{buttonClassName:"mt-6 w-full"})]}))),Ia=e=>p("div",{className:"flex justify-center",children:[e?.src?u(lt,{className:"mb-5",image:e}):null,e?.icon?u(lt,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e,asSVG:!0}):null]}),$a=(e,t)=>t?u(he,{size:wt[e],children:t}):null,Ba=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(M,{size:"text-l",children:e})}):null,Ra=e=>e?u("div",{className:"mt-auto",children:u(he,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Va=(e,t,l="primary")=>e?.length?u(Sa,{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,ja=x((({className:e="",title:t,icon:l,list:a=[],...n})=>p(V,{className:`border border-gray flex min-w-[536px] ${e}`,...n,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?u(lt,{image:ma(l),asSVG:!0}):null,l?.src?u(lt,{image:l}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(_,{className:" mb-3.5",headingType:"h5",title:t}):null,a.length?u("div",{className:"flex flex-col gap-3",children:a?.map(_a)}):null]})]}))),_a=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Ma=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],La={default:"w-14 h-14",small:"w-12 h-12"},Da=x((({iconVersion:e="color",buttonSize:t="default",rounded:l=!1,icon:a,...n})=>{const{href:r,version:i}=n,{iconMapped:s,label:o}=Ma.find((({origins:e})=>e.some((e=>r?.includes(e)))))||{},c=a??s,d=c?{...ma(c),iconVersion:e}:void 0;return u(ce,{className:b("group/media flex items-center justify-center box-border",La[t],l?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",La[t]),"aria-label":o,target:"_blank",rel:"noopener noreferrer",version:i,...n,children:d?u(lt,{image:d,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),za=x((({className:e="",media:t,children:l,buttonSize:a})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>u(Da,{buttonSize:a,version:e.version,...e},String(t))))}),u(he,{size:"text-s-light",color:"text-secondary-text",children:l})]}))),Aa=x((({className:e="",description:t,image:l,items:a=[],socialMedia:n=[],title:r,version:i="primary",...s})=>{const o=r?u(_,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:r}):null,c=l?.src?u(lt,{className:"absolute bottom-0 right-0 m-0",image:l}):null;return u(V,{className:b("relative p-7 min-w-[524px] h-full 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",e),version:i,...s,children:u(ua,{className:"flex justify-between",title:o,image:c,children:p("div",{className:"h-full flex flex-col justify-between",children:[t?u("span",{className:"mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]",children:t}):null,a.length?u(Sa,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:a}):null,n.length?u(za,{className:"pt-10 pb-0",media:n}):null]})})})})),Oa=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:n,renderFoldButton:i})=>{const[s,o]=a(l),c=r((()=>{o((e=>!e))}),[]),d=n({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Pa=x((({className:e="",isUnfolded:t,children:l})=>{const a=s(null);return n((()=>{a.current&&(a.current.style.maxHeight=t?`${a.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:a,className:`transition-max-h duration-300 overflow-hidden ${a.current||!t?"max-h-0":""} ${e}`,children:l})})),Ea=x((({className:e="",title:t,icon:l,isHighlighting:a,button:n,cardCells:r=[],...i})=>{const s=r.map(Xa),o=s.slice(0,1),c=s.slice(1);return p(V,{className:b("relative border border-gray min-w-[322px] p-8 flex flex-col",Ha(a),e),...i,children:[a?Ga():null,Fa(l),t?u(_,{className:"text-center pt-2",headingType:"h5",title:t}):null,n?u(ce,{className:"w-full mt-4",...n}):null,r.length?u(Oa,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(Pa,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Ua:null}):null]})})),Fa=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(lt,{image:e}):null,e?.icon?u(lt,{image:ma(e),asSVG:!0}):null]}),Ha=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-7",Ua=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(be,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),Xa=(e,t)=>p("div",{className:"py-5 border-b border-main-divider",children:[e?.title?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),Ga=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(be,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),u(M,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Wa="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Ja="border-gray border-solid border",Ya="border-main-divider border border-t-0 border-x-0",qa="w-[200px] mr-6",Ka=x((({icon:e,image:t,title:l,link:a})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Ja} ${Wa}`,role:"columnheader",children:[e&&!t?.src&&u(lt,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:ma(e),width:"63",height:"63",asSVG:!0}),t?.src&&u(lt,{className:"mb-[18px]",image:t}),l?u(_,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,a?.text&&u("div",{className:"mt-auto w-full",children:u(ce,{href:a.href,target:a.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:a.text})})})]}))),Za={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Qa=x((({children:e,activeIndex:t,columnWidth:l,version:a="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:Za[a],style:{transform:`translateX(-${t*l}px)`},children:e})}))),en=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),tn=x((({colHeaders:e,activeIndex:t})=>p(en,{children:[u("div",{className:qa,role:"columnheader"}),u(Qa,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(Ka,{...e},String(t))))})]}))),ln=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:a})=>u("div",{className:`w-80 box-border flex flex-col ${Ja} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${a?Wa:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${Ya} ${a&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>rn(e,t,a)))})}))),an=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),nn=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),rn=({label:e,description:t},l,a)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:an(a),children:e}):null,t?u("div",{className:nn(a),children:t}):null]},String(l)),sn=(e=!1)=>`text-s py-7 ${Ya} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,on=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:a,isFirstRow:n,isLastRow:r})=>p(en,{children:[e?.title?u("div",{className:sn(r),children:e.title}):null,t?.length?u(Qa,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(ln,{cell:e,isFirstRow:n,isLastRow:r,isFillGradient:a&&0===t},String(t))))}):null]}))),cn=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:a})=>{const{isScrollAvailable:n}=a;return p("div",{className:"relative",children:[e.map(((e,a,{length:n})=>u(on,{row:e,isFirstRow:0===a,isLastRow:a+1===n,activeIndex:l,isColoredFirstColumn:t},String(a)))),n?Ot({...a,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),dn=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:a,isColoredFirstColumn:n})=>{const r=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:a),[o,c]=Lt({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(tn,{colHeaders:r,activeIndex:o}):null,s?.length?u(cn,{rowData:s,isColoredFirstColumn:n,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),mn=x((({className:e="",title:t,rowHeaders:l,columns:n,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=a(!i),m=r((()=>d((e=>!e))),[]);return p(V,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[u(_,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(dn,{columns:n,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?hn({isShowAllRow:c,onClick:m}):null]})})),hn=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:qa}),u("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:u("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),un=x((({className:e="",contacts:t,info:l,version:a="secondary",...n})=>p(V,{className:`flex p-12 ${e}`,version:a,...n,children:[l?.length?pn(l):null,t?.length?pn(t):null]}))),pn=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>xn({column:e,index:t})))}),xn=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:a},n)=>p("div",{className:"mt-6 first:mt-0",children:[u(Ct,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?u("div",{className:"mt-1.5 opacity-80",children:u(M,{size:"text-m",font:"font-light",children:l})}):null,a?u(ce,{className:"mt-6",...a}):null]},String(n))))},`col-${String(t)}`):null,gn=e=>"Image"===e?.errorContentType&&e?.image?u(lt,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,bn=x((({className:e="",title:t,subtitle:l,error:a,button:n})=>{return p("section",{className:b("flex flex-col justify-center items-center",(r=n?.text,r?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),children:[u("div",{className:"flex justify-center py-20",children:gn(a)}),t?u(_,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?u("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,n?.text?u(ce,{className:"py-4 px-9",version:n?.version,...n,children:n.text}):null]});var r}));var fn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(fn||(fn={}));const vn=new Intl.NumberFormat("ru",{style:"currency",currency:fn.RUB}),Nn=e=>e?vn.format(e):"",yn="text-left text-m-light text-secondary-text",wn=`${yn} pl-11`,Cn={USD:"DollarIcon",EUR:"EuroIcon"},kn=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:yn,children:"Валюта"}),u("th",{className:wn,children:"Купить"}),u("th",{className:wn,children:"Продать"})]})}),u("tbody",{children:t.map(Sn)})]}))),Sn=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(lt,{image:{icon:Cn[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:Nn(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:Nn(e?.buyExchangeRate)})]},t)},Tn=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(lt,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),In=(e,t,l)=>{const a=Number($n(e))*Math.pow(t,l?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(a)},$n=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Bn=e=>{return(t=[[e=>e.value!==fn.RUB&&e.oppositeValue!==fn.RUB,()=>e.handleConvert(e.value,fn.RUB)],[e=>e.value===fn.RUB&&e.oppositeValue===fn.RUB,()=>e.handleConvert(e.value,fn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Rn(e){const{placeholder:t,rates:l,selected:a,value:n,setValue:r,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:a,text:a};return p("div",{className:"relative flex",children:[u(D,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:n,onChange:r}),s.length?u(Ne,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Vn=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:n})=>{const[i,s]=a({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||fn.RUB,selectBuy:l?.[0]?.currency?.currency||fn.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Rn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:jn(i,o,l),value:i.inputSell,setValue:e=>Mn(o,l)(e,i.selectSell,i.selectBuy)}),Rn({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:_n(i,o,t),value:i.inputBuy,setValue:e=>Ln(o,t)(e,i.selectBuy,i.selectSell)}),n?.text?u(ce,{className:"py-4 mr-1",version:n?.version,...n,children:n.text}):null]})})),jn=(e,t,l)=>a=>{t({selectSell:a}),Bn({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,n=e.selectBuy)=>{Mn(t,l)(e.inputSell,a,n)}})},_n=(e,t,l)=>a=>{t({selectBuy:a}),Bn({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,n=e.selectSell)=>Ln(t,l)(e.inputBuy,a,n)})},Mn=(e,t)=>(l,a,n)=>{e({inputSell:$n(l),selectBuy:n});const r=t.find((e=>e.currency?.currency===n))?.buyExchangeRate||t.find((e=>e.currency?.currency===a))?.saleExchangeRate;r&&e({inputBuy:String(In(l,r,a===fn.RUB)||"")})},Ln=(e,t)=>(l,a,n)=>{e({inputBuy:$n(l),selectSell:n});const r=t.find((e=>e.currency?.currency===n))?.saleExchangeRate||t.find((e=>e.currency?.currency===a))?.buyExchangeRate;r&&e({inputSell:String(In(l,r,a===fn.RUB)||"")})};const Dn=async e=>{const t=await zn(),l=t?.code||"000";return{region:t,exchangeRates:await An(e,l)}},zn=async()=>{try{return await E("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},An=async(e,t)=>{try{return await E(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},On=x((({className:e="",title:t="Курсы обмена валют",button:l,...a})=>{const{exchangeRates:n}=function(){const{data:e}=A("/api/v1/exchangerates",Dn);return e||{}}(),r=Pn(n?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:fn.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:fn.RUB}}),u(V,{className:`p-9 box-border min-h-80 ${e}`,...a,children:u(ua,{title:u(_,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:p("div",{className:"flex",children:[p("div",{className:"mr-14 pt-4",children:[r?u(kn,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(Tn,{address:n?.address})]}),r.length&&i.length&&s.length?u(Vn,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Pn=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function En(e,t={}){const{data:l}=A(`/wcms-resources/${e}.json`,E,{fallback:t});return l||{}}const Fn={"bg-white":"color",transparent:"white"},Hn={"bg-white":"text-primary-main",transparent:"text-white"},Un=(e,t,l)=>u(lt,t?.src?{image:t,className:Hn[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Fn[e]},className:Hn[e],width:l?.width,height:l?.height,asSVG:!0}),Xn={"bg-white":"text-primary-text",transparent:"text-white"},Gn=(e,t,l)=>u("span",{className:`${Xn[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),Wn=x((({className:e="",href:t,logo:l,children:a=l?.title,targetBlank:n,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:n?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[Un(r,l?.image,{width:"40",height:"45"}),i?Gn(a||l?.title,r):null]}))),Jn=()=>{const[e,t]=a("");return{term:e,setTerm:e=>t(e)}},Yn=x((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:a}=Jn(),n=t?"text-s":"text-l-light",r=t?" placeholder-transparent":"h-full",i=t?"some search":void 0;return p("form",{className:`font-sans relative ${e}`,children:[p("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[u("div",{className:t?"w-5 h-5":"w-6 h-6",children:u(lt,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),l?null:u("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${n}`,children:"Поиск по сайту"})]}),u("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 ${r}`,value:l,onChange:e=>a(e.target.value),type:"text",name:"search-bar-input",placeholder:i}),t?u("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(),a("")},children:u(lt,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):u(ce,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:u("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),qn=x((e=>u(Yn,{...e}))),Kn=x((({className:e="",items:t,hasButton:l})=>p("div",{className:e,children:[t?.length?t.map(Zn):null,l?u(ce,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Zn=(e,t)=>{const{type:l,text:a,description:n}=e;return p("div",{className:"mb-4",children:[u("div",{children:Qn(l,a)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:n})]},String(t))},Qn=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${er(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},er=e=>e.replaceAll(/\D/g,""),tr=x((({className:e="",index:t,text:l,...a})=>{const n=Z(),{href:r,target:i,onClick:s}=n(a);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:l||`Документ ${t}`})})),lr=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(tr,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),ar=x((({className:e="",fallback:t})=>{const l=Z(!0),a=En(c.SITEMAP||"sitemap",t);return u("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a.topItems?.map(((e,t)=>nr(l(e),t)))})})),nr=(e,t)=>{const{text:l,items:a,href:n,target:r,onClick:i}=e;return p("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[u("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:n,target:r||"_self",onClick:i,children:l||`Раздел ${t}`}),a?.map(((e,t)=>u(rr,{...e,basePath:n,index:t},String(t))))]},String(t))},rr=x((({text:e,index:t,basePath:l,...a})=>{const n=!(!c.BASE_PATH||!l)&&!c.BASE_PATH.startsWith(l),r=Z(n),{href:i,target:s,onClick:o}=r(a);return u("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:n?W(l,i):i,target:s||"_self",onClick:o,children:e||`Раздел ${t}`})})),ir=x((({className:e="",index:t,...l})=>{const a=Z(),{href:n,target:r,text:i,onClick:s}=a(l);return u("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:n,target:r,onClick:s,children:i||`Документ ${t}`})})),sr=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u(ir,{index:t,...e},String(t))))}):null]}))),or="w-[204px]",cr=x((({className:e="",...t})=>{const l=t.options?.page?.fallback,{documents:a,relatedEnterprises:n,contacts:r,socialMedia:i,mobileApps:s,logo:o}=En(c.FOOTER||"footer",l);return p(V,{tag:"footer",className:`p-9 ${e}`,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[u(Wn,{className:or,logo:o}),u(qn,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(Kn,{items:r,hasButton:!0}),u(za,{media:i,children:"Соцсети"}),u(za,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),u(ar,{className:"pt-[3px]",fallback:l})]}),u(lr,{className:"mt-[98px]",links:n}),u(sr,{links:a})]})})),dr=x((({className:e="",title:t,description:l,calendar:a,...n})=>p(V,{className:`p-12 ${e}`,...n,children:[u(Ct,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),a?mr(a):null]}))),mr=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>hr(e,t)))}),u("div",{className:"flex w-full",children:l.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:ur(e)}),p("div",{className:"text-s-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},hr=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),ur=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(lt,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),pr=e=>({href:t})=>G(U(t)?e.href:e.pathname).startsWith(G(t)),xr=x((({className:e="",active:t,flat:l,children:a,...n})=>{const r=Z(!0),{href:i,target:s,text:o,onClick:c}=r(n);return u("a",{className:b(gr(t,l),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:br(t,l),children:o||a})})})),gr=(e=!1,t=!1)=>b("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"),br=(e=!1,t=!1)=>b("font-sans text-s-light",e?"text-primary-main":b(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover");function fr(e=!1){const[t,l]=a(e),n=r((()=>l(!0)),[]),i=r((()=>l(!1)),[]),s=r((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:n,setFalse:i,toggle:s}]}const vr=864e5;function Nr(e,t,l=globalThis?.localStorage){const a=r((async(...a)=>{const n=`async:${e}`,r=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<vr?t:void 0}(l.getItem(n));if(r)return r;const i=await t(...a);return l.setItem(n,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return A(e,a)}const yr=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const wr=x((({className:e,searchTerm:t,onSearch:l})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value),type:"text",name:"location-search-bar-input"})]}))),Cr=x((({currentLocation:e,onChangeLocation:t,close:l,foreignOffices:a})=>{const{term:n,setTerm:i}=Jn(),s=r((e=>i(e)),[]),o=Sr(function(){const{data:e}=A("/api/v1/regions",E);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;return e.forEach((e=>{const a=t(e),n=l.get(a);l.set(a,[...n||[],e])})),l})(o,kr);return p("div",{className:"absolute h-full w-full inset-0 bg-white text-l-light z-50",children:[u(Ir,{close:l}),p("div",{className:"container py-12",children:[u(Tr,{currentLocation:e}),u(wr,{onSearch:s,searchTerm:n,className:"mb-7"}),n&&n.length>=3?u("div",{children:o.filter((e=>e.name?.startsWith(n))).map(Br({onChangeLocation:t,close:l}))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map($r({onChangeLocation:t,close:l}))}),u(Rr,{foreignOffices:a})]})]})})),kr=e=>e.name?.charAt(0)||"",Sr=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Tr=x((({currentLocation:e})=>e?p("div",{className:"mb-4",children:[u(he,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:close,children:u(he,{color:"text-green",children:e.name})})]}):null)),Ir=x((({close:e})=>u("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:u(lt,{image:{icon:"CloseIcon"},width:"24",height:"24"})}))),$r=({onChangeLocation:e,close:t})=>([l,a])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(he,{size:"text-h6",children:l})}),a.map(Br({onChangeLocation:e,close:t}))]},l),Br=({onChangeLocation:e,close:t})=>l=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(l),t&&t()},children:l.name||""})},l.id),Rr=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(he,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Vr,{...e},String(t))))})]}):null)),Vr=x((({icon:e,...t})=>{const l=Z(),{text:a,target:n,href:r,onClick:i}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(lt,{pathPrefix:"/wcms-resources/",image:e}):null,a?u("a",{className:"hover:text-primary-hover",href:r,target:n,onClick:i,children:a}):null]})})),jr=x((({className:e,isRounded:t,disabled:l,ariaLabel:a,image:n,onClick:r})=>u("button",{className:b("group/btn border-0 p-0 flex items-center bg-inherit",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":"w-6 h-6 text-primary-text hover:text-primary-main","group-data-transparent:text-white",e),type:"button",disabled:l,"aria-label":a,onClick:r,children:u(lt,{image:n,className:b("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0",asSVG:!0})}))),_r=e=>globalThis[e];function Mr(e,t){const[l,i]=a(),s=r((()=>i(_r(e))),[e]);return n((()=>{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(!_r(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const Lr={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Dr=x((e=>{const[t,{setTrue:l}]=fr();return t?u(zr,{...e}):Ar({...e,onClick:l})})),zr=x((({chat:e="personal",...t})=>((e=>{n((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Mr("chatbot",Lr[e])})(e),Ar(t)))),Ar=({className:e,iconVersion:t,onClick:l})=>u(jr,{className:b("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l}),Or=x((({version:e,className:t,officesLink:l,defaultLocation:i="Москва",foreignOffices:s})=>{const[o,{setTrue:d,setFalse:m}]=fr(),[h,x]=function(e){const t=yr(),[l,i]=a(t?.region??{name:e}),{data:s}=Nr("/api/v1/region",E);return n((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[i])]}(i),g="transparent"===e?"white":"black",f=r((e=>{e?.preventDefault(),d()}),[]);return p("div",{className:b("flex items-center",t),children:[u(xr,{className:"mr-5",flat:!0,href:"#",text:h.name,onClick:f}),l?u(xr,{className:"mr-7",flat:!0,href:l,text:"Офисы и банкоматы"}):null,c.CHAT_BOT?u(Dr,{className:"mr-5",iconVersion:g,chat:c.CHAT_BOT}):null,o?u(Cr,{currentLocation:h,foreignOffices:s,onChangeLocation:x,close:m}):null]})})),Pr=x((({className:e="",items:t,activeItem:l})=>{const n=Z(),[i,s]=a(!1),o=r((()=>s((e=>!e))),[]),c=xe(r((()=>s(!1)),[]));return p("div",{className:b(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("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)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:b("flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:a,...r}=e;return u("a",{className:b("text-l-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...n(r),children:a},e.href||String(t))}))})]})})),Er=x((({className:e="",active:t,dataItemName:l,children:a,...n})=>{const r=Z(),{href:i,target:s,text:o,onClick:c}=r(n);return p("a",{className:b("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:Fr(t),children:o||a}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Fr=(e=!1)=>b("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"),Hr=x((({observerOptions:e,onVisibilityChange:t,children:l,...a})=>{const n=I(r((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:n,children:u(Er,{...a,children:l})})})),Ur=x((({subItems:e=[]})=>{const t=(e=>(t=[])=>{const l=t?.filter(pr(e));return l?.length?dl((e=>e.href?.length||0))(l):void 0})(K())(e),[l,n]=a(e.length),r=e.slice(l),o=s(null),c={rootRef:o},d=i((()=>e.map(((e,t)=>e=>{n(e?Xr(t):Gr(t))}))),[e]);return p("nav",{className:"relative mt-6",children:[u("div",{ref:o,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,a)=>u(Hr,{className:b("mr-8",l-1<a?"invisible":""),active:e===t,observerOptions:c,onVisibilityChange:d[a],...e},String(a))))}),r.length?u(Pr,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:r,activeItem:t}):null]})})),Xr=e=>t=>Math.max(t,e+1),Gr=e=>t=>Math.min(t,e),Wr={"bg-white":"primary",transparent:"transparent"},Jr=x((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:a=Wr[e],...n})=>{const r=K(),{topItems:i,logo:s,defaultLocation:o,foreignOffices:d,officesLink:m}=En(c.SITEMAP||"sitemap",n.options?.page?.fallback),h=i?.find((e=>pr(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(r));return u(V,{tag:"header",className:b("pt-6 px-20",l&&h?.items?.length?"pb-4":"pb-5",t),version:a,...n,children:p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Wn,{className:"mr-8",bgColor:e,logo:s}),i?.map(((e,t)=>u(xr,{active:e===h,...e},String(t)))),u(Or,{version:a,className:"ml-auto",foreignOffices:d,defaultLocation:o,officesLink:m})]}),u("div",{className:b("mt-6 h-px bg-main-divider","transparent"===a?"opacity-30":"")}),l&&h?.items?.length?u(Ur,{subItems:h.items}):null]})})})),Yr={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},qr=x((({className:e="",gap:t="XS",isPadding:l=!1,version:a="transparent",...n})=>u(V,{className:b("grid grid-cols-12",l?"p-12":"",Yr[t],e),version:a,...n,children:C(n)})));qr.childrenTypes={exclude:["HorizontalLayout"]};const Kr=x((e=>{const{className:t,image:l,...a}=e;return u(V,{className:t,...a,children:u(lt,{image:l})})})),Zr=x((({className:e="",cards:t=[],button:l})=>{const[n,i]=a(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=Lt({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?Qr({activeIndex:c,cards:t,selectedCardIndex:n,onClick:s}):null,Ot({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(ce,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function Qr({activeIndex:e,cards:t,selectedCardIndex:l,onClick:a}){const n=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${n}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:a}){return p("button",{type:"button",onClick:a,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(lt,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?ei("страховая сумма",e.sum):null,e?.fee?ei("страховой взнос",e.fee):null]}),ti(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>a(t)})))})})}function ei(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[Pe(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function ti(e){return e?u(lt,{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 li=x((({className:e="",title:t,insuranceTabs:l=[],button:n,...i})=>{const[s,o]=a(0),c=r((e=>o(e)),[]);return p(V,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?u(_,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?u("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:a}){return u("button",{type:"button",onClick:a,"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,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:ai({insuranceTabs:l,button:n})})]})})),ai=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(Zr,{button:t,cards:e},String(l)))):null};function ni(e){return t=>t.reduce(((t,l,a)=>t.length?t.concat({...e,key:a},l):[l]),[])}const ri={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},ii={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},si=x((e=>{const{className:t="",items:l,isDotted:a,investmentZeroColumn:n,investmentColumns:r,...i}=e,s=r?[...r]:[];return n&&s.unshift(n),u(V,{className:`px-9 py-12 ${t}`,...i,children:p("div",{className:"container text-m-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[ni(u("div",{className:"w-px h-4 bg-gray"}))(s.map(oi)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(mi)})]}):null,l?.length?u(Sa,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:a}):null]})})})),oi=(e,t,l)=>{const a=1===t,n=t===l.length-1;return u("div",{className:`${ci(a,n,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(n?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(di)}):null},`column_${t}`)},ci=(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(" "),di=(e,t)=>{const l=e.cellSize||"XS",a=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${ii[l]} ${ri[a]} ${"XS"===l?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},mi=(e,t,l)=>{const a=0===t,n=t===l.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${a?"pl-9":""} ${n?"mr-3.5":" "}`,children:e.title},`title_${t}`)},hi=x((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:n,icon:r})=>{const{text:i,fileSize:s,...o}=n;return p("a",{className:e,role:"link",...o,children:[r?u(lt,{className:t,image:ma(r),width:"24px",height:"24px",asSVG:!0}):null,i?p("span",{className:l,children:[i,u("span",{className:a,children:o?.href&&ui(pi(o.href),s)})]}):null]})})),ui=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),pi=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},xi=x((({className:e="",doc:t,icon:l})=>u(hi,{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}))),gi=x((({className:e,documents:t,columnsMode:l="double",icon:a})=>t?.length?u("div",{className:e,role:"list",children:t.map(((e,t)=>u("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(xi,{className:"group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:a})},String(t))))}):null)),bi={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},fi=x((({className:e="",title:t,description:l,align:a="text-center",documents:n,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(V,{className:b("p-12",e),...s,children:[u(Ct,{className:"!p-0",title:t,description:l,align:a,headlineVersion:"M",as:"h2"}),u(gi,{className:`mt-8 ${bi[i]}`,columnsMode:i,documents:n,icon:r})]}))),vi=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function Ni(e=""){const t=vi(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const yi=x((({className:e="",title:t="Мобильное приложение",qr:l,buttons:a,version:n="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===n?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(V,{className:`flex justify-between p-12 box-border relative min-h-80 ${Ni(e)} ${e}`,version:n,...d,children:[p(ua,{className:"z-10",title:t?u(_,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${k[o]}`}):null,buttons:ft(a,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Ci(c),p("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?u("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:u(lt,{className:"w-fit",image:l})}):null,wi(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(lt,{image:i})}):null]})})),wi=e=>e?.length?u(Sa,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Ci=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,ki=[{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 Si(e,t,l){t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),n=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:a,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));n.add(r),t.geoObjects.add(n),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Ti={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"},Ii=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Ti).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),$i={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)]"},Bi=(e,t,l)=>p("div",{className:`${Object.values($i).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(be,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const a=t.target?.value?t.target?.value.toLowerCase():"";if(a){const t=e.filter((e=>e.text.toLowerCase().indexOf(a)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Ri={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"},Vi=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Ri).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(be,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),ji={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"},_i=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),a="in"===t?l+1:l-1;e.current.setZoom(a,{checkZoomRange:!0})},className:`${Object.values(ji).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(be,{name:l,width:"20",height:"16"})})})),Mi={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=x((({points:e,className:t="",zoom:l=5,showSearchField:r=!1})=>{const i=s(null),o=Mr("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=a(),[h,x]=a(Oi(ki)),g=Di(e);if(n((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),Si(o,i.current,h)}))}),[o,i,h]),n((()=>{if(i.current&&h&&o){const e=h.length<1?Oi(ki):h;Si(o,i.current,e)}}),[i,h,o]),!o)return null;const b=d?"z-[100000]":"z-10";return p("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?Bi(ki,0,(e=>{if(e){const t=Oi(e);x(t)}})):Ii(g)}),u("div",{className:`${Object.values(Mi).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(be,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[u(_i,{yandexMaps:i}),u(_i,{yandexMaps:i,direction:"out"})]}),Vi(i.current,o,`right-2 top-80 ${b}`)]})})),Di=e=>[Ai(zi(e,0)),Ai(zi(e,1))],zi=(e,t)=>e.map((e=>e[t])),Ai=e=>e.reduce(((e,t)=>e+t))/e.length,Oi=e=>e?e.map((e=>e.coords)):null,Pi=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Ei=({lunchHour:e,status:t,workTime:l})=>{const a=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?a:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Fi=({icon:e,title:t,distance:l,time:a},n)=>p("div",{className:"flex mr-4",children:[u(be,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[l?` (${l})`:null,a?`, ${a}`:null]})]},`nearbyOffice${n}`),Hi=({title:e,status:t,workTime:l,lunchHour:a,description:n},r)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&a?Ui(a):null,n?u("div",{className:"pb-1 text-s-light text-secondary-text",children:n}):null]},`day${r}`),Ui=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:u("div",{children:e})}),Xi={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 Gi(e){return e?P(e,{method:"GET"}):{}}const Wi=x((({className:e=""})=>{const t=function(e){const{data:t}=A(e?`/api/v1/branches?regionCode=${e}`:void 0,Gi);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),Xi}("000"),{name:l,address:a,gpsLatitude:n,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=n&&r?[n,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:h,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),Ei(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(be,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),a]}),u("div",{className:"flex pt-4",children:Pi.map(Fi)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(Li,{points:[N],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(Hi)})]})]})})),Ji=x((({className:e="",title:t,servicesList:l,...a})=>p(V,{className:`p-8 flex flex-col ${e}`,...a,children:[t?u(_,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?u("ul",{className:"list-none m-0 p-0",children:l.map(Yi)}):null]}))),Yi=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(lt,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:ma(e.icon)}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),qi=x((({className:e="",...t})=>u(V,{className:`font-sans text-primary-text ${e}`,...t,children:C(t)})));qi.childrenTypes=["OtherProductsItem"];const Ki=x((({text:e,size:t,align:l,font:a,children:n,...r})=>u(V,{...r,children:u(M,{size:t,align:l,font:a,children:e||n})}))),Zi=x((e=>{const{className:t="",icon:l,label:a,description:n,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return p("div",{className:`flex gap-5 ${n?"items-start":"items-center"} ${t}`,children:[l?u("div",{className:Qi(r,i),children:u(lt,{className:"w-6 h-6",image:ma(l,s),asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[a?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:a}):null,n?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:n}):null]})]})}));function Qi(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 es=x((e=>{const{__html:t=""}=e;return u("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})}));function ts(e){throw new Error(e)}const ls=e=>(t,l)=>{const{type:a}=t;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return u(Zi,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));case"rte":return u(es,{__html:t.__html});default:ts(t)}},as=x((({className:e="",title:t,description:l,image:a,benefits:n,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(V,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(Ct,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[a?.src?u(lt,{className:s?"order-2":"",image:a}):null,p("div",{className:"w-[558px] m-auto",children:[n?.length?u("div",{className:"flex flex-col gap-4",children:n.map(ls(o))}):null,ns(Number(r),Number(i))]})]})]})));function ns(e,t){return e||t?p("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?rs("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?rs("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function rs(e,t=0,l=!1){return p("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[u("span",{className:"text-secondary-text text-l-light",children:e}),p("span",{className:"text-primary-main text-h6",children:[Pe(t)," ₽"]})]})}function is(e=""){const t=vi(e);return t<=4?"S":t<=8?"M":"L"}function ss(e=""){const t=vi(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const os=x((({className:e,title:t,description:l="Блок в разработке...",...a})=>p(V,{className:b("p-9 box-border",e,ss(e),Ni(e)),...a,children:[u(Ct,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:is(e)}),u("figure",{className:"m-0 min-w-[80%]",children:cs()})]}))),cs=(e=3)=>ms(100,e).map((e=>Math.floor(e))).map(ds),ds=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ms=(e,t)=>[e].concat(t>0?ms(e/1.618,t-1):[]),hs=x((({className:e="",children:t,...l})=>{const a=Z(),{text:n,href:r,target:i,onClick:s}=a(l);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:n||t})}):u("span",{className:e,children:n||t})})),us=(e="primary",t="normal")=>({icon:l,label:a,description:n},r)=>u(Zi,{icon:l,label:a,description:n,version:e,benefitsVersion:t},String(r)),ps=x((({className:e="",title:t,headlineVersion:l="L",description:a,benefitsCountOfRow:n=3,benefits:r,benefitsVersion:i,buttons:s,footnote:o,image:c,__html:d,items:m,version:h="primary",isDotted:x=!0,textBlockClassName:g=""})=>{const f=r?.filter((e=>e.label))?.length,v=xs(n);return p("div",{className:b("flex grow justify-between items-stretch h-full",e),children:[p("div",{className:b("flex flex-col",g),children:[u(Ct,{className:"!p-0 max-w-[600px]",title:t,description:a,headlineVersion:l,align:"text-left",version:h}),p("div",{className:"flex flex-col justify-between h-full",children:[p(ua,{buttons:ft(s),children:[f?u("div",{className:v,children:r?.map(us(h,i))}):null,d?u("div",{className:"mt-5",children:u(es,{__html:d})}):null,m?.length?u(Sa,{className:"mt-5 text-h6",items:m,itemClassName:"mb-[7px]",isDotted:x}):null]}),o?u("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&u(lt,{className:"mt-[-50px]",image:c})]})})),xs=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function gs(e,t,l){const{text:a,href:n,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:b("flex items-center",l),children:[u(ce,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:a,href:n,target:r,children:u(lt,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i},asSVG:!0})}),a?u(ce,{version:"link",text:a,href:n,target:r,ariaLabel:a}):null]})}const bs="text-secondary-text group-data-secondary:text-white/80",fs=x((e=>{const{className:t="",breadcrumbs:l,backwardButton:a,version:n="primary",...r}=e,i="primary"===n?n:"white";return p(V,{className:`overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${t}`,version:n,...r,children:[a?.text?gs(a,i,"mb-10 -mt-2.5"):null,l?.length?u("div",{className:"text-xs-light mb-6",children:ni(u("span",{className:`mx-2 ${bs}`,children:"/"}))(l.map(((e,t)=>u(hs,{className:bs,...e},String(t)))))}):null,u(ps,{version:n,...r})]})})),vs=x((({className:e="",slides:t=[],...l})=>{const n=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=a(0),c=r((e=>o(e)),[]);return p(V,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,...l,children:[u("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){return u("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:u("div",{className:"flex grow",children:u(ps,{className:"pl-12 z-10 group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...l},t)))}),u("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:n.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:a}){const n=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",r=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 u("button",{type:"button",onClick:a,"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 ${n}`,children:p("div",{className:"border-0 px-6",children:[u("div",{className:`last:pb-0 ${r}`,children:e?.title}),u("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))})]})}));function Ns(e,t){if(!e)return null;return u("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:u(M,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const ys=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[u(he,{size:"text-h6",children:e.label},`label-${t}`),u(he,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return u("div",{className:"col-span-2",children:u(es,{__html:e.__html})});default:ts(e)}};function ws(e,t){return e?.src?u(lt,{className:`absolute ${t?"right-0":"left-0"} bottom-0`,image:e}):null}const Cs=x((({className:e="",title:t,headlineVersion:l="S",description:a,additionalDescription:n,benefits:r=[],buttons:i,image:s,isImageOnRightSide:o=!0,...c})=>p(V,{className:b("overflow-hidden p-9 box-border relative min-h-[364px]",ss(e),e),...c,children:[p("div",{className:b("flex flex-col",o?"":"items-end"),children:[u(Ct,{className:b("!p-0 !bg-transparent z-10",t||a?"mb-3.5":""),title:t,description:a,headlineVersion:l,as:"h2",align:"text-left"}),ks(r,s),Ns(n,s),ft(i,{className:"mt-5 z-10 text-l"})]}),ws(s,o)]})));function ks(e,t){if(!e.length)return null;return u("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(ys):null})}const Ss=x((({className:e="",title:t="Акции и спецпредложения",date:l,description:a,as:n,buttons:r=[],...i})=>u(V,{className:b("p-9 box-border",e,ss(e),Ni(e)),...i,children:u(ua,{title:t?u(Ct,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:is(e),align:"text-left",as:n||"h2"}):null,buttons:ft(r),children:p("div",{className:"mt-1.5",children:[l?u("div",{className:"text-s mb-2",children:Ts(l)}):null,u("div",{className:"text-l",children:a})]})})})));function Ts(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Is=x((({className:e="",title:t,description:l,items:a,image:n,socialMedia:r,button:i,...s})=>{const o=t?u(_,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=n?.src?u(lt,{className:"absolute bottom-0 right-0 m-0",image:n}):null;return u(V,{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",...s,children:u(ua,{className:"flex justify-between",title:o,image:c,children:p("div",{className:"h-full flex flex-col justify-between",children:[l?u("span",{className:"mb-2",children:l}):null,a?.length?u(Sa,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:a}):null,r?u(za,{className:"pt-10 pb-0",media:r}):null,i?.text?u("div",{className:"pt-2",children:ft([i],{buttonClassName:"mt-16 px-5"})}):null]})})})})),$s="absolute top-0 bottom-0 w-[84px]",Bs=x((({recommendations:e=[],className:t="",title:l,version:a="primary",...n})=>{const[r,i]=Lt({itemCount:e.length,visibleItemCount:2});return p(V,{className:`relative font-sans p-9 overflow-hidden text-center ${t}`,version:a,...n,children:[l?u(_,{headingType:"h3",className:"mb-6",title:l}):null,p("div",{children:[u("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*r}px)`},role:"list",children:e.length?e.map(((e,t)=>u(Is,{version:a,className:"border-gray group-data-secondary:border-white/50",...e},String(t)))):null}),Ot({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),u("div",{className:`${$s} left-0 ${"secondary"===a?"bg-opacity-from-main":"bg-opacity-from-white"}`}),u("div",{className:`${$s} right-0 ${"secondary"===a?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Rs=x((e=>{const{__html:t,...l}=e;return u(V,{...l,children:u(es,{__html:t})})})),Vs=x((({className:e="",label:t,icon:l,dataTheme:a="",onClick:n})=>p("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":a,onClick:n,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(lt,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),js=({isUnfolded:e,onToggle:t})=>u(Vs,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),_s=x((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:a=!0,version:n="primary",...r})=>u(V,{className:`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,tag:"div",version:"transparent",...r,children:u(Oa,{isFoldButtonOnTop:a,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>u(Pa,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:C(r)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>Ms({version:n,label:t,isUnfolded:e,onToggle:l})})})));_s.childrenTypes={exclude:["RollupItem","Accordion","OtherProducts"]};const Ms=({version:e,label:t,isUnfolded:l,onToggle:a})=>{const n=t||(l?"Скрыть":"Развернуть");return"primary"===e?Ls({label:n,icon:l?"MinusIcon":"PlusIcon",onToggle:a}):u(Vs,{label:n,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:a})},Ls=({label:e,icon:t,onToggle:l})=>p("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:[u(he,{size:"text-xl",font:"font-medium",children:e}),t?u(lt,{image:ma({icon:t}),width:"24",height:"24",asSVG:!0}):null]}),Ds=[];const zs=async e=>await P(e,{method:"GET"})||Ds,As=x((({data:e,fieldLabel:t,fieldValue:l,selected:a,placeholder:n="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return u(Ne,{options:s,label:i,placeholder:n||a,onChange:e=>r(e.key),value:o})})),Os=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:a=[],selectedBranch:n,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(As,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(As,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:n,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Ps=x((({name:e,text:t,value:l,checked:a,onChange:n,className:r})=>u("div",{className:r,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:a,onChange:e=>n(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Es=x((()=>{const[e,t]=a("option2"),l=r((e=>t(e)),[]);return p("div",{children:[u(Ps,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),u(Ps,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Fs=["От 1 дня","До 365 дней"],Hs=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(He,{min:1,max:365,value:e,items:Fs,onChange:t})]}))),Us=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:a=[],selectedBoxSize:n,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(As,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(As,{data:a,fieldLabel:"safeBoxCasesSize",selected:n,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Xs=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:a,days:n,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(Os,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:a,onSelectedBranch:Gs(c)}),u(Hs,{days:n,setDays:e=>c({days:e})}),u(Us,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:Ws(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(Es,{}),u(ce,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Gs=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Ws=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Js=x((({days:e,tariffs:t=[]})=>{const l=qs(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[Ys("Аренда за",e,"mr-11"),Ys("Цена",l+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(lt,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),Ys=(e,t,l="")=>p("div",{className:l,children:[u("div",{className:"text-m-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),qs=(e,t)=>{const l=Ks(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},Ks=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},Zs=(e,t)=>e.find((e=>e.branchCode===t)),Qs=x((e=>{const{regions:t,data:l,branches:a,onChange:r,onClick:i}=e;n((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,r]);const s=Zs(a,l.selectedBranch),o=eo(s?.safeBoxCaseVolumes),c=to(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=lo(c,l.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(Xs,{...l,regions:t,onClick:i,branches:a,caseVolumes:o,safeBoxCases:c,onChange:r}),u(Js,{days:l.days,tariffs:d})]})})),eo=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],to=(e,t)=>e?.find((e=>e.volume===t)),lo=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,ao=x((({title:e,footnote:t,className:l="",...n})=>{const[i,s]=a(!1),o=r((()=>s((e=>!e))),[]),[c,d]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=F(),h=no(c.selectedRegion,m),x=function(e){const{data:t}=A(e?`/api/v1/safeboxes?regionCode=${e}`:null,zs);return t||Ds}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=Zs(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 p(V,{className:l,...n,children:[p("div",{className:"px-8 py-12",children:[e?u(_,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(Qs,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?u(Li,{points:b,className:"h-[640px]"}):null]})})),no=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,ro=e=>Boolean(e?.icon||e?.src),io=({styleMap:e,isMainButton:t,version:l})=>(a,n,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=a;return p("div",{className:b("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",so(r.length)),children:[p("div",{className:b(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(he,{size:"text-h6",children:i})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(Sa,{className:b(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(ce,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(n))},so=e=>e<5?"w-[276px]":"w-[210px]",oo={description:"text-white/80 text-l-light group-data-primary:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},co=x((({className:e="",showLines:t=!0,steps:l=[],button:a,size:n="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=l.length>3,d=oo,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return p(V,{className:b("box-border py-12",c?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e),version:r,...o,children:[s?u(_,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,l?.length?p("div",{className:"box-border",children:[u("div",{className:b("flex items-center",h),children:ni(u("div",{className:b("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(mo(d,n,i)))}),u("div",{className:b("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:l.map((x={styleMap:d,isMainButton:Boolean(a?.text),version:r},(e,t,l)=>{const{type:a}=e;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return io(x)(e,t,l);case"rte":return u(es,{__html:e.__html});default:ts(e)}}))})]}):null,a?.text?ft([a],{className:"mt-8 min-w-60"}):null]});var x})),mo=(e,t,l)=>({icon:a},n)=>u(V,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:l,children:ro(a)?u(lt,{image:ma(a||{},l),width:"48",height:"48",asSVG:!0}):u("span",{className:`text-h4 group-data-transparent:${e.iconText} text-primary-text`,children:n+1})},String(n)),ho={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},uo={"horizontal-list":"w-6","vertical-list":"h-6"},po=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:a="horizontal-list",version:n})=>l?u("div",{className:b("flex gap-2",ho[a],n?"group":""),...n?{"data-ver":n}:{},children:new Array(l).fill(null).map(((l,n)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${n===t?uo[a]:"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"})})(n)},String(n))))}):null)),xo=x((({className:e="",gap:t=14,padding:l=16,showDots:a=!0,minHeight:n,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=Jl({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:b(e,"vertical-list"===s?"relative h-full":""),children:[u(Hl,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:n,children:r}),a?u(po,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),go=x((({listType:e,showDots:t,options:l,version:a,...n})=>u(V,{version:a,...n,children:u(xo,{listType:e,showDots:t,version:a,children:C({...n,options:l})})})));go.childrenTypes={exclude:["SwipeListControlBlock"]};const bo="h-12 flex-1 flex items-center justify-center cursor-pointer",fo="font-sans text-m text-center",vo="text-white",No="text-secondary-text group-hover/btn:text-primary-main",yo="text-primary-main",wo={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${bo} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${bo} group/btn bg-white`},default:{active:`${bo} bg-primary-main text-white whitespace-nowrap`,default:`${bo} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Co={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${bo} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${bo} group/btn bg-white`},default:{active:`${bo} bg-primary-main text-white`,default:`${bo} group/btn bg-white`}},text:{scrollable:{active:`${fo} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${fo} ${No}`},default:{active:`${fo} text-white`,default:`${fo} ${No}`}}},ko=(e,t,l)=>{const a=t?"active":"default";return wo[e][l?"scrollable":"default"][a]},So=(e,t,l)=>{const a=t?"active":"default";return Co[e][l?"scrollable":"default"][a]},To=x((e=>{const{tab:t,currentTab:l,onClick:a,isScrollable:n=!1}=e,r="link"===l?.type&&l.href===t.href,i=Z()(t);return u("a",{role:"tab",className:So("link",r,n),target:t.target,href:i.href,onClick:e=>{i.onClick(e),a(t)},children:u("span",{className:So("text",r,n),children:t.text})})})),Io=(e,t,l)=>e?u("h3",{className:l?`${fo} ${t?yo:No}`:`${fo} ${t?vo:No}`,children:e}):null,$o=(e,t,l)=>e&&t?u("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(l?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,Bo=({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:ko("div",s,n),role:"tab","aria-selected":s,onClick:()=>a(r),children:p("div",{className:`flex flex-1 items-center justify-center ${ko("text",s,n)}`,children:[Io(r.title,s,n),$o(l,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n})(r,i);case"link":return u(To,{tab:r,currentTab:t,isScrollable:n,onClick:a},String(i));default:ts(s)}return null},Ro=x((e=>{const{tabs:t,onClick:l,currentTab:a,page:n,showCounter:r}=e,[i,s]=Jl({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(Hl,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(Bo({onClick:l,currentTab:a,showCounter:r,page:n,isScrollable:!0}))})}),s.canScrollLeft?u(zt,{className:"absolute z-50 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(At,{className:"absolute z-50 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),Vo=x((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=a(l?l[0]:void 0);n((()=>{l&&l[0]&&jo(l[0])}),[]),n((()=>{"group"===d?.type&&T.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{jo(e),m(e)}),[]);return u(V,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?u(Ro,{tabs:l,onClick:h,currentTab:d,showCounter:i,...c}):l?.map(Bo({onClick:h,currentTab:d,showCounter:i,...c}))})})),jo=e=>{"group"===e.type&&T.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&T.fire("tab",{type:e.type,label:e.href})},_o=x((({isOpen:e,onClick:t})=>p(ce,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(be,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Mo={Buttons:({buttons:e})=>ft(e,{buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(lt,{image:e}):null,List:({isDotted:e,...t})=>u(Sa,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:a,isOpen:n})=>e?u(_o,{isOpen:n,onClick:()=>{t({dataUrl:l,pdfUrl:a})}}):null))},Lo=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=a(!0);n((()=>{t===i&&r||m(!0)}),[r,i]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,Do({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},Do=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...a}=e;if(!l||!(l in Mo))return null;return u(Mo[l],{...t,...a})},zo=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:a,tableInner:n,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Lo({rowIdx:t,cellIdx:l,setTableInner:a,tableInner:n,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),Ao=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,a]=Lt({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Oo(l)),Ot({...a,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Oo=e=>(t,l)=>{if(!t?.length)return null;const[a,...n]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(n?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[a?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:a.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:n?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Po(t.cols,e):null]},`row${l}`)))})})]},String(l))},Po=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,Eo=x((({activeTabIndex:e,items:t})=>{const[l,n]=a({}),i=r((e=>n((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,a)=>{const n=`activeTabIdx:${e}-tableIdx:${a}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(n),children:[t.title,u(lt,{image:{icon:l[n]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[n]?"h-0":""),children:u("div",{className:"relative",children:u(Ao,{rows:t.rowsData})})})]},n)}))})})),Fo=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:a})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>a(t),children:e||t+1},e)))}):null,t?u(ce,{href:t,version:"secondary",target:"_blank",appendLeft:u(be,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function Ho(e){const t=await fetch(e);return await t.json()}const Uo=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:n}=function(e){const{data:t}=A(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Ho);return t||{}}(e),[i,s]=a(0),o=r((e=>s(e)),[]),c=n?.[i]?.items??[],d=n?.map((e=>e.currency??""));return p("div",n?{className:"bg-white z-10",children:[u(Fo,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(Eo,{activeTabIndex:i,items:c}),u(_o,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(_o,{onClick:l,isOpen:!0})]})})),Xo=x((({children:e,tableInner:t,onHideContentClick:l})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(Uo,{...t,onClick:l})}):null]}))),Go=x((({row:{header:e,data:t},activeIndex:l,rowIdx:n,...i})=>{const[s,o]=a(void 0),c=r((e=>o(e)),[]),[d,m]=a(void 0),h=r((e=>m(e)),[]);return p(Xo,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(lt,{className:"mr-3.5 max-w-6 max-h-6",image:ma(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(Qa,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(zo,{cells:e,rowIdx:n,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),Wo=x((({className:e="",title:t,description:l,rowHeaders:a,tariffsColumns:n,hiddenRowsNum:r=0,...i})=>{const s=n?.map((({data:e})=>e))||[],o=a?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=Lt({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(Go,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[h.slice(0,-r),h.slice(-r)]:[h,[]];return p(V,{className:`p-12 overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[Jo({title:t,description:l}),Yo(l),r>0?u(Oa,{renderFoldableSection:({isUnfolded:e})=>p(qo,{controls:m,children:[x,u(Pa,{isUnfolded:e,children:g})]}),renderFoldButton:js}):u(qo,{controls:m,children:h})]})}));function Jo({title:e,description:t}){return e?u(_,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Yo(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const qo=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Ot({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Ko=x((({className:e="",title:t,description:l,iconVersion:a,image:n,__html:r,...i})=>p(V,{className:`px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10' ${e}`,...i,children:["small"===a?u("div",{className:"mt-1",children:Zo()}):null,"big"===a?Qo(n):null,p("div",{children:[t?ec(t):null,l?u("div",{className:"mt-1",children:tc(l)}):null,r?u(es,{__html:r}):null]})]}))),Zo=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Qo=e=>e?.src?u(lt,{image:e}):null,ec=e=>u(he,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:e}),tc=e=>u(M,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),lc=x((e=>{const{tags:t,className:l=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(ac)}):null})),ac=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),nc=x((({title:e,headingType:t="h3",__html:l,items:a,buttons:n,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,...m})=>u(V,{className:`overflow-hidden p-9 pr-3 box-border ${ss(o)} ${Ni(o)} ${o}`,...m,children:p(ua,{title:e?u(_,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:ft(n,{className:"mt-8",buttonClassName:"min-w-[158px]"}),image:r?.src?u(lt,{className:"mt-auto ml-7",image:r}):null,children:[l?u("div",{className:"max-w-[600px] mt-2.5",children:u(es,{__html:l})}):null,d,u(Sa,{className:"mt-2.5",itemClassName:"mb-1.5",items:a,isDotted:i,listItemSize:s}),c?.length?u(lc,{tags:c,className:"mt-5"}):null]})}))),rc={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},ic=x((({className:e="",gap:t="",align:l="stretch",isPadding:a=!1,isInnerPadding:n=!0,version:r="transparent",options:i,...s})=>{const o=n?"":"!p-0";return u(V,{className:b("flex flex-col [&>*]:max-w-full",a?"p-12":"",Yr[t],l&&rc[l],e),version:r,...s,children:C({...s,options:{...i,className:o}})})}));ic.childrenTypes=[];const sc=e=>vi(e)<10?"py-6 px-11":"py-12 px-32",oc=x((({className:e,title:t,url:l,previewImg:a,...n})=>{const r=K();return p(V,{className:b(sc(e),e),...n,children:[u(Ct,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:Y(r)(a?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:Y(r)(l)})}):null]})})),cc={Accordion:L,ApplicationForm:ht,BenefitsBlock:ut,Bonus:kt,BonusBenefitsBlock:$t,BusinessBlock:_t,ButtonBlock:Mt,Calculator:jl,CardTransfer:Ol,Carousel:Ql,CarouselBankHistoryCard:ta,CarouselCard:sa,CarouselCatalogCard:ca,CarouselEventCard:ha,CarouselInvestmentCard:xa,CarouselLinks:va,CarouselProductCard:Ta,CarouselProgramsCard:ja,CarouselRecommendationCard:Aa,CarouselTariffsCard:Ea,ComparisonTable:mn,ContactsBlock:un,ErrorBlock:bn,ExchangeRateTile:On,Footer:cr,GracePeriod:dr,Header:Jr,Headline:Ct,HorizontalLayout:qr,ImgBlock:Kr,InsuranceAmountBlock:li,InvestmentInfo:si,LinkDocs:fi,MobileAppTile:yi,OfficeMap:Wi,OfficeServicesBlock:Ji,OtherProducts:qi,ParagraphBlock:Ki,PictureText:as,Placeholder:os,ProductBlock:fs,ProductGallery:vs,ProductTile:Cs,PromoTile:Ss,Recommendation:Bs,RichTextBlock:Rs,RollupItem:_s,SafeDepositRental:ao,StepsBlock:co,SwipeListControlBlock:go,Tabs:Vo,TariffsTable:Wo,TextBlock:Ko,Tile:nc,VerticalLayout:ic,Video:oc};const dc=["Header","Footer"],mc=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function hc(e=globalThis){const t=s(new Map);n((()=>B.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),n((()=>{const l=((e,t=600)=>{let l;const a=(...n)=>{a.dispose(),l=setTimeout((()=>{e(...n)}),t)};return a.dispose=()=>{l&&clearTimeout(l)},a})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!dc.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?ml(mc)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const uc=h();const pc=x((({className:e,onClick:t,ariaLabel:l})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:xc()}))),xc=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},gc=x((({className:e=""})=>{const t=function(e){const[t,l]=a(0);return n((()=>{(async()=>{const[t]=await uc.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{l(await uc.like(e))}),[e]),dislike:r((async()=>{l(await uc.dislike(e))}),[e])}}(K().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(pc,{onClick:q(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(pc,{onClick:q(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),bc=x((e=>{const{className:t="",blocksRegistry:l,blockDecorator:a,data:n={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=n,d={key:"",page:n,blocksRegistry:l,blockDecorator:a,parent:n};return hc(),p("section",{className:b("relative",r,t),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[w(i,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(gc,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));bc.childrenTypes=[],bc.slots=()=>["header","footer"];e.Blocks=cc,e.ContentPage=bc,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=q,e.joinList=ni,e.packageVersion="0.8.26",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=J,e.useRouter=K,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),a=l("useState"),n=l("useEffect"),r=l("useCallback"),i=l("useMemo"),s=l("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;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||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:a}=await e.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:a,...n}=t||{},r=l?.slots?.default,i=a||r&&r();return e(Object.assign(n,i&&{children:i}),l)}return t.inheritAttrs=!1,t},b=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),f=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),v=[];function N(e,t){const{key:l,blockDecorator:a=f,blocksRegistry:n={},ancestors:r=v,className:i="",extraProps:s={}}=t,{type:o}=e;o&&o in n||console.warn(`No block with "${o}" is registered`);const c=o&&n[o];return a({blockClassName:b("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:r,render:({block:a,blockClassName:n})=>{const{content:r}=a;return c?u(c,{className:n,block:e,options:t,...r,...s},l):null}},l)}const y=[],w=(e,{key:t,ancestors:l=y,slotName:a=null,renderProps:n=N,...r})=>(e||[]).map(((e,i)=>n(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...l||y,[r.parent,a]]:l})));function C({children:e,block:t,options:l,renderProps:a}){return e||(t&&l?w(t.blocks,{...l,parent:t,renderProps:a}):null)}const k={left:"text-left",center:"text-center",right:"text-right"};class S{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const T=new S;function I(e,{sensitivity:t,rootRef:l}={}){const a=s(null),r=i((()=>({threshold:$(t),root:l?.current})),[t,l?.current]);return n((()=>{if(!a.current)return;const t=new IntersectionObserver(e,r);return t.observe(a.current),()=>{t.disconnect()}}),[e,r]),a}function $(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 B=new S;const R={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","":""},V=x((({className:e="",version:t="primary",block:l,tag:i="section",role:s,isTheme:o=!0,extraProps:c={},children:d})=>{const m=i,h=function(e){return I(r((t=>{if(!e||!t?.length)return;const l=t[t.length-1];B.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(l),[p,x]=a(!1);return n((()=>T.subscribe("tab",(e=>{x(Boolean(e.label&&l?.labels?.length&&!l.labels.includes(e.label)))}))),[l]),u(m,{className:b(j(Boolean(t&&o)),R[t],p?"hidden":"",e),...t&&o?{"data-ver":t}:{},...l?.anchor?{id:l.anchor,ref:h}:{},role:s,...c,children:d})})),j=e=>e?"group":"",M={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},_=x((({className:e="",headingType:t="h3",as:l="h3",title:a,children:n})=>u(l,{className:`font-sans m-0 ${M[t]} ${e}`,children:a||n}))),L=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),D=x((({className:e="",title:t,accordionAlignTitle:l="center",description:a,...n})=>p(V,{className:`p-12 mb-1 last:mb-0 ${e}`,...n,children:[t?u(_,{headingType:"h3",as:"h2",className:`mb-2.5 ${k[l]}`,title:t}):null,a?u("div",{className:"mb-2.5",children:u(L,{size:"text-l",children:a})}):null,u("div",{className:"list-none m-0 p-0",children:C(n)})]})));D.childrenTypes=["Accordion"];const z=x((({className:e="",inputClassName:t="",id:l,name:a,type:n="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...h})=>{const x=r((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=r((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:`relative ${e}`,children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:a||l,type:n,value:s,onChange:x,onBlur:g,...h}),c]})})),O=new Map;function A(e,t,{fallback:l}={}){const r=i((()=>P(e)),[e]),[s,o]=a(),[c,d]=a(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};n((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>O.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=l&&"string"==typeof u&&l[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function P(e){return e?Array.isArray(e)?e:e instanceof Function?P(e()):[e]:[e]}async function E(e,t){try{return e?await F(e,t):null}catch(e){console.error(e)}return null}async function F(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function H(){const{data:e}=A("/api/v1/regions",F);return e||[]}const U=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}],X=e=>Boolean(e?.includes(":")),G=(e,t)=>Boolean(e&&!X(e)&&(!t||"_self"===t)),W=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),J=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var Y=Object.freeze({__proto__:null,isURL:X,isLocalURL:G,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:W,joinPath:J});const q=e=>t=>{if(!t||X(t)||c.CDN&&t.startsWith(c.CDN))return t;const l=t.startsWith("/");return J(c.BASE_PATH,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},K=(e,t)=>K._impl(e,t);function Z(){return Z._impl()}function Q(e=!1){const t=Z();return a=>({...a,href:e?a.href:q(t)(a.href),"aria-label":a.text,onClick:K(l(a),a)});function l({href:l,target:a,onClick:n}){return r=>{n&&n(r),l&&!e&&G(l,a)&&(r?.preventDefault(),t.push(l))}}}K._impl=e=>e,K.setup=e=>{K._impl=e},Z._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Z.setup=e=>{Z._impl=e};const ee={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},te="bg-main-divider text-main-disabled",le={primary:te,secondary:te,white:te,link:"",transparent:"",gray:te,"":""},ae="text-center font-sans select-none",ne={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},re=x((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:n,version:r="primary"}=e;return p("div",{className:ie(e),children:[a?u("div",{className:ne[r],children:a}):null,se(e)?p("div",{children:[l?u("div",{className:"text-xs-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,n?u("div",{className:ne[r],children:n}):null]})})),ie=e=>{const{version:t,aboveText:l,rounded:a}=e;if("link"===t)return"";const n="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",se(e)?n:"h-12 w-12",a?"rounded-full":""].join(" ")},se=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),oe=({className:e,rounded:t,version:l})=>["inline-block",ae,l?le[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ce=({className:e,rounded:t,version:l})=>[ae,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",l?ee[l]:"",t?"rounded-full":"rounded-md",e].join(" "),de=x((({disabled:e,children:t,...l})=>{const a=Q()(l),n=t??u(re,{...a});return u(e?he:me,{...a,children:n})})),me=x((({className:e="",href:t,rel:l,target:a,ariaLabel:n,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:ce({className:e,version:r,rounded:i}),href:t,rel:l,target:a,"aria-label":n,role:t?"link":"button",onClick:s,children:o}))),he=x((({className:e,ariaLabel:t,version:l,rounded:a,children:n})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:oe({className:e,rounded:a,version:l}),children:n}))),ue=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),pe=x((({link:e})=>p(L,{size:"text-s-light",color:"text-secondary-text",children:[u(ue,{children:"Нажимая кнопку вы подтверждаете согласие с "}),e?u(de,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(ue,{children:e.text})}):null]}))),xe=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e;function ge(e){const t=s(null);return n((()=>{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 be={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},fe=x((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${l}`,title:n=a,iconVersion:r="color",asSVG:i,...s})=>{const o=Z(),d=q(o)(J(c.CDN,"/icons",`${l}.svg`));return i&&"normal"!==r?u(Ne,{className:e,children:p("svg",{className:b(ve(s.width),be[r],"white"===r?"invert":"",t),...s,"aria-hidden":"true",children:[n?u("title",{children:n}):null,a?u("desc",{children:a}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):(e.includes("h-")||(s.style={height:`${s.height}px`}),u("img",{className:e,src:d,alt:a,title:n,"aria-hidden":"true",...s}))})),ve=e=>e?"":"w-full h-full",Ne=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),ye=x((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=a(i[0]||{key:"",text:""}),[h,x]=a(!1),g=ge(r((()=>x(!1)),[]));return n((()=>{m(s||{key:"",text:""})}),[s]),p("div",{className:`${e}`,ref:g,children:[l?u("span",{className:"mb-2 flex text-primary-text",children:l}):null,p("div",{className:"relative "+(h?"z-20":"z-10"),children:[p("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${ke(t)}`,onClick:()=>x(!h),children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),u(fe,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(h?"":"rotate-180")})]}),i?.length?u("div",{className:`h-0 ${we(h)}`,children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Ce((e=>{m(e),x(!1),o(e)}),h,(e=>Boolean(e.key===d.key))))})}):null]})]})})),we=e=>e?"":"overflow-hidden",Ce=(e,t,l)=>(a,n)=>p("div",{onClick:()=>{e(a)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:a.text}),u(fe,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(a)&&t?"":"hidden"].join(" ")})]},String(n)),ke=e=>e?"border border-gray rounded-md hover:border-primary-hover":"",Se=x((({data:e,fieldLabel:t,fieldValue:l,selected:a,placeholder:n="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return u(ye,{options:s,label:i,placeholder:n||a,onChange:e=>r(e.key),value:o})})),Te=({acquiringType:e,regions:t,region:l,handleChange:a})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:U,fieldValue:"name",fieldLabel:"name",selected:e,setSelected:e=>a({acquiringType:e}),label:"Вид эквайринга",placeholder:"Выберите эквайринг"})}),u("div",{className:"w-1/2",children:u(Se,{data:t,fieldValue:"code",fieldLabel:"name",selected:l,setSelected:e=>a({region:e}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Ie=x((({checked:e,text:t,onClick:l})=>p("div",{role:"checkbox","aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-4",onClick:()=>l&&l(),children:[u("div",{className:"relative duration-300 w-9 h-5 mr-3 rounded rounded-2xl "+(e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:"absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded rounded-full "+(e?"left-[50%]":"left-[5%]")})}),u("div",{children:u(ue,{size:"text-m",font:"font-light",color:"text-primary-text",children:t})})]}))),$e=({"onlineСheckout":e,posTerminal:t,handleChange:l})=>p("div",{className:"mb-5",children:[u(Ie,{checked:e,text:"Хочу купить онлайн-кассу",onClick:()=>l({"onlineСheckout":!e})}),u(Ie,{checked:t,text:"Хочу купить POS-терминал",onClick:()=>l({posTerminal:!t})})]}),Be=(e,t)=>{const l=ce({className:"text-white",version:e?.version});return u("button",{type:"submit",className:`p-4 ${l} ${t}`,children:e?.text?e.text:"Отправить заявку"})},Re=({setFormState:e})=>({handleChange:r((t=>e((e=>({...e,...t})))),[])}),Ve=x((e=>{const{button:t,link:l,handleSubmit:r}=e,[i,s]=a({acquiringType:"",region:"",fullName:"",inn:"",name:"",phone:"","onlineСheckout":!1,posTerminal:!1}),{acquiringType:o,region:c,fullName:d,inn:m,name:h,phone:x,"onlineСheckout":g,posTerminal:b}=i,f=H(),{handleChange:v}=Re({setFormState:s}),N=xe(c,f);n((()=>{s((e=>({...e,acquiringType:U?.length&&U[0]?.name?U[0].name:""})))}),[]);return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Вид эквайринга=${o}/Онлайн касса=${g}/POS-терминал=${b}`;r&&await r({typeForm:"acqr",region:f.find((e=>e.code===N))?.name||"",partnerComments:t,fullName:d,inn:m,name:h,phone:x})},className:"container",children:[u(_,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Te({acquiringType:o,regions:f,region:N,handleChange:v}),u(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),je({fullName:d,inn:m,name:h,phone:x,handleChange:v}),$e({"onlineСheckout":g,posTerminal:b,handleChange:v}),Be(t,"mb-4"),u(pe,{link:l})]})})),je=({fullName:e,inn:t,name:l,phone:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>n({fullName:e})}),u(z,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:l,onChange:e=>n({name:e})})]}),p("div",{className:"w-1/2",children:[u(z,{className:"shrink-0 text-l w-full mb-5",type:"text",label:"ИНН","aria-label":"ИНН",value:t,onChange:e=>n({inn:e})}),u(z,{className:"shrink-0 text-l w-full",type:"text",label:"Телефон","aria-label":"Телефон",value:a,onChange:e=>n({phone:e})})]})]}),Me=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({region:"",name:"",phone:"",inn:"",mail:""}),{region:s,name:o,phone:c,inn:d,mail:m}=r,h=H(),{handleChange:x}=Re({setFormState:i}),g=xe(s,h);return p("form",{onSubmit:async e=>{e.preventDefault(),n&&await n({typeForm:"bcrd",region:h.find((e=>e.code===g))?.name||"",name:o,phone:c,inn:d,mail:m})},className:"container",children:[Le({regions:h,region:g,handleChange:x}),_e({name:o,phone:c,inn:d,mail:m,handleChange:x}),Be(t,"mb-4"),u(pe,{link:l})]})})),_e=({name:e,phone:t,mail:l,inn:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:e,onChange:e=>n({name:e})}),u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"ИНН",label:"ИНН",value:a,onChange:e=>n({inn:e})})]}),p("div",{className:"w-1/2",children:[u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Телефон",label:"Телефон",value:t,onChange:e=>n({phone:e})}),u(z,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:l,onChange:e=>n({mail:e})})]})]}),Le=({regions:e,region:t,handleChange:l})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:e=>l({region:e}),label:"Регион",placeholder:"Выберите регион"})})}),De=[];const ze=async e=>await E(e,{method:"GET"})||De,Oe=["От 50 000 ₽","До 3 000 000 ₽"],Ae=["От 1 года","До 5 лет"],Pe=({regions:e,region:t,branches:l,department:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:e=>n({region:e}),label:"Регион",placeholder:"Выберите регион"})}),u("div",{className:"w-1/2",children:u(Se,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:e=>n({department:e}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Ee=e=>new Intl.NumberFormat("ru-RU",{}).format(e),Fe=(e,t,l)=>Math.max(t,Math.min(e,l)),He=e=>e.split(/\s+/).join(""),Ue=x((({className:e,title:t,items:l=[],min:a=1,max:n=100,step:r=1,value:i=a,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(Fe(Number(He(e.target.value)),a,n))},d={backgroundSize:`${(100*(i-a)/(n-a)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("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:Ee(i),disabled:s,onChange:c,onBlur:c}),u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:a,max:n,step:r,value:i,disabled:s,onChange:c,style:d})})]}),Xe(l)]})}));function Xe(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Ge=e=>p("div",{className:"w-1/2",children:[u("label",{children:u(ue,{size:"text-m-light",children:e.label})}),u(Ue,{...e})]}),We=({amount:e,term:t,handleChange:l})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[Ge({label:"Сумма кредита, ₽",value:e,onChange:e=>l({amount:e}),min:5e4,max:3e6,items:Oe}),Ge({label:"Срок кредита, месяцев",value:t,onChange:e=>l({term:e}),min:1,max:60,items:Ae})]}),Je=({fullName:e,inn:t,name:l,phone:a,mail:n,annualRevenue:r,handleChange:i})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>i({fullName:e})}),u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"ИНН",label:"ИНН",value:t,onChange:e=>i({inn:e})}),u(z,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Телефон",label:"Телефон",value:a,onChange:e=>i({phone:e})})]}),p("div",{className:"w-1/2",children:[u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Годовая выручка, ₽",label:"Годовая выручка, ₽",value:r,onChange:e=>i({annualRevenue:e})}),u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:l,onChange:e=>i({name:e})}),u(z,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:n,onChange:e=>i({mail:e})})]})]}),Ye=x((e=>{const{button:t,link:l,handleSubmit:r}=e,[i,s]=a({amount:5e4,term:1,fullName:"",inn:"",name:"",phone:"",mail:"",region:"",department:"",annualRevenue:""}),{amount:o,term:c,fullName:d,inn:m,name:h,phone:x,mail:g,region:b,department:f,annualRevenue:v}=i,N=H(),{handleChange:y}=Re({setFormState:s}),w=xe(b,N),C=function(e){const{data:t}=A(e?`/api/v1/branches?regionCode=${e}`:null,ze);return t||De}(w).filter((e=>e.address));n((()=>{y({department:""})}),[i.region,y]);return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Сумма=${o}/Срок=${c}/Выручка=${v}`;r&&await r({typeForm:"cred",fullName:d,inn:m,name:h,phone:x,mail:g,region:N.find((e=>e.code===w))?.name||"",department:C.find((e=>e.branchCode===f))?.address||"",partnerComments:t})},className:"container",children:[u(_,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),We({amount:o,term:c,handleChange:y}),u(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Je({fullName:d,inn:m,name:h,phone:x,mail:g,annualRevenue:v,handleChange:y}),u(_,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),Pe({regions:N,region:w,branches:C,department:f,handleChange:y}),Be(t,"mb-4"),u(pe,{link:l})]})})),qe=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({name:"",phone:""}),{name:s,phone:o}=r,{handleChange:c}=Re({setFormState:i});return p("form",{onSubmit:async e=>{e.preventDefault(),n&&await n({typeForm:"dpst",name:s,phone:o})},className:"container",children:[u(_,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),Ke({name:r.name,phone:r.phone,handleChange:c}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(pe,{link:l})}),Be(t)]})]})})),Ke=({name:e,phone:t,handleChange:l})=>p("div",{className:"max-w-[560px] m-auto",children:[u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Имя",label:"Имя",value:e,onChange:e=>l({name:e})}),u(z,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Телефон",label:"Телефон",value:t,onChange:e=>l({phone:e})})]}),Ze=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Qe=x((({className:e="",image:t,imageClassName:l="",isMobile:a=!1,pathPrefix:n})=>{const r=Z();return p("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Ze).map((({src:e,format:l,media:a},i)=>u("source",{srcSet:tt(r,n)(e),type:lt(l),media:a?`(max-width: ${a}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?et({...t,src:tt(r,n)(t.src)},l,a):null]})})),et=(e,t="",l=!1)=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},n=e.title||"",r=e.alt||e.title,i=l?"m-auto":"m-0";return u("img",{src:e.src,className:`${i} ${t}`,alt:r,title:n,style:a,...e.size})},tt=(e,t)=>l=>l&&!X(l)?q(e)(J(t,l)):l,lt=e=>e?`image/${String(e)}`:void 0,at=x((({className:e="",image:t,imageClassName:l="",isMobile:a,pathPrefix:n,...r})=>t?.src||t?.icon?t.icon?u(fe,{className:e,imageClassName:l,iconVersion:t?.iconVersion||"normal",name:t.icon,...r}):u(Qe,{className:e,imageClassName:l,image:t,isMobile:a,pathPrefix:n}):null)),nt=x((({className:e,viewBox:t,fill:l="none",width:a,height:n,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:a,height:n,children:r.map((({d:e,fill:t,...l},a)=>u("path",{d:e,fill:t||"currentColor",...i,...l},a)))}))),rt=[{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"}],it=x((({className:e,text:t,checked:l,disabled:a,isRadio:n,onChange:r})=>u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",children:[u("input",{className:b("peer appearance-none w-5 h-5 border-solid cursor-pointer checked:border-primary-main m-0",n?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",l?"border-black":"border-gray",a?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l,disabled:a}),n?u("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):u(nt,{paths:rt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?u("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),st=({currencyControl:e,documentaryOperations:t,conversionOperations:l,text:a,handleChange:n})=>p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(it,{text:"Валютный контроль",checked:e,onChange:e=>n({currencyControl:e})}),u(it,{text:"Документарные операции",checked:t,onChange:e=>n({documentaryOperations:e})}),u(it,{text:"Конверсионные операции",checked:l,onChange:e=>n({conversionOperations:e})})]}),u("textarea",{placeholder:"Укажите интересующий Вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:a,onChange:e=>n({text:e.target.value})})]}),ot=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""}),{fullName:s,name:o,phone:c,mail:d,currencyControl:m,documentaryOperations:h,conversionOperations:x,text:g}=r,{handleChange:b}=Re({setFormState:i});return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Валютный контроль=${m}/Документарные операции=${h}/Конверсионные операции=${x}/Доп инф=${g}`;n&&await n({typeForm:"kved",fullName:s,name:o,phone:c,mail:d,partnerComments:t})},className:"container",children:[u(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),ct({fullName:s,name:o,phone:c,mail:d,handleChange:b}),u(_,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),st({currencyControl:m,documentaryOperations:h,conversionOperations:x,text:g,handleChange:b}),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Be(t,"mr-5"),u(pe,{link:l})]}),u(_,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(at,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(at,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),ct=({fullName:e,name:t,phone:l,mail:a,handleChange:n})=>p("div",{children:[p("div",{className:"flex justify-between gap-5 mb-5",children:[u("div",{className:"w-1/2",children:u(z,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>n({fullName:e})})}),u("div",{className:"w-1/2",children:u(z,{className:"shrink-0 text-l w-full",type:"text","aria-label":"ФИО",label:"ФИО",value:t,onChange:e=>n({name:e})})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(z,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Телефон",label:"Телефон",value:l,onChange:e=>n({phone:e})})}),u("div",{className:"w-1/2",children:u(z,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:a,onChange:e=>n({mail:e})})})]})]}),dt=x((({responceType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(at,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(_,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(ue,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),mt={credit:e=>u(Ye,{...e}),acquiring:e=>u(Ve,{...e}),"business-card":e=>u(Me,{...e}),deposit:e=>u(qe,{...e}),wed:e=>u(ot,{...e})},ht={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},ut=x((e=>{const{className:t="",title:l,typeForm:n="credit",button:i,link:s,...o}=e,[c,d]=a(""),m=r((async e=>{const t=await ht.send(e);return d(t?"OK":"Fail"),"OK"}),[]);return u(V,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:p("div",{className:"container max-w-[978px]",children:[l?u(_,{headingType:"h3",title:l,className:"text-center mb-8"}):null,mt[n]({button:i,link:s,handleSubmit:m}),c?u(dt,{responceType:c}):null]})})})),pt=x((({className:e="",title:t,benefitList:l,...a})=>p(V,{className:`p-12 flex flex-col items-center ${e}`,...a,children:[t?u(_,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(xt)}):null]}))),xt=(e,t)=>{const l=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(at,{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?u(at,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(_,{headingType:"h6",children:e.label}):null,gt(l)]})]},String(t))},gt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?ft(e):bt(e)}):null},bt=e=>e?.name||null,ft=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},vt=(e,{className:t="",buttonClassName:l,isVertical:a}={})=>e?.length&&e.some((e=>e?.text))?u("div",{className:b("flex",a?"flex-col gap-2":"gap-4",t),children:e.map(Nt(l))}):null,Nt=(e="")=>(t,l)=>{const{text:a,icon:n,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white";return a?u(de,{className:e,appendLeft:yt({...n,iconVersion:o}),appendRight:yt({...r,iconVersion:o}),version:i,text:a,...s},l?String(l):""):null},yt=e=>e?.icon||e?.src?u(at,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,wt={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"}},Ct={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"},kt=x((({className:e,title:t,description:l,headlineVersion:a="XL",align:n="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=wt[a];return p(V,{className:b("flex flex-col",i?"p-12":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(_,{className:b("whitespace-pre-wrap",n),...d?.title,as:r||d?.title.as,title:t}):null,l?u(L,{color:"group-data-secondary:text-white/80",size:d.descriptionSize,align:n,children:l}):null]})})),St=x((e=>{const{className:t="",title:l,description:a,bonusItems:n,...r}=e;return u(V,{className:`p-12 pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(kt,{className:"!p-0",title:l,description:a,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:n?.length?n.map(((e,t)=>u("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:p("div",{className:"flex justify-between w-full",children:[p("div",{className:"flex flex-col justify-between mr-4",children:[p("div",{children:[u("div",{className:"text-h4",children:e.title}),u("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),vt(e?.buttons)]}),e.bonusItemContent?.bonusType?Tt(e.bonusItemContent):null]})},String(t)))):null})]})})})),Tt=e=>u("div",{children:"count"===e.bonusType?It(e):$t(e)}),It=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),$t=e=>e.image?u(at,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Bt=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:a="4",subtitle:n,title:r,...i})=>p(V,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${l}`,...i,children:[u(kt,{className:"!p-0 mb-8",title:r,description:n,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${k[t]} ${Vt(a)}`,children:e.map(Rt)}):null]}))),Rt=({icon:e,title:t,description:l},a)=>p("div",{className:b("flex flex-col items-center text-h6",l||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(at,{image:e,height:"180",width:"auto",className:"w-auto"}):null,l?u("span",{children:l}):null]},String(a)),Vt=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},jt=x((e=>{const{title:t,image:l,cardItems:a,button:n}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(at,{className:"mb-5",image:l}):null,l?.icon?u(at,{image:l,asSVG:!0}):null]}):null,t?u(_,{headingType:"h4",title:t,className:"mb-6"}):null,a?.length?u("ul",{children:a.map(((e,t)=>Mt(e,String(t))))}):null,vt([n],{buttonClassName:"mt-6"})]})})),Mt=(e,t)=>{const{icon:l,text:a}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?u(at,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,l?.src?u(at,{image:l}):null,u("span",{className:"text-xl-light",children:a})]},t)},_t=x((({className:e="",title:t,cards:l,...a})=>p(V,{className:`p-12 pb-9 ${e}`,...a,children:[u(_,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>u(jt,{...e},String(t)))):null})]}))),Lt=x((({button:e,className:t,...l})=>u(V,{className:b("!bg-transparent",t),...l,children:vt([e])}))),Dt=e=>{const{itemCount:t,visibleItemCount:l}=e,[n,i]=a(0),s=r((()=>i((e=>Math.min(e+1,t-1)))),[t]),o=r((()=>i((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&n<t-(l||1),d=n>0;return[n,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const zt=x((({className:e,disabled:t,...l})=>u(de,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:u(at,{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})}))),Ot=x((e=>u(zt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),At=x((e=>u(zt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Pt({dec:e,inc:t,canDec:l,canInc:a,btnClass:n,className:r=""}){return l||a?p("div",{children:[l?u(zt,{className:`absolute z-50 ${n[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,a?u(zt,{className:`absolute z-50 rotate-180 ${n[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!a}):null]}):null}const Et=x((({title:e,value:t,postfix:l="",prefix:a,className:n=""})=>p("div",{className:b("mb-7",n),children:[e?u(ue,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(ue,{size:"text-h3",children:[a," ",Ee(Math.round(t))," ",l]})}:{children:u(ue,{size:"text-h3",children:"-"})})]}))),Ft=5e6,Ht=2485e3,Ut=Math.round(23.5),Xt={minSum:3e4,maxSum:Ft,minMonths:13,maxMonths:60,rate:0,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0},Gt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Wt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Jt={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Yt=x((({rate:e,title:t="Ставка",unit:l,depositeName:a,isShowDepositeName:n,rateBlockClassName:r})=>p("div",{children:[u(ue,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start",children:[u("span",{className:b("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(2)).replace(".",",")}),l?u("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]}),a&&n?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:a}):null]})]}))),qt=e=>e?u(L,{size:"text-s-light",color:"text-secondary-text",children:e}):null,Kt=1e3;function Zt(e,t,l){const{moneyValue:a,minSum:n,maxSum:r,step:i=Kt,isShowItems:s=!0}=t,o=[`От ${Ee(n)} ₽`,`До ${Ee(r)} ₽`];return u(Ue,{title:e,items:s?o:[],min:n,max:r,step:i,value:Fe(a,n,r),onChange:l})}function Qt(e){const{data:t}=A(`/wcms-resources/${e}.json`,F);return t}const el=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:a}=e,n=Qt(t||"bonus-calculator-data")||Gt,[r,i]=((e,t,l)=>{const{minSumTravel:a,minSumOther:n,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===a&&l===n)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),r)*(12-i)]})(n,l,a);return{...n,...e,monthBonus:r,yearBonus:i}},tl=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[i,s]=a(6e3),o=r((e=>s(e)),[]),[c,d]=a(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:f,maxSumOther:v,monthBonus:N,yearBonus:y}=el(h,t);return p("section",{className:b("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Zt("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),Zt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:f,maxSum:v,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:N>=0?u(Yt,{title:"Баллов за месяц",rate:N,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[y>=0?u(Et,{title:"Баллов за год",value:y}):null,vt(l,{className:"mt-7",isVertical:!0}),qt(n)]})]})}));function ll(e,t,l){const{minDays:a,maxDays:n,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(Ue,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(n)}`],min:a,max:n,step:1,value:Fe(r,a,n),onChange:l})}const al={horizontal:"gap-10",vertical:"flex-col gap-3"},nl=x((({items:e,checkedItem:t,onChange:l,orientation:a="horizontal"})=>u("div",{className:`flex ${al[a]}`,children:e?.map((({id:e,text:a})=>u(it,{isRadio:!0,text:a,checked:t===e,onChange:()=>l&&l(e)},String(e))))}))),rl="everyMonth",il="atEndTerm",sl=[{id:rl,text:"Ежемесячно"},{id:il,text:"В конце срока"}];function ol({isMonthlyInterestPayment:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(ue,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(nl,{orientation:a,items:sl,checkedItem:e?rl:il,onChange:e=>t&&t(e===rl)})})]})}const cl=x((({title:e="Ставка"})=>p("div",{children:[u(ue,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(at,{image:{icon:"PercentIcon"},width:"90",height:"85",asSVG:!0})}),u("div",{className:"w-[250px] mt-3.5",children:p(L,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),dl=e=>e,ml=(e=dl)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),hl=ml(),ul=(e=dl)=>ml((t=>-e(t))),pl=([e,t],l=[])=>({[e]:l.length?ul()(l.map((t=>t[e]))):0,[t]:l.length?ml()(l.map((e=>e[t]))):0}),xl=(e,[t,l],a)=>e>=a[t]&&e<=a[l],gl=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,bl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a,daysValue:n}=t;return l?Math.round(a*Math.pow((1200+e)/1200,n/30)-a):Math.round(a*e*n/365/100)},fl=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=a(1e5),d=r((e=>c(e)),[]),[m,h]=a(90),x=r((e=>h(e)),[]),[g,b]=a(!1),f=r((e=>b(e)),[]),[v,N]=a(!1),y=r((e=>N(e)),[]),[w,C]=a(!1),k=r((e=>C(e)),[]),[S,T]=a(!1),I=r((e=>T(e)),[]),$=((e,t)=>{const{daysValue:l,moneyValue:a,isPartialWithdrawal:n,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=Qt(t||"business-calculator-data"),c=r||n,d=l<90||l>730;if(l<=30)return{...Jt,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&gl(c,e)&&xl(a,["minSum","maxSum"],e)&&xl(l,["minDays","maxDays"],e)))||Jt,{rate:h}=m,u=bl(h,e),p=a+u,x=o?.rows||[Jt];return{...m,...pl(["minSum","maxSum"],x),...pl(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:B,finalSum:R,rate:V,depositeName:j,isShowUnknownRate:M}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[Zt("Сумма вклада, ₽",$,d),ll("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[vl({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),ol({isMonthlyInterestPayment:S,callback:I,title:"Выплата процентов",orientation:"vertical"})]})]}),M?u(cl,{}):u(Yt,{rate:V,depositeName:j,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Et,{title:"Доход по вкладу",value:B,postfix:"₽",prefix:"+"}),u(Et,{title:"Сумма в конце срока",value:R,postfix:"₽"}),vt(l,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:qt(n)})]})]}),u("div",{className:"mt-5",children:qt(i)})]})})),vl=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:l,isSmallBusiness:a,handleIsReplenished:n,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(it,{text:"Пополнение",disabled:e,checked:t,onChange:n}),u(it,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:l,onChange:r}),u(it,{className:"mt-3",text:"Являюсь малым предприятием",checked:a,onChange:i})]});function Nl(e,t,l){const{minMonths:a,maxMonths:n,monthsValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return u(Ue,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(n)}`],min:a,max:n,step:1,value:Fe(r,a,n),onChange:l})}const yl="annuity",wl="differential",Cl=[{id:yl,text:"Аннуитетный"},{id:wl,text:"Дифференцированный"}];function kl({isAnnuity:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(ue,{color:"text-secondary-text",font:"font-light",children:l})}):null,u(nl,{orientation:a,items:Cl,checkedItem:e?yl:wl,onChange:e=>t&&t(e===yl)})]})}const Sl=(e,t)=>{const{isInsurance:l,isSalaryClient:a,isStateEmployee:n,moneyValue:r,monthsValue:i}=e,s=Qt(t||"credit-calculator-data"),o=s?.rows?.find((e=>l===e.isInsurance&&a===e.isSalaryClient&&n===e.isStateEmployee&&xl(r,["minSum","maxSum"],e)&&xl(i,["minMonths","maxMonths"],e)))||Xt,{rate:c}=o,d=((e,t)=>{const{isAnnuity:l,moneyValue:a,monthsValue:n}=t;if(0===e)return 0;if(l){const t=e/1200;return a*(t+t/(Math.pow(1+t,n)-1))}return Math.round(a/n)+a*(e/1200)})(c,e),m=s?.rows||[Xt];return{...o,...pl(["minSum","maxSum"],m),...pl(["minMonths","maxMonths"],m),...e,monthlyPayment:d}},Tl=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n})=>{const[i,s]=a(!1),[o,c]=a(!0),[d,m]=a(!1),[h,x]=a(!1),[g,f]=a(Ht),v=r((e=>f(e)),[]),[N,y]=a(Ut),w=r((e=>y(e)),[]),C=Sl({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:h,moneyValue:g,monthsValue:N},t);return p("section",{className:b("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Zt("Сумма кредита, ₽",{...C,step:500},v),Nl("Срок кредита, месяцев",C,w),p("div",{className:"mt-7",children:[u(it,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),u(it,{className:"mt-3",text:"Работаю в бюджетной организации",checked:h,onChange:x}),u(it,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),u(Yt,{title:"Ставка",rate:C.rate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Et,{title:"Ежемесячный платеж",value:C.monthlyPayment,postfix:"₽"}),kl({isAnnuity:i,orientation:"vertical",callback:s}),vt(l,{className:"mt-7",isVertical:!0}),qt(n)]})]})})),Il="remote",$l="office",Bl=[{id:$l,text:"Офис Банка"},{id:Il,text:"Дистанционно"}];function Rl({isRemoteRegistration:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(ue,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(nl,{orientation:a,items:Bl,checkedItem:e?Il:$l,onChange:e=>t&&t(e===Il)})})]})}const Vl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a,monthsValue:n}=t;return l?Math.round(a*Math.pow((1200+e)/1200,n)-a):Math.round(a*e*30*n/365/100)},jl={CreditCalculatorForm:Tl,DepositCalculatorForm:x((({className:e="",sourceBookDir:t,buttons:l,footnote:n})=>{const[i,s]=a(Ht),o=r((e=>s(e)),[]),[c,d]=a(Ut),[m,h]=a(!1),x=r((e=>h(e)),[]),[g,f]=a(!1),v=r((e=>f(e)),[]),N={moneyValue:i,monthsValue:c,isMonthlyInterestPayment:m,isRemoteRegistration:g},y=r((e=>d(e)),[]),w=((e,t)=>{const{isMonthlyInterestPayment:l,isRemoteRegistration:a,moneyValue:n,monthsValue:r}=e,i=Qt(t||"deposit-calculator-data"),s=i?.rows?.find((e=>l===e.isMonthlyInterestPayment&&a===e.isRemoteRegistration&&xl(n,["minSum","maxSum"],e)&&xl(r,["minMonths","maxMonths"],e)))||Wt,{rate:o}=s,c=Vl(o,e),d=n+c,m=i?.rows||[Wt];return{...s,...pl(["minSum","maxSum"],m),...pl(["minMonths","maxMonths"],m),...e,income:c,finalSum:d}})(N,t),{income:C,finalSum:k,rate:S}=w;return p("section",{className:b("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Zt("Сумма вклада, ₽",{...w},o),Nl("Срок вклада, месяцев",{...w},y),p("div",{className:"mt-7 flex flex-col gap-y-7",children:[ol({isMonthlyInterestPayment:m,callback:x,title:"Выплата процентов"}),Rl({isRemoteRegistration:g,callback:v,title:"Оформление"})]})]}),u(Yt,{rate:S,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Et,{title:"Доход по вкладу",value:C,postfix:"₽",prefix:"+"}),u(Et,{title:"Сумма в конце срока",value:k,postfix:"₽"}),vt(l,{className:"mt-7",isVertical:!0}),qt(n)]})]})})),BusinessDepositCalculatorForm:fl,BonusCalculatorForm:tl},Ml=(e,t)=>{const l=e?.calcType;if(!l||!(l in jl))return null;const a=jl[l];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(_,{className:"text-center mb-6",title:e.title}):null,u(a,{...e})]})},String(t))},_l=x((({className:e="",calculatorTabs:t=[],...l})=>{const n=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=a(0),c=r((e=>o(e)),[]),[d,m]=Dt({itemCount:t?.length,visibleItemCount:3});return p(V,{className:`box-border overflow-hidden relative w-100 ${e}`,...l,children:[p("div",{className:"bg-white",children:[n.length>1?Ll({activeIndex:d,tabsNav:n,slideIndexShift:s,onClick:c}):null,Pt({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Ml):null})]})}));function Ll({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:a}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:a}){const n=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",r=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 p("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${n}`,children:[u(at,{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}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>a(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const Dl=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,zl=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Ol=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Al=x((({className:e="",onChange:t,minValue:l=0,maxValue:a=3e5,...n})=>{const i=r((e=>{if(!t)return;const n=Dl(zl(Ol(He(e))));const r=Pl(n,Fe(Number(n),l,a));t(String(r))}),[t]),s=r((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(He(l))).replace(",",".")))}),[t]);return u(z,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...n,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Pl=(e,t)=>Number(e)===t?e:String(t),El=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:n="1500",button:i,...s})=>{const[o,c]=a(""),d=r((e=>c(e)),[]),m=!Number(He(o)),h=m?oe({version:i?.version}):ce({className:"text-white",version:i?.version}),x=Q();return p(V,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?u(_,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(Al,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:n,label:l}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),Fl=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Hl=x((({className:e="",style:t,idx:l,activeIndex:a,observerOptions:n,children:i,onIntersection:s})=>{const o=I(r((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),n);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===a),ref:o,children:i})})),Ul=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Xl=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:a=0,gap:n=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),f=r(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(Wl(l))}),[h,p]),v=a>0?n*Number(a)-1:0,N="vertical-list"===o,y="horizontal-list"===o,w={...y?Gl(i,v):{},...N?Fl(d):{},gap:`${n}px`};return u("div",{className:b("box-border overflow-auto no-scrollbar",o,e),style:w,ref:t,children:(C=(e,t)=>u(Hl,{className:b(c,a?Ul[a-1]:"",N?"h-full":""),style:y?Gl(i/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(m)});var C})),Gl=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Wl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Jl=e=>t=>e.scrollWidth/t,Yl=e=>(t,l)=>{e.scrollBy({left:l*Jl(e)(t),behavior:"smooth"})},ql=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const n=s(null),[i,o]=a([]),c=r((e=>{o((t=>{return(l=t)===(a=e)||Boolean(l&&a&&l?.length===a?.length&&l.every(((e,t)=>e===a[t])))?t:e;var l,a})),l&&l(e)}),[e]),[d,m]=i.length?[ul()(i),ml()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var l;n.current&&(t&&!h?(l=n.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):Yl(n.current)(e,-1))}),[t,e,h]),x=r((()=>{n.current&&(t&&!u?n.current.scrollTo({left:0,behavior:"smooth"}):Yl(n.current)(e,1))}),[e,t,u]);return[n,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Kl="absolute top-[calc(50%-24px)] z-50",Zl="absolute top-0 bottom-0 z-50 w-[84px] pointer-events-none",Ql=x((({scroll:e,arrowsPadded:t,isBlur:l,onScrollLeft:a,onScrollRight:n,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,f=r((()=>{i?(c&&s!==o-1&&m(),a()):m()}),[m,a,i,c,s,o]),v=r((()=>{i?(d&&0!==s&&h(),n()):h()}),[h,n,i,c,s,o]);return p("div",{children:[ea(l,e),x?u(Ot,{className:b(Kl,t?"left-8":"left-0"),onClick:f}):null,g?u(At,{className:b(Kl,t?"right-8":"right-0"),onClick:v}):null]})})),ea=(e,t)=>(t.canScrollLeft||t.canScrollRight)&&e?p("div",{children:[u("div",{className:b(Zl,"left-0 bg-opacity-from-white")}),u("div",{className:b(Zl,"right-0 bg-opacity-to-white")})]}):null,ta=x((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,options:c,...d})=>{const{blocks:m}=d.block||{},h=t||m?.length||0,[x,g]=a(Math.floor((l||0)/2)),f=r((()=>g((e=>e+1))),[]),v=r((()=>g((e=>e-1))),[]),[N,y]=ql({itemCount:h,isCyclic:i}),w=m&&"CarouselBankHistoryCard"===m[0]?.type;return u(V,{className:b(la(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...d,children:p("div",{className:"relative max-w-full",children:[u(Xl,{containerRef:N,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:C(w?{...d,options:{...c,extraProps:{blocksLength:m?.length,activeIndex:x}}}:{...d,options:c})}),u(Ql,{scroll:y,isBlur:n,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:w,activeIndex:x,itemCount:h})]})})}));ta.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselInvestmentCard","CarouselEventCard"];const la=e=>e?"p-12":"",aa=x((({title:e,description:t,blocksLength:l=0,activeIndex:a,options:n})=>{const r=Number(n?.key?.split("-").slice(-1)[0])||0;return u(V,{className:"flex h-[485px]",children:u("div",r===a?{className:"relative flex items-center w-full",children:u(kt,{headlineVersion:"S",title:e,description:t,align:"text-left",className:b("absolute z-10 h-[385px] w-[440px] text-white shadow-dark-blue",ia(r,l),na(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:b("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",na(r)),children:u("span",{className:ra(r),children:e})})})})})),na=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},ra=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},ia=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",sa="absolute border border-solid border-gray w-full h-full",oa={normal:"min-w-[970px]",small:"min-w-[355px]"},ca=x((({className:e="",button:t,description:l,title:a,carouselVersion:n="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${oa[n]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${sa} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${sa} z-10 top-6 right-8 bg-green`}),u("div",{className:`${sa} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(kt,{className:"!p-0",title:a,description:l,headlineVersion:"L",align:"text-left",version:r}),vt([t],{className:"mt-14"})]})]})}))),da={black:"bg-black",white:"bg-white"},ma=x((({className:e="",title:t,description:l,image:a,price:n,button:r,colors:i,...s})=>p(V,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[a?.src?u(at,{className:"mb-5 flex justify-center",image:a}):null,t?u(_,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?u("div",{className:"mb-4",children:u(L,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?p("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(ue,{children:"Доступные цвета: "})}),i.map(ha)]}):null,n?p(ue,{size:"text-h3",align:"text-left",children:[n," ₽"]}):null,vt([r],{buttonClassName:"mt-5 w-full"})]}))),ha=(e,t)=>u("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${da[e]}`},String(t)),ua=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),pa=x((({className:e="",icon:t,title:l,description:a,href:n,target:r,...i})=>u(V,{className:b("flex flex-col w-[365px]",e),...i,children:p("a",{href:n,target:r,role:"link",children:[t?.icon?u(at,{image:ua(t),asSVG:!0}):null,t?.src?u(at,{image:t}):null,l?u(_,{headingType:"h6",as:"h4",className:"text-left mb-2",title:l}):null,a?u("div",{className:"mb-4",children:u(ue,{font:"font-light",size:"text-s",color:"text-secondary-text",children:a})}):null]})}))),xa=x((({className:e="",title:t="",buttons:l,image:a,children:n})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:n}),l?u("div",{className:"mt-auto pt-8",children:l}):null]}),a]})]}))),ga={1:"flex-col",2:"gap-x-10 flex-wrap"},ba=x((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:a=1,description:n,image:r,title:i,...s})=>{const o=i?u(_,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?u(at,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return u(V,{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:p(xa,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[n?u("div",{className:"w-1/3",children:u(ue,{size:"text-h6",children:n})}):null,e?u(ue,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?u("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${ga[a]}`,children:fa(t,a)}):null]})})})),fa=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(ue,{size:(a=t,1===a?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(ue,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var a})),va="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Na=x((({text:e,href:t="",target:l="",className:a=""})=>{const n=Q()({href:t,target:l});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${a}`,children:[p("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",...n,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(at,{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})})]}),u("div",{className:`${va} mx-1.5 mt-1.5`}),u("div",{className:`${va} mt-3 mr-3`})]}):null})),ya=x((({className:e="",additionalDescription:t,description:l,links:a,title:n,...r})=>p(V,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(kt,{isPadding:!1,title:n,description:l,as:"h1",align:"text-left"}),t?u("div",{className:"pt-6",children:u(L,{children:t})}):null]}),a?.length?wa(a):null]}))),wa=e=>{const t=Math.ceil(e.length/10);return u(ta,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>u("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(10*l,10*(l+1)).map(((e,t)=>u(Na,{className:"m-1",...e},String(t))))},String(l))))})},Ca={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"},ka=x((({className:e="",isDotted:t=!0,children:l,size:a="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${Ca[a]}`})}):null,u("span",{children:l})]}))),Sa={S:"text-l-light",M:"text-h6",L:"text-h5"},Ta={S:"ml-2",M:"ml-3",L:"ml-4"},Ia=x((({className:e="",hasIndent:t,isDotted:l,itemClassName:a="",items:n,listItemSize:r="M"})=>n?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${Sa[r]} ${t?Ta[r]:""} ${e}`,role:"list",children:n.map(((e,t)=>u(ka,{className:a,isDotted:l,size:r,children:e},String(t))))}):null)),$a=x((({className:e="",title:t,headlineSmallVersion:l="H6",description:a,additionalDescription:n,icon:r,items:i=[],button:s={},version:o="primary",isDotted:c=!0,align:d="text-center",...m})=>p(V,{className:b("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),version:o,...m,children:[p("div",{className:"flex flex-col h-full",children:[Ba(r),Ra(l,t),Va(a,t),Ma(i,c,o),ja(n)]}),vt([s],{buttonClassName:"mt-6 w-full"})]}))),Ba=e=>p("div",{className:"flex justify-center",children:[e?.src?u(at,{className:"mb-5",image:e}):null,e?.icon?u(at,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e,asSVG:!0}):null]}),Ra=(e,t)=>t?u(ue,{size:Ct[e],children:t}):null,Va=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(L,{size:"text-l",children:e})}):null,ja=e=>e?u("div",{className:"mt-auto",children:u(ue,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Ma=(e,t,l="primary")=>e?.length?u(Ia,{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,_a=x((({className:e="",title:t,icon:l,list:a=[],href:n,target:r,...i})=>{const s=Q()({href:n,target:r});return p(V,{tag:n?"a":"section",className:b("border border-gray flex min-w-[536px]",e),extraProps:s,...i,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?u(at,{image:ua(l),asSVG:!0}):null,l?.src?u(at,{image:l}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(_,{className:" mb-3.5",headingType:"h5",title:t}):null,a.length?u("div",{className:"flex flex-col gap-3",children:a?.map(La)}):null]})]})})),La=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Da=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],za={default:"w-14 h-14",small:"w-12 h-12"},Oa=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${za[t]}`,Aa=x((({iconVersion:e="color",buttonSize:t="default",rounded:l=!1,icon:a,...n})=>{const{href:r,version:i,text:s,appendLeft:o,appendRight:c,aboveText:d}=n,{iconMapped:m,label:h}=Da.find((({origins:e})=>e.some((e=>r?.includes(e)))))||{},p=a??m,x=p?{...ua(p),iconVersion:e}:void 0;return u(de,{className:b(l?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",Oa(s,t)),aboveText:d,appendLeft:o,appendRight:c,"aria-label":h,rel:"noopener noreferrer",target:"_blank",text:s,version:i,...n,children:x&&!s?u(at,{image:x,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),Pa=x((({className:e="",media:t,children:l,buttonSize:a})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(Aa,{aboveText:e.aboveText,appendLeft:e.appendLeft,appendRight:e.appendRight,buttonSize:a,text:e.text,version:e.version,...e},String(t))))}),u(ue,{size:"text-s-light",color:"text-secondary-text",children:l})]}))),Ea=e=>e.length?"w-1/2 flex-1 justify-center":"w-full justify-end",Fa=x((({className:e="",description:t,href:l,icon:a,items:n=[],socialMedia:r=[],target:i,title:s,version:o="primary",...c})=>{const d=Q()({href:l,target:i}),m=l?"a":"section";return p(V,{className:b("relative p-12 min-w-[524px] h-full flex flex-col box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),extraProps:d,tag:m,version:o,...c,children:[u("div",{className:"self-center",children:s?u(_,{headingType:"h3",as:"h3",className:"mb-8",title:s}):null}),u("div",{className:"mb-5",children:t?u(L,{size:"text-xl",font:"font-light",color:"group-data-gray:text-secondary-text",children:t}):null}),p("div",{className:"flex align-center w-full",children:[p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[n.length?u(Ia,{className:"text-xl-light flex flex-col gap-2 pb-16 mb-3",items:n}):null,r.length?u(Pa,{className:"pb-0",media:r}):null]}),Ha(a,n)]})]})})),Ha=(e,t)=>p("div",{className:b("flex",Ea(t)),children:[e?.icon?u(at,{image:ua(e),asSVG:!0}):null,e?.src?u(at,{image:e}):null]}),Ua=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:n,renderFoldButton:i})=>{const[s,o]=a(l),c=r((()=>{o((e=>!e))}),[]),d=n({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Xa=x((({className:e="",isUnfolded:t,children:l})=>{const a=s(null);return n((()=>{a.current&&(a.current.style.maxHeight=t?`${a.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:a,className:`transition-max-h duration-300 overflow-hidden ${a.current||!t?"max-h-0":""} ${e}`,children:l})})),Ga=x((({className:e="",title:t,icon:l,isHighlighting:a,button:n,cardCells:r=[],...i})=>{const s=r.map(qa),o=s.slice(0,1),c=s.slice(1);return p(V,{className:b("relative border border-gray min-w-[322px] p-8 flex flex-col",Ja(a),e),...i,children:[a?Ka():null,Wa(l),t?u(_,{className:"text-center pt-2",headingType:"h5",title:t}):null,n?u(de,{className:"w-full mt-4",...n}):null,r.length?u(Ua,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(Xa,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Ya:null}):null]})})),Wa=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(at,{image:e}):null,e?.icon?u(at,{image:ua(e),asSVG:!0}):null]}),Ja=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-7",Ya=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(fe,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),qa=(e,t)=>p("div",{className:"py-5 border-b border-main-divider",children:[e?.title?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),Ka=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(fe,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),u(L,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Za="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Qa="border-gray border-solid border",en="border-main-divider border border-t-0 border-x-0",tn="w-[200px] mr-6",ln=x((({icon:e,image:t,title:l,link:a})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Qa} ${Za}`,role:"columnheader",children:[e&&!t?.src&&u(at,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:ua(e),width:"63",height:"63",asSVG:!0}),t?.src&&u(at,{className:"mb-[18px]",image:t}),l?u(_,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,a?.text&&u("div",{className:"mt-auto w-full",children:u(de,{href:a.href,target:a.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:a.text})})})]}))),an={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},nn=x((({children:e,activeIndex:t,columnWidth:l,version:a="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:an[a],style:{transform:`translateX(-${t*l}px)`},children:e})}))),rn=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),sn=x((({colHeaders:e,activeIndex:t})=>p(rn,{children:[u("div",{className:tn,role:"columnheader"}),u(nn,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(ln,{...e},String(t))))})]}))),on=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:a})=>u("div",{className:`w-80 box-border flex flex-col ${Qa} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${a?Za:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${en} ${a&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>mn(e,t,a)))})}))),cn=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),dn=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),mn=({label:e,description:t},l,a)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:cn(a),children:e}):null,t?u("div",{className:dn(a),children:t}):null]},String(l)),hn=(e=!1)=>`text-s py-7 ${en} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,un=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:a,isFirstRow:n,isLastRow:r})=>p(rn,{children:[e?.title?u("div",{className:hn(r),children:e.title}):null,t?.length?u(nn,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(on,{cell:e,isFirstRow:n,isLastRow:r,isFillGradient:a&&0===t},String(t))))}):null]}))),pn=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:a})=>{const{isScrollAvailable:n}=a;return p("div",{className:"relative",children:[e.map(((e,a,{length:n})=>u(un,{row:e,isFirstRow:0===a,isLastRow:a+1===n,activeIndex:l,isColoredFirstColumn:t},String(a)))),n?Pt({...a,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),xn=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:a,isColoredFirstColumn:n})=>{const r=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:a),[o,c]=Dt({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(sn,{colHeaders:r,activeIndex:o}):null,s?.length?u(pn,{rowData:s,isColoredFirstColumn:n,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),gn=x((({className:e="",title:t,rowHeaders:l,columns:n,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=a(!i),m=r((()=>d((e=>!e))),[]);return p(V,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[u(_,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(xn,{columns:n,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?bn({isShowAllRow:c,onClick:m}):null]})})),bn=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:tn}),u("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:u("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),fn=x((({className:e="",contacts:t,info:l,version:a="secondary",...n})=>p(V,{className:`flex p-12 ${e}`,version:a,...n,children:[l?.length?vn(l):null,t?.length?vn(t):null]}))),vn=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>Nn({column:e,index:t})))}),Nn=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:a},n)=>p("div",{className:"mt-6 first:mt-0",children:[u(kt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?u("div",{className:"mt-1.5 opacity-80",children:u(L,{size:"text-m",font:"font-light",children:l})}):null,a?u(de,{className:"mt-6",...a}):null]},String(n))))},`col-${String(t)}`):null,yn=e=>"Image"===e?.errorContentType&&e?.image?u(at,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,wn=x((({className:e="",title:t,subtitle:l,error:a,button:n,...r})=>{return p(V,{className:b("flex flex-col justify-center items-center",(i=n?.text,i?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),version:"transparent",...r,children:[u("div",{className:"flex justify-center py-20",children:yn(a)}),t?u(_,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?u("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,n?.text?u(de,{className:"py-4 px-9",version:n?.version,...n,children:n.text}):null]});var i}));var Cn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Cn||(Cn={}));const kn=new Intl.NumberFormat("ru",{style:"currency",currency:Cn.RUB}),Sn=e=>e?kn.format(e):"",Tn="text-left text-m-light text-secondary-text",In=`${Tn} pl-11`,$n={USD:"DollarIcon",EUR:"EuroIcon"},Bn=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:Tn,children:"Валюта"}),u("th",{className:In,children:"Купить"}),u("th",{className:In,children:"Продать"})]})}),u("tbody",{children:t.map(Rn)})]}))),Rn=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(at,{image:{icon:$n[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:Sn(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:Sn(e?.buyExchangeRate)})]},t)},Vn=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(at,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),jn=(e,t,l)=>{const a=Number(Mn(e))*Math.pow(t,l?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(a)},Mn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),_n=e=>{return(t=[[e=>e.value!==Cn.RUB&&e.oppositeValue!==Cn.RUB,()=>e.handleConvert(e.value,Cn.RUB)],[e=>e.value===Cn.RUB&&e.oppositeValue===Cn.RUB,()=>e.handleConvert(e.value,Cn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Ln(e){const{placeholder:t,rates:l,selected:a,value:n,setValue:r,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:a,text:a};return p("div",{className:"relative flex",children:[u(z,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:n,onChange:r}),s.length?u(ye,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Dn=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:n})=>{const[i,s]=a({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Cn.RUB,selectBuy:l?.[0]?.currency?.currency||Cn.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Ln({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:zn(i,o,l),value:i.inputSell,setValue:e=>An(o,l)(e,i.selectSell,i.selectBuy)}),Ln({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:On(i,o,t),value:i.inputBuy,setValue:e=>Pn(o,t)(e,i.selectBuy,i.selectSell)}),n?.text?u(de,{className:"py-4 mr-1",version:n?.version,...n,children:n.text}):null]})})),zn=(e,t,l)=>a=>{t({selectSell:a}),_n({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,n=e.selectBuy)=>{An(t,l)(e.inputSell,a,n)}})},On=(e,t,l)=>a=>{t({selectBuy:a}),_n({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,n=e.selectSell)=>Pn(t,l)(e.inputBuy,a,n)})},An=(e,t)=>(l,a,n)=>{e({inputSell:Mn(l),selectBuy:n});const r=t.find((e=>e.currency?.currency===n))?.buyExchangeRate||t.find((e=>e.currency?.currency===a))?.saleExchangeRate;r&&e({inputBuy:String(jn(l,r,a===Cn.RUB)||"")})},Pn=(e,t)=>(l,a,n)=>{e({inputBuy:Mn(l),selectSell:n});const r=t.find((e=>e.currency?.currency===n))?.saleExchangeRate||t.find((e=>e.currency?.currency===a))?.buyExchangeRate;r&&e({inputSell:String(jn(l,r,a===Cn.RUB)||"")})};const En=async e=>{const t=await Fn(),l=t?.code||"000";return{region:t,exchangeRates:await Hn(e,l)}},Fn=async()=>{try{return await F("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Hn=async(e,t)=>{try{return await F(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Un=x((({className:e="",title:t="Курсы обмена валют",button:l,...a})=>{const{exchangeRates:n}=function(){const{data:e}=A("/api/v1/exchangerates",En);return e||{}}(),r=Xn(n?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Cn.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Cn.RUB}}),u(V,{className:`p-9 box-border min-h-80 ${e}`,...a,children:u(xa,{title:u(_,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:p("div",{className:"flex",children:[p("div",{className:"mr-14 pt-4",children:[r?u(Bn,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(Vn,{address:n?.address})]}),r.length&&i.length&&s.length?u(Dn,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Xn=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function Gn(e,t={}){const{data:l}=A(`/wcms-resources/${e}.json`,F,{fallback:t});return l||{}}function Wn(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const Jn=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:a,s2Matches:n}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),a=new Array(e.length),n=new Array(t.length);let r=0;for(let i=0;i<e.length;i++){const s=Math.max(0,i-l),o=Math.min(i+l,t.length-1);for(let l=s;l<=o;l++)a[i]||n[l]||e[i]!==t[l]||(r++,a[i]=!0,n[l]=!0)}return{m:r,s1Matches:a,s2Matches:n}}(e,t);if(0===l)return 0;const r=function(e,t,{s1Matches:l,s2Matches:a}){let n=0;for(let r=0,i=0;r<e.length;r++){if(!l[r])continue;let s=i;for(;s<t.length;s++)if(a[s]){i=s+1;break}e[r]!==t[s]&&n++}return n}(e,t,{s1Matches:a,s2Matches:n}),i=(l/e.length+l/t.length+(l-r/2)/l)/3,s=i>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return i+s*(1-i)};const Yn=(e,t)=>(l,a)=>{for(const[n,r]of a)l.set(n,e(l.get(n)||t,r));return l},qn=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Kn=e=>t=>e.map((([e,l])=>[Jn(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>Qn(t,e))).reduce(Yn(Math.max,0),new Map),Zn=e=>t=>{return Wn(t,t.map((({title:e})=>e)).map((e=>t=>{const l=qn(t||"");return l.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>hl(l.map(Jn(e)))))):0})(e))).sort((a=([,e])=>e,l=(e,t)=>a(e)-a(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,a},Qn=(e,t)=>new Map(e.map((e=>[e,t]))),er=(e=["/"])=>{const[t,l]=a(""),[s,o]=a(!1),c=r((()=>{o(!0)}),[]),d=i((()=>e.map((e=>s?e:null))),[s,...e]),{data:m}=A(d,tr),[h,u]=a(null);return n((()=>{const e=setTimeout((()=>{m&&u(m.map((e=>t=>{const{corpus:l,dictionary:a}=t||{};if(!(e&&l?.length&&a&&Object.keys(a).length))return[];const n=qn(e);if(!n.length)return[];const r=Object.entries(a),i=[...n.map(Kn(r)).reduce(Yn(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*n.length)).map((([e])=>l[e]));return Zn(n)(i)})(t)))}),300);return()=>{clearTimeout(e)}}),[m,t]),[h,{value:t,onChange:l,onFocus:c}]},tr=async(...e)=>(await Promise.allSettled(e.map((e=>E(J(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),lr={"bg-white":"color",transparent:"white"},ar={"bg-white":"text-primary-main",transparent:"text-white"},nr=(e,t,l)=>u(at,t?.src?{image:t,className:ar[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:lr[e]},className:ar[e],width:l?.width,height:l?.height,asSVG:!0}),rr={"bg-white":"text-primary-text",transparent:"text-white"},ir=(e,t,l)=>u("span",{className:`${rr[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),sr=x((({className:e="",href:t,logo:l,children:a=l?.title,targetBlank:n,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:n?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[nr(r,l?.image,{width:"40",height:"45"}),i?ir(a||l?.title,r):null]}))),or=x((({className:e,isMobile:t,value:l,onChange:a,onFocus:n})=>{const r=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return p("form",{className:`font-sans relative ${e}`,children:[p("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[u("div",{className:t?"w-5 h-5":"w-6 h-6",children:u(at,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),l?null:u("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${r}`,children:"Поиск по сайту"})]}),u("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=>a&&a(e.target.value||""),onFocus:n,type:"text",name:"search-bar-input",placeholder:s}),t?u("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(),a&&a("")},children:u(at,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):u(de,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:u("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),cr=x((e=>u(or,{...e}))),dr=x((({className:e="",items:t,hasButton:l})=>p("div",{className:e,children:[t?.length?t.map(mr):null,l?u(de,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),mr=(e,t)=>{const{type:l,text:a,description:n}=e;return p("div",{className:"mb-4",children:[u("div",{children:hr(l,a)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:n})]},String(t))},hr=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ur(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},ur=e=>e.replaceAll(/\D/g,""),pr=x((({className:e="",index:t,text:l,...a})=>{const n=Q(),{href:r,target:i,onClick:s}=n(a);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:l||`Документ ${t}`})})),xr=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(pr,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),gr=x((({className:e="",sitemap:t})=>{const l=Q(!0);return u("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:t?.topItems?.map(((e,t)=>br(l(e),t)))})})),br=(e,t)=>{const{text:l,items:a,href:n,target:r,onClick:i}=e;return p("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[u("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:n,target:r||"_self",onClick:i,children:l||`Раздел ${t}`}),a?.map(((e,t)=>u(fr,{...e,basePath:n,index:t},String(t))))]},String(t))},fr=x((({text:e,index:t,basePath:l,...a})=>{const n=!(!c.BASE_PATH||!l)&&!c.BASE_PATH.startsWith(l),r=Q(n),{href:i,target:s,onClick:o}=r(a);return u("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:n?J(l,i):i,target:s||"_self",onClick:o,children:e||`Раздел ${t}`})})),vr=x((({className:e="",index:t,...l})=>{const a=Q(),{href:n,target:r,text:i,onClick:s}=a(l);return u("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:n,target:r,onClick:s,children:i||`Документ ${t}`})})),Nr=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u(vr,{index:t,...e},String(t))))}):null]}))),yr="w-[204px]",wr=x((({className:e="",...t})=>{const l=t.options?.page?.fallback,a=Gn(c.SITEMAP||"sitemap",l),{documents:r,relatedEnterprises:i,contacts:s,socialMedia:o,mobileApps:d,logo:m}=Gn(c.FOOTER||"footer",l),h=a?.topItems?.map((e=>e.href||"/")),[x,g]=er(h);return n((()=>{!function(e,t){if(!e?.topItems?.length||!t?.length)return;for(const[{text:l},a]of Wn(e.topItems,t).filter((([,e])=>e?.length)))console.group(l),console.table(a,["title","uri"]),console.groupEnd()}(a,x)}),[a,x]),p(V,{tag:"footer",className:`p-9 ${e}`,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[u(sr,{className:yr,logo:m}),u(cr,{className:"grow",...g})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(dr,{items:s,hasButton:!0}),u(Pa,{media:o,children:"Соцсети"}),u(Pa,{className:"mt-6",media:d,children:"Мобильное приложение"})]}),u(gr,{className:"pt-[3px]",sitemap:a})]}),u(xr,{className:"mt-[98px]",links:i}),u(Nr,{links:r})]})}));const Cr=x((({className:e="",title:t,description:l,calendar:a,...n})=>p(V,{className:`p-12 ${e}`,...n,children:[u(kt,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),a?kr(a):null]}))),kr=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Sr(e,t)))}),u("div",{className:"flex w-full",children:l.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:Tr(e)}),p("div",{className:"text-s-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Sr=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Tr=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(at,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Ir=e=>({href:t})=>W(X(t)?e.href:e.pathname).startsWith(W(t)),$r=x((({className:e="",active:t,flat:l,children:a,...n})=>{const r=Q(!0),{href:i,target:s,text:o,onClick:c}=r(n);return u("a",{className:b(Br(t,l),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:Rr(t,l),children:o||a})})})),Br=(e=!1,t=!1)=>b("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"),Rr=(e=!1,t=!1)=>b("font-sans text-s-light",e?"text-primary-main":b(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover");function Vr(e=!1){const[t,l]=a(e),n=r((()=>l(!0)),[]),i=r((()=>l(!1)),[]),s=r((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:n,setFalse:i,toggle:s}]}const jr=864e5;function Mr(e,t,l=globalThis?.localStorage){const a=r((async(...a)=>{const n=`async:${e}`,r=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<jr?t:void 0}(l.getItem(n));if(r)return r;const i=await t(...a);return l.setItem(n,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return A(e,a)}const _r=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const Lr=x((({className:e,searchTerm:t,onSearch:l})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),Dr=x((({currentLocation:e,onChangeLocation:t,close:l,foreignOffices:n})=>{const[r,i]=a(""),s=Or(function(){const{data:e}=A("/api/v1/regions",F);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),o=((e,t)=>{const l=new Map;return e.forEach((e=>{const a=t(e),n=l.get(a);l.set(a,[...n||[],e])})),l})(s,zr);return u("div",{className:"absolute h-full w-full inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll",children:p("div",{className:"relative container pt-6 pb-12",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(Pr,{close:l}),u(Ar,{currentLocation:e}),u(Lr,{onSearch:i,searchTerm:r,className:"mb-7"})]}),r&&r.length>=3?u("div",{children:s.filter((e=>e.name?.startsWith(r))).map(Fr({onChangeLocation:t,close:l}))}):u("div",{className:"columns-5",children:Array.from(o.entries()).map(Er({onChangeLocation:t,close:l}))}),u(Hr,{foreignOffices:n})]})})})),zr=e=>e.name?.charAt(0)||"",Or=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Ar=x((({currentLocation:e})=>e?p("div",{className:"mb-4",children:[u(ue,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:close,children:u(ue,{color:"text-primary-main",children:e.name})})]}):null)),Pr=x((({close:e})=>u("button",{className:"visible peer-placeholder-shown:invisible absolute top-0 -right-6 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:t=>{t.preventDefault(),e&&e()},children:u(at,{image:{icon:"CloseIcon"},width:"24",height:"24"})}))),Er=({onChangeLocation:e,close:t})=>([l,a])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(ue,{size:"text-h6",children:l})}),a.map(Fr({onChangeLocation:e,close:t}))]},l),Fr=({onChangeLocation:e,close:t})=>l=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(l),t&&t()},children:l.name||""})},l.id),Hr=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(ue,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Ur,{...e},String(t))))})]}):null)),Ur=x((({icon:e,...t})=>{const l=Q(),{text:a,target:n,href:r,onClick:i}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(at,{pathPrefix:"/wcms-resources/",image:e}):null,a?u("a",{className:"hover:text-primary-hover",href:r,target:n,onClick:i,children:a}):null]})})),Xr=x((({className:e,isRounded:t,disabled:l,ariaLabel:a,image:n,onClick:r})=>u("button",{className:b("group/btn border-0 p-0 flex items-center bg-inherit",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":"w-6 h-6 text-primary-text hover:text-primary-main","group-data-transparent:text-white",e),type:"button",disabled:l,"aria-label":a,onClick:r,children:u(at,{image:n,className:b("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0",asSVG:!0})}))),Gr=e=>globalThis[e];function Wr(e,t){const[l,i]=a(),s=r((()=>i(Gr(e))),[e]);return n((()=>{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(!Gr(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const Jr={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Yr=x((e=>{const[t,{setTrue:l}]=Vr();return t?u(qr,{...e}):Kr({...e,onClick:l})})),qr=x((({chat:e="personal",...t})=>((e=>{n((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Wr("chatbot",Jr[e])})(e),Kr(t)))),Kr=({className:e,iconVersion:t,onClick:l})=>u(Xr,{className:b("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l}),Zr=x((({version:e,className:t,officesLink:l,defaultLocation:i="Москва",foreignOffices:s})=>{const[o,{setTrue:d,setFalse:m}]=Vr(),[h,x]=function(e){const t=_r(),[l,i]=a(t?.region??{name:e}),{data:s}=Mr("/api/v1/region",F);return n((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[i])]}(i),g="transparent"===e?"white":"black",f=r((e=>{e?.preventDefault(),d()}),[]);return T.fire("setPageOverflowHidden",o),p("div",{className:b("flex items-center",t),children:[u($r,{className:"mr-5",flat:!0,href:"#",text:h.name,onClick:f}),l?u($r,{className:"mr-7",flat:!0,href:l,text:"Офисы и банкоматы"}):null,c.CHAT_BOT?u(Yr,{className:"mr-5",iconVersion:g,chat:c.CHAT_BOT}):null,o?u(Dr,{currentLocation:h,foreignOffices:s,onChangeLocation:x,close:m}):null]})})),Qr=x((({className:e="",items:t,activeItem:l})=>{const n=Q(),[i,s]=a(!1),o=r((()=>s((e=>!e))),[]),c=ge(r((()=>s(!1)),[]));return p("div",{className:b(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("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)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:b("flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:a,...r}=e;return u("a",{className:b("text-l-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...n(r),children:a},e.href||String(t))}))})]})})),ei=x((({className:e="",active:t,dataItemName:l,children:a,...n})=>{const r=Q(),{href:i,target:s,text:o,onClick:c}=r(n);return p("a",{className:b("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:ti(t),children:o||a}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),ti=(e=!1)=>b("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"),li=x((({observerOptions:e,onVisibilityChange:t,children:l,...a})=>{const n=I(r((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:n,children:u(ei,{...a,children:l})})})),ai=x((({subItems:e=[]})=>{const t=(e=>(t=[])=>{const l=t?.filter(Ir(e));return l?.length?ml((e=>e.href?.length||0))(l):void 0})(Z())(e),[l,n]=a(e.length),r=e.slice(l),o=s(null),c={rootRef:o},d=i((()=>e.map(((e,t)=>e=>{n(e?ni(t):ri(t))}))),[e]);return p("nav",{className:"relative mt-6",children:[u("div",{ref:o,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,a)=>u(li,{className:b("mr-8",l-1<a?"invisible":""),active:e===t,observerOptions:c,onVisibilityChange:d[a],...e},String(a))))}),r.length?u(Qr,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:r,activeItem:t}):null]})})),ni=e=>t=>Math.max(t,e+1),ri=e=>t=>Math.min(t,e),ii={"bg-white":"primary",transparent:"transparent"},si=x((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:a=ii[e],...n})=>{const r=Z(),{topItems:i,logo:s,defaultLocation:o,foreignOffices:d,officesLink:m}=Gn(c.SITEMAP||"sitemap",n.options?.page?.fallback),h=i?.find((e=>Ir(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(r));return u(V,{tag:"header",className:b("pt-6 px-20",l&&h?.items?.length?"pb-4":"pb-5",t),version:a,...n,children:p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(sr,{className:"mr-8",bgColor:e,logo:s}),i?.map(((e,t)=>u($r,{active:e===h,...e},String(t)))),u(Zr,{version:a,className:"ml-auto",foreignOffices:d,defaultLocation:o,officesLink:m})]}),u("div",{className:b("mt-6 h-px bg-main-divider","transparent"===a?"opacity-30":"")}),l&&h?.items?.length?u(ai,{subItems:h.items}):null]})})})),oi={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},ci=x((({className:e="",gap:t="XS",isPadding:l=!1,version:a="transparent",isTheme:n=!1,...r})=>u(V,{className:b("grid grid-cols-12",l?"p-12":"",oi[t],e),version:a,isTheme:n,...r,children:C(r)})));ci.childrenTypes={exclude:["HorizontalLayout","Accordion","OtherProducts"]};const di=x((e=>{const{className:t,image:l,...a}=e;return u(V,{className:t,...a,children:u(at,{image:l})})})),mi=x((({className:e="",cards:t=[],button:l})=>{const[n,i]=a(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=Dt({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?hi({activeIndex:c,cards:t,selectedCardIndex:n,onClick:s}):null,Pt({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(de,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function hi({activeIndex:e,cards:t,selectedCardIndex:l,onClick:a}){const n=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${n}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:a}){return p("button",{type:"button",onClick:a,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(at,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?ui("страховая сумма",e.sum):null,e?.fee?ui("страховой взнос",e.fee):null]}),pi(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>a(t)})))})})}function ui(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[Ee(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function pi(e){return e?u(at,{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 xi=x((({className:e="",title:t,insuranceTabs:l=[],button:n,...i})=>{const[s,o]=a(0),c=r((e=>o(e)),[]);return p(V,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?u(_,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?u("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:a}){return u("button",{type:"button",onClick:a,"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,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:gi({insuranceTabs:l,button:n})})]})})),gi=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(mi,{button:t,cards:e},String(l)))):null};function bi(e){return t=>t.reduce(((t,l,a)=>t.length?t.concat({...e,key:a},l):[l]),[])}const fi={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},vi={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Ni=x((e=>{const{className:t="",items:l,isDotted:a,investmentZeroColumn:n,investmentColumns:r,...i}=e,s=r?[...r]:[];return n&&s.unshift(n),u(V,{className:`px-9 py-12 ${t}`,...i,children:p("div",{className:"container text-m-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[bi(u("div",{className:"w-px h-4 bg-gray"}))(s.map(yi)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(ki)})]}):null,l?.length?u(Ia,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:a}):null]})})})),yi=(e,t,l)=>{const a=1===t,n=t===l.length-1;return u("div",{className:`${wi(a,n,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(n?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Ci)}):null},`column_${t}`)},wi=(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(" "),Ci=(e,t)=>{const l=e.cellSize||"XS",a=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${vi[l]} ${fi[a]} ${"XS"===l?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},ki=(e,t,l)=>{const a=0===t,n=t===l.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${a?"pl-9":""} ${n?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Si=x((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:n,icon:r})=>{const{text:i,fileSize:s,...o}=n;return p("a",{className:e,role:"link",...o,children:[r?u(at,{className:t,image:ua(r),width:"24px",height:"24px",asSVG:!0}):null,i?p("span",{className:l,children:[i,u("span",{className:a,children:o?.href&&Ti(Ii(o.href),s)})]}):null]})})),Ti=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Ii=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},$i=x((({className:e="",doc:t,icon:l})=>u(Si,{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}))),Bi=x((({className:e,documents:t,columnsMode:l="double",icon:a})=>t?.length?u("div",{className:e,role:"list",children:t.map(((e,t)=>u("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:u($i,{className:"group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:a})},String(t))))}):null)),Ri={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},Vi=x((({className:e="",title:t,description:l,align:a="text-center",documents:n,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(V,{className:b("p-12",e),...s,children:[u(kt,{className:"!p-0",title:t,description:l,align:a,headlineVersion:"M",as:"h2"}),u(Bi,{className:`mt-8 ${Ri[i]}`,columnsMode:i,documents:n,icon:r})]}))),ji=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function Mi(e=""){const t=ji(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const _i=x((({className:e="",title:t="Мобильное приложение",qr:l,buttons:a,version:n="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===n?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(V,{className:`flex justify-between p-12 box-border relative min-h-80 ${Mi(e)} ${e}`,version:n,...d,children:[p(xa,{className:"z-10",title:t?u(_,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${k[o]}`}):null,buttons:vt(a,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Di(c),p("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?u("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:u(at,{className:"w-fit",image:l})}):null,Li(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(at,{image:i})}):null]})})),Li=e=>e?.length?u(Ia,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Di=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,zi=[{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 Oi(e,t,l){t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),n=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:a,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));n.add(r),t.geoObjects.add(n),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Ai={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"},Pi=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Ai).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Ei={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)]"},Fi=(e,t,l)=>p("div",{className:`${Object.values(Ei).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(fe,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const a=t.target?.value?t.target?.value.toLowerCase():"";if(a){const t=e.filter((e=>e.text.toLowerCase().indexOf(a)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Hi={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"},Ui=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Hi).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(fe,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Xi={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"},Gi=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),a="in"===t?l+1:l-1;e.current.setZoom(a,{checkZoomRange:!0})},className:`${Object.values(Xi).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(fe,{name:l,width:"20",height:"16"})})})),Wi={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"},Ji=x((({points:e,className:t="",zoom:l=5,showSearchField:r=!1})=>{const i=s(null),o=Wr("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=a(),[h,x]=a(Zi(zi)),g=Yi(e);if(n((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),Oi(o,i.current,h)}))}),[o,i,h]),n((()=>{if(i.current&&h&&o){const e=h.length<1?Zi(zi):h;Oi(o,i.current,e)}}),[i,h,o]),!o)return null;const b=d?"z-[100000]":"z-10";return p("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?Fi(zi,0,(e=>{if(e){const t=Zi(e);x(t)}})):Pi(g)}),u("div",{className:`${Object.values(Wi).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(fe,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[u(Gi,{yandexMaps:i}),u(Gi,{yandexMaps:i,direction:"out"})]}),Ui(i.current,o,`right-2 top-80 ${b}`)]})})),Yi=e=>[Ki(qi(e,0)),Ki(qi(e,1))],qi=(e,t)=>e.map((e=>e[t])),Ki=e=>e.reduce(((e,t)=>e+t))/e.length,Zi=e=>e?e.map((e=>e.coords)):null,Qi=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],es=({lunchHour:e,status:t,workTime:l})=>{const a=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?a:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},ts=({icon:e,title:t,distance:l,time:a},n)=>p("div",{className:"flex mr-4",children:[u(fe,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[l?` (${l})`:null,a?`, ${a}`:null]})]},`nearbyOffice${n}`),ls=({title:e,status:t,workTime:l,lunchHour:a,description:n},r)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&a?as(a):null,n?u("div",{className:"pb-1 text-s-light text-secondary-text",children:n}):null]},`day${r}`),as=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:u("div",{children:e})}),ns={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 rs(e){return e?E(e,{method:"GET"}):{}}const is=x((({className:e=""})=>{const t=function(e){const{data:t}=A(e?`/api/v1/branches?regionCode=${e}`:void 0,rs);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),ns}("000"),{name:l,address:a,gpsLatitude:n,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=n&&r?[n,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:h,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),es(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(fe,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),a]}),u("div",{className:"flex pt-4",children:Qi.map(ts)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(Ji,{points:[N],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(ls)})]})]})})),ss=x((({className:e="",title:t,servicesList:l,...a})=>p(V,{className:`p-8 flex flex-col ${e}`,...a,children:[t?u(_,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?u("ul",{className:"list-none m-0 p-0",children:l.map(os)}):null]}))),os=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(at,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:ua(e.icon)}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),cs=x((({className:e="",...t})=>u(V,{className:`font-sans text-primary-text ${e}`,...t,children:C(t)})));cs.childrenTypes=["OtherProductsItem"];const ds=x((({text:e,size:t,align:l,font:a,children:n,...r})=>u(V,{...r,children:u(L,{size:t,align:l,font:a,children:e||n})}))),ms=x((e=>{const{className:t="",icon:l,label:a,description:n,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return p("div",{className:`flex gap-5 ${n?"items-start":"items-center"} ${t}`,children:[l?u("div",{className:hs(r,i),children:u(at,{className:"w-6 h-6",image:ua(l,s),asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[a?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:a}):null,n?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:n}):null]})]})}));function hs(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 us=x((e=>{const{__html:t=""}=e;return u("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})}));function ps(e){throw new Error(e)}const xs=e=>(t,l)=>{const{type:a}=t;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return u(ms,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));case"rte":return u(us,{__html:t.__html});default:ps(t)}},gs=x((({className:e="",title:t,description:l,image:a,benefits:n,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(V,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(kt,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[a?.src?u(at,{className:s?"order-2":"",image:a}):null,p("div",{className:"w-[558px] m-auto",children:[n?.length?u("div",{className:"flex flex-col gap-4",children:n.map(xs(o))}):null,bs(Number(r),Number(i))]})]})]})));function bs(e,t){return e||t?p("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?fs("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?fs("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function fs(e,t=0,l=!1){return p("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[u("span",{className:"text-secondary-text text-l-light",children:e}),p("span",{className:"text-primary-main text-h6",children:[Ee(t)," ₽"]})]})}function vs(e=""){const t=ji(e);return t<=4?"S":t<=8?"M":"L"}function Ns(e=""){const t=ji(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ys=x((({className:e,title:t,description:l="Блок в разработке...",...a})=>p(V,{className:b("p-9 box-border",e,Ns(e),Mi(e)),...a,children:[u(kt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:vs(e)}),u("figure",{className:"m-0 min-w-[80%]",children:ws()})]}))),ws=(e=3)=>ks(100,e).map((e=>Math.floor(e))).map(Cs),Cs=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ks=(e,t)=>[e].concat(t>0?ks(e/1.618,t-1):[]),Ss=x((({className:e="",children:t,...l})=>{const a=Q(),{text:n,href:r,target:i,onClick:s}=a(l);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:n||t})}):u("span",{className:e,children:n||t})})),Ts=(e="primary",t="normal")=>({icon:l,label:a,description:n},r)=>u(ms,{icon:l,label:a,description:n,version:e,benefitsVersion:t},String(r)),Is=x((({className:e="",title:t,headlineVersion:l="L",description:a,benefitsCountOfRow:n=3,benefits:r,benefitsVersion:i,buttons:s,footnote:o,image:c,__html:d,items:m,version:h="primary",isDotted:x=!0,textBlockClassName:g=""})=>{const f=r?.filter((e=>e.label))?.length,v=$s(n);return p("div",{className:b("flex grow justify-between items-stretch h-full",e),children:[p("div",{className:b("flex flex-col",g),children:[u(kt,{className:"!p-0 max-w-[600px]",title:t,description:a,headlineVersion:l,align:"text-left"}),p("div",{className:"flex flex-col justify-between h-full",children:[p(xa,{buttons:vt(s),children:[f?u("div",{className:v,children:r?.map(Ts(h,i))}):null,d?u("div",{className:"mt-5",children:u(us,{__html:d})}):null,m?.length?u(Ia,{className:"mt-5 text-h6",items:m,itemClassName:"mb-[7px]",isDotted:x}):null]}),o?u("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&u(at,{className:"mt-[-50px]",image:c})]})})),$s=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Bs(e,t,l){const{text:a,href:n,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:b("flex items-center",l),children:[u(de,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:a,href:n,target:r,children:u(at,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i},asSVG:!0})}),a?u(de,{version:"link",text:a,href:n,target:r,ariaLabel:a}):null]})}const Rs="text-secondary-text group-data-secondary:text-white/80",Vs=x((e=>{const{className:t="",breadcrumbs:l,backwardButton:a,version:n="primary",...r}=e,i="primary"===n?n:"white";return p(V,{className:`overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${t}`,version:n,...r,children:[a?.text?Bs(a,i,"mb-10 -mt-2.5"):null,l?.length?u("div",{className:"text-xs-light mb-6",children:bi(u("span",{className:`mx-2 ${Rs}`,children:"/"}))(l.map(((e,t)=>u(Ss,{className:Rs,...e},String(t)))))}):null,u(Is,{version:n,...r})]})})),js=x((({className:e="",slides:t=[],...l})=>{const n=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=a(0),c=r((e=>o(e)),[]);return p(V,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,...l,children:[u("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){return u("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:u("div",{className:"flex grow",children:u(Is,{className:"pl-12 z-10 group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...l},t)))}),u("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:n.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:a}){const n=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",r=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 u("button",{type:"button",onClick:a,"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 ${n}`,children:p("div",{className:"border-0 px-6",children:[u("div",{className:`last:pb-0 ${r}`,children:e?.title}),u("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))})]})}));function Ms(e,t){if(!e)return null;return u("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:u(L,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const _s=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[u(ue,{size:"text-h6",children:e.label},`label-${t}`),u(ue,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return u("div",{className:"col-span-2",children:u(us,{__html:e.__html})});default:ps(e)}};function Ls(e,t){return e?.src?u(at,{className:`absolute ${t?"right-0":"left-0"} bottom-0`,image:e}):null}const Ds=x((({className:e="",title:t,headlineVersion:l="S",description:a,additionalDescription:n,benefits:r=[],buttons:i,image:s,isImageOnRightSide:o=!0,...c})=>p(V,{className:b("overflow-hidden p-9 box-border relative min-h-[364px]",Ns(e),e),...c,children:[p("div",{className:b("flex flex-col",o?"":"items-end"),children:[u(kt,{className:b("!p-0 !bg-transparent z-10",t||a?"mb-3.5":""),title:t,description:a,headlineVersion:l,as:"h2",align:"text-left"}),zs(r,s),Ms(n,s),vt(i,{className:"mt-5 z-10 text-l"})]}),Ls(s,o)]})));function zs(e,t){if(!e.length)return null;return u("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(_s):null})}const Os=x((({className:e="",title:t="Акции и спецпредложения",date:l,description:a,as:n,buttons:r=[],...i})=>u(V,{className:b("p-9 box-border",e,Ns(e),Mi(e)),...i,children:u(xa,{title:t?u(kt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:vs(e),align:"text-left",as:n||"h2"}):null,buttons:vt(r),children:p("div",{className:"mt-1.5",children:[l?u("div",{className:"text-s mb-2",children:As(l)}):null,u("div",{className:"text-l",children:a})]})})})));function As(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Ps=x((({className:e="",title:t,description:l,items:a,image:n,socialMedia:r,button:i,...s})=>{const o=t?u(_,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=n?.src?u(at,{className:"absolute bottom-0 right-0 m-0",image:n}):null;return u(V,{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",...s,children:u(xa,{className:"flex justify-between",title:o,image:c,children:p("div",{className:"h-full flex flex-col justify-between",children:[l?u("span",{className:"mb-2",children:l}):null,a?.length?u(Ia,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:a}):null,r?u(Pa,{className:"pt-10 pb-0",media:r}):null,i?.text?u("div",{className:"pt-2",children:vt([i],{buttonClassName:"mt-16 px-5"})}):null]})})})})),Es="absolute top-0 bottom-0 w-[84px]",Fs=x((({recommendations:e=[],className:t="",title:l,version:a="primary",...n})=>{const[r,i]=Dt({itemCount:e.length,visibleItemCount:2});return p(V,{className:`relative font-sans p-9 overflow-hidden text-center ${t}`,version:a,...n,children:[l?u(_,{headingType:"h3",className:"mb-6",title:l}):null,p("div",{children:[u("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*r}px)`},role:"list",children:e.length?e.map(((e,t)=>u(Ps,{version:a,className:"border-gray group-data-secondary:border-white/50",...e},String(t)))):null}),Pt({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),u("div",{className:`${Es} left-0 ${"secondary"===a?"bg-opacity-from-main":"bg-opacity-from-white"}`}),u("div",{className:`${Es} right-0 ${"secondary"===a?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Hs=x((e=>{const{__html:t,...l}=e;return u(V,{...l,children:u(us,{__html:t})})})),Us=x((({className:e="",label:t,icon:l,dataTheme:a="",onClick:n})=>p("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":a,onClick:n,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(at,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Xs=({isUnfolded:e,onToggle:t})=>u(Us,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Gs=x((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:a=!0,version:n="primary",...r})=>u(V,{className:`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,tag:"div",version:"transparent",...r,children:u(Ua,{isFoldButtonOnTop:a,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>u(Xa,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:C(r)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>Ws({version:n,label:t,isUnfolded:e,onToggle:l})})})));Gs.childrenTypes={exclude:["RollupItem","Accordion","OtherProducts"]};const Ws=({version:e,label:t,isUnfolded:l,onToggle:a})=>{const n=t||(l?"Скрыть":"Развернуть");return"primary"===e?Js({label:n,icon:l?"MinusIcon":"PlusIcon",onToggle:a}):u(Us,{label:n,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:a})},Js=({label:e,icon:t,onToggle:l})=>p("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:[u(ue,{size:"text-xl",font:"font-medium",children:e}),t?u(at,{image:ua({icon:t}),width:"24",height:"24",asSVG:!0}):null]}),Ys=[];const qs=async e=>await E(e,{method:"GET"})||Ys,Ks=x((({data:e,fieldLabel:t,fieldValue:l,selected:a,placeholder:n="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return u(ye,{options:s,label:i,placeholder:n||a,onChange:e=>r(e.key),value:o})})),Zs=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:a=[],selectedBranch:n,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(Ks,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(Ks,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:n,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Qs=x((({name:e,text:t,value:l,checked:a,onChange:n,className:r})=>u("div",{className:r,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:a,onChange:e=>n(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),eo=x((()=>{const[e,t]=a("option2"),l=r((e=>t(e)),[]);return p("div",{children:[u(Qs,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),u(Qs,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),to=["От 1 дня","До 365 дней"],lo=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(Ue,{min:1,max:365,value:e,items:to,onChange:t})]}))),ao=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:a=[],selectedBoxSize:n,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(Ks,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(Ks,{data:a,fieldLabel:"safeBoxCasesSize",selected:n,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),no=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:a,days:n,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(Zs,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:a,onSelectedBranch:ro(c)}),u(lo,{days:n,setDays:e=>c({days:e})}),u(ao,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:io(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(eo,{}),u(de,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),ro=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},io=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},so=x((({days:e,tariffs:t=[]})=>{const l=co(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[oo("Аренда за",e,"mr-11"),oo("Цена",l+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(at,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),oo=(e,t,l="")=>p("div",{className:l,children:[u("div",{className:"text-m-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),co=(e,t)=>{const l=mo(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},mo=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},ho=(e,t)=>e.find((e=>e.branchCode===t)),uo=x((e=>{const{regions:t,data:l,branches:a,onChange:r,onClick:i}=e;n((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,r]);const s=ho(a,l.selectedBranch),o=po(s?.safeBoxCaseVolumes),c=xo(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=go(c,l.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(no,{...l,regions:t,onClick:i,branches:a,caseVolumes:o,safeBoxCases:c,onChange:r}),u(so,{days:l.days,tariffs:d})]})})),po=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],xo=(e,t)=>e?.find((e=>e.volume===t)),go=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,bo=x((({title:e,footnote:t,className:l="",...n})=>{const[i,s]=a(!1),o=r((()=>s((e=>!e))),[]),[c,d]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=H(),h=fo(c.selectedRegion,m),x=function(e){const{data:t}=A(e?`/api/v1/safeboxes?regionCode=${e}`:null,qs);return t||Ys}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=ho(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 p(V,{className:l,...n,children:[p("div",{className:"px-8 py-12",children:[e?u(_,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(uo,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?u(Ji,{points:b,className:"h-[640px]"}):null]})})),fo=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,vo=e=>Boolean(e?.icon||e?.src),No=({styleMap:e,isMainButton:t,version:l})=>(a,n,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=a;return p("div",{className:b("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",yo(r.length)),children:[p("div",{className:b(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(ue,{size:"text-h6",children:i})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(Ia,{className:b(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(de,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(n))},yo=e=>e<5?"w-[276px]":"w-[210px]",wo={description:"text-white/80 text-l-light group-data-primary:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Co=x((({className:e="",showLines:t=!0,steps:l=[],button:a,size:n="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=l.length>3,d=wo,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return p(V,{className:b("box-border py-12",c?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e),version:r,...o,children:[s?u(_,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,l?.length?p("div",{className:"box-border",children:[u("div",{className:b("flex items-center",h),children:bi(u("div",{className:b("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(ko(d,n,i)))}),u("div",{className:b("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:l.map((x={styleMap:d,isMainButton:Boolean(a?.text),version:r},(e,t,l)=>{const{type:a}=e;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return No(x)(e,t,l);case"rte":return u(us,{__html:e.__html});default:ps(e)}}))})]}):null,a?.text?vt([a],{className:"mt-8 min-w-60"}):null]});var x})),ko=(e,t,l)=>({icon:a},n)=>u(V,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:l,children:vo(a)?u(at,{image:ua(a||{},l),width:"48",height:"48",asSVG:!0}):u("span",{className:`text-h4 group-data-transparent:${e.iconText} text-primary-text`,children:n+1})},String(n)),So={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},To={"horizontal-list":"w-6","vertical-list":"h-6"},Io=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:a="horizontal-list",version:n})=>l?u("div",{className:b("flex gap-2",So[a],n?"group":""),...n?{"data-ver":n}:{},children:new Array(l).fill(null).map(((l,n)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${n===t?To[a]:"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"})})(n)},String(n))))}):null)),$o=x((({className:e="",gap:t=14,padding:l=16,showDots:a=!0,minHeight:n,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=ql({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:b(e,"vertical-list"===s?"relative h-full":""),children:[u(Xl,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:n,children:r}),a?u(Io,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),Bo=x((({listType:e,showDots:t,options:l,version:a,...n})=>u(V,{version:a,...n,children:u($o,{listType:e,showDots:t,version:a,children:C({...n,options:l})})})));Bo.childrenTypes={exclude:["SwipeListControlBlock"]};const Ro="h-12 flex-1 flex items-center justify-center cursor-pointer",Vo="font-sans text-m text-center",jo="text-white",Mo="text-secondary-text group-hover/btn:text-primary-main",_o="text-primary-main",Lo={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Ro} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Ro} group/btn bg-white`},default:{active:`${Ro} bg-primary-main text-white whitespace-nowrap`,default:`${Ro} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Do={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Ro} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Ro} group/btn bg-white`},default:{active:`${Ro} bg-primary-main text-white`,default:`${Ro} group/btn bg-white`}},text:{scrollable:{active:`${Vo} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${Vo} ${Mo}`},default:{active:`${Vo} text-white`,default:`${Vo} ${Mo}`}}},zo=(e,t,l)=>{const a=t?"active":"default";return Lo[e][l?"scrollable":"default"][a]},Oo=(e,t,l)=>{const a=t?"active":"default";return Do[e][l?"scrollable":"default"][a]},Ao=x((e=>{const{tab:t,currentTab:l,onClick:a,isScrollable:n=!1}=e,r="link"===l?.type&&l.href===t.href,i=Q()(t);return u("a",{role:"tab",className:Oo("link",r,n),target:t.target,href:i.href,onClick:e=>{i.onClick(e),a(t)},children:u("span",{className:Oo("text",r,n),children:t.text})})})),Po=(e,t,l)=>e?u("h3",{className:l?`${Vo} ${t?_o:Mo}`:`${Vo} ${t?jo:Mo}`,children:e}):null,Eo=(e,t,l)=>e&&t?u("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(l?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,Fo=({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:zo("div",s,n),role:"tab","aria-selected":s,onClick:()=>a(r),children:p("div",{className:`flex flex-1 items-center justify-center ${zo("text",s,n)}`,children:[Po(r.title,s,n),Eo(l,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n})(r,i);case"link":return u(Ao,{tab:r,currentTab:t,isScrollable:n,onClick:a},String(i));default:ps(s)}return null},Ho=x((e=>{const{tabs:t,onClick:l,currentTab:a,page:n,showCounter:r}=e,[i,s]=ql({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(Xl,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(Fo({onClick:l,currentTab:a,showCounter:r,page:n,isScrollable:!0}))})}),s.canScrollLeft?u(Ot,{className:"absolute z-50 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(At,{className:"absolute z-50 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),Uo=x((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=a(l?l[0]:void 0);n((()=>{l&&l[0]&&Xo(l[0])}),[]),n((()=>{"group"===d?.type&&T.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{Xo(e),m(e)}),[]);return u(V,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?u(Ho,{tabs:l,onClick:h,currentTab:d,showCounter:i,...c}):l?.map(Fo({onClick:h,currentTab:d,showCounter:i,...c}))})})),Xo=e=>{"group"===e.type&&T.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&T.fire("tab",{type:e.type,label:e.href})},Go=x((({isOpen:e,onClick:t})=>p(de,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(fe,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Wo={Buttons:({buttons:e})=>vt(e,{buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(at,{image:e}):null,List:({isDotted:e,...t})=>u(Ia,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:a,isOpen:n})=>e?u(Go,{isOpen:n,onClick:()=>{t({dataUrl:l,pdfUrl:a})}}):null))},Jo=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=a(!0);n((()=>{t===i&&r||m(!0)}),[r,i]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,Yo({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},Yo=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...a}=e;if(!l||!(l in Wo))return null;return u(Wo[l],{...t,...a})},qo=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:a,tableInner:n,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Jo({rowIdx:t,cellIdx:l,setTableInner:a,tableInner:n,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),Ko=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,a]=Dt({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Zo(l)),Pt({...a,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Zo=e=>(t,l)=>{if(!t?.length)return null;const[a,...n]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(n?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[a?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:a.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:n?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Qo(t.cols,e):null]},`row${l}`)))})})]},String(l))},Qo=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,ec=x((({activeTabIndex:e,items:t})=>{const[l,n]=a({}),i=r((e=>n((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,a)=>{const n=`activeTabIdx:${e}-tableIdx:${a}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(n),children:[t.title,u(at,{image:{icon:l[n]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[n]?"h-0":""),children:u("div",{className:"relative",children:u(Ko,{rows:t.rowsData})})})]},n)}))})})),tc=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:a})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>a(t),children:e||t+1},e)))}):null,t?u(de,{href:t,version:"secondary",target:"_blank",appendLeft:u(fe,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function lc(e){const t=await fetch(e);return await t.json()}const ac=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:n}=function(e){const{data:t}=A(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),lc);return t||{}}(e),[i,s]=a(0),o=r((e=>s(e)),[]),c=n?.[i]?.items??[],d=n?.map((e=>e.currency??""));return p("div",n?{className:"bg-white z-10",children:[u(tc,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(ec,{activeTabIndex:i,items:c}),u(Go,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Go,{onClick:l,isOpen:!0})]})})),nc=x((({children:e,tableInner:t,onHideContentClick:l})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(ac,{...t,onClick:l})}):null]}))),rc=x((({row:{header:e,data:t},activeIndex:l,rowIdx:n,...i})=>{const[s,o]=a(void 0),c=r((e=>o(e)),[]),[d,m]=a(void 0),h=r((e=>m(e)),[]);return p(nc,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(at,{className:"mr-3.5 max-w-6 max-h-6",image:ua(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(nn,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(qo,{cells:e,rowIdx:n,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),ic=x((({className:e="",title:t,description:l,rowHeaders:a,tariffsColumns:n,hiddenRowsNum:r=0,...i})=>{const s=n?.map((({data:e})=>e))||[],o=a?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=Dt({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(rc,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[h.slice(0,-r),h.slice(-r)]:[h,[]];return p(V,{className:`p-12 overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[sc({title:t,description:l}),oc(l),r>0?u(Ua,{renderFoldableSection:({isUnfolded:e})=>p(cc,{controls:m,children:[x,u(Xa,{isUnfolded:e,children:g})]}),renderFoldButton:Xs}):u(cc,{controls:m,children:h})]})}));function sc({title:e,description:t}){return e?u(_,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function oc(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const cc=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Pt({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),dc=x((({className:e="",title:t,description:l,iconVersion:a,image:n,__html:r,...i})=>p(V,{className:`px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10' ${e}`,...i,children:["small"===a?u("div",{className:"mt-1",children:mc()}):null,"big"===a?hc(n):null,p("div",{children:[t?uc(t):null,l?u("div",{className:"mt-1",children:pc(l)}):null,r?u(us,{__html:r}):null]})]}))),mc=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),hc=e=>e?.src?u(at,{image:e}):null,uc=e=>u(ue,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:e}),pc=e=>u(L,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),xc=x((e=>{const{tags:t,className:l=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(gc)}):null})),gc=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),bc=x((({title:e,headingType:t="h3",__html:l,items:a,buttons:n,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,...m})=>u(V,{className:`overflow-hidden p-9 pr-3 box-border ${Ns(o)} ${Mi(o)} ${o}`,...m,children:p(xa,{title:e?u(_,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:vt(n,{className:"mt-8",buttonClassName:"min-w-[158px]"}),image:r?.src?u(at,{className:"mt-auto ml-7",image:r}):null,children:[l?u("div",{className:"max-w-[600px] mt-2.5",children:u(us,{__html:l})}):null,d,u(Ia,{className:"mt-2.5",itemClassName:"mb-1.5",items:a,isDotted:i,listItemSize:s}),c?.length?u(xc,{tags:c,className:"mt-5"}):null]})}))),fc={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},vc=x((({className:e="",gap:t="",align:l="stretch",isPadding:a=!1,isInnerPadding:n=!0,version:r="transparent",isTheme:i=!1,options:s,...o})=>{const c=n?"":"!p-0";return u(V,{className:b("flex flex-col [&>*]:max-w-full",a?"p-12":"",oi[t],l&&fc[l],e),version:r,isTheme:i,...o,children:C({...o,options:{...s,className:c}})})}));vc.childrenTypes={exclude:["Accordion","OtherProducts"]};const Nc=e=>ji(e)<10?"py-6 px-11":"py-12 px-32",yc=x((({className:e,title:t,url:l,previewImg:a,...n})=>{const r=Z();return p(V,{className:b(Nc(e),e),...n,children:[u(kt,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:q(r)(a?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:q(r)(l)})}):null]})})),wc={Accordion:D,ApplicationForm:ut,BenefitsBlock:pt,Bonus:St,BonusBenefitsBlock:Bt,BusinessBlock:_t,ButtonBlock:Lt,Calculator:_l,CardTransfer:El,Carousel:ta,CarouselBankHistoryCard:aa,CarouselCard:ca,CarouselCatalogCard:ma,CarouselEventCard:pa,CarouselInvestmentCard:ba,CarouselLinks:ya,CarouselProductCard:$a,CarouselProgramsCard:_a,CarouselRecommendationCard:Fa,CarouselTariffsCard:Ga,ComparisonTable:gn,ContactsBlock:fn,ErrorBlock:wn,ExchangeRateTile:Un,Footer:wr,GracePeriod:Cr,Header:si,Headline:kt,HorizontalLayout:ci,ImgBlock:di,InsuranceAmountBlock:xi,InvestmentInfo:Ni,LinkDocs:Vi,MobileAppTile:_i,OfficeMap:is,OfficeServicesBlock:ss,OtherProducts:cs,ParagraphBlock:ds,PictureText:gs,Placeholder:ys,ProductBlock:Vs,ProductGallery:js,ProductTile:Ds,PromoTile:Os,Recommendation:Fs,RichTextBlock:Hs,RollupItem:Gs,SafeDepositRental:bo,StepsBlock:Co,SwipeListControlBlock:Bo,Tabs:Uo,TariffsTable:ic,TextBlock:dc,Tile:bc,VerticalLayout:vc,Video:yc};const Cc=["Header","Footer"],kc=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Sc(e=globalThis){const t=s(new Map);n((()=>B.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),n((()=>{const l=((e,t=600)=>{let l;const a=(...n)=>{a.dispose(),l=setTimeout((()=>{e(...n)}),t)};return a.dispose=()=>{l&&clearTimeout(l)},a})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Cc.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?ul(kc)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const Tc=h();const Ic=x((({className:e,onClick:t,ariaLabel:l})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:$c()}))),$c=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Bc=x((({className:e=""})=>{const t=function(e){const[t,l]=a(0);return n((()=>{(async()=>{const[t]=await Tc.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{l(await Tc.like(e))}),[e]),dislike:r((async()=>{l(await Tc.dislike(e))}),[e])}}(Z().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(Ic,{onClick:K(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Ic,{onClick:K(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Rc=x((e=>{const{className:t="",blocksRegistry:l,blockDecorator:r,data:i={}}=e,{style:s,blocks:o,slots:c,likeControl:d,colorPalette:m="pc"}=i,[h,x]=a(""),g={key:"",page:i,blocksRegistry:l,blockDecorator:r,parent:i};return Sc(),n((()=>T.subscribe("setPageOverflowHidden",(e=>{x(e?"overflow-hidden h-screen":"")}))),[]),p("section",{className:b("relative",s,t,h),"data-theme":m,children:[c?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(c?.header,{...g,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[w(o,g),c?.footer?w(c?.footer,{...g,slotName:"footer"}):null]}),d?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Bc,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Rc.childrenTypes=[],Rc.slots=()=>["header","footer"];e.Blocks=wc,e.ContentPage=Rc,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=K,e.joinList=bi,e.packageVersion="0.8.28",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Y,e.useRouter=Z,Object.defineProperty(e,"__esModule",{value:!0})}));
|