@redneckz/wildless-cms-uni-blocks 0.2.115 → 0.2.116
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 +70 -63
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +2 -2
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +2 -2
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +4 -5
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.mobile.js +4 -4
- package/dist/components/BaseTile/BaseTile.mobile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileInner.js +1 -1
- package/dist/components/BaseTile/BaseTileInner.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +4 -6
- package/dist/components/BaseTile/getHeadingType.d.ts +1 -0
- package/dist/components/BaseTile/{getTitleSizeByClassName.js → getHeadingType.js} +7 -7
- package/dist/components/BaseTile/getHeadingType.js.map +1 -0
- package/dist/components/BaseTile/renderButton.js +1 -1
- package/dist/components/BaseTile/renderButton.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.mobile.d.ts +1 -0
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +2 -2
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +2 -2
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +2 -2
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.js +2 -2
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +2 -2
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +6 -2
- package/dist/components/LinkDocs/LinkDocs.js +6 -25
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.d.ts +5 -0
- package/dist/components/LinkDocs/LinkDocs.mobile.js +11 -0
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +27 -7
- package/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +12 -0
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/dist/components/LinkDocs/LinkDocsList.js +9 -0
- package/dist/components/LinkDocs/LinkDocsList.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/dist/components/LinkDocs/LinkDocsListItem.js +7 -0
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.d.ts +2 -0
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +7 -0
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +22 -0
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +11 -0
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -0
- package/dist/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/dist/components/LinkDocs/linkDocsContentExample.js +28 -0
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +10 -2
- package/dist/components/PictureText/PictureText.js +2 -2
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -8
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +1 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js +3 -2
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +2 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +2 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +2 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- 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/TariffsTable/TariffsTable.js +2 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +1 -1
- package/dist/icons/IconName.d.ts +81 -0
- package/dist/icons/IconName.js +77 -0
- package/dist/icons/IconName.js.map +1 -0
- package/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/dist/services/sitemap/checkIsHrefSameOrigin.js +6 -0
- package/dist/services/sitemap/checkIsHrefSameOrigin.js.map +1 -0
- package/dist/services/sitemap/isTopItemActive.js +4 -1
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/setup-fixture.d.ts +3 -0
- package/dist/setup-fixture.js +72 -0
- package/dist/setup-fixture.js.map +1 -0
- package/dist/ui-kit/BlockItem/BlockItem.js +2 -2
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.d.ts +2 -0
- package/dist/ui-kit/Heading/Heading.js +18 -0
- package/dist/ui-kit/Heading/Heading.js.map +1 -0
- package/dist/ui-kit/Heading/Heading.mobile.d.ts +2 -0
- package/dist/ui-kit/Heading/Heading.mobile.js +18 -0
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -0
- package/dist/ui-kit/Heading/HeadingProps.d.ts +13 -0
- package/dist/ui-kit/{Title/TitleProps.js → Heading/HeadingProps.js} +1 -1
- package/dist/ui-kit/Heading/HeadingProps.js.map +1 -0
- package/dist/ui-kit/Icon/IconProps.d.ts +2 -150
- package/dist/ui-kit/Icon/IconProps.js +0 -76
- package/dist/ui-kit/Icon/IconProps.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.js +1 -1
- package/dist/ui-kit/Logo/Logo.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/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +32 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +28 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +8 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +11 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +17 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.js +2 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/dist/ui-kit/SwipeListControl/constants.js +12 -0
- package/dist/ui-kit/SwipeListControl/constants.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +13 -0
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +18 -0
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +27 -0
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +2 -2
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +2 -2
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +4 -5
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.mobile.js +4 -4
- package/lib/components/BaseTile/BaseTile.mobile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileInner.js +1 -1
- package/lib/components/BaseTile/BaseTileInner.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +4 -6
- package/lib/components/BaseTile/getHeadingType.d.ts +1 -0
- package/lib/components/BaseTile/{getTitleSizeByClassName.js → getHeadingType.js} +5 -5
- package/lib/components/BaseTile/getHeadingType.js.map +1 -0
- package/lib/components/BaseTile/renderButton.js +1 -1
- package/lib/components/BaseTile/renderButton.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.mobile.d.ts +1 -0
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +2 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +2 -2
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +2 -2
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.js +2 -2
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +0 -4
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +2 -2
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +6 -2
- package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +2 -7
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +6 -0
- package/lib/components/LinkDocs/LinkDocs.js +6 -25
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.d.ts +5 -0
- package/lib/components/LinkDocs/LinkDocs.mobile.js +9 -0
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +27 -7
- package/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +10 -0
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/lib/components/LinkDocs/LinkDocsList.js +7 -0
- package/lib/components/LinkDocs/LinkDocsList.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/lib/components/LinkDocs/LinkDocsListItem.js +5 -0
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.d.ts +2 -0
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +5 -0
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +20 -0
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +9 -0
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -0
- package/lib/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/lib/components/LinkDocs/linkDocsContentExample.js +26 -0
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +10 -2
- package/lib/components/PictureText/PictureText.js +2 -2
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -8
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +1 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js +3 -2
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +2 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +2 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +2 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- 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/TariffsTable/TariffsTable.js +2 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +1 -1
- package/lib/icons/IconName.d.ts +81 -0
- package/lib/icons/IconName.js +75 -0
- package/lib/icons/IconName.js.map +1 -0
- package/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/lib/services/sitemap/checkIsHrefSameOrigin.js +3 -0
- package/lib/services/sitemap/checkIsHrefSameOrigin.js.map +1 -0
- package/lib/services/sitemap/isTopItemActive.js +4 -1
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/setup-fixture.js +70 -0
- package/lib/setup-fixture.js.map +1 -0
- package/lib/ui-kit/BlockItem/BlockItem.js +2 -2
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.d.ts +2 -0
- package/lib/ui-kit/Heading/Heading.fixture.d.ts +4 -0
- package/lib/ui-kit/Heading/Heading.fixture.mobile.d.ts +4 -0
- package/lib/ui-kit/Heading/Heading.js +16 -0
- package/lib/ui-kit/Heading/Heading.js.map +1 -0
- package/lib/ui-kit/Heading/Heading.mobile.d.ts +2 -0
- package/lib/ui-kit/Heading/Heading.mobile.js +16 -0
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -0
- package/lib/ui-kit/Heading/HeadingProps.d.ts +13 -0
- package/lib/ui-kit/Heading/HeadingProps.js +2 -0
- package/lib/ui-kit/Heading/HeadingProps.js.map +1 -0
- package/lib/ui-kit/Icon/IconProps.d.ts +2 -150
- package/lib/ui-kit/Icon/IconProps.js +1 -75
- package/lib/ui-kit/Icon/IconProps.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.js +1 -1
- package/lib/ui-kit/Logo/Logo.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/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +4 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +30 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +26 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +6 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +9 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +17 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.js +2 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/lib/ui-kit/SwipeListControl/constants.js +10 -0
- package/lib/ui-kit/SwipeListControl/constants.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +10 -0
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +7 -0
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +15 -0
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +24 -0
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +182 -63
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +2 -2
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +4 -4
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +4 -6
- package/mobile/dist/components/BaseTile/getHeadingType.d.ts +1 -0
- package/mobile/dist/components/BaseTile/{getTitleSizeByClassName.js → getHeadingType.js} +7 -7
- package/mobile/dist/components/BaseTile/getHeadingType.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.d.ts +1 -0
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -2
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +2 -2
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +2 -2
- package/mobile/dist/components/Gallery/Gallery.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/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +6 -2
- package/mobile/dist/components/LinkDocs/LinkDocs.js +5 -36
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +27 -7
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +12 -0
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/mobile/dist/components/LinkDocs/LinkDocsList.js +9 -0
- package/mobile/dist/components/LinkDocs/LinkDocsList.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +7 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +22 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +11 -0
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +28 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +10 -2
- package/mobile/dist/components/PictureText/PictureText.js +2 -2
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -8
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +3 -2
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +2 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +1 -1
- package/mobile/dist/icons/IconName.d.ts +81 -0
- package/mobile/dist/icons/IconName.js +77 -0
- package/mobile/dist/icons/IconName.js.map +1 -0
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js +6 -0
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js.map +1 -0
- package/mobile/dist/services/sitemap/isTopItemActive.js +4 -1
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/setup-fixture.d.ts +3 -0
- package/mobile/dist/setup-fixture.js +72 -0
- package/mobile/dist/setup-fixture.js.map +1 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +2 -2
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.d.ts +2 -0
- package/mobile/dist/ui-kit/Heading/Heading.js +18 -0
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -0
- package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +13 -0
- package/mobile/dist/ui-kit/{Title/TitleProps.js → Heading/HeadingProps.js} +1 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +2 -150
- package/mobile/dist/ui-kit/Icon/IconProps.js +0 -76
- package/mobile/dist/ui-kit/Icon/IconProps.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/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +32 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +28 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +8 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +11 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +17 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.js +2 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/mobile/dist/ui-kit/SwipeListControl/constants.js +12 -0
- package/mobile/dist/ui-kit/SwipeListControl/constants.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +13 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +18 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +27 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +2 -2
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +4 -4
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +4 -6
- package/mobile/lib/components/BaseTile/getHeadingType.d.ts +1 -0
- package/mobile/lib/components/BaseTile/{getTitleSizeByClassName.js → getHeadingType.js} +5 -5
- package/mobile/lib/components/BaseTile/getHeadingType.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.d.ts +1 -0
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -2
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +2 -2
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +2 -2
- package/mobile/lib/components/Gallery/Gallery.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/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +6 -2
- package/mobile/lib/components/LinkDocs/LinkDocs.js +5 -36
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +27 -7
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +10 -0
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/mobile/lib/components/LinkDocs/LinkDocsList.js +7 -0
- package/mobile/lib/components/LinkDocs/LinkDocsList.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +5 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +20 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +9 -0
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +26 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +10 -2
- package/mobile/lib/components/PictureText/PictureText.js +2 -2
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -8
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +3 -2
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +2 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +1 -1
- package/mobile/lib/icons/IconName.d.ts +81 -0
- package/mobile/lib/icons/IconName.js +75 -0
- package/mobile/lib/icons/IconName.js.map +1 -0
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js +3 -0
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js.map +1 -0
- package/mobile/lib/services/sitemap/isTopItemActive.js +4 -1
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/setup-fixture.d.ts +3 -0
- package/mobile/lib/setup-fixture.js +70 -0
- package/mobile/lib/setup-fixture.js.map +1 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +2 -2
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.d.ts +2 -0
- package/mobile/lib/ui-kit/Heading/Heading.js +16 -0
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -0
- package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +13 -0
- package/mobile/lib/ui-kit/Heading/HeadingProps.js +2 -0
- package/mobile/lib/ui-kit/Heading/HeadingProps.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +2 -150
- package/mobile/lib/ui-kit/Icon/IconProps.js +1 -75
- package/mobile/lib/ui-kit/Icon/IconProps.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/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +30 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +26 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +6 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +9 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +17 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.js +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/constants.js +10 -0
- package/mobile/lib/ui-kit/SwipeListControl/constants.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +10 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +15 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +24 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +2 -6
- package/mobile/src/components/BaseTile/BaseTile.tsx +7 -8
- package/mobile/src/components/BaseTile/BaseTileProps.ts +5 -5
- package/mobile/src/components/BaseTile/{getTitleSizeByClassName.ts → getHeadingType.ts} +5 -4
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +2 -2
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +2 -6
- package/mobile/src/components/ContentPage/ContentPage.page.json +56 -0
- package/mobile/src/components/Footer/MediaButton.tsx +2 -1
- package/mobile/src/components/Gallery/Gallery.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryContainer.tsx +2 -2
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/Headline/Headline.tsx +2 -6
- package/mobile/src/components/Headline/HeadlineContent.ts +7 -4
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +4 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +28 -70
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +29 -7
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +28 -0
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +33 -0
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +12 -0
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +51 -0
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +33 -0
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +27 -0
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +10 -3
- package/mobile/src/components/PictureText/PictureText.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -9
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +2 -2
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -2
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +3 -1
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
- package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -2
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -6
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/mobile/src/components/Tile/TileContent.ts +1 -1
- package/mobile/src/icons/ActualBalanceIcon.svg +1 -1
- package/mobile/src/icons/AppleIcon.svg +1 -1
- package/mobile/src/icons/AtmIcon.svg +1 -1
- package/mobile/src/icons/BankIcon.svg +1 -1
- package/mobile/src/icons/BurgerIcon.svg +1 -1
- package/mobile/src/icons/BurgerIconWhite.svg +1 -1
- package/mobile/src/icons/Calendar2Icon.svg +1 -1
- package/mobile/src/icons/CalendarCircleIcon.svg +1 -1
- package/mobile/src/icons/CalendarIcon.svg +1 -1
- package/mobile/src/icons/CalendarTickIcon.svg +1 -1
- package/mobile/src/icons/CalendarWhiteIcon.svg +1 -1
- package/mobile/src/icons/CardIcon.svg +1 -1
- package/mobile/src/icons/CardPosIcon.svg +1 -1
- package/mobile/src/icons/CardTickIcon.svg +1 -1
- package/mobile/src/icons/CardWithGemIcon.svg +1 -1
- package/mobile/src/icons/ChartSquareIcon.svg +1 -1
- package/mobile/src/icons/ClockIcon.svg +1 -1
- package/mobile/src/icons/CloseIcon.svg +1 -1
- package/mobile/src/icons/ComfortableCompIcon.svg +1 -1
- package/mobile/src/icons/CreditCardsIcon.svg +1 -1
- package/mobile/src/icons/DiscountShapeIcon.svg +1 -1
- package/mobile/src/icons/DocIcon.svg +2 -2
- package/mobile/src/icons/DocumentTextIcon.svg +1 -1
- package/mobile/src/icons/DollarIcon.svg +1 -1
- package/mobile/src/icons/EarthIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletChangeIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletWhiteIcon.svg +1 -1
- package/mobile/src/icons/EuroIcon.svg +1 -1
- package/mobile/src/icons/GeolocationIcon.svg +1 -1
- package/mobile/src/icons/GlassIcon.svg +1 -1
- package/mobile/src/icons/GlobalIcon.svg +1 -1
- package/mobile/src/icons/GridIcon.svg +1 -1
- package/mobile/src/icons/GridIconWhite.svg +1 -1
- package/mobile/src/icons/IconName.ts +16 -0
- package/mobile/src/icons/InterestGrowthIcon.svg +1 -1
- package/mobile/src/icons/InterestIcon.svg +1 -1
- package/mobile/src/icons/JCBIcon.svg +1 -1
- package/mobile/src/icons/LoupeIcon.svg +1 -1
- package/mobile/src/icons/MasterCardIcon.svg +1 -1
- package/mobile/src/icons/MinusIcon.svg +1 -1
- package/mobile/src/icons/MirIcon.svg +1 -1
- package/mobile/src/icons/MoneyIcon.svg +1 -1
- package/mobile/src/icons/MoneyInsuranceIcon.svg +1 -1
- package/mobile/src/icons/MonitorMobileIcon.svg +1 -1
- package/mobile/src/icons/NewDocIcon.svg +1 -1
- package/mobile/src/icons/OfficeIcon.svg +1 -1
- package/mobile/src/icons/OkIcon.svg +1 -1
- package/mobile/src/icons/PassSendIcon.svg +1 -1
- package/mobile/src/icons/PercentageRoundIcon.svg +1 -1
- package/mobile/src/icons/PercentageSquareIcon.svg +1 -1
- package/mobile/src/icons/PercentageSquareWhiteIcon.svg +1 -1
- package/mobile/src/icons/PersonalCardIcon.svg +1 -1
- package/mobile/src/icons/PlayMarketIcon.svg +1 -1
- package/mobile/src/icons/PlusIcon.svg +1 -1
- package/mobile/src/icons/Profile2UserIcon.svg +1 -1
- package/mobile/src/icons/ProfileIcon.svg +1 -1
- package/mobile/src/icons/RoundRubleIcon.svg +1 -1
- package/mobile/src/icons/SafeIcon.svg +1 -1
- package/mobile/src/icons/ShieldTickIcon.svg +1 -1
- package/mobile/src/icons/SignDocsIcon.svg +1 -1
- package/mobile/src/icons/SmallClockIcon.svg +1 -1
- package/mobile/src/icons/TelegramIcon.svg +1 -1
- package/mobile/src/icons/UnionPayIcon.svg +1 -1
- package/mobile/src/icons/UserTickIcon.svg +1 -1
- package/mobile/src/icons/VKIcon.svg +1 -1
- package/mobile/src/icons/VisaIcon.svg +1 -1
- package/mobile/src/icons/WalletAdd2Icon.svg +1 -1
- package/mobile/src/icons/WalletAddIcon.svg +1 -1
- package/mobile/src/icons/WalletIcon.svg +1 -1
- package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -1
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +20 -0
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.ts +6 -0
- package/mobile/src/services/sitemap/isTopItemActive.spec.ts +59 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +4 -1
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +2 -2
- package/mobile/src/ui-kit/Heading/Heading.tsx +20 -0
- package/mobile/src/ui-kit/Heading/HeadingProps.ts +14 -0
- package/mobile/src/ui-kit/Icon/IconProps.ts +2 -150
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +62 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +51 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +20 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +48 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +19 -0
- package/mobile/src/ui-kit/SwipeListControl/constants.ts +10 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +9 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +19 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +20 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +24 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +41 -0
- package/package.json +14 -15
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +2 -2
- package/src/components/Accordion/Accordion.fixture.tsx +2 -2
- package/src/components/Accordion/Accordion.mobile.tsx +2 -6
- package/src/components/Accordion/Accordion.tsx +2 -2
- package/src/components/BaseTile/BaseTile.mobile.tsx +7 -8
- package/src/components/BaseTile/BaseTile.tsx +11 -9
- package/src/components/BaseTile/BaseTileInner.tsx +5 -5
- package/src/components/BaseTile/BaseTileProps.ts +5 -5
- package/src/components/BaseTile/{getTitleSizeByClassName.ts → getHeadingType.ts} +5 -4
- package/src/components/BaseTile/renderButton.tsx +5 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +2 -2
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +2 -6
- package/src/components/ContentPage/ContentPage.page.json +14 -80
- package/src/components/ContentPage/ContentPage.page.mobile.json +56 -0
- package/src/components/Footer/Footer.fixture.tsx +0 -126
- package/src/components/Footer/MediaButton.tsx +2 -1
- package/src/components/Gallery/Gallery.mobile.tsx +2 -2
- package/src/components/Gallery/GalleryContainer.tsx +2 -2
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/Headline/Headline.fixture.tsx +0 -54
- package/src/components/Headline/Headline.mobile.tsx +2 -6
- package/src/components/Headline/Headline.tsx +2 -6
- package/src/components/Headline/HeadlineContent.ts +7 -4
- package/src/components/LinkDocs/LinkDocs.example.json +4 -1
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +36 -0
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +17 -48
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +40 -0
- package/src/components/LinkDocs/LinkDocs.tsx +35 -52
- package/src/components/LinkDocs/LinkDocsContent.ts +29 -7
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +28 -0
- package/src/components/LinkDocs/LinkDocsList.tsx +33 -0
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +12 -0
- package/src/components/LinkDocs/LinkDocsListItem.tsx +14 -0
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +51 -0
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +33 -0
- package/src/components/LinkDocs/linkDocsContentExample.ts +27 -0
- package/src/components/MobileAppTile/MobileAppTileContent.ts +10 -3
- package/src/components/PictureText/PictureText.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +0 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -9
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +2 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +3 -3
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -2
- package/src/components/ProductBlock/renderBenefit.tsx +2 -2
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +0 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +0 -1
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +3 -1
- package/src/components/ProductGallery/ProductGallery.tsx +1 -0
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +4 -4
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
- package/src/components/ProductTile/ProductTileContent.ts +2 -2
- package/src/components/PromoTile/PromoTile.fixture.tsx +0 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -6
- package/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/src/components/TariffsTable/TariffsTable.tsx +2 -2
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/src/components/Tile/Tile.fixture.tsx +24 -21
- package/src/components/Tile/TileContent.ts +1 -1
- package/src/icons/ActualBalanceIcon.svg +1 -1
- package/src/icons/AppleIcon.svg +1 -1
- package/src/icons/AtmIcon.svg +1 -1
- package/src/icons/BankIcon.svg +1 -1
- package/src/icons/BurgerIcon.svg +1 -1
- package/src/icons/BurgerIconWhite.svg +1 -1
- package/src/icons/Calendar2Icon.svg +1 -1
- package/src/icons/CalendarCircleIcon.svg +1 -1
- package/src/icons/CalendarIcon.svg +1 -1
- package/src/icons/CalendarTickIcon.svg +1 -1
- package/src/icons/CalendarWhiteIcon.svg +1 -1
- package/src/icons/CardIcon.svg +1 -1
- package/src/icons/CardPosIcon.svg +1 -1
- package/src/icons/CardTickIcon.svg +1 -1
- package/src/icons/CardWithGemIcon.svg +1 -1
- package/src/icons/ChartSquareIcon.svg +1 -1
- package/src/icons/ClockIcon.svg +1 -1
- package/src/icons/CloseIcon.svg +1 -1
- package/src/icons/ComfortableCompIcon.svg +1 -1
- package/src/icons/CreditCardsIcon.svg +1 -1
- package/src/icons/DiscountShapeIcon.svg +1 -1
- package/src/icons/DocIcon.svg +2 -2
- package/src/icons/DocumentTextIcon.svg +1 -1
- package/src/icons/DollarIcon.svg +1 -1
- package/src/icons/EarthIcon.svg +1 -1
- package/src/icons/EmptyWalletChangeIcon.svg +1 -1
- package/src/icons/EmptyWalletIcon.svg +1 -1
- package/src/icons/EmptyWalletWhiteIcon.svg +1 -1
- package/src/icons/EuroIcon.svg +1 -1
- package/src/icons/GeolocationIcon.svg +1 -1
- package/src/icons/GlassIcon.svg +1 -1
- package/src/icons/GlobalIcon.svg +1 -1
- package/src/icons/GridIcon.svg +1 -1
- package/src/icons/GridIconWhite.svg +1 -1
- package/src/icons/IconName.ts +16 -0
- package/src/icons/InterestGrowthIcon.svg +1 -1
- package/src/icons/InterestIcon.svg +1 -1
- package/src/icons/JCBIcon.svg +1 -1
- package/src/icons/LoupeIcon.svg +1 -1
- package/src/icons/MasterCardIcon.svg +1 -1
- package/src/icons/MinusIcon.svg +1 -1
- package/src/icons/MirIcon.svg +1 -1
- package/src/icons/MoneyIcon.svg +1 -1
- package/src/icons/MoneyInsuranceIcon.svg +1 -1
- package/src/icons/MonitorMobileIcon.svg +1 -1
- package/src/icons/NewDocIcon.svg +1 -1
- package/src/icons/OfficeIcon.svg +1 -1
- package/src/icons/OkIcon.svg +1 -1
- package/src/icons/PassSendIcon.svg +1 -1
- package/src/icons/PercentageRoundIcon.svg +1 -1
- package/src/icons/PercentageSquareIcon.svg +1 -1
- package/src/icons/PercentageSquareWhiteIcon.svg +1 -1
- package/src/icons/PersonalCardIcon.svg +1 -1
- package/src/icons/PlayMarketIcon.svg +1 -1
- package/src/icons/PlusIcon.svg +1 -1
- package/src/icons/Profile2UserIcon.svg +1 -1
- package/src/icons/ProfileIcon.svg +1 -1
- package/src/icons/RoundRubleIcon.svg +1 -1
- package/src/icons/SafeIcon.svg +1 -1
- package/src/icons/ShieldTickIcon.svg +1 -1
- package/src/icons/SignDocsIcon.svg +1 -1
- package/src/icons/SmallClockIcon.svg +1 -1
- package/src/icons/TelegramIcon.svg +1 -1
- package/src/icons/UnionPayIcon.svg +1 -1
- package/src/icons/UserTickIcon.svg +1 -1
- package/src/icons/VKIcon.svg +1 -1
- package/src/icons/VisaIcon.svg +1 -1
- package/src/icons/WalletAdd2Icon.svg +1 -1
- package/src/icons/WalletAddIcon.svg +1 -1
- package/src/icons/WalletIcon.svg +1 -1
- package/src/icons/WalletWithMoneyIcon.svg +1 -1
- package/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +20 -0
- package/src/services/sitemap/checkIsHrefSameOrigin.ts +6 -0
- package/src/services/sitemap/isTopItemActive.spec.ts +59 -0
- package/src/services/sitemap/isTopItemActive.ts +4 -1
- package/src/ui-kit/BlockItem/BlockItem.tsx +2 -2
- package/src/ui-kit/Button/Button.fixture.tsx +2 -3
- package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +28 -0
- package/src/ui-kit/Heading/Heading.fixture.tsx +28 -0
- package/src/ui-kit/Heading/Heading.mobile.tsx +20 -0
- package/src/ui-kit/Heading/Heading.tsx +20 -0
- package/src/ui-kit/Heading/HeadingProps.ts +14 -0
- package/src/ui-kit/Icon/Icon.fixture.tsx +7 -10
- package/src/ui-kit/Icon/IconProps.ts +2 -150
- package/src/ui-kit/Logo/Logo.mobile.tsx +1 -0
- package/src/ui-kit/Logo/Logo.tsx +1 -0
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +16 -0
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +62 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +51 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +20 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +48 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +19 -0
- package/src/ui-kit/SwipeListControl/constants.ts +10 -0
- package/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +9 -0
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +19 -0
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +20 -0
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +24 -0
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +41 -0
- package/dist/components/BaseTile/getTitleSizeByClassName.d.ts +0 -1
- package/dist/components/BaseTile/getTitleSizeByClassName.js.map +0 -1
- package/dist/ui-kit/Title/Title.d.ts +0 -3
- package/dist/ui-kit/Title/Title.js +0 -18
- package/dist/ui-kit/Title/Title.js.map +0 -1
- package/dist/ui-kit/Title/Title.mobile.d.ts +0 -3
- package/dist/ui-kit/Title/Title.mobile.js +0 -18
- package/dist/ui-kit/Title/Title.mobile.js.map +0 -1
- package/dist/ui-kit/Title/TitleProps.d.ts +0 -4
- package/dist/ui-kit/Title/TitleProps.js.map +0 -1
- package/lib/components/BaseTile/getTitleSizeByClassName.d.ts +0 -1
- package/lib/components/BaseTile/getTitleSizeByClassName.js.map +0 -1
- package/lib/ui-kit/Title/Title.d.ts +0 -3
- package/lib/ui-kit/Title/Title.js +0 -16
- package/lib/ui-kit/Title/Title.js.map +0 -1
- package/lib/ui-kit/Title/Title.mobile.d.ts +0 -3
- package/lib/ui-kit/Title/Title.mobile.js +0 -16
- package/lib/ui-kit/Title/Title.mobile.js.map +0 -1
- package/lib/ui-kit/Title/TitleProps.d.ts +0 -4
- package/lib/ui-kit/Title/TitleProps.js +0 -2
- package/lib/ui-kit/Title/TitleProps.js.map +0 -1
- package/mobile/dist/components/BaseTile/getTitleSizeByClassName.d.ts +0 -1
- package/mobile/dist/components/BaseTile/getTitleSizeByClassName.js.map +0 -1
- package/mobile/dist/ui-kit/Title/Title.d.ts +0 -3
- package/mobile/dist/ui-kit/Title/Title.js +0 -18
- package/mobile/dist/ui-kit/Title/Title.js.map +0 -1
- package/mobile/dist/ui-kit/Title/TitleProps.d.ts +0 -4
- package/mobile/dist/ui-kit/Title/TitleProps.js.map +0 -1
- package/mobile/lib/components/BaseTile/getTitleSizeByClassName.d.ts +0 -1
- package/mobile/lib/components/BaseTile/getTitleSizeByClassName.js.map +0 -1
- package/mobile/lib/ui-kit/Title/Title.d.ts +0 -3
- package/mobile/lib/ui-kit/Title/Title.js +0 -16
- package/mobile/lib/ui-kit/Title/Title.js.map +0 -1
- package/mobile/lib/ui-kit/Title/TitleProps.d.ts +0 -4
- package/mobile/lib/ui-kit/Title/TitleProps.js +0 -2
- package/mobile/lib/ui-kit/Title/TitleProps.js.map +0 -1
- package/mobile/src/ui-kit/Title/Title.tsx +0 -22
- package/mobile/src/ui-kit/Title/TitleProps.ts +0 -5
- package/src/ui-kit/Title/Title.mobile.tsx +0 -22
- package/src/ui-kit/Title/Title.tsx +0 -22
- package/src/ui-kit/Title/TitleProps.ts +0 -5
|
@@ -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,...i}={})=>{const l=Object.assign({},i,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),i=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...i}=t||{},l=n?.slots?.default,a=r||l&&l();return e(Object.assign(i,a&&{children:a}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const a=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}},s=i((({className:e="",name:t,alt:i=`Icon ${t}`,title:l=i,asSVG:s,...c})=>{const o=`${a.CDN||""}icons/${t}.svg`;return s?r("svg",{className:e,...c,"aria-hidden":"true",children:[l?n("title",{children:l}):null,i?n("desc",{children:i}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:i,title:l,...c,"aria-hidden":"true"})})),c=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12},o={XL:"text-m-title",L:"text-m-title",M:"text-m-title-md",S:"text-m-title-xs","2XS":"text-m-title-xs","3XS":"text-m-title-xs"},m=i((({size:e="L",className:t,children:r,...i})=>n("XL"===e||"L"===e?"h1":"h2",{className:d(o[e],t),...i,children:r}))),d=(...e)=>e.filter(Boolean).join(" "),h=e=>e?.includes("//"),u=e=>(e||"").replace(/\/?\?.*/,""),x=e=>{if(!e||!h(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var p=Object.freeze({__proto__:null,isURL:h,withoutQuery:u,getOrigin:x});const f="/mobile",b=(e,t)=>{if(!e)return e;const n=x(t?.href);return n?e.replace(n,"")||"/":e},g=e=>e;function N({router:e,handlerDecorator:t=g},n){const r=((e,t)=>{if(!e)return e;const n=b(e,t)||"",r=t?.pathname.startsWith(f);return r&&!h(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const i=r&&!h(r),l=!n.target||"_self"===n.target;i&&l&&(t.preventDefault(),e.push(r))}),n)}}const v=i((({className:e="",image:{size:t,...i}})=>{const l={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return r("picture",{className:e,children:[i.sources?.length?i.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:y(t)},`${r}_${e}`))):null,n("img",{src:i.src,className:`m-auto ${i.className||""}`,alt:i.alt||i.title,title:i.title,style:l,...t})]})}));function y(e){return e?`image/${String(e)}`:void 0}const w={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"},k={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},$="w-full text-center font-sans select-none",S=i((({className:e,text:t,aboveText:r,appendLeft:i,href:l,target:a,onClick:s,children:c,disabled:o,rounded:m,version:d="none",ariaLabel:h,...u})=>{const x=c??n(C,{text:t,aboveText:r,appendLeft:i,rounded:m});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${$} ${k[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:x}):n("a",{className:`${$} inline-block cursor-pointer no-underline ${w[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:a,onClick:s,"aria-label":h,role:l?"link":"button",...u,children:x})})),C=i((({text:e,aboveText:t,appendLeft:i,rounded:l})=>{const a=!e&&!t&&Boolean(i);return r("div",{className:`flex items-center justify-center ${a?"h-12 w-12":"px-9 gap-2 "+(t?"py-2":"py-3.5")} ${l?"rounded-full":""}`,children:[i||null,a?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:t}),n("div",{className:"text-m-button font-medium text-left",children:e})]})]})})),_="first:mt-0 mt-3";const j={primary:"text-primary-text",secondary:"text-secondary-text"},D={primary:"bg-primary-main",secondary:"bg-secondary-text"},T=i((({className:e="",isDotted:t=!0,text:i,children:l,version:a="primary",white:s})=>r("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t&&n("div",{className:I(a,s)}),n("span",{className:s?"text-white":j[a],children:i||l})]}))),I=(e,t)=>`rounded-full inline-block mr-3 ${t?"bg-white":D[e]} ${"primary"===e?"w-2 h-2 min-w-2 min-h-2 mt-2":"w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5"}`;function L(e=[],t){return n("section",{className:"mt-3",role:"list",children:e.map(((e,r)=>n(T,{className:"mt-1.5 first:mt-0",text:e,version:t},String(r))))})}const R=i((({context:e,description:t,children:i,buttons:l,image:a,items:c,version:o="primary"})=>{const m=e.useRouter(),{handlerDecorator:d}=e;return r("div",{children:[t&&n("div",{className:"font-normal text-base mt-3",children:t}),i,c?.length&&L(c,o),l?.length&&n("div",{className:"mt-[18px]",children:l.map(((e,t)=>function({icon:e,...t},r){if(t?.text)return n(S,e?{className:_,appendLeft:n(s,{name:e,width:"24",height:"24"}),...t}:{className:_,...t},String(r))}(N({router:m,handlerDecorator:d},e),t)))}),a?.src&&n(v,{className:"mt-auto ml-7",image:a})]})}));function O(e=""){const t=c(e);return t<=4?"S":t<=8?"M":"L"}const A={left:"items-start",center:"items-center",right:"items-end"},M=i((({className:e,context:t,title:i,titleSize:l,description:a,children:s,buttons:c,image:o,items:d,version:h="primary",align:u="left"})=>r("div",{className:`font-sans flex flex-col grow h-full ${A[u]}`,children:[i&&n(m,{size:l||O(e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===h?"text-primary-text":""),children:i}),n(R,{context:t,buttons:c,image:o,children:s,description:a,items:d})]}))),B={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},V=i((e=>{const{children:t,className:r="",version:i="primary",role:l}=e;return n("section",{className:`font-sans p-9 box-border ${r||""} ${B[i]} ${P(r)} ${H(r)} `,role:l,children:n(M,{...e,children:t})})}));function P(e=""){const t=c(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function H(e=""){const t=c(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Z="https://www.cbr-xml-daily.ru/daily_json.js",z=["USD","EUR"],E={USD:"DollarIcon",EUR:"EuroIcon"},F=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],G=i((({className:e,context:t,title:i})=>{const{data:l}=t.useAsyncData(Z,J);return n(V,{className:e,context:t,title:i||"Курсы обмена валют",buttons:F,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(U,{children:"Валюта"}),n(U,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:z.map((e=>{const t=(l?.Valute||{})[e]?.Value;return r("tr",{children:[n(W,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(s,{name:E[e],width:"24",height:"24"}),n("span",{className:"ml-2",children:e})]})}),n(W,{className:"pt-4 pl-11",children:K(t)})]},e)}))})]})})})),U=i((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),W=i((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function J(){const e=await fetch(Z);return await e.json()}const X=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),K=e=>e?X.format(e):"",Q=i((({bgColor:e="transparent",className:t="",title:i,description:l,image:a})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[i&&n(m,{size:"L",className:"text-primary-text mt-0 font-medium",children:i}),l&&n("p",{className:"font-normal text-m-md "+(i?"mt-2.5":""),children:l}),a?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(v,{image:a})})]}))),Y={left:"text-left",center:"text-center",right:"text-right"},q={double:"mb-8",single:"mb-[26px]"},ee={double:"gap-x-5 gap-y-[26px] flex-wrap",single:"gap-3.5 flex-col"},te=i((({className:e="",title:t,align:i,documents:l,icon:a,columnsMode:c="single"})=>{const o=ee[c];return r("section",{className:`font-sans p-[50px] bg-white ${e}`,children:[t&&n(m,{className:`font-medium mt-0 ${q[c]} ${Y[i??"center"]}`,children:t}),n("div",{className:`flex ${o}`,role:"list",children:l?.length?l.map((({text:e,fileSize:t,...i},l)=>r("a",{className:"group flex text-sm align-middle h-fit\n text-primary-text no-underline hover:text-primary-main\n "+("double"===c?"basis-[calc(50%-20px)]":""),role:"listitem",...i,children:[a&&n(s,{className:"mr-2.5 h-fit",name:a,width:"24px",height:"24px"}),r("span",{className:"self-center",children:[e,n("span",{className:"text-secondary-text group-hover:text-primary-main",children:i?.href&&re(ne(i.href),t)})]})]},String(l)))):null})]})})),ne=e=>{if(!e)return"";const t=e.split(".").pop();return!t||t.includes("/")?"":t},re=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ie=i((({className:e,title:t,image:i,benefits:l})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(m,{className:"font-medium m-0 text-center",children:t}),r("div",{className:"flex justify-center mt-9",children:[i?.src&&n(v,{className:"mr-6",image:i}),l?.length?n("div",{className:"flex flex-col",children:l.map(le)}):null]})]})));function le(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(s,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const ae={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"}},se=i((({title:e,description:t,blockVersion:i="primary",iconVersion:l,image:a,className:s="",items:c})=>{const o=ae[i];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${s}`,children:["small"===l?oe(o.icon):null,"big"===l?me(a):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${o.title}`,children:e}):null,t?n("div",{className:`text-sm ${o.description}`,children:t}):null,c?.length?ce(c):null]})]})}));function ce(e=[],t){return n("section",{className:"mt-1",role:"list",children:e.map(((e,r)=>n(T,{text:e,version:t},String(r))))})}function oe(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 me(e){return e?.src?n(v,{className:"pb-3 mr-auto",image:e}):null}const de={Headline:Q,LinkDocs:te,TextBlock:se,PictureText:ie},he=i((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:e?.length?e.map(ue(t)):null}))),ue=e=>(t,r)=>{const i=t?.accordionBlockType;if(!i||!(i in de))return null;return n("div",{className:"mb-5 last:mb-0 py-2.5",children:n(de[i],{context:e,...t,className:"!p-0"})},`block_${r}`)},xe=i((({label:e,blocks:t,bordered:i,context:l})=>{const{hasContent:a,icon:c,handleToggle:o}=(({context:e,blocks:t})=>{const[n,r]=e.useState(!1),i=t?.length;return{isActive:n,hasContent:i,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!i)return;r(!n);const t=(({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:t});return r("li",{className:(i?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0 py-[14px]")+" 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?"group cursor-pointer":""),onClick:o,children:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(a?"group-hover:text-primary-main":""),children:e}),a?n(s,{name:c,width:"24",height:"24"}):null]}),a?n(he,{blocks:t,context:l}):null]})})),pe=i((({title:e,description:t,accordionItems:i,context:l,className:a="",bordered:s})=>r("section",{className:`py-6 font-sans bg-white text-primary-text ${s?"px-4":""} ${a}`,children:[e?n(m,{className:"m-0 mb-2 font-medium text-center",size:"M",children:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,i?.length?n("ul",{className:"list-none m-0 p-0",children:i.map(((e,t)=>n(xe,{...e,context:l,bordered:s},`AccordionItem${t}`)))}):null]}))),fe=i((({className:e,viewBox:t,fill:r="none",width:i,height:l,paths:a,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:i,height:l,children:a.map((({d:e,fill:t,...r},i)=>n("path",{d:e,fill:t||"currentColor",...s,...r},i)))}))),be=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],ge={"bg-white":"text-primary-main",transparent:"text-white"},Ne={"bg-white":"text-black",transparent:"text-white"},ve=i((({className:e="",href:t,children:i,targetBlank:l,bgColor:a="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self",children:[n(fe,{className:`${ge[a]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:be.map((e=>({d:e})))}),!s&&n("span",{className:`${Ne[a]} text-sm font-medium ml-2.5`,children:i||"Россельхозбанк"})]}))),ye=i((({className:e,title:t="Мобильное приложение",description:i,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(ve,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,target:"_blank",className:"flex flex-col justify-center pl-3",children:[n("div",{className:"text-sm font-medium",children:t}),n("div",{className:"text-xs text-secondary-text",children:i})]})]}):null}))),we=i((({className:e,items:t,hasButton:i,context:l})=>{const a=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(ke):null,i?n(S,{version:"primary",className:"my-4",...N({router:a,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),ke=(e,t)=>{const{type:i,text:l,description:a}=e;return r("div",{className:"mb-4",children:[n("div",{children:$e(i,l)}),n("div",{className:"font-sans text-sm text-secondary-text",children:a})]},String(t))},$e=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Se(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Se=e=>e.replaceAll(/\D/g,""),Ce=i((({title:e,links:t,className:i="",context:l})=>{const a=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:i,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-5 py-5",children:t.map(((e,t)=>n(_e,{index:t,...N({router:a,handlerDecorator:s},e)},String(t))))}):null]})})),_e=i((({className:e="",index:t,text:r,href:i,target:l,onClick:a})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:i,target:l,onClick:a,children:r||`Документ ${t}`}))),je=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],De=i((({href:e})=>{const{icon:t,width:r,height:i}=je.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main",href:e,target:"_blank",rel:"noopener noreferrer",children:s&&n(s,{name:t,width:r,height:i,asSVG:!0,className:"block"})}):null})),Te=i((({className:e,media:t,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(De,{...N({router:i,handlerDecorator:l},e)},String(t))))})})),Ie=i((({className:e,links:t,context:i})=>{const l=i.useRouter(),{handlerDecorator:a}=i;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans 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-5 pt-[5px]",children:t.map(((e,t)=>n(Le,{index:t,...N({router:l,handlerDecorator:a},e)},String(t))))}):null]})})),Le=i((({className:e,index:t,text:r,href:i,target:l,onClick:a})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:i,target:l,onClick:a,children:r||`Документ ${t}`}))),Re=i((({className:e,context:t})=>{const{term:i,setTerm:l}=t.useSearch();return r("form",{className:`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:"w-[20px] h-[20px]",children:n(s,{name:"LoupeIcon",width:"24",height:"24"})}),!i&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:i,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),n(S,{version:"primary",text:"Найти",className:"w-auto 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:"Найти"})})]})})),Oe=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkDocs",documents:e.items||[]}]}))),Ae=i((({className:e="",documents:t,relatedEnterprises:i,contacts:l,socialMedia:a,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:m})=>{const d={context:c,accordionItems:Oe(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(we,{className:"overflow-hidden",items:l,context:c,hasButton:!0}),n(pe,{className:"p-0 pt-0 pb-0 mb-4",...d}),n("div",{children:m?.map(Me)}),n(ye,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Re,{context:c,className:"grow"}),n(Te,{className:"pb-4",media:a,context:c}),n(Ce,{title:o,links:i,context:c}),n(Ie,{links:t,context:c})]})})),Me=(e,t)=>{const{icon:i,href:l,text:a}=e;return r(S,{href:l,className:"flex text-sm mb-4",children:[i?n(s,{className:"pr-1",name:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:a})]},`footer-${t}`)},Be=(e,t,n=((e,t)=>t.startsWith(e)))=>n(u(e),(e=>(e||"").replace(f,""))(u(h(e)?t.href:t.pathname))),Ve=e=>t=>Be(t.href,e),Pe=e=>t=>e?.href===t?.href,He=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(Pe(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Pe(e))))));var n,r,i};async function Ze(){const e=await fetch(ze());return await e.json()}function ze(){return`/wcms-resources/${a.SITEMAP||"sitemap"}.json`}const Ee="absolute left-0 -bottom-3 w-full h-[2px]",Fe=i((({className:e,text:t,href:i,target:l,active:a,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:i,target:l,onClick:s,children:[n("span",{className:Ge(o,a),children:t||c}),a?n("div",{className:Ue(o,a)}):null]}))),Ge=(e,t)=>{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`},Ue=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ee}`:Ee,We=i((({context:e,burgerSubMenu:t,onClick:i,defaultLocation:l="",children:a})=>{const[c,o]=e.useGeolocation(l);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4",children:[n("button",{className:"absolute top-4 right-4",onClick:i,children:n(s,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r(S,{onClick:o,className:"flex items-center text-sm text-secondary-text mb-4",children:[n(s,{name:"GeolocationIcon",width:"24",height:"24",className:"box-border mr-2",asSVG:!0}),c]}),a,n("div",{className:"mb-7",children:t?.map(Je)}),n(Re,{context:e,className:"grow"})]})})),Je=(e,t)=>{const{icon:i,href:l,text:a}=e;return r(S,{href:l,className:"flex text-sm mb-4",children:[i?n(s,{className:"pr-1",name:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:a})]},`headerSubMenu-${t}`)},Xe=i((({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:"pr-4",onClick:e,children:n(s,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(ve,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm",children:"Войти"})]}))),Ke=i((({className:e="",defaultLocation:t,bgColor:i="bg-white",context:l,topItems:a,burgerSubMenu:s})=>{const c=l.useRouter(),o=function(e){const{data:t}=e(ze(),Ze);return t||{}}(l.useAsyncData),{handlerDecorator:m}=l,d=He(o.topItems,a).find((e=>t=>t.items?.some(Ve(e))||Be(t.href,e))(c)),h=d?.items,u=(e=>(t=[])=>{const n=t?.filter(Ve(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(c)(h),[x,p]=l.useState(!1),f=()=>p(!x);return r("header",{className:`${i} ${e}`,children:[r("div",{className:"container px-4 py-0",children:[n(Xe,{onClick:f,bgColor:i}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex",children:h?.map(((e,t)=>Qe({...N({router:c,handlerDecorator:m},e),active:e===u,bgColor:i},t)))})})]}),x?n(We,{context:l,onClick:f,burgerSubMenu:s,defaultLocation:t,children:n(pe,{context:l,accordionItems:Oe(a),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),Qe=(e,t)=>n(Fe,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),Ye=i((({className:e="",context:t,title:r})=>n(V,{className:`pr-0 min-h-0 ${e}`,context:t,title:r,description:"Блок в разработке...",children:n("figure",{className:"m-0",children:qe()})}))),qe=(e=3)=>tt(100,e).map((e=>Math.floor(e))).map(et),et=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),tt=(e,t)=>[e].concat(t>0?tt(e/1.618,t-1):[]),nt={primary:"text-primary-text",secondary:"text-white"},rt={primary:"text-secondary-text",secondary:"text-white"};const it=i((({className:e,context:t,title:i,titleSize:l,description:a,benefits:c,buttons:o,image:m,items:d,version:h="primary"})=>r("div",{className:`${e||""}`,children:[n("div",{children:n(M,{context:t,title:i,titleSize:l||"XL",description:a,items:d,buttons:o,children:c?.length?n("div",{className:"mt-[19px]",children:c.map(((e,t)=>function(e,t,i){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(s,{className:"w-[25px] h-[25px] rounded-full box-border",name:e.icon,width:"24",height:"24"}),n("h4",{className:`font-medium text-m-base m-0 ${nt[i]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${rt[i]}`,children:e.description})]},String(t))}(e,t,h)))}):null})}),m?.src&&n("div",{className:"mt-5",children:n(v,{image:{className:"block",...m}})})]}))),lt=i((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(it,{...e})})})),at=i((({block:e,titleSize:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 py-6",role:"listitem",children:n("div",{className:"flex grow",children:n(it,{context:r,titleSize:t,...e})})}))),st=i((({className:e,context:t,duration:i=0,slides:l=[]})=>{const a=l.map((e=>e.productBlock)),[s,c]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${s}00%)`},role:"list",children:a.map(((e,r)=>n(at,{block:e,context:t},String(r))))}),n("div",{className:"flex px-4 py-6",children:l.map(((e,t)=>function({i:e,activeSlideIndex:t,onClick:r,duration:i}){return n("button",{type:"button",onClick:r,className:"relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0",children:n("div",{className:"absolute bottom-0 left-0 w-full h-[3px] "+(e===t?"animate-slide bg-primary-main":"bg-main-divider"),style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})},String(e))}({i:t,activeSlideIndex:s,onClick:()=>c(t),duration:i})))})]})}));const ct=i((({className:e,title:t,description:i,steps:l,size:a="normal"})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${e||""}`,children:[t&&n(m,{size:"M",className:"font-medium m-0 text-center",children:t}),i&&n("p",{className:`text-m-md text-center ${t&&"mt-2"}`,children:i}),l?.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:l.map(((e,t)=>ot({step:e,size:a,i:t,length:l.length})))})}):null]}))),ot=e=>{const{step:t,size:i,i:l,length:a}=e,s=a-1===l,c="normal"===i?"ml-[34px]":"ml-[24px]";return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{children:[mt(t,i,l),!s&&n("div",{className:`min-h-8 h-full w-[2px] bg-secondary-light ${c}`})]}),r("div",{className:"flex flex-col justify-center relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:"font-normal text-sm text-secondary-text text-left "+(t.label?"mt-1":""),children:t.description})]})]},String(l))},String(l))},mt=(e,t,r)=>{const i="normal"===t?"38":"27";return n("div",{className:`${"normal"===t?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium text-secondary-text self-center ${"normal"===t?"text-m-title":"text-m-title-xs"}`,children:e.icon&&n(s,{name:e.icon,width:i,height:i})||r+1})})},dt={ExchangeRateTile:G,Footer:Ae,Header:Ke,Headline:Q,Placeholder:Ye,ProductBlock:lt,ProductGallery:st,TextBlock:se,StepsBlock:ct},ht=i((({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:ut()}))),ut=()=>{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"})]})},xt=i((({className:e,context:t})=>{const i=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[n(ht,{onClick:i.like,ariaLabel:"Поставить отметку «лайк»"}),n(ht,{onClick:i.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:i.likeCount})]})})),pt=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),ft=i((({className:e,context:t,blocksRegistry:i,data:{style:l,blocks:a,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=pt})=>{const{header:d}=s;return r("section",{className:`relative ${gt(l)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${gt(d?.style)}`,children:d.blocks.map(((e,n)=>bt({block:e,blockDecorator:m,blocksRegistry:i,context:t},n)))}):null,a?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:a.map(((e,n)=>bt({block:e,blockDecorator:m,blocksRegistry:i,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(xt,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function bt({block:e,blockDecorator:t,blocksRegistry:r,context:i},l){const{type:a}=e;a in r||console.warn(`No block with "${a}" is registered`);const s=r[a]||Ye;return t({blockClassName:gt(e.style),block:e,render:e=>{const{version:c,content:o,blocks:m}=e.block;return n(s,{className:e.blockClassName,version:c,context:i,...o,children:m?.length?m.map(((e,n)=>bt({block:e,blockDecorator:t,blocksRegistry:r,context:i},n))):null},`${a}-${l}`)}},`block-${l}`)}function gt(e){return e?e.join(" "):""}const Nt=i((({HeadComponent:e,data:t,children:i})=>{const{title:l,description:a,keywords:s,robots:c,og:o}=t;return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),a&&n("meta",{name:"description",content:a}),s&&n("meta",{name:"keywords",content:s.join(",")}),c&&n("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,i]})}));function vt(e){return e?.filter((({mobile:e})=>!e?.hidden)).map(yt)}function yt(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}e.Blocks=dt,e.ContentPage=ft,e.ContentPageHead=Nt,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.Header=Ke,e.Icon=s,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");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(l,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:i}=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:i},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:i,name:l}=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:i,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:a}=await n.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:i,name:l}=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:i,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:a}=await n.json();return a||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=a,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:n}=e;return{...e,blocks:vt(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:vt(n[t].blocks)}})),{})}},e.url=p,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,...a}={})=>{const i=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,i,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},i=n?.slots?.default,l=r||i&&i();return e(Object.assign(a,l&&{children:l}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";const l=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}},s=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:s,...c})=>{const o=`${l.CDN||""}icons/${t}.svg`;return s?r("svg",{className:e,...c,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:a,title:i,...c,"aria-hidden":"true"})})),c=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12},o={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},d=a((e=>{const{className:t,type:r,text:a}=e;return n(r,{className:`font-sans font-medium ${o[r]} ${t||""}`,children:a})})),m=e=>e?.includes("//"),h=e=>(e||"").replace(/\/?\?.*/,""),u=e=>{if(!e||!m(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var x=Object.freeze({__proto__:null,isURL:m,withoutQuery:h,getOrigin:u});const p="/mobile",f=(e,t)=>{if(!e)return e;const n=u(t?.href);return n?e.replace(n,"")||"/":e},b=e=>e;function g({router:e,handlerDecorator:t=b},n){const r=((e,t)=>{if(!e)return e;const n=f(e,t)||"",r=t?.pathname.startsWith(p);return r&&!m(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const a=r&&!m(r),i=!n.target||"_self"===n.target;a&&i&&(t.preventDefault(),e.push(r))}),n)}}const N=a((({className:e="",image:{size:t,...a}})=>{const i={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return r("picture",{className:e,children:[a.sources?.length?a.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:v(t)},`${r}_${e}`))):null,n("img",{src:a.src,className:`m-auto ${a.className||""}`,alt:a.alt||a.title,title:a.title,style:i,...t})]})}));function v(e){return e?`image/${String(e)}`:void 0}const y={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"},w={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},k="w-full text-center font-sans select-none",$=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:d,version:m="none",ariaLabel:h,...u})=>{const x=c??n(S,{text:t,aboveText:r,appendLeft:a,rounded:d});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${k} ${w[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:x}):n("a",{className:`${k} inline-block cursor-pointer no-underline ${y[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...u,children:x})})),S=a((({text:e,aboveText:t,appendLeft:a,rounded:i})=>{const l=!e&&!t&&Boolean(a);return r("div",{className:`flex items-center justify-center ${l?"h-12 w-12":"px-9 gap-2 "+(t?"py-2":"py-3.5")} ${i?"rounded-full":""}`,children:[a||null,l?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:t}),n("div",{className:"text-m-button font-medium text-left",children:e})]})]})})),C="first:mt-0 mt-3";const _={primary:"text-primary-text",secondary:""},D={primary:"bg-primary-main",secondary:"bg-white"},T=a((({className:e="",isDotted:t=!0,text:a,children:i,version:l="primary",white:s})=>r("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t&&n("div",{className:j(l,s)}),n("span",{className:s?"text-white":_[l],children:a||i})]}))),j=(e,t)=>`rounded-full inline-block mr-3 ${t?"bg-white":D[e]} ${"primary"===e?"w-2 h-2 min-w-2 min-h-2 mt-2":"w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5"}`;function I(e=[],t){return n("section",{className:"mt-3",role:"list",children:e.map(((e,r)=>n(T,{className:"mt-1.5 first:mt-0",text:e,version:t},String(r))))})}const B=a((({context:e,description:t,children:a,buttons:i,image:l,items:c,version:o="primary"})=>{const d=e.useRouter(),{handlerDecorator:m}=e;return r("div",{children:[t&&n("div",{className:"font-normal text-base mt-3",children:t}),a,c?.length&&I(c,o),i?.length&&n("div",{className:"mt-[18px]",children:i.map(((e,t)=>function({icon:e,...t},r){if(t?.text)return n($,e?{className:C,appendLeft:n(s,{name:e,width:"24",height:"24"}),...t}:{className:C,...t},String(r))}(g({router:d,handlerDecorator:m},e),t)))}),l?.src&&n(N,{className:"mt-auto ml-7",image:l})]})}));function R(e=""){const t=c(e);return t<=4?"h4":t<=8?"h3":"h2"}const L={left:"items-start",center:"items-center",right:"items-end"},O=a((({className:e,context:t,title:a,headingType:i,description:l,children:s,buttons:c,image:o,items:m,version:h="primary",align:u="left"})=>r("div",{className:`font-sans flex flex-col grow h-full ${L[u]}`,children:[a&&n(d,{type:i||R(e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===h?"text-primary-text":""),text:a}),n(B,{context:t,buttons:c,image:o,children:s,description:l,items:m})]}))),A={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},M=a((e=>{const{children:t,className:r="",version:a="primary",role:i}=e;return n("section",{className:`font-sans p-9 box-border ${r||""} ${A[a]} ${V(r)} ${P(r)} `,role:i,children:n(O,{...e,children:t})})}));function V(e=""){const t=c(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function P(e=""){const t=c(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const H="https://www.cbr-xml-daily.ru/daily_json.js",Z=["USD","EUR"],E={USD:"DollarIcon",EUR:"EuroIcon"},F=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],W=a((({className:e,context:t,title:a})=>{const{data:i}=t.useAsyncData(H,U);return n(M,{className:e,context:t,title:a||"Курсы обмена валют",buttons:F,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(z,{children:"Валюта"}),n(z,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:Z.map((e=>{const t=(i?.Valute||{})[e]?.Value;return r("tr",{children:[n(G,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(s,{name:E[e],width:"24",height:"24"}),n("span",{className:"ml-2",children:e})]})}),n(G,{className:"pt-4 pl-11",children:K(t)})]},e)}))})]})})})),z=a((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),G=a((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function U(){const e=await fetch(H);return await e.json()}const J=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),K=e=>e?J.format(e):"",Q=a((({bgColor:e="transparent",className:t="",title:a,description:i,image:l})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[a&&n(d,{type:"h2",className:"text-primary-text",text:a}),i&&n("p",{className:"font-normal text-m-md "+(a?"mt-2.5":""),children:i}),l?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(N,{image:l})})]}))),X=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:i,doc:l,icon:c})=>{const{text:o,fileSize:d,...m}=l;return r("a",{className:e,role:"link",...m,children:[c?n(s,{className:t,name:c,width:"24px",height:"24px",asSVG:!0}):null,o?r("span",{className:a,children:[o,n("span",{className:i,children:m?.href&&Y(q(m.href),d)})]}):null]})})),Y=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),q=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},ee=a((({className:e="",doc:t,icon:r})=>n(X,{className:`flex h-full ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",doc:t,icon:r}))),te=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(ee,{className:e?"rounded-md border-main-stroke border p-4":"",doc:t,icon:r})},String(a)))):null}))),ne=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full ${e}`,role:"listitem",...r,children:t}))),re=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),ae=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:i=14,padding:l=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...re(l),gap:`${i}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(ne,{style:re(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(ne,{children:t})}))),ie=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-[22px] w-fit",children:e?.map(((e,a)=>n("div",{className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:le(a,t,r),"aria-hidden":!0},String(a))))}):null)),le=(e,t,n)=>{if(e<t||e>t+1)return null;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"}},se=a((({className:e,context:t,children:a,gap:i=14,padding:l=16,showDots:s=!0})=>{const[c,o]=t.useState(0),[d,m]=t.useState(0);return r("div",{className:e,children:[n(ae,{gap:i,padding:l,activeIndex:c,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:s}=e.currentTarget,c=s[0].offsetWidth-l/2,d=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:i})=>{const l=i+e,s=r-n,c=n-e-t,o=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===o?[t>0?s-c:0,t>0?s:c]:[(t-1)*l+c,t*l+c]));return d[a-1]=[s,r],d})({gap:i,padding:l,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:c}),{index:h,fraction:u}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,d);o(h),m(u)},children:a}),n(ie,{activeIndex:c,indexFraction:d,showDots:s,children:a})]})})),ce=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(se,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(ee,{className:t?"rounded-md border-main-stroke border p-4":"",doc:e,icon:a},String(r)))):null}))),oe=a((({className:e="",context:t,title:a,subtitle:i,icon:l="DocIcon",documents:s,listMode:c="vertical",hasBorder:o=!0})=>r("section",{className:`py-6 px-4 bg-white ${e}`,children:[a?n(d,{type:"h2",className:"text-center "+(i?"mb-2":"mb-5"),text:a}):null,i?n("h3",{className:"mb-5 text-center text-m-base",children:i}):null,"vertical"===c?n(te,{hasBorder:o,documents:s,icon:l}):n(ce,{context:t,hasBorder:o,documents:s,icon:l})]}))),de=a((({className:e,title:t,image:a,benefits:i})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(d,{type:"h2",className:"text-center",text:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(N,{className:"mr-6",image:a}),i?.length?n("div",{className:"flex flex-col",children:i.map(me)}):null]})]})));function me(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(s,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const he={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"}},ue=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s="",items:c})=>{const o=he[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${s}`,children:["small"===i?pe(o.icon):null,"big"===i?fe(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${o.title}`,children:e}):null,t?n("div",{className:`text-sm ${o.description}`,children:t}):null,c?.length?xe(c):null]})]})}));function xe(e=[],t){return n("section",{className:"mt-1",role:"list",children:e.map(((e,r)=>n(T,{text:e,version:t},String(r))))})}function pe(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(N,{className:"pb-3 mr-auto",image:e}):null}const be={Headline:Q,LinkDocs:oe,TextBlock:ue,PictureText:de},ge=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:e?.length?e.map(Ne(t)):null}))),Ne=e=>(t,r)=>{const a=t?.accordionBlockType;if(!a||!(a in be))return null;return n("div",{className:"mb-5 last:mb-0 py-2.5",children:n(be[a],{context:e,...t,className:"!p-0"})},`block_${r}`)},ve=a((({label:e,blocks:t,bordered:a,context:i})=>{const{hasContent:l,icon:c,handleToggle:o}=(({context:e,blocks:t})=>{const[n,r]=e.useState(!1),a=t?.length;return{isActive:n,hasContent:a,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!a)return;r(!n);const t=(({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:t});return r("li",{className:(a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0 py-[14px]")+" 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 "+(l?"group cursor-pointer":""),onClick:o,children:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(l?"group-hover:text-primary-main":""),children:e}),l?n(s,{name:c,width:"24",height:"24"}):null]}),l?n(ge,{blocks:t,context:i}):null]})})),ye=a((({title:e,description:t,accordionItems:a,context:i,className:l="",bordered:s})=>r("section",{className:`py-6 font-sans bg-white text-primary-text ${s?"px-4":""} ${l}`,children:[e?n(d,{type:"h3",className:"mb-2 text-center",text:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(ve,{...e,context:i,bordered:s},`AccordionItem${t}`)))}):null]}))),we=a((({className:e,viewBox:t,fill:r="none",width:a,height:i,paths:l,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:i,children:l.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...s,...r},a)))}))),ke=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],$e={"bg-white":"text-primary-main",transparent:"text-white"},Se={"bg-white":"text-black",transparent:"text-white"},Ce=a((({className:e="",href:t,children:a,targetBlank:i,bgColor:l="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(we,{className:`${$e[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:ke.map((e=>({d:e})))}),!s&&n("span",{className:`${Se[l]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),_e=a((({className:e,title:t="Мобильное приложение",description:a,href:i="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:i?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(Ce,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[n("div",{className:"text-sm font-medium",children:t}),n("div",{className:"text-xs text-secondary-text",children:a})]})]}):null}))),De=a((({className:e,items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Te):null,a?n($,{version:"primary",className:"my-4",...g({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Te=(e,t)=>{const{type:a,text:i,description:l}=e;return r("div",{className:"mb-4",children:[n("div",{children:je(a,i)}),n("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},je=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Ie(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Ie=e=>e.replaceAll(/\D/g,""),Be=a((({title:e,links:t,className:a="",context:i})=>{const l=i.useRouter(),{handlerDecorator:s}=i;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-5 py-5",children:t.map(((e,t)=>n(Re,{index:t,...g({router:l,handlerDecorator:s},e)},String(t))))}):null]})})),Re=a((({className:e="",index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),Le=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],Oe=a((({href:e})=>{const{icon:t,width:r,height:a,label:i}=Le.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main",href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:s&&n(s,{name:t,width:r,height:a,asSVG:!0,className:"block"})}):null})),Ae=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:i}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Oe,{...g({router:a,handlerDecorator:i},e)},String(t))))})})),Me=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans 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-5 pt-[5px]",children:t.map(((e,t)=>n(Ve,{index:t,...g({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),Ve=a((({className:e,index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),Pe=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch();return r("form",{className:`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:"w-[20px] h-[20px]",children:n(s,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input"}),n($,{version:"primary",text:"Найти",className:"w-auto 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:"Найти"})})]})})),He=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkDocs",documents:e.items||[]}]}))),Ze=a((({className:e="",documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:d})=>{const m={context:c,accordionItems:He(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(De,{className:"overflow-hidden",items:i,context:c,hasButton:!0}),n(ye,{className:"p-0 pt-0 pb-0 mb-4",...m}),n("div",{children:d?.map(Ee)}),n(_e,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Pe,{context:c,className:"grow"}),n(Ae,{className:"pb-4",media:l,context:c}),n(Be,{title:o,links:a,context:c}),n(Me,{links:t,context:c})]})})),Ee=(e,t)=>{const{icon:a,href:i,text:l}=e;return r($,{href:i,className:"flex text-sm mb-4",children:[a?n(s,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`footer-${t}`)},Fe=(e,t,n=((e,t)=>t.startsWith(e)))=>n(h(e),(e=>(e||"").replace(p,""))(h(m(e)?t.href:t.pathname))),We=e=>t=>Fe(t.href,e),ze=e=>t=>t.items?.some(We(e))||Fe(t.href,e)||((e,t)=>u(e)===u(t.href))(t.href,e),Ge=e=>t=>e?.href===t?.href,Ue=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(Ge(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Ge(e))))));var n,r,a};async function Je(){const e=await fetch(Ke());return await e.json()}function Ke(){return`/wcms-resources/${l.SITEMAP||"sitemap"}.json`}const Qe="absolute left-0 -bottom-3 w-full h-[2px]",Xe=a((({className:e,text:t,href:a,target:i,active:l,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:s,children:[n("span",{className:Ye(o,l),children:t||c}),l?n("div",{className:qe(o,l)}):null]}))),Ye=(e,t)=>{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`},qe=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Qe}`:Qe,et=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:i="",children:l})=>{const[c,o]=e.useGeolocation(i);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4",children:[n("button",{className:"absolute top-4 right-4",onClick:a,children:n(s,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r($,{onClick:o,className:"flex items-center text-sm text-secondary-text mb-4",children:[n(s,{name:"GeolocationIcon",width:"24",height:"24",className:"box-border mr-2",asSVG:!0}),c]}),l,n("div",{className:"mb-7",children:t?.map(tt)}),n(Pe,{context:e,className:"grow"})]})})),tt=(e,t)=>{const{icon:a,href:i,text:l}=e;return r($,{href:i,className:"flex text-sm mb-4",children:[a?n(s,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},nt=a((({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:"pr-4",onClick:e,"aria-label":"Открыть меню",children:n(s,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(Ce,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm",children:"Войти"})]}))),rt=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l,burgerSubMenu:s})=>{const c=i.useRouter(),o=function(e){const{data:t}=e(Ke(),Je);return t||{}}(i.useAsyncData),{handlerDecorator:d}=i,m=Ue(o.topItems,l).find(ze(c))?.items,h=(e=>(t=[])=>{const n=t?.filter(We(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(c)(m),[u,x]=i.useState(!1),p=()=>x(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0",children:[n(nt,{onClick:p,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex",children:m?.map(((e,t)=>at({...g({router:c,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(et,{context:i,onClick:p,burgerSubMenu:s,defaultLocation:t,children:n(ye,{context:i,accordionItems:He(l),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),at=(e,t)=>n(Xe,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),it=a((({className:e="",context:t,title:r})=>n(M,{className:`pr-0 min-h-0 ${e}`,context:t,title:r,description:"Блок в разработке...",children:n("figure",{className:"m-0",children:lt()})}))),lt=(e=3)=>ct(100,e).map((e=>Math.floor(e))).map(st),st=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ct=(e,t)=>[e].concat(t>0?ct(e/1.618,t-1):[]),ot={primary:"text-primary-text",secondary:"text-white"},dt={primary:"text-secondary-text",secondary:"text-white"};const mt=a((({className:e,context:t,title:a,headingType:i,description:l,benefits:c,buttons:o,image:d,items:m,version:h="primary"})=>r("div",{className:`${e||""}`,children:[n("div",{children:n(O,{context:t,title:a,headingType:i||"h2",description:l,items:m,buttons:o,children:c?.length?n("div",{className:"mt-[19px]",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(s,{className:"w-[25px] h-[25px] rounded-full box-border",name:e.icon,width:"24",height:"24"}),n("div",{className:`font-medium text-m-base m-0 ${ot[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${dt[a]}`,children:e.description})]},String(t))}(e,t,h)))}):null})}),d?.src&&n("div",{className:"mt-5",children:n(N,{image:{className:"block",...d}})})]}))),ht=a((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(mt,{...e})})})),ut=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 py-6",role:"listitem",children:n("div",{className:"flex grow",children:n(mt,{context:r,headingType:t,...e})})}))),xt=a((({className:e,context:t,duration:a=0,slides:i=[]})=>{const l=i.map((e=>e.productBlock)),[s,c]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${s}00%)`},role:"list",children:l.map(((e,r)=>n(ut,{block:e,context:t},String(r))))}),n("div",{className:"flex px-4 py-6",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:r,onClick:a,duration:i}){const l=t===r?"animate-slide bg-primary-main":"bg-main-divider";return n("button",{type:"button",onClick:a,"aria-label":e?.title,className:"relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0",children:n("div",{className:`absolute bottom-0 left-0 w-full h-[3px] ${l}`,style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})},String(t))}({slide:e.productBlock,i:t,activeSlideIndex:s,onClick:()=>c(t),duration:a})))})]})}));const pt=a((({className:e,title:t,description:a,steps:i,size:l="normal"})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${e||""}`,children:[t&&n(d,{type:"h3",className:"text-center",text:t}),a&&n("p",{className:`text-m-md text-center ${t&&"mt-2"}`,children:a}),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(((e,t)=>ft({step:e,size:l,i:t,length:i.length})))})}):null]}))),ft=e=>{const{step:t,size:a,i:i,length:l}=e,s=l-1===i,c="normal"===a?"ml-[34px]":"ml-[24px]";return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{children:[bt(t,a,i),!s&&n("div",{className:`min-h-8 h-full w-[2px] bg-secondary-light ${c}`})]}),r("div",{className:"flex flex-col justify-center relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:"font-normal text-sm text-secondary-text text-left "+(t.label?"mt-1":""),children:t.description})]})]},String(i))},String(i))},bt=(e,t,r)=>{const a="normal"===t?"38":"27";return n("div",{className:`${"normal"===t?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium text-secondary-text self-center ${"normal"===t?"text-m-title":"text-m-title-xs"}`,children:e.icon&&n(s,{name:e.icon,width:a,height:a})||r+1})})},gt={ExchangeRateTile:W,Footer:Ze,Header:rt,Headline:Q,LinkDocs:oe,Placeholder:it,ProductBlock:ht,ProductGallery:xt,TextBlock:ue,StepsBlock:pt},Nt=a((({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:vt()}))),vt=()=>{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"})]})},yt=a((({className:e,context:t})=>{const a=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[n(Nt,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Nt,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),wt=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),kt=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:d=wt})=>{const{header:m}=s;return r("section",{className:`relative ${St(i)} ${e||""}`,"data-theme":o,children:[m?.blocks?.length?n("div",{className:`${St(m?.style)}`,children:m.blocks.map(((e,n)=>$t({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>$t({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(yt,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function $t({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l in r||console.warn(`No block with "${l}" is registered`);const s=r[l]||it;return t({blockClassName:St(e.style),block:e,render:e=>{const{version:c,content:o,blocks:d}=e.block;return n(s,{className:e.blockClassName,version:c,context:a,...o,children:d?.length?d.map(((e,n)=>$t({block:e,blockDecorator:t,blocksRegistry:r,context:a},n))):null},`${l}-${i}`)}},`block-${i}`)}function St(e){return e?e.join(" "):""}const Ct=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,description:l,keywords:s,robots:c,og:o}=t;return r(e,{children:[n("title",{children:i}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l&&n("meta",{name:"description",content:l}),s&&n("meta",{name:"keywords",content:s.join(",")}),c&&n("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,a]})}));function _t(e){return e?.filter((({mobile:e})=>!e?.hidden)).map(Dt)}function Dt(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}e.Blocks=gt,e.ContentPage=kt,e.ContentPageHead=Ct,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.Header=rt,e.Icon=s,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");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(i,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:a}=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:a},body:JSON.stringify({node_ids:r})}),{likes:i}=await n.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:i}=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:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:i}=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:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||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=l,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:n}=e;return{...e,blocks:_t(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:_t(n[t].blocks)}})),{})}},e.url=x,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Accordion = 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
|
-
const
|
|
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 font-sans bg-white text-primary-text ${bordered ? 'px-4' : ''} ${className}`, children: [title ? (
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `py-6 font-sans bg-white text-primary-text ${bordered ? 'px-4' : ''} ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { type: "h3", className: "mb-2 text-center", text: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-md 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,
|
|
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,qCACE,SAAS,EAAE,6CACT,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACtB,IAAI,SAAS,EAAE,aAEd,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,IAAI,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9E,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,4BAA4B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACpF,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,gBAAgB,CAAC,EAAE,CAIxB,CACH,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,16 +2,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.BaseTile = 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
|
-
const
|
|
5
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const BaseTileInner_1 = require("./BaseTileInner");
|
|
7
|
-
const
|
|
7
|
+
const getHeadingType_1 = require("./getHeadingType");
|
|
8
8
|
const alignBlock = {
|
|
9
9
|
left: 'items-start',
|
|
10
10
|
center: 'items-center',
|
|
11
11
|
right: 'items-end',
|
|
12
12
|
};
|
|
13
13
|
const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
|
|
14
|
-
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, context, title,
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full ${alignBlock[align]}`, children: [title && ((0, jsx_runtime_1.jsx)(
|
|
14
|
+
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, context, title, headingType, description, children, buttons, image, items, version = 'primary', align = 'left', }) => {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full ${alignBlock[align]}`, children: [title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { type: headingType || (0, getHeadingType_1.getHeadingType)(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, text: title })), (0, jsx_runtime_1.jsx)(BaseTileInner_1.BaseTileInner, { context: context, buttons: buttons, image: image, children: children, description: description, items: items })] }));
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=BaseTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,mDAAgD;AAEhD,qDAAkD;AAElD,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAIF,MAAM,aAAa,GAAG,mDAAmD,CAAC;AAE7D,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,EACL,WAAW,EACX,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,MAAM,GACf,EAAE,EAAE;IACH,OAAO,CACL,iCAAK,SAAS,EAAE,uCAAuC,UAAU,CAAC,KAAK,CAAC,EAAE,aACvE,KAAK,IAAI,CACR,uBAAC,iBAAO,IACN,IAAI,EAAE,WAAW,IAAI,IAAA,+BAAc,EAAC,SAAS,CAAC,EAC9C,SAAS,EAAE,GAAG,aAAa,IAAI,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,EACjF,IAAI,EAAE,KAAK,GACX,CACH,EACD,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,GACZ,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import type { HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
4
5
|
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
5
|
-
import type { TitleSize } from '../../ui-kit/Title/TitleProps';
|
|
6
6
|
/**
|
|
7
7
|
* @title Выравнивание
|
|
8
8
|
* @enumNames [
|
|
@@ -18,8 +18,7 @@ export interface BaseTileIconButton extends ButtonWithIconProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* @title Общий компонент плиток
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
22
|
-
}
|
|
21
|
+
export declare type BaseTileCommonProps = BaseTileTitleProps & BaseTileMainProps;
|
|
23
22
|
/**
|
|
24
23
|
* @title Заголовк плитки
|
|
25
24
|
*/
|
|
@@ -27,10 +26,9 @@ export interface BaseTileTitleProps {
|
|
|
27
26
|
/** @title Заголовок */
|
|
28
27
|
title?: string;
|
|
29
28
|
/**
|
|
30
|
-
* @title
|
|
31
|
-
* @default M
|
|
29
|
+
* @title Тип заголовка
|
|
32
30
|
*/
|
|
33
|
-
|
|
31
|
+
headingType?: HeadingType;
|
|
34
32
|
}
|
|
35
33
|
export interface BaseTileMainProps {
|
|
36
34
|
description?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getHeadingType(className?: string): "h2" | "h3" | "h4";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
2
|
+
exports.getHeadingType = void 0;
|
|
3
3
|
const getColSpan_1 = require("../../utils/getColSpan");
|
|
4
|
-
function
|
|
4
|
+
function getHeadingType(className = '') {
|
|
5
5
|
const colSpan = (0, getColSpan_1.getColSpan)(className);
|
|
6
6
|
if (colSpan <= 4) {
|
|
7
|
-
return '
|
|
7
|
+
return 'h4';
|
|
8
8
|
}
|
|
9
9
|
else if (colSpan <= 8) {
|
|
10
|
-
return '
|
|
10
|
+
return 'h3';
|
|
11
11
|
}
|
|
12
12
|
else {
|
|
13
|
-
return '
|
|
13
|
+
return 'h2';
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
17
|
-
//# sourceMappingURL=
|
|
16
|
+
exports.getHeadingType = getHeadingType;
|
|
17
|
+
//# sourceMappingURL=getHeadingType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHeadingType.js","sourceRoot":"","sources":["../../../src/components/BaseTile/getHeadingType.ts"],"names":[],"mappings":";;AAAA,uDAAoD;AAEpD,SAAgB,cAAc,CAAC,SAAS,GAAG,EAAE;IAC3C,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,SAAS,CAAC,CAAC;IACtC,IAAI,OAAO,IAAI,CAAC,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;SAAM,IAAI,OAAO,IAAI,CAAC,EAAE;QACvB,OAAO,IAAI,CAAC;KACb;SAAM;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AATD,wCASC"}
|
|
@@ -2,10 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.BenefitsBlock = 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
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
5
6
|
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
|
-
const Title_1 = require("../../ui-kit/Title/Title");
|
|
7
7
|
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className, title, benefits }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${className || ''}`, children: [title ? (0, jsx_runtime_1.jsx)(
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${className || ''}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { type: "h2", className: "max-w-[47rem] text-center", text: title }) : null, benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-2 gap-5 mt-9", children: benefits.map(renderStep) })) : null] }));
|
|
9
9
|
});
|
|
10
10
|
const renderStep = (benefit, i) => {
|
|
11
11
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center p-10 gap-5 max-w-[580px]", children: [benefit.icon && ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "h-[70px] w-[70px] min-w-[70px] min-h-[70px]", name: benefit.icon, width: "70", height: "70" })), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h3", { className: "font-medium text-xl m-0", children: benefit.label }), benefit.description && ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm mt-2", children: benefit.description }))] })] }, String(i)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,iDAA8C;AAKjC,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,qCACE,SAAS,EAAE,6EACT,SAAS,IAAI,EACf,EAAE,aAED,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAC,2BAA2B,EAAC,IAAI,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACvF,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,6BAA6B,YAAE,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,GAAO,CAC9E,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,OAAgB,EAAE,CAAS,EAAE,EAAE;IACjD,OAAO,CACL,iCAAqB,SAAS,EAAC,4CAA4C,aACxE,OAAO,CAAC,IAAI,IAAI,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,6CAA6C,EACvD,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,EACD,4CACE,+BAAI,SAAS,EAAC,yBAAyB,YAAE,OAAO,CAAC,KAAK,GAAM,EAC3D,OAAO,CAAC,WAAW,IAAI,CACtB,gCAAK,SAAS,EAAC,0BAA0B,YAAE,OAAO,CAAC,WAAW,GAAO,CACtE,IACG,KAdE,MAAM,CAAC,CAAC,CAAC,CAeb,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ export declare const Blocks: {
|
|
|
3
3
|
Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
|
|
4
4
|
Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
|
|
5
5
|
Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
|
|
6
|
+
LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
|
|
6
7
|
Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
|
|
7
8
|
ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
|
|
8
9
|
ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductGallery/ProductGallery").ProductGalleryProps, any>, context?: any) => any;
|
|
@@ -4,6 +4,7 @@ const ExchangeRateTile_1 = require("./ExchangeRateTile/ExchangeRateTile");
|
|
|
4
4
|
const Footer_1 = require("./Footer/Footer");
|
|
5
5
|
const Header_1 = require("./Header/Header");
|
|
6
6
|
const Headline_1 = require("./Headline/Headline");
|
|
7
|
+
const LinkDocs_1 = require("./LinkDocs/LinkDocs");
|
|
7
8
|
const Placeholder_1 = require("./Placeholder/Placeholder");
|
|
8
9
|
const ProductBlock_1 = require("./ProductBlock/ProductBlock");
|
|
9
10
|
const ProductGallery_1 = require("./ProductGallery/ProductGallery");
|
|
@@ -14,6 +15,7 @@ exports.Blocks = {
|
|
|
14
15
|
Footer: Footer_1.Footer,
|
|
15
16
|
Header: Header_1.Header,
|
|
16
17
|
Headline: Headline_1.Headline,
|
|
18
|
+
LinkDocs: LinkDocs_1.LinkDocs,
|
|
17
19
|
Placeholder: Placeholder_1.Placeholder,
|
|
18
20
|
ProductBlock: ProductBlock_1.ProductBlock,
|
|
19
21
|
ProductGallery: ProductGallery_1.ProductGallery,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,0EAAuE;AACvE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,SAAS,EAAT,qBAAS;IACT,UAAU,EAAV,uBAAU;CACX,CAAC"}
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,0EAAuE;AACvE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,SAAS,EAAT,qBAAS;IACT,UAAU,EAAV,uBAAU;CACX,CAAC"}
|
|
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const useComparisonTableScroll_1 = require("../../hooks/useComparisonTableScroll");
|
|
6
6
|
const useLink_1 = require("../../hooks/useLink");
|
|
7
7
|
const ArrowButton_1 = require("../../ui-kit/Button/ArrowButton");
|
|
8
|
-
const
|
|
8
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
9
9
|
const constants_1 = require("./constants");
|
|
10
10
|
const HeaderCell_1 = require("./HeaderCell");
|
|
11
11
|
const TableCarouselContainer_1 = require("./TableCarouselContainer");
|
|
@@ -31,6 +31,6 @@ exports.ComparisonTable = (0, uni_jsx_1.JSX)(({ className, context, title, rowHe
|
|
|
31
31
|
setActiveCardIndex,
|
|
32
32
|
});
|
|
33
33
|
const showToggle = () => setIsShowAllRow(!isShowAllRow);
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, children: [(0, jsx_runtime_1.jsx)(
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { type: "h2", className: "max-w-[47rem] text-center mb-9 mx-auto", text: title }), (0, jsx_runtime_1.jsxs)("div", { role: "table", children: [colHeaders?.length ? ((0, jsx_runtime_1.jsxs)(TableRowContainer_1.TableRowContainer, { children: [(0, jsx_runtime_1.jsx)("div", { className: constants_1.FIRST_CELL_CLASSES, role: "columnheader", scope: "col" }), (0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, children: colHeaders.map((header, i) => ((0, jsx_runtime_1.jsx)(HeaderCell_1.HeaderCell, { ...header, link: header.link && (0, useLink_1.useLink)({ router, handlerDecorator }, header.link) }, String(i)))) })] })) : null, rowData?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [rowData.map((row, i, { length }) => ((0, jsx_runtime_1.jsx)(TableRow_1.TableRow, { row: row, isFirstRow: i === 0, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, isColoredFirstColumn: isColoredFirstColumn }, String(i)))), isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "absolute top-7 right-7 z-10", children: [(0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, { onClick: nextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }), (0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, { className: "mt-4 rotate-180", onClick: prevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })] }) })) : null] })) : null] }), isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null, visibleRowLength ? ((0, jsx_runtime_1.jsx)("div", { className: "pr-[50px]", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full", children: [(0, jsx_runtime_1.jsx)("div", { className: constants_1.FIRST_CELL_CLASSES }), (0, jsx_runtime_1.jsx)("button", { onClick: showToggle, className: "mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: (0, jsx_runtime_1.jsx)("div", { className: "font-sans font-medium text-xs py-[11px]", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) })) : null] }));
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=ComparisonTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComparisonTable.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/ComparisonTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mFAAgF;AAChF,iDAA8C;AAE9C,iEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"ComparisonTable.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/ComparisonTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mFAAgF;AAChF,iDAA8C;AAE9C,iEAA8D;AAC9D,0DAAuD;AAEvD,2CAAuF;AACvF,6CAA0C;AAC1C,qEAAkE;AAClE,yCAAsC;AACtC,2DAAwD;AAI3C,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,EACL,UAAU,EACV,OAAO,EACP,gBAAgB,GAAG,CAAC,EACpB,oBAAoB,GAAG,KAAK,GAC7B,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,gBAAgB,CAAC,CAAC;IAE5E,MAAM,UAAU,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAC9D,MAAM,OAAO,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,UAAU;QACxB,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACpB,MAAM;QACN,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAC7C,CAAC,CAAC;SACF,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;IAEjE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,GAC/E,IAAA,mDAAwB,EAAC;QACvB,OAAO;QACP,mBAAmB,EAAE,kCAAsB;QAC3C,eAAe;QACf,kBAAkB;KACnB,CAAC,CAAC;IAEL,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC;IAExD,OAAO,CACL,qCACE,SAAS,EAAE,qFACT,SAAS,IAAI,EACf,EAAE,aAEF,uBAAC,iBAAO,IAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAC,wCAAwC,EAAC,IAAI,EAAE,KAAK,GAAI,EACrF,iCAAK,IAAI,EAAC,OAAO,aACd,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,wBAAC,qCAAiB,eAChB,gCAAK,SAAS,EAAE,8BAAkB,EAAE,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,KAAK,GAAG,EACtE,uBAAC,+CAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,wBAAY,YAChF,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAC7B,uBAAC,uBAAU,OAEL,MAAM,EACV,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,IAFlE,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,GACqB,IACP,CACrB,CAAC,CAAC,CAAC,IAAI,EAEP,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACjB,iCAAK,SAAS,EAAC,UAAU,aACtB,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACnC,uBAAC,mBAAQ,IAEP,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,CAAC,KAAK,CAAC,EACnB,SAAS,EAAE,CAAC,GAAG,CAAC,KAAK,MAAM,EAC3B,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,IALrC,MAAM,CAAC,CAAC,CAAC,CAMd,CACH,CAAC,EACD,iBAAiB,CAAC,CAAC,CAAC,CACnB,0CACE,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,uBAAC,yBAAW,IACV,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,CAAC,cAAc,EACzB,SAAS,EAAC,mGAAmB,GAC7B,EACF,uBAAC,yBAAW,IACV,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,CAAC,cAAc,EACzB,SAAS,EAAC,6FAAkB,GAC5B,IACE,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,EAEL,iBAAiB,CAAC,CAAC,CAAC,CACnB,gCAAK,SAAS,EAAC,8DAA8D,GAAG,CACjF,CAAC,CAAC,CAAC,IAAI,EAEP,gBAAgB,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,WAAW,YACxB,iCAAK,SAAS,EAAC,aAAa,aAC1B,gCAAK,SAAS,EAAE,8BAAkB,GAAI,EACtC,mCACE,OAAO,EAAE,UAAU,EACnB,SAAS,EAAC,iIAAiI,YAE3I,gCAAK,SAAS,EAAC,yCAAyC,YACrD,CAAC,YAAY,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,QAAQ,GAChD,GACC,IACL,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,9 +3,9 @@ exports.HeaderCell = 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 Button_1 = require("../../ui-kit/Button/Button");
|
|
6
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
7
|
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
7
8
|
const Img_1 = require("../../ui-kit/Img");
|
|
8
|
-
const Title_1 = require("../../ui-kit/Title/Title");
|
|
9
9
|
const constants_1 = require("./constants");
|
|
10
|
-
exports.HeaderCell = (0, uni_jsx_1.JSX)(({ icon, image, title, link }) => ((0, jsx_runtime_1.jsxs)("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${constants_1.BORDER_CLASSES} ${constants_1.GRADIENT}`, role: "columnheader", scope: "col", children: [icon && !image?.src && ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", name: icon, width: "63", height: "63" })), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-[18px]", image: image }), title && (
|
|
10
|
+
exports.HeaderCell = (0, uni_jsx_1.JSX)(({ icon, image, title, link }) => ((0, jsx_runtime_1.jsxs)("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${constants_1.BORDER_CLASSES} ${constants_1.GRADIENT}`, role: "columnheader", scope: "col", children: [icon && !image?.src && ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", name: icon, width: "63", height: "63" })), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-[18px]", image: image }), title && (0, jsx_runtime_1.jsx)(Heading_1.Heading, { type: "h4", className: "text-center text-white", text: title }), link?.text && ((0, jsx_runtime_1.jsx)("div", { className: "mt-auto w-full", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: (0, jsx_runtime_1.jsx)("div", { className: "font-medium text-xs py-[11px]", children: link.text }) }) }))] })));
|
|
11
11
|
//# sourceMappingURL=HeaderCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderCell.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/HeaderCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AACpD,iDAA8C;AAE9C,0CAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"HeaderCell.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/HeaderCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AACpD,0DAAuD;AACvD,iDAA8C;AAE9C,0CAAuC;AACvC,2CAAuD;AAS1C,QAAA,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC/E,iCACE,SAAS,EAAE,0FAA0F,0BAAc,IAAI,oBAAQ,EAAE,EACjI,IAAI,EAAC,cAAc,EACnB,KAAK,EAAC,KAAK,aAEV,IAAI,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CACtB,uBAAC,WAAI,IACH,SAAS,EAAC,kDAAkD,EAC5D,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,EACA,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,GAAI,EACzD,KAAK,IAAI,uBAAC,iBAAO,IAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAC,wBAAwB,EAAC,IAAI,EAAE,KAAK,GAAI,EAC9E,IAAI,EAAE,IAAI,IAAI,CACb,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,eAAM,IACL,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,SAAS,EAAC,4FAA4F,YAEtG,gCAAK,SAAS,EAAC,+BAA+B,YAAE,IAAI,CAAC,IAAI,GAAO,GACzD,GACL,CACP,IACG,CACP,CAAC,CAAC"}
|
|
@@ -15,9 +15,9 @@ const ICONS_MAP = [
|
|
|
15
15
|
{ origins: ['ok.ru'], icon: 'OkIcon', label: 'Одноклассники', width: '12px', height: '20px' },
|
|
16
16
|
];
|
|
17
17
|
exports.MediaButton = (0, uni_jsx_1.JSX)(({ href }) => {
|
|
18
|
-
const { icon, width, height } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
18
|
+
const { icon, width, height, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
19
19
|
if (!icon)
|
|
20
20
|
return null;
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main", href: href, target: "_blank", rel: "noopener noreferrer", children: Icon_1.Icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: width, height: height, asSVG: true, className: "block" }) }));
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main", href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: Icon_1.Icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: width, height: height, asSVG: true, className: "block" }) }));
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=MediaButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,MAAM,SAAS,GAMV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IAC1F,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;CAC9F,CAAC;AAMW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,MAAM,SAAS,GAMV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IAC1F,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;CAC9F,CAAC;AAMW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAClC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,OAAO,CACL,8BACE,SAAS,EAAC,2JAA2J,EACrK,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,YAExB,WAAI,IAAI,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,QAAC,SAAS,EAAC,OAAO,GAAG,GACjF,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -4,10 +4,10 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockItem_1 = require("../../ui-kit/BlockItem/BlockItem");
|
|
6
6
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
7
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
8
|
const Img_1 = require("../../ui-kit/Img");
|
|
8
|
-
const Title_1 = require("../../ui-kit/Title/Title");
|
|
9
9
|
exports.Gallery = (0, uni_jsx_1.JSX)(({ title, description, cards = [], className }) => {
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white p-4 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-8", children: [(0, jsx_runtime_1.jsx)(
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white p-4 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-8", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { type: "h2", className: "text-center", text: title }), description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-base max-w-[600px] mt-3", children: description })) : null] }), (0, jsx_runtime_1.jsx)("div", { className: "horizontal-list no-scrollbar", role: "list", children: cards?.map(renderCard) })] }));
|
|
11
11
|
});
|
|
12
12
|
function renderCard(card, key) {
|
|
13
13
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "box-border horizontal-list-item border-solid border rounded-md border-main-divider p-4 mx-1 flex flex-col justify-between items-stretch", role: "listitem", children: [(0, jsx_runtime_1.jsxs)("div", { children: [card.image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: card.image }) })) : null, card.title ? ((0, jsx_runtime_1.jsx)("h4", { className: `font-medium text-xl m-0 ${!card.description && !card.items?.length ? 'text-center' : ''}`, children: card.title })) : null, card.description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm text-secondary-text mt-2", children: card.description })) : null, card.items?.length ? renderItems(card.items) : null] }), card?.button?.href ? (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-6", ...card.button }) : null] }, key));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,gEAA6D;AAC7D,uDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,gEAA6D;AAC7D,uDAAoD;AACpD,0DAAuD;AACvD,0CAAuC;AAI1B,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACzF,OAAO,CACL,qCACE,SAAS,EAAE,qEAAqE,SAAS,EAAE,aAE3F,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,iBAAO,IAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,GAAI,EACzD,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,0CAA0C,YAAE,WAAW,GAAO,CAC9E,CAAC,CAAC,CAAC,IAAI,IACJ,EACN,gCAAK,SAAS,EAAC,8BAA8B,EAAC,IAAI,EAAC,MAAM,YACtD,KAAK,EAAE,GAAG,CAAC,UAAU,CAAC,GACnB,IACE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,IAAiB,EAAE,GAAW;IAChD,OAAO,CACL,iCACE,SAAS,EAAC,yIAAyI,EACnJ,IAAI,EAAC,UAAU,aAGf,4CACG,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACjB,gCAAK,SAAS,EAAC,qBAAqB,YAClC,uBAAC,SAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,GACvC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACZ,+BACE,SAAS,EAAE,2BACT,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAC7D,EAAE,YAED,IAAI,CAAC,KAAK,GACR,CACN,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,8CAA8C,YAAE,IAAI,CAAC,WAAW,GAAO,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAChD,EACL,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,eAAM,IAAC,SAAS,EAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI,KAtBpE,GAAG,CAuBJ,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,QAAkB,EAAE;IACvC,OAAO,CACL,oCAAS,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAC,MAAM,YAChD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,qBAAS,cACR,iCAAM,SAAS,EAAC,6BAA6B,YAAE,IAAI,GAAQ,IAD7C,MAAM,CAAC,CAAC,CAAC,CAEb,CACb,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -2,12 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.GalleryContainer = 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
|
-
const
|
|
5
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const Tile_1 = require("../Tile/Tile");
|
|
7
7
|
const constants_1 = require("./constants");
|
|
8
8
|
const GalleryCardInner_1 = require("./GalleryCardInner");
|
|
9
9
|
exports.GalleryContainer = (0, uni_jsx_1.JSX)(({ context, title, description, cards = [], version = 'normal', activeCardIndex }) => {
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-8", children: [title ? (0, jsx_runtime_1.jsx)(
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-8", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { type: "h2", className: "text-center", text: title }) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-base max-w-[600px] mt-2.5", children: description })) : null] }), (0, jsx_runtime_1.jsx)("div", { className: `flex ${cards?.length <= constants_1.galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * constants_1.cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
|
|
11
11
|
});
|
|
12
12
|
function renderCard({ card, version, context }, i) {
|
|
13
13
|
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { context: context, className: `box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryContainer.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"GalleryContainer.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,uCAAoC;AACpC,2CAAoF;AACpF,yDAAsD;AAczC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,GAAG,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,4CACE,gCAAK,SAAS,EAAC,oFAAoF,GAAG,EACtG,iCAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,IAAI,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,IAAI,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACzE,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,4CAA4C,YAAE,WAAW,GAAO,CAChF,CAAC,CAAC,CAAC,IAAI,IACJ,EACN,gCACE,SAAS,EAAE,QACT,KAAK,EAAE,MAAM,IAAI,qCAAyB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAC3E,gBAAgB,EAChB,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,eAAe,GAAG,wBAAY,CAAC,OAAO,CAAC,KAAK,EAAE,EACjF,IAAI,EAAC,MAAM,YAEV,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,GAC/D,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAmB,EAAE,CAAS;IACxE,OAAO,CACL,uBAAC,WAAI,IACH,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE;wBACO,wBAAY,CAAC,OAAO,CAAC,oBAAoB,EAC3D,OAAO,EAAE,IAAI,CAAC,OAAO,EAErB,IAAI,EAAC,UAAU,YAEf,uBAAC,mCAAgB,OAAK,IAAI,GAAI,IAHzB,MAAM,CAAC,CAAC,CAAC,CAIT,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -4,5 +4,5 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
6
|
const Logo_1 = require("../../ui-kit/Logo/Logo");
|
|
7
|
-
exports.HeaderTop = (0, uni_jsx_1.JSX)(({ onClick, bgColor }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)("button", { className: "pr-4", onClick: onClick, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), (0, jsx_runtime_1.jsx)(Logo_1.Logo, { bgColor: bgColor })] }), (0, jsx_runtime_1.jsx)("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
7
|
+
exports.HeaderTop = (0, uni_jsx_1.JSX)(({ onClick, bgColor }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)("button", { className: "pr-4", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), (0, jsx_runtime_1.jsx)(Logo_1.Logo, { bgColor: bgColor })] }), (0, jsx_runtime_1.jsx)("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
8
8
|
//# sourceMappingURL=HeaderTop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,iDAA8C;AAOjC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrE,iCAAK,SAAS,EAAC,kFAAkF,aAC/F,iCAAK,SAAS,EAAC,mBAAmB,aAChC,mCAAQ,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,iDAA8C;AAOjC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrE,iCAAK,SAAS,EAAC,kFAAkF,aAC/F,iCAAK,SAAS,EAAC,mBAAmB,aAChC,mCAAQ,SAAS,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,gBAAa,qEAAc,YAClE,uBAAC,WAAI,IACH,IAAI,EAAE,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAC/D,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,GACK,EACT,uBAAC,WAAI,IAAC,OAAO,EAAE,OAAO,GAAI,IACtB,EACN,mCAAQ,SAAS,EAAE,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,YAAY,UAAU,+CAElF,IACL,CACP,CAAC,CAAC"}
|