@redneckz/wildless-cms-uni-blocks 0.5.11 → 0.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/EventBus/EventBus.d.ts +10 -0
- package/bundle/EventBus/EventMap.d.ts +7 -0
- package/bundle/ProjectSettings.d.ts +24 -0
- package/bundle/api/DaDataAPI.d.ts +15 -0
- package/bundle/api/LikeAPI.d.ts +9 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +457 -596
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Accordion/Accordion.d.ts +5 -0
- package/bundle/components/Accordion/Accordion.mobile.d.ts +5 -0
- package/bundle/components/Accordion/AccordionContent.d.ts +45 -0
- package/bundle/components/Accordion/AccordionItem.d.ts +2 -0
- package/bundle/components/Accordion/AccordionItem.mobile.d.ts +2 -0
- package/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/bundle/components/BaseTile/BaseTile.d.ts +5 -0
- package/bundle/components/BaseTile/BaseTileProps.d.ts +15 -0
- package/bundle/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/bundle/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/bundle/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +52 -0
- package/bundle/components/Blocks.d.ts +37 -0
- package/bundle/components/Blocks.mobile.d.ts +17 -0
- package/bundle/components/Bonus/Bonus.d.ts +5 -0
- package/bundle/components/Bonus/BonusContent.d.ts +45 -0
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +15 -0
- package/bundle/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
- package/bundle/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/bundle/components/Calculator/Calculator.d.ts +5 -0
- package/bundle/components/Calculator/CalculatorContent.d.ts +129 -0
- package/bundle/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/bundle/components/Calculator/CreditCalculatorForm.d.ts +7 -0
- package/bundle/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +9 -0
- package/bundle/components/Calculator/Rate.d.ts +7 -0
- package/bundle/components/Calculator/constants.d.ts +16 -0
- package/bundle/components/Calculator/getBonus.d.ts +2 -0
- package/bundle/components/Calculator/getCreditRate.d.ts +7 -0
- package/bundle/components/Calculator/getDefaultMonths.d.ts +1 -0
- package/bundle/components/Calculator/getDefaultSum.d.ts +1 -0
- package/bundle/components/Calculator/getMonthlyPayment.d.ts +6 -0
- package/bundle/components/Calculator/renderButtonSection.d.ts +2 -0
- package/bundle/components/Calculator/renderCalculatorBlock.d.ts +3 -0
- package/bundle/components/Calculator/renderFootnote.d.ts +2 -0
- package/bundle/components/Calculator/renderInitialFeeInput.d.ts +6 -0
- package/bundle/components/Calculator/renderMonthsInput.d.ts +8 -0
- package/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +6 -0
- package/bundle/components/Calculator/renderProposal.d.ts +2 -0
- package/bundle/components/Calculator/renderProposalMortgage.d.ts +8 -0
- package/bundle/components/Calculator/renderRealEstateValue.d.ts +6 -0
- package/bundle/components/Calculator/renderWantedSumInput.d.ts +11 -0
- package/bundle/components/Calculator/useBonusCalculatorParams.d.ts +36 -0
- package/bundle/components/Calculator/useCalculatorParams.d.ts +1 -0
- package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +27 -0
- package/bundle/components/CardTransfer/CardTransfer.d.ts +5 -0
- package/bundle/components/CardTransfer/CardTransferContent.d.ts +10 -0
- package/bundle/components/Catalog/Catalog.d.ts +5 -0
- package/bundle/components/Catalog/CatalogCard.d.ts +7 -0
- package/bundle/components/Catalog/CatalogContent.d.ts +25 -0
- package/bundle/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/bundle/components/ComparisonTable/ComparisonTable.mobile.d.ts +5 -0
- package/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +50 -0
- package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/bundle/components/ComparisonTable/HeaderCell.d.ts +10 -0
- package/bundle/components/ComparisonTable/HeaderCell.mobile.d.ts +11 -0
- package/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
- package/bundle/components/ComparisonTable/TableCell.d.ts +9 -0
- package/bundle/components/ComparisonTable/TableCell.mobile.d.ts +9 -0
- package/bundle/components/ComparisonTable/TableColumn.d.ts +15 -0
- package/bundle/components/ComparisonTable/TableRow.d.ts +14 -0
- package/bundle/components/ComparisonTable/TableRowContainer.d.ts +1 -0
- package/bundle/components/ComparisonTable/constants.d.ts +6 -0
- package/bundle/components/ContentPage/ContentPage.d.ts +10 -0
- package/bundle/components/ContentPage/ContentPageContext.d.ts +17 -0
- package/bundle/components/ContentPage/ContentPageHead.d.ts +7 -0
- package/bundle/components/ContentPage/computeAPIFallback.d.ts +5 -0
- package/bundle/components/ContentPage/filterBlocks.d.ts +12 -0
- package/bundle/components/ContentPage/filterBlocks.mobile.d.ts +12 -0
- package/bundle/components/ContentPage/normalizeBlock.d.ts +11 -0
- package/bundle/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
- package/bundle/components/ContentPage/normalizePage.d.ts +3 -0
- package/bundle/components/ContentPage/renderBlock.d.ts +13 -0
- package/bundle/components/ErrorBlock/ErrorBlock.d.ts +5 -0
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +48 -0
- package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +21 -0
- package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +8 -0
- package/bundle/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/bundle/components/ExchangeRateTile/renderInput.d.ts +13 -0
- package/bundle/components/Footer/Contacts.d.ts +7 -0
- package/bundle/components/Footer/Footer.d.ts +5 -0
- package/bundle/components/Footer/Footer.mobile.d.ts +5 -0
- package/bundle/components/Footer/FooterContent.d.ts +44 -0
- package/bundle/components/Footer/FooterLink.d.ts +5 -0
- package/bundle/components/Footer/HorizontalNavigation.d.ts +6 -0
- package/bundle/components/Footer/HorizontalNavigation.mobile.d.ts +6 -0
- package/bundle/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/bundle/components/Footer/MediaButton.d.ts +7 -0
- package/bundle/components/Footer/Sitemap.d.ts +8 -0
- package/bundle/components/Footer/SocialMedia.d.ts +8 -0
- package/bundle/components/Footer/SocialMedia.mobile.d.ts +8 -0
- package/bundle/components/Footer/TextInformation.d.ts +2 -0
- package/bundle/components/Footer/TextInformation.mobile.d.ts +2 -0
- package/bundle/components/Footer/TextInformationLink.d.ts +8 -0
- package/bundle/components/Gallery/Gallery.d.ts +2 -0
- package/bundle/components/Gallery/Gallery.mobile.d.ts +2 -0
- package/bundle/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/bundle/components/Gallery/GalleryContainer.d.ts +13 -0
- package/bundle/components/Gallery/GalleryContent.d.ts +64 -0
- package/bundle/components/Gallery/GalleryInner.d.ts +7 -0
- package/bundle/components/Gallery/GalleryProps.d.ts +4 -0
- package/bundle/components/Gallery/constants.d.ts +4 -0
- package/bundle/components/GracePeriod/GracePeriod.d.ts +5 -0
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +32 -0
- package/bundle/components/Header/DropdownMenu.d.ts +14 -0
- package/bundle/components/Header/Header.d.ts +5 -0
- package/bundle/components/Header/Header.fallback.d.ts +2 -0
- package/bundle/components/Header/Header.mobile.d.ts +5 -0
- package/bundle/components/Header/HeaderBurger.d.ts +11 -0
- package/bundle/components/Header/HeaderContent.d.ts +41 -0
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +10 -0
- package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
- package/bundle/components/Header/HeaderSubMenu.d.ts +9 -0
- package/bundle/components/Header/HeaderTop.d.ts +6 -0
- package/bundle/components/Headline/Headline.d.ts +5 -0
- package/bundle/components/Headline/Headline.mobile.d.ts +5 -0
- package/bundle/components/Headline/HeadlineContent.d.ts +15 -0
- package/bundle/components/Headline/constants.d.ts +20 -0
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +7 -0
- package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/bundle/components/LikeControl/LikeControl.d.ts +2 -0
- package/bundle/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/bundle/components/LinkDocs/LinkDocs.mobile.d.ts +5 -0
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +43 -0
- package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/bundle/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/bundle/components/LinkDocs/LinkDocsListItem.mobile.d.ts +2 -0
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/bundle/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/bundle/components/LinkList/LinkList.d.ts +5 -0
- package/bundle/components/LinkList/LinkListContent.d.ts +8 -0
- package/bundle/components/LinkList/linkListContentExample.d.ts +2 -0
- package/bundle/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/bundle/components/MiniGallery/MiniGalleryContent.d.ts +12 -0
- package/bundle/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/bundle/components/MobileAppTile/MobileAppTile.mobile.d.ts +5 -0
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +31 -0
- package/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
- package/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +10 -0
- package/bundle/components/OtherProducts/OtherProducts.d.ts +5 -0
- package/bundle/components/OtherProducts/OtherProductsContent.d.ts +25 -0
- package/bundle/components/OtherProducts/OtherProductsItem.d.ts +6 -0
- package/bundle/components/PictureText/PictureText.d.ts +5 -0
- package/bundle/components/PictureText/PictureTextContent.d.ts +34 -0
- package/bundle/components/Placeholder/Placeholder.d.ts +6 -0
- package/bundle/components/Placeholder/PlaceholderContent.d.ts +5 -0
- package/bundle/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/bundle/components/ProductBlock/ProductBlock.mobile.d.ts +5 -0
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +54 -0
- package/bundle/components/ProductBlock/ProductBlockInner.d.ts +4 -0
- package/bundle/components/ProductBlock/ProductBlockInner.mobile.d.ts +4 -0
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +4 -0
- package/bundle/components/ProductBlock/renderBenefit.d.ts +5 -0
- package/bundle/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +29 -0
- package/bundle/components/ProductTile/ProductTile.d.ts +5 -0
- package/bundle/components/ProductTile/ProductTileContent.d.ts +33 -0
- package/bundle/components/PromoTile/PromoTile.d.ts +5 -0
- package/bundle/components/PromoTile/PromoTileContent.d.ts +12 -0
- package/bundle/components/Recommendation/Recommendation.d.ts +5 -0
- package/bundle/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/bundle/components/Recommendation/RecommendationContent.d.ts +43 -0
- package/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
- package/bundle/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
- package/bundle/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
- package/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
- package/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +9 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +12 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +11 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +6 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +8 -0
- package/bundle/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
- package/bundle/components/SafeDepositRental/YandexMap.d.ts +5 -0
- package/bundle/components/SafeDepositRental/renderClusterer.d.ts +2 -0
- package/bundle/components/SafeDepositRental/useGetRegions.d.ts +6 -0
- package/bundle/components/SafeDepositRental/useYandexMaps.d.ts +2 -0
- package/bundle/components/SafeDepositRental/utils.d.ts +3 -0
- package/bundle/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +5 -0
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +43 -0
- package/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +11 -0
- package/bundle/components/StepsBlock/renderItems.d.ts +8 -0
- package/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/bundle/components/Tabs/Tabs.d.ts +13 -0
- package/bundle/components/Tabs/TabsContent.d.ts +36 -0
- package/bundle/components/Tabs/renderGroupTab.d.ts +4 -0
- package/bundle/components/Tabs/renderLinkTab.d.ts +9 -0
- package/bundle/components/Tabs/renderTab.d.ts +12 -0
- package/bundle/components/Tabs/tabItemClasses.d.ts +6 -0
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +14 -0
- package/bundle/components/TariffsTable/EmbeddableCellData.mobile.d.ts +12 -0
- package/bundle/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/bundle/components/TariffsTable/TariffsTable.d.ts +5 -0
- package/bundle/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
- package/bundle/components/TariffsTable/TariffsTableCell.d.ts +9 -0
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +95 -0
- package/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/bundle/components/TariffsTable/TariffsTableRow.d.ts +9 -0
- package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +8 -0
- package/bundle/components/TariffsTable/TariffsTableVertical.d.ts +6 -0
- package/bundle/components/TariffsTable/constants.d.ts +4 -0
- package/bundle/components/TariffsTable/dataFixture.d.ts +5 -0
- package/bundle/components/TariffsTable/utils/getButtonAriaLabel.d.ts +2 -0
- package/bundle/components/TextBlock/TextBlock.d.ts +5 -0
- package/bundle/components/TextBlock/TextBlock.mobile.d.ts +5 -0
- package/bundle/components/TextBlock/TextBlockContent.d.ts +22 -0
- package/bundle/components/Tile/Tile.d.ts +6 -0
- package/bundle/components/Tile/TileContent.d.ts +34 -0
- package/bundle/content-page-repository/ContentPageRepository.d.ts +11 -0
- package/bundle/content-page-repository/TransformationOptions.d.ts +4 -0
- package/bundle/content-page-repository/index.d.ts +2 -0
- package/bundle/content-page-repository/mapJSON.d.ts +1 -0
- package/bundle/content-page-repository/transformContentPage.d.ts +3 -0
- package/bundle/content-page-repository/transformImg.d.ts +11 -0
- package/bundle/content-page-repository/transformMarkdown.d.ts +1 -0
- package/bundle/content-page-repository/transformPicture.d.ts +3 -0
- package/bundle/content-page-repository/transformSrc.d.ts +3 -0
- package/bundle/hooks/useExchangeRates.d.ts +2 -0
- package/bundle/hooks/useExternalNS.d.ts +2 -0
- package/bundle/hooks/useGeolocation.d.ts +1 -0
- package/bundle/hooks/useLikeService.d.ts +5 -0
- package/bundle/hooks/useLink.d.ts +18 -0
- package/bundle/hooks/useOutsideClick.d.ts +5 -0
- package/{mobile/dist/hooks/useFetchSafeBoxes.d.ts → bundle/hooks/useSafeBoxes.d.ts} +1 -3
- package/bundle/hooks/useSearch.d.ts +4 -0
- package/bundle/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/bundle/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/bundle/icons/IconName.d.ts +194 -0
- package/bundle/index.d.ts +9 -0
- package/bundle/model/AlignType.d.ts +9 -0
- package/bundle/model/BgColorVersion.d.ts +8 -0
- package/bundle/model/BlockDecorator.d.ts +15 -0
- package/bundle/model/BlockVersion.d.ts +11 -0
- package/bundle/model/BlocksRegistry.d.ts +8 -0
- package/bundle/model/ButtonVersion.d.ts +6 -0
- package/bundle/model/ContentPageDef.d.ts +52 -0
- package/bundle/model/EmptyOptionType.d.ts +4 -0
- package/bundle/model/Fallback.d.ts +5 -0
- package/bundle/model/Footnote.d.ts +4 -0
- package/bundle/model/GalleryVersion.d.ts +1 -0
- package/bundle/model/HeadlineType.d.ts +29 -0
- package/bundle/model/IconVersion.d.ts +9 -0
- package/bundle/model/ImageSize.d.ts +6 -0
- package/bundle/model/InputTypes.d.ts +1 -0
- package/bundle/model/LinkProps.d.ts +24 -0
- package/bundle/model/ListOrientation.d.ts +8 -0
- package/bundle/model/Picture.d.ts +59 -0
- package/bundle/model/ProductColorVersion.d.ts +4 -0
- package/bundle/model/SitemapProps.d.ts +24 -0
- package/bundle/model/SizeVersion.d.ts +8 -0
- package/bundle/model/TableVersion.d.ts +1 -0
- package/bundle/model/VNode.d.ts +1 -0
- package/bundle/react/setup-fixture.d.ts +4 -0
- package/bundle/services/sitemap/SitemapProps.d.ts +24 -0
- package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/bundle/services/sitemap/findActiveSubItem.d.ts +3 -0
- package/bundle/services/sitemap/isHrefActive.d.ts +4 -0
- package/bundle/services/sitemap/isSubItemActive.d.ts +3 -0
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -0
- package/bundle/services/sitemap/mergeTopItems.d.ts +2 -0
- package/bundle/services/sitemap/useSitemap.d.ts +3 -0
- package/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
- package/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +20 -0
- package/bundle/ui-kit/BlockWrapper.d.ts +7 -0
- package/bundle/ui-kit/BlocksList/BlocksListProps.d.ts +96 -0
- package/bundle/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
- package/bundle/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
- package/bundle/ui-kit/BlocksList/renderBlocksList.d.ts +9 -0
- package/bundle/ui-kit/Breadcrumb.d.ts +6 -0
- package/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/bundle/ui-kit/Button/Button.d.ts +2 -0
- package/bundle/ui-kit/Button/Button.mobile.d.ts +2 -0
- package/bundle/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/bundle/ui-kit/Button/ButtonProps.d.ts +54 -0
- package/bundle/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/bundle/ui-kit/Button/GetButtonClassParams.d.ts +6 -0
- package/bundle/ui-kit/Button/LikeButton.d.ts +6 -0
- package/bundle/ui-kit/Button/buttonClassNameConstants.d.ts +5 -0
- package/bundle/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
- package/bundle/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
- package/bundle/ui-kit/Button/renderArrows.d.ts +9 -0
- package/bundle/ui-kit/Checkbox/Checkbox.d.ts +2 -0
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +7 -0
- package/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -0
- package/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +5 -0
- package/bundle/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
- package/bundle/ui-kit/Description/Description.d.ts +5 -0
- package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/bundle/ui-kit/Foldable/Foldable.d.ts +9 -0
- package/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/bundle/ui-kit/HeaderItem/HeaderItem.d.ts +2 -0
- package/bundle/ui-kit/HeaderItem/HeaderItem.mobile.d.ts +3 -0
- package/bundle/ui-kit/Heading/Heading.d.ts +2 -0
- package/bundle/ui-kit/Heading/Heading.mobile.d.ts +2 -0
- package/bundle/ui-kit/Heading/HeadingProps.d.ts +23 -0
- package/bundle/ui-kit/Icon/Icon.d.ts +2 -0
- package/bundle/ui-kit/Icon/IconProps.d.ts +21 -0
- package/bundle/ui-kit/Img/Img.d.ts +1 -0
- package/bundle/ui-kit/Img/Img.mobile.d.ts +2 -0
- package/bundle/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/bundle/ui-kit/Img/ImgInner.d.ts +2 -0
- package/bundle/ui-kit/Img/ImgProps.d.ts +11 -0
- package/bundle/ui-kit/Img/getIconVersion.d.ts +1 -0
- package/bundle/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/bundle/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/bundle/ui-kit/Input/Input.d.ts +2 -0
- package/bundle/ui-kit/Input/InputProps.d.ts +16 -0
- package/bundle/ui-kit/InputRange/InputRange.d.ts +2 -0
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +11 -0
- package/bundle/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/bundle/ui-kit/List/List.d.ts +2 -0
- package/bundle/ui-kit/List/ListContent.d.ts +4 -0
- package/bundle/ui-kit/List/ListItem.d.ts +12 -0
- package/bundle/ui-kit/List/ListProps.d.ts +26 -0
- package/bundle/ui-kit/Logo/Logo.d.ts +13 -0
- package/bundle/ui-kit/Logo/Logo.mobile.d.ts +8 -0
- package/bundle/ui-kit/Radio/Radio.d.ts +2 -0
- package/bundle/ui-kit/Radio/RadioProps.d.ts +9 -0
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/bundle/ui-kit/SVG.d.ts +19 -0
- package/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -0
- package/bundle/ui-kit/SearchBar/SearchBar.mobile.d.ts +2 -0
- package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/bundle/ui-kit/Select/Select.d.ts +14 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +18 -0
- package/bundle/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/bundle/ui-kit/TopItem/TopItem.d.ts +14 -0
- package/bundle/utils/addSpacesBetweenNumbers.d.ts +1 -0
- package/bundle/utils/adjustHref.d.ts +4 -0
- package/bundle/utils/assertUnreachable.d.ts +1 -0
- package/bundle/utils/changeHashOnObserve.d.ts +9 -0
- package/bundle/utils/checkIsIconRenderable.d.ts +2 -0
- package/bundle/utils/clamp.d.ts +1 -0
- package/bundle/utils/fetchJSON.d.ts +2 -0
- package/bundle/utils/getColSpan.d.ts +1 -0
- package/bundle/utils/getCurrentDate.d.ts +1 -0
- package/bundle/utils/getGeolocation.d.ts +1 -0
- package/bundle/utils/getSanitizedValue.d.ts +1 -0
- package/bundle/utils/isPictureSizeEmpty.d.ts +2 -0
- package/bundle/utils/joinList.d.ts +1 -0
- package/bundle/utils/maxBy.d.ts +2 -0
- package/bundle/utils/roundTo.d.ts +1 -0
- package/bundle/utils/style2className.d.ts +1 -0
- package/bundle/utils/tableFunc.d.ts +2 -0
- package/bundle/utils/url.d.ts +5 -0
- package/bundle/utils/withoutMobilePath.d.ts +2 -0
- package/dist/components/Accordion/Accordion.js +3 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +5 -2
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +9 -7
- package/dist/components/Accordion/AccordionItem.d.ts +1 -4
- package/dist/components/Accordion/AccordionItem.js +5 -11
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.d.ts +1 -4
- package/dist/components/Accordion/AccordionItem.mobile.js +7 -8
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/dist/components/Accordion/AccordionItemProps.js +2 -0
- package/dist/components/Accordion/AccordionItemProps.js.map +1 -0
- package/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/dist/components/Accordion/AccordionItemsList.js +6 -0
- package/dist/components/Accordion/AccordionItemsList.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.d.ts +0 -1
- package/dist/components/Blocks.mobile.js +0 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +3 -2
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +1 -1
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +1 -23
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +13 -48
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.d.ts +1 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.d.ts +5 -8
- package/dist/components/ComparisonTable/TableColumn.js +2 -8
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +0 -11
- package/dist/components/ContentPage/filterBlocks.js +1 -2
- package/dist/components/ContentPage/filterBlocks.js.map +1 -1
- package/dist/components/ContentPage/filterBlocks.mobile.js +1 -3
- package/dist/components/ContentPage/filterBlocks.mobile.js.map +1 -1
- package/dist/components/ContentPage/renderBlock.js +1 -1
- package/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +8 -7
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +5 -9
- package/dist/components/Gallery/Gallery.mobile.js +7 -3
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +14 -17
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.js +2 -2
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +11 -3
- package/dist/components/Header/Header.mobile.js +5 -5
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.js +3 -2
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Headline/constants.d.ts +2 -1
- package/dist/components/Headline/constants.js +10 -1
- package/dist/components/Headline/constants.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsItem.js +5 -5
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/Recommendation/RecommendationContent.d.ts +5 -0
- package/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +17 -3
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +7 -28
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
- package/dist/components/SafeDepositRental/utils.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +5 -6
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +9 -2
- package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +4 -2
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/dist/components/StepsBlock/renderItems.d.ts +8 -0
- package/dist/components/StepsBlock/renderItems.js +10 -0
- package/dist/components/StepsBlock/renderItems.js.map +1 -0
- package/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/dist/components/StepsBlock/renderStepContent.js +20 -0
- package/dist/components/StepsBlock/renderStepContent.js.map +1 -0
- package/dist/components/TariffsTable/EmbeddableCellData.js +4 -5
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +1 -2
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +11 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/dataFixture.js +4 -2
- package/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/dist/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
- package/dist/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
- package/dist/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -3
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/hooks/useOutsideClick.d.ts +5 -0
- package/dist/hooks/useOutsideClick.js +21 -0
- package/dist/hooks/useOutsideClick.js.map +1 -0
- package/dist/hooks/{useFetchSafeBoxes.d.ts → useSafeBoxes.d.ts} +1 -3
- package/{mobile/dist/hooks/useFetchSafeBoxes.js → dist/hooks/useSafeBoxes.js} +9 -10
- package/dist/hooks/useSafeBoxes.js.map +1 -0
- package/dist/icons/IconName.d.ts +1 -92
- package/dist/icons/IconName.js +4 -4
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/BlockDecorator.d.ts +1 -0
- package/dist/model/BlockDecorator.js +2 -1
- package/dist/model/BlockDecorator.js.map +1 -1
- package/dist/model/BlocksRegistry.d.ts +4 -1
- package/dist/model/HeadlineType.d.ts +8 -0
- package/dist/model/Picture.d.ts +1 -0
- package/dist/react/setup-fixture.js +0 -2
- package/dist/react/setup-fixture.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +3 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.d.ts +0 -3
- package/dist/ui-kit/BlockWrapper.js +5 -5
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Button/Button.js +6 -10
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.js +1 -1
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +3 -2
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +1 -7
- package/dist/ui-kit/Button/ButtonSection.js +5 -10
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
- package/dist/ui-kit/Button/buttonClassNameConstants.js +7 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js +7 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/adjustValue .d.ts +2 -0
- package/dist/ui-kit/CurrencyInput/adjustValue .js +11 -2
- package/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/dist/ui-kit/Foldable/Foldable.d.ts +5 -18
- package/dist/ui-kit/Foldable/Foldable.js +9 -17
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/dist/ui-kit/Foldable/FoldablePartProps.js +2 -0
- package/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/dist/ui-kit/Foldable/FoldableSection.js +17 -0
- package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/dist/ui-kit/Icon/Icon.js +4 -5
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +0 -1
- package/dist/ui-kit/Img/Img.d.ts +1 -2
- package/dist/ui-kit/Img/Img.js +2 -6
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.js +1 -3
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +12 -3
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +2 -0
- package/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/dist/ui-kit/IntersectionObserverTag.js +22 -0
- package/dist/ui-kit/IntersectionObserverTag.js.map +1 -0
- package/dist/ui-kit/List/List.js +13 -8
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.d.ts +2 -2
- package/dist/ui-kit/List/ListItem.js +8 -23
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/List/ListProps.d.ts +5 -3
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +4 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/utils/getSanitizedValue.d.ts +1 -0
- package/dist/utils/getSanitizedValue.js +5 -0
- package/dist/utils/getSanitizedValue.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +3 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +5 -2
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +9 -7
- package/lib/components/Accordion/AccordionItem.d.ts +1 -4
- package/lib/components/Accordion/AccordionItem.js +5 -11
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.d.ts +1 -4
- package/lib/components/Accordion/AccordionItem.mobile.js +7 -8
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/lib/components/Accordion/AccordionItemProps.js +2 -0
- package/lib/components/Accordion/AccordionItemProps.js.map +1 -0
- package/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/lib/components/Accordion/AccordionItemsList.js +4 -0
- package/lib/components/Accordion/AccordionItemsList.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.d.ts +0 -1
- package/lib/components/Blocks.mobile.js +0 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +3 -2
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +1 -23
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +14 -49
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.d.ts +1 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.d.ts +5 -8
- package/lib/components/ComparisonTable/TableColumn.js +2 -8
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +0 -11
- package/lib/components/ContentPage/filterBlocks.js +1 -2
- package/lib/components/ContentPage/filterBlocks.js.map +1 -1
- package/lib/components/ContentPage/filterBlocks.mobile.js +1 -3
- package/lib/components/ContentPage/filterBlocks.mobile.js.map +1 -1
- package/lib/components/ContentPage/renderBlock.js +2 -2
- package/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +8 -7
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +5 -9
- package/lib/components/Gallery/Gallery.mobile.js +7 -3
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +15 -18
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.js +2 -2
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +11 -3
- package/lib/components/Header/Header.mobile.js +5 -5
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.js +2 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Headline/constants.d.ts +2 -1
- package/lib/components/Headline/constants.js +9 -0
- package/lib/components/Headline/constants.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +7 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -0
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsItem.js +5 -5
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/Recommendation/RecommendationContent.d.ts +5 -0
- package/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +18 -4
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +9 -30
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
- package/lib/components/SafeDepositRental/utils.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +2 -0
- package/lib/components/StepsBlock/StepsBlock.js +5 -6
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +9 -2
- package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +4 -2
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/lib/components/StepsBlock/renderItems.d.ts +8 -0
- package/lib/components/StepsBlock/renderItems.js +7 -0
- package/lib/components/StepsBlock/renderItems.js.map +1 -0
- package/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/lib/components/StepsBlock/renderStepContent.js +17 -0
- package/lib/components/StepsBlock/renderStepContent.js.map +1 -0
- package/lib/components/TariffsTable/EmbeddableCellData.js +4 -5
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +1 -2
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +11 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/dataFixture.js +4 -2
- package/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/lib/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
- package/lib/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
- package/lib/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
- package/lib/components/Tile/Tile.js +2 -3
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/hooks/useOutsideClick.d.ts +5 -0
- package/lib/hooks/useOutsideClick.js +18 -0
- package/lib/hooks/useOutsideClick.js.map +1 -0
- package/lib/hooks/{useFetchSafeBoxes.d.ts → useSafeBoxes.d.ts} +1 -3
- package/lib/hooks/{useFetchSafeBoxes.js → useSafeBoxes.js} +7 -8
- package/lib/hooks/useSafeBoxes.js.map +1 -0
- package/lib/icons/IconName.d.ts +1 -92
- package/lib/icons/IconName.js +3 -3
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/BlockDecorator.d.ts +1 -0
- package/lib/model/BlockDecorator.js +1 -0
- package/lib/model/BlockDecorator.js.map +1 -1
- package/lib/model/BlocksRegistry.d.ts +4 -1
- package/lib/model/HeadlineType.d.ts +8 -0
- package/lib/model/Picture.d.ts +1 -0
- package/lib/react/setup-fixture.js +0 -2
- package/lib/react/setup-fixture.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +3 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.d.ts +0 -3
- package/lib/ui-kit/BlockWrapper.js +4 -4
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Button/Button.js +6 -10
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.js +1 -1
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +3 -2
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +1 -7
- package/lib/ui-kit/Button/ButtonSection.js +5 -10
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
- package/lib/ui-kit/Button/buttonClassNameConstants.js +6 -0
- package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -2
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/adjustValue .d.ts +2 -0
- package/lib/ui-kit/CurrencyInput/adjustValue .js +9 -2
- package/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/lib/ui-kit/Foldable/Foldable.d.ts +5 -18
- package/lib/ui-kit/Foldable/Foldable.js +10 -18
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
- package/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/lib/ui-kit/Foldable/FoldableSection.js +15 -0
- package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/lib/ui-kit/Icon/Icon.js +4 -5
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +0 -1
- package/lib/ui-kit/Img/Img.d.ts +1 -2
- package/lib/ui-kit/Img/Img.js +1 -6
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.js +1 -3
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +12 -3
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +2 -0
- package/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/lib/ui-kit/IntersectionObserverTag.js +20 -0
- package/lib/ui-kit/IntersectionObserverTag.js.map +1 -0
- package/lib/ui-kit/List/List.fixture.d.ts +0 -4
- package/lib/ui-kit/List/List.js +13 -8
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.d.ts +2 -2
- package/lib/ui-kit/List/ListItem.js +7 -21
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/List/ListProps.d.ts +5 -3
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +5 -2
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/utils/getSanitizedValue.d.ts +1 -0
- package/lib/utils/getSanitizedValue.js +2 -0
- package/lib/utils/getSanitizedValue.js.map +1 -0
- package/mobile/bundle/EventBus/EventBus.d.ts +10 -0
- package/mobile/bundle/EventBus/EventMap.d.ts +7 -0
- package/mobile/bundle/ProjectSettings.d.ts +24 -0
- package/mobile/bundle/api/DaDataAPI.d.ts +15 -0
- package/mobile/bundle/api/LikeAPI.d.ts +9 -0
- package/mobile/bundle/bundle.umd.js +157 -625
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Accordion/Accordion.d.ts +5 -0
- package/mobile/bundle/components/Accordion/AccordionContent.d.ts +45 -0
- package/mobile/bundle/components/Accordion/AccordionItem.d.ts +2 -0
- package/mobile/bundle/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/bundle/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/bundle/components/BaseTile/BaseTile.d.ts +5 -0
- package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +15 -0
- package/mobile/bundle/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/mobile/bundle/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/mobile/bundle/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +52 -0
- package/mobile/bundle/components/Blocks.d.ts +17 -0
- package/mobile/bundle/components/Bonus/Bonus.d.ts +5 -0
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +45 -0
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +15 -0
- package/mobile/bundle/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
- package/mobile/bundle/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/mobile/bundle/components/Calculator/Calculator.d.ts +5 -0
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +129 -0
- package/mobile/bundle/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +7 -0
- package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/mobile/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +9 -0
- package/mobile/bundle/components/Calculator/Rate.d.ts +7 -0
- package/mobile/bundle/components/Calculator/constants.d.ts +16 -0
- package/mobile/bundle/components/Calculator/getBonus.d.ts +2 -0
- package/mobile/bundle/components/Calculator/getCreditRate.d.ts +7 -0
- package/mobile/bundle/components/Calculator/getDefaultMonths.d.ts +1 -0
- package/mobile/bundle/components/Calculator/getDefaultSum.d.ts +1 -0
- package/mobile/bundle/components/Calculator/getMonthlyPayment.d.ts +6 -0
- package/mobile/bundle/components/Calculator/renderButtonSection.d.ts +2 -0
- package/mobile/bundle/components/Calculator/renderCalculatorBlock.d.ts +3 -0
- package/mobile/bundle/components/Calculator/renderFootnote.d.ts +2 -0
- package/mobile/bundle/components/Calculator/renderInitialFeeInput.d.ts +6 -0
- package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +8 -0
- package/mobile/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +6 -0
- package/mobile/bundle/components/Calculator/renderProposal.d.ts +2 -0
- package/mobile/bundle/components/Calculator/renderProposalMortgage.d.ts +8 -0
- package/mobile/bundle/components/Calculator/renderRealEstateValue.d.ts +6 -0
- package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +11 -0
- package/mobile/bundle/components/Calculator/useBonusCalculatorParams.d.ts +36 -0
- package/mobile/bundle/components/Calculator/useCalculatorParams.d.ts +1 -0
- package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +27 -0
- package/mobile/bundle/components/CardTransfer/CardTransfer.d.ts +5 -0
- package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +10 -0
- package/mobile/bundle/components/Catalog/Catalog.d.ts +5 -0
- package/mobile/bundle/components/Catalog/CatalogCard.d.ts +7 -0
- package/mobile/bundle/components/Catalog/CatalogContent.d.ts +25 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +50 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/mobile/bundle/components/ComparisonTable/HeaderCell.d.ts +11 -0
- package/mobile/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
- package/mobile/bundle/components/ComparisonTable/TableCell.d.ts +9 -0
- package/mobile/bundle/components/ComparisonTable/TableColumn.d.ts +15 -0
- package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +14 -0
- package/mobile/bundle/components/ComparisonTable/TableRowContainer.d.ts +1 -0
- package/mobile/bundle/components/ComparisonTable/constants.d.ts +6 -0
- package/mobile/bundle/components/ContentPage/ContentPage.d.ts +10 -0
- package/mobile/bundle/components/ContentPage/ContentPageContext.d.ts +17 -0
- package/mobile/bundle/components/ContentPage/ContentPageHead.d.ts +7 -0
- package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +5 -0
- package/mobile/bundle/components/ContentPage/filterBlocks.d.ts +3 -0
- package/mobile/bundle/components/ContentPage/normalizeBlock.d.ts +2 -0
- package/mobile/bundle/components/ContentPage/normalizePage.d.ts +3 -0
- package/mobile/bundle/components/ContentPage/renderBlock.d.ts +13 -0
- package/mobile/bundle/components/ErrorBlock/ErrorBlock.d.ts +5 -0
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +48 -0
- package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +21 -0
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +8 -0
- package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +13 -0
- package/mobile/bundle/components/Footer/Contacts.d.ts +7 -0
- package/mobile/bundle/components/Footer/Footer.d.ts +5 -0
- package/mobile/bundle/components/Footer/FooterContent.d.ts +44 -0
- package/mobile/bundle/components/Footer/FooterLink.d.ts +5 -0
- package/mobile/bundle/components/Footer/HorizontalNavigation.d.ts +6 -0
- package/mobile/bundle/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/mobile/bundle/components/Footer/MediaButton.d.ts +7 -0
- package/mobile/bundle/components/Footer/Sitemap.d.ts +8 -0
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +8 -0
- package/mobile/bundle/components/Footer/TextInformation.d.ts +2 -0
- package/mobile/bundle/components/Footer/TextInformationLink.d.ts +8 -0
- package/mobile/bundle/components/Gallery/Gallery.d.ts +2 -0
- package/mobile/bundle/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +13 -0
- package/mobile/bundle/components/Gallery/GalleryContent.d.ts +64 -0
- package/mobile/bundle/components/Gallery/GalleryInner.d.ts +7 -0
- package/mobile/bundle/components/Gallery/GalleryProps.d.ts +4 -0
- package/mobile/bundle/components/Gallery/constants.d.ts +4 -0
- package/mobile/bundle/components/GracePeriod/GracePeriod.d.ts +5 -0
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +32 -0
- package/mobile/bundle/components/Header/DropdownMenu.d.ts +14 -0
- package/mobile/bundle/components/Header/Header.d.ts +5 -0
- package/mobile/bundle/components/Header/Header.fallback.d.ts +2 -0
- package/mobile/bundle/components/Header/HeaderBurger.d.ts +11 -0
- package/mobile/bundle/components/Header/HeaderContent.d.ts +41 -0
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +10 -0
- package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +9 -0
- package/mobile/bundle/components/Header/HeaderTop.d.ts +6 -0
- package/mobile/bundle/components/Headline/Headline.d.ts +5 -0
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +15 -0
- package/mobile/bundle/components/Headline/constants.d.ts +20 -0
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +7 -0
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/bundle/components/LikeControl/LikeControl.d.ts +2 -0
- package/mobile/bundle/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +43 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/mobile/bundle/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/mobile/bundle/components/LinkList/LinkList.d.ts +5 -0
- package/mobile/bundle/components/LinkList/LinkListContent.d.ts +8 -0
- package/mobile/bundle/components/LinkList/linkListContentExample.d.ts +2 -0
- package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/mobile/bundle/components/MiniGallery/MiniGalleryContent.d.ts +12 -0
- package/mobile/bundle/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +31 -0
- package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
- package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +10 -0
- package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +5 -0
- package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +25 -0
- package/mobile/bundle/components/OtherProducts/OtherProductsItem.d.ts +6 -0
- package/mobile/bundle/components/PictureText/PictureText.d.ts +5 -0
- package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +34 -0
- package/mobile/bundle/components/Placeholder/Placeholder.d.ts +6 -0
- package/mobile/bundle/components/Placeholder/PlaceholderContent.d.ts +5 -0
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +54 -0
- package/mobile/bundle/components/ProductBlock/ProductBlockInner.d.ts +4 -0
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +4 -0
- package/mobile/bundle/components/ProductBlock/renderBenefit.d.ts +5 -0
- package/mobile/bundle/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/mobile/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +29 -0
- package/mobile/bundle/components/ProductTile/ProductTile.d.ts +5 -0
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +33 -0
- package/mobile/bundle/components/PromoTile/PromoTile.d.ts +5 -0
- package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +12 -0
- package/mobile/bundle/components/Recommendation/Recommendation.d.ts +5 -0
- package/mobile/bundle/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +43 -0
- package/mobile/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
- package/mobile/bundle/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
- package/mobile/bundle/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
- package/mobile/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +9 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +12 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +11 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +6 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +8 -0
- package/mobile/bundle/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
- package/mobile/bundle/components/SafeDepositRental/YandexMap.d.ts +5 -0
- package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +2 -0
- package/mobile/bundle/components/SafeDepositRental/useGetRegions.d.ts +6 -0
- package/mobile/bundle/components/SafeDepositRental/useYandexMaps.d.ts +2 -0
- package/mobile/bundle/components/SafeDepositRental/utils.d.ts +3 -0
- package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +43 -0
- package/mobile/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +11 -0
- package/mobile/bundle/components/StepsBlock/renderItems.d.ts +8 -0
- package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/bundle/components/Tabs/Tabs.d.ts +13 -0
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +36 -0
- package/mobile/bundle/components/Tabs/renderGroupTab.d.ts +4 -0
- package/mobile/bundle/components/Tabs/renderLinkTab.d.ts +9 -0
- package/mobile/bundle/components/Tabs/renderTab.d.ts +12 -0
- package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +6 -0
- package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +12 -0
- package/mobile/bundle/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +5 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +9 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +95 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +9 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +8 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableVertical.d.ts +6 -0
- package/mobile/bundle/components/TariffsTable/constants.d.ts +4 -0
- package/mobile/bundle/components/TariffsTable/dataFixture.d.ts +5 -0
- package/mobile/bundle/components/TariffsTable/utils/getButtonAriaLabel.d.ts +2 -0
- package/mobile/bundle/components/TextBlock/TextBlock.d.ts +5 -0
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +22 -0
- package/mobile/bundle/components/Tile/Tile.d.ts +6 -0
- package/mobile/bundle/components/Tile/TileContent.d.ts +34 -0
- package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +11 -0
- package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +4 -0
- package/mobile/bundle/content-page-repository/index.d.ts +2 -0
- package/mobile/bundle/content-page-repository/mapJSON.d.ts +1 -0
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +3 -0
- package/mobile/bundle/content-page-repository/transformImg.d.ts +11 -0
- package/mobile/bundle/content-page-repository/transformMarkdown.d.ts +1 -0
- package/mobile/bundle/content-page-repository/transformPicture.d.ts +3 -0
- package/mobile/bundle/content-page-repository/transformSrc.d.ts +3 -0
- package/mobile/bundle/hooks/useExchangeRates.d.ts +2 -0
- package/mobile/bundle/hooks/useExternalNS.d.ts +2 -0
- package/mobile/bundle/hooks/useGeolocation.d.ts +1 -0
- package/mobile/bundle/hooks/useLikeService.d.ts +5 -0
- package/mobile/bundle/hooks/useLink.d.ts +18 -0
- package/mobile/bundle/hooks/useOutsideClick.d.ts +5 -0
- package/mobile/{lib/hooks/useFetchSafeBoxes.d.ts → bundle/hooks/useSafeBoxes.d.ts} +1 -3
- package/mobile/bundle/hooks/useSearch.d.ts +4 -0
- package/mobile/bundle/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/mobile/bundle/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/mobile/bundle/icons/IconName.d.ts +194 -0
- package/mobile/bundle/index.d.ts +9 -0
- package/mobile/bundle/model/AlignType.d.ts +9 -0
- package/mobile/bundle/model/BgColorVersion.d.ts +8 -0
- package/mobile/bundle/model/BlockDecorator.d.ts +15 -0
- package/mobile/bundle/model/BlockVersion.d.ts +11 -0
- package/mobile/bundle/model/BlocksRegistry.d.ts +8 -0
- package/mobile/bundle/model/ButtonVersion.d.ts +6 -0
- package/mobile/bundle/model/ContentPageDef.d.ts +52 -0
- package/mobile/bundle/model/EmptyOptionType.d.ts +4 -0
- package/mobile/bundle/model/Fallback.d.ts +5 -0
- package/mobile/bundle/model/Footnote.d.ts +4 -0
- package/mobile/bundle/model/GalleryVersion.d.ts +1 -0
- package/mobile/bundle/model/HeadlineType.d.ts +29 -0
- package/mobile/bundle/model/IconVersion.d.ts +9 -0
- package/mobile/bundle/model/ImageSize.d.ts +6 -0
- package/mobile/bundle/model/InputTypes.d.ts +1 -0
- package/mobile/bundle/model/LinkProps.d.ts +24 -0
- package/mobile/bundle/model/ListOrientation.d.ts +8 -0
- package/mobile/bundle/model/Picture.d.ts +59 -0
- package/mobile/bundle/model/ProductColorVersion.d.ts +4 -0
- package/mobile/bundle/model/SitemapProps.d.ts +24 -0
- package/mobile/bundle/model/SizeVersion.d.ts +8 -0
- package/mobile/bundle/model/TableVersion.d.ts +1 -0
- package/mobile/bundle/model/VNode.d.ts +1 -0
- package/mobile/bundle/react/setup-fixture.d.ts +4 -0
- package/mobile/bundle/services/sitemap/SitemapProps.d.ts +24 -0
- package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/mobile/bundle/services/sitemap/findActiveSubItem.d.ts +3 -0
- package/mobile/bundle/services/sitemap/isHrefActive.d.ts +4 -0
- package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -0
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -0
- package/mobile/bundle/services/sitemap/mergeTopItems.d.ts +2 -0
- package/mobile/bundle/services/sitemap/useSitemap.d.ts +3 -0
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +20 -0
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +7 -0
- package/mobile/bundle/ui-kit/BlocksList/BlocksListProps.d.ts +96 -0
- package/mobile/bundle/ui-kit/BlocksList/EmbeddableBlocks.d.ts +8 -0
- package/mobile/bundle/ui-kit/BlocksList/renderBlocksList.d.ts +9 -0
- package/mobile/bundle/ui-kit/Breadcrumb.d.ts +6 -0
- package/mobile/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +54 -0
- package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/mobile/bundle/ui-kit/Button/GetButtonClassParams.d.ts +6 -0
- package/mobile/bundle/ui-kit/Button/LikeButton.d.ts +6 -0
- package/mobile/bundle/ui-kit/Button/buttonClassNameConstants.d.ts +5 -0
- package/mobile/bundle/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
- package/mobile/bundle/ui-kit/Button/renderArrows.d.ts +9 -0
- package/mobile/bundle/ui-kit/Checkbox/Checkbox.d.ts +2 -0
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +7 -0
- package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -0
- package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +5 -0
- package/mobile/bundle/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
- package/mobile/bundle/ui-kit/Description/Description.d.ts +5 -0
- package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +9 -0
- package/mobile/bundle/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/bundle/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/bundle/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
- package/mobile/bundle/ui-kit/Heading/Heading.d.ts +2 -0
- package/mobile/bundle/ui-kit/Heading/HeadingProps.d.ts +23 -0
- package/mobile/bundle/ui-kit/Icon/Icon.d.ts +2 -0
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +21 -0
- package/mobile/bundle/ui-kit/Img/Img.d.ts +2 -0
- package/mobile/bundle/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/mobile/bundle/ui-kit/Img/ImgInner.d.ts +2 -0
- package/mobile/bundle/ui-kit/Img/ImgProps.d.ts +11 -0
- package/mobile/bundle/ui-kit/Img/getIconVersion.d.ts +1 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/mobile/bundle/ui-kit/Input/Input.d.ts +2 -0
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +16 -0
- package/mobile/bundle/ui-kit/InputRange/InputRange.d.ts +2 -0
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +11 -0
- package/mobile/bundle/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/mobile/bundle/ui-kit/List/List.d.ts +2 -0
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +4 -0
- package/mobile/bundle/ui-kit/List/ListItem.d.ts +12 -0
- package/mobile/bundle/ui-kit/List/ListProps.d.ts +26 -0
- package/mobile/bundle/ui-kit/Logo/Logo.d.ts +8 -0
- package/mobile/bundle/ui-kit/Radio/Radio.d.ts +2 -0
- package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +9 -0
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/mobile/bundle/ui-kit/SVG.d.ts +19 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/mobile/bundle/ui-kit/Select/Select.d.ts +14 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +18 -0
- package/mobile/bundle/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +14 -0
- package/mobile/bundle/utils/addSpacesBetweenNumbers.d.ts +1 -0
- package/mobile/bundle/utils/adjustHref.d.ts +4 -0
- package/mobile/bundle/utils/assertUnreachable.d.ts +1 -0
- package/mobile/bundle/utils/changeHashOnObserve.d.ts +9 -0
- package/mobile/bundle/utils/checkIsIconRenderable.d.ts +2 -0
- package/mobile/bundle/utils/clamp.d.ts +1 -0
- package/mobile/bundle/utils/fetchJSON.d.ts +2 -0
- package/mobile/bundle/utils/getColSpan.d.ts +1 -0
- package/mobile/bundle/utils/getCurrentDate.d.ts +1 -0
- package/mobile/bundle/utils/getGeolocation.d.ts +1 -0
- package/mobile/bundle/utils/getSanitizedValue.d.ts +1 -0
- package/mobile/bundle/utils/isPictureSizeEmpty.d.ts +2 -0
- package/mobile/bundle/utils/joinList.d.ts +1 -0
- package/mobile/bundle/utils/maxBy.d.ts +2 -0
- package/mobile/bundle/utils/roundTo.d.ts +1 -0
- package/mobile/bundle/utils/style2className.d.ts +1 -0
- package/mobile/bundle/utils/tableFunc.d.ts +2 -0
- package/mobile/bundle/utils/url.d.ts +5 -0
- package/mobile/bundle/utils/withoutMobilePath.d.ts +2 -0
- package/mobile/dist/components/Accordion/Accordion.js +5 -2
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +9 -7
- package/mobile/dist/components/Accordion/AccordionItem.d.ts +1 -4
- package/mobile/dist/components/Accordion/AccordionItem.js +7 -8
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/dist/components/Accordion/AccordionItemProps.js +2 -0
- package/mobile/dist/components/Accordion/AccordionItemProps.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.js +6 -0
- package/mobile/dist/components/Accordion/AccordionItemsList.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.d.ts +0 -1
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +3 -2
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +1 -1
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +1 -23
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +13 -48
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +5 -8
- package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -8
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +0 -11
- package/mobile/dist/components/ContentPage/filterBlocks.js +1 -3
- package/mobile/dist/components/ContentPage/filterBlocks.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderBlock.js +1 -1
- package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +8 -7
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +5 -9
- package/mobile/dist/components/Gallery/Gallery.js +7 -3
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +14 -17
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +2 -2
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +11 -3
- package/mobile/dist/components/Header/Header.js +5 -5
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +3 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Headline/constants.d.ts +2 -1
- package/mobile/dist/components/Headline/constants.js +10 -1
- package/mobile/dist/components/Headline/constants.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +49 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +5 -5
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +5 -0
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +17 -3
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +7 -28
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/utils.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +9 -2
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +4 -2
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderItems.d.ts +8 -0
- package/mobile/dist/components/StepsBlock/renderItems.js +10 -0
- package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -0
- package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/dist/components/StepsBlock/renderStepContent.js +20 -0
- package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -0
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +1 -2
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/dataFixture.js +4 -2
- package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
- package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +2 -3
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/hooks/useOutsideClick.d.ts +5 -0
- package/mobile/dist/hooks/useOutsideClick.js +21 -0
- package/mobile/dist/hooks/useOutsideClick.js.map +1 -0
- package/mobile/dist/hooks/useSafeBoxes.d.ts +20 -0
- package/{dist/hooks/useFetchSafeBoxes.js → mobile/dist/hooks/useSafeBoxes.js} +9 -10
- package/mobile/dist/hooks/useSafeBoxes.js.map +1 -0
- package/mobile/dist/icons/IconName.d.ts +1 -92
- package/mobile/dist/icons/IconName.js +4 -4
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/BlockDecorator.d.ts +1 -0
- package/mobile/dist/model/BlockDecorator.js +2 -1
- package/mobile/dist/model/BlockDecorator.js.map +1 -1
- package/mobile/dist/model/BlocksRegistry.d.ts +4 -1
- package/mobile/dist/model/HeadlineType.d.ts +8 -0
- package/mobile/dist/model/Picture.d.ts +1 -0
- package/mobile/dist/react/setup-fixture.js +0 -2
- package/mobile/dist/react/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +3 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +0 -3
- package/mobile/dist/ui-kit/BlockWrapper.js +5 -5
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.js +1 -1
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +3 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +1 -7
- package/mobile/dist/ui-kit/Button/ButtonSection.js +5 -10
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +7 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +7 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .d.ts +2 -0
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js +11 -2
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +16 -0
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +5 -18
- package/mobile/dist/ui-kit/Foldable/Foldable.js +9 -17
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/dist/ui-kit/Foldable/FoldablePartProps.js +2 -0
- package/mobile/dist/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js +17 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/Icon.js +4 -5
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +0 -1
- package/mobile/dist/ui-kit/Img/Img.js +1 -3
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +12 -3
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +2 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/mobile/dist/ui-kit/IntersectionObserverTag.js +22 -0
- package/mobile/dist/ui-kit/IntersectionObserverTag.js.map +1 -0
- package/mobile/dist/ui-kit/List/List.js +13 -8
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.d.ts +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js +8 -23
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +5 -3
- package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +4 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/utils/getSanitizedValue.d.ts +1 -0
- package/mobile/dist/utils/getSanitizedValue.js +5 -0
- package/mobile/dist/utils/getSanitizedValue.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +5 -2
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +9 -7
- package/mobile/lib/components/Accordion/AccordionItem.d.ts +1 -4
- package/mobile/lib/components/Accordion/AccordionItem.js +7 -8
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemProps.d.ts +5 -0
- package/mobile/lib/components/Accordion/AccordionItemProps.js +2 -0
- package/mobile/lib/components/Accordion/AccordionItemProps.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.d.ts +1 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.js +4 -0
- package/mobile/lib/components/Accordion/AccordionItemsList.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.d.ts +0 -1
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -2
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +1 -1
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +1 -23
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +14 -49
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +5 -8
- package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -8
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +0 -11
- package/mobile/lib/components/ContentPage/filterBlocks.js +1 -3
- package/mobile/lib/components/ContentPage/filterBlocks.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderBlock.js +2 -2
- package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +8 -7
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +5 -9
- package/mobile/lib/components/Gallery/Gallery.js +7 -3
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +15 -18
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +2 -2
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +11 -3
- package/mobile/lib/components/Header/Header.js +5 -5
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Headline/constants.d.ts +2 -1
- package/mobile/lib/components/Headline/constants.js +9 -0
- package/mobile/lib/components/Headline/constants.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +5 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +47 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +49 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +2 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +1 -0
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +5 -5
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +5 -0
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +18 -4
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +9 -30
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
- package/mobile/lib/components/SafeDepositRental/utils.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +9 -2
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +4 -2
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderItems.d.ts +8 -0
- package/mobile/lib/components/StepsBlock/renderItems.js +7 -0
- package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -0
- package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +14 -0
- package/mobile/lib/components/StepsBlock/renderStepContent.js +17 -0
- package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -0
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +1 -2
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/dataFixture.js +4 -2
- package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
- package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +2 -3
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/hooks/useOutsideClick.d.ts +5 -0
- package/mobile/lib/hooks/useOutsideClick.js +18 -0
- package/mobile/lib/hooks/useOutsideClick.js.map +1 -0
- package/mobile/lib/hooks/useSafeBoxes.d.ts +20 -0
- package/mobile/lib/hooks/{useFetchSafeBoxes.js → useSafeBoxes.js} +7 -8
- package/mobile/lib/hooks/useSafeBoxes.js.map +1 -0
- package/mobile/lib/icons/IconName.d.ts +1 -92
- package/mobile/lib/icons/IconName.js +3 -3
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/BlockDecorator.d.ts +1 -0
- package/mobile/lib/model/BlockDecorator.js +1 -0
- package/mobile/lib/model/BlockDecorator.js.map +1 -1
- package/mobile/lib/model/BlocksRegistry.d.ts +4 -1
- package/mobile/lib/model/HeadlineType.d.ts +8 -0
- package/mobile/lib/model/Picture.d.ts +1 -0
- package/mobile/lib/react/setup-fixture.js +0 -2
- package/mobile/lib/react/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +3 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +0 -3
- package/mobile/lib/ui-kit/BlockWrapper.js +4 -4
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.js +1 -1
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +3 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +1 -7
- package/mobile/lib/ui-kit/Button/ButtonSection.js +5 -10
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +6 -0
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -2
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .d.ts +2 -0
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js +9 -2
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +14 -0
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -0
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +5 -18
- package/mobile/lib/ui-kit/Foldable/Foldable.js +10 -18
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.d.ts +4 -0
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js +2 -0
- package/mobile/lib/ui-kit/Foldable/FoldablePartProps.js.map +1 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.d.ts +5 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js +15 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/Icon.js +4 -5
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +0 -1
- package/mobile/lib/ui-kit/Img/Img.js +1 -3
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +12 -3
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +2 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/IntersectionObserverTag.d.ts +11 -0
- package/mobile/lib/ui-kit/IntersectionObserverTag.js +20 -0
- package/mobile/lib/ui-kit/IntersectionObserverTag.js.map +1 -0
- package/mobile/lib/ui-kit/List/List.js +13 -8
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.d.ts +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js +7 -21
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +5 -3
- package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +5 -2
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/utils/getSanitizedValue.d.ts +1 -0
- package/mobile/lib/utils/getSanitizedValue.js +2 -0
- package/mobile/lib/utils/getSanitizedValue.js.map +1 -0
- package/mobile/src/common.css +11 -3
- package/mobile/src/components/Accordion/Accordion.tsx +17 -7
- package/mobile/src/components/Accordion/AccordionContent.ts +10 -7
- package/mobile/src/components/Accordion/AccordionItem.tsx +61 -33
- package/mobile/src/components/Accordion/AccordionItemProps.ts +6 -0
- package/mobile/src/components/Accordion/AccordionItemsList.tsx +5 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Calculator/CalculatorContent.ts +1 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -1
- package/mobile/src/components/Catalog/Catalog.tsx +2 -2
- package/mobile/src/components/Catalog/CatalogCard.tsx +1 -35
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +49 -120
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +25 -27
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +0 -14
- package/mobile/src/components/ContentPage/filterBlocks.ts +1 -3
- package/mobile/src/components/ContentPage/renderBlock.tsx +2 -2
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +1 -3
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +1 -1
- package/mobile/src/components/Footer/Contacts.tsx +1 -0
- package/mobile/src/components/Footer/Footer.tsx +15 -13
- package/mobile/src/components/Footer/FooterContent.ts +5 -10
- package/mobile/src/components/Gallery/Gallery.tsx +15 -5
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +60 -44
- package/mobile/src/components/Gallery/GalleryContainer.tsx +10 -2
- package/mobile/src/components/Gallery/GalleryContent.ts +11 -3
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +5 -0
- package/mobile/src/components/Header/Header.tsx +16 -11
- package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/mobile/src/components/Headline/constants.ts +11 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
- package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +26 -14
- package/mobile/src/components/ProductTile/ProductTile.tsx +3 -3
- package/mobile/src/components/Recommendation/RecommendationContent.ts +5 -0
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +34 -7
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +13 -21
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +21 -49
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -3
- package/mobile/src/components/SafeDepositRental/utils.ts +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.ui.json +8 -0
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +9 -2
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +5 -2
- package/mobile/src/components/StepsBlock/renderItems.tsx +26 -0
- package/mobile/src/components/StepsBlock/renderStepContent.tsx +63 -0
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +4 -8
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -4
- package/mobile/src/components/TariffsTable/{dataFixture.ts → dataFixture.tsx} +3 -2
- package/mobile/src/components/TariffsTable/utils/getButtonAriaLabel.ts +1 -3
- package/mobile/src/components/Tile/Tile.tsx +3 -5
- package/mobile/src/hooks/useOutsideClick.ts +25 -0
- package/mobile/src/hooks/{useFetchSafeBoxes.ts → useSafeBoxes.ts} +7 -8
- package/mobile/src/icons/IconName.ts +3 -3
- package/mobile/src/model/BlockDecorator.ts +2 -0
- package/mobile/src/model/BlocksRegistry.ts +4 -1
- package/mobile/src/model/HeadlineType.ts +10 -0
- package/mobile/src/model/Picture.ts +1 -0
- package/mobile/src/react/setup-fixture.ts +0 -2
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -5
- package/mobile/src/ui-kit/BlockWrapper.tsx +5 -9
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/mobile/src/ui-kit/Button/Button.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +1 -7
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +19 -41
- package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +7 -0
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +19 -3
- package/mobile/src/ui-kit/CurrencyInput/adjustValue .ts +13 -2
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +26 -78
- package/mobile/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
- package/mobile/src/ui-kit/Icon/Icon.tsx +5 -6
- package/mobile/src/ui-kit/Icon/IconProps.ts +0 -1
- package/mobile/src/ui-kit/Img/Img.tsx +1 -13
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +14 -5
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -3
- package/mobile/src/ui-kit/Input/Input.tsx +18 -2
- package/mobile/src/ui-kit/Input/InputProps.ts +2 -0
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +2 -3
- package/mobile/src/ui-kit/IntersectionObserverTag.tsx +49 -0
- package/mobile/src/ui-kit/List/List.tsx +29 -18
- package/mobile/src/ui-kit/List/ListItem.tsx +14 -26
- package/mobile/src/ui-kit/List/ListProps.ts +5 -3
- package/mobile/src/ui-kit/Radio/Radio.tsx +3 -2
- package/mobile/src/ui-kit/Select/Select.tsx +8 -3
- package/mobile/src/utils/getSanitizedValue.ts +1 -0
- package/package.json +3 -3
- package/src/common.css +11 -3
- package/src/components/Accordion/Accordion.mobile.tsx +17 -7
- package/src/components/Accordion/Accordion.tsx +12 -3
- package/src/components/Accordion/AccordionContent.ts +10 -7
- package/src/components/Accordion/AccordionItem.mobile.tsx +61 -33
- package/src/components/Accordion/AccordionItem.tsx +45 -33
- package/src/components/Accordion/AccordionItemProps.ts +6 -0
- package/src/components/Accordion/AccordionItemsList.tsx +5 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +4 -4
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +2 -0
- package/src/components/Calculator/CalculatorContent.ts +1 -1
- package/src/components/CardTransfer/CardTransfer.tsx +3 -1
- package/src/components/Catalog/Catalog.fixture.tsx +10 -3
- package/src/components/Catalog/Catalog.tsx +2 -2
- package/src/components/Catalog/CatalogCard.tsx +1 -35
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +49 -120
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/TableCell.tsx +2 -2
- package/src/components/ComparisonTable/TableColumn.tsx +25 -27
- package/src/components/ContentPage/ContentPageContext.tsx +0 -14
- package/src/components/ContentPage/filterBlocks.mobile.ts +1 -3
- package/src/components/ContentPage/filterBlocks.ts +1 -2
- package/src/components/ContentPage/renderBlock.tsx +2 -2
- package/src/components/ErrorBlock/ErrorBlock.tsx +1 -3
- package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +8 -1
- package/src/components/ExchangeRateTile/renderInput.tsx +1 -1
- package/src/components/Footer/Contacts.tsx +1 -0
- package/src/components/Footer/Footer.mobile.tsx +15 -13
- package/src/components/Footer/FooterContent.ts +5 -10
- package/src/components/Gallery/Gallery.fixture.tsx +2 -2
- package/src/components/Gallery/Gallery.mobile.tsx +15 -5
- package/src/components/Gallery/GalleryCardInner.tsx +60 -44
- package/src/components/Gallery/GalleryContainer.tsx +10 -2
- package/src/components/Gallery/GalleryContent.ts +11 -3
- package/src/components/GracePeriod/GracePeriod.ui.json +5 -0
- package/src/components/Header/Header.mobile.tsx +16 -11
- package/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/src/components/Headline/constants.ts +11 -1
- package/src/components/InvestmentInfo/InvestmentInfo.example.json +48 -0
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +107 -0
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +149 -0
- package/src/components/InvestmentInfo/InvestmentInfo.ui.json +16 -0
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +55 -0
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +45 -0
- package/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +14 -4
- package/src/components/MobileAppTile/MobileAppTile.tsx +3 -6
- package/src/components/OtherProducts/OtherProductsItem.tsx +26 -14
- package/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/src/components/ProductTile/ProductTile.tsx +3 -3
- package/src/components/Recommendation/RecommendationContent.ts +5 -0
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
- package/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +34 -7
- package/src/components/SafeDepositRental/SafeDepositRental.ui.json +8 -1
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +13 -21
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +21 -49
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -3
- package/src/components/SafeDepositRental/utils.ts +1 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +48 -6
- package/src/components/StepsBlock/StepsBlock.tsx +8 -49
- package/src/components/StepsBlock/StepsBlock.ui.json +8 -0
- package/src/components/StepsBlock/StepsBlockContent.ts +9 -2
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +5 -2
- package/src/components/StepsBlock/renderItems.tsx +26 -0
- package/src/components/StepsBlock/renderStepContent.tsx +63 -0
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +4 -8
- package/src/components/TariffsTable/EmbeddableCellData.tsx +5 -10
- package/src/components/TariffsTable/TariffsTable.tsx +32 -25
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -4
- package/src/components/TariffsTable/{dataFixture.ts → dataFixture.tsx} +3 -2
- package/src/components/TariffsTable/utils/getButtonAriaLabel.ts +1 -3
- package/src/components/Tile/Tile.tsx +3 -5
- package/src/hooks/useOutsideClick.ts +25 -0
- package/src/hooks/{useFetchSafeBoxes.ts → useSafeBoxes.ts} +7 -8
- package/src/icons/IconName.ts +34 -92
- package/src/model/BlockDecorator.ts +2 -0
- package/src/model/BlocksRegistry.ts +4 -1
- package/src/model/HeadlineType.ts +10 -0
- package/src/model/Picture.ts +1 -0
- package/src/react/setup-fixture.ts +0 -2
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -5
- package/src/ui-kit/BlockWrapper.tsx +5 -9
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/src/ui-kit/Button/Button.mobile.tsx +1 -1
- package/src/ui-kit/Button/Button.tsx +55 -27
- package/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/src/ui-kit/Button/ButtonProps.ts +1 -7
- package/src/ui-kit/Button/ButtonSection.tsx +19 -41
- package/src/ui-kit/Button/buttonClassNameConstants.ts +7 -0
- package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +19 -3
- package/src/ui-kit/CurrencyInput/adjustValue .ts +13 -2
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +52 -0
- package/src/ui-kit/Foldable/Foldable.tsx +26 -78
- package/src/ui-kit/Foldable/FoldablePartProps.ts +4 -0
- package/src/ui-kit/Foldable/FoldableSection.tsx +30 -0
- package/src/ui-kit/Icon/Icon.tsx +5 -6
- package/src/ui-kit/Icon/IconProps.ts +0 -1
- package/src/ui-kit/Img/Img.mobile.tsx +1 -13
- package/src/ui-kit/Img/Img.tsx +1 -17
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +14 -5
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -3
- package/src/ui-kit/Input/Input.tsx +18 -2
- package/src/ui-kit/Input/InputProps.ts +2 -0
- package/src/ui-kit/InputRange/InputRange.tsx +2 -3
- package/src/ui-kit/IntersectionObserverTag.tsx +49 -0
- package/src/ui-kit/List/List.fixture.tsx +1 -21
- package/src/ui-kit/List/List.tsx +29 -18
- package/src/ui-kit/List/ListItem.tsx +14 -26
- package/src/ui-kit/List/ListProps.ts +5 -3
- package/src/ui-kit/Radio/Radio.tsx +3 -2
- package/src/ui-kit/Select/Select.tsx +8 -3
- package/src/utils/getSanitizedValue.ts +1 -0
- package/tailwind.config.cjs +6 -1
- package/dist/components/Accordion/AccordionItemInner.d.ts +0 -2
- package/dist/components/Accordion/AccordionItemInner.js +0 -9
- package/dist/components/Accordion/AccordionItemInner.js.map +0 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.d.ts +0 -2
- package/dist/components/Accordion/AccordionItemInner.mobile.js +0 -9
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +0 -1
- package/dist/components/Accordion/useActiveHandler.d.ts +0 -7
- package/dist/components/Accordion/useActiveHandler.js +0 -22
- package/dist/components/Accordion/useActiveHandler.js.map +0 -1
- package/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/dist/components/ContentPage/isBlockInRegistry.js +0 -7
- package/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/dist/hooks/useFetchSafeBoxes.js.map +0 -1
- package/dist/react/IntersectionObserverTag.d.ts +0 -2
- package/dist/react/IntersectionObserverTag.js +0 -43
- package/dist/react/IntersectionObserverTag.js.map +0 -1
- package/dist/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
- package/dist/ui-kit/Foldable/useActiveHandler.js +0 -23
- package/dist/ui-kit/Foldable/useActiveHandler.js.map +0 -1
- package/dist/utils/getAccordionItems.d.ts +0 -1
- package/dist/utils/getAccordionItems.js +0 -13
- package/dist/utils/getAccordionItems.js.map +0 -1
- package/lib/components/Accordion/AccordionItemInner.d.ts +0 -2
- package/lib/components/Accordion/AccordionItemInner.js +0 -7
- package/lib/components/Accordion/AccordionItemInner.js.map +0 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.d.ts +0 -2
- package/lib/components/Accordion/AccordionItemInner.mobile.js +0 -7
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +0 -1
- package/lib/components/Accordion/useActiveHandler.d.ts +0 -7
- package/lib/components/Accordion/useActiveHandler.js +0 -19
- package/lib/components/Accordion/useActiveHandler.js.map +0 -1
- package/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/lib/components/ContentPage/isBlockInRegistry.js +0 -4
- package/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/lib/hooks/useFetchSafeBoxes.js.map +0 -1
- package/lib/react/IntersectionObserverTag.d.ts +0 -2
- package/lib/react/IntersectionObserverTag.js +0 -17
- package/lib/react/IntersectionObserverTag.js.map +0 -1
- package/lib/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
- package/lib/ui-kit/Foldable/useActiveHandler.js +0 -20
- package/lib/ui-kit/Foldable/useActiveHandler.js.map +0 -1
- package/lib/utils/getAccordionItems.d.ts +0 -1
- package/lib/utils/getAccordionItems.js +0 -10
- package/lib/utils/getAccordionItems.js.map +0 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.d.ts +0 -2
- package/mobile/dist/components/Accordion/AccordionItemInner.js +0 -9
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +0 -1
- package/mobile/dist/components/Accordion/useActiveHandler.d.ts +0 -7
- package/mobile/dist/components/Accordion/useActiveHandler.js +0 -22
- package/mobile/dist/components/Accordion/useActiveHandler.js.map +0 -1
- package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js +0 -7
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/mobile/dist/hooks/useFetchSafeBoxes.js.map +0 -1
- package/mobile/dist/react/IntersectionObserverTag.d.ts +0 -2
- package/mobile/dist/react/IntersectionObserverTag.js +0 -43
- package/mobile/dist/react/IntersectionObserverTag.js.map +0 -1
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.js +0 -23
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.js.map +0 -1
- package/mobile/dist/utils/getAccordionItems.d.ts +0 -1
- package/mobile/dist/utils/getAccordionItems.js +0 -13
- package/mobile/dist/utils/getAccordionItems.js.map +0 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.d.ts +0 -2
- package/mobile/lib/components/Accordion/AccordionItemInner.js +0 -7
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +0 -1
- package/mobile/lib/components/Accordion/useActiveHandler.d.ts +0 -7
- package/mobile/lib/components/Accordion/useActiveHandler.js +0 -19
- package/mobile/lib/components/Accordion/useActiveHandler.js.map +0 -1
- package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +0 -2
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js +0 -4
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +0 -1
- package/mobile/lib/hooks/useFetchSafeBoxes.js.map +0 -1
- package/mobile/lib/react/IntersectionObserverTag.d.ts +0 -2
- package/mobile/lib/react/IntersectionObserverTag.js +0 -17
- package/mobile/lib/react/IntersectionObserverTag.js.map +0 -1
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.js +0 -20
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.js.map +0 -1
- package/mobile/lib/utils/getAccordionItems.d.ts +0 -1
- package/mobile/lib/utils/getAccordionItems.js +0 -10
- package/mobile/lib/utils/getAccordionItems.js.map +0 -1
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +0 -11
- package/mobile/src/components/Accordion/useActiveHandler.ts +0 -25
- package/mobile/src/components/ContentPage/isBlockInRegistry.ts +0 -5
- package/mobile/src/react/IntersectionObserverTag.tsx +0 -33
- package/mobile/src/ui-kit/Foldable/useActiveHandler.ts +0 -33
- package/mobile/src/utils/getAccordionItems.ts +0 -10
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +0 -11
- package/src/components/Accordion/AccordionItemInner.tsx +0 -11
- package/src/components/Accordion/useActiveHandler.ts +0 -25
- package/src/components/ContentPage/isBlockInRegistry.ts +0 -5
- package/src/react/IntersectionObserverTag.tsx +0 -33
- package/src/ui-kit/Foldable/useActiveHandler.ts +0 -33
- package/src/utils/getAccordionItems.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 n=e=>(...n)=>t[e](...n),a=n("useState"),l=n("useEffect"),r=n("useCallback"),i=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},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:n,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:n,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,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:n,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,n){const{children:a,...l}=t||{},r=n?.slots?.default,i=a||r&&r();return e(Object.assign(l,i&&{children:i}),n)}return t.inheritAttrs=!1,t};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=100,f=x((({anchor:e,className:t,context:n,children:r,tag:o="section",labels:c})=>{const d=o,{IntersectionObserverTag:m}=n,[u,x]=a(!0),p=s({}),b=i((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[a]=n;!a.isIntersecting||a.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:e,anchorClickRef:p})),[e,p]);return l((()=>{const e=g.inst.subscribe("anchorClick",(e=>{p.current=e})),t=g.inst.subscribe("tab",(e=>{var t;"group"===e.type?x(!c?.length||!e.label||c.includes(e.label)):((t=e.label)&&(globalThis.document.location.hash=t),x(!0))}));return()=>{e(),t()}}),[p]),u?e?h(m,{tag:o,className:t,observerCallback:b,observerOptions:{threshold:new Array(18).fill(0).map(N)},anchor:e,children:r}):h(d,{className:t,children:r}):null}));function N(e,t){const n=(t+1)/b+.82;return Math.round(n*b)/b}const v={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},y=x((e=>{const{className:t="",headingType:n="h3",title:a,as:l="h3"}=e;return h(l,{className:`font-sans m-0 ${v[n]} ${t}`,children:a})})),w={ActualBalanceIcon:!1,AirPlaneIcon:!1,AppleIcon:!0,ArrowDownIcon:!0,ArrowLeftIcon:!0,ArrowUpIcon:!0,AtmIcon:!0,BankIcon:!0,BuildingIcon:!0,BurgerIcon:!0,Calendar2Icon:!0,CalendarCircleIcon:!0,CalendarIcon:!0,CalendarTickIcon:!0,Car2Icon:!0,CardIcon:!0,CardPosIcon:!0,CardTickIcon:!0,CardWithGemIcon:!1,CarIcon:!1,ChartSquareIcon:!0,CinemaIcon:!1,ClockIcon:!1,CloseIcon:!0,ComfortableCompIcon:!1,CreditCardsIcon:!1,DiscountShapeIcon:!0,DocDownloadIcon:!0,DocIcon:!0,DocIconMonoColor:!0,DocsIcon:!1,DocumentTextIcon:!0,DollarIcon:!1,DoneIcon:!1,DoneSimpleIcon:!0,EarthIcon:!1,EmptyWalletChangeIcon:!0,EmptyWalletIcon:!0,EuroIcon:!1,GeolocationIcon:!0,GlassIcon:!1,GlobalIcon:!0,GpsIcon:!0,GridIcon:!0,InterestGrowthIcon:!1,InterestIcon:!0,JCBIcon:!1,LogoIcon:!0,LoupeIcon:!0,MapMarkerClusterIcon:!1,MapMarkerSingleIcon:!1,MasterCardIcon:!1,MinusIcon:!0,MirIcon:!1,MoneyIcon:!0,MoneyInsuranceIcon:!1,MoneysIcon:!0,MonitorMobileIcon:!0,NewDocIcon:!1,OfficeIcon:!1,OkIcon:!0,PackA4Icon:!1,PassSendIcon:!1,PercentageRoundIcon:!0,PercentageSquareIcon:!0,PersonalCardIcon:!0,PlayMarketIcon:!0,PlusIcon:!0,PowerIcon:!1,Profile2UserIcon:!0,ProfileIcon:!0,PumpkinIcon:!1,RoundRubleIcon:!0,SafeIcon:!0,ShieldTickIcon:!0,SignDocsIcon:!1,SmallClockIcon:!0,SoundIcon:!1,StrongBoxIcon:!0,TelegramIcon:!0,UnionPayIcon:!1,UserSquareIcon:!0,UserTickIcon:!0,VisaIcon:!1,VKIcon:!0,WalletAdd2Icon:!0,WalletAddIcon:!0,WalletIcon:!0,WalletWithMoneyIcon:!0,WateringCanIcon:!1};var I,C;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlaneIcon="AirPlaneIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BuildingIcon="BuildingIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.Car2Icon="Car2Icon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocDownloadIcon="DocDownloadIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.DoneSimpleIcon="DoneSimpleIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LogoIcon="LogoIcon",e.LoupeIcon="LoupeIcon",e.MapMarkerClusterIcon="MapMarkerClusterIcon",e.MapMarkerSingleIcon="MapMarkerSingleIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MoneysIcon="MoneysIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PackA4Icon="PackA4Icon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.StrongBoxIcon="StrongBoxIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserSquareIcon="UserSquareIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCanIcon="WateringCanIcon"}(I||(I={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlaneIcon="Самолёт",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BuildingIcon="Здание с деревом",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.Car2Icon="Машина2",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кинотеатр",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocDownloadIcon="Скачать документ",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка' в круге",e.DoneSimpleIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LogoIcon="Logo",e.LoupeIcon="Лупа",e.MapMarkerClusterIcon="Маркер карты",e.MapMarkerSingleIcon="Маркер карты РСХБ",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MoneysIcon="Купюры",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PackA4Icon="Пачка бумаги А4",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.StrongBoxIcon="Ящик с замочной скважиной",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserSquareIcon="Пользователь в рамке",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCanIcon="Добавить продукт"}(C||(C={}));const k={normal:"text-primary-main",black:"text-black",white:"text-black"},S=x((({className:e="",imageClassName:t="",name:n="",alt:a=`Иконка ${C[n]||n}`,title:l=a,iconVersion:r="normal",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return i&&w[n]?h(B,{className:e,children:u("svg",{className:[T(e,s.width),k[r],t,$(n,r)].join(" "),...s,"aria-hidden":"true",children:[l?h("title",{children:l}):null,a?h("desc",{children:a}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:a,title:l,...s,"aria-hidden":"true"})})),$=(e,t)=>"white"===t&&w[e]?"invert":"",T=(e,t)=>t?`width: ${t}px `:"w-full h-full",B=x((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function D(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const R=(e,t)=>e.media&&t.media?e.media-t.media:0,M=x((({className:e="",image:t,imageClassName:n="",isMobile:a=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(R).map((({src:e,format:n,media:a},l)=>h("source",{srcSet:e,type:P(n),media:a?`(max-width: ${a}px)`:"",...t.size},`${l}_${e}`))):null,A(t,n,a)]})})),A=(e,t="",n=!1)=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",r=e.alt||e.title,i=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:r,title:l,style:a,...e.size})};function P(e){return e?`image/${String(e)}`:void 0}const V=x((({className:e="",image:t,imageClassName:n="",isMobile:a,...l})=>{if(!t)return null;const r="string"==typeof t?t:t.icon;return r||""===r?r.length?h(S,{className:e,imageClassName:n,iconVersion:D(t),name:r,...l}):null:h(M,{className:e,imageClassName:n,image:t,isMobile:a})})),L=x((({className:e="",imageClassName:t,image:n,...a})=>h(V,{className:e,imageClassName:t,image:n,...a})));function _(e){return e?e.filter(Boolean).join(" "):""}const j=x((e=>{const{className:t="",description:n}=e;return h("div",{className:`${t}`,children:n})})),O={left:"text-left",center:"text-center",right:"text-right"},U={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},E={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"}},G=x((({bgColorHeadline:e="transparent",align:t="center",className:n="",title:a,description:l,headlineVersion:r="XL",as:i,...s})=>{const o=U[e],c=E[r];return u(f,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${n}`,...s,children:[a?h(y,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${O[t]}`,title:a}):null,l?h(j,{className:`${c.descriptionFont} ${o.text} ${O[t]}`,description:l}):null]})})),z=x((({className:e,iconClassName:t,textClassName:n,suffixClassName:a,doc:l,icon:r})=>{const{text:i,fileSize:s,...o}=l;return u("a",{className:e,role:"link",...o,children:[r?h(L,{className:t,image:r,width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:n,children:[i,h("span",{className:a,children:o?.href&&F(W(o.href),s)})]}):null]})})),F=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),W=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},H=x((({className:e="",doc:t,icon:n})=>h(z,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:n}))),X=x((({className:e,documents:t,columnsMode:n="double",icon:a})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===n?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(H,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:a})},String(t))))}):null)),J={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},q=x((({context:e,className:t="",title:n,description:a,align:l="center",documents:r,icon:i={icon:"DocIcon"},columnsMode:s="double",...o})=>u(f,{className:`font-sans text-primary-text p-[50px] bg-white ${t}`,context:e,...o,children:[h(G,{className:"!p-0",title:n,description:a,context:e,align:l,headlineVersion:"M",as:"h2"}),h(X,{className:`mt-8 ${J[s]}`,columnsMode:s,documents:r,icon:i})]}))),K={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Y={primary:"text-primary-text",secondary:"text-white"},Z={primary:"text-secondary-text",secondary:"text-white"},Q=x((e=>{const{className:t="",icon:n,label:a,description:l,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i||"secondary"===r;return u("div",{className:`flex gap-5 ${l?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:ee(r,i),children:h(L,{className:"w-6 h-6",image:{...n,iconVersion:s?"white":"normal"},asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[a?h("div",{className:`text-h6 ${Y[r]}`,children:a}):null,l?h("div",{className:`text-m-light ${Z[r]}`,children:l}):null]})]})}));function ee(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const te=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),ne=x((({className:e="",context:t,title:n,description:a,image:l,benefits:r,version:i="primary",sum:s,monthLimit:o,directionRight:c=!1,...d})=>u(f,{className:`relative font-sans py-12 px-24 ${K[i]} ${e}`,context:t,...d,children:[h(G,{context:t,className:"!p-0",title:n,description:a,headlineVersion:"M",bgColorHeadline:i,align:"center"}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[l?.src?h(L,{className:c?"order-2":"",image:l}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(ae(i))}):null,le(s,o)]})]})]}))),ae=e=>(t,n)=>h(Q,{icon:t.icon,label:t.label,description:t.description,version:e},String(n));function le(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number.isFinite(e)?re("Страховая сумма:",e,Boolean(t)):null,Number.isFinite(t)?re("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function re(e,t=0,n=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full ${n?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[te(t)," ₽"]})]})}const ie=e=>e?.includes("//"),se=e=>(e||"").replace(/\/?\?.*/,""),oe=e=>{if(!e||!ie(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t};var ce=Object.freeze({__proto__:null,isURL:ie,withoutQuery:se,getOrigin:oe,getHash:e=>{if(!e||!ie(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const de="/mobile",me=(e,t)=>{if(!e)return e;const n=oe(t?.href);return n?e.replace(n,"")||"/":e},he=e=>e;function ue({router:e,handlerDecorator:t=he},n){const a=((e,t)=>{if(!e)return e;const n=me(e,t)||"",a=t?.pathname.startsWith(de);return a&&!ie(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!ie(a),r=!n.target||"_self"===n.target;l&&r&&(t?.preventDefault(),e.push(a))}),n)}}const xe=x((({text:e,href:t,target:n,onClick:a,className:l="",children:r})=>t?h("a",{className:`no-underline ${l}`,href:t,target:n,onClick:a,children:h("span",{className:l,children:e||r})}):h("span",{className:l,children:e||r})));function pe(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const ge=x((e=>{const{text:t,aboveText:n,appendLeft:a,appendRight:l}=e;return u("div",{className:be(e),children:[a||null,fe(e)?u("div",{children:[h("div",{className:"text-xs-light text-left",children:n}),h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,l||null]})})),be=e=>{const{className:t="",version:n,aboveText:a,rounded:l}=e;if("link"===n)return"";const r="gap-2 "+(a?"py-2.5 px-7":"py-4 px-9");return["group flex items-center justify-center",fe(e)?r:"h-12 w-12",l?"rounded-full":"",t].join(" ")},fe=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Ne={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:""},ve="bg-main-divider text-main-disabled",ye={primary:ve,secondary:ve,white:ve,link:""},we="text-center font-sans select-none",Ie=({className:e,rounded:t,version:n})=>[we,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?Ne[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ce=({className:e,rounded:t,version:n})=>["inline-block",we,n?ye[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ke=x((e=>{const{text:t,aboveText:n,appendLeft:a,appendRight:l,children:r,disabled:i,rounded:s,...o}=e,{asSVG:c,iconRight:d,icon:m,...u}=o,x=r??h(ge,{text:t,aboveText:n,appendLeft:a,appendRight:l,rounded:s});return h(i?$e:Se,{rounded:s,...u,children:x})})),Se=x((({className:e="",ariaLabel:t,version:n,rounded:a,href:l,target:r,children:i,onClick:s,...o})=>h("a",{className:Ie({className:e,version:n,rounded:a}),href:l,target:r,onClick:s,"aria-label":t,role:l?"link":"button",...o,children:i}))),$e=x((({className:e,children:t,ariaLabel:n,version:a,rounded:l})=>h("div",{role:"button","aria-disabled":"true","aria-label":n,tabIndex:-1,className:Ce({className:e,rounded:l,version:a}),children:t}))),Te=x((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:a}=e,l=e.useRouter();return n&&n?.length?h("div",{className:t,children:n.map(((e,t)=>function({icon:e,iconRight:t,version:n="primary",...a},l){if(!a?.text)return null;const r="primary"===n?"group-hover:text-black":"group-hover:text-white",i="secondary"===n?"normal":"white";return h(ke,e?{appendLeft:h(L,{imageClassName:r,image:{...e,iconVersion:i},width:"24",height:"24",asSVG:!0}),appendRight:h(L,{imageClassName:r,image:{...t,iconVersion:i},width:"24",height:"24",asSVG:!0}),version:n,...a}:{version:n,...a},String(l))}(ue({router:l,handlerDecorator:a},e),t)))}):null}));const Be={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},De={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Re=x((({className:e="",isDotted:t=!0,children:n,version:a="primary"})=>u("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?h("div",{className:Me(a)}):null,h("span",{children:n})]}))),Me=e=>`${Be[e]} ${De[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,Ae={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},Pe={M:"text-xl-light",L:"text-h5-light"},Ve=x((e=>{const{className:t="",itemClassName:n,isDotted:a,items:l,listItemSize:r="M",version:i="primary"}=e;return h("section",{className:`${Ae[i]} ${Pe[r]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>h(Re,{className:n,isDotted:a,version:i,children:e},String(t)))):null})})),Le=x((({className:e="",title:t="",children:n,buttons:a,image:l})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),a?h("div",{className:"mt-auto pt-8",children:a}):null]}),l]})]}))),_e=(e="primary",t="normal")=>({icon:n,label:a,description:l},r)=>h(Q,{icon:n,label:a,description:l,version:e,benefitsVersion:t},String(r)),je=x((({className:e="",context:t,title:n,headlineVersion:a="L",description:l,benefits:r,benefitsVersion:i="normal",buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,textBlockClassName:x=""})=>u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${x}`,children:[h(G,{context:t,title:n,description:l,className:"!p-0 max-w-[600px]",bgColorHeadline:d,headlineVersion:a,align:"left"}),u(Le,{context:t,buttons:Oe(t,s),children:[r?.filter((e=>e.label))?.length?h("div",{className:"flex gap-6 mt-6",children:r.map(_e(d,i))}):null,c?.length?h(Ve,{className:"mt-5 text-h6",items:c,itemClassName:"mb-[7px]",version:d,isDotted:m}):null]})]}),o?.src&&h(L,{className:"mt-[-50px]",image:o})]}))),Oe=(e,t)=>t?.length?h(Te,{context:e,buttons:t,className:"flex gap-4"}):null;function Ue(e,t,n){const{text:a,href:l,target:r,onClick:i}=e,s="primary"===t?"white":"black";return u("div",{className:`flex items-center cursor-pointer ${n}`,onClick:i,children:[h(ke,{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:l,target:r,children:h(L,{className:"w-4 h-4",image:{...e?.icon||{icon:"ArrowLeftIcon"},iconVersion:s},asSVG:!0})}),a?h("span",{className:"text-m",children:a}):null]})}const Ee={primary:"text-secondary-text",secondary:"text-white/80"},Ge=x((e=>{const{context:t,className:n="",breadcrumbs:a,backwardButton:l,version:r="primary",...i}=e,s=t.useRouter(),{handlerDecorator:o}=t;return u(f,{context:t,className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${K[r]} ${n}`,...i,children:[l?.text?Ue(ue({router:s,handlerDecorator:o},l),r,"mb-10 -mt-2.5"):null,a?.length?h("div",{className:"text-xs-light mb-6",children:pe(h("span",{className:`mx-2 ${Ee[r]}`,children:"/"}))(a.map(((e,t)=>h(xe,{...ue({router:s,handlerDecorator:o},{className:Ee[r],...e})},String(t)))))}):null,h(je,{context:t,version:r,...i})]})})),ze={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Fe=x((({title:e,description:t,blockVersion:n="primary",iconVersion:a,image:l,className:r,...i})=>{const s=ze[n];return u(f,{className:`font-sans px-9 py-4 flex ${s.background} ${r||""}`,...i,children:["small"===a?We(s.icon):null,"big"===a?He(l):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function We(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function He(e){return e?.src?h(L,{className:"pt-0.5 pr-3",image:e}):null}const Xe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Je(e=""){const t=Xe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function qe(e=""){const t=Xe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ke=x((e=>{const{context:t,title:n,headingType:a="h3",description:l,items:r,children:i,buttons:s,image:o,isDotted:c=!0,listItemSize:d="M",className:m="",version:x="primary",...p}=e,g="primary"===x?"text-primary-text":"";return h(f,{context:t,className:`overflow-hidden font-sans p-9 pr-3 box-border ${m} ${K[x]} ${qe(m)} ${Je(m)} `,...p,children:u(Le,{context:t,title:n?h(y,{headingType:a,as:"h2",title:n,className:`whitespace-pre-wrap max-w-[600px] ${g}`}):null,buttons:s?.length?h(Te,{context:t,buttons:s.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-8 gap-3"}):null,image:o?.src?h(L,{className:"mt-auto ml-7",image:o}):null,children:[l?h(j,{className:"max-w-[600px] text-xl-light mt-2",description:l}):null,i,Ye(r,{version:x,isDotted:c,listItemSize:d})]})})}));function Ye(e,{version:t,isDotted:n,listItemSize:a}){const l="primary"===t?"tile":"tile-white";return e?.length?h(Ve,{items:e,isDotted:n,className:"mt-3",listItemSize:a,itemClassName:"mb-1.5",version:l}):null}const Ze=x((({context:e,className:t="",title:n,headlineVersion:a="S",description:l,additionalDescription:r,benefits:i=[],buttons:s,image:o,version:c="primary",...d})=>u(f,{context:e,className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${t} ${K[c]} ${qe(t)}`,...d,children:[h(G,{context:e,className:"!p-0 !bg-transparent z-10 "+(n||l?"mb-3.5":""),as:"h2",title:n,description:l,headlineVersion:a,bgColorHeadline:c,align:"left"}),Qe(i,c,o),r?tt(r,o,c):null,s?.length?h(Te,{context:e,buttons:s,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,o?.src?h(L,{className:"absolute right-0 bottom-0",image:o}):null]})));function Qe(e,t,n){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${n?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(et(t)):null})}function et(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(n,a){const{label:l="",description:r=""}=n;return[h("div",{className:"text-h6",children:l},`label-${a}`),h("div",{className:`text-m-light ${t[e]}`,children:r},`desc-${a}`)]}}function tt(e,t,n="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[n]}`,children:e})}const nt=x((({className:e,disabled:t,...n})=>h(ke,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:h(L,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})})));function at({handler:e,isShown:t,btnClass:n,className:a="",isDisabled:l=!1}){return u("div",{children:[t[0]||l?h(nt,{className:`absolute z-10 ${n[0]} ${a}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||l?h(nt,{className:`absolute z-10 rotate-180 ${n[1]} ${a}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const lt={normal:3,mini:4},rt={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},it={normal:380,mini:276},st=x((({title:e,description:t,image:n,items:a,button:l,version:r,isDotted:i=!0})=>{const s=function(e){return`text-xl-light m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(r);return u("div",{className:"h-full flex flex-col justify-between text-center",children:[u("div",{children:[n?.src?h("div",{className:"flex justify-center",children:h(L,{className:"mb-6",image:n})}):null,e?ct(e,s):null,t?h("div",{className:"text-m"+(e?"mt-2":""),children:t}):null,a?.length?dt(a,i,r):null]}),l?.text?ot(l):null]})}));function ot(e){return h(ke,{className:"mt-6 w-full",appendLeft:e.icon&&h(L,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function ct(e,t){return h("div",{className:`text-xl-light m-0 ${t}`,children:e})}function dt(e,t,n="primary"){return h(Ve,{className:"max-w-[308px] mt-2 text-s "+("primary"===n?"!text-secondary-text":""),itemClassName:"mt-1 text-left first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:n})}const mt=x((({context:e,title:t,description:n,cards:a=[],version:l="normal",activeCardIndex:r})=>u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),h(G,{context:e,className:"!p-0",title:t,description:n,headlineVersion:"L",align:"center"}),h("div",{className:`flex mt-8 ${a?.length<=lt[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${r*it[l]}px)`},role:"list",children:a?.map(((t,n)=>function({card:e,version:t},n){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${rt[t]} ${K[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(st,{...e})},String(n))}({card:t,version:l,context:e},n)))})]})));const ht=x((({context:e,cards:t=[],className:n="",version:l="normal",...r})=>{const[i,s]=a(0),o=t?.length>lt[l],c=o&&t?.length-i>lt[l],d=o&&i>0;return u(f,{context:e,className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${n}`,...r,children:[h(mt,{context:e,cards:t,version:l,activeCardIndex:i,...r}),at({handler:[()=>s(i-1),()=>s(i+1)],isShown:[d,c],btnClass:["left-8","right-8"],className:"top-1/2"}),h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]})})),ut=x((e=>h(ht,{...e,version:"normal"}))),xt=x((e=>h(ht,{...e,version:"mini"}))),pt=x((({className:e="",documents:t,...n})=>h(f,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?gt(t):null})}))),gt=e=>e.map(((e,t)=>{const{text:n,...a}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...a,children:n||null})},`list_item_${String(t)}`)})),bt={Headline:G,LinkDocs:q,TextBlock:Fe,PictureText:ne,ProductBlock:Ge,Tile:Ke,ProductTile:Ze,Gallery:ut,MiniGallery:xt,LinkList:pt},ft=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Nt({context:t,className:n})):null,Nt=({context:e,className:t})=>(n,a)=>{if(!n)return null;const{style:l,blockListType:r,...i}=n;if(!r||!(r in bt))return null;const s=_(l);return h(bt[r],{className:`${t} ${s}`,context:e,...i},`block_${a}`)},vt=x((({blocks:e,context:t})=>h("div",{className:"grid grid-cols-12 transition-all duration-300 max-h-0 overflow-hidden",children:ft({context:t,blocks:e,className:"!p-0 mb-3.5"})}))),yt=x((({label:e,isExpanded:t,blocks:n,context:l})=>{const{isActive:r,hasContent:i,icon:s,handleToggle:o}=(({blocks:e,initialState:t=!1})=>{const[n,l]=a(t),r=e?.length;return{isActive:n,hasContent:r,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!n);const a=t.nextSibling;a.style.maxHeight=a.style.maxHeight?"":`${a.scrollHeight}px`}}})({blocks:n,initialState:t});return u("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[u("button",{className:`border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full\n font-sans text-h6 ${i?"group cursor-pointer":""}\n `,onClick:o,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),i?h(L,{image:s,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0}):null]}),i?h(vt,{isExpanded:r,blocks:n,context:l}):null]})})),wt={left:"text-left",center:"text-center",right:"text-right"},It=x((({title:e,description:t,accordionItems:n,context:a,className:l="",accordionAlignTitle:r="center",...i})=>u(f,{context:a,className:`p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${l}`,...i,children:[e?h(y,{headingType:"h3",as:"h2",className:`mb-2.5 ${wt[r]}`,title:e}):null,t?h("div",{className:"mb-2.5 text-l",children:t}):null,n?.length?h("ul",{className:"list-none m-0 p-0",children:n.map(((e,t)=>h(yt,{...e,context:a},`AccordionItem${t}`)))}):null]}))),Ct={primary:"bg-white",secondary:"bg-primary-main"},kt={primary:"",secondary:"text-white"},St={primary:"text-secondary-text",secondary:"text-white opacity-80"},$t={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},Tt=x((({className:e="",title:t,benefitList:n,benefitsBlockVersion:a="primary",...l})=>u(f,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${Ct[a]}`,...l,children:[t?h(y,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${kt[a]}`,title:t}):null,n?.length?Bt(n,a):null]}))),Bt=(e,t)=>h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:e.map(Rt(t))}),Dt=(e,t)=>e.icon?(e.iconVersion="secondary"===t?"white":"normal",e):e,Rt=e=>(t,n)=>{const a=t?.description||void 0;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(L,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${$t[e]}`,image:Dt(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(L,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${kt[e]}`,children:t.label}):null,Mt(a,e)]})]},String(n))},Mt=(e,t)=>{const n=e?e?.benefitType:null;return n&&e?h("div",{className:`text-l-light mt-2 ${St[t]}`,children:"list"===n?Pt(e):At(e)}):null},At=e=>e?e.name:null,Pt=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},Vt=x((e=>{const{context:t,className:n="",title:a,description:l,bonusItems:r,...i}=e;return h(f,{className:`font-sans bg-white p-[50px] pb-9 ${n}`,context:t,...i,children:u("div",{className:"container",children:[h(G,{context:t,className:"!p-0",title:a,description:l,headlineVersion:"M",align:"center"}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,n)=>h("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?h(Te,{context:t,buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?Lt(e.bonusItemContent):null]})},String(n)))):null})]})})})),Lt=e=>h("div",{children:"count"===e.bonusType?_t(e):jt(e)}),_t=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),jt=e=>e.image?h(L,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full",image:e.image}):null;function Ot(e=""){const t=Xe(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const Ut=x((({context:e,className:t="",title:n,subtitle:a,bonusBenefits:l,...r})=>u(f,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${t}`,context:e,...r,children:[h(G,{context:e,className:"!p-0",title:n,description:a,headlineVersion:"M",align:"center"}),l?.length?h("div",{className:`grid gap-1 mt-8 ${Ot(t)}`,children:l.map(Et)}):null]}))),Et=(e,t)=>u("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?h(L,{className:"h-[160px] w-[180px] min-w-[180px] min-h-[160px]",image:e.icon,width:"180",height:"160"}):null,h("div",{children:e?.label?h("span",{className:"text-h6 m-0",children:e.label}):null})]},String(t)),Gt=x((({title:e,value:t,postfix:n="",prefix:a,className:l=""})=>u("div",{className:`mb-7 ${l}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[a," ",te(Math.round(t))," ",n]}):null]}))),zt=6e4,Ft=2e6,Wt=97e4,Ht=Math.round(23.5),Xt={minSum:zt,maxSum:Ft,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},Jt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},qt=x((({rate:e,title:t="Ставка",unit:n,rateBlockClassName:a})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${a}`,children:String(e).replace(".",",")}),n?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:n}):""]})]})));function Kt(e,t){return t?.length?h(Te,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}const Yt=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,Zt=(e,t,n)=>Math.max(t,Math.min(e,n)),Qt=x((({className:e,title:t,items:n=[],min:a=1,max:l=100,step:r=1,value:i=a,disabled:s=!1,onChange:o})=>{const c=e=>{var t;o&&o(Zt((t=e.target.value,Number(t.replace(/\D/g,""))),a,l))},d={backgroundSize:`${(100*(i-a)/(l-a)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:te(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:a,max:l,step:r,value:i,disabled:s,onChange:c,style:d})})]}),en(n)]})}));function en(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const tn=1e3;function nn(e,t,n){const{moneyValue:a,minSum:l,maxSum:r,step:i=tn,isShowItems:s=!0}=t,o=[`От ${te(l)} ₽`,`До ${te(r)} ₽`];return h(Qt,{title:e,items:s?o:[],min:l,max:r,step:i,value:Zt(a,l,r),onChange:n})}const an=new Map;function ln(e){return e?Array.isArray(e)?e:e instanceof Function?ln(e()):[e]:[e]}let rn=function(e,t,{fallback:n}={}){const r=i((()=>ln(e)),[e]),[s,o]=a(),[c,d]=a(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};l((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>an.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],x=n&&"string"==typeof u&&n[u];return{data:s||c||!x?s:x,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}};const sn=(...e)=>rn(...e);async function on(e,t){try{return await cn(e,t)}catch(e){console.error(e)}return null}async function cn(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function dn(e){const{data:t}=sn(`/wcms-resources/${e}.json`,cn);return t}const mn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:a}=e,l=dn(t||"bonus-calculator-data")||Jt,[r,i]=((e,t,n)=>{const{minSumTravel:a,minSumOther:l,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===a&&n===l)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),r)*(12-i)]})(l,n,a);return{...l,...e,monthBonus:r,yearBonus:i}},hn=x((({context:e,className:t="",sourceBookDir:n="",buttons:l,footnote:r})=>{const[i,s]=a(6e3),[o,c]=a(6e3),d={travelExpenseValue:i,restExpenseValue:o},{minSumTravel:m,maxSumTravel:x,minSumOther:p,maxSumOther:g,monthBonus:b,yearBonus:f}=mn(d,n);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[nn("Сумма покупок в категории путешествия, ₽",{minSum:m,maxSum:x,moneyValue:i,step:500,isShowItems:!1},s),nn("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:p,maxSum:g,moneyValue:o,step:500,isShowItems:!1},c)]}),h("div",{children:b>=0?h(qt,{title:"Баллов за месяц",rate:b,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[f>=0?h(Gt,{title:"Баллов за год",value:f}):null,Kt(e,l),Yt(r)]})]})})),un=x((({className:e,viewBox:t,fill:n="none",width:a,height:l,paths:r,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:l,children:r.map((({d:e,fill:t,...n},a)=>h("path",{d:e,fill:t||"currentColor",...i,...n},a)))}))),xn=[{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"}],pn=x((({className:e,text:t,checked:n,isRadio:a,onChange:l})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${a?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${n?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{l(e.target.checked)},checked:n}),a?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(un,{paths:xn,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})})));function gn(e,t,n){const{minMonths:a,maxMonths:l,monthsValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(Qt,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(l)}`],min:a,max:l,step:1,value:Zt(r,a,l),onChange:n})}const bn=x((({items:e,checkedItem:t,onChangeCheckedItem:n})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:a})=>h(pn,{isRadio:!0,text:a,checked:t===e,onChange:()=>n(e)},e)))})));function fn(e,{items:t,checkedItem:n,onChange:a}){return h(bn,{context:e,items:t,checkedItem:n,onChangeCheckedItem:a})}const Nn=(e,t)=>{const{isInsurance:n,isSalaryClient:a,isStateEmployee:l,moneyValue:r}=e,i=dn(t||"credit-calculator-data")?.rows?.find((e=>n===e.isInsurance&&a===e.isSalaryClient&&l===e.isStateEmployee))||Xt,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=r<=c?s:o,m=((e,t)=>{const{isAnnuity:n,moneyValue:a,monthsValue:l}=t;if(n){const t=e/1200;return a*(t+t/(Math.pow(1+t,l)-1))}return Math.round(a/l)+a*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},vn="annuity",yn="differential",wn=[{id:vn,text:"Аннуитетный"},{id:yn,text:"Дифференцированный"}],In=x((({context:e,className:t="",sourceBookDir:n,buttons:l,footnote:r})=>{const[i,s]=a(!1),[o,c]=a(!0),[d,m]=a(!1),[x,p]=a(!1),[g,b]=a(Wt),[f,N]=a(Ht),v=Nn({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:x,moneyValue:g,monthsValue:f},n);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[nn("Сумма кредита, ₽",{...v,step:500},b),gn("Срок кредита, месяцев",v,N),u("div",{className:"mt-7",children:[h(pn,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),h(pn,{className:"mt-3",text:"Работаю в бюджетной организации",checked:x,onChange:p}),h(pn,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),h(qt,{title:"Ставка",rate:v.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Gt,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:v.monthlyPayment,postfix:"₽"}),fn(e,{items:wn,checkedItem:i?vn:yn,onChange:e=>s(e===vn)}),Kt(e,l),Yt(r)]})]})})),Cn="everyMonth",kn="atEndTerm",Sn=[{id:Cn,text:"Ежемесячно"},{id:kn,text:"В конце срока"}],$n={CreditCalculatorForm:In,DepositCalculatorForm:x((({context:e,className:t="",rate:n,buttons:l,footnote:r})=>{const[i,s]=a(Wt),[o,c]=a(Ht),[d,m]=a(!1);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[nn("Сумма вклада, ₽",{moneyValue:i,minSum:zt,maxSum:Ft},s),gn("Срок вклада, месяцев",{minMonths:13,maxMonths:60,monthsValue:o},c)]}),h(qt,{rate:n||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Gt,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),h(Gt,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),fn(e,{items:Sn,checkedItem:d?Cn:kn,onChange:e=>m(e===Cn)}),Kt(e,l),Yt(r)]})]})})),BonusCalculatorForm:hn},Tn=({context:e,className:t})=>(n,a)=>{const l=n?.calcType;if(!l||!(l in $n))return null;const r=$n[l];return h("section",{className:`box-border relative bg-white flex shrink-0 self-start basis-full ${t}`,role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[n?.title?h(y,{className:"text-center mb-6",title:n.title}):null,h(r,{context:e,...n,className:"flex justify-between"})]})},String(a))},Bn=x((({className:e="",context:t,calculatorTabs:n=[],...l})=>{const r=n.map((e=>e.nav||{})),i=n.map((({calculatorBlock:e})=>e||{})),[s,o]=a(0),[c,d]=a(0),m=n?.length>3&&n?.length>c+3,x=c>0;return u(f,{context:t,className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?Dn({tabsShift:c,tabsNav:r,activeSlideIndex:s,setActiveSlideIndex:o}):null,at({handler:[()=>d(c-1),()=>d(c+1)],isShown:[x,m],btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Tn({context:t,className:e})):null})]})}));function Dn({tabsShift:e,tabsNav:t,activeSlideIndex:n,setActiveSlideIndex:a}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:n,onClick:a}){const l=t===n,r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",i=l?"text-xl mb-1.5":"text-l mb-[3px]",s=l?"text-l-light text-white":"text-m-light text-secondary-text",o=l?"":"text-primary-main";return u("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[h(L,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${o}`,image:{...e?.icon,iconVersion:l?"white":"normal"},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${i}`,children:e?.title}),h("div",{className:`${s}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:n,onClick:()=>a(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const Rn=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Mn=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},An=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Pn=x((({className:e="",inputClassName:t="",id:n,name:a,type:l="text",label:i,value:s="",children:o,onChange:c,...d})=>{const m=r((e=>{const t=e.target.validity.valid?e.target.value:s;c(t)}),[c]),x=o?"pr-8":"";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md border-main-stroke hover:border-primary-hover active:border-primary-text\n focus:border-primary-text text-primary-text outline-none p-4 ${x} ${t}`,id:n,name:a||n,type:l,value:s,onChange:m,...d}),o]})})),Vn=x((({className:e="",onChange:t,minValue:n=0,maxValue:a=3e5,...l})=>{const i=r((e=>{if(!t)return;const l=Rn(Mn(An(e)));const r=Ln(l,Zt(Number(l),n,a));t(String(r))}),[t]);return h(Pn,{className:e,inputClassName:"w-full",onChange:i,...l,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Ln=(e,t)=>Number(e)===t?e:String(t),_n=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:l="1500",button:r,context:i,...s})=>{const o=i.useRouter(),{handlerDecorator:c}=i,[d,m]=a(""),x=!Number(d),p=x?Ce({version:r?.version}):Ie({className:"text-white",version:r?.version});return u(f,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,context:i,...s,children:[t?h(y,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(Vn,{name:"amount",value:d,onChange:m,placeholder:l,label:n}),r?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:x,...ue({router:o,handlerDecorator:c},r),children:r.text}):null]})]})})),jn={default:"normal",primary:"white",secondary:"black"},On={black:"bg-black",white:"bg-white"},Un=x((({className:e="",title:t,description:n,image:a,price:l,button:r,colors:i})=>u("section",{className:`border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[a?.src?h(L,{className:"mb-5 flex justify-center",image:a}):null,t?h(y,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?h("div",{className:"text-m-light text-left mb-4",children:n}):null,i?.length?u("div",{className:"flex mb-4 text-m-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(En)]}):null,l?u("div",{className:"text-h3 text-left",children:[l," ₽"]}):null,r?Gn(r):null]}))),En=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${On[e]}`},String(t)),Gn=e=>{const{icon:t,iconRight:n,...a}=e;if(!e?.text)return null;const l=jn[e?.version||"default"],r=zn({...t,iconVersion:l}),i=zn({...n,iconVersion:l});return h(ke,{className:"mt-5 w-full",appendLeft:r,appendRight:i,...a})},zn=e=>{if(!e||!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(L,{image:e,width:t,height:"24",asSVG:!0})},Fn="absolute top-0 bottom-0 w-[84px]",Wn=x((({context:e,cards:t=[],className:n="",title:l,description:r,...i})=>{const[s,o]=a(0);return u(f,{context:e,className:`bg-white relative font-sans p-12 overflow-hidden text-center ${n}`,...i,children:[h(G,{context:e,className:"!p-0",title:l,description:r,headlineVersion:"M",align:"center"}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*s}px)`},role:"list",children:t?.length?t.map(Hn(e)):null}),Xn({cardsCount:t.length,activeCardIndex:s,setActiveCardIndex:o}),h("div",{className:`${Fn} left-0 bg-opacity-from-white`}),h("div",{className:`${Fn} right-0 bg-opacity-to-white`})]})})),Hn=e=>(t,n)=>h(Un,{context:e,...t},String(n)),Xn=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const a=e>3;return at({handler:[()=>n(t-1),()=>n(t+1)],isShown:[a&&t>0,a&&e-t>3],btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"})},Jn=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{handleNextClick:()=>a(n+1),handlePrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},qn="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Kn="border-main-stroke border-solid border",Yn="border-main-divider border border-t-0 border-x-0",Zn="w-[200px] mr-6",Qn=x((({icon:e,image:t,title:n,link:a})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Kn} ${qn}`,role:"columnheader",children:[e&&!t?.src&&h(L,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&h(L,{className:"mb-[18px]",image:t}),n?h(y,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,a?.text&&h("div",{className:"mt-auto w-full",children:h(ke,{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:h("div",{className:"text-xs-light font-medium py-[11px]",children:a.text})})})]}))),ea={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ta=x((({children:e,activeCardIndex:t,columnWidth:n,version:a="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:ea[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),na=x((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),aa=x((({colHeaders:e,activeCardIndex:t,router:n,handlerDecorator:a})=>u(na,{children:[h("div",{className:Zn,role:"columnheader"}),h(ta,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>h(Qn,{...e,link:e.link&&ue({router:n,handlerDecorator:a},e.link)},String(t))))})]}))),la=x((({isScrollAvailable:e,handleNextClick:t,handlePrevClick:n,showNextButton:a,showPrevButton:l})=>e?h("div",{children:at({handler:[n,t],isShown:[l,a],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null)),ra=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:a})=>h("div",{className:`w-80 box-border flex flex-col ${Kn} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${a?qn:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${Yn} ${a&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>oa(e,t,a)))})}))),ia=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),sa=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),oa=({label:e,description:t},n,a)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:ia(a),children:e}):null,t?h("div",{className:sa(a),children:t}):null]},String(n)),ca=(e=!1)=>`text-s py-7 ${Yn} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,da=x((({row:{header:e,data:t},activeCardIndex:n,isColoredFirstColumn:a,isFirstRow:l,isLastRow:r})=>u(na,{children:[e?.title?h("div",{className:ca(r),children:e.title}):null,t?.length?h(ta,{activeCardIndex:n,columnWidth:336,children:t.map(((e,t)=>h(ra,{cell:e,isFirstRow:l,isLastRow:r,isFillGradient:a&&0===t},String(t))))}):null]}))),ma=x((({rowData:e,activeCardIndex:t,isColoredFirstColumn:n,...a})=>u("div",{className:"relative",children:[e.map(((e,a,{length:l})=>h(da,{row:e,isFirstRow:0===a,isLastRow:a+1===l,activeCardIndex:t,isColoredFirstColumn:n},String(a)))),h(la,{...a})]}))),ha=x((({context:e,columns:t,rowHeaders:n,isShowAllRow:l,visibleRowLength:r,isColoredFirstColumn:i})=>{const s=e.useRouter(),{handlerDecorator:o}=e,c=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],m=n?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,l?n.length:r),[x,p]=a(0),g=Jn({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:p}),{isScrollAvailable:b}=g;return u("div",{children:[u("div",{role:"table",children:[c?.length?h(aa,{colHeaders:c,activeCardIndex:x,router:s,handlerDecorator:o}):null,m?.length?h(ma,{rowData:m,activeCardIndex:x,isColoredFirstColumn:i,...g}):null]}),b?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),ua=x((({className:e="",context:t,title:n,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=a(!i);return u(f,{context:t,className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(y,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:n}),h(ha,{context:t,columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?xa({isShowAllRow:c,onClick:()=>d(!c)}):null]})})),xa=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:Zn}),h("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})}),pa=e=>"Image"===e?.errorContentType&&e?.image?h(L,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,ga=x((({context:e,className:t="",title:n,subtitle:a,error:l,button:r})=>{const{useRouter:i,handlerDecorator:s}=e,o=i();return u("section",{className:`flex flex-col justify-center items-center mt-12 ${t}`,role:"listitem",children:[h("div",{className:"flex justify-center py-20",children:pa(l)}),n?h(y,{headingType:"h1",className:"text-left mb-4",title:n}):null,a?h("div",{className:"font-sans text-xl-light text-left mb-7 max-w-[613px] text-center",children:a}):null,r?.text?h(ke,{className:"py-4 px-9",version:r?.version,...ue({router:o,handlerDecorator:s},r),children:r.text}):null]})})),ba=(e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n};function fa(){return on(Na,{method:"POST",body:JSON.stringify(va)})}const Na="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",va={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},ya=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:ba(Number(t.rate_buy),3),sell:ba(Number(t.rate_sell),3)}),e}),[]);var wa;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(wa||(wa={}));const Ia=new Intl.NumberFormat("ru",{style:"currency",currency:wa.RUB}),Ca=e=>e?Ia.format(e):"",ka="text-left text-m-light text-secondary-text",Sa={USD:"DollarIcon",EUR:"EuroIcon"},$a=x((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:ka,children:"Валюта"}),h("th",{className:`${ka} pl-11`,children:"Купить"}),h("th",{className:`${ka} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map((e=>Ta(e)))})]}))),Ta=e=>{const t=e?.code;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(L,{image:{icon:Sa[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:Ca(e?.sell)}),h("td",{className:"pt-4 pl-11",children:Ca(e?.buy)})]},t)},Ba=x((({className:e="",address:t,distance:n})=>u("div",{className:`flex ${e}`,children:[h(L,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,n?u("p",{className:"text-secondary-text m-0 text-m-light",children:["Курс указан для ближайшего офиса - ",n]}):null]})]}))),Da=x((({className:e="",isBorder:t=!0,label:n,options:r=[],value:i,onChange:s,placeholder:o=""})=>{const[c,d]=a(r[0]||{key:"",text:""}),[m,x]=a(!1);return l((()=>{d(i||{key:"",text:""})}),[i]),u("div",{className:`${e}`,children:[n?h("span",{className:"mb-2 flex",children:n}):null,u("div",{className:"relative "+(m?"z-20":"z-10"),children:[u("div",{className:`text-m-light flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${Aa(t)}`,onClick:()=>x(!m),children:[h("p",{className:"p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap",children:c?.text||o}),h(S,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(m?"":"rotate-180")})]}),r?.length?h("div",{className:`h-0 ${Ra(m)}`,children:h("div",{className:"bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:r.map(Ma((e=>{d(e),x(!1),s(e)}),m,(e=>Boolean(e.key===c.key))))})}):null]})]})})),Ra=e=>e?"":"overflow-hidden",Ma=(e,t,n)=>(a,l)=>u("div",{onClick:()=>{e(a)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:a.text}),h(S,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",n(a)&&t?"":"hidden"].join(" ")})]},String(l)),Aa=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function Pa(e){const{placeholder:t,rates:n,selected:a,value:l,setValue:r,setSelected:i}=e,s=n.map((e=>({key:e.code??"",text:e.code??""}))),o={key:a,text:a};return u("div",{className:"relative flex",children:[h(Pn,{className:"shrink-0 h-14 pl-4 pt-4 pb-4 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:l,onChange:r}),s.length?h(Da,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Va=(e,t,n)=>{const a=Number(La(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:ba(a)},La=e=>e.replace(/[^\d.,]/g,"").replace(",","."),_a=e=>{return(t=[[e=>e.value!==wa.RUB&&e.oppositeValue!==wa.RUB,()=>e.handleConvert(e.value,wa.RUB)],[e=>e.value===wa.RUB&&e.oppositeValue===wa.RUB,()=>e.handleConvert(e.value,wa.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},ja=x((({context:e,className:t="",currencyRatesBuy:n,currencyRatesSell:l,button:r})=>{const{useRouter:i,handlerDecorator:s}=e,o=i(),[c,d]=a({inputSell:"",inputBuy:"",selectSell:n?.[0]?.code||wa.RUB,selectBuy:l?.[0]?.code||wa.USD}),m=e=>{d((t=>({...t,...e})))};return u("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[Pa({placeholder:"Хочу продать",rates:l,selected:c.selectSell,setSelected:Oa(c,m,l),value:c.inputSell,setValue:e=>Ea(m,l)(e,c.selectSell,c.selectBuy)}),Pa({placeholder:"Получу",rates:n,selected:c.selectBuy,setSelected:Ua(c,m,n),value:c.inputBuy,setValue:e=>Ga(m,n)(e,c.selectBuy,c.selectSell)}),r?.text?h(ke,{className:"py-4 mr-1",version:r?.version,...ue({router:o,handlerDecorator:s},r),children:r.text}):null]})})),Oa=(e,t,n)=>a=>{t({selectSell:a}),_a({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,l=e.selectBuy)=>{Ea(t,n)(e.inputSell,a,l)}})},Ua=(e,t,n)=>a=>{t({selectBuy:a}),_a({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,l=e.selectSell)=>Ga(t,n)(e.inputBuy,a,l)})},Ea=(e,t)=>(n,a,l)=>{e({inputSell:La(n),selectBuy:l});const r=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===a))?.sell;r&&e({inputBuy:String(Va(n,r,a===wa.RUB)||"")})},Ga=(e,t)=>(n,a,l)=>{e({inputBuy:La(n),selectSell:l});const r=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===a))?.buy;r&&e({inputSell:String(Va(n,r,a===wa.RUB)||"")})},za={address:"Москва, ул.Ленина д.28",distance:"6км"},Fa=x((({className:e="",context:t,title:n="Курсы обмена валют",button:a,...l})=>{const r=function(){const{data:e}=sn(Na,fa),t=e?.hits?.hits?.map((e=>e._source))||[];return t.length?ya(t):t}(),i=r.filter((e=>e.buy));i.unshift({code:wa.RUB});const s=r.filter((e=>e.sell));return s.push({code:wa.RUB}),h(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] \n ${e}`,...l,children:h(Le,{context:t,title:h(y,{headingType:"h4",title:n,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[r?h($a,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,h(Ba,{...za})]}),r.length&&i.length&&s.length?h(ja,{className:"grow",context:t,currencyRatesBuy:i,currencyRatesSell:s,button:a}):null]})})})})),Wa={"bg-white":"normal",transparent:"white"},Ha={"bg-white":"text-primary-main",transparent:"text-white"},Xa={"bg-white":"text-primary-text",transparent:"text-white"},Ja=x((({className:e="",href:t,logo:n,children:a=n?.title,targetBlank:l,bgColor:r="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:l?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[h(L,n?.image?.src?{image:n.image,className:Ha[r],width:"40",height:"45",asSVG:!0}:{image:{icon:"LogoIcon",iconVersion:Wa[r]},className:`${Ha[r]} w-10`,width:"40",height:"45",asSVG:!0}),i?qa(a,r,n?.title):null]}))),qa=(e,t,n)=>h("span",{className:`${Xa[t]} font-medium ml-2.5`,children:e||n||"Россельхозбанк"}),Ka=x((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:l}=(()=>{const[e,t]=a("");return{term:e,setTerm:e=>t(e)}})(),r=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(L,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${r}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:n,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),l("")},children:h(L,{image:"CloseIcon",width:"24",height:"24"})}):h(ke,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ya=x((({className:e=""})=>h(Ka,{className:e}))),Za=x((({className:e="",items:t,hasButton:n,context:a})=>{const l=a.useRouter(),{handlerDecorator:r}=a;return u("div",{className:e,children:[t?.length?t.map(Qa):null,n?h(ke,{version:"primary",className:"mb-6 w-full",...ue({router:l,handlerDecorator:r},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Qa=(e,t)=>{const{type:n,text:a,description:l}=e;return u("div",{className:"mb-4",children:[h("div",{children:el(n,a)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:l})]},String(t))},el=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${tl(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},tl=e=>e.replaceAll(/\D/g,""),nl=x((({className:e="",index:t,text:n,href:a,target:l,onClick:r})=>h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:r,children:n||`Документ ${t}`}))),al=x((({links:e,className:t="",context:n})=>{const a=n.useRouter(),{handlerDecorator:l}=n;return h("div",{className:t,children:e?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>h(nl,{index:t,className:"text-l-light max-w-[292px]",...ue({router:a,handlerDecorator:l},e)},String(t))))}):null})})),ll=e=>t=>e?.href===t?.href,rl=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(ll(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(ll(e))))));var n,a,l};function il(e={}){const{data:t}=sn(`/wcms-resources/${c.SITEMAP||"sitemap"}.json`,cn,{fallback:e});return t||{}}const sl=x((({className:e="",items:t,fallback:n,context:a})=>{const l=il(n),r=rl(l.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:r?.map(((e,t)=>ol(e,t,i)))})})),ol=(e,t,{router:n,handlerDecorator:a})=>{const{text:l,href:r,items:i,target:s}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:s||"_self",children:l||`Раздел ${t}`}),i?.map(((e,t)=>h(cl,{...ue({router:n,handlerDecorator:a},e),index:t},String(t))))]},String(t))},cl=x((({text:e,href:t,target:n,index:a})=>h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:t,target:n||"_self",children:e||`Раздел ${a}`}))),dl=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],ml=x((({href:e,version:t="primary"})=>{const{icon:n,label:a}=dl.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":a,target:"_blank",rel:"noopener noreferrer",children:n?h(L,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),hl=x((({className:e="",media:t,version:n,context:a,children:l})=>{const r=a.useRouter(),{handlerDecorator:i}=a;return u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(ml,{version:n,...ue({router:r,handlerDecorator:i},e)},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:l})]})})),ul=x((({className:e="",index:t,text:n,href:a,target:l,onClick:r})=>h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:l,onClick:r,children:n||`Документ ${t}`}))),xl=x((({className:e,links:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:l}=n;return u("div",{className:`${e||""}`,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(ul,{index:t,...ue({router:a,handlerDecorator:l},e)},String(t))))}):null]})})),pl="w-[204px]",gl=x((({className:e,documents:t,relatedEnterprises:n,contacts:a,socialMedia:l,mobileApps:r,topItems:i,context:s,page:o,...c})=>{const d=o?.fallback;return u(f,{tag:"footer",context:s,className:`p-9 bg-white font-sans ${e||""}`,...c,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(Ja,{className:pl}),h(Ya,{context:s,className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(Za,{items:a,context:s,hasButton:!0}),h(hl,{media:l,context:s,children:"Соцсети"}),h(hl,{className:"mt-6",media:r,context:s,children:"Мобильное приложение"})]}),h(sl,{className:"pt-[3px]",context:s,items:i,fallback:d})]}),h(al,{className:"mt-[98px]",links:n,context:s}),h(xl,{links:t,context:s})]})})),bl=x((({context:e,className:t="",title:n,description:a,calendar:l,...r})=>u(f,{className:`font-sans bg-white p-[50px] ${t}`,context:e,...r,children:[h(G,{context:e,className:"!p-0",title:n,description:a,headlineVersion:"M",align:"center"}),l?fl(l):null]}))),fl=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>Nl(e,t)))}),h("div",{className:"flex w-full",children:n.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:vl(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Nl=(e,t)=>e.month?.map(((e,n)=>h("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${n}`))),vl=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(L,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),yl=(e,t,n=((e,t)=>t.startsWith(e)))=>n(se(e),(e=>(e||"").replace(de,""))(se(ie(e)?t.href:t.pathname))),wl=e=>t=>yl(t.href,e),Il=e=>t=>t.items?.some(wl(e))||yl(t.href,e)||((e,t)=>oe(e)===oe(t.href))(t.href,e),Cl="font-sans text-s-light",kl=x((({className:e="",text:t,href:n,target:a,active:l,flat:r,onClick:i,children:s,ariaLabel:o,bgColor:c="bg-white"})=>h("a",{className:`${Sl(c,l,r)} ${e}`,href:n,target:a,onClick:i,rel:"noopener noreferrer","aria-label":o,children:h("span",{className:$l(c,l,r),children:t||s})}))),Sl=(e,t=!1,n=!1)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},$l=(e,t=!1,n=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${Cl}`;return`${t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${Cl}`},Tl=o("https://10.80.4.9");const Bl=x((({className:e="",children:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":n,children:t}))),Dl={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Rl={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Ml={"bg-white":"black",transparent:"white"},Al=x((({className:e,defaultLocation:t="",bgColor:n="bg-white"})=>{const[i,s]=function(e){const[t,n]=a(e);return l((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,r((()=>{Tl.getFetcherAddress().then((t=>{const a=t||e;globalThis?.localStorage.setItem("location",a),n(a)}))}),[e])]}(t);return u("div",{className:`flex items-center ${e||""}`,children:[h(kl,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:n}),h(kl,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:n}),h(Bl,{className:`mr-5 group ${Dl[n]}`,ariaLabel:"Поиск по сайту",children:h(L,{image:{icon:"LoupeIcon",iconVersion:Ml[n]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(Bl,{className:`${Rl[n]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(L,{image:{icon:"GridIcon",iconVersion:Ml[n]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),Pl="absolute left-0 -bottom-3 w-full h-[2px]",Vl=x((({className:e="",text:t,href:n,target:a,active:l,onClick:r,children:i,bgColor:s="bg-white",dataItemName:o})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:a,onClick:r,"data-item-name":o,children:[h("span",{className:Ll(s,l),children:t||i}),l?h("div",{className:_l(s,l)}):null]}))),Ll=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans text-l-light`},_l=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Pl}`:Pl,jl={"bg-white":"bg-primary-text",transparent:"bg-white"},Ol=x((e=>{const{menuVisible:t,toggleMenu:n,menuItems:a,bgColor:l,context:r,activeSubItem:i}=e,{useRouter:s,handlerDecorator:o}=r,c=s();return u("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(t?"bg-white rounded-md shadow-blue-gray/24":""),children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:n,"aria-label":""+(t?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(l).map(El)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(t?"":"hidden"),"aria-hidden":!t,children:Ul({menuItems:a,router:c,handlerDecorator:o,activeSubItem:i})})]})})),Ul=({menuItems:e,router:t,handlerDecorator:n,activeSubItem:a})=>e?.map((e=>{return h("a",{...ue({router:t,handlerDecorator:n},e),className:"text-l-light pb-4 hover:text-primary-main "+(l=e,l===a?"text-primary-main":""),children:e.text},e.href);var l})),El=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${jl[e]}`},String(t)),Gl=x((({context:e,subItems:t=[],bgColor:n})=>{const[l,r]=a(!1),i=e.useRouter(),{handlerDecorator:s,IntersectionObserverTag:o}=e,[c,d]=a(t.length),m=t.slice(c),x=(e=>(t=[])=>{const n=t?.filter(wl(e));return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):void 0;var a})(i)(t);return u("nav",{className:"relative mt-6",children:[h("div",{className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:t.map(((e,t)=>{return h(o,{tag:"span",observerCallback:(a=t,e=>{e.length&&(e[0].intersectionRatio<1?d((e=>Math.min(e,a))):d((e=>Math.max(e,a+1))))}),observerOptions:{threshold:1},children:h(Vl,{className:"mr-8 "+(c-1<t?"invisible":""),active:e===x,...ue({router:i,handlerDecorator:s},e),bgColor:n})},String(t));var a}))}),m.length?h(Ol,{context:e,activeSubItem:x,menuVisible:l,toggleMenu:()=>r(!l),menuItems:m,bgColor:n}):null]})})),zl={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Fl=x((({className:e="",defaultLocation:t="Москва",showSubMenu:n=!0,bgColor:a="bg-white",context:l,topItems:r,logo:i,page:s,...o})=>{const c=l.useRouter(),d=s?.fallback,m=il(d),{handlerDecorator:x}=l,p=rl(m.topItems,r),[g]=p,b=n?p.find(Il(c))||g:null,N=p.map(((e,t)=>h(kl,{active:e===b,...ue({router:c,handlerDecorator:x},e),"aria-label":e.text,bgColor:a},String(t))));return h(f,{tag:"header",context:l,className:`pt-6 px-20 ${a} ${e} ${n&&b?.items?.length?"pb-4":"pb-5"}`,...o,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(Ja,{className:"mr-8",bgColor:a,logo:i}),N,h(Al,{className:"ml-auto",defaultLocation:t,bgColor:a})]}),h("div",{className:`mt-6 h-[1px] ${zl[a]}`}),n&&b?.items?.length?h(Gl,{context:l,subItems:b.items,bgColor:a}):null]})})})),Wl=x((({className:e="",cards:t=[],button:n})=>{const[l,r]=a(0),[i,s]=a(0),o=t?.length??0,c=t?.length>2&&o>i+2,d=o===i+2,m=i>0,x=t[l]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Hl({tabsShift:i,cards:t,activeSlideIndex:l,isLastShift:d,setActiveSlideIndex:r}):null,at({handler:[()=>s(i-1),()=>s(i+1)],isShown:[m,c],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,c?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h(ke,{className:"w-[240px] text-center",version:"primary",...n,href:x})]})}));function Hl({tabsShift:e,cards:t,activeSlideIndex:n,isLastShift:a,setActiveSlideIndex:l}){const r=a?460*e-240:460*e,i=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:a}){const l=t===n;return u("button",{type:"button",onClick:a,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(L,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?Xl("страховая сумма",e.sum):null,e?.fee?Xl("страховой взнос",e.fee):null]}),Jl(l)]},String(t))}({slide:e,i:t,activeSlideIndex:n,onClick:()=>l(t)})))})})}function Xl(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[te(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Jl(e){return e?h(L,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const ql=x((({className:e="",context:t,title:n,insuranceTabs:l=[],button:r,...i})=>{const[s,o]=a(0);return u(f,{context:t,className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...i,children:[n?h(y,{className:"text-center mb-8",title:n,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,activeSlideIndex:n,onClick:a}){return h("button",{type:"button",onClick:a,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(t===n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:s,onClick:()=>o(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Kl({context:t,className:e,insuranceTabs:l,button:r})})]})})),Kl=({insuranceTabs:e,button:t,context:n,className:a=""})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(Wl,{context:n,className:a,button:t,cards:e},String(l)))):null};const Yl=x((({className:e="",context:t,title:n="Мобильное приложение",qr:a,buttons:l,version:r="primary",items:i,image:s,headingType:o="h4",...c})=>{const d="primary"===r?"text-primary-text":"",m="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=l?.map((e=>({...e,className:"min-w-[168px]"})));return u(f,{context:t,className:`flex justify-between font-sans p-9 box-border relative min-h-[320px]\n ${Je(e)}\n ${K[r]}\n ${e}`,...c,children:[h(Le,{context:t,className:"z-10",title:n?h(y,{headingType:o,as:"h3",title:n,className:`whitespace-pre-wrap max-w-[509px] mb-6\n ${d}`}):null,buttons:l?.length?h(Te,{context:t,buttons:x,className:"flex gap-4"}):null,children:u("div",{className:"flex flex-1 items-center",children:[a?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:h(L,{className:"w-fit",image:a,alt:"QR-код"})}):null,Zl(r,i)]})}),s?.src?h("div",{className:"absolute right-0 bottom-0",children:h(L,{image:s})}):null]})})),Zl=(e,t)=>t?.length?h(Ve,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:"primary"===e?"tile":"tile-white"}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Ql=x((({className:e="",context:t,title:n,servicesList:a,anchor:l="",...r})=>u(f,{context:t,id:l,className:`font-sans bg-white p-8 flex flex-col ${e}`,...r,children:[n?h(y,{headingType:"h5",className:"mb-5",title:n}):null,a?.length?a.map(er):null]}))),er=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(L,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:e.icon}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),tr="transition-all duration-300 max-h-0 overflow-hidden",nr=x((({blocks:e=[],hiddenBlocksNum:t=0,foldButtonClasses:n,foldButtonLabel:l,foldButtonDataTheme:r,isUnfolded:i,containerClasses:s,render:o=(e=>e)})=>{const c=Zt(t,0,e.length),{icon:d,handleToggle:m,isActive:x}=(({initialState:e=!1})=>{const[t,n]=a(e);return{icon:t?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{const a=e.currentTarget;if(!a)return;n(!t);const l=a.previousSibling.getElementsByClassName(tr)[0];l.style.maxHeight=l.style.maxHeight?"":`${l.scrollHeight}px`},isActive:t}})({initialState:i}),p=n||"border-none bg-primary-main hover:bg-primary-hover focus:bg-primary-main active:bg-primary-active px-0 py-5 mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer",g=x?"Скрыть":l;return e?u("div",{children:[ar(e,o,{blocksToHide:c,isActive:x,containerClasses:s}),t?u("button",{className:p,"data-theme":r,onClick:m,children:[h("span",{className:"pr-3",children:g}),d?h(S,{className:"my-auto",name:d,iconVersion:"white",width:"20",height:"20",asSVG:!0}):null]}):null]}):null})),ar=(e,t,{blocksToHide:n,isActive:a,containerClasses:l=""})=>{const r=e.slice(0,e.length-n),i=n>0?e.slice(-n):[];return t(u("div",{children:[r,h("div",{className:`${tr} ${l}`,children:i})]}),a)},lr=x((({label:e,blocks:t,context:n,dataTheme:a,isUnfolded:l})=>{const r=ft({context:n,blocks:t});return h("div",{className:"border-0 border-b border-solid border-main-divider",children:t?.length?h(nr,{foldButtonDataTheme:a,hiddenBlocksNum:t?.length,blocks:r,isUnfolded:l,context:n,foldButtonLabel:e,containerClasses:"grid grid-cols-12 gap-1 border-box",render:e=>h(rr,{children:e})}):null})})),rr=x((({children:e})=>h("div",{className:"box-border",children:e}))),ir=x((({blockItems:e,colorPalette:t,context:n,className:a="",...l})=>h(f,{context:n,className:`font-sans text-primary-text ${a}`,...l,children:e?.length?h("div",{className:"box-border1",children:e.map(((e,a)=>h(lr,{...e,dataTheme:t,context:n},`BlockItem${a}`)))}):null})));function sr(e=""){const t=Xe(e);return t<=4?"S":t<=8?"M":"L"}const or=x((({className:e,context:t,title:n,description:a="Блок в разработке...",...l})=>u(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${qe(e)} ${Je(e)} `,...l,children:[h(G,{context:t,className:"!p-0 max-w-[600px]",title:n,description:a,headlineVersion:sr(e)}),h("figure",{className:"m-0 min-w-[80%]",children:cr()})]}))),cr=(e=3)=>mr(100,e).map((e=>Math.floor(e))).map(dr),dr=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),mr=(e,t)=>[e].concat(t>0?mr(e/1.618,t-1):[]),hr={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},ur=x((({className:e="",context:t,slides:n=[],version:l="primary",...r})=>{const i=n.map((e=>e.nav)),s=n.map((e=>e.productBlock)),[o,c]=a(0);return u(f,{context:t,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${K[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,n)=>function(e,t,n){const{version:a}=e,l=a?hr[a].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(je,{className:`pl-[50px] z-10 ${l}`,context:n,textBlockClassName:"mb-[154px]",...e,headlineVersion:"XXL"})})},String(t))}({...e,version:l},n,t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:a,version:l}){const r=t===n,i=r?"bg-white shadow-dark-blue/42 min-w-[354px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${K[l]}`,s=r?"text-primary-text !text-h6 p-2":`text-l pb-1 ${hr[l].title}`,o=r?"text-secondary-text text-l-light mt-2.5":`text-m-light ${hr[l].text}`,c="secondary"===l?"border-white/50":"border-black/50";return h("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${i} ${c}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${s}`,children:e?.title}),h("div",{className:`text-secondary-text ${o}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:o,onClick:()=>c(t),version:l})))})]})}));const xr=x((({className:e="",context:t,title:n="Акции и спецпредложения",date:a,description:l,buttons:r=[],version:i="primary",...s})=>h(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${K[i]} ${qe(e)} ${Je(e)} `,...s,children:h(Le,{context:t,title:n?h(G,{context:t,title:n,className:"!p-0 max-w-[600px]",headlineVersion:sr(e),bgColorHeadline:i,align:"left",as:"h2"}):null,buttons:r?.length?h(Te,{context:t,buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[a?h("div",{className:"text-s mb-2",children:pr(a)}):null,h("div",{className:"text-l",children:l})]})})})));function pr(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const gr=x((({context:e,className:t="",title:n,description:a,items:l,image:r,version:i,socialMedia:s})=>{const o=n?h(y,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:n}):null,c=r?.src?h(L,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${t}`,role:"listitem",children:h(Le,{context:e,className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[a?h(j,{className:"mb-2",description:a}):null,l?.length?h(Ve,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:l,version:i}):null,s?h(hl,{className:"pt-10 pb-0",media:s,version:i,context:e}):null]})})})})),br="absolute top-0 bottom-0 w-[84px]",fr=x((({context:e,recommendations:t=[],className:n="",title:l,version:r,...i})=>{const[s,o]=a(0),c="secondary"===r?"border-white/50":"border-main-stroke";return u(f,{context:e,className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===r?"bg-primary-main text-white":"bg-white text-primary-text"} ${n}`,...i,children:[l?h(y,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*s}px)`},role:"list",children:t?.length?t.map(Nr({context:e,version:r,className:c})):null}),vr({cardsCount:t.length,activeCardIndex:s,setActiveCardIndex:o})]}),h("div",{className:`${br} left-0 ${"secondary"===r?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${br} right-0 ${"secondary"===r?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Nr=({context:e,version:t,className:n})=>(a,l)=>h(gr,{context:e,...a,version:t,className:n},String(l)),vr=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const a=e>2;return h("div",{children:at({handler:[()=>n(t-1),()=>n(t+1)],isShown:[a&&t>0,a&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})})};const yr=e=>e?on(e,{method:"GET"}):{},wr=x((({data:e,fieldLabel:t,fieldValue:n,selected:a,placeholder:l="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return h(Da,{options:s,label:i,placeholder:l||a,onChange:e=>r(e.key),value:o})})),Ir=x((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:a=[],selectedBranch:l,onSelectedBranch:r})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(wr,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(wr,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:l,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Cr=x((({name:e,text:t,value:n,checked:a,onChange:l,className:r})=>h("div",{className:r,children:u("label",{className:"flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main\n rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main",type:"radio",value:n,name:e,checked:a,onChange:l}),t?h("span",{className:"font-sans ml-3 cursor-pointer",children:t}):null]})}))),kr=x((()=>{const[e,t]=a("option2"),n=e=>t(e.target.value);return u("div",{children:[h(Cr,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),h(Cr,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),Sr=["От 1 дня","До 365 дней"],$r=x((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(Qt,{min:1,max:365,value:e,items:Sr,onChange:t})]}))),Tr=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:a=[],selectedBoxSize:l,onSelectedBoxSize:r})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(wr,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(wr,{data:a,fieldLabel:"safeBoxCasesSize",selected:l,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Br=e=>Array.isArray(e)?e.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):e?.gpsLatitude&&e?.gpsLongitude?[[e.gpsLatitude,e.gpsLongitude]]:[],Dr=(e,t)=>e.find((e=>e.branchCode===t)),Rr=x((({regions:e,selectedRegion:t,branches:n,selectedBranch:a,days:l,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,setPoints:c,onChange:d,toggleShowMap:m})=>u("div",{className:"flex-1 mr-9",children:[h(Ir,{regions:e,selectedRegion:t,onSelectedRegion:e=>d({selectedRegion:e}),branches:n,selectedBranch:a,onSelectedBranch:Mr(d,c,n)}),h($r,{days:l,setDays:e=>d({days:e})}),h(Tr,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:Ar(d),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>d({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(kr,{}),h(ke,{text:"Офисы на карте",version:"primary",onClick:m})]})]}))),Mr=(e,t,n)=>a=>{e({selectedBranch:a,selectedCaseVolume:"",selectedBoxSize:""}),t(Br(a?Dr(n,a):n))},Ar=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Pr=x((({days:e,tariffs:t=[]})=>{const n=Lr(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Vr("Аренда за",e,"mr-11"),Vr("Цена",n+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(L,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),Vr=(e,t,n="")=>u("div",{className:n,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),Lr=(e,t)=>{const n=_r(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},_r=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},jr=x((e=>{const[t,n]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26,branches:[]}),r=function(e){const{data:t}=sn(e?`/api/v1/safeboxes?regionCode=${e}`:null,yr);return t||[]}(t.selectedRegion),i=e=>n((t=>({...t,...e})));l((()=>i({selectedRegion:Or(e.regions)})),[e.regions]),l((()=>{Array.isArray(r)&&r.length&&(i({branches:r}),e.setPoints(Br(r)))}),[r]),l((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[t.selectedRegion]);const s=Dr(t.branches,t.selectedBranch),o=Ur(s?.safeBoxCaseVolumes),c=Er(s?.safeBoxCaseVolumes,t.selectedCaseVolume)?.safeBoxCases,d=Gr(c,t.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(Rr,{...t,...e,caseVolumes:o,safeBoxCases:c,onChange:i}),h(Pr,{days:t.days,tariffs:d})]})})),Or=e=>e?.length&&e[0]?.code?e[0].code:"",Ur=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Er=(e,t)=>e?.find((e=>e.volume===t)),Gr=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;function zr(e,t,n){t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),l=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:a,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));l.add(r),t.geoObjects.add(l),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Fr=e=>globalThis[e];const Wr=()=>{const e=function(e,t){const[n,i]=a(),s=r((()=>i(Fr(e))),[e]);return l((()=>{const n=document.getElementById(t);if(!n){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!Fr(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`);return e},Hr=x((({points:e})=>{const t=s(null),n=Wr();return l((()=>{n?.ready((()=>{t.current=new n.Map("map",{center:e[0],zoom:10}),zr(n,t.current,e)}))}),[n]),l((()=>{t.current&&e&&n&&zr(n,t.current,e)}),[t,e,n]),n?u("div",{className:"pt-12 mt-1 bg-white",children:[h(y,{title:"Офисы на карте",headingType:"h3",className:"mb-8 text-center"}),h("div",{id:"map",className:"h-[640px]"})]}):null})),Xr=x((({title:e,footnote:t,context:n,className:l="",...r})=>{const[i,s]=a([]),[o,c]=a(!1),d=function(){const{data:e}=sn("/api/v1/regions",cn);return e||[]}();return u(f,{context:n,className:l,...r,children:[u("div",{className:"font-sans bg-white px-8 py-12",children:[e?h(y,{title:e,headingType:"h3",as:"h2",className:"mb-2.5 text-center"}):null,h(jr,{regions:d,setPoints:s,toggleShowMap:()=>{c(!o)}}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),i.length&&o?h(Hr,{points:i}):null]})})),Jr=e=>Boolean(e?.icon||e?.src),qr={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white"}},Kr=x((({className:e="",showLines:t=!0,steps:n=[],button:a,version:l="primary",context:r,...i})=>{const s=r.useRouter(),{handlerDecorator:o}=r,{title:c}=i,d=qr[l],m=n.length>3,x=(e=>e?"":"opacity-0")(t),p=c?"mt-9":"";return u(f,{className:["box-border font-sans text-primary-text bg-white",m?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",d.background,d.title,e].join(" "),context:r,...i,children:[c?h(y,{headingType:"h2",className:"max-w-[752px] text-center",title:c}):null,n?.length?u("div",{className:`box-border ${p}`,children:[h("div",{className:"flex items-center px-[88px]",children:pe(h("div",{className:`h-0.5 w-full bg-secondary-light ${x}`}))(n.map(Yr(d)))}),h("div",{className:"flex justify-between "+(m?"gap-x-3":"gap-x-[101px]"),children:n.map(Zr({styleMap:d,isMainButton:Boolean(a?.text),version:l,router:s,handlerDecorator:o}))})]}):null,a?.text?h(ke,{className:"mt-8 w-full max-w-[240px]",version:"primary",...ue({router:s,handlerDecorator:o},a)}):null]})})),Yr=e=>({icon:t},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:Jr(t)?h(L,{image:t,width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n)),Zr=({styleMap:e,isMainButton:t,version:n,router:a,handlerDecorator:l})=>(r,i)=>{const s=r?.label?"mt-2":"mt-4";return u("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px]\n whitespace-pre-line overflow-hidden",children:[r?.label?h("div",{className:"text-xl m-0 mt-4",children:r.label}):null,r?.description?h("div",{className:`text-l-light ${e.description} ${s}`,children:r.description}):null,r.button?.text&&!t?h(ke,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",...ue({router:a,handlerDecorator:l},r.button),version:n,children:r.button.text}):null]},String(i))};const Qr="h-12 flex-1 flex items-center justify-center cursor-pointer",ei="bg-primary-main",ti="group bg-white",ni="font-sans text-m",ai="text-white",li="text-secondary-text group-hover:text-primary-main",ri=(e,t)=>h("h3",{className:`${ni} ${t?ai:li}`,children:e}),ii=(e,t)=>h("div",{className:"min-w-[22px] w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),si=({onClick:e,currentTab:t,showCounter:n,page:a,context:l})=>(r,i)=>{const{useRouter:s,handlerDecorator:o}=l,c=s(),d=r.type;if("group"!==d&&"link"!==d)return null;switch(d){case"group":return(({onClick:e,currentTab:t,showCounter:n,page:a})=>(l,r)=>{const i=t===l,s=l.ref?a?.blocks?.filter((e=>e?.labels?.includes(l.ref))).length:a?.blocks?.length;return h("div",{className:`${Qr} ${i?ei:ti}`,role:"tab","aria-selected":i,onClick:()=>e(l),children:u("div",{className:"flex flex-1 items-center justify-center",children:[l?.title?ri(l.title,i):null,n&&s?ii(s,i):null]})},String(r))})({onClick:e,currentTab:t,showCounter:n,page:a,context:l})(r,i);case"link":{const n=ue({router:c,handlerDecorator:o},r),a=n.onClick;return(({text:e,currentTab:t,onClick:n,href:a,target:l="_self",i:r})=>{const i="link"===t?.type&&t.href===a;return h("a",{className:`${Qr} ${i?ei:ti}`,target:l,href:a,onClick:n,children:h("span",{className:`${ni} ${i?ai:li}`,children:e})},String(r))})({...n,onClick:t=>{a(t),e(r),g.inst.fire("anchorClick",{isScrolling:!0,label:r.href})},currentTab:t,i:i})}default:!function(e){throw new Error(e)}(d)}},oi=x((e=>{const{context:t,className:n="",tabs:r,page:i,showCounter:s,isSticky:o}=e,[c,d]=a(r?r[0]:void 0);l((()=>g.inst.subscribe("tab",(e=>{if(!r)return;const t=r.find(ci(e));"link"===e.type&&t&&d(t)}))),[r]),l((()=>{if("group"===c?.type)return g.inst.subject("tab",{label:c.ref})}),[c]);return h(f,{context:t,className:`${o?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${n}`,role:"tablist",children:r?.map(si({onClick:e=>{"group"===e?.type&&g.inst.fire("tab",{type:e.type,label:e.ref}),d(e)},currentTab:c,page:i,showCounter:s,context:t}))})})),ci=e=>t=>"link"===t.type&&t.href===`#${e.label}`,di=x((({isOpen:e,dataUrl:t,pdfUrl:n,rowIdx:a,cellIdx:l,fieldIdx:r})=>u(ke,{version:"primary",onClick:()=>{g.inst.fire("tariffInnerTable",{dataUrl:t,pdfUrl:n,rowIdx:a,cellIdx:l,fieldIdx:r})},className:"w-full flex items-center justify-center rounded-none py-5 ",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(S,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),mi=e=>e?.alt||e?.title||C[e?.icon?e.icon:""],hi={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({icon:e,rounded:t,...n},a)=>h(ke,{className:(a>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:mi(e),rounded:t,appendLeft:e?.src||e?.icon?h(L,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...n},String(a))))}):null,Img:({image:e})=>e?.src?h(L,{image:e}):null,List:({isDotted:e,...t})=>h(Ve,{className:"flex flex-col justify-between items-start text-sm",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]}),Table:x((e=>{const[t,n]=a(!0);console.log(e);const r=t=>{const a=["rowIdx","cellIdx","fieldIdx"].every((n=>e[n]===t[n]));n(!a)};return l((()=>g.inst.subscribe("tariffInnerTable",r)),[]),t?h(di,{...e}):null}))},ui=x((({context:e,cells:t,isLastRow:n,rowIdx:a,cellIdx:l})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(n?"border-t-0 rounded-b-md":""),role:"cell",children:t.map(xi(a,e,l))}))),xi=(e,t,n)=>(a,l)=>u("div",{className:"Table"===a?.tableCellType?"mx-0.5":"first:pt-5 last:pb-5 pl-10",children:[l>0?h("div",{className:"h-5"}):null,pi(a,t,{rowIdx:e,cellIdx:n,fieldIdx:l})]},String(l)),pi=(e,t,n)=>{if(!e)return null;const{tableCellType:a,...l}=e;if(!a||!(a in hi))return null;return h(hi[a],{context:t,...l,...n})};async function gi(e){const t=await fetch(e);return await t.json()}const bi=x((({rows:e})=>{const[t,n]=a(0),l=e?.[0]?.length??0,r=l>3&&l>t+4,i=t>0;return u("div",{children:[e?.map(fi(t)),at({handler:[()=>n(t-1),()=>n(t+1)],isShown:[i,r],btnClass:["right-3 top-24","right-3 top-2"],className:""})]})})),fi=e=>(t,n)=>{if(!t?.length)return null;const[a,...l]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(l?.[t]?.cols?.length??1)+e),0);return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[h("div",{className:"text-xl-light min-w-[214px] w-[214px] pt-6 pb-5",children:a.data}),h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:"flex duration-1000 text-center",style:{transform:`translateX(-${r}px)`},children:l?.map(((t,n)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Ni(t.cols,e):null]},`row${n}`)))})})]},String(n))},Ni=(e,t)=>e?h("div",{className:"flex text-xl-light "+(0===t?"text-secondary-text":""),children:e.map(((e,t)=>h("div",{className:"w-[76px] mx-8",children:e},String(t))))}):null,vi=x((({context:e,activeTabIndex:t,items:n})=>{const[l,r]=a({});return h("div",{children:n.map(((n,a)=>{const i=`activeTabIdx:${t}-tableIdx:${a}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>(e=>{r((t=>({...t,[e]:!t[e]})))})(i),children:[n.title,h(L,{image:l[i]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[i]?"h-0":"h-[243px]"),children:h("div",{className:"relative",children:h(bi,{context:e,rows:n.rowsData})})})]},i)}))})})),yi=x((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:a})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>a(t),children:e||t+1},e)))}):null,t?u(ke,{href:t,version:"secondary",className:"flex justify-center items-center text-l-light text-primary-main px-8",children:[h(L,{image:"DocDownloadIcon",className:"mr-[10px]",width:"24",height:"24",asSVG:!0}),h("span",{children:"Скачать в PDF"})]}):null]}))),wi=x((({context:e,dataUrl:t,pdfUrl:n})=>{const{tableData:l}=function(e){const{data:t}=sn(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),gi);return t||{}}(t),[r,i]=a(0),s=l?.[r]?.items??[],o=l?.map((e=>e.currency??""));return l?u("div",{className:"bg-white z-10",children:[h(yi,{currencies:o,activeTabIndex:r,setActiveTabIndex:i,linkToPDF:n}),h(vi,{context:e,activeTabIndex:r,items:s}),h(di,{context:e,isOpen:!0})]}):null})),Ii=x((({context:e,children:t,rowIdx:n})=>{const[r,i]=a(void 0);return l((()=>g.inst.subscribe("tariffInnerTable",(e=>{i(n===e.rowIdx?{dataUrl:e.dataUrl,pdfUrl:e.pdfUrl}:void 0)}))),[n]),u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:t}),r?h("div",{className:"origin-top animate-expansion",children:h(wi,{context:e,...r})}):null]})})),Ci=x((({row:{header:e,data:t},activeCardIndex:n,isLastRow:a,context:l,rowIdx:r})=>u(Ii,{context:l,rowIdx:r,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(a?"":"border-solid"),children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(L,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title?h(y,{headingType:e?.headingType||"h6",as:"h6",title:e?.title}):null]})}),t?.length?h(ta,{activeCardIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(ui,{cells:e,isLastRow:a,rowIdx:r,cellIdx:t,context:l},String(t))))}):null]}))),ki=x((({className:e="",context:t,title:n,description:l,rowHeaders:r,tariffsColumns:i,hiddenRowsNum:s=0,...o})=>{const[c,d]=a(0),m=i?.map((({data:e})=>e))||[],x=r?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[]))}))),p=m.length,g=Jn({columnsLength:p,colsLengthForScroll:2,activeCardIndex:c,setActiveCardIndex:d}),b=x?.map(((e,n,{length:a})=>h(Ci,{context:t,row:e,isLastRow:n+1===a,activeCardIndex:c,rowIdx:n},String(n))));return u(f,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${p>1?"pr-0":""} ${e}`,context:t,...o,children:[n?h(y,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:n}):null,l?h("div",{className:"mb-9 text-center text-l",children:l}):null,x?.length?h(nr,{blocks:b,hiddenBlocksNum:s,context:t,render:e=>h(Si,{tableArrowScrollControlProps:g,children:e}),foldButtonLabel:"Развернуть"}):null]})})),Si=x((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:n}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,h(la,{...t})]}),n?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),$i={Accordion:It,BenefitsBlock:Tt,Bonus:Vt,CardTransfer:_n,ComparisonTable:ua,Calculator:Bn,Catalog:Wn,ExchangeRateTile:Fa,Footer:gl,Gallery:ut,GracePeriod:bl,Header:Fl,Headline:G,InsuranceAmountBlock:ql,LinkDocs:q,MiniGallery:xt,MobileAppTile:Yl,PictureText:ne,ProductBlock:Ge,ProductGallery:ur,ProductTile:Ze,PromoTile:xr,OtherProducts:ir,Recommendation:fr,StepsBlock:Kr,TariffsTable:ki,TextBlock:Fe,Tile:Ke,Placeholder:or,BonusBenefitsBlock:Ut,SafeDepositRental:Xr,Tabs:oi,ErrorBlock:ga,OfficeServicesBlock:Ql},Ti=m();const Bi=x((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Di()}))),Di=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Ri=x((({className:e,context:t,...n})=>{const{useRouter:i,handlerDecorator:s=he}=t,o=function(e){const[t,n]=a(0);return l((()=>{(async()=>{const[t]=await Ti.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await Ti.like(e))}),[e]),dislike:r((async()=>{n(await Ti.dislike(e))}),[e])}}(i().pathname);return u(f,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...n,children:[h(Bi,{onClick:s(o.like),ariaLabel:"Поставить отметку «лайк»"}),h(Bi,{onClick:s(o.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:o.likeCount})]})}));function Mi(e,t,n=[null]){const{key:a,page:l,blockDecorator:r,blocksRegistry:i,context:s}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return r({blockClassName:`scroll-mt-12 ${_(e.style)}`,block:e,ancestors:n,render:({block:r,blockClassName:i})=>{const{version:o,content:d,anchor:m,labels:u,blocks:x}=r,p=x?x.map(((a,l)=>Mi(a,{...t,key:`${t.key}-${l}`},[...n,e]))):null;return c?h(c,{className:i,version:o,context:s,page:l,anchor:m,labels:u,...d,children:p},a):null}},a)}const Ai=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Pi=x((e=>{const{className:t="",context:n,data:a={}}=e,{style:l,blocks:r,slots:i,likeControl:s,colorPalette:o="pc"}=a,c=function({blocksRegistry:e,data:t,blockDecorator:n,context:a}){return(l,r)=>l.map(((l,i)=>Mi(l,{key:`${l.type||"#"}-${i}`,blocksRegistry:e,page:t||{},blockDecorator:n||Ai,context:a},r)))}(e);return u("section",{className:`relative ${_(l)} ${t}`,"data-theme":o,children:[i?.header?.blocks?.length?h("div",{className:`${_(i.header.style)}`,children:c(i.header.blocks,["header"])}):null,r?.length?h("div",{className:"container grid grid-cols-12 gap-1",children:c(r)}):null,s?Vi(n):null]})}));function Vi(e){return h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Ri,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:e},"LikeControl")})}e.Blocks=$i,e.ContentPage=Pi,e.DaDataAPI=o,e.LikeAPI=m,e.joinList=pe,e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ce,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 n=e=>(...n)=>t[e](...n),l=n("useState"),r=n("useEffect"),a=n("useCallback"),i=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,n){const{children:l,...r}=t||{},a=n?.slots?.default,i=l||a&&a();return e(Object.assign(r,i&&{children:i}),n)}return t.inheritAttrs=!1,t};function b(e){return e?e.filter(Boolean).join(" "):""}class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const f=x((e=>{const{tag:t="section",observerCallback:n,observerOptions:l,className:r="",anchor:i=null,children:o}=e,c=s(null),d=a((e=>{e&&(c.current&&c.current.disconnect(),c.current=new IntersectionObserver(n,l),c.current.observe(e))}),[n,l]);return h(t,{ref:d,className:r,id:i,children:o})})),v=100,N=x((({anchor:e,className:t,children:n,tag:a="section",labels:o})=>{const c=a,[d,m]=l(!0),u=s({}),x=i((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[l]=n;!l.isIntersecting||l.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:e,anchorClickRef:u})),[e]);return r((()=>{const e=g.inst.subscribe("anchorClick",(e=>{u.current=e})),t=g.inst.subscribe("tab",(e=>{var t;"group"===e.type?m(!o?.length||!e.label||o.includes(e.label)):((t=e.label)&&(globalThis.document.location.hash=t),m(!0))}));return()=>{e(),t()}}),[]),d?e?h(f,{tag:a,className:t,observerCallback:x,observerOptions:{threshold:new Array(18).fill(0).map(y)},anchor:e,children:n}):h(c,{className:t,children:n}):null}));function y(e,t){const n=(t+1)/v+.82;return Math.round(n*v)/v}const w=x((e=>{const{className:t="",description:n}=e;return h("div",{className:`${t}`,children:n})})),k={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},C=x((e=>{const{className:t="",headingType:n="h3",title:l,as:r="h3"}=e;return h(r,{className:`font-sans m-0 ${k[n]} ${t}`,children:l})})),$={left:"text-left",center:"text-center",right:"text-right"},S={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},I={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"}},T={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"},B=x((({bgColorHeadline:e="transparent",align:t="center",className:n="",title:l,description:r,headlineVersion:a="XL",as:i,...s})=>{const o=S[e],c=I[a];return u(N,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${n}`,...s,children:[l?h(C,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${$[t]}`,title:l}):null,r?h(w,{className:`${c.descriptionFont} ${o.text} ${$[t]}`,description:r}):null]})})),D={normal:"text-primary-main",black:"text-black",white:"text-black"},R=x((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:r=l,iconVersion:a="normal",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return i?h(j,{className:e,children:u("svg",{className:[L(e,s.width),D[a],t,_(a)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,l?h("desc",{children:l}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:l,title:r,...s,"aria-hidden":"true"})})),_=e=>"white"===e?"invert":"",L=(e,t)=>t?`width: ${t}px `:"w-full h-full",j=x((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function V(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const M=(e,t)=>e.media&&t.media?e.media-t.media:0,A=x((({className:e="",image:t,imageClassName:n="",isMobile:l=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${l?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(M).map((({src:e,format:n,media:l},r)=>h("source",{srcSet:e,type:F(n),media:l?`(max-width: ${l}px)`:"",...t.size},`${r}_${e}`))):null,O(t,n,l)]})})),O=(e,t="",n=!1)=>{const l={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,i=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:a,title:r,style:l,...e.size})};function F(e){return e?`image/${String(e)}`:void 0}const P=x((({className:e="",image:t,imageClassName:n="",isMobile:l,...r})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?h(R,{className:e,imageClassName:n,iconVersion:V(t),name:a,...r}):null:h(A,{className:e,imageClassName:n,image:t,isMobile:l})})),U=x((({className:e,iconClassName:t,textClassName:n,suffixClassName:l,doc:r,icon:a})=>{const{text:i,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(P,{className:t,image:a,width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:n,children:[i,h("span",{className:l,children:o?.href&&z(E(o.href),s)})]}):null]})})),z=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),E=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},G=x((({className:e="",doc:t,icon:n})=>h(U,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:n}))),H=x((({className:e,documents:t,columnsMode:n="double",icon:l})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===n?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(G,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:l})},String(t))))}):null)),X={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},J=x((({context:e,className:t="",title:n,description:l,align:r="center",documents:a,icon:i={icon:"DocIcon"},columnsMode:s="double",...o})=>u(N,{className:`font-sans text-primary-text p-[50px] bg-white ${t}`,context:e,...o,children:[h(B,{className:"!p-0",title:n,description:l,context:e,align:r,headlineVersion:"M",as:"h2"}),h(H,{className:`mt-8 ${X[s]}`,columnsMode:s,documents:a,icon:i})]}))),W={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Y={primary:"text-primary-text",secondary:"text-white"},K={primary:"text-secondary-text",secondary:"text-white"},Z=x((e=>{const{className:t="",icon:n,label:l,description:r,version:a="primary",benefitsVersion:i="normal"}=e,s=r?"items-start":"items-center",o=q(n,"white"===i||"secondary"===a);return u("div",{className:`flex gap-5 ${s} ${t}`,children:[n?h("div",{className:Q(a,i),children:h(P,{className:"w-6 h-6",image:{...n,iconVersion:o},asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[l?h("div",{className:`text-h6 ${Y[a]}`,children:l}):null,r?h("div",{className:`text-m-light ${K[a]}`,children:r}):null]})]})}));function Q(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const q=(e,t)=>e?.iconVersion||t?"white":"normal",ee=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),te=x((({className:e="",context:t,title:n,description:l,image:r,benefits:a,version:i="primary",sum:s,monthLimit:o,directionRight:c=!1,...d})=>u(N,{className:`relative font-sans py-12 px-24 ${W[i]} ${e}`,context:t,...d,children:[h(B,{context:t,className:"!p-0",title:n,description:l,headlineVersion:"M",bgColorHeadline:i,align:"center"}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[r?.src?h(P,{className:c?"order-2":"",image:r}):null,u("div",{className:"w-[558px] m-auto",children:[a?.length?h("div",{className:"flex flex-col gap-4",children:a.map(ne(i))}):null,le(s,o)]})]})]}))),ne=e=>(t,n)=>h(Z,{icon:t.icon,label:t.label,description:t.description,version:e},String(n));function le(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number.isFinite(e)?re("Страховая сумма:",e,Boolean(t)):null,Number.isFinite(t)?re("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function re(e,t=0,n=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full ${n?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[ee(t)," ₽"]})]})}const ae=e=>e?.includes("//"),ie=e=>(e||"").replace(/\/?\?.*/,""),se=e=>{if(!e||!ae(e))return;const t=e,n=t.indexOf("//"),l=t.indexOf("/",n+"//".length);return-1!==l?t.substring(0,l):t};var oe=Object.freeze({__proto__:null,isURL:ae,withoutQuery:ie,getOrigin:se,getHash:e=>{if(!e||!ae(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const ce="/mobile",de=(e,t)=>{if(!e)return e;const n=se(t?.href);return n?e.replace(n,"")||"/":e},me=e=>e;function he({router:e,handlerDecorator:t=me},n){const l=((e,t)=>{if(!e)return e;const n=de(e,t)||"",l=t?.pathname.startsWith(ce);return l&&!ae(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:l,"aria-label":n.text,onClick:t((t=>{const r=l&&!ae(l),a=!n.target||"_self"===n.target;r&&a&&(t?.preventDefault(),e.push(l))}),n)}}const ue=x((({text:e,href:t,target:n,onClick:l,className:r="",children:a})=>t?h("a",{className:`no-underline ${r}`,href:t,target:n,onClick:l,children:h("span",{className:r,children:e||a})}):h("span",{className:r,children:e||a})));function xe(e){return t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:l},n):[n]),[])}const pe={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},be="bg-main-divider text-main-disabled",ge={primary:be,secondary:be,white:be,link:""},fe="text-center font-sans select-none",ve={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},Ne=x((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:r,version:a="primary"}=e;return u("div",{className:ye(e),children:[l?h("div",{className:ve[a],children:l}):null,we(e)?u("div",{children:[h("div",{className:"text-xs-light text-left",children:n}),h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:ve[a],children:r}):null]})})),ye=e=>{const{className:t="",version:n,aboveText:l,rounded:r}=e;if("link"===n)return"";const a="gap-2 "+(l?"py-2.5 px-7":"py-4 px-9");return["group flex items-center justify-center",we(e)?a:"h-12 w-12",r?"rounded-full":"",t].join(" ")},we=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ke=({className:e,rounded:t,version:n})=>["inline-block",fe,n?ge[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ce=({className:e,rounded:t,version:n})=>[fe,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?pe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),$e=x((({aboveText:e,appendLeft:t,appendRight:n,ariaLabel:l,children:r,className:a,disabled:i,href:s,onClick:o,rel:c,rounded:d,target:m,text:u,version:x})=>{const p=r??h(Ne,{aboveText:e,appendLeft:t,appendRight:n,rounded:d,text:u,version:x});return i?h(Ie,{ariaLabel:l,className:a,rounded:d,version:x,children:p}):h(Se,{ariaLabel:l,className:a,href:s,onClick:o,rel:c,rounded:d,target:m,version:x,children:p})})),Se=x((({className:e="",ariaLabel:t,version:n,rounded:l,href:r,target:a,children:i,onClick:s,rel:o})=>h("a",{className:Ce({className:e,version:n,rounded:l}),href:r,target:a,onClick:s,"aria-label":t,role:r?"link":"button",rel:o,children:i}))),Ie=x((({className:e,children:t,ariaLabel:n,version:l,rounded:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":n,tabIndex:-1,className:ke({className:e,rounded:r,version:l}),children:t}))),Te=x((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:l}=e,r=e.useRouter();return n&&n?.length?h("div",{className:t,children:n.map(((e,t)=>h(Be,{button:e,handlerDecorator:l,router:r},String(t))))}):null})),Be=x((({router:e,handlerDecorator:t,button:n})=>{const l=he({router:e,handlerDecorator:t},n);return h($e,{...n,...l})})),De={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Re={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4 mt-3",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3 mt-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2 mt-2.5"},_e=x((({className:e="",isDotted:t=!0,children:n,version:l="primary",size:r="M"})=>u("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?h("div",{className:`rounded-full inline-block ${De[l]} ${Re[r]}`}):null,h("span",{children:n})]}))),Le={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},je={S:"text-l-light",M:"text-h6",L:"text-h5"},Ve={S:"ml-2",M:"ml-3",L:"ml-4"},Me=x((e=>{const{className:t="",hasIndent:n,isDotted:l,itemClassName:r="",items:a,listItemSize:i="M",version:s="primary"}=e;return a?.length?h("section",{className:`${Le[s]} ${je[i]} ${t} ${n?Ve[i]:""}`,role:"list",children:a.map(((e,t)=>h(_e,{className:`${r} mb-1.5`,isDotted:l,version:s,size:i,children:e},String(t))))}):null})),Ae=x((({className:e="",title:t="",children:n,buttons:l,image:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),l?h("div",{className:"mt-auto pt-8",children:l}):null]}),r]})]}))),Oe=(e="primary",t="normal")=>({icon:n,label:l,description:r},a)=>h(Z,{icon:n,label:l,description:r,version:e,benefitsVersion:t},String(a)),Fe=x((({className:e="",context:t,title:n,headlineVersion:l="L",description:r,benefits:a,benefitsVersion:i="normal",buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,textBlockClassName:x=""})=>u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${x}`,children:[h(B,{context:t,title:n,description:r,className:"!p-0 max-w-[600px]",bgColorHeadline:d,headlineVersion:l,align:"left"}),u(Ae,{context:t,buttons:Pe(t,s),children:[a?.filter((e=>e.label))?.length?h("div",{className:"flex gap-6 mt-6",children:a.map(Oe(d,i))}):null,c?.length?h(Me,{className:"mt-5 text-h6",items:c,itemClassName:"mb-[7px]",version:d,isDotted:m}):null]})]}),o?.src&&h(P,{className:"mt-[-50px]",image:o})]}))),Pe=(e,t)=>t?.length?h(Te,{context:e,buttons:t,className:"flex gap-4"}):null;function Ue(e,t,n){const{text:l,href:r,target:a,onClick:i}=e,s="primary"===t?"white":"black";return u("div",{className:`flex items-center cursor-pointer ${n}`,onClick:i,children:[h($e,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:l,href:r,target:a,children:h(P,{className:"w-4 h-4",image:{...e?.icon||{icon:"ArrowLeftIcon"},iconVersion:s},asSVG:!0})}),l?h("span",{className:"text-m",children:l}):null]})}const ze={primary:"text-secondary-text",secondary:"text-white/80"},Ee=x((e=>{const{context:t,className:n="",breadcrumbs:l,backwardButton:r,version:a="primary",...i}=e,s=t.useRouter(),{handlerDecorator:o}=t;return u(N,{context:t,className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${W[a]} ${n}`,...i,children:[r?.text?Ue(he({router:s,handlerDecorator:o},r),a,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:xe(h("span",{className:`mx-2 ${ze[a]}`,children:"/"}))(l.map(((e,t)=>h(ue,{...he({router:s,handlerDecorator:o},{className:ze[a],...e})},String(t)))))}):null,h(Fe,{context:t,version:a,...i})]})})),Ge={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},He=x((({title:e,description:t,blockVersion:n="primary",iconVersion:l,image:r,className:a,...i})=>{const s=Ge[n];return u(N,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===l?Xe(s.icon):null,"big"===l?Je(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function Xe(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Je(e){return e?.src?h(P,{className:"pt-0.5 pr-3",image:e}):null}const We=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Ye(e=""){const t=We(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Ke(e=""){const t=We(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ze=x((e=>{const{context:t,title:n,headingType:l="h3",description:r,items:a,children:i,buttons:s,image:o,isDotted:c=!0,listItemSize:d="M",className:m="",version:x="primary",...p}=e,b="primary"===x?"text-primary-text":"";return h(N,{context:t,className:`overflow-hidden font-sans p-9 pr-3 box-border ${m} ${W[x]} ${Ke(m)} ${Ye(m)} `,...p,children:u(Ae,{context:t,title:n?h(C,{headingType:l,as:"h2",title:n,className:`whitespace-pre-wrap max-w-[600px] ${b}`}):null,buttons:s?.length?h(Te,{context:t,buttons:s.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-8 gap-3"}):null,image:o?.src?h(P,{className:"mt-auto ml-7",image:o}):null,children:[r?h(w,{className:"max-w-[600px] text-xl-light mt-2.5",description:r}):null,i,Qe(a,{version:x,isDotted:c,listItemSize:d})]})})}));function Qe(e,{version:t,isDotted:n,listItemSize:l}){return e?.length?h(Me,{items:e,isDotted:n,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:t}):null}const qe=x((({context:e,className:t="",title:n,headlineVersion:l="S",description:r,additionalDescription:a,benefits:i=[],buttons:s,image:o,version:c="primary",...d})=>u(N,{context:e,className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${t} ${W[c]} ${Ke(t)}`,...d,children:[h(B,{context:e,className:"!p-0 !bg-transparent z-10 "+(n||r?"mb-3.5":""),as:"h2",title:n,description:r,headlineVersion:l,bgColorHeadline:c,align:"left"}),et(i,c,o),a?nt(a,o,c):null,s?.length?h(Te,{context:e,buttons:s,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,o?.src?h(P,{className:"absolute right-0 bottom-0",image:o}):null]})));function et(e,t,n){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${n?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(tt(t)):null})}function tt(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(n,l){const{label:r="",description:a=""}=n;return[h("div",{className:"text-h6",children:r},`label-${l}`),h("div",{className:`text-m-light ${t[e]}`,children:a},`desc-${l}`)]}}function nt(e,t,n="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[n]}`,children:e})}const lt=x((({className:e,disabled:t,...n})=>h($e,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:h(P,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})})));function rt({handler:e,isShown:t,btnClass:n,className:l="",isDisabled:r=!1}){return u("div",{children:[t[0]||r?h(lt,{className:`absolute z-10 ${n[0]} ${l}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||r?h(lt,{className:`absolute z-10 rotate-180 ${n[1]} ${l}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const at={normal:3,mini:4},it={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},st={normal:380,mini:276},ot={left:"text-left",center:"text-center",right:"text-right"},ct=x((({title:e,headlineSmallVersion:t="XL_L",description:n,additionalDescription:l,image:r,items:a,button:i,version:s,isDotted:o=!0,align:c="center"})=>u("div",{className:`h-full flex flex-col justify-between ${ot[c]}`,children:[u("div",{className:"flex flex-col h-full",children:[dt(r),mt(t,e),ht(n,e),ut(l),a?.length?pt(a,o,s):null]}),i?xt(i):null]}))),dt=e=>e?.src?h("div",{className:"flex justify-center",children:h(P,{className:"mb-6",image:e})}):null,mt=(e,t)=>t?h("div",{className:T[e],children:t}):null,ht=(e,t)=>e?h("div",{className:"text-base "+(t?"mt-2":""),children:e}):null,ut=e=>e?h("div",{className:"text-m-light text-secondary-text mt-auto",children:e}):null,xt=e=>h($e,{className:"mt-6 w-full",...e}),pt=(e,t,n="primary")=>h(Me,{className:"max-w-[308px] mt-2 text-s "+("primary"===n?"!text-secondary-text":""),itemClassName:"mt-1 text-left first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:n}),bt=x((({context:e,title:t,headlineVersion:n="L",description:l,cards:r=[],version:a="normal",activeCardIndex:i})=>u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),h(B,{context:e,className:"!p-0",title:t,description:l,headlineVersion:n,align:"center"}),h("div",{className:`flex mt-8 ${r?.length<=at[a]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${i*st[a]}px)`},role:"list",children:r?.map(((t,n)=>function({card:e,version:t},n){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${it[t]} ${W[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(ct,{...e})},String(n))}({card:t,version:a,context:e},n)))})]})));const gt=x((({context:e,cards:t=[],className:n="",version:r="normal",...a})=>{const[i,s]=l(0),o=t?.length>at[r],c=o&&t?.length-i>at[r],d=o&&i>0;return u(N,{context:e,className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${n}`,...a,children:[h(bt,{context:e,cards:t,version:r,activeCardIndex:i,...a}),rt({handler:[()=>s(i-1),()=>s(i+1)],isShown:[d,c],btnClass:["left-8","right-8"],className:"top-1/2"}),h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]})})),ft=x((e=>h(gt,{...e,version:"normal"}))),vt=x((e=>h(gt,{...e,version:"mini"}))),Nt=x((({className:e="",documents:t,...n})=>h(N,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?yt(t):null})}))),yt=e=>e.map(((e,t)=>{const{text:n,...l}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...l,children:n||null})},`list_item_${String(t)}`)})),wt={Headline:B,LinkDocs:J,TextBlock:He,PictureText:te,ProductBlock:Ee,Tile:Ze,ProductTile:qe,Gallery:ft,MiniGallery:vt,LinkList:Nt},kt=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Ct({context:t,className:n})):[],Ct=({context:e,className:t})=>(n,l)=>{if(!n)return null;const{style:r,blockListType:a,...i}=n;if(!a||!(a in wt))return null;const s=b(r);return h(wt[a],{className:`${t} ${s}`,context:e,...i},`block_${l}`)},$t=x((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[i,s]=l(t),o=a((()=>{s((e=>!e))}),[]),c=n({isUnfolded:i,onToggle:o}),d=r?r({isUnfolded:i,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),St=x((({className:e="",isUnfolded:t,children:n})=>{const l=s(null);return r((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t]),h("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),It=["PlusIcon","MinusIcon"],Tt=x((({label:e="",children:t,hasContent:n=!0})=>h("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:h($t,{isFoldButtonOnTop:!0,renderFoldableSection:({isUnfolded:e})=>h(St,{className:"grid grid-cols-12",isUnfolded:e,children:t}),renderFoldButton:({isUnfolded:t,onToggle:l})=>h(Bt,{label:e,icon:It[Number(t)],hasContent:n,onClick:l})})}))),Bt=x((({label:e,icon:t,hasContent:n,onClick:l})=>u("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer "+(n?"group cursor-pointer":""),onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),n?h(P,{image:t,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0}):null]}))),Dt=x((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),Rt={left:"text-left",center:"text-center",right:"text-right"},_t=x((({title:e,description:t,accordionItems:n,context:l,className:r="",accordionAlignTitle:a="center",...i})=>u(N,{context:l,className:`p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${r}`,...i,children:[e?h(C,{headingType:"h3",as:"h2",className:`mb-2.5 ${Rt[a]}`,title:e}):null,t?h("div",{className:"mb-2.5 text-l",children:t}):null,n?.length?h(Dt,{children:n.map(((e,t)=>h(Tt,{context:l,hasContent:Boolean(e.blocks?.length),...e,children:kt({blocks:e.blocks,context:l,className:"!p-0 mb-5"})},`AccordionItem${t}`)))}):null]}))),Lt={primary:"bg-white",secondary:"bg-primary-main"},jt={primary:"",secondary:"text-white"},Vt={primary:"text-secondary-text",secondary:"text-white opacity-80"},Mt={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},At=x((({className:e="",title:t,benefitList:n,benefitsBlockVersion:l="primary",...r})=>u(N,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${Lt[l]}`,...r,children:[t?h(C,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${jt[l]}`,title:t}):null,n?.length?Ot(n,l):null]}))),Ot=(e,t)=>h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:e.map(Pt(t))}),Ft=(e,t)=>(!e.icon||e?.iconVersion||(e.iconVersion="secondary"===t?"white":"normal"),e),Pt=e=>(t,n)=>{const l=t?.description||void 0;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(P,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${Mt[e]}`,image:Ft(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(P,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${jt[e]}`,children:t.label}):null,Ut(l,e)]})]},String(n))},Ut=(e,t)=>{const n=e?e?.benefitType:null;return n&&e?h("div",{className:`text-l-light mt-2 ${Vt[t]}`,children:"list"===n?Et(e):zt(e)}):null},zt=e=>e?e.name:null,Et=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},Gt=x((e=>{const{context:t,className:n="",title:l,description:r,bonusItems:a,...i}=e;return h(N,{className:`font-sans bg-white p-[50px] pb-9 ${n}`,context:t,...i,children:u("div",{className:"container",children:[h(B,{context:t,className:"!p-0",title:l,description:r,headlineVersion:"M",align:"center"}),h("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,n)=>h("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?h(Te,{context:t,buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?Ht(e.bonusItemContent):null]})},String(n)))):null})]})})})),Ht=e=>h("div",{children:"count"===e.bonusType?Xt(e):Jt(e)}),Xt=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Jt=e=>e.image?h(P,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full",image:e.image}):null;function Wt(e=""){const t=We(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const Yt=x((({context:e,className:t="",title:n,subtitle:l,bonusBenefits:r,...a})=>u(N,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${t}`,context:e,...a,children:[h(B,{context:e,className:"!p-0",title:n,description:l,headlineVersion:"M",align:"center"}),r?.length?h("div",{className:`grid gap-1 mt-8 ${Wt(t)}`,children:r.map(Kt)}):null]}))),Kt=(e,t)=>u("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?h(P,{className:"h-[160px] w-[180px] min-w-[180px] min-h-[160px]",image:e.icon,width:"180",height:"160"}):null,h("div",{children:e?.label?h("span",{className:"text-h6 m-0",children:e.label}):null})]},String(t)),Zt=x((({title:e,value:t,postfix:n="",prefix:l,className:r=""})=>u("div",{className:`mb-7 ${r}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[l," ",ee(Math.round(t))," ",n]}):null]}))),Qt=6e4,qt=2e6,en=97e4,tn=Math.round(23.5),nn={minSum:Qt,maxSum:qt,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},ln={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},rn=x((({rate:e,title:t="Ставка",unit:n,rateBlockClassName:l})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${l}`,children:String(e).replace(".",",")}),n?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:n}):""]})]})));function an(e,t){return t?.length?h(Te,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}const sn=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,on=(e,t,n)=>Math.max(t,Math.min(e,n)),cn=e=>e.split(/\s+/).join(""),dn=x((({className:e,title:t,items:n=[],min:l=1,max:r=100,step:a=1,value:i=l,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(on(Number(cn(e.target.value)),l,r))},d={backgroundSize:`${(100*(i-l)/(r-l)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:ee(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:r,step:a,value:i,disabled:s,onChange:c,style:d})})]}),mn(n)]})}));function mn(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const hn=1e3;function un(e,t,n){const{moneyValue:l,minSum:r,maxSum:a,step:i=hn,isShowItems:s=!0}=t,o=[`От ${ee(r)} ₽`,`До ${ee(a)} ₽`];return h(dn,{title:e,items:s?o:[],min:r,max:a,step:i,value:on(l,r,a),onChange:n})}const xn=new Map;function pn(e,t,{fallback:n}={}){const a=i((()=>bn(e)),[e]),[s,o]=l(),[c,d]=l(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>xn.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],x=n&&"string"==typeof u&&n[u];return{data:s||c||!x?s:x,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function bn(e){return e?Array.isArray(e)?e:e instanceof Function?bn(e()):[e]:[e]}async function gn(e,t){try{return await fn(e,t)}catch(e){console.error(e)}return null}async function fn(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function vn(e){const{data:t}=pn(`/wcms-resources/${e}.json`,fn);return t}const Nn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,r=vn(t||"bonus-calculator-data")||ln,[a,i]=((e,t,n)=>{const{minSumTravel:l,minSumOther:r,maxBonus:a,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===l&&n===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),a);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),a)*(12-i)]})(r,n,l);return{...r,...e,monthBonus:a,yearBonus:i}},yn=x((({context:e,className:t="",sourceBookDir:n="",buttons:r,footnote:a})=>{const[i,s]=l(6e3),[o,c]=l(6e3),d={travelExpenseValue:i,restExpenseValue:o},{minSumTravel:m,maxSumTravel:x,minSumOther:p,maxSumOther:b,monthBonus:g,yearBonus:f}=Nn(d,n);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[un("Сумма покупок в категории путешествия, ₽",{minSum:m,maxSum:x,moneyValue:i,step:500,isShowItems:!1},s),un("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:p,maxSum:b,moneyValue:o,step:500,isShowItems:!1},c)]}),h("div",{children:g>=0?h(rn,{title:"Баллов за месяц",rate:g,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[f>=0?h(Zt,{title:"Баллов за год",value:f}):null,an(e,r),sn(a)]})]})})),wn=x((({className:e,viewBox:t,fill:n="none",width:l,height:r,paths:a,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:r,children:a.map((({d:e,fill:t,...n},l)=>h("path",{d:e,fill:t||"currentColor",...i,...n},l)))}))),kn=[{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"}],Cn=x((({className:e,text:t,checked:n,isRadio:l,onChange:r})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${l?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${n?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{r(e.target.checked)},checked:n}),l?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(wn,{paths:kn,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})})));function $n(e,t,n){const{minMonths:l,maxMonths:r,monthsValue:a}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(dn,{className:"mt-7",title:e,items:[`От ${i(l)}`,`До ${i(r)}`],min:l,max:r,step:1,value:on(a,l,r),onChange:n})}const Sn=x((({items:e,checkedItem:t,onChangeCheckedItem:n})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:l})=>h(Cn,{isRadio:!0,text:l,checked:t===e,onChange:()=>n(e)},e)))})));function In(e,{items:t,checkedItem:n,onChange:l}){return h(Sn,{context:e,items:t,checkedItem:n,onChangeCheckedItem:l})}const Tn=(e,t)=>{const{isInsurance:n,isSalaryClient:l,isStateEmployee:r,moneyValue:a}=e,i=vn(t||"credit-calculator-data")?.rows?.find((e=>n===e.isInsurance&&l===e.isSalaryClient&&r===e.isStateEmployee))||nn,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=a<=c?s:o,m=((e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:r}=t;if(n){const t=e/1200;return l*(t+t/(Math.pow(1+t,r)-1))}return Math.round(l/r)+l*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},Bn="annuity",Dn="differential",Rn=[{id:Bn,text:"Аннуитетный"},{id:Dn,text:"Дифференцированный"}],_n=x((({context:e,className:t="",sourceBookDir:n,buttons:r,footnote:a})=>{const[i,s]=l(!1),[o,c]=l(!0),[d,m]=l(!1),[x,p]=l(!1),[b,g]=l(en),[f,v]=l(tn),N=Tn({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:x,moneyValue:b,monthsValue:f},n);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[un("Сумма кредита, ₽",{...N,step:500},g),$n("Срок кредита, месяцев",N,v),u("div",{className:"mt-7",children:[h(Cn,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),h(Cn,{className:"mt-3",text:"Работаю в бюджетной организации",checked:x,onChange:p}),h(Cn,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),h(rn,{title:"Ставка",rate:N.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Zt,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:N.monthlyPayment,postfix:"₽"}),In(e,{items:Rn,checkedItem:i?Bn:Dn,onChange:e=>s(e===Bn)}),an(e,r),sn(a)]})]})})),Ln="everyMonth",jn="atEndTerm",Vn=[{id:Ln,text:"Ежемесячно"},{id:jn,text:"В конце срока"}],Mn={CreditCalculatorForm:_n,DepositCalculatorForm:x((({context:e,className:t="",rate:n,buttons:r,footnote:a})=>{const[i,s]=l(en),[o,c]=l(tn),[d,m]=l(!1);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[un("Сумма вклада, ₽",{moneyValue:i,minSum:Qt,maxSum:qt},s),$n("Срок вклада, месяцев",{minMonths:13,maxMonths:60,monthsValue:o},c)]}),h(rn,{rate:n||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Zt,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),h(Zt,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),In(e,{items:Vn,checkedItem:d?Ln:jn,onChange:e=>m(e===Ln)}),an(e,r),sn(a)]})]})})),BonusCalculatorForm:yn},An=({context:e,className:t})=>(n,l)=>{const r=n?.calcType;if(!r||!(r in Mn))return null;const a=Mn[r];return h("section",{className:`box-border relative bg-white flex shrink-0 self-start basis-full ${t}`,role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[n?.title?h(C,{className:"text-center mb-6",title:n.title}):null,h(a,{context:e,...n,className:"flex justify-between"})]})},String(l))},On=x((({className:e="",context:t,calculatorTabs:n=[],...r})=>{const a=n.map((e=>e.nav||{})),i=n.map((({calculatorBlock:e})=>e||{})),[s,o]=l(0),[c,d]=l(0),m=n?.length>3&&n?.length>c+3,x=c>0;return u(N,{context:t,className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...r,children:[u("div",{className:"bg-white",children:[a.length>1?Fn({tabsShift:c,tabsNav:a,activeSlideIndex:s,setActiveSlideIndex:o}):null,rt({handler:[()=>d(c-1),()=>d(c+1)],isShown:[x,m],btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(An({context:t,className:e})):null})]})}));function Fn({tabsShift:e,tabsNav:t,activeSlideIndex:n,setActiveSlideIndex:l}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:n,onClick:l}){const r=t===n,a=r?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",i=r?"text-xl mb-1.5":"text-l mb-[3px]",s=r?"text-l-light text-white":"text-m-light text-secondary-text",o=r?"":"text-primary-main";return u("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[h(P,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${o}`,image:{...e?.icon,iconVersion:r?"white":"normal"},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${i}`,children:e?.title}),h("div",{className:`${s}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:n,onClick:()=>l(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const Pn=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Un=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},zn=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),En=x((({className:e="",inputClassName:t="",id:n,name:l,type:r="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...x})=>{const p=a((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),b=a((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),g=c?"pr-8":"",f=o?"border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${g} ${f} ${t}`,id:n,name:l||n,type:r,value:s,onChange:p,onBlur:b,...x}),c]})})),Gn=x((({className:e="",onChange:t,minValue:n=0,maxValue:l=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=Pn(Un(zn(cn(e))));const a=Hn(r,on(Number(r),n,l));t(String(a))}),[t]),s=a((e=>{var n;t&&t((n=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(cn(n))).replace(",",".")))}),[t]);return h(En,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Hn=(e,t)=>Number(e)===t?e:String(t),Xn=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:r="1500",button:a,context:i,...s})=>{const o=i.useRouter(),{handlerDecorator:c}=i,[d,m]=l(""),x=!Number(cn(d)),p=x?ke({version:a?.version}):Ce({className:"text-white",version:a?.version});return u(N,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,context:i,...s,children:[t?h(C,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(Gn,{name:"amount",value:d,onChange:m,valid:""===d||!x,placeholder:r,label:n}),a?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:x,...he({router:o,handlerDecorator:c},a),children:a.text}):null]})]})})),Jn={black:"bg-black",white:"bg-white"},Wn=x((({className:e="",title:t,description:n,image:l,price:r,button:a,colors:i})=>u("section",{className:`border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[l?.src?h(P,{className:"mb-5 flex justify-center",image:l}):null,t?h(C,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?h("div",{className:"text-m-light text-left mb-4",children:n}):null,i?.length?u("div",{className:"flex mb-4 text-m-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(Yn)]}):null,r?u("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,a?h($e,{className:"mt-5 w-full",...a}):null]}))),Yn=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Jn[e]}`},String(t)),Kn="absolute top-0 bottom-0 w-[84px]",Zn=x((({context:e,cards:t=[],className:n="",title:r,description:a,...i})=>{const[s,o]=l(0);return u(N,{context:e,className:`bg-white relative font-sans p-12 overflow-hidden text-center ${n}`,...i,children:[h(B,{context:e,className:"!p-0",title:r,description:a,headlineVersion:"M",align:"center"}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*s}px)`},role:"list",children:t?.length?t.map(Qn(e)):null}),qn({cardsCount:t.length,activeCardIndex:s,setActiveCardIndex:o}),h("div",{className:`${Kn} left-0 bg-opacity-from-white`}),h("div",{className:`${Kn} right-0 bg-opacity-to-white`})]})})),Qn=e=>(t,n)=>h(Wn,{context:e,...t},String(n)),qn=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const l=e>3;return rt({handler:[()=>n(t-1),()=>n(t+1)],isShown:[l&&t>0,l&&e-t>3],btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"})},el=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:l})=>{const r=e>t;return{handleNextClick:()=>l(n+1),handlePrevClick:()=>l(n-1),isScrollAvailable:r,showNextButton:r&&e-n>t,showPrevButton:Boolean(r&&n>0)}},tl="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",nl="border-main-stroke border-solid border",ll="border-main-divider border border-t-0 border-x-0",rl="w-[200px] mr-6",al=x((({icon:e,image:t,title:n,link:l})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${nl} ${tl}`,role:"columnheader",children:[e&&!t?.src&&h(P,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&h(P,{className:"mb-[18px]",image:t}),n?h(C,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,l?.text&&h("div",{className:"mt-auto w-full",children:h($e,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:l.text})})})]}))),il={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},sl=x((({children:e,activeCardIndex:t,columnWidth:n,version:l="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:il[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),ol=x((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),cl=x((({colHeaders:e,activeCardIndex:t,router:n,handlerDecorator:l})=>u(ol,{children:[h("div",{className:rl,role:"columnheader"}),h(sl,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>h(al,{...e,link:e.link&&he({router:n,handlerDecorator:l},e.link)},String(t))))})]}))),dl=x((({isScrollAvailable:e,handleNextClick:t,handlePrevClick:n,showNextButton:l,showPrevButton:r})=>e?h("div",{children:rt({handler:[n,t],isShown:[r,l],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null)),ml=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:l})=>h("div",{className:`w-80 box-border flex flex-col ${nl} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${l?tl:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${ll} ${l&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>xl(e,t,l)))})}))),hl=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),ul=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),xl=({label:e,description:t},n,l)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:hl(l),children:e}):null,t?h("div",{className:ul(l),children:t}):null]},String(n)),pl=(e=!1)=>`text-s py-7 ${ll} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,bl=x((({row:{header:e,data:t},activeCardIndex:n,isColoredFirstColumn:l,isFirstRow:r,isLastRow:a})=>u(ol,{children:[e?.title?h("div",{className:pl(a),children:e.title}):null,t?.length?h(sl,{activeCardIndex:n,columnWidth:336,children:t.map(((e,t)=>h(ml,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:l&&0===t},String(t))))}):null]}))),gl=x((({rowData:e,activeCardIndex:t,isColoredFirstColumn:n,...l})=>u("div",{className:"relative",children:[e.map(((e,l,{length:r})=>h(bl,{row:e,isFirstRow:0===l,isLastRow:l+1===r,activeCardIndex:t,isColoredFirstColumn:n},String(l)))),h(dl,{...l})]}))),fl=x((({context:e,columns:t,rowHeaders:n,isShowAllRow:r,visibleRowLength:a,isColoredFirstColumn:i})=>{const s=e.useRouter(),{handlerDecorator:o}=e,c=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],m=n?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,r?n.length:a),[x,p]=l(0),b=el({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:p}),{isScrollAvailable:g}=b;return u("div",{children:[u("div",{role:"table",children:[c?.length?h(cl,{colHeaders:c,activeCardIndex:x,router:s,handlerDecorator:o}):null,m?.length?h(gl,{rowData:m,activeCardIndex:x,isColoredFirstColumn:i,...b}):null]}),g?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),vl=x((({className:e="",context:t,title:n,rowHeaders:r,columns:a,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=l(!i);return u(N,{context:t,className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(C,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:n}),h(fl,{context:t,columns:a,rowHeaders:r,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Nl({isShowAllRow:c,onClick:()=>d(!c)}):null]})})),Nl=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:rl}),h("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),yl=e=>"Image"===e?.errorContentType&&e?.image?h(P,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,wl=x((({context:e,className:t="",title:n,subtitle:l,error:r,button:a})=>{const{useRouter:i,handlerDecorator:s}=e,o=i();return u("section",{className:`flex flex-col justify-center items-center mt-12 ${t}`,role:"listitem",children:[h("div",{className:"flex justify-center py-20",children:yl(r)}),n?h(C,{headingType:"h1",className:"text-left mb-4",title:n}):null,l?h("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,a?.text?h($e,{className:"py-4 px-9",version:a?.version,...he({router:o,handlerDecorator:s},a),children:a.text}):null]})})),kl=(e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n};function Cl(){return gn($l,{method:"POST",body:JSON.stringify(Sl)})}const $l="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",Sl={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Il=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:kl(Number(t.rate_buy),3),sell:kl(Number(t.rate_sell),3)}),e}),[]);var Tl;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Tl||(Tl={}));const Bl=new Intl.NumberFormat("ru",{style:"currency",currency:Tl.RUB}),Dl=e=>e?Bl.format(e):"",Rl="text-left text-m-light text-secondary-text",_l={USD:"DollarIcon",EUR:"EuroIcon"},Ll=x((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:Rl,children:"Валюта"}),h("th",{className:`${Rl} pl-11`,children:"Купить"}),h("th",{className:`${Rl} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map((e=>jl(e)))})]}))),jl=e=>{const t=e?.code;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(P,{image:{icon:_l[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:Dl(e?.sell)}),h("td",{className:"pt-4 pl-11",children:Dl(e?.buy)})]},t)},Vl=x((({className:e="",address:t,distance:n})=>u("div",{className:`flex ${e}`,children:[h(P,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,n?u("p",{className:"text-secondary-text m-0 text-m-light",children:["Курс указан для ближайшего офиса - ",n]}):null]})]})));const Ml=x((({className:e="",isBorder:t=!0,label:n,options:a=[],value:i,onChange:o,placeholder:c=""})=>{const[d,m]=l(a[0]||{key:"",text:""}),[x,p]=l(!1),b=s(null);!function(e,t){r((()=>{function n(n){e&&e.current&&n.target instanceof HTMLElement&&!e.current.contains(n.target)&&t(!1)}return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}}),[])}(b,p);return r((()=>{m(i||{key:"",text:""})}),[i]),u("div",{className:`${e}`,ref:b,children:[n?h("span",{className:"mb-2 flex",children:n}):null,u("div",{className:"relative "+(x?"z-20":"z-10"),children:[u("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${Fl(t)}`,onClick:()=>p(!x),children:[h("p",{className:"p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),h(R,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(x?"":"rotate-180")})]}),a?.length?h("div",{className:`h-0 ${Al(x)}`,children:h("div",{className:"bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:a.map(Ol((e=>{m(e),p(!1),o(e)}),x,(e=>Boolean(e.key===d.key))))})}):null]})]})})),Al=e=>e?"":"overflow-hidden",Ol=(e,t,n)=>(l,r)=>u("div",{onClick:()=>{e(l)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:l.text}),h(R,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",n(l)&&t?"":"hidden"].join(" ")})]},String(r)),Fl=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function Pl(e){const{placeholder:t,rates:n,selected:l,value:r,setValue:a,setSelected:i}=e,s=n.map((e=>({key:e.code??"",text:e.code??""}))),o={key:l,text:l};return u("div",{className:"relative flex",children:[h(En,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?h(Ml,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Ul=(e,t,n)=>{const l=Number(zl(e))*Math.pow(t,n?-1:1);return Number.isInteger(l)?l:kl(l)},zl=e=>e.replace(/[^\d.,]/g,"").replace(",","."),El=e=>{return(t=[[e=>e.value!==Tl.RUB&&e.oppositeValue!==Tl.RUB,()=>e.handleConvert(e.value,Tl.RUB)],[e=>e.value===Tl.RUB&&e.oppositeValue===Tl.RUB,()=>e.handleConvert(e.value,Tl.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},Gl=x((({context:e,className:t="",currencyRatesBuy:n,currencyRatesSell:r,button:a})=>{const{useRouter:i,handlerDecorator:s}=e,o=i(),[c,d]=l({inputSell:"",inputBuy:"",selectSell:n?.[0]?.code||Tl.RUB,selectBuy:r?.[0]?.code||Tl.USD}),m=e=>{d((t=>({...t,...e})))};return u("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[Pl({placeholder:"Хочу продать",rates:r,selected:c.selectSell,setSelected:Hl(c,m,r),value:c.inputSell,setValue:e=>Jl(m,r)(e,c.selectSell,c.selectBuy)}),Pl({placeholder:"Получу",rates:n,selected:c.selectBuy,setSelected:Xl(c,m,n),value:c.inputBuy,setValue:e=>Wl(m,n)(e,c.selectBuy,c.selectSell)}),a?.text?h($e,{className:"py-4 mr-1",version:a?.version,...he({router:o,handlerDecorator:s},a),children:a.text}):null]})})),Hl=(e,t,n)=>l=>{t({selectSell:l}),El({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,r=e.selectBuy)=>{Jl(t,n)(e.inputSell,l,r)}})},Xl=(e,t,n)=>l=>{t({selectBuy:l}),El({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,r=e.selectSell)=>Wl(t,n)(e.inputBuy,l,r)})},Jl=(e,t)=>(n,l,r)=>{e({inputSell:zl(n),selectBuy:r});const a=t.find((e=>e.code===r))?.buy||t.find((e=>e.code===l))?.sell;a&&e({inputBuy:String(Ul(n,a,l===Tl.RUB)||"")})},Wl=(e,t)=>(n,l,r)=>{e({inputBuy:zl(n),selectSell:r});const a=t.find((e=>e.code===r))?.sell||t.find((e=>e.code===l))?.buy;a&&e({inputSell:String(Ul(n,a,l===Tl.RUB)||"")})},Yl={address:"Москва, ул.Ленина д.28",distance:"6км"},Kl=x((({className:e="",context:t,title:n="Курсы обмена валют",button:l,...r})=>{const a=function(){const{data:e}=pn($l,Cl),t=e?.hits?.hits?.map((e=>e._source))||[];return t.length?Il(t):t}(),i=a.filter((e=>e.buy));i.unshift({code:Tl.RUB});const s=a.filter((e=>e.sell));return s.push({code:Tl.RUB}),h(N,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] \n ${e}`,...r,children:h(Ae,{context:t,title:h(C,{headingType:"h4",title:n,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[a?h(Ll,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,h(Vl,{...Yl})]}),a.length&&i.length&&s.length?h(Gl,{className:"grow",context:t,currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Zl={"bg-white":"normal",transparent:"white"},Ql={"bg-white":"text-primary-main",transparent:"text-white"},ql={"bg-white":"text-primary-text",transparent:"text-white"},er=x((({className:e="",href:t,logo:n,children:l=n?.title,targetBlank:r,bgColor:a="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[h(P,n?.image?.src?{image:n.image,className:Ql[a],width:"40",height:"45",asSVG:!0}:{image:{icon:"LogoIcon",iconVersion:Zl[a]},className:`${Ql[a]} w-10`,width:"40",height:"45",asSVG:!0}),i?tr(l,a,n?.title):null]}))),tr=(e,t,n)=>h("span",{className:`${ql[t]} font-medium ml-2.5`,children:e||n||"Россельхозбанк"}),nr=x((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=l("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(P,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(P,{image:"CloseIcon",width:"24",height:"24"})}):h($e,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),lr=x((({className:e=""})=>h(nr,{className:e}))),rr=x((({className:e="",items:t,hasButton:n,context:l})=>{const r=l.useRouter(),{handlerDecorator:a}=l;return u("div",{className:e,children:[t?.length?t.map(ar):null,n?h($e,{version:"primary",className:"mb-6 w-full",...he({router:r,handlerDecorator:a},{text:"Обратная связь",href:"/",target:"_blank"}),ariaLabel:"Обратная связь"}):null]})})),ar=(e,t)=>{const{type:n,text:l,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:ir(n,l)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},ir=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${sr(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},sr=e=>e.replaceAll(/\D/g,""),or=x((({className:e="",index:t,text:n,href:l,target:r,onClick:a})=>h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:r,onClick:a,children:n||`Документ ${t}`}))),cr=x((({links:e,className:t="",context:n})=>{const l=n.useRouter(),{handlerDecorator:r}=n;return h("div",{className:t,children:e?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>h(or,{index:t,className:"text-l-light max-w-[292px]",...he({router:l,handlerDecorator:r},e)},String(t))))}):null})})),dr=e=>t=>e?.href===t?.href,mr=(e,t)=>{return(l=e,r=t,(l||[]).map((e=>r?.find(dr(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(dr(e))))));var n,l,r};function hr(e={}){const{data:t}=pn(`/wcms-resources/${c.SITEMAP||"sitemap"}.json`,fn,{fallback:e});return t||{}}const ur=x((({className:e="",items:t,fallback:n,context:l})=>{const r=hr(n),a=mr(r.topItems,t),i={router:l.useRouter(),handlerDecorator:l.handlerDecorator};return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a?.map(((e,t)=>xr(e,t,i)))})})),xr=(e,t,{router:n,handlerDecorator:l})=>{const{text:r,href:a,items:i,target:s}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:s||"_self",children:r||`Раздел ${t}`}),i?.map(((e,t)=>h(pr,{...he({router:n,handlerDecorator:l},e),index:t},String(t))))]},String(t))},pr=x((({text:e,href:t,target:n,index:l})=>h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:t,target:n||"_self",children:e||`Раздел ${l}`}))),br=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],gr=x((({href:e,version:t="primary"})=>{const{icon:n,label:l}=br.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:n?h(P,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),fr=x((({className:e="",media:t,version:n,context:l,children:r})=>{const a=l.useRouter(),{handlerDecorator:i}=l;return u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(gr,{version:n,...he({router:a,handlerDecorator:i},e)},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:r})]})})),vr=x((({className:e="",index:t,text:n,href:l,target:r,onClick:a})=>h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:l,target:r,onClick:a,children:n||`Документ ${t}`}))),Nr=x((({className:e,links:t,context:n})=>{const l=n.useRouter(),{handlerDecorator:r}=n;return u("div",{className:`${e||""}`,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(vr,{index:t,...he({router:l,handlerDecorator:r},e)},String(t))))}):null]})})),yr="w-[204px]",wr=x((({className:e,documents:t,relatedEnterprises:n,contacts:l,socialMedia:r,mobileApps:a,topItems:i,context:s,page:o,...c})=>{const d=o?.fallback;return u(N,{tag:"footer",context:s,className:`p-9 bg-white font-sans ${e||""}`,...c,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(er,{className:yr}),h(lr,{context:s,className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(rr,{items:l,context:s,hasButton:!0}),h(fr,{media:r,context:s,children:"Соцсети"}),h(fr,{className:"mt-6",media:a,context:s,children:"Мобильное приложение"})]}),h(ur,{className:"pt-[3px]",context:s,items:i,fallback:d})]}),h(cr,{className:"mt-[98px]",links:n,context:s}),h(Nr,{links:t,context:s})]})})),kr=x((({context:e,className:t="",title:n,description:l,calendar:r,...a})=>u(N,{className:`font-sans bg-white p-[50px] ${t}`,context:e,...a,children:[h(B,{context:e,className:"!p-0",title:n,description:l,headlineVersion:"M",align:"center"}),r?Cr(r):null]}))),Cr=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>$r(e,t)))}),h("div",{className:"flex w-full",children:n.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:Sr(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},$r=(e,t)=>e.month?.map(((e,n)=>h("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${n}`))),Sr=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(P,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Ir=(e,t,n=((e,t)=>t.startsWith(e)))=>n(ie(e),(e=>(e||"").replace(ce,""))(ie(ae(e)?t.href:t.pathname))),Tr=e=>t=>Ir(t.href,e),Br=e=>t=>t.items?.some(Tr(e))||Ir(t.href,e)||((e,t)=>se(e)===se(t.href))(t.href,e),Dr="font-sans text-s-light",Rr=x((({className:e="",text:t,href:n,target:l,active:r,flat:a,onClick:i,children:s,ariaLabel:o,bgColor:c="bg-white"})=>h("a",{className:`${_r(c,r,a)} ${e}`,href:n,target:l,onClick:i,rel:"noopener noreferrer","aria-label":o,children:h("span",{className:Lr(c,r,a),children:t||s})}))),_r=(e,t=!1,n=!1)=>{let l="border-transparent";return t&&(l="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${l} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},Lr=(e,t=!1,n=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${Dr}`;return`${t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${Dr}`},jr=o("https://10.80.4.9");const Vr=x((({className:e="",children:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":n,children:t}))),Mr={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Ar={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Or={"bg-white":"black",transparent:"white"},Fr=x((({className:e,defaultLocation:t="",bgColor:n="bg-white"})=>{const[i,s]=function(e){const[t,n]=l(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{jr.getFetcherAddress().then((t=>{const l=t||e;globalThis?.localStorage.setItem("location",l),n(l)}))}),[e])]}(t);return u("div",{className:`flex items-center ${e||""}`,children:[h(Rr,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:n}),h(Rr,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:n}),h(Vr,{className:`mr-5 group ${Mr[n]}`,ariaLabel:"Поиск по сайту",children:h(P,{image:{icon:"LoupeIcon",iconVersion:Or[n]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(Vr,{className:`${Ar[n]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(P,{image:{icon:"GridIcon",iconVersion:Or[n]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),Pr="absolute left-0 -bottom-3 w-full h-[2px]",Ur=x((({className:e="",text:t,href:n,target:l,active:r,onClick:a,children:i,bgColor:s="bg-white",dataItemName:o})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:l,onClick:a,"data-item-name":o,children:[h("span",{className:zr(s,r),children:t||i}),r?h("div",{className:Er(s,r)}):null]}))),zr=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans text-l-light`},Er=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Pr}`:Pr,Gr={"bg-white":"bg-primary-text",transparent:"bg-white"},Hr=x((e=>{const{menuVisible:t,toggleMenu:n,menuItems:l,bgColor:r,context:a,activeSubItem:i}=e,{useRouter:s,handlerDecorator:o}=a,c=s();return u("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(t?"bg-white rounded-md shadow-blue-gray/24":""),children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:n,"aria-label":""+(t?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(r).map(Jr)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(t?"":"hidden"),"aria-hidden":!t,children:Xr({menuItems:l,router:c,handlerDecorator:o,activeSubItem:i})})]})})),Xr=({menuItems:e,router:t,handlerDecorator:n,activeSubItem:l})=>e?.map((e=>{return h("a",{...he({router:t,handlerDecorator:n},e),className:"text-l-light pb-4 hover:text-primary-main "+(r=e,r===l?"text-primary-main":""),children:e.text},e.href);var r})),Jr=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Gr[e]}`},String(t)),Wr=x((({context:e,subItems:t=[],bgColor:n})=>{const[r,a]=l(!1),i=e.useRouter(),{handlerDecorator:s}=e,[o,c]=l(t.length),d=t.slice(o),m=(e=>(t=[])=>{const n=t?.filter(Tr(e));return n?.length?(l=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>l(e)>l(t)?e:t)))(n):void 0;var l})(i)(t);return u("nav",{className:"relative mt-6",children:[h("div",{className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:t.map(((e,t)=>{return h(f,{tag:"span",observerCallback:(l=t,e=>{e.length&&(e[0].intersectionRatio<1?c((e=>Math.min(e,l))):c((e=>Math.max(e,l+1))))}),observerOptions:{threshold:1},children:h(Ur,{className:"mr-8 "+(o-1<t?"invisible":""),active:e===m,...he({router:i,handlerDecorator:s},e),bgColor:n})},String(t));var l}))}),d.length?h(Hr,{context:e,activeSubItem:m,menuVisible:r,toggleMenu:()=>a(!r),menuItems:d,bgColor:n}):null]})})),Yr={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Kr=x((({className:e="",defaultLocation:t="Москва",showSubMenu:n=!0,bgColor:l="bg-white",context:r,topItems:a,logo:i,page:s,...o})=>{const c=r.useRouter(),d=s?.fallback,m=hr(d),{handlerDecorator:x}=r,p=mr(m.topItems,a),[b]=p,g=n?p.find(Br(c))||b:null,f=p.map(((e,t)=>h(Rr,{active:e===g,...he({router:c,handlerDecorator:x},e),"aria-label":e.text,bgColor:l},String(t))));return h(N,{tag:"header",context:r,className:`pt-6 px-20 ${l} ${e} ${n&&g?.items?.length?"pb-4":"pb-5"}`,...o,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(er,{className:"mr-8",bgColor:l,logo:i}),f,h(Fr,{className:"ml-auto",defaultLocation:t,bgColor:l})]}),h("div",{className:`mt-6 h-[1px] ${Yr[l]}`}),n&&g?.items?.length?h(Wr,{context:r,subItems:g.items,bgColor:l}):null]})})})),Zr=x((({className:e="",cards:t=[],button:n})=>{const[r,a]=l(0),[i,s]=l(0),o=t?.length??0,c=t?.length>2&&o>i+2,d=o===i+2,m=i>0,x=t[r]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Qr({tabsShift:i,cards:t,activeSlideIndex:r,isLastShift:d,setActiveSlideIndex:a}):null,rt({handler:[()=>s(i-1),()=>s(i+1)],isShown:[m,c],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,c?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h($e,{className:"w-[240px] text-center",version:"primary",...n,href:x})]})}));function Qr({tabsShift:e,cards:t,activeSlideIndex:n,isLastShift:l,setActiveSlideIndex:r}){const a=l?460*e-240:460*e,i=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:l}){const r=t===n;return u("button",{type:"button",onClick:l,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(r?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(P,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?qr("страховая сумма",e.sum):null,e?.fee?qr("страховой взнос",e.fee):null]}),ea(r)]},String(t))}({slide:e,i:t,activeSlideIndex:n,onClick:()=>r(t)})))})})}function qr(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[ee(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function ea(e){return e?h(P,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const ta=x((({className:e="",context:t,title:n,insuranceTabs:r=[],button:a,...i})=>{const[s,o]=l(0);return u(N,{context:t,className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...i,children:[n?h(C,{className:"text-center mb-8",title:n,headingType:"h3"}):null,r?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:r.map(((e,t)=>function({title:e,i:t,activeSlideIndex:n,onClick:l}){return h("button",{type:"button",onClick:l,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(t===n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:s,onClick:()=>o(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:na({context:t,className:e,insuranceTabs:r,button:a})})]})})),na=({insuranceTabs:e,button:t,context:n,className:l=""})=>{const r=e?.map((e=>e.cards));return r?.length?r.map(((e,r)=>h(Zr,{context:n,className:l,button:t,cards:e},String(r)))):null};const la={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},ra={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},aa=x((e=>{const{context:t,className:n="",items:l,isDotted:r,investmentZeroColumn:a,investmentColumns:i,...s}=e,o=i?[...i]:[];return a&&o.unshift(a),h(N,{className:`font-sans bg-white p-9 pb-9 ${n}`,context:t,...s,children:u("div",{className:"container text-m-light",children:[o?.length?u("div",{children:[u("div",{className:"flex items-end px-9 text-white",children:[xe(h("div",{className:"w-px h-4 bg-main-stroke"}))(o.map(ia)),h("div",{className:"w-px h-4 bg-main-stroke"})]}),h("div",{className:"border-t border-main-stroke -mt-2 mx-9"}),h("div",{className:"flex justify-between mt-3 -mx-10",children:o.map(ca)})]}):null,l?.length?h(Me,{className:"mt-9 text-h6",items:l,itemClassName:"mb-[7px]",isDotted:r}):null]})})})),ia=(e,t,n)=>{const l=1===t,r=t===n.length-1;return h("div",{className:`${sa(l,r,e.cells)}`,children:e.cells?.length?h("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1":""),children:e.cells.map(oa)}):null},`column_${t}`)},sa=(e,t,n=[])=>[n.length?"flex-1":"flex-0",!n.length||e||t?"":"pl-2.5",n.length&&!t?"pr-2.5 pb-8":"pb-6"].join(" "),oa=(e,t)=>{const n=e.cellSize||"XS",l=e.cellColor||"green";return e.text?h("div",{className:`flex-1 flex items-center justify-center relative py-2 ${ra[n]} ${la[l]} ${"XS"===n?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},ca=(e,t,n)=>{const l=0===t,r=t===n.length-1;return h("div",{className:`flex-1 max-w-[180px] text-center px-2 ${l?"pl-9":""} ${r?"pr-9":" "}`,children:e.title},`title_${t}`)},da=x((({className:e="",context:t,title:n="Мобильное приложение",qr:l,buttons:r,version:a="primary",items:i,image:s,headingType:o="h4",...c})=>{const d="primary"===a?"text-primary-text":"",m="secondary"===a?"p-3.5 min-w-[120px]":"min-w-[92px]",x=r?.map((e=>({...e,className:"min-w-[168px]"})));return u(N,{context:t,className:`flex justify-between font-sans p-9 box-border relative min-h-[320px]\n ${Ye(e)}\n ${W[a]}\n ${e}`,...c,children:[h(Ae,{context:t,className:"z-10",title:n?h(C,{headingType:o,as:"h3",title:n,className:`whitespace-pre-wrap max-w-[509px] mb-6\n ${d}`}):null,buttons:r?.length?h(Te,{context:t,buttons:x,className:"flex gap-4"}):null,children:u("div",{className:"flex flex-1 items-center",children:[l?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:h(P,{className:"w-fit",image:l,alt:"QR-код"})}):null,ma(a,i)]})}),s?.src?h("div",{className:"absolute right-0 bottom-0",children:h(P,{image:s})}):null]})})),ma=(e,t)=>t?.length?h(Me,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),ha=x((({className:e="",context:t,title:n,servicesList:l,anchor:r="",...a})=>u(N,{context:t,id:r,className:`font-sans bg-white p-8 flex flex-col ${e}`,...a,children:[n?h(C,{headingType:"h5",className:"mb-5",title:n}):null,l?.length?l.map(ua):null]}))),ua=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(P,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:e.icon}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),xa=x((({className:e,label:t,icon:n,dataTheme:l="",onClick:r})=>u("button",{className:`border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer ${e||""}`,"data-theme":l,onClick:r,children:[h("span",{className:"text-h4 pr-3",children:t}),n?h(P,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),pa=({isUnfolded:e,onToggle:t})=>h(xa,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),ba=["ArrowDownIcon","ArrowUpIcon"],ga=x((({label:e="",blocks:t,context:n,dataTheme:l,isUnfolded:r})=>{const a=kt({context:n,blocks:t});return h("div",{className:"˝border-0 border-b border-solid border-main-divider",children:t?.length?h($t,{unfoldedByDefault:r,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(St,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:a})}),renderFoldButton:({isUnfolded:t,onToggle:n})=>h(xa,{label:e,icon:ba[Number(t)],dataTheme:l,onClick:n})}):null})})),fa=x((({blockItems:e,colorPalette:t,context:n,className:l="",...r})=>h(N,{context:n,className:`font-sans text-primary-text ${l}`,...r,children:e?.length?h("div",{className:"box-border1",children:e.map(((e,l)=>h(ga,{...e,dataTheme:t,context:n},`BlockItem${l}`)))}):null})));function va(e=""){const t=We(e);return t<=4?"S":t<=8?"M":"L"}const Na=x((({className:e,context:t,title:n,description:l="Блок в разработке...",...r})=>u(N,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Ke(e)} ${Ye(e)} `,...r,children:[h(B,{context:t,className:"!p-0 max-w-[600px]",title:n,description:l,headlineVersion:va(e)}),h("figure",{className:"m-0 min-w-[80%]",children:ya()})]}))),ya=(e=3)=>ka(100,e).map((e=>Math.floor(e))).map(wa),wa=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ka=(e,t)=>[e].concat(t>0?ka(e/1.618,t-1):[]),Ca={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},$a=x((({className:e="",context:t,slides:n=[],version:r="primary",...a})=>{const i=n.map((e=>e.nav)),s=n.map((e=>e.productBlock)),[o,c]=l(0);return u(N,{context:t,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${W[r]}`,...a,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,n)=>function(e,t,n){const{version:l}=e,r=l?Ca[l].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(Fe,{className:`pl-[50px] z-10 ${r}`,context:n,textBlockClassName:"mb-[154px]",...e,headlineVersion:"XXL"})})},String(t))}({...e,version:r},n,t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:l,version:r}){const a=t===n,i=a?"bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${W[r]}`,s=a?"text-primary-text !text-h6 p-2":`text-l pb-1 ${Ca[r].title}`,o=a?"text-secondary-text text-l-light":`text-m-light ${Ca[r].text}`,c="secondary"===r?"border-white/50":"border-black/50";return h("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${i} ${c}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${s}`,children:e?.title}),h("div",{className:`text-secondary-text ${o}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:o,onClick:()=>c(t),version:r})))})]})}));const Sa=x((({className:e="",context:t,title:n="Акции и спецпредложения",date:l,description:r,buttons:a=[],version:i="primary",...s})=>h(N,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${W[i]} ${Ke(e)} ${Ye(e)} `,...s,children:h(Ae,{context:t,title:n?h(B,{context:t,title:n,className:"!p-0 max-w-[600px]",headlineVersion:va(e),bgColorHeadline:i,align:"left",as:"h2"}):null,buttons:a?.length?h(Te,{context:t,buttons:a,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[l?h("div",{className:"text-s mb-2",children:Ia(l)}):null,h("div",{className:"text-l",children:r})]})})})));function Ia(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Ta=x((({context:e,className:t="",title:n,description:l,items:r,image:a,version:i,socialMedia:s})=>{const o=n?h(C,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:n}):null,c=a?.src?h(P,{className:"absolute bottom-0 right-0 m-0",image:a}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${t}`,role:"listitem",children:h(Ae,{context:e,className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h(w,{className:"mb-2",description:l}):null,r?.length?h(Me,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:r,version:i}):null,s?h(fr,{className:"pt-10 pb-0",media:s,version:i,context:e}):null]})})})})),Ba="absolute top-0 bottom-0 w-[84px]",Da=x((({context:e,recommendations:t=[],className:n="",title:r,version:a,...i})=>{const[s,o]=l(0),c="secondary"===a?"border-white/50":"border-main-stroke";return u(N,{context:e,className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===a?"bg-primary-main text-white":"bg-white text-primary-text"} ${n}`,...i,children:[r?h(C,{headingType:"h3",className:"mb-6",title:r}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*s}px)`},role:"list",children:t?.length?t.map(Ra({context:e,version:a,className:c})):null}),_a({cardsCount:t.length,activeCardIndex:s,setActiveCardIndex:o})]}),h("div",{className:`${Ba} left-0 ${"secondary"===a?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${Ba} right-0 ${"secondary"===a?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Ra=({context:e,version:t,className:n})=>(l,r)=>h(Ta,{context:e,...l,version:t,className:n},String(r)),_a=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const l=e>2;return h("div",{children:rt({handler:[()=>n(t-1),()=>n(t+1)],isShown:[l&&t>0,l&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})})},La=[];const ja=async e=>await gn(e,{method:"GET"})||La,Va=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:r="",setSelected:a,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),o=s.find((e=>e.key===l));return h(Ml,{options:s,label:i,placeholder:r||l,onChange:e=>a(e.key),value:o})})),Ma=x((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:r,onSelectedBranch:a})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(Va,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(Va,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Aa=x((({name:e,text:t,value:n,checked:l,onChange:r,className:a})=>h("div",{className:a,children:u("label",{className:"flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:n,name:e,checked:l,onChange:r}),t?h("span",{className:"font-sans ml-3 cursor-pointer",children:t}):null]})}))),Oa=x((()=>{const[e,t]=l("option2"),n=e=>t(e.target.value);return u("div",{children:[h(Aa,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),h(Aa,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),Fa=["От 1 дня","До 365 дней"],Pa=x((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(dn,{min:1,max:365,value:e,items:Fa,onChange:t})]}))),Ua=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:r,onSelectedBoxSize:a})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(Va,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(Va,{data:l,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),za=x((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onShowMapToggle:d})=>u("div",{className:"flex-1 mr-9",children:[h(Ma,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:Ea(c)}),h(Pa,{days:r,setDays:e=>c({days:e})}),h(Ua,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:Ga(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(Oa,{}),h($e,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Ea=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Ga=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Ha=x((({days:e,tariffs:t=[]})=>{const n=Ja(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Xa("Аренда за",e,"mr-11"),Xa("Цена",n+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(P,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),Xa=(e,t,n="")=>u("div",{className:n,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),Ja=(e,t)=>{const n=Wa(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Wa=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},Ya=(e,t)=>e.find((e=>e.branchCode===t)),Ka=x((e=>{const{regions:t,data:n,branches:l,onChange:a,onShowMapToggle:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,a]);const s=Ya(l,n.selectedBranch),o=Za(s?.safeBoxCaseVolumes),c=Qa(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=qa(c,n.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(za,{...n,regions:t,onShowMapToggle:i,branches:l,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Ha,{days:n.days,tariffs:d})]})})),Za=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Qa=(e,t)=>e?.find((e=>e.volume===t)),qa=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;function ei(e,t,n){t.geoObjects.removeAll();const l=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:l,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),a=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(a),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const ti=e=>globalThis[e];const ni=()=>{const e=function(e,t){const[n,i]=l(),s=a((()=>i(ti(e))),[e]);return r((()=>{const n=document.getElementById(t);if(!n){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!ti(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`);return e},li=x((({points:e})=>{const t=s(null),n=ni();return r((()=>{n?.ready((()=>{t.current=new n.Map("map",{center:e[0],zoom:10}),ei(n,t.current,e)}))}),[n]),r((()=>{t.current&&e&&n&&ei(n,t.current,e)}),[t,e,n]),n?u("div",{className:"pt-12 mt-1 bg-white",children:[h(C,{title:"Офисы на карте",headingType:"h3",className:"mb-8 text-center"}),h("div",{id:"map",className:"h-[640px]"})]}):null})),ri=x((({title:e,footnote:t,context:n,className:r="",...i})=>{const[s,o]=l(!1),[c,d]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=function(){const{data:e}=pn("/api/v1/regions",fn);return e||[]}(),x=ai(c.selectedRegion,m),p=function(e){const{data:t}=pn(e?`/api/v1/safeboxes?regionCode=${e}`:null,ja);return t||La}(x),b=a((e=>d((t=>({...t,...e})))),[d]),g=(f=Ya(p,c.selectedBranch)||p,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return u(N,{context:n,className:r,...i,children:[u("div",{className:"font-sans bg-white px-8 py-12",children:[e?h(C,{title:e,headingType:"h3",as:"h2",className:"mb-2.5 text-center"}):null,h(Ka,{regions:m,branches:p,data:{...c,selectedRegion:x},onShowMapToggle:()=>{o(!s)},onChange:b}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),g.length&&s?h(li,{points:g}):null]})})),ai=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,ii=e=>Boolean(e?.icon||e?.src),si={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},oi=({items:e,isDotted:t=!0,version:n="primary",className:l=""})=>e?h(Me,{className:`mt-4 ${l}`,version:"primary"===n?"gray":n,items:e,listItemSize:"S",isDotted:t}):null,ci=({styleMap:e,isMainButton:t,version:n,router:l,handlerDecorator:r})=>(a,i,{length:s})=>{const{label:o,description:c,button:d,items:m,isDotted:x}=a,p=`${d?.text?"mb-8":""} ${a?.label?"mt-2":"mt-4"}`;return u("div",{className:`flex flex-col items-center text-center relative\n whitespace-pre-line overflow-hidden ${s<5?"w-[276px]":"w-[210px]"}`,children:[di(o),mi({description:c,className:`${e.description} ${p}`}),oi({items:m,isDotted:x,version:n,className:e.description}),d?.text&&!t?h($e,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",...he({router:l,handlerDecorator:r},d),version:n,children:d.text}):null]},String(i))},di=e=>e?h("div",{className:"text-x6 m-0 mt-4",children:e}):null,mi=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,hi=x((({className:e="",showLines:t=!0,steps:n=[],button:l,version:r="primary",context:a,...i})=>{const s=a.useRouter(),{handlerDecorator:o}=a,{title:c}=i,d=si[r],m=n.length>3,x=(e=>e?"":"opacity-0")(t),p=c?"mt-9":"",b=(e=>e<5?"px-[88px]":"px-[55px]")(n.length);return u(N,{className:["box-border font-sans text-primary-text bg-white",m?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",d.background,d.title,e].join(" "),context:a,...i,children:[c?h(C,{headingType:"h3",className:"max-w-[752px] text-center",title:c}):null,n?.length?u("div",{className:`box-border ${p}`,children:[h("div",{className:`flex items-center ${b}`,children:xe(h("div",{className:`h-0.5 w-full bg-secondary-light ${x}`}))(n.map(ui(d)))}),h("div",{className:"flex justify-between "+(m?"gap-x-3":"gap-x-[101px]"),children:n.map(ci({styleMap:d,isMainButton:Boolean(l?.text),version:r,router:s,handlerDecorator:o}))})]}):null,l?.text?h($e,{className:"mt-8 w-full max-w-[240px]",version:"primary",...he({router:s,handlerDecorator:o},l)}):null]})})),ui=e=>({icon:t},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:ii(t)?h(P,{image:t,width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n));const xi="h-12 flex-1 flex items-center justify-center cursor-pointer",pi="bg-primary-main",bi="group bg-white",gi="font-sans text-m",fi="text-white",vi="text-secondary-text group-hover:text-primary-main",Ni=(e,t)=>h("h3",{className:`${gi} ${t?fi:vi}`,children:e}),yi=(e,t)=>h("div",{className:"min-w-[22px] w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),wi=({onClick:e,currentTab:t,showCounter:n,page:l,context:r})=>(a,i)=>{const{useRouter:s,handlerDecorator:o}=r,c=s(),d=a.type;if("group"!==d&&"link"!==d)return null;switch(d){case"group":return(({onClick:e,currentTab:t,showCounter:n,page:l})=>(r,a)=>{const i=t===r,s=r.ref?l?.blocks?.filter((e=>e?.labels?.includes(r.ref))).length:l?.blocks?.length;return h("div",{className:`${xi} ${i?pi:bi}`,role:"tab","aria-selected":i,onClick:()=>e(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?Ni(r.title,i):null,n&&s?yi(s,i):null]})},String(a))})({onClick:e,currentTab:t,showCounter:n,page:l,context:r})(a,i);case"link":{const n=he({router:c,handlerDecorator:o},a),l=n.onClick;return(({text:e,currentTab:t,onClick:n,href:l,target:r="_self",i:a})=>{const i="link"===t?.type&&t.href===l;return h("a",{className:`${xi} ${i?pi:bi}`,target:r,href:l,onClick:n,children:h("span",{className:`${gi} ${i?fi:vi}`,children:e})},String(a))})({...n,onClick:t=>{l(t),e(a),g.inst.fire("anchorClick",{isScrolling:!0,label:a.href})},currentTab:t,i:i})}default:!function(e){throw new Error(e)}(d)}},ki=x((e=>{const{context:t,className:n="",tabs:a,page:i,showCounter:s,isSticky:o}=e,[c,d]=l(a?a[0]:void 0);r((()=>g.inst.subscribe("tab",(e=>{if(!a)return;const t=a.find(Ci(e));"link"===e.type&&t&&d(t)}))),[a]),r((()=>{if("group"===c?.type)return g.inst.subject("tab",{label:c.ref})}),[c]);return h(N,{context:t,className:`${o?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${n}`,role:"tablist",children:a?.map(wi({onClick:e=>{"group"===e?.type&&g.inst.fire("tab",{type:e.type,label:e.ref}),d(e)},currentTab:c,page:i,showCounter:s,context:t}))})})),Ci=e=>t=>"link"===t.type&&t.href===`#${e.label}`,$i=x((({isOpen:e,dataUrl:t,pdfUrl:n,rowIdx:l,cellIdx:r,fieldIdx:a})=>u($e,{version:"primary",onClick:()=>{g.inst.fire("tariffInnerTable",{dataUrl:t,pdfUrl:n,rowIdx:l,cellIdx:r,fieldIdx:a})},className:"w-full flex items-center justify-center rounded-none py-5",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(R,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Si={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,...t},n)=>h($e,{className:(n>0&&e?"ml-3":"")+" w-12 h-12",rounded:e,...t},String(n))))}):null,Img:({image:e})=>e?.src?h(P,{image:e}):null,List:({isDotted:e,...t})=>h(Me,{className:"flex flex-col justify-between items-start text-h6",version:"primary",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((e=>{const[t,n]=l(!0);console.log(e);const a=t=>{const l=["rowIdx","cellIdx","fieldIdx"].every((n=>e[n]===t[n]));n(!l)};return r((()=>g.inst.subscribe("tariffInnerTable",a)),[]),t?h($i,{...e}):null}))},Ii=x((({context:e,cells:t,isLastRow:n,rowIdx:l,cellIdx:r})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(n?"border-t-0 rounded-b-md":""),role:"cell",children:t.map(Ti(l,e,r))}))),Ti=(e,t,n)=>(l,r)=>u("div",{className:"Table"===l?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[r>0?h("div",{className:"h-5"}):null,Bi(l,t,{rowIdx:e,cellIdx:n,fieldIdx:r})]},String(r)),Bi=(e,t,n)=>{if(!e)return null;const{tableCellType:l,...r}=e;if(!l||!(l in Si))return null;return h(Si[l],{context:t,...r,...n})};async function Di(e){const t=await fetch(e);return await t.json()}const Ri=x((({rows:e})=>{const[t,n]=l(0),r=e?.[0]?.length??0,a=r>3&&r>t+4,i=t>0;return u("div",{children:[e?.map(_i(t)),rt({handler:[()=>n(t-1),()=>n(t+1)],isShown:[i,a],btnClass:["right-3 top-24","right-3 top-2"],className:""})]})})),_i=e=>(t,n)=>{if(!t?.length)return null;const[l,...r]=t,a=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==n?"font-normal":"font-light"].join(" ");return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[l?.data?h("div",{className:"text-xl-light w-[214px] pb-5 "+(0===n?"pt-8":"pt-6"),children:l.data}):null,h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:i,style:{transform:`translateX(-${a}px)`},children:r?.map(((t,n)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Li(t.cols,e):null]},`row${n}`)))})})]},String(n))},Li=(e,t)=>e?.length>0?h("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>h("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,ji=x((({context:e,activeTabIndex:t,items:n})=>{const[r,a]=l({});return h("div",{children:n.map(((n,l)=>{const i=`activeTabIdx:${t}-tableIdx:${l}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>(e=>{a((t=>({...t,[e]:!t[e]})))})(i),children:[n.title,h(P,{image:r[i]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(r[i]?"h-0":""),children:h("div",{className:"relative",children:h(Ri,{context:e,rows:n.rowsData})})})]},i)}))})})),Vi=x((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:l})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>l(t),children:e||t+1},e)))}):null,t?u($e,{href:t,version:"secondary",className:"flex justify-center items-center text-l-light text-primary-main px-8 max-h-14",target:"_blank",children:[h(P,{image:"DocDownloadIcon",className:"mr-2.5",width:"20",height:"20",asSVG:!0}),h("span",{children:"Скачать в PDF"})]}):null]}))),Mi=x((({context:e,dataUrl:t,pdfUrl:n})=>{const{tableData:r}=function(e){const{data:t}=pn(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Di);return t||{}}(t),[a,i]=l(0),s=r?.[a]?.items??[],o=r?.map((e=>e.currency??""));return r?u("div",{className:"bg-white z-10",children:[h(Vi,{currencies:o,activeTabIndex:a,setActiveTabIndex:i,linkToPDF:n}),h(ji,{context:e,activeTabIndex:a,items:s}),h($i,{context:e,isOpen:!0})]}):null})),Ai=x((({context:e,children:t,rowIdx:n})=>{const[a,i]=l(void 0);return r((()=>g.inst.subscribe("tariffInnerTable",(e=>{i(n===e.rowIdx?{dataUrl:e.dataUrl,pdfUrl:e.pdfUrl}:void 0)}))),[n]),u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:t}),a?h("div",{className:"origin-top animate-expansion",children:h(Mi,{context:e,...a})}):null]})})),Oi=x((({row:{header:e,data:t},activeCardIndex:n,isLastRow:l,context:r,rowIdx:a})=>u(Ai,{context:r,rowIdx:a,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(l?"":"border-solid"),children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(P,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title?h("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?h(sl,{activeCardIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(Ii,{cells:e,isLastRow:l,rowIdx:a,cellIdx:t,context:r},String(t))))}):null]}))),Fi=x((({className:e="",context:t,title:n,description:r,rowHeaders:a,tariffsColumns:i,hiddenRowsNum:s=0,...o})=>{const[c,d]=l(0),m=i?.map((({data:e})=>e))||[],x=a?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[]))}))),p=m.length,b=el({columnsLength:p,colsLengthForScroll:2,activeCardIndex:c,setActiveCardIndex:d}),g=(x||[]).map(((e,n,{length:l})=>h(Oi,{context:t,row:e,isLastRow:n+1===l,activeCardIndex:c,rowIdx:n},String(n)))),[f,v]=s>0?[g.slice(0,-s),g.slice(-s)]:[g,[]];return u(N,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${p>1?"pr-0":""} ${e}`,context:t,...o,children:[Pi({title:n,description:r}),Ui(r),s>0?h($t,{renderFoldableSection:({isUnfolded:e})=>u(zi,{tableArrowScrollControlProps:b,children:[f,h(St,{isUnfolded:e,children:v})]}),renderFoldButton:pa}):h(zi,{tableArrowScrollControlProps:b,children:g})]})}));function Pi({title:e,description:t}){return e?h(C,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Ui(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const zi=x((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:n}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,h(dl,{...t})]}),n?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Ei={Accordion:_t,BenefitsBlock:At,Bonus:Gt,CardTransfer:Xn,ComparisonTable:vl,Calculator:On,Catalog:Zn,ExchangeRateTile:Kl,Footer:wr,Gallery:ft,GracePeriod:kr,Header:Kr,Headline:B,InsuranceAmountBlock:ta,InvestmentInfo:aa,LinkDocs:J,MiniGallery:vt,MobileAppTile:da,PictureText:te,ProductBlock:Ee,ProductGallery:$a,ProductTile:qe,PromoTile:Sa,OtherProducts:fa,Recommendation:Da,StepsBlock:hi,TariffsTable:Fi,TextBlock:He,Tile:Ze,Placeholder:Na,BonusBenefitsBlock:Yt,SafeDepositRental:ri,Tabs:ki,ErrorBlock:wl,OfficeServicesBlock:ha},Gi=m();const Hi=x((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Xi()}))),Xi=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Ji=x((({className:e,context:t,...n})=>{const{useRouter:i,handlerDecorator:s=me}=t,o=function(e){const[t,n]=l(0);return r((()=>{(async()=>{const[t]=await Gi.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await Gi.like(e))}),[e]),dislike:a((async()=>{n(await Gi.dislike(e))}),[e])}}(i().pathname);return u(N,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...n,children:[h(Hi,{onClick:s(o.like),ariaLabel:"Поставить отметку «лайк»"}),h(Hi,{onClick:s(o.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:o.likeCount})]})})),Wi=[null];function Yi(e,t,n=Wi){const{key:l,page:r,blockDecorator:a,blocksRegistry:i,context:s}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return a({blockClassName:`scroll-mt-12 ${b(e.style)}`,block:e,ancestors:n,render:({block:a,blockClassName:i})=>{const{version:o,content:d,anchor:m,labels:u,blocks:x}=a,p=x?x.map(((l,r)=>Yi(l,{...t,key:`${t.key}-${r}`},[...n,e]))):null;return c?h(c,{className:i,version:o,context:s,page:r,anchor:m,labels:u,...d,children:p},l):null}},l)}const Ki=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Zi=x((e=>{const{className:t="",context:n,data:l={}}=e,{style:r,blocks:a,slots:i,likeControl:s,colorPalette:o="pc"}=l,c=function({blocksRegistry:e,data:t,blockDecorator:n,context:l}){return(r,a)=>r.map(((r,i)=>Yi(r,{key:`${r.type||"#"}-${i}`,blocksRegistry:e,page:t||{},blockDecorator:n||Ki,context:l},a)))}(e);return u("section",{className:`relative ${b(r)} ${t}`,"data-theme":o,children:[i?.header?.blocks?.length?h("div",{className:`${b(i.header.style)}`,children:c(i.header.blocks,["header"])}):null,a?.length?h("div",{className:"container grid grid-cols-12 gap-1",children:c(a)}):null,s?Qi(n):null]})}));function Qi(e){return h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Ji,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:e},"LikeControl")})}e.Blocks=Ei,e.ContentPage=Zi,e.DaDataAPI=o,e.LikeAPI=m,e.joinList=xe,e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=oe,Object.defineProperty(e,"__esModule",{value:!0})}));
|