@redneckz/wildless-cms-uni-blocks 0.3.95 → 0.3.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +92 -90
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/StateMortgageIcon.svg +1 -0
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +1 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.js +3 -3
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.js +1 -1
- package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -4
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -4
- package/dist/components/Bonus/Bonus.js +3 -3
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -3
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +3 -3
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +2 -3
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +1 -1
- 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/HeaderCell.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.js +2 -2
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.js +2 -2
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.js +1 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/TextInformation.mobile.js +1 -1
- package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.js +1 -1
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +4 -4
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +1 -1
- 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/GracePeriod/GracePeriod.js +4 -4
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +2 -2
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +1 -1
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/constants.js +1 -1
- package/dist/components/Headline/constants.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/LinkList/LinkList.js +1 -1
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +7 -7
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +4 -11
- package/dist/components/Navigation/Navigation.js +1 -1
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/Navigation/NavigationItem.js +1 -1
- package/dist/components/Navigation/NavigationItem.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +2 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.js +2 -2
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +3 -3
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tabs/renderTab.js +2 -2
- package/dist/components/Tabs/renderTab.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +2 -2
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js +2 -2
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.js +2 -2
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.js +2 -2
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.js +3 -5
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/ui-kit/Tabs/Tabs.js +2 -2
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +1 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.js +3 -3
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.js +1 -1
- package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +2 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -4
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -4
- package/lib/components/Bonus/Bonus.js +3 -3
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -3
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +3 -3
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +2 -3
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +1 -1
- 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/HeaderCell.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.js +2 -2
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.js +2 -2
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.js +1 -1
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/TextInformation.mobile.js +1 -1
- package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.js +1 -1
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +4 -4
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +1 -1
- 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/GracePeriod/GracePeriod.js +4 -4
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +2 -2
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +1 -1
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +1 -1
- package/lib/components/Headline/Headline.mobile.js +1 -1
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/constants.js +1 -1
- package/lib/components/Headline/constants.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/LinkList/LinkList.js +1 -1
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.js +7 -7
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +4 -11
- package/lib/components/Navigation/Navigation.js +1 -1
- package/lib/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/Navigation/NavigationItem.js +1 -1
- package/lib/components/Navigation/NavigationItem.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.js +1 -1
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +2 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +2 -2
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +3 -3
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tabs/renderTab.js +2 -2
- package/lib/components/Tabs/renderTab.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +2 -2
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +2 -2
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.js +2 -2
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.js +2 -2
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.js +3 -5
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/ui-kit/Tabs/Tabs.js +2 -2
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +45 -45
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -4
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -4
- package/mobile/dist/components/Bonus/Bonus.js +3 -3
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -3
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +3 -3
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +2 -3
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +4 -4
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -1
- 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/GracePeriod/GracePeriod.js +4 -4
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +2 -2
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/constants.js +1 -1
- package/mobile/dist/components/Headline/constants.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.js +1 -1
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +4 -11
- package/mobile/dist/components/Navigation/Navigation.js +1 -1
- package/mobile/dist/components/Navigation/Navigation.js.map +1 -1
- package/mobile/dist/components/Navigation/NavigationItem.js +1 -1
- package/mobile/dist/components/Navigation/NavigationItem.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +2 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +3 -3
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/renderTab.js +2 -2
- package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +2 -2
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.js +2 -2
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/Img/Img.js +2 -2
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- 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/SearchBar/SearchBarInner.js +3 -5
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js +2 -2
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/components/Accordion/Accordion.js +1 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -4
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -4
- package/mobile/lib/components/Bonus/Bonus.js +3 -3
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +3 -3
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +3 -3
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +2 -3
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +4 -4
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
- 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/GracePeriod/GracePeriod.js +4 -4
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +2 -2
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/constants.js +1 -1
- package/mobile/lib/components/Headline/constants.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -4
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.js +1 -1
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +4 -11
- package/mobile/lib/components/Navigation/Navigation.js +1 -1
- package/mobile/lib/components/Navigation/Navigation.js.map +1 -1
- package/mobile/lib/components/Navigation/NavigationItem.js +1 -1
- package/mobile/lib/components/Navigation/NavigationItem.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +2 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +3 -3
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/renderTab.js +2 -2
- package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +2 -2
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.js +2 -2
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/Img/Img.js +2 -2
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- 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/SearchBar/SearchBarInner.js +3 -5
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js +2 -2
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/src/components/Accordion/Accordion.tsx +1 -1
- package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +12 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +13 -18
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +4 -4
- package/mobile/src/components/Bonus/Bonus.tsx +15 -7
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +12 -5
- package/mobile/src/components/Calculator/Calculator.tsx +3 -3
- package/mobile/src/components/Catalog/Catalog.tsx +10 -5
- package/mobile/src/components/Catalog/CatalogCard.tsx +3 -5
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +2 -2
- package/mobile/src/components/ComparisonTable/TableRow.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +2 -2
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -2
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
- package/mobile/src/components/Gallery/Gallery.tsx +5 -7
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -4
- package/mobile/src/components/Gallery/GalleryContainer.tsx +10 -7
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +5 -15
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +17 -7
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +2 -2
- package/mobile/src/components/Header/Header.tsx +4 -4
- package/mobile/src/components/Header/HeaderBurger.tsx +3 -3
- package/mobile/src/components/Header/HeaderTop.tsx +3 -3
- package/mobile/src/components/Headline/Headline.tsx +1 -5
- package/mobile/src/components/Headline/constants.ts +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +7 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +6 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +3 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
- package/mobile/src/components/LinkList/LinkList.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +0 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +4 -11
- package/mobile/src/components/Navigation/Navigation.tsx +1 -1
- package/mobile/src/components/Navigation/NavigationItem.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.tsx +2 -8
- package/mobile/src/components/Placeholder/Placeholder.tsx +2 -2
- package/mobile/src/components/ProductTile/ProductTile.tsx +4 -2
- package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +4 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +4 -4
- package/mobile/src/components/Tabs/renderTab.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -5
- package/mobile/src/components/TextBlock/TextBlock.tsx +4 -4
- package/mobile/src/components/Tile/Tile.tsx +1 -6
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +55 -48
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/StateMortgageIcon.svg +1 -0
- package/mobile/src/ui-kit/Button/Button.tsx +2 -2
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -2
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/mobile/src/ui-kit/Img/Img.tsx +13 -3
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
- package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +3 -5
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +2 -2
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.mobile.tsx +1 -1
- package/src/components/Accordion/Accordion.tsx +2 -2
- package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
- package/src/components/Accordion/AccordionItem.tsx +3 -3
- package/src/components/Accordion/AccordionItemInner.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +12 -2
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +60 -5
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +13 -18
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +4 -4
- package/src/components/Bonus/Bonus.tsx +15 -7
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +12 -5
- package/src/components/Calculator/Calculator.fixture.tsx +1 -1
- package/src/components/Calculator/Calculator.tsx +3 -3
- package/src/components/Catalog/Catalog.tsx +10 -5
- package/src/components/Catalog/CatalogCard.tsx +3 -5
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +1 -1
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -1
- package/src/components/ComparisonTable/TableCell.mobile.tsx +1 -1
- package/src/components/ComparisonTable/TableCell.tsx +2 -2
- package/src/components/ComparisonTable/TableColumn.tsx +2 -2
- package/src/components/ComparisonTable/TableRow.tsx +1 -1
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +2 -2
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -2
- package/src/components/Footer/TextInformation.mobile.tsx +2 -2
- package/src/components/Footer/TextInformation.tsx +1 -2
- package/src/components/Footer/TextInformationLink.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +5 -7
- package/src/components/Gallery/GalleryCardInner.tsx +2 -4
- package/src/components/Gallery/GalleryContainer.tsx +10 -7
- package/src/components/GracePeriod/GracePeriod.example.json +5 -15
- package/src/components/GracePeriod/GracePeriod.tsx +17 -7
- package/src/components/GroupBlock/GroupBlockTabs.tsx +2 -2
- package/src/components/Header/Header.mobile.tsx +4 -4
- package/src/components/Header/HeaderBurger.tsx +3 -3
- package/src/components/Header/HeaderTop.tsx +3 -3
- package/src/components/Headline/Headline.fixture.mobile.tsx +2 -2
- package/src/components/Headline/Headline.fixture.tsx +1 -1
- package/src/components/Headline/Headline.mobile.tsx +1 -5
- package/src/components/Headline/constants.ts +1 -1
- package/src/components/Insurance/Insurance.fixture.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +7 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +13 -4
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +6 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +3 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/LinkList/LinkList.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.example.json +0 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +28 -15
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +13 -18
- package/src/components/MobileAppTile/MobileAppTileContent.ts +4 -11
- package/src/components/Navigation/Navigation.tsx +1 -1
- package/src/components/Navigation/NavigationItem.tsx +1 -1
- package/src/components/PictureText/PictureText.tsx +2 -8
- package/src/components/Placeholder/Placeholder.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.tsx +1 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductBlock/renderBenefit.tsx +3 -1
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/ProductTile/ProductTile.tsx +4 -2
- package/src/components/PromoTile/PromoTile.tsx +1 -1
- package/src/components/Recommendation/RecommendationCard.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +4 -4
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +4 -4
- package/src/components/StepsBlock/StepsBlock.tsx +4 -6
- package/src/components/Tabs/renderTab.tsx +2 -2
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -5
- package/src/components/TextBlock/TextBlock.mobile.tsx +4 -4
- package/src/components/TextBlock/TextBlock.tsx +3 -3
- package/src/components/Tile/Tile.tsx +1 -6
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +55 -48
- package/src/icons/IconName.ts +4 -1
- package/src/icons/StateMortgageIcon.svg +1 -0
- package/src/ui-kit/Button/Button.mobile.tsx +2 -2
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Button/ButtonProps.ts +2 -2
- package/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +1 -1
- package/src/ui-kit/Img/Img.mobile.tsx +13 -3
- package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/Logo/Logo.mobile.tsx +1 -1
- package/src/ui-kit/Radio/Radio.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +3 -5
- package/src/ui-kit/Tabs/Tabs.tsx +2 -2
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
|
@@ -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).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...l}={})=>{const a=Object.assign({},l,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...l}=t||{},a=n?.slots?.default,o=r||a&&a();return e(Object.assign(l,o&&{children:o}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="likesToken";const o={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},i=l((e=>{const{className:t,headingType:r="h3",title:l,as:a="h3"}=e;return n(a,{className:`font-sans font-medium m-0 ${o[r]} ${t||""}`,children:l})}));var s,c;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.Logo="Logo",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PackA4="PackA4",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.Logo="Logo",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PackA4="PackA4",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(c||(c={}));const d=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},m={normal:"text-primary-main",black:"text-black",white:"text-black invert"},h=l((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${c[l]||l}`,title:o=a,iconVersion:i="normal",asSVG:s,...h})=>{const u=`${d.CDN||""}icons/${l}.svg`;return s?r("svg",{className:e,...h,"aria-hidden":"true",children:[o?n("title",{children:o}):null,a?n("desc",{children:a}):null,n("use",{className:`${m[i]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:a,title:o,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const p=(e,t)=>e.media&&t.media?e.media-t.media:0,x=l((({className:e="",image:t,imageClassName:l="",isMobile:a=!1})=>{if(!t)return null;return r("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(p).map((({src:e,format:t,media:r,size:l},a)=>n("source",{srcSet:e,type:b(t),media:r?`(max-width: ${r}px)`:"",...l},`${a}_${e}`))):null,g(t,l,a)]})})),g=(e,t="",r=!1)=>{const l=e.title||"",a=e.alt||e.title,o=r?"m-auto":"m-0";return n("img",{src:e.src,className:`${o} ${t}`,alt:a,title:l,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}const f=l((({className:e="",image:t,imageClassName:r="",isMobile:l,...a})=>{if(!t)return null;const o="string"==typeof t?t:t.icon;return o||""===o?o.length?n(h,{className:e,imageClassName:r,iconVersion:u(t),name:o,...a}):null:n(x,{className:e,imageClassName:r,image:t,isMobile:l})})),y=l((({className:e="",image:t})=>n(f,{className:e,image:t,isMobile:!0})));function N(e){return e?e.filter(Boolean).join(" "):""}const v={left:"text-left",center:"text-center",right:"text-right"},I={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"}},w=l((({bgColorHeadline:e="transparent",className:t="",title:l,description:a,image:o,align:s="left"})=>{const c=I[e];return r("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${c.background} ${t}`,children:[l?n(i,{headingType:"h2",className:`${c.text} ${v[s]}`,title:l}):null,a?n("p",{className:`font-normal text-m ${c.description} ${v[s]} `,children:a}):null,o?.src&&n("div",{className:"mt-2.5 mx-auto flex justify-center",children:n(y,{image:o})})]})})),k=l((({children:e,activeIndex:t,indexFraction:r,showDots:l})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return l&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,l)=>n("div",{onClick:a(l),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:C(l,t,r),"aria-hidden":!0},String(l))))}):null})),C=(e,t,n)=>{if(e<t||e>t+1)return;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},S=l((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),$=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),D=l((({className:e="",children:t,activeIndex:r,onScroll:l,gap:a=14,padding:o=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...$(o),gap:`${a}px`},role:"list",onScroll:l,children:t?.length?t?.map(((e,t)=>n(S,{style:$(o/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(S,{children:t})}))),T=l((({className:e,context:t,children:l,gap:a=14,padding:o=16,showDots:i=!0,onSlideChange:s})=>{const[c,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:c,indexFraction:m,showDots:i,children:l};return r("div",{className:e,children:[n(D,{gap:a,padding:o,activeIndex:c,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:l,children:i}=e?.currentTarget,m=i[0].offsetWidth-o/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const o=r-n;if(2===l)return[[0,o],[o,r]];const i=a+e,s=n-e-t,c=l-2,d=new Array(l).fill(0).map(((e,t)=>0===t||t===c?[t>0?o-s:0,t>0?o:s]:[(t-1)*i+s,t*i+s]));return d[l-1]=[o,r],d})({gap:a,padding:o,clientWidth:n,scrollWidth:l,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==c&&s&&s(),d(p),h(x)},children:l}),n(k,{...u})]})})),R=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:o,icon:i})=>{const{text:s,fileSize:c,...d}=o;return r("a",{className:e,role:"link",...d,children:[i?n(y,{className:t,image:i,width:"24px",height:"24px",asSVG:!0}):null,s?r("span",{className:l,children:[s,n("span",{className:a,children:d?.href&&B(P(d.href),c)})]}):null]})})),B=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),P=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},_=l((({className:e="",doc:t,icon:r})=>n(R,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),A=l((({context:e,hasBorder:t=!0,documents:r,icon:l})=>n(T,{context:e,className:"text-s text-primary-main mt-5",children:r?.length?r.map(((e,r)=>n(_,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:l},String(r)))):null}))),L=l((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,l)=>n("div",{role:"listitem",children:n(_,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(l)))):null}))),M=l((({className:e="",context:t,title:l,description:a,icon:o={icon:"DocIconMonoColor"},documents:i,orientation:s="vertical",hasBorder:c=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[n(w,{className:"!p-0 "+(a?"gap-2":"gap-5"),title:l,description:a,context:t,align:"center"}),"vertical"===s?n(L,{hasBorder:c,documents:i,icon:o}):n(A,{context:t,hasBorder:c,documents:i,icon:o})]}))),V=e=>e?.includes("//"),j=e=>(e||"").replace(/\/?\?.*/,""),G=e=>{if(!e||!V(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var W=Object.freeze({__proto__:null,isURL:V,withoutQuery:j,getOrigin:G,getHash:e=>{if(!e||!V(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const O="/mobile",U=(e,t)=>{if(!e)return e;const n=G(t?.href);return n?e.replace(n,"")||"/":e},E=e=>e;function F({router:e,handlerDecorator:t=E},n){const r=((e,t)=>{if(!e)return e;const n=U(e,t)||"",r=t?.pathname.startsWith(O);return r&&!V(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!V(r),a=!n.target||"_self"===n.target;l&&a&&(t?.preventDefault(),e.push(r))}),n)}}const H=l((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:o}=e;return r("div",{className:z(e),children:[a||null,J(e)?r("div",{children:[n("div",{className:"text-xs text-left",children:l}),n("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,o||null]})})),z=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="gap-2 "+(n?"py-2.5 px-7":"py-4 px-9");return["flex items-center justify-center",J(e)?l:"h-12 w-12",r?"rounded-full":""].join(" ")},J=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},K={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Q="w-full text-center font-sans select-none",Y=l((({className:e,text:t,aboveText:r,appendLeft:l,href:a,target:o,onClick:i,children:s,disabled:c,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=s??n(H,{text:t,aboveText:r,appendLeft:l,rounded:d,version:m});return c?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:-1,className:`inline-block ${Q} ${K[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${Q} inline-block cursor-pointer no-underline ${q[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:a,target:o,onClick:i,"aria-label":h,role:a?"link":"button",...u,children:p})})),Z=l((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:l}=e,a=e.useRouter();return r&&r?.length?n("div",{className:t,children:r.map(((e,t)=>function({icon:e,iconRight:t,...r},l){if(!r?.text)return null;return n(Y,e?{appendLeft:n(y,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:n(y,{image:t,width:"24",height:"24",asSVG:!0}),...r}:{...r},String(l))}(F({router:a,handlerDecorator:l},e),t)))}):null}));const X={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"},ee={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},te=l((({className:e="",isDotted:t=!0,children:l,version:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ne(a)}):null,n("span",{children:l})]}))),ne=e=>`${X[e]} ${ee[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,re={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},le=l((e=>{const{className:t="",itemClassName:r,isDotted:l,items:a,version:o="primary"}=e;return n("section",{className:`${re[o]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(te,{className:r,isDotted:l,version:o,children:e},String(t)))):null})})),ae=l((({className:e="",title:t="",children:l,buttons:a,image:o})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:l}),a?n("div",{children:a}):null]}),o]})]}))),oe={primary:"text-primary-text",secondary:"text-white"},ie={primary:"text-secondary-text",secondary:"text-white"};function se(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const ce=l((({className:e="",context:t,title:l,headlineVersion:a="L",description:o,benefits:i,benefitsVersion:s="normal",buttons:c,image:d,items:m,version:h="primary",isDotted:u=!0,label:p})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[p?he(p,h):null,n(w,{context:t,className:"!p-0 max-w-[600px]",title:l,description:o,bgColorHeadline:h,headlineVersion:a}),r(ae,{context:t,buttons:c?.length?n(Z,{context:t,buttons:c,className:"flex flex-col mt-5 gap-2.5"}):null,children:[i?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:i.map(((e,t)=>function({benefit:e,version:t="primary"},l){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(y,{className:se(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`text-l m-0 ${oe[t]}`,children:e.label}),e.description&&n("div",{className:`text-s ${ie[t]}`,children:e.description})]},String(l))}({benefit:e,version:h,benefitsVersion:s},t)))}):null,m?.length?n(le,{className:"mt-3 text-m",items:m,version:h,isDotted:u}):null]})]}),de(d)]})));function de(e){return e?.src?n(y,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const me={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},he=(e,t)=>n("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${me[t]}`,children:e}),ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},pe=l((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ue[r]} ${t}`,children:n(ce,{...e})})})),xe={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"}},ge=l((({title:e,description:t,blockVersion:l="primary",iconVersion:a,image:o,className:i="",items:s,isDotted:c=!0})=>{const d=xe[l],m="secondary"===l?"secondary":"gray";return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${i}`,children:["small"===a?be(d.icon):null,"big"===a?fe(o):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,s?.length?n(le,{className:"mt-1 text-m-md",items:s,isDotted:c,version:m}):null]})]})}));function be(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function fe(e){return e?.src?n(y,{className:"pb-3 mr-auto",image:e}):null}const ye={primary:"bg-white",secondary:"bg-primary-main text-white"},Ne=l((({context:e,title:t,description:l,cards:a=[],className:o,orientation:s="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${o}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(i,{headingType:"h3",className:`text-center ${l?"mb-2":"mb-5"}`,title:t}):null,l?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:l}):null]}),ve(s,a,e)]})));function ve(e,t,r){return"horizontal"===e?n(T,{context:r,children:t?.map(Ie)}):n("div",{className:"grid gap-[14px]",children:t?.map(Ie)})}function Ie(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${ye[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(y,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?we(e):null,e.items?.length?ke(e.items,e.isDotted,e.version):null]}),e?.button?.text?(l=e.button,n(Y,{className:"mt-3",appendLeft:l?.icon&&n(y,{image:l?.icon,width:"24px",height:"24px",asSVG:!0}),...l})):null]},t);var l}function we(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function ke(e,t,l="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[t?n("div",{className:ne(l)}):null,n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===l?"text-secondary-text":""),children:e.text})]},String(a))))})}class Ce{static inst=new Ce;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 Se=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},$e=l((({anchor:e,className:t,context:r,children:l,tag:a="section",labels:o})=>{const i=a,{IntersectionObserverTag:s}=r,[c,d]=r.useState(!0);return r.useEffect((()=>Ce.inst.subscribe("tab",(e=>{d(!o?.length||!e.label||o.includes(e.label))}))),[o]),c?e?n(s,{tag:a,className:t,observerCallback:Se,observerOptions:{threshold:1},anchor:e,children:l}):n(i,{className:t,children:l}):null})),De=l((({className:e="",documents:t,...r})=>n($e,{className:`font-sans bg-white mt-[10px] ${e}`,...r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Te(t):null})}))),Te=e=>e.map(((e,t)=>{const{text:r,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:r||null})},`list_item_${String(t)}`)})),Re={Headline:w,LinkDocs:M,TextBlock:ge,ProductBlock:pe,Gallery:Ne,LinkList:De},Be=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Pe({context:t,className:n})):null,Pe=({context:e,className:t})=>(r,l)=>{if(!r)return null;const{style:a,blockListType:o,...i}=r;if(!o||!(o in Re))return null;const s=N(a);return n(Re[o],{className:`${t} ${s}`,context:e,...i},`block_${l}`)},_e=l((({blocks:e,context:t})=>n("div",{className:"flex flex-wrap transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Be({context:t,blocks:e,className:"!px-0"})}))),Ae=l((({label:e,labelIcon:t,blocks:l,bordered:a,context:o})=>{const{hasContent:i,icon:s,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,l]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!r);const n=t.nextSibling;n.style.maxHeight=n.style.maxHeight?"":`${n.scrollHeight}px`}}})({context:o,blocks:l});return r("li",{className:`${Le(a)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${a?"":"py-[14px] px-0"}\n ${i?"group cursor-pointer":""}`,onClick:c,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(i?"group-hover:text-primary-main":""),children:[t?n(y,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),i?n(y,{image:s,width:"24",height:"24",asSVG:!0}):null]}),i?n(_e,{blocks:l,context:o}):null]})}));function Le(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Me=l((({title:e,description:t,accordionItems:l,context:a,className:o="",bordered:s})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${o}`,children:[e?n(i,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Ae,{...e,context:a,bordered:s},`AccordionItem_${t}`)))}):null]}))),Ve=(e=!1)=>e?"text-white":"",je=(e=!1)=>"text-m-sm mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ge=l((({icon:e,image:t,title:l,subtitle:a,isFillGradient:o})=>r("div",{role:"columnheader",children:[e?n(y,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(y,{image:t})}),l?n(i,{headingType:"h4",className:Ve(o),title:l}):null,a?n("div",{className:je(o),children:a}):null]}))),We=l((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Oe(r,t))})}))),Oe=(e,t)=>({label:l,description:a},o)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[l?n("div",{className:"text-right "+(e?"text-white":""),children:l}):null,a?n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a}):null]})]},String(o)),Ue=l((({header:e,columnData:t,visibleRowLength:l=0,isFillGradient:a,showRow:o,onToggleColumn:i})=>{const s=t?.slice(0,o?t.length:l),c=a?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${a?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Ge,{...e,isFillGradient:a}),s?.length?s.map((({rowHeader:e,cell:t},r)=>n(We,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,o&&Ee({header:e,buttonVersion:c}),Fe({onToggleColumn:i,isFillGradient:a,showRow:o})]})})),Ee=({header:e,buttonVersion:t})=>n(Y,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Fe=({onToggleColumn:e,isFillGradient:t,showRow:r})=>n("div",{className:"mt-5",role:"cell",children:n("a",{role:"link",onClick:e,className:"font-medium text-m-sm cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:r?"Скрыть":"Показать описание"})}),He=l((({className:e,context:t,title:l,rowHeaders:a,columns:o,visibleRowLength:s=0,isColoredFirstColumn:c=!1,orientation:d="vertical"})=>{const m=o?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:a?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(o?.length).fill(!s));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[l?n(i,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:l}):null,ze({tableData:m,context:t,visibleRowLength:s,isColoredFirstColumn:c,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),ze=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,columnsViewState:a,handleToggleColumn:o,orientation:i="horizontal",setColumnsViewState:s})=>n("div",{role:"table",children:t?.length?Je({orientation:i,context:e,columnsViewState:a,setColumnsViewState:s,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,handleToggleColumn:o}):null}),Je=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:l,tableData:a,visibleRowLength:o,isColoredFirstColumn:i,handleToggleColumn:s})=>"horizontal"===e?n(T,{context:t,onSlideChange:Ke(r,l),children:a.map(qe({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:s}))}):a.map(qe({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:s})),qe=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a})=>(o,i)=>n(Ue,{context:e,visibleRowLength:t,showRow:l[i],header:o.header,columnData:o.column,isFillGradient:0===i&&r,onToggleColumn:()=>a(i)},String(i)),Ke=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Qe(){try{const e=await fetch(Ye,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ze)});return await e.json()}catch(e){return console.error(e),Promise.resolve()}}const Ye="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",Ze={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Xe=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:et(Number(t.rate_buy)),sell:et(Number(t.rate_sell))}),e}),[]),et=e=>Math.round(1e3*e)/1e3;var tt;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(tt||(tt={}));const nt=new Intl.NumberFormat("ru",{style:"currency",currency:tt.RUB}),rt=e=>e?nt.format(e):"",lt="text-left text-m text-secondary-text",at={USD:"DollarIcon",EUR:"EuroIcon"},ot=l((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:lt,children:"Валюта"}),n("th",{className:`${lt} pl-11`,children:"Купить"}),n("th",{className:`${lt} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>it(e)))})]}))),it=e=>{const t=e?.code;return r("tr",{className:"pb-1 text-h6",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(y,{image:{icon:at[t]},width:"24",height:"24"}):null,n("span",{className:"ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11",children:rt(e?.sell)}),n("td",{className:"pt-4 pl-11",children:rt(e?.buy)})]},t)},st=l((({className:e="",address:t,distance:l})=>r("div",{className:`flex ${e}`,children:[n(y,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3",children:[t?n("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,l?r("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),ct=(e,t,n)=>{const r=Number(dt(e))*Math.pow(t,n?-1:1);return Number.isInteger(r)?r:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(r)},dt=e=>e.replace(/[^\d.,]/g,"").replace(",","."),mt=e=>{return(t=[[e=>e.value!==tt.RUB&&e.oppositeValue!==tt.RUB,()=>e.handleConvert(e.value,tt.RUB)],[e=>e.value===tt.RUB&&e.oppositeValue===tt.RUB,()=>e.handleConvert(e.value,tt.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},ht=l((({className:e="",id:t,name:r,type:l="text",placeholder:a,pattern:o,value:i,onChange:s})=>n("input",{className:e,id:t,name:r||t,type:l,pattern:o,placeholder:a,value:i,onChange:e=>{const t=e.target.validity.valid?e.target.value:i;s(t)}}))),ut={background:"url('/icons/ArrowDownIcon.svg') no-repeat right 16px top 50%"},pt=l((({className:e="",id:t,name:r,children:l,value:a,onChange:o})=>n("select",{className:`appearance-none ${e}`,style:ut,id:t,name:r||t,value:a,onChange:e=>o(e.target.value),children:l}))),xt=l((({className:e="",value:t,selected:r,children:l})=>n("option",{className:e,value:`${t}`,selected:r,children:l})));function gt(e){const{placeholder:t,rates:l,selected:a,value:o,setValue:i,setSelected:s}=e;return r("div",{className:"relative flex items-center",children:[n(ht,{className:"shrink-0 h-13 border pl-4 pt-4 pb-4 rounded-md text-l w-full appearance-none -mr-12",placeholder:t,type:"text",value:o,onChange:i}),l.length?n(pt,{className:"shrink-0 w-20 h-9 -translate-x-8 bg-transparent",value:a,onChange:e=>s(e),children:l.map(((e,t)=>n(xt,{value:e.code,children:e.code},String(t))))}):null]})}const bt=l((({context:e,className:t="",currencyRatesBuy:l,currencyRatesSell:a,button:o})=>{const{useRouter:i,handlerDecorator:s}=e,c=i(),[d,m]=e.useState({inputSell:"",inputBuy:"",selectSell:l?.[0]?.code||tt.RUB,selectBuy:a?.[0]?.code||tt.USD}),h=e=>{m((t=>({...t,...e})))};return r("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[gt({placeholder:"Хочу продать",rates:l,selected:d.selectSell,setSelected:ft(d,h,a),value:d.inputSell,setValue:e=>Nt(h,a)(e,d.selectSell,d.selectBuy)}),gt({placeholder:"Получу",rates:a,selected:d.selectBuy,setSelected:yt(d,h,l),value:d.inputBuy,setValue:e=>vt(h,l)(e,d.selectBuy,d.selectSell)}),o?.text?n(Y,{className:"py-4 mr-1",version:o?.version,...F({router:c,handlerDecorator:s},o),children:o.text}):null]})})),ft=(e,t,n)=>r=>{t({selectSell:r}),mt({value:r,oppositeValue:e.selectBuy,handleConvert:(r=e.selectSell,l=e.selectBuy)=>{Nt(t,n)(e.inputSell,r,l)}})},yt=(e,t,n)=>r=>{t({selectBuy:r}),mt({value:r,oppositeValue:e.selectSell,handleConvert:(r=e.selectBuy,l=e.selectSell)=>vt(t,n)(e.inputBuy,r,l)})},Nt=(e,t)=>(n,r,l)=>{e({inputSell:dt(n),selectBuy:l});const a=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===r))?.sell;a&&e({inputBuy:String(ct(n,a,r===tt.RUB)||"")})},vt=(e,t)=>(n,r,l)=>{e({inputBuy:dt(n),selectSell:l});const a=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===r))?.buy;a&&e({inputSell:String(ct(n,a,r===tt.RUB)||"")})},It={address:"Москва, ул.Ленина д.28",distance:"6км"},wt=l((({className:e="",context:t,title:l="Курсы обмена валют",button:a,...o})=>{const s=function(e){const{data:t}=e(Ye,Qe),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?Xe(n):n}(t.useAsyncData),c=s.filter((e=>e.buy));c.unshift({code:tt.RUB});const d=s.filter((e=>e.sell));return d.push({code:tt.RUB}),n($e,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...o,children:n(ae,{context:t,title:n(i,{headingType:"h4",title:l,className:"whitespace-pre-wrap text-h4"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-14 pt-4",children:[s?n(ot,{className:"mb-[30px]",exchangeCurrencyItems:s}):null,n(st,{...It})]}),s.length&&c.length&&d.length?n(bt,{className:"grow",context:t,currencyRatesBuy:c,currencyRatesSell:d,button:a}):null]})})})})),kt={"bg-white":"text-primary-main",transparent:"text-white"},Ct={"bg-white":"text-black",transparent:"text-white"},St=l((({className:e="",href:t,children:l,targetBlank:a,bgColor:o="bg-white",hideTitle:i})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(y,{image:{icon:"Logo"},className:`${kt[o]} w-10 h-[38px]`,asSVG:!0}),i?null:n("span",{className:`${Ct[o]} text-sm font-medium ml-2.5`,children:l||"Россельхозбанк"})]}))),$t=l((({className:e="",title:t="Мобильное приложение",description:l,href:a="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e}`,children:a?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(St,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:a,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-s font-medium mb-[3px]",children:t}),n("div",{className:"text-s text-secondary-text",children:l})]})]}):null}))),Dt=l((({className:e="",items:t,hasButton:l,context:a})=>{const o=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:e,children:[t?.length?t.map(Tt):null,l?n(Y,{version:"primary",className:"mb-6 w-full",...F({router:o,handlerDecorator:i},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Tt=(e,t)=>{const{type:l,text:a,description:o}=e;return r("div",{className:"mb-4",children:[n("div",{children:Rt(l,a)}),n("div",{className:"mt-1 text-s-light text-secondary-text",children:o})]},String(t))},Rt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Bt(t)}`,children:t});case"email":return n("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Bt=e=>e.replaceAll(/\D/g,""),Pt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:o})=>n("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:o,children:r||`Документ ${t}`}))),_t=l((({title:e,links:t,className:l="",context:a})=>{const o=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:l,children:[n("span",{className:"text-primary-text font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(Pt,{index:t,className:"font-normal text-sm",...F({router:o,handlerDecorator:i},e)},String(t))))}):null]})})),At=[{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"}],Lt=l((({href:e,version:t="primary"})=>{const{icon:r,label:l}=At.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-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:r?n(y,{image:r,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Mt=l((({className:e,media:t,version:r,context:l})=>{const a=l.useRouter(),{handlerDecorator:o}=l;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Lt,{version:r,...F({router:a,handlerDecorator:o},e)},String(t))))})})),Vt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:o})=>n("a",{className:`text-xs text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:l,target:a,onClick:o,children:r||`Документ ${t}`}))),jt=l((({className:e,links:t,context:l})=>{const a=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(Vt,{index:t,className:"font-normal",...F({router:a,handlerDecorator:o},e)},String(t))))}):null]})}));function Gt(e){const{data:t}=e(Ot(),Wt);return t||{}}async function Wt(){const e=await fetch(Ot());return await e.json()}function Ot(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Ut=l((({className:e,context:t,isMobile:l=!1})=>{const{term:a,setTerm:o}=t.useSearch(),i=l?"font-normal text-sm":"text-l-light",s=l?" placeholder-transparent font-normal":"font-light h-full",c=l?"some search":void 0;return r("form",{className:`font-sans relative ${e}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:l?"w-[20px] h-[20px]":"w-[24px] h-[24px]",children:n(y,{image:"LoupeIcon",width:"24",height:"24"})}),a?null:n("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${i}`,children:"Поиск по сайту"})]}),n("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-divider focus:border-primary-text ${s}`,value:a,onChange:e=>o(e.target.value),type:"text",name:"search-bar-input",placeholder:c}),l?n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),o("")},children:n(y,{image:"CloseIcon",width:"24",height:"24"})}):n(Y,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),Et=l((({className:e="",context:t})=>n(Ut,{context:t,className:e,isMobile:!0}))),Ft=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Ht=l((({className:e="",documents:t,relatedEnterprises:l,contacts:a,socialMedia:o,context:i,horizontalNavigationTitle:s})=>{const c=Gt(i.useAsyncData),d=c?.dispositions;return r("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[n(Dt,{className:"overflow-hidden",items:a,context:i,hasButton:!0}),n(Me,{context:i,className:"!p-0 mb-4",accordionItems:Ft(c.topItems)}),n("div",{children:d?.map(zt)}),n($t,{context:i,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Et,{context:i,className:"grow"}),n(Mt,{className:"pb-4",media:o,context:i}),n(_t,{title:s,links:l,context:i}),n(jt,{links:t,context:i})]})})),zt=(e,t)=>{const{icon:l,href:a,text:o}=e;return r(Y,{version:"link",href:a,className:"flex text-sm mb-4",children:[l?n(y,{className:"pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:o})]},`footer-${t}`)},Jt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(j(e),(e=>(e||"").replace(O,""))(j(V(e)?t.href:t.pathname))),qt=e=>t=>Jt(t.href,e),Kt=e=>t=>t.items?.some(qt(e))||Jt(t.href,e)||((e,t)=>G(e)===G(t.href))(t.href,e),Qt=e=>t=>e?.href===t?.href,Yt=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(Qt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Qt(e))))));var n,r,l},Zt="absolute left-0 -bottom-3 w-full h-[2px]",Xt=l((({className:e="",text:t,href:l,target:a,active:o,onClick:i,children:s,bgColor:c="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:l,target:a,onClick:i,children:[n("span",{className:en(c,o),children:t||s}),o?n("div",{className:tn(c,o)}):null]}))),en=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},tn=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Zt}`:Zt,nn=l((({context:e,burgerSubMenu:t,onClick:l,defaultLocation:a="",children:o})=>{const[i,s]=e.useGeolocation(a);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:l,children:n(y,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:s,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(y,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),i]}),o,n("div",{className:"mb-7",children:t?.map(rn)}),n(Et,{context:e,className:"grow"})]})})),rn=(e,t)=>{const{icon:l,href:a,text:o}=e;return r("a",{href:a,className:"flex text-sm mb-4 hover:text-primary-main",children:[l?n(y,{className:"text-primary-main pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:o})]},`headerSubMenu-${t}`)},ln=l((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(y,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(St,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),an=l((({className:e="",defaultLocation:t,bgColor:l="bg-white",context:a,topItems:o})=>{const i=a.useRouter(),s=Gt(a.useAsyncData),c=s?.dispositions,{handlerDecorator:d}=a,m=Yt(s.topItems,o).find(Kt(i))?.items,h=(e=>(t=[])=>{const n=t?.filter(qt(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(i)(m),[u,p]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${l} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(ln,{onClick:x,bgColor:l}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>on({...F({router:i,handlerDecorator:d},e),active:e===h,bgColor:l},t)))})})]}),u?n(nn,{context:a,onClick:x,burgerSubMenu:c,defaultLocation:t,children:n(Me,{context:a,accordionItems:Ft(s.topItems),className:"!p-0 mb-4"})}):null]})})),on=(e,t)=>n(Xt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),sn=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function cn(e=""){const t=sn(e);return t<=4?"S":t<=8?"M":"L"}function dn(e=""){const t=sn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function mn(e=""){const t=sn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const hn=l((({className:e,context:t,title:l,description:a="Блок в разработке...",...o})=>r($e,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${mn(e)} ${dn(e)} `,...o,children:[n(w,{context:t,className:"!p-0 max-w-[600px]",title:l,description:a,headlineVersion:cn(e)}),n("figure",{className:"m-0 min-w-[600px]",children:un()})]}))),un=(e=3)=>xn(100,e).map((e=>Math.floor(e))).map(pn),pn=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),xn=(e,t)=>[e].concat(t>0?xn(e/1.618,t-1):[]),gn={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},bn=l((({block:e,context:t,className:r=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${gn[e?.version??"primary"]} ${r}`,role:"listitem",children:n("div",{className:"flex grow",children:n(ce,{context:t,...e})})}))),fn=l((({className:e,context:t,slides:r=[]})=>{const l=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(T,{context:t,children:l.map(((e,r)=>n(bn,{block:e,context:t},String(r))))})})})),yn={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"}},Nn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},vn={normal:"min-h-[70px]",small:"min-h-[50px]"},In=l((({className:e,title:t,description:l,showLines:a=!0,steps:o,size:s="normal",version:c="primary"})=>{const d=yn[c];return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${d.background} ${d.title} ${e||""}`,children:[t?n(i,{headingType:"h3",className:`text-center ${d.title}`,title:t}):null,l?n("p",{className:`text-m text-center ${d.description} ${t?"mt-2":""}`,children:l}):null,o?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:o.map(wn(s,c,a))})}):null]})})),wn=(e,t,l)=>(a,o,i)=>{const s=i.length-1===o,c="normal"===e?"ml-[34px]":"ml-6",d=yn[t];return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[kn(e,t),s?null:n("div",{className:`min-h-8 h-full w-[2px] ${l?d.iconConnector:""} ${c}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${vn[e]}`,children:[a.label?n("div",{className:"font-medium text-m-title-xs m-0 text-left mb-1",children:a.label}):null,a.description?n("div",{className:`text-s ${d.description} text-left`,children:a.description}):null]})]})},String(o))},kn=(e,t)=>(r,l)=>{const a=yn[t],o="normal"===e?"38":"27",i="normal"===e?"text-m-title":"text-m-title-xs";return n("div",{className:`${Nn[e]} ${a.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${a.title} ${i}`,children:(s=r?.icon,Boolean(s?.icon||s?.src)?n(y,{image:r.icon,width:o,height:o,asSVG:!0}):n("span",{children:l+1}))})});var s},Cn=l((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(i,{headingType:"h3",className:"font-medium",title:e}):null,t?n(y,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Sn=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],$n=l((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(Cn,{...e}),t?.length?t.map(Dn):null]}))),Dn=({label:e,description:t,list:l,image:a,buttons:o},i)=>r("div",{children:[i>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,l?.items?.length?Tn(l):null,a?n(y,{image:{...a,className:"m-0"}}):null,o?.length?Rn(o):null]},String(i)),Tn=e=>n(le,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Rn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},l)=>n(Y,{className:`mt-3 ${l>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:Sn(e),rounded:t,appendLeft:e?n(y,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(l))))}),Bn=l((({tiles:e,context:t})=>n(T,{context:t,children:e.map(((e,t)=>n($n,{...e},String(t))))}))),Pn=l((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n($n,{...e},String(t))))}))),_n=l((({className:e,context:t,title:l,description:a,columns:o,rowHeaders:s,orientation:c="vertical"})=>{const d=Ln(o),m=Mn(s,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[l?n(i,{headingType:"h2",className:`text-center ${a?"mb-2":"mb-5"}`,title:l}):null,a?n("div",{className:"mb-5 text-center text-m-md",children:a}):null,m?.length?An(c,m,t):null]})}));function An(e,t,r){return"vertical"===e?n(Pn,{tiles:t}):n(Bn,{context:r,tiles:t})}const Ln=e=>e?.[0].data?e[0].data:[],Mn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Vn={Accordion:Me,ComparisonTable:He,ExchangeRateTile:wt,Footer:Ht,Gallery:Ne,Header:an,Headline:w,LinkDocs:M,LinkList:De,MobileAppTile:$t,ProductBlock:pe,ProductGallery:fn,StepsBlock:In,TariffsTable:_n,TextBlock:ge,Placeholder:hn},jn=l((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Gn()}))),Gn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Wn=l((({className:e,context:t,...l})=>{const a=t.useLikeService();return r($e,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...l,children:[n(jn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(jn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),On=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Un=l((({className:e="",context:t,blocksRegistry:l,data:a={},blockDecorator:o=On})=>{const{style:i,blocks:s,slots:c={},likeControl:d,colorPalette:m="pc"}=a,{header:h}=c;return r("section",{className:`relative ${N(i)} ${e}`,"data-theme":m,children:[h?.blocks?.length?n("div",{className:`${N(h?.style)}`,children:h.blocks.map(((e,n)=>En({block:e,page:a,blockDecorator:o,blocksRegistry:l,context:t},n)))}):null,s?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:s.map(((e,n)=>En({block:e,blockDecorator:o,blocksRegistry:l,context:t,page:a},n)))}):null,d?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Wn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function En({block:e,blockDecorator:t,blocksRegistry:r,context:l,page:a},o){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=r[i||"Placeholder"]||hn;return t({blockClassName:`scroll-mt-12 ${N(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c,labels:d}=e.block;return n(s,{className:e.blockClassName,version:t,context:l,page:a,anchor:c,labels:d,...r},`${i}-${o}`)}},`block-${o}`)}e.Blocks=Vn,e.ContentPage=Un,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(a)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(a,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:r})}),{likes:a}=await n.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:l,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:l,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=d,e.setup=t,e.url=W,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).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...l}={})=>{const a=Object.assign({},l,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...l}=t||{},a=n?.slots?.default,i=r||a&&a();return e(Object.assign(l,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="likesToken";const i={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},o=l((e=>{const{className:t,headingType:r="h3",title:l,as:a="h3"}=e;return n(a,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:l})}));var s,c;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.Logo="Logo",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PackA4="PackA4",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.StateMortgageIcon="StateMortgageIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.Logo="Logo",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PackA4="PackA4",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.StateMortgageIcon="StateMortgageIcon",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(c||(c={}));const d=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},m={normal:"text-primary-main",black:"text-black",white:"text-black invert"},h=l((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${c[l]||l}`,title:i=a,iconVersion:o="normal",asSVG:s,...h})=>{const u=`${d.CDN||""}icons/${l}.svg`;return s?r("svg",{className:e,...h,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{className:`${m[o]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:a,title:i,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const p=(e,t)=>e.media&&t.media?e.media-t.media:0,x=l((({className:e="",image:t,imageClassName:l="",isMobile:a=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return r("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(p).map((({src:e,format:t,media:r,size:l},a)=>n("source",{srcSet:e,type:b(t),media:r?`(max-width: ${r}px)`:"",...l},`${a}_${e}`))):null,g(t,l,a)]})})),g=(e,t="",r=!1)=>{const l=e.title||"",a=e.alt||e.title,i=r?"m-auto":"m-0";return n("img",{src:e.src,className:`${i} ${t}`,alt:a,title:l,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}const f=l((({className:e="",image:t,imageClassName:r="",isMobile:l,...a})=>{if(!t)return null;const i="string"==typeof t?t:t.icon;return i||""===i?i.length?n(h,{className:e,imageClassName:r,iconVersion:u(t),name:i,...a}):null:n(x,{className:e,imageClassName:r,image:t,isMobile:l})})),y=l((({className:e="",image:t,imageClassName:r,...l})=>n(f,{className:e,image:t,imageClassName:r,...l,isMobile:!0})));function N(e){return e?e.filter(Boolean).join(" "):""}const v={left:"text-left",center:"text-center",right:"text-right"},I={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"}},w=l((({bgColorHeadline:e="transparent",className:t="",title:l,description:a,image:i,align:s="left"})=>{const c=I[e];return r("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${c.background} ${t}`,children:[l?n(o,{headingType:"h2",className:`${c.text} ${v[s]}`,title:l}):null,a?n("p",{className:`text-m ${c.description} ${v[s]}`,children:a}):null,i?.src&&n("div",{className:"mt-2.5 mx-auto flex justify-center",children:n(y,{image:i})})]})})),k=l((({children:e,activeIndex:t,indexFraction:r,showDots:l})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return l&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,l)=>n("div",{onClick:a(l),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:C(l,t,r),"aria-hidden":!0},String(l))))}):null})),C=(e,t,n)=>{if(e<t||e>t+1)return;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},S=l((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),$=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),D=l((({className:e="",children:t,activeIndex:r,onScroll:l,gap:a=14,padding:i=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...$(i),gap:`${a}px`},role:"list",onScroll:l,children:t?.length?t?.map(((e,t)=>n(S,{style:$(i/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(S,{children:t})}))),T=l((({className:e,context:t,children:l,gap:a=14,padding:i=16,showDots:o=!0,onSlideChange:s})=>{const[c,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:c,indexFraction:m,showDots:o,children:l};return r("div",{className:e,children:[n(D,{gap:a,padding:i,activeIndex:c,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:l,children:o}=e?.currentTarget,m=o[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const i=r-n;if(2===l)return[[0,i],[i,r]];const o=a+e,s=n-e-t,c=l-2,d=new Array(l).fill(0).map(((e,t)=>0===t||t===c?[t>0?i-s:0,t>0?i:s]:[(t-1)*o+s,t*o+s]));return d[l-1]=[i,r],d})({gap:a,padding:i,clientWidth:n,scrollWidth:l,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==c&&s&&s(),d(p),h(x)},children:l}),n(k,{...u})]})})),R=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:i,icon:o})=>{const{text:s,fileSize:c,...d}=i;return r("a",{className:e,role:"link",...d,children:[o?n(y,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,s?r("span",{className:l,children:[s,n("span",{className:a,children:d?.href&&B(P(d.href),c)})]}):null]})})),B=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),P=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},_=l((({className:e="",doc:t,icon:r})=>n(R,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),A=l((({context:e,hasBorder:t=!0,documents:r,icon:l})=>n(T,{context:e,className:"text-s text-primary-main mt-5",children:r?.length?r.map(((e,r)=>n(_,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:l},String(r)))):null}))),M=l((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,l)=>n("div",{role:"listitem",children:n(_,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(l)))):null}))),L=l((({className:e="",context:t,title:l,description:a,icon:i={icon:"DocIconMonoColor"},documents:o,orientation:s="vertical",hasBorder:c=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[n(w,{className:"!p-0 "+(a?"gap-2":"gap-5"),title:l,description:a,context:t,align:"center"}),"vertical"===s?n(M,{hasBorder:c,documents:o,icon:i}):n(A,{context:t,hasBorder:c,documents:o,icon:i})]}))),V=e=>e?.includes("//"),j=e=>(e||"").replace(/\/?\?.*/,""),G=e=>{if(!e||!V(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var W=Object.freeze({__proto__:null,isURL:V,withoutQuery:j,getOrigin:G,getHash:e=>{if(!e||!V(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const O="/mobile",U=(e,t)=>{if(!e)return e;const n=G(t?.href);return n?e.replace(n,"")||"/":e},E=e=>e;function F({router:e,handlerDecorator:t=E},n){const r=((e,t)=>{if(!e)return e;const n=U(e,t)||"",r=t?.pathname.startsWith(O);return r&&!V(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!V(r),a=!n.target||"_self"===n.target;l&&a&&(t?.preventDefault(),e.push(r))}),n)}}const H=l((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:i}=e;return r("div",{className:z(e),children:[a||null,J(e)?r("div",{children:[n("div",{className:"text-xs-light text-left",children:l}),n("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,i||null]})})),z=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="gap-2 "+(n?"py-2.5 px-7":"py-4 px-9");return["flex items-center justify-center",J(e)?l:"h-12 w-12",r?"rounded-full":""].join(" ")},J=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",link:"text-primary-main"},K={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Q="w-full text-center font-sans select-none",Y=l((({className:e,text:t,aboveText:r,appendLeft:l,href:a,target:i,onClick:o,children:s,disabled:c,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=s??n(H,{text:t,aboveText:r,appendLeft:l,rounded:d,version:m});return c?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:-1,className:`inline-block ${Q} ${K[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${Q} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${q[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:a,target:i,onClick:o,"aria-label":h,role:a?"link":"button",...u,children:p})})),Z=l((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:l}=e,a=e.useRouter();return r&&r?.length?n("div",{className:t,children:r.map(((e,t)=>function({icon:e,iconRight:t,...r},l){if(!r?.text)return null;return n(Y,e?{appendLeft:n(y,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:n(y,{image:t,width:"24",height:"24",asSVG:!0}),...r}:{...r},String(l))}(F({router:a,handlerDecorator:l},e),t)))}):null}));const X={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"},ee={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},te=l((({className:e="",isDotted:t=!0,children:l,version:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ne(a)}):null,n("span",{children:l})]}))),ne=e=>`${X[e]} ${ee[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,re={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},le=l((e=>{const{className:t="",itemClassName:r,isDotted:l,items:a,version:i="primary"}=e;return n("section",{className:`${re[i]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(te,{className:r,isDotted:l,version:i,children:e},String(t)))):null})})),ae=l((({className:e="",title:t="",children:l,buttons:a,image:i})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:l}),a?n("div",{children:a}):null]}),i]})]}))),ie={primary:"text-primary-text",secondary:"text-white"},oe={primary:"text-secondary-text",secondary:"text-white"};function se(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const ce=l((({className:e="",context:t,title:l,headlineVersion:a="L",description:i,benefits:o,benefitsVersion:s="normal",buttons:c,image:d,items:m,version:h="primary",isDotted:u=!0,label:p})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[p?he(p,h):null,n(w,{context:t,className:"!p-0 max-w-[600px]",title:l,description:i,bgColorHeadline:h,headlineVersion:a}),r(ae,{context:t,buttons:c?.length?n(Z,{context:t,buttons:c,className:"flex flex-col mt-5 gap-2.5"}):null,children:[o?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:o.map(((e,t)=>function({benefit:e,version:t="primary"},l){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(y,{className:se(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`text-l m-0 ${ie[t]}`,children:e.label}),e.description&&n("div",{className:`text-s ${oe[t]}`,children:e.description})]},String(l))}({benefit:e,version:h,benefitsVersion:s},t)))}):null,m?.length?n(le,{className:"mt-3 text-m",items:m,version:h,isDotted:u}):null]})]}),de(d)]})));function de(e){return e?.src?n(y,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const me={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},he=(e,t)=>n("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${me[t]}`,children:e}),ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},pe=l((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ue[r]} ${t}`,children:n(ce,{...e})})})),xe={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"}},ge=l((({title:e,description:t,blockVersion:l="primary",iconVersion:a,image:i,className:o="",items:s,isDotted:c=!0})=>{const d=xe[l],m="secondary"===l?"secondary":"gray";return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===a?be(d.icon):null,"big"===a?fe(i):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`text-l font-medium mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-s ${d.description}`,children:t}):null,s?.length?n(le,{className:"mt-1 text-m",items:s,isDotted:c,version:m}):null]})]})}));function be(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function fe(e){return e?.src?n(y,{className:"pb-3 mr-auto",image:e}):null}const ye={primary:"bg-white",secondary:"bg-primary-main text-white"},Ne=l((({context:e,title:t,description:l,cards:a=[],className:i,orientation:s="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(o,{headingType:"h3",className:`text-center ${l?"mb-2":"mb-5"}`,title:t}):null,l?n("div",{className:"text-m max-w-[600px] text-center mb-5",children:l}):null]}),ve(s,a,e)]})));function ve(e,t,r){return"horizontal"===e?n(T,{context:r,children:t?.map(Ie)}):n("div",{className:"grid gap-[14px]",children:t?.map(Ie)})}function Ie(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${ye[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(y,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?we(e):null,e.items?.length?ke(e.items,e.isDotted,e.version):null]}),e?.button?.text?(l=e.button,n(Y,{className:"mt-3",appendLeft:l?.icon&&n(y,{image:l?.icon,width:"24px",height:"24px",asSVG:!0}),...l})):null]},t);var l}function we(e){return n("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function ke(e,t,l="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[t?n("div",{className:ne(l)}):null,n("span",{className:"text-m font-medium",children:e.title}),n("span",{className:"text-s pl-2 "+("primary"===l?"text-secondary-text":""),children:e.text})]},String(a))))})}class Ce{static inst=new Ce;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 Se=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},$e=l((({anchor:e,className:t,context:r,children:l,tag:a="section",labels:i})=>{const o=a,{IntersectionObserverTag:s}=r,[c,d]=r.useState(!0);return r.useEffect((()=>Ce.inst.subscribe("tab",(e=>{d(!i?.length||!e.label||i.includes(e.label))}))),[i]),c?e?n(s,{tag:a,className:t,observerCallback:Se,observerOptions:{threshold:1},anchor:e,children:l}):n(o,{className:t,children:l}):null})),De=l((({className:e="",documents:t,...r})=>n($e,{className:`font-sans bg-white mt-[10px] ${e}`,...r,children:n("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Te(t):null})}))),Te=e=>e.map(((e,t)=>{const{text:r,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:r||null})},`list_item_${String(t)}`)})),Re={Headline:w,LinkDocs:L,TextBlock:ge,ProductBlock:pe,Gallery:Ne,LinkList:De},Be=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Pe({context:t,className:n})):null,Pe=({context:e,className:t})=>(r,l)=>{if(!r)return null;const{style:a,blockListType:i,...o}=r;if(!i||!(i in Re))return null;const s=N(a);return n(Re[i],{className:`${t} ${s}`,context:e,...o},`block_${l}`)},_e=l((({blocks:e,context:t})=>n("div",{className:"flex flex-wrap transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Be({context:t,blocks:e,className:"!px-0"})}))),Ae=l((({label:e,labelIcon:t,blocks:l,bordered:a,context:i})=>{const{hasContent:o,icon:s,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,l]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!r);const n=t.nextSibling;n.style.maxHeight=n.style.maxHeight?"":`${n.scrollHeight}px`}}})({context:i,blocks:l});return r("li",{className:`${Me(a)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${a?"":"py-[14px] px-0"}\n ${o?"group cursor-pointer":""}`,onClick:c,children:[r("span",{className:"text-m-title-xs font-medium pr-2.5 flex "+(o?"group-hover:text-primary-main":""),children:[t?n(y,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(y,{className:"w-6",image:s,width:"24",height:"24",asSVG:!0}):null]}),o?n(_e,{blocks:l,context:i}):null]})}));function Me(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Le=l((({title:e,description:t,accordionItems:l,context:a,className:i="",bordered:s})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${i}`,children:[e?n(o,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-light text-center",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Ae,{...e,context:a,bordered:s},`AccordionItem_${t}`)))}):null]}))),Ve=(e=!1)=>e?"text-white":"",je=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ge=l((({icon:e,image:t,title:l,subtitle:a,isFillGradient:i})=>r("div",{role:"columnheader",children:[e?n(y,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(y,{image:t})}),l?n(o,{headingType:"h4",className:Ve(i),title:l}):null,a?n("div",{className:je(i),children:a}):null]}))),We=l((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Oe(r,t))})}))),Oe=(e,t)=>({label:l,description:a},i)=>r("div",{className:"flex justify-between text-s py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[l?n("div",{className:"text-right "+(e?"text-white":""),children:l}):null,a?n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a}):null]})]},String(i)),Ue=l((({header:e,columnData:t,visibleRowLength:l=0,isFillGradient:a,showRow:i,onToggleColumn:o})=>{const s=t?.slice(0,i?t.length:l),c=a?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${a?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Ge,{...e,isFillGradient:a}),s?.length?s.map((({rowHeader:e,cell:t},r)=>n(We,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,i&&Ee({header:e,buttonVersion:c}),Fe({onToggleColumn:o,isFillGradient:a,showRow:i})]})})),Ee=({header:e,buttonVersion:t})=>n(Y,{href:e.link.href,target:e.link.target,version:t,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}),Fe=({onToggleColumn:e,isFillGradient:t,showRow:r})=>n("div",{className:"mt-5",role:"cell",children:n("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:r?"Скрыть":"Показать описание"})}),He=l((({className:e,context:t,title:l,rowHeaders:a,columns:i,visibleRowLength:s=0,isColoredFirstColumn:c=!1,orientation:d="vertical"})=>{const m=i?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:a?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(i?.length).fill(!s));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[l?n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:l}):null,ze({tableData:m,context:t,visibleRowLength:s,isColoredFirstColumn:c,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),ze=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,columnsViewState:a,handleToggleColumn:i,orientation:o="horizontal",setColumnsViewState:s})=>n("div",{role:"table",children:t?.length?Je({orientation:o,context:e,columnsViewState:a,setColumnsViewState:s,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,handleToggleColumn:i}):null}),Je=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:l,tableData:a,visibleRowLength:i,isColoredFirstColumn:o,handleToggleColumn:s})=>"horizontal"===e?n(T,{context:t,onSlideChange:Ke(r,l),children:a.map(qe({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:s}))}):a.map(qe({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:s})),qe=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a})=>(i,o)=>n(Ue,{context:e,visibleRowLength:t,showRow:l[o],header:i.header,columnData:i.column,isFillGradient:0===o&&r,onToggleColumn:()=>a(o)},String(o)),Ke=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Qe(){try{const e=await fetch(Ye,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ze)});return await e.json()}catch(e){return console.error(e),Promise.resolve()}}const Ye="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",Ze={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Xe=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:et(Number(t.rate_buy)),sell:et(Number(t.rate_sell))}),e}),[]),et=e=>Math.round(1e3*e)/1e3;var tt;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(tt||(tt={}));const nt=new Intl.NumberFormat("ru",{style:"currency",currency:tt.RUB}),rt=e=>e?nt.format(e):"",lt="text-left text-m-light text-secondary-text",at={USD:"DollarIcon",EUR:"EuroIcon"},it=l((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:lt,children:"Валюта"}),n("th",{className:`${lt} pl-11`,children:"Купить"}),n("th",{className:`${lt} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>ot(e)))})]}))),ot=e=>{const t=e?.code;return r("tr",{className:"pb-1 text-h6",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(y,{image:{icon:at[t]},width:"24",height:"24"}):null,n("span",{className:"ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11",children:rt(e?.sell)}),n("td",{className:"pt-4 pl-11",children:rt(e?.buy)})]},t)},st=l((({className:e="",address:t,distance:l})=>r("div",{className:`flex ${e}`,children:[n(y,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3",children:[t?n("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,l?r("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),ct=(e,t,n)=>{const r=Number(dt(e))*Math.pow(t,n?-1:1);return Number.isInteger(r)?r:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(r)},dt=e=>e.replace(/[^\d.,]/g,"").replace(",","."),mt=e=>{return(t=[[e=>e.value!==tt.RUB&&e.oppositeValue!==tt.RUB,()=>e.handleConvert(e.value,tt.RUB)],[e=>e.value===tt.RUB&&e.oppositeValue===tt.RUB,()=>e.handleConvert(e.value,tt.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},ht=l((({className:e="",id:t,name:r,type:l="text",placeholder:a,pattern:i,value:o,onChange:s})=>n("input",{className:e,id:t,name:r||t,type:l,pattern:i,placeholder:a,value:o,onChange:e=>{const t=e.target.validity.valid?e.target.value:o;s(t)}}))),ut={background:"url('/icons/ArrowDownIcon.svg') no-repeat right 16px top 50%"},pt=l((({className:e="",id:t,name:r,children:l,value:a,onChange:i})=>n("select",{className:`appearance-none ${e}`,style:ut,id:t,name:r||t,value:a,onChange:e=>i(e.target.value),children:l}))),xt=l((({className:e="",value:t,selected:r,children:l})=>n("option",{className:e,value:`${t}`,selected:r,children:l})));function gt(e){const{placeholder:t,rates:l,selected:a,value:i,setValue:o,setSelected:s}=e;return r("div",{className:"relative flex items-center",children:[n(ht,{className:"shrink-0 h-13 border pl-4 pt-4 pb-4 rounded-md text-l w-full appearance-none -mr-12",placeholder:t,type:"text",value:i,onChange:o}),l.length?n(pt,{className:"shrink-0 w-20 h-9 -translate-x-8 bg-transparent",value:a,onChange:e=>s(e),children:l.map(((e,t)=>n(xt,{value:e.code,children:e.code},String(t))))}):null]})}const bt=l((({context:e,className:t="",currencyRatesBuy:l,currencyRatesSell:a,button:i})=>{const{useRouter:o,handlerDecorator:s}=e,c=o(),[d,m]=e.useState({inputSell:"",inputBuy:"",selectSell:l?.[0]?.code||tt.RUB,selectBuy:a?.[0]?.code||tt.USD}),h=e=>{m((t=>({...t,...e})))};return r("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[gt({placeholder:"Хочу продать",rates:a,selected:d.selectSell,setSelected:ft(d,h,a),value:d.inputSell,setValue:e=>Nt(h,a)(e,d.selectSell,d.selectBuy)}),gt({placeholder:"Получу",rates:l,selected:d.selectBuy,setSelected:yt(d,h,l),value:d.inputBuy,setValue:e=>vt(h,l)(e,d.selectBuy,d.selectSell)}),i?.text?n(Y,{className:"py-4 mr-1",version:i?.version,...F({router:c,handlerDecorator:s},i),children:i.text}):null]})})),ft=(e,t,n)=>r=>{t({selectSell:r}),mt({value:r,oppositeValue:e.selectBuy,handleConvert:(r=e.selectSell,l=e.selectBuy)=>{Nt(t,n)(e.inputSell,r,l)}})},yt=(e,t,n)=>r=>{t({selectBuy:r}),mt({value:r,oppositeValue:e.selectSell,handleConvert:(r=e.selectBuy,l=e.selectSell)=>vt(t,n)(e.inputBuy,r,l)})},Nt=(e,t)=>(n,r,l)=>{e({inputSell:dt(n),selectBuy:l});const a=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===r))?.sell;a&&e({inputBuy:String(ct(n,a,r===tt.RUB)||"")})},vt=(e,t)=>(n,r,l)=>{e({inputBuy:dt(n),selectSell:l});const a=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===r))?.buy;a&&e({inputSell:String(ct(n,a,r===tt.RUB)||"")})},It={address:"Москва, ул.Ленина д.28",distance:"6км"},wt=l((({className:e="",context:t,title:l="Курсы обмена валют",button:a,...i})=>{const s=function(e){const{data:t}=e(Ye,Qe),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?Xe(n):n}(t.useAsyncData),c=s.filter((e=>e.buy));c.unshift({code:tt.RUB});const d=s.filter((e=>e.sell));return d.push({code:tt.RUB}),n($e,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...i,children:n(ae,{context:t,title:n(o,{headingType:"h4",title:l,className:"whitespace-pre-wrap text-h4"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-14 pt-4",children:[s?n(it,{className:"mb-[30px]",exchangeCurrencyItems:s}):null,n(st,{...It})]}),s.length&&c.length&&d.length?n(bt,{className:"grow",context:t,currencyRatesBuy:c,currencyRatesSell:d,button:a}):null]})})})})),kt={"bg-white":"text-primary-main",transparent:"text-white"},Ct={"bg-white":"text-black",transparent:"text-white"},St=l((({className:e="",href:t,children:l,targetBlank:a,bgColor:i="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(y,{image:{icon:"Logo"},className:`${kt[i]} w-10 h-[38px]`,asSVG:!0}),o?null:n("span",{className:`${Ct[i]} text-s font-medium ml-2.5`,children:l||"Россельхозбанк"})]}))),$t=l((({className:e="",title:t="Мобильное приложение",description:l,href:a="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:a?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(St,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:a,target:"_blank",className:"flex flex-col justify-center pl-3",children:[n("div",{className:"text-s font-medium mb-[3px]",children:t}),n("div",{className:"text-s text-secondary-text",children:l})]})]}):null}))),Dt=l((({className:e="",items:t,hasButton:l,context:a})=>{const i=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:e,children:[t?.length?t.map(Tt):null,l?n(Y,{version:"primary",className:"mb-6 w-full",...F({router:i,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Tt=(e,t)=>{const{type:l,text:a,description:i}=e;return r("div",{className:"mb-4",children:[n("div",{children:Rt(l,a)}),n("div",{className:"mt-1 text-s-light text-secondary-text",children:i})]},String(t))},Rt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Bt(t)}`,children:t});case"email":return n("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Bt=e=>e.replaceAll(/\D/g,""),Pt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:i})=>n("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:i,children:r||`Документ ${t}`}))),_t=l((({title:e,links:t,className:l="",context:a})=>{const i=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:l,children:[n("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(Pt,{index:t,className:"text-s",...F({router:i,handlerDecorator:o},e)},String(t))))}):null]})})),At=[{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"}],Mt=l((({href:e,version:t="primary"})=>{const{icon:r,label:l}=At.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-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:r?n(y,{image:r,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Lt=l((({className:e,media:t,version:r,context:l})=>{const a=l.useRouter(),{handlerDecorator:i}=l;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Mt,{version:r,...F({router:a,handlerDecorator:i},e)},String(t))))})})),Vt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:i})=>n("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:a,onClick:i,children:r||`Документ ${t}`}))),jt=l((({className:e,links:t,context:l})=>{const a=l.useRouter(),{handlerDecorator:i}=l;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(Vt,{index:t,className:"",...F({router:a,handlerDecorator:i},e)},String(t))))}):null]})}));function Gt(e){const{data:t}=e(Ot(),Wt);return t||{}}async function Wt(){const e=await fetch(Ot());return await e.json()}function Ot(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Ut=l((({className:e,context:t,isMobile:l=!1})=>{const{term:a,setTerm:i}=t.useSearch(),o=l?"text-s":"text-l-light",s=l?" placeholder-transparent":"h-full",c=l?"some search":void 0;return r("form",{className:`font-sans relative ${e}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:l?"w-[20px] h-[20px]":"w-[24px] h-[24px]",children:n(y,{image:"LoupeIcon",width:"24",height:"24"})}),a?null:n("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${o}`,children:"Поиск по сайту"})]}),n("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-divider focus:border-primary-text ${s}`,value:a,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:c}),l?n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),i("")},children:n(y,{image:"CloseIcon",width:"24",height:"24"})}):n(Y,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:n("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Et=l((({className:e="",context:t})=>n(Ut,{context:t,className:e,isMobile:!0}))),Ft=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Ht=l((({className:e="",documents:t,relatedEnterprises:l,contacts:a,socialMedia:i,context:o,horizontalNavigationTitle:s})=>{const c=Gt(o.useAsyncData),d=c?.dispositions;return r("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[n(Dt,{className:"overflow-hidden",items:a,context:o,hasButton:!0}),n(Le,{context:o,className:"!p-0 mb-4",accordionItems:Ft(c.topItems)}),n("div",{children:d?.map(zt)}),n($t,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Et,{context:o,className:"grow"}),n(Lt,{className:"pb-4",media:i,context:o}),n(_t,{title:s,links:l,context:o}),n(jt,{links:t,context:o})]})})),zt=(e,t)=>{const{icon:l,href:a,text:i}=e;return r(Y,{version:"link",href:a,className:"flex text-s mb-4 w-6",children:[l?n(y,{className:"pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Jt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(j(e),(e=>(e||"").replace(O,""))(j(V(e)?t.href:t.pathname))),qt=e=>t=>Jt(t.href,e),Kt=e=>t=>t.items?.some(qt(e))||Jt(t.href,e)||((e,t)=>G(e)===G(t.href))(t.href,e),Qt=e=>t=>e?.href===t?.href,Yt=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(Qt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Qt(e))))));var n,r,l},Zt="absolute left-0 -bottom-3 w-full h-[2px]",Xt=l((({className:e="",text:t,href:l,target:a,active:i,onClick:o,children:s,bgColor:c="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:l,target:a,onClick:o,children:[n("span",{className:en(c,i),children:t||s}),i?n("div",{className:tn(c,i)}):null]}))),en=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},tn=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Zt}`:Zt,nn=l((({context:e,burgerSubMenu:t,onClick:l,defaultLocation:a="",children:i})=>{const[o,s]=e.useGeolocation(a);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:l,children:n(y,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:s,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(y,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),i,n("div",{className:"mb-7",children:t?.map(rn)}),n(Et,{context:e,className:"grow"})]})})),rn=(e,t)=>{const{icon:l,href:a,text:i}=e;return r("a",{href:a,className:"flex text-s mb-4 hover:text-primary-main",children:[l?n(y,{className:"text-primary-main pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"font-medium pl-0.5",children:i})]},`headerSubMenu-${t}`)},ln=l((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(y,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),n(St,{className:"mr-8",bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),an=l((({className:e="",defaultLocation:t,bgColor:l="bg-white",context:a,topItems:i})=>{const o=a.useRouter(),s=Gt(a.useAsyncData),c=s?.dispositions,{handlerDecorator:d}=a,m=Yt(s.topItems,i).find(Kt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(qt(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(o)(m),[u,p]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${l} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(ln,{onClick:x,bgColor:l}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>on({...F({router:o,handlerDecorator:d},e),active:e===h,bgColor:l},t)))})})]}),u?n(nn,{context:a,onClick:x,burgerSubMenu:c,defaultLocation:t,children:n(Le,{context:a,accordionItems:Ft(s.topItems),className:"!p-0 mb-4"})}):null]})})),on=(e,t)=>n(Xt,{className:"mr-8 whitespace-nowrap text-s",...e},String(t)),sn=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function cn(e=""){const t=sn(e);return t<=4?"S":t<=8?"M":"L"}function dn(e=""){const t=sn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function mn(e=""){const t=sn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const hn=l((({className:e,context:t,title:l,description:a="Блок в разработке...",...i})=>r($e,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${mn(e)} ${dn(e)} `,...i,children:[n(w,{context:t,className:"!p-0 max-w-[600px]",title:l,description:a,headlineVersion:cn(e)}),n("figure",{className:"m-0 min-w-[80%]",children:un()})]}))),un=(e=3)=>xn(100,e).map((e=>Math.floor(e))).map(pn),pn=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),xn=(e,t)=>[e].concat(t>0?xn(e/1.618,t-1):[]),gn={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},bn=l((({block:e,context:t,className:r=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${gn[e?.version??"primary"]} ${r}`,role:"listitem",children:n("div",{className:"flex grow",children:n(ce,{context:t,...e})})}))),fn=l((({className:e,context:t,slides:r=[]})=>{const l=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(T,{context:t,children:l.map(((e,r)=>n(bn,{block:e,context:t},String(r))))})})})),yn={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"}},Nn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},vn={normal:"min-h-[70px]",small:"min-h-[50px]"},In=l((({className:e,title:t,description:l,showLines:a=!0,steps:i,size:s="normal",version:c="primary"})=>{const d=yn[c];return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${d.background} ${d.title} ${e||""}`,children:[t?n(o,{headingType:"h3",className:`text-center ${d.title}`,title:t}):null,l?n("p",{className:`text-m-light text-center ${d.description} ${t?"mt-2":""}`,children:l}):null,i?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(wn(s,c,a))})}):null]})})),wn=(e,t,l)=>(a,i,o)=>{const s=o.length-1===i,c="normal"===e?"ml-[34px]":"ml-6",d=yn[t];return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[kn(e,t)(a,i),s?null:n("div",{className:`min-h-8 h-full w-[2px] ${l?d.iconConnector:""} ${c}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${vn[e]}`,children:[a.label?n("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:a.label}):null,a.description?n("div",{className:`text-s ${d.description} text-left`,children:a.description}):null]})]})},String(i))},kn=(e,t)=>(r,l)=>{const a=yn[t],i="normal"===e?"38":"27",o="normal"===e?"text-m-title":"text-m-title-xs";return n("div",{className:`${Nn[e]} ${a.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${a.title} ${o}`,children:(s=r?.icon,Boolean(s?.icon||s?.src)?n(y,{image:r.icon,width:i,height:i,asSVG:!0}):n("span",{children:l+1}))})});var s},Cn=l((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(y,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Sn=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],$n=l((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(Cn,{...e}),t?.length?t.map(Dn):null]}))),Dn=({label:e,description:t,list:l,image:a,buttons:i},o)=>r("div",{children:[o>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-s m-0",children:e}):null,t?n("div",{className:"text-s text-secondary-text mt-[3px]",children:t}):null,l?.items?.length?Tn(l):null,a?n(y,{image:{...a,className:"m-0"}}):null,i?.length?Rn(i):null]},String(o)),Tn=e=>n(le,{className:"flex flex-col justify-between items-start text-s",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Rn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},l)=>n(Y,{className:`mt-3 ${l>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:Sn(e),rounded:t,appendLeft:e?n(y,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(l))))}),Bn=l((({tiles:e,context:t})=>n(T,{context:t,children:e.map(((e,t)=>n($n,{...e},String(t))))}))),Pn=l((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n($n,{...e},String(t))))}))),_n=l((({className:e,context:t,title:l,description:a,columns:i,rowHeaders:s,orientation:c="vertical"})=>{const d=Mn(i),m=Ln(s,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[l?n(o,{headingType:"h2",className:`text-center ${a?"mb-2":"mb-5"}`,title:l}):null,a?n("div",{className:"mb-5 text-center text-m",children:a}):null,m?.length?An(c,m,t):null]})}));function An(e,t,r){return"vertical"===e?n(Pn,{tiles:t}):n(Bn,{context:r,tiles:t})}const Mn=e=>e?.[0].data?e[0].data:[],Ln=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Vn={Accordion:Le,ComparisonTable:He,ExchangeRateTile:wt,Footer:Ht,Gallery:Ne,Header:an,Headline:w,LinkDocs:L,LinkList:De,MobileAppTile:$t,ProductBlock:pe,ProductGallery:fn,StepsBlock:In,TariffsTable:_n,TextBlock:ge,Placeholder:hn},jn=l((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Gn()}))),Gn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Wn=l((({className:e,context:t,...l})=>{const a=t.useLikeService();return r($e,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...l,children:[n(jn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(jn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),On=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Un=l((({className:e="",context:t,blocksRegistry:l,data:a={},blockDecorator:i=On})=>{const{style:o,blocks:s,slots:c={},likeControl:d,colorPalette:m="pc"}=a,{header:h}=c;return r("section",{className:`relative ${N(o)} ${e}`,"data-theme":m,children:[h?.blocks?.length?n("div",{className:`${N(h?.style)}`,children:h.blocks.map(((e,n)=>En({block:e,page:a,blockDecorator:i,blocksRegistry:l,context:t},n)))}):null,s?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:s.map(((e,n)=>En({block:e,blockDecorator:i,blocksRegistry:l,context:t,page:a},n)))}):null,d?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Wn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function En({block:e,blockDecorator:t,blocksRegistry:r,context:l,page:a},i){const{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const s=r[o||"Placeholder"]||hn;return t({blockClassName:`scroll-mt-12 ${N(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c,labels:d}=e.block;return n(s,{className:e.blockClassName,version:t,context:l,page:a,anchor:c,labels:d,...r},`${o}-${i}`)}},`block-${i}`)}e.Blocks=Vn,e.ContentPage=Un,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(a)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(a,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:r})}),{likes:a}=await n.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:l,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:l,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=d,e.setup=t,e.url=W,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -5,6 +5,6 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const AccordionItem_1 = require("./AccordionItem");
|
|
7
7
|
exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', bordered }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-light text-center", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { ...item, context: context, bordered: bordered }, `AccordionItem_${i}`))) })) : null] }));
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,mDAAgD;AAInC,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5E,OAAO,CACL,qCAAS,SAAS,EAAE,kDAAkD,SAAS,EAAE,aAC9E,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,mDAAgD;AAInC,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5E,OAAO,CACL,qCAAS,SAAS,EAAE,kDAAkD,SAAS,EAAE,aAC9E,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,+BAA+B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACvF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,+BAAI,SAAS,EAAC,mBAAmB,YAC9B,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,6BAAa,OAER,IAAI,EACR,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IAHb,iBAAiB,CAAC,EAAE,CAIzB,CACH,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -12,7 +12,7 @@ exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label, labelIcon, blocks, bordered
|
|
|
12
12
|
});
|
|
13
13
|
return ((0, jsx_runtime_1.jsxs)("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: [(0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
14
14
|
${bordered ? '' : 'py-[14px] px-0'}
|
|
15
|
-
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [(0, jsx_runtime_1.jsxs)("span", { className: `text-m-title-xs pr-2.5
|
|
15
|
+
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [(0, jsx_runtime_1.jsxs)("span", { className: `text-m-title-xs font-medium pr-2.5 flex ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: [labelIcon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: labelIcon, width: "24", height: "24", asSVG: true, className: "mr-3" })) : null, label] }), hasContent ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6", image: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? (0, jsx_runtime_1.jsx)(AccordionItemInner_1.AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
16
16
|
});
|
|
17
17
|
function borderedLiClass(bordered) {
|
|
18
18
|
return bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAE3C,6DAA0D;AAC1D,yDAAsD;AAIzC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAClD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAA,mCAAgB,EAAC;QAC1D,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,gCAAI,SAAS,EAAE,GAAG,eAAe,CAAC,QAAQ,CAAC,mCAAmC,aAC5E,oCACE,SAAS,EAAE;YACT,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;YAChC,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC5C,OAAO,EAAE,YAAY,aAErB,kCACE,SAAS,EAAE,2CACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,aAED,SAAS,CAAC,CAAC,CAAC,CACX,uBAAC,SAAG,IAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,QAAC,SAAS,EAAC,MAAM,GAAG,CACxE,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,IACD,EACN,UAAU,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IAC/
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAE3C,6DAA0D;AAC1D,yDAAsD;AAIzC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAClD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAA,mCAAgB,EAAC;QAC1D,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,gCAAI,SAAS,EAAE,GAAG,eAAe,CAAC,QAAQ,CAAC,mCAAmC,aAC5E,oCACE,SAAS,EAAE;YACT,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;YAChC,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC5C,OAAO,EAAE,YAAY,aAErB,kCACE,SAAS,EAAE,2CACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,aAED,SAAS,CAAC,CAAC,CAAC,CACX,uBAAC,SAAG,IAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,QAAC,SAAS,EAAC,MAAM,GAAG,CACxE,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,IACD,EACN,UAAU,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,KAAK,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IAC/E,EACR,UAAU,CAAC,CAAC,CAAC,uBAAC,uCAAkB,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,IAC1E,CACN,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,QAAkB;IACzC,OAAO,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCAAmC,CAAC;AACpF,CAAC"}
|
|
@@ -5,15 +5,15 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
-
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '',
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className}`, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType:
|
|
8
|
+
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '', title, benefitList, ...rest }) => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className}`, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefitList?.length ? renderBenefits(benefitList) : null] }));
|
|
10
10
|
});
|
|
11
11
|
const renderBenefits = (benefits) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-8", children: benefits.map(renderStep) }));
|
|
13
13
|
};
|
|
14
14
|
const renderStep = (benefit, i) => {
|
|
15
15
|
const description = benefit?.description || undefined;
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-[50px] h-[50px] min-w-[50px] p-3 rounded-full bg-main-divider", image: benefit.icon, asSVG: true })) : null, benefit?.icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: benefit.icon }) : null, (0, jsx_runtime_1.jsxs)("div", { className: "ml-5", children: [benefit?.label ? (0, jsx_runtime_1.jsx)("h3", { className: "text-h6 m-0", children: benefit.label }) : null, renderDescription(description)] })] }, String(i)));
|
|
17
17
|
};
|
|
18
18
|
const renderDescription = (description) => {
|
|
19
19
|
const benefitType = description ? description?.benefitType : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AAEzD,0DAAuD;AACvD,8CAA2C;AAM9B,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AAEzD,0DAAuD;AACvD,8CAA2C;AAM9B,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAClD,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,wEAAwE,SAAS,EAAE,KAC1F,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,2BAA2B,EAAC,KAAK,EAAE,KAAK,GAAI,CACzF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,IAC5C,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,QAA4B,EAAE,EAAE;IACtD,OAAO,CACL,gCAAK,SAAS,EAAC,oDAAoD,YAChE,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,GACrB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAyB,EAAE,CAAS,EAAE,EAAE;IAC1D,MAAM,WAAW,GAAG,OAAO,EAAE,WAAW,IAAI,SAAS,CAAC;IAEtD,OAAO,CACL,iCAAqB,SAAS,EAAC,iDAAiD,aAC7E,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACrB,uBAAC,SAAG,IACF,SAAS,EAAC,iEAAiE,EAC3E,KAAK,EAAE,OAAO,CAAC,IAAI,EACnB,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,OAAO,CAAC,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACzD,iCAAK,SAAS,EAAC,MAAM,aAClB,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,+BAAI,SAAS,EAAC,aAAa,YAAE,OAAO,CAAC,KAAK,GAAM,CAAC,CAAC,CAAC,IAAI,EACxE,iBAAiB,CAAC,WAAW,CAAC,IAC3B,KAZE,MAAM,CAAC,CAAC,CAAC,CAab,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,WAA6B,EAAE,EAAE;IAC1D,MAAM,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;IAClE,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,WAAW,CAAC,CAAC,CAAC,CACnB,gCAAK,SAAS,EAAC,uCAAuC,YACnD,WAAW,KAAK,MAAM;YACrB,CAAC,CAAC,iBAAiB,CAAC,WAA6B,CAAC;YAClD,CAAC,CAAC,iBAAiB,CAAC,WAA6B,CAAC,GAChD,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,WAA4B,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAEpG,MAAM,iBAAiB,GAAG,CAAC,WAA4B,EAAE,EAAE;IACzD,MAAM,aAAa,GAAG,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAEnE,OAAO,WAAW,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC1D,+BAAI,SAAS,EAAE,aAAa,YACzB,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,yCAAkC,CAAC,IAA1B,mBAAmB,CAAC,EAAE,CAAU,CAC1C,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TitleProp } from '../../model/HeadlineType';
|
|
3
3
|
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
4
4
|
/**
|
|
5
5
|
* @title Пункты описания
|
|
@@ -33,7 +33,7 @@ export declare type DescriptionType = EmptyOption | TextBenefitDef | ListBenefit
|
|
|
33
33
|
/**
|
|
34
34
|
* @title Преимущество
|
|
35
35
|
*/
|
|
36
|
-
export interface
|
|
36
|
+
export interface BenefitItemProps {
|
|
37
37
|
/** @title Название */
|
|
38
38
|
label?: string;
|
|
39
39
|
/** @title Описание */
|
|
@@ -43,10 +43,10 @@ export interface BenefitItem {
|
|
|
43
43
|
/**
|
|
44
44
|
* @title Блок преимущества
|
|
45
45
|
*/
|
|
46
|
-
export declare type BenefitsBlockContent =
|
|
46
|
+
export declare type BenefitsBlockContent = TitleProp & {
|
|
47
47
|
/**
|
|
48
48
|
* @title Список преимуществ
|
|
49
49
|
* @maxItems 6
|
|
50
50
|
*/
|
|
51
|
-
benefitList?:
|
|
51
|
+
benefitList?: BenefitItemProps[];
|
|
52
52
|
};
|
|
@@ -3,10 +3,10 @@ exports.Bonus = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const
|
|
6
|
+
const Headline_1 = require("../Headline/Headline");
|
|
7
7
|
exports.Bonus = (0, uni_jsx_1.JSX)((props) => {
|
|
8
|
-
const { className = '', title, description, bonusItems, ...rest } = props;
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [
|
|
8
|
+
const { context, className = '', title, description, bonusItems, ...rest } = props;
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, context: context, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems
|
|
10
10
|
? bonusItems.map((_, i) => {
|
|
11
11
|
return ((0, jsx_runtime_1.jsx)("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-h4", children: _.title }), (0, jsx_runtime_1.jsx)("div", { className: "text-xl-light mt-[14px] max-w-[488px]", children: _.description })] }), _.bonusCount ? ((0, jsx_runtime_1.jsxs)("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [(0, jsx_runtime_1.jsx)("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount }), (0, jsx_runtime_1.jsx)("span", { className: "text-[44px] bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })] })) : null] }) }, String(i)));
|
|
12
12
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;
|
|
1
|
+
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AAGzD,mDAAgD;AAInC,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,oCAAoC,SAAS,EAAE,EAC1D,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,iCAAK,SAAS,EAAC,WAAW,aACxB,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,GACd,EACF,gCAAK,SAAS,EAAC,4BAA4B,YACxC,UAAU;wBACT,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,gCAEE,SAAS,EAAC,8GAA8G,YAExH,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,iCAAK,SAAS,EAAC,MAAM,aACnB,gCAAK,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,KAAK,GAAO,EACxC,gCAAK,SAAS,EAAC,uCAAuC,YAAE,CAAC,CAAC,WAAW,GAAO,IACxE,EACL,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACd,iCAAK,SAAS,EAAC,yDAAyD,aACtE,iCAAM,SAAS,EAAC,qGAAqG,YAClH,CAAC,CAAC,UAAU,GACR,EACP,iCAAM,SAAS,EAAC,8DAA8D,YAC3E,CAAC,CAAC,SAAS,GACP,IACH,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IAlBD,MAAM,CAAC,CAAC,CAAC,CAmBV,CACP,CAAC;wBACJ,CAAC,CAAC;wBACJ,CAAC,CAAC,IAAI,GACJ,IACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -3,11 +3,11 @@ exports.BonusBenefitsBlock = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
7
|
const getElementsColsValue_1 = require("./getElementsColsValue");
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const Headline_1 = require("../Headline/Headline");
|
|
9
|
+
exports.BonusBenefitsBlock = (0, uni_jsx_1.JSX)(({ context, className = '', title, subtitle, bonusBenefits, ...rest }) => {
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans text-primary-text bg-white p-50 flex flex-col text-center ${className}`, context: context, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { context: context, className: "!p-0", title: title, description: subtitle, headlineVersion: "M", align: "center" }), bonusBenefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `grid gap-1 mt-8 ${(0, getElementsColsValue_1.getElementsColsValue)(className)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] }));
|
|
11
11
|
});
|
|
12
12
|
const renderBonusBenefit = (bonusBenefit, i) => {
|
|
13
13
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "h-[180px] w-[160px] min-w-[160px] min-h-[160px]", image: bonusBenefit.icon, width: "160", height: "180" })) : null, (0, jsx_runtime_1.jsx)("div", { children: bonusBenefit?.label ? (0, jsx_runtime_1.jsx)("span", { className: "text-h6 m-0", children: bonusBenefit.label }) : null })] }, String(i)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AAEzD,
|
|
1
|
+
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4DAAyD;AAEzD,8CAA2C;AAE3C,iEAA8D;AAC9D,mDAAgD;AAInC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACvE,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,uEAAuE,SAAS,EAAE,EAC7F,OAAO,EAAE,OAAO,KACZ,IAAI,aAER,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,QAAQ,EACrB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,GACd,EACD,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,gCAAK,SAAS,EAAE,mBAAmB,IAAA,2CAAoB,EAAC,SAAS,CAAC,EAAE,YACjE,aAAa,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAClC,CACP,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,YAA0B,EAAE,CAAS,EAAE,EAAE;IACnE,OAAO,CACL,iCAAqB,SAAS,EAAC,0CAA0C,aACtE,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CACpB,uBAAC,SAAG,IACF,SAAS,EAAC,iDAAiD,EAC3D,KAAK,EAAE,YAAY,CAAC,IAAI,EACxB,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACR,0CACG,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,aAAa,YAAE,YAAY,CAAC,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,GACnF,KAXE,MAAM,CAAC,CAAC,CAAC,CAYb,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -33,10 +33,10 @@ function renderNavButton({ tab, i, activeSlideIndex, onClick }) {
|
|
|
33
33
|
? 'h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white'
|
|
34
34
|
: `h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text`;
|
|
35
35
|
const btnTitleClassName = isActiveBtn ? 'text-xl mb-1.5' : `text-l mb-[3px]`;
|
|
36
|
-
const btnDescClassName = isActiveBtn ? 'text-l text-white' : `text-m-
|
|
36
|
+
const btnDescClassName = isActiveBtn ? 'text-l font-light text-white' : `text-m font-light`;
|
|
37
37
|
const iconClassName = isActiveBtn ? '' : `text-primary-main`;
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: `box-border font-sans relative border border-main-stroke cursor-pointer text-left border-b-0 flex
|
|
39
|
-
${btnClassName}`, children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { className: `h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${iconClassName}`, image: { ...tab?.icon, iconVersion: isActiveBtn ? 'white' : 'normal' }, width: "24", height: "24", asSVG: true }), (0, jsx_runtime_1.jsxs)("div", { className: "border-0", children: [(0, jsx_runtime_1.jsx)("div", { className:
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: `box-border font-sans relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]
|
|
39
|
+
${btnClassName}`, children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { className: `h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${iconClassName}`, image: { ...tab?.icon, iconVersion: isActiveBtn ? 'white' : 'normal' }, width: "24", height: "24", asSVG: true }), (0, jsx_runtime_1.jsxs)("div", { className: "border-0", children: [(0, jsx_runtime_1.jsx)("div", { className: `${btnTitleClassName}`, children: tab?.title }), (0, jsx_runtime_1.jsx)("div", { className: `text-secondary-text ${btnDescClassName}`, children: tab.description })] })] }, String(i)));
|
|
40
40
|
}
|
|
41
41
|
function renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex }) {
|
|
42
42
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { style: { transform: `translateX(-${tabsShift * 388}px)` }, className: "flex flex-col justify-end items-center h-[126px] pt-[38px] box-border duration-1000", children: (0, jsx_runtime_1.jsx)("div", { className: "w-full flex flex-nowrap items-end gap-2", children: tabsNav.map((tab, i) => renderNavButton({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calculator.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mEAAgE;AAChE,8CAA2C;AAE3C,mEAAgE;AAkBnD,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,IAAK,EAAoB,CAAC,CAAC;IAC1E,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,CACzC,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,eAAe,IAAK,EAAyB,CACvE,CAAC;IACF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtD,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAC1D,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAE1D,MAAM,wBAAwB,GAAG,cAAc,EAAE,MAAM,GAAG,CAAC,CAAC;IAC5D,MAAM,cAAc,GAAG,wBAAwB,IAAI,cAAc,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,CAAC;IAC1F,MAAM,cAAc,GAAG,SAAS,GAAG,CAAC,CAAC;IAErC,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,kFAAkF,SAAS,EAAE,KACpG,IAAI,aAER,4CACG,OAAO,CAAC,MAAM,GAAG,CAAC;wBACjB,CAAC,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;wBAC3E,CAAC,CAAC,IAAI,EACP,IAAA,2BAAY,EAAC;wBACZ,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;wBAC3C,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;wBACzC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;wBAC/B,SAAS,EAAE,OAAO;qBACnB,CAAC,IACE,EACN,gCACE,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,gBAAgB,MAAM,EAAE,EAC3D,IAAI,EAAC,MAAM,YAEV,gBAAgB,EAAE,MAAM;oBACvB,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAA,6CAAqB,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;oBACrE,CAAC,CAAC,IAAI,GACJ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAkB;IAC5E,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAE3C,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC,6EAA6E;QAC/E,CAAC,CAAC,4FAA4F,CAAC;IACjG,MAAM,iBAAiB,GAAG,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAC7E,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"Calculator.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mEAAgE;AAChE,8CAA2C;AAE3C,mEAAgE;AAkBnD,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,IAAK,EAAoB,CAAC,CAAC;IAC1E,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,CACzC,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,eAAe,IAAK,EAAyB,CACvE,CAAC;IACF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtD,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAC1D,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAE1D,MAAM,wBAAwB,GAAG,cAAc,EAAE,MAAM,GAAG,CAAC,CAAC;IAC5D,MAAM,cAAc,GAAG,wBAAwB,IAAI,cAAc,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,CAAC;IAC1F,MAAM,cAAc,GAAG,SAAS,GAAG,CAAC,CAAC;IAErC,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,kFAAkF,SAAS,EAAE,KACpG,IAAI,aAER,4CACG,OAAO,CAAC,MAAM,GAAG,CAAC;wBACjB,CAAC,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;wBAC3E,CAAC,CAAC,IAAI,EACP,IAAA,2BAAY,EAAC;wBACZ,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;wBAC3C,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;wBACzC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;wBAC/B,SAAS,EAAE,OAAO;qBACnB,CAAC,IACE,EACN,gCACE,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,gBAAgB,MAAM,EAAE,EAC3D,IAAI,EAAC,MAAM,YAEV,gBAAgB,EAAE,MAAM;oBACvB,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAA,6CAAqB,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;oBACrE,CAAC,CAAC,IAAI,GACJ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAkB;IAC5E,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAE3C,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC,6EAA6E;QAC/E,CAAC,CAAC,4FAA4F,CAAC;IACjG,MAAM,iBAAiB,GAAG,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAC7E,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAC5F,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAE7D,OAAO,CACL,oCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,GAAG,EAAE,KAAK,EACtB,SAAS,EAAE;QACT,YAAY,EAAE,aAEhB,uBAAC,SAAG,IACF,SAAS,EAAE,oDAAoD,aAAa,EAAE,EAC9E,KAAK,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,EACtE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,EACF,iCAAK,SAAS,EAAC,UAAU,aACvB,gCAAK,SAAS,EAAE,GAAG,iBAAiB,EAAE,YAAG,GAAG,EAAE,KAAK,GAAO,EAC1D,gCAAK,SAAS,EAAE,uBAAuB,gBAAgB,EAAE,YAAG,GAAG,CAAC,WAAW,GAAO,IAC9E,KAhBD,MAAM,CAAC,CAAC,CAAC,CAiBP,CACV,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAa;IAC1F,OAAO,CACL,4CACE,gCACE,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,SAAS,GAAG,GAAG,KAAK,EAAE,EACzD,SAAS,EAAC,qFAAqF,YAE/F,gCAAK,SAAS,EAAC,yCAAyC,YACrD,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CACtB,eAAe,CAAC;wBACd,GAAG;wBACH,CAAC;wBACD,gBAAgB;wBAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;qBACtC,CAAC,CACH,GACG,GACF,EACN,gCAAK,SAAS,EAAC,4BAA4B,GAAG,IAC1C,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -4,15 +4,14 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
|
|
7
|
-
const Description_1 = require("../../ui-kit/Description/Description");
|
|
8
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
9
7
|
const CatalogCard_1 = require("./CatalogCard");
|
|
8
|
+
const Headline_1 = require("../Headline/Headline");
|
|
10
9
|
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
11
10
|
const CARD_FULL_VIEW_COUNT = 3;
|
|
12
11
|
const CARD_SHIFT = 430;
|
|
13
12
|
exports.Catalog = (0, uni_jsx_1.JSX)(({ context, cards = [], className = '', title, description, ...rest }) => {
|
|
14
13
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `bg-white relative font-sans p-12 overflow-hidden text-center ${className}`, ...rest, children: [
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `bg-white relative font-sans p-12 overflow-hidden text-center ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), (0, jsx_runtime_1.jsx)("div", { className: "flex duration-1000 gap-3.5 mt-8", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: cards?.length ? cards.map(renderCatalogCard(context)) : null }), renderNavButtons({
|
|
16
15
|
cardsCount: cards.length,
|
|
17
16
|
activeCardIndex,
|
|
18
17
|
setActiveCardIndex,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Catalog.js","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mEAAgE;
|
|
1
|
+
{"version":3,"file":"Catalog.js","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mEAAgE;AAEhE,+CAA4C;AAE5C,mDAAgD;AAIhD,MAAM,kBAAkB,GAAG,kCAAkC,CAAC;AAC9D,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAC/B,MAAM,UAAU,GAAG,GAAG,CAAC;AAEV,QAAA,OAAO,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,OAAO,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACvE,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,gEAAgE,SAAS,EAAE,KAClF,IAAI,aAER,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,GACd,EACF,gCACE,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,eAAe,GAAG,UAAU,KAAK,EAAE,EACtE,IAAI,EAAC,MAAM,YAEV,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GACzD,EACL,gBAAgB,CAAC;gBAChB,UAAU,EAAE,KAAK,CAAC,MAAM;gBACxB,eAAe;gBACf,kBAAkB;aACnB,CAAC,EACF,gCAAK,SAAS,EAAE,GAAG,kBAAkB,WAAW,uBAAuB,EAAE,GAAI,EAC7E,gCAAK,SAAS,EAAE,GAAG,kBAAkB,YAAY,qBAAqB,EAAE,GAAI,IAC/D,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,CAAC,IAAqB,EAAE,CAAS,EAAE,EAAE;IAC9F,OAAO,uBAAC,yBAAW,IAAiB,OAAO,EAAE,OAAO,KAAM,IAAI,IAArC,MAAM,CAAC,CAAC,CAAC,CAAgC,CAAC;AACrE,CAAC,CAAC;AAQF,MAAM,gBAAgB,GAAG,CAAC,EACxB,UAAU,EACV,eAAe,EACf,kBAAkB,GACI,EAAE,EAAE;IAC1B,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IACtE,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAEtE,MAAM,WAAW,GAAG,UAAU,GAAG,oBAAoB,CAAC;IACtD,MAAM,cAAc,GAAG,WAAW,IAAI,UAAU,GAAG,eAAe,GAAG,oBAAoB,CAAC;IAC1F,MAAM,cAAc,GAAG,WAAW,IAAI,eAAe,GAAG,CAAC,CAAC;IAE1D,OAAO,IAAA,2BAAY,EAAC;QAClB,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;QAC3C,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;QACzC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;QAC/B,SAAS,EAAE,mBAAmB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC"}
|