@redneckz/wildless-cms-uni-blocks 0.3.6 → 0.3.9
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 +48 -27
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/OkIcon.svg +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +1 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/dist/components/Accordion/AccordionBlocks.js +2 -0
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +7 -2
- package/dist/components/Accordion/AccordionItem.mobile.js +3 -2
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js +2 -2
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BlockContent.d.ts +2 -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/TableCell.js +1 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.js +1 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ContentPage/ContentPageHead.js +13 -6
- package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/dist/components/Footer/Contacts.js +2 -2
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +2 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/dist/components/Footer/MediaButton.js +1 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/TextInformation.mobile.js +1 -1
- package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +6 -2
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +5 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +1 -1
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +2 -3
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkList/LinkList.d.ts +5 -0
- package/dist/components/LinkList/LinkList.js +14 -0
- package/dist/components/LinkList/LinkList.js.map +1 -0
- package/dist/components/LinkList/LinkListContent.d.ts +8 -0
- package/dist/components/LinkList/LinkListContent.js +2 -0
- package/dist/components/LinkList/LinkListContent.js.map +1 -0
- package/dist/components/LinkList/linkListContentExample.d.ts +2 -0
- package/dist/components/LinkList/linkListContentExample.js +23 -0
- package/dist/components/LinkList/linkListContentExample.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.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/ProductGalleryBlock.mobile.js +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.d.ts +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/types.d.ts +8 -9
- package/dist/ui-kit/BlockItem/BlockItem.js +1 -1
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/Description/Description.js +2 -2
- package/dist/ui-kit/Description/Description.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -4
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/dist/utils/getAccordionItems.js +1 -1
- package/dist/utils/getCurrentDate.d.ts +1 -0
- package/dist/utils/getCurrentDate.js +7 -0
- package/dist/utils/getCurrentDate.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +1 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/lib/components/Accordion/AccordionBlocks.js +2 -0
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +7 -2
- package/lib/components/Accordion/AccordionItem.mobile.js +3 -2
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -2
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BlockContent.d.ts +2 -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/TableCell.js +1 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.js +1 -1
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ContentPage/ContentPageHead.js +13 -6
- package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/lib/components/Footer/Contacts.js +2 -2
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +2 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/lib/components/Footer/MediaButton.js +1 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/TextInformation.mobile.js +1 -1
- package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +6 -2
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +5 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +1 -1
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +2 -3
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkList/LinkList.d.ts +5 -0
- package/lib/components/LinkList/LinkList.fixture.d.ts +2 -0
- package/lib/components/LinkList/LinkList.js +12 -0
- package/lib/components/LinkList/LinkList.js.map +1 -0
- package/lib/components/LinkList/LinkListContent.d.ts +8 -0
- package/lib/components/LinkList/LinkListContent.js +2 -0
- package/lib/components/LinkList/LinkListContent.js.map +1 -0
- package/lib/components/LinkList/linkListContentExample.d.ts +2 -0
- package/lib/components/LinkList/linkListContentExample.js +21 -0
- package/lib/components/LinkList/linkListContentExample.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.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/ProductGalleryBlock.mobile.js +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.d.ts +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/types.d.ts +8 -9
- package/lib/ui-kit/BlockItem/BlockItem.js +1 -1
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/Description/Description.js +2 -2
- package/lib/ui-kit/Description/Description.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +3 -4
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/utils/getAccordionItems.js +1 -1
- package/lib/utils/getCurrentDate.d.ts +1 -0
- package/lib/utils/getCurrentDate.js +4 -0
- package/lib/utils/getCurrentDate.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +66 -40
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js +2 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +7 -2
- package/mobile/dist/components/Accordion/AccordionItem.js +3 -2
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -2
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BlockContent.d.ts +2 -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/TableCell.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.js +13 -6
- package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +2 -2
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +2 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +6 -2
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +5 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +2 -3
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.d.ts +5 -0
- package/mobile/dist/components/LinkList/LinkList.js +14 -0
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -0
- package/mobile/dist/components/LinkList/LinkListContent.d.ts +8 -0
- package/mobile/dist/components/LinkList/LinkListContent.js +2 -0
- package/mobile/dist/components/LinkList/LinkListContent.js.map +1 -0
- package/mobile/dist/components/LinkList/linkListContentExample.d.ts +2 -0
- package/mobile/dist/components/LinkList/linkListContentExample.js +23 -0
- package/mobile/dist/components/LinkList/linkListContentExample.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.d.ts +1 -1
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/types.d.ts +8 -9
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +1 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/dist/ui-kit/Description/Description.js +2 -2
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -4
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/utils/getAccordionItems.js +1 -1
- package/mobile/dist/utils/getCurrentDate.d.ts +1 -0
- package/mobile/dist/utils/getCurrentDate.js +7 -0
- package/mobile/dist/utils/getCurrentDate.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +1 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js +2 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +7 -2
- package/mobile/lib/components/Accordion/AccordionItem.js +3 -2
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -2
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +2 -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/TableCell.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.js +13 -6
- package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +2 -2
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +2 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +6 -2
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +5 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +2 -3
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.d.ts +5 -0
- package/mobile/lib/components/LinkList/LinkList.js +12 -0
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -0
- package/mobile/lib/components/LinkList/LinkListContent.d.ts +8 -0
- package/mobile/lib/components/LinkList/LinkListContent.js +2 -0
- package/mobile/lib/components/LinkList/LinkListContent.js.map +1 -0
- package/mobile/lib/components/LinkList/linkListContentExample.d.ts +2 -0
- package/mobile/lib/components/LinkList/linkListContentExample.js +21 -0
- package/mobile/lib/components/LinkList/linkListContentExample.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.d.ts +1 -1
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/types.d.ts +8 -9
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +1 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/lib/ui-kit/Description/Description.js +2 -2
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +3 -4
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/utils/getAccordionItems.js +1 -1
- package/mobile/lib/utils/getCurrentDate.d.ts +1 -0
- package/mobile/lib/utils/getCurrentDate.js +4 -0
- package/mobile/lib/utils/getCurrentDate.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +1 -3
- package/mobile/src/components/Accordion/AccordionBlocks.tsx +2 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +10 -2
- package/mobile/src/components/Accordion/AccordionItem.tsx +5 -4
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +2 -2
- package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
- package/mobile/src/components/BlockContent.ts +3 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableRow.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +20 -17
- package/mobile/src/components/Footer/Contacts.tsx +2 -2
- package/mobile/src/components/Footer/Footer.tsx +3 -3
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +4 -2
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/Gallery/Gallery.example.json +20 -4
- package/mobile/src/components/Gallery/Gallery.tsx +14 -4
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -1
- package/mobile/src/components/Gallery/GalleryInner.tsx +4 -3
- package/mobile/src/components/Header/HeaderBurger.tsx +15 -8
- package/mobile/src/components/Header/HeaderTop.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +4 -2
- package/mobile/src/components/LinkList/LinkList.example.json +21 -0
- package/mobile/src/components/LinkList/LinkList.tsx +28 -0
- package/mobile/src/components/LinkList/LinkListContent.ts +9 -0
- package/mobile/src/components/LinkList/linkListContentExample.ts +22 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +2 -2
- package/mobile/src/icons/OkIcon.svg +1 -0
- package/mobile/src/types.ts +8 -10
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
- package/mobile/src/ui-kit/Description/Description.tsx +2 -2
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +3 -12
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +7 -9
- package/mobile/src/utils/getAccordionItems.ts +1 -1
- package/mobile/src/utils/getCurrentDate.ts +3 -0
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.mobile.tsx +1 -3
- package/src/components/Accordion/AccordionBlocks.tsx +2 -0
- package/src/components/Accordion/AccordionContent.ts +10 -2
- package/src/components/Accordion/AccordionItem.mobile.tsx +5 -4
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +2 -2
- package/src/components/Accordion/utils/isActiveHandler.ts +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
- package/src/components/BlockContent.ts +3 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/src/components/ComparisonTable/TableRow.tsx +1 -1
- package/src/components/ContentPage/ContentPageHead.tsx +20 -17
- package/src/components/Footer/Contacts.tsx +2 -2
- package/src/components/Footer/Footer.mobile.tsx +3 -3
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +4 -2
- package/src/components/Footer/TextInformation.mobile.tsx +2 -2
- package/src/components/Gallery/Gallery.example.json +20 -4
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -0
- package/src/components/Gallery/Gallery.fixture.tsx +9 -1
- package/src/components/Gallery/Gallery.mobile.tsx +14 -4
- package/src/components/Gallery/GalleryCardInner.tsx +12 -1
- package/src/components/Gallery/GalleryInner.tsx +4 -3
- package/src/components/Header/HeaderBurger.tsx +15 -8
- package/src/components/Header/HeaderTop.tsx +2 -2
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +4 -2
- package/src/components/LinkDocs/LinkDocs.tsx +2 -2
- package/src/components/LinkList/LinkList.example.json +21 -0
- package/src/components/LinkList/LinkList.fixture.tsx +13 -0
- package/src/components/LinkList/LinkList.tsx +28 -0
- package/src/components/LinkList/LinkListContent.ts +9 -0
- package/src/components/LinkList/linkListContentExample.ts +22 -0
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +5 -0
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +6 -4
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +2 -0
- package/src/components/ProductGallery/ProductGallery.tsx +3 -3
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +1 -1
- package/src/components/PromoTile/PromoTile.fixture.tsx +2 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +1 -1
- package/src/components/Tile/Tile.tsx +2 -2
- package/src/icons/OkIcon.svg +1 -0
- package/src/types.ts +8 -10
- package/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
- package/src/ui-kit/Description/Description.tsx +2 -2
- package/src/ui-kit/InputRange/InputRange.tsx +3 -12
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +7 -9
- package/src/utils/getAccordionItems.ts +1 -1
- package/src/utils/getCurrentDate.ts +3 -0
|
@@ -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,...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={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"},s=a((e=>{const{className:t,headingType:r,title:a}=e;if(!r)return;return n(r,{className:`font-sans font-medium m-0 ${l[r]} ${t||""}`,children:a})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},o={none:"",primary:"text-primary-main"},m=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:l,color:s="primary",...m})=>{const d=`${c.CDN||""}icons/${t}.svg`;return l?r("svg",{className:`${o[s]} ${e}`,...m,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):n("img",{className:e,src:d,alt:a,title:i,...m,"aria-hidden":"true"})})),d=a((({className:e="",image:t})=>{if(!t)return null;const a={width:t.size?.width?`${t.size?.width}px`:"100%",height:t.size?.height?`${t.size?.height}px`:"100%"};return r("picture",{className:e,children:[t.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:h(t)},`${r}_${e}`))):null,n("img",{src:t.src,className:`m-auto ${t.className||""}`,alt:t.alt||t.title,title:t.title,style:a,...t.size})]})}));function h(e){return e?`image/${String(e)}`:void 0}const x=a((({bgColor:e="transparent",className:t="",title:a,description:i,image:l})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[a&&n(s,{headingType:"h2",className:"text-primary-text",title: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(d,{image:l})})]}))),u=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),p=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),f=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:{...p(l),gap:`${i}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(u,{style:p(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(u,{children:t})}))),b=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 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:g(a,t,r),"aria-hidden":!0},String(a))))}):null)),g=(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"}},N=a((({className:e,context:t,children:a,gap:i=14,padding:l=16,showDots:s=!0})=>{const[c,o]=t.useState(0),[m,d]=t.useState(0);return r("div",{className:e,children:[n(f,{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,m=(({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,m=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 m[a-1]=[s,r],m})({gap:i,padding:l,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:c}),{index:h,fraction:x}=((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,m);o(h),d(x)},children:a}),n(b,{activeIndex:c,indexFraction:m,showDots:s,children:a})]})})),y=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:i,doc:l,icon:s})=>{const{text:c,fileSize:o,...d}=l;return r("a",{className:e,role:"link",...d,children:[s?n(m,{className:t,name:s,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:i,children:d?.href&&v(w(d.href),o)})]}):null]})})),v=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),w=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},k=a((({className:e="",doc:t,icon:r})=>n(y,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),$=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(N,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(k,{className:t?"rounded-md border-main-stroke border p-4":"",doc:e,icon:a},String(r)))):null}))),S=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(k,{className:e?"rounded-md border-main-stroke border p-4":"",doc:t,icon:r})},String(a)))):null}))),C=a((({className:e="",context:t,title:a,subtitle:i,icon:l="DocIconMonoColor",documents:c,listMode:o="vertical",hasBorder:m=!0})=>r("section",{className:`font-sans py-6 px-4 bg-white ${e}`,children:[a?n(s,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("h3",{className:"mb-5 text-center text-m-md",children:i}):null,"vertical"===o?n(S,{hasBorder:m,documents:c,icon:l}):n($,{context:t,hasBorder:m,documents:c,icon:l})]}))),T=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(s,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(d,{className:"mr-6",image:a}),i?.length?n("div",{className:"flex flex-col",children:i.map(j)}):null]})]})));function j(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(m,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48",asSVG:!0}),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 _={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},D={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},I=a((({className:e="",isDotted:t=!0,children:a,version:i="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:L(i)}),n("span",{className:`text-m-md ${_[i]}`,children:a})]}))),L=e=>`rounded-full inline-block mr-3 mt-2 ${D[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,B=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:i,version:l}=e;return n("section",{className:`${t}`,role:"list",children:i?.length?i.map(((e,t)=>n(I,{className:r,isDotted:a,version:l,children:e},String(t)))):null})})),R={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"}},A=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s="",items:c,isDotted:o=!0})=>{const m=R[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${m.background} ${s}`,children:["small"===i?V(m.icon):null,"big"===i?O(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${m.title}`,children:e}):null,t?n("div",{className:`text-sm ${m.description}`,children:t}):null,c?.length?n(B,{items:c,isDotted:o,version:"gray",className:"mt-1 text-m-sm text-secondary-text"}):null]})]})}));function V(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 O(e){return e?.src?n(d,{className:"pb-3 mr-auto",image:e}):null}const M=e=>e?.includes("//"),P=e=>(e||"").replace(/\/?\?.*/,""),Z=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 H=Object.freeze({__proto__:null,isURL:M,withoutQuery:P,getOrigin:Z});const z="/mobile",E=(e,t)=>{if(!e)return e;const n=Z(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function W({router:e,handlerDecorator:t=G},n){const r=((e,t)=>{if(!e)return e;const n=E(e,t)||"",r=t?.pathname.startsWith(z);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 F=a((({text:e,aboveText:t,appendLeft:a,rounded:i,version:l})=>{const s=!e&&!t&&Boolean(a);return function({buttonInnerClasses:e,appendLeft:t,withoutText:a,aboveText:i,text:l}){return r("div",{className:e,children:[t||null,a?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:i}),n("div",{className:"text-m-button font-medium text-left",children:l})]})]})}({buttonInnerClasses:"link"!==l?`flex items-center justify-center\n ${s?"h-12 w-12":"px-8 gap-2 "+(t?"py-2":"py-3.5")} ${i?"rounded-full":""}`:null,appendLeft:a,withoutText:s,aboveText:t,text:e})}));const U={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},J={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},K="w-full text-center font-sans select-none",Q=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:m,version:d="primary",ariaLabel:h,...x})=>{const u=c??n(F,{text:t,aboveText:r,appendLeft:a,rounded:m,version:d});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${K} ${J[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:u}):n("a",{className:`${K} inline-block cursor-pointer no-underline ${U[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:u})})),X=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,i=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(Q,e?{appendLeft:n(m,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(W({router:i,handlerDecorator:a},e),t)))}):null}));const Y=a((e=>{const{className:t,description:r}=e;return n("div",{className:`font-normal text-m-md ${t||""}`,children:r})})),q=a((({className:e="",title:t,children:a,buttons:i,image:l})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),n("div",{children:i})]}),l]})]}))),ee=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function te(e=""){const t=ee(e);return t<=4?"h4":t<=8?"h3":"h2"}function ne(e=""){const t=ee(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function re(e=""){const t=ee(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ae={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ie=a((e=>{const{context:t,title:a,description:i,items:l,children:c,buttons:o,image:m,className:h="",version:x="primary",role:u}=e;return n("section",{className:`font-sans p-9 box-border ${h} ${ae[x]} ${re(h)} ${ne(h)} `,role:u,children:r(q,{context:t,title:a&&n(s,{headingType:te(h),title:a,className:`whitespace-pre-wrap max-w-[600px] ${a?"mb-3":""}\n ${"primary"===x?"text-primary-text":""}`}),buttons:o?.length?n(X,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,image:m?.src&&n(d,{className:"mt-auto ml-7",image:m}),children:[i&&n(Y,{className:"mt-4 max-w-[600px]",description:i}),c,le(l,x)]})})}));function le(e,t){return e?.length?n(B,{items:e,version:t}):null}const se={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ce=a((({context:e,className:t="",title:a,description:i,benefits:l,buttons:c,image:o,version:m="primary"})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${se[m]} ${re(t)} ${ne(t)} `,children:r(q,{context:e,title:a&&n(s,{headingType:te(t),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:c?.length?n(X,{context:e,buttons:c,className:"flex mt-9 gap-3"}):null,image:o?.src&&n(d,{className:"mt-auto ml-7",image:o}),children:[i&&n(Y,{className:"mt-4 max-w-[600px]",description:i}),r("div",{className:"flex mt-5 mb-1",children:[l?.length?n("div",{className:"mr-8",children:l.map(oe)}):null,l?.length?n("div",{className:"pt-1",children:l.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,m)))}):null]})]})})));function oe(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const me={primary:"bg-white",secondary:"bg-primary-main text-white"},de=a((({context:e,title:t,description:a,cards:i=[],className:l,isScroll:c=!0})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[n(s,{headingType:"h2",className:"text-center",title:t}),a?n("div",{className:"font-normal text-m-md max-w-[600px] mt-2",children:a}):null]}),he(c,i,e)]})));function he(e,t,r){return e?n(N,{context:r,children:t?.map(xe)}):n("div",{className:"grid gap-[14px]",children:t?.map(xe)})}function xe(e,t){return r("div",{className:`box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${me[e.version??"primary"]}`,role:"listitem",children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(d,{className:"mb-6",image:e.image})}):null,e.title?n("h4",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?ue(e):null,e.items?.length?(a=e.items,n("section",{className:"mt-3",children:a.map((e=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm text-secondary-text pl-2",children:e.text})]})))})):null]}),e?.button?.href?n(Q,{className:"mt-3",...e.button}):null]},t);var a}function ue(e){return n("div",{className:"text-secondary-text mt-2 "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const pe=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)))}))),fe=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],be=a((({className:e,disabled:t,...r})=>n(Q,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...r,children:n(pe,{paths:fe,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),ge={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Ne={normal:3,mini:4},ye={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},ve={normal:380,mini:276},we={primary:"text-secondary-text",secondary:"text-white",gray:"text-secondary-text"},ke={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},$e=a((({className:e="",isDotted:t=!0,text:a,children:i,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Se(l)}),"!!!!!",n("span",{className:we[l],children:a||i})]}))),Se=e=>`rounded-full inline-block mr-3 mt-2 ${ke[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,Ce=a((({title:e,description:t,image:a,items:i,button:l,version:s})=>{const c=function(e,t,n){return`font-medium text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n ${t||n?.length?"":"text-center"}\n `}(s,t,i);return r("div",{children:[r("div",{children:[a?.src?n("div",{className:"flex justify-center",children:n(d,{className:"mb-6",image:a})}):null,e?Te(e,c):null,t?n("div",{className:"font-normal text-sm "+(e?"mt-2":""),children:t}):null,i?.length?je(i,s):null]}),l?.text&&n(Q,{className:"mt-6",...l})]})}));function Te(e,t){return n("div",{className:`font-medium text-xl m-0 ${t}`,children:e})}function je(e,t){return n("section",{className:"max-w-[308px] mt-2",role:"list",children:e.filter((e=>e?.text)).map(((e,r)=>function(e,t,r){return n($e,{version:r??"primary",children:n("span",{className:"text-sm",children:e})},String(t))}(e.text,r,t)))})}const _e=a((({context:e,title:t,description:a,cards:i=[],version:l="normal",activeCardIndex:c})=>r("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,a?n("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),n("div",{className:`flex ${i?.length<=Ne[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*ve[l]}px)`},role:"list",children:i?.map(((t,r)=>function({card:e,version:t},r){return n("section",{className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${ye[t]} ${ge[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Ce,{...e})},String(r))}({card:t,version:l,context:e},r)))})]})));const De=a((({context:e,cards:t=[],className:a="",version:i="normal",...l})=>{const[s,c]=e.useState(0),o=t?.length>Ne[i],m=o&&t?.length-s>Ne[i],d=o&&s>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[n(_e,{context:e,cards:t,version:i,activeCardIndex:s,...l}),d&&n(be,{className:"absolute top-1/2 left-8 rotate-180",onClick:()=>c(s-1),ariaLabel:"Пролистать влево"}),m&&n(be,{className:"absolute top-1/2 right-1 z-10",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"})]})})),Ie={Headline:x,LinkDocs:C,TextBlock:A,PictureText:T,Tile:ie,ProductTile:ce,Gallery:de,MiniGallery:a((e=>n(De,{...e,version:"mini"})))},Le=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(Be(t)):null}))),Be=e=>(t,r)=>{const a=t?.accordionBlockType;if(!a||!(a in Ie))return null;return n("div",{className:"mb-5 last:mb-0 py-2.5",children:n(Ie[a],{context:e,...t,className:"!p-0"})},`block_${r}`)},Re=a((({label:e,blocks:t,bordered:a,context:i})=>{const{hasContent:l,icon:s,handleToggle:c}=(({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=(({currentTarget:e})=>e.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:c,children:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(l?"group-hover:text-primary-main":""),children:e}),l?n(m,{name:s,width:"24",height:"24",asSVG:!0}):null]}),l?n(Le,{blocks:t,context:i}):null]})})),Ae=a((({title:e,description:t,accordionItems:a,context:i,className:l="",bordered:c})=>r("section",{className:`py-6 font-sans bg-white text-primary-text ${c?"px-4":""} ${l}`,children:[e?n(s,{headingType:"h3",className:"mb-2 text-center",title: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(Re,{...e,context:i,bordered:c},`AccordionItem${t}`)))}):null]}))),Ve="https://www.cbr-xml-daily.ru/daily_json.js",Oe=["USD","EUR"],Me={USD:"DollarIcon",EUR:"EuroIcon"},Pe=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],Ze=a((({className:e="",context:t,title:a="Курсы обмена валют"})=>{const{data:i}=t.useAsyncData(Ve,Ee);return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${re(e)} ${ne(e)} `,children:n(q,{context:t,title:a&&n(s,{headingType:te(e),title:a,className:"whitespace-pre-wrap max-w-[600px] "+(a?"mb-3":"")}),buttons:Pe?.length?n(X,{context:t,buttons:Pe,className:"flex mt-9 gap-3"}):null,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(He,{children:"Валюта"}),n(He,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:Oe.map(Fe(i))})]})})})})),He=a((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),ze=a((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function Ee(){const e=await fetch(Ve);return await e.json()}const Ge=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),We=e=>e?Ge.format(e):"",Fe=e=>t=>{const a=(e?.Valute||{})[t]?.Value;return r("tr",{children:[n(ze,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(m,{name:Me[t],width:"24",height:"24"}),n("span",{className:"ml-2",children:t})]})}),n(ze,{className:"pt-4 pl-11",children:We(a)})]},t)},Ue=["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"],Je={"bg-white":"text-primary-main",transparent:"text-white"},Ke={"bg-white":"text-black",transparent:"text-white"},Qe=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(pe,{className:`${Je[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:Ue.map((e=>({d:e})))}),!s&&n("span",{className:`${Ke[l]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),Xe=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(Qe,{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}))),Ye=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(qe):null,a?n(Q,{version:"primary",className:"my-4",...W({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),qe=(e,t)=>{const{type:a,text:i,description:l}=e;return r("div",{className:"mb-4",children:[n("div",{children:et(a,i)}),n("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},et=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${tt(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})}},tt=e=>e.replaceAll(/\D/g,""),nt=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(rt,{index:t,...W({router:l,handlerDecorator:s},e)},String(t))))}):null]})})),rt=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}`}))),at=[{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"}],it=a((({href:e})=>{const{icon:t,width:r,height:a,label:i}=at.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:m&&n(m,{name:t,width:r,height:a,asSVG:!0,className:"block"})}):null})),lt=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(it,{...W({router:a,handlerDecorator:i},e)},String(t))))})})),st=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(ct,{index:t,...W({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),ct=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}`}))),ot=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(m,{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(Q,{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:"Найти"})})]})})),mt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkDocs",documents:e.items||[]}]}))),dt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:m})=>{const d={context:c,accordionItems:mt(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(Ye,{className:"overflow-hidden",items:i,context:c,hasButton:!0}),n(Ae,{className:"p-0 pt-0 pb-0 mb-4",...d}),n("div",{children:m?.map(ht)}),n(Xe,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(ot,{context:c,className:"grow"}),n(lt,{className:"pb-4",media:l,context:c}),n(nt,{title:o,links:a,context:c}),n(st,{links:t,context:c})]})})),ht=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(Q,{href:i,className:"flex text-sm mb-4",children:[a?n(m,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`footer-${t}`)},xt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(P(e),(e=>(e||"").replace(z,""))(P(M(e)?t.href:t.pathname))),ut=e=>t=>xt(t.href,e),pt=e=>t=>t.items?.some(ut(e))||xt(t.href,e)||((e,t)=>Z(e)===Z(t.href))(t.href,e),ft=e=>t=>e?.href===t?.href,bt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(ft(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(ft(e))))));var n,r,a};async function gt(){const e=await fetch(Nt());return await e.json()}function Nt(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const yt="absolute left-0 -bottom-3 w-full h-[2px]",vt=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:wt(o,l),children:t||c}),l?n("div",{className:kt(o,l)}):null]}))),wt=(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`},kt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${yt}`:yt,$t=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:i="",children:l})=>{const[s,c]=e.useGeolocation(i);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent",onClick:a,children:n(m,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r(Q,{onClick:c,className:"flex items-center text-sm text-secondary-text mb-4",children:[n(m,{name:"GeolocationIcon",width:"24",height:"24",className:"box-border mr-2",asSVG:!0}),s]}),l,n("div",{className:"mb-7",children:t?.map(St)}),n(ot,{context:e,className:"grow"})]})})),St=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(Q,{href:i,className:"flex text-sm mb-4",children:[a?n(m,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},Ct=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 border-0 bg-transparent",onClick:e,"aria-label":"Открыть меню",children:n(m,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(Qe,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent",children:"Войти"})]}))),Tt=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(Nt(),gt);return t||{}}(i.useAsyncData),{handlerDecorator:m}=i,d=bt(o.topItems,l).find(pt(c))?.items,h=(e=>(t=[])=>{const n=t?.filter(ut(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)(d),[x,u]=i.useState(!1),p=()=>u(!x);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ct,{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:d?.map(((e,t)=>jt({...W({router:c,handlerDecorator:m},e),active:e===h,bgColor:a},t)))})})]}),x?n($t,{context:i,onClick:p,burgerSubMenu:s,defaultLocation:t,children:n(Ae,{context:i,accordionItems:mt(l),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),jt=(e,t)=>n(vt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),_t={primary:"text-primary-text",secondary:"text-white"},Dt={primary:"text-secondary-text",secondary:"text-white"};const It=a((({className:e="",context:t,title:a,headingType:i="h2",description:l,benefits:c,buttons:o,image:d,items:h,version:x="primary"})=>r("div",{className:`w-full text-primary-text ${e}`,children:[n("div",{children:r(q,{context:t,title:a&&n(s,{headingType:i,title:a,className:"whitespace-pre-wrap max-w-[600px] "+(a?"mb-3":"")}),buttons:o?.length?n(X,{context:t,buttons:o,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l&&n(Y,{description:l}),c?.length?n("div",{className:"mt-5",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(m,{className:"w-6 h-6 rounded-full box-border",name:e.icon,width:"24",height:"24",asSVG:!0}),n("div",{className:`font-medium text-m-title-xs m-0 ${_t[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${Dt[a]}`,children:e.description})]},String(t))}(e,t,x)))}):null,h?.length?n(B,{items:h}):null]})}),Lt(d)]})));function Lt(e){return e?.src?n("div",{className:"mt-5",children:n(d,{image:{className:"block",...e}})}):null}const Bt=a((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(It,{...e})})})),Rt=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 pt-6",role:"listitem",children:n("div",{className:"flex grow",children:n(It,{context:r,headingType:t||"h2",...e})})}))),At=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(N,{context:t,children:a.map(((e,r)=>n(Rt,{block:e,context:t},String(r))))})})})),Vt=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(s,{headingType:"h3",className:"text-center",title: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)=>Ot({step:e,size:l,i:t,length:i.length})))})}):null]}))),Ot=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:[Mt(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-start 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))},Mt=(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(m,{name:e.icon,width:a,height:a,asSVG:!0})||r+1})})},Pt={Accordion:Ae,ExchangeRateTile:Ze,Footer:dt,Gallery:de,Header:Tt,Headline:x,LinkDocs:C,MobileAppTile:Xe,ProductBlock:Bt,ProductGallery:At,StepsBlock:Vt,TextBlock:A},Zt=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:Ht()}))),Ht=()=>{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"})]})},zt=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(Zt,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Zt,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Et=a((({className:e,context:t,title:a,description:i="Блок в разработке..."})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${re(e)} ${ne(e)} `,children:r(q,{context:t,title:a?n(s,{headingType:te(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[i?n(Y,{className:"mt-4 max-w-[600px]",description:i}):null,n("figure",{className:"m-0 min-w-[600px]",children:Gt()})]})}))),Gt=(e=3)=>Ft(100,e).map((e=>Math.floor(e))).map(Wt),Wt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ft=(e,t)=>[e].concat(t>0?Ft(e/1.618,t-1):[]),Ut=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Jt=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=Ut})=>{const{header:d}=s;return r("section",{className:`relative ${Qt(i)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${Qt(d?.style)}`,children:d.blocks.map(((e,n)=>Kt({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>Kt({block:e,blockDecorator:m,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(zt,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function Kt({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l&&l in r||console.warn(`No block with "${l}" is registered`);const s=r[l||"Placeholder"]||Et;return t({blockClassName:Qt(e.style),block:e,render:e=>{const{version:t,content:r}=e.block;return n(s,{className:e.blockClassName,version:t,context:a,...r},`${l}-${i}`)}},`block-${i}`)}function Qt(e){return e?e.join(" "):""}const Xt=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,main:{description:l,keywords:s,canonical:c,robots:o},og:m,twitter:d,jsonLd:h}=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(",")}),o&&n("meta",{name:"robots",content:o.join(",")}),m?Object.entries(m).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,d?Object.entries(d).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null,c&&n("link",{rel:"canonical",href:c}),h&&n("script",{type:"application/ld+json",children:h}),a]})}));function Yt(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function qt(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in Pt&&!e.mobile?.hidden)).map(Yt)}e.Blocks=Pt,e.ContentPage=Jt,e.ContentPageHead=Xt,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=Tt,e.Icon=m,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.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:qt(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:qt(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=H,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={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"},s=a((e=>{const{className:t,headingType:r,title:a}=e;if(!r)return;return n(r,{className:`font-sans font-medium m-0 ${l[r]} ${t||""}`,children:a})})),c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},o={none:"",primary:"text-primary-main"},m=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:l,color:s="primary",...m})=>{const d=`${c.CDN||""}icons/${t}.svg`;return l?r("svg",{className:`${o[s]} ${e}`,...m,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):n("img",{className:e,src:d,alt:a,title:i,...m,"aria-hidden":"true"})})),d=a((({className:e="",image:t})=>{if(!t)return null;const a={width:t.size?.width?`${t.size?.width}px`:"100%",height:t.size?.height?`${t.size?.height}px`:"100%"};return r("picture",{className:e,children:[t.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:h(t)},`${r}_${e}`))):null,n("img",{src:t.src,className:`m-auto ${t.className||""}`,alt:t.alt||t.title,title:t.title,style:a,...t.size})]})}));function h(e){return e?`image/${String(e)}`:void 0}const x=a((({bgColor:e="transparent",className:t="",title:a,description:i,image:l})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[a&&n(s,{headingType:"h2",className:"text-primary-text",title: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(d,{image:l})})]}))),p=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),u=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),f=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:{...u(l),gap:`${i}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(p,{style:u(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(p,{children:t})}))),b=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 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:g(a,t,r),"aria-hidden":!0},String(a))))}):null)),g=(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"}},N=a((({className:e,context:t,children:a,gap:i=14,padding:l=16,showDots:s=!0})=>{const[c,o]=t.useState(0),[m,d]=t.useState(0);return r("div",{className:e,children:[n(f,{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,m=(({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,m=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 m[a-1]=[s,r],m})({gap:i,padding:l,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:c}),{index:h,fraction:x}=((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,m);o(h),d(x)},children:a}),n(b,{activeIndex:c,indexFraction:m,showDots:s,children:a})]})})),y=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:i,doc:l,icon:s})=>{const{text:c,fileSize:o,...d}=l;return r("a",{className:e,role:"link",...d,children:[s?n(m,{className:t,name:s,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:i,children:d?.href&&v(w(d.href),o)})]}):null]})})),v=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),w=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},k=a((({className:e="",doc:t,icon:r})=>n(y,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),$=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(N,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(k,{className:t?"rounded-md border-main-stroke border p-4":"",doc:e,icon:a},String(r)))):null}))),S=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(k,{className:e?"rounded-md border-main-stroke border p-4":"",doc:t,icon:r})},String(a)))):null}))),C=a((({className:e="",context:t,title:a,subtitle:i,icon:l="DocIconMonoColor",documents:c,listMode:o="vertical",hasBorder:m=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white ${e}`,children:[a?n(s,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:i}):null,"vertical"===o?n(S,{hasBorder:m,documents:c,icon:l}):n($,{context:t,hasBorder:m,documents:c,icon:l})]}))),T=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(s,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(d,{className:"mr-6",image:a}),i?.length?n("div",{className:"flex flex-col",children:i.map(_)}):null]})]})));function _(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(m,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48",asSVG:!0}),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 j={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},D={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},I=a((({className:e="",isDotted:t=!0,children:a,version:i="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:L(i)}),n("span",{className:`text-m-md ${j[i]}`,children:a})]}))),L=e=>`rounded-full inline-block mr-3 mt-2 ${D[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,B=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:i,version:l}=e;return n("section",{className:`${t}`,role:"list",children:i?.length?i.map(((e,t)=>n(I,{className:r,isDotted:a,version:l,children:e},String(t)))):null})})),R={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"}},V=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s="",items:c,isDotted:o=!0})=>{const m=R[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${m.background} ${s}`,children:["small"===i?A(m.icon):null,"big"===i?O(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${m.title}`,children:e}):null,t?n("div",{className:`text-sm ${m.description}`,children:t}):null,c?.length?n(B,{items:c,isDotted:o,version:"gray",className:"mt-1 text-m-sm text-secondary-text"}):null]})]})}));function A(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 O(e){return e?.src?n(d,{className:"pb-3 mr-auto",image:e}):null}const M=e=>e?.includes("//"),P=e=>(e||"").replace(/\/?\?.*/,""),Z=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 H=Object.freeze({__proto__:null,isURL:M,withoutQuery:P,getOrigin:Z});const z="/mobile",E=(e,t)=>{if(!e)return e;const n=Z(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function W({router:e,handlerDecorator:t=G},n){const r=((e,t)=>{if(!e)return e;const n=E(e,t)||"",r=t?.pathname.startsWith(z);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 F=a((({text:e,aboveText:t,appendLeft:a,rounded:i,version:l})=>{const s=!e&&!t&&Boolean(a);return function({buttonInnerClasses:e,appendLeft:t,withoutText:a,aboveText:i,text:l}){return r("div",{className:e,children:[t||null,a?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:i}),n("div",{className:"text-m-button font-medium text-left",children:l})]})]})}({buttonInnerClasses:"link"!==l?`flex items-center justify-center\n ${s?"h-12 w-12":"px-8 gap-2 "+(t?"py-2":"py-3.5")} ${i?"rounded-full":""}`:null,appendLeft:a,withoutText:s,aboveText:t,text:e})}));const U={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},J={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},K="w-full text-center font-sans select-none",Q=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:m,version:d="primary",ariaLabel:h,...x})=>{const p=c??n(F,{text:t,aboveText:r,appendLeft:a,rounded:m,version:d});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${K} ${J[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${K} inline-block cursor-pointer no-underline ${U[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:p})})),X=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,i=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(Q,e?{appendLeft:n(m,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(W({router:i,handlerDecorator:a},e),t)))}):null}));const Y=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-m-md ${t}`,children:r})})),q=a((({className:e="",title:t,children:a,buttons:i,image:l})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),n("div",{children:i})]}),l]})]}))),ee=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function te(e=""){const t=ee(e);return t<=4?"h4":t<=8?"h3":"h2"}function ne(e=""){const t=ee(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function re(e=""){const t=ee(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ae={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ie=a((e=>{const{context:t,title:a,description:i,items:l,children:c,buttons:o,image:m,className:h="",version:x="primary",role:p}=e;return n("section",{className:`overflow-hidden font-sans p-9 box-border ${h} ${ae[x]} ${re(h)} ${ne(h)} `,role:p,children:r(q,{context:t,title:a&&n(s,{headingType:te(h),title:a,className:`whitespace-pre-wrap max-w-[600px] ${a?"mb-3":""}\n ${"primary"===x?"text-primary-text":""}`}),buttons:o?.length?n(X,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,image:m?.src&&n(d,{className:"mt-auto ml-7",image:m}),children:[i&&n(Y,{className:"mt-4 max-w-[600px]",description:i}),c,le(l,x)]})})}));function le(e,t){return e?.length?n(B,{items:e,version:t}):null}const se={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ce=a((({context:e,className:t="",title:a,description:i,benefits:l,buttons:c,image:o,version:m="primary"})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${se[m]} ${re(t)} ${ne(t)} `,children:r(q,{context:e,title:a&&n(s,{headingType:te(t),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:c?.length?n(X,{context:e,buttons:c,className:"flex mt-9 gap-3"}):null,image:o?.src&&n(d,{className:"mt-auto ml-7",image:o}),children:[i&&n(Y,{className:"mt-4 max-w-[600px]",description:i}),r("div",{className:"flex mt-5 mb-1",children:[l?.length?n("div",{className:"mr-8",children:l.map(oe)}):null,l?.length?n("div",{className:"pt-1",children:l.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,m)))}):null]})]})})));function oe(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const me={primary:"bg-white",secondary:"bg-primary-main text-white"},de=a((({context:e,title:t,description:a,cards:i=[],className:l,isScroll:c=!0})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[n(s,{headingType:"h2",className:"text-center",title:t}),a?n("div",{className:"font-normal text-m-md max-w-[600px] mt-2",children:a}):null]}),he(c,i,e)]})));function he(e,t,r){return e?n(N,{context:r,children:t?.map(xe)}):n("div",{className:"grid gap-[14px]",children:t?.map(xe)})}function xe(e,t){return r("div",{className:`box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${me[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(d,{className:"mb-6",image:e.image})}):null,e.title?n("h4",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?pe(e):null,e.items?.length?(i=e.items,n("section",{className:"mt-3",children:i.map(((e,t)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm text-secondary-text pl-2",children:e.text})]},String(t))))})):null]}),e?.button?.href?(a=e.button,n(Q,{className:"mt-3",appendLeft:a?.icon&&n(m,{name:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a,i}function pe(e){return n("div",{className:"text-secondary-text mt-2 "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const ue=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)))}))),fe=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],be=a((({className:e,disabled:t,...r})=>n(Q,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...r,children:n(ue,{paths:fe,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),ge={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Ne={normal:3,mini:4},ye={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},ve={normal:380,mini:276},we={primary:"text-secondary-text",secondary:"text-white",gray:"text-secondary-text"},ke={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},$e=a((({className:e="",isDotted:t=!0,text:a,children:i,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Se(l)}),n("span",{className:we[l],children:a||i})]}))),Se=e=>`rounded-full inline-block mr-3 mt-2 ${ke[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,Ce=a((({title:e,description:t,image:a,items:i,button:l,version:s})=>{const c=function(e,t,n){return`font-medium text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n ${t||n?.length?"":"text-center"}\n `}(s,t,i);return r("div",{children:[r("div",{children:[a?.src?n("div",{className:"flex justify-center",children:n(d,{className:"mb-6",image:a})}):null,e?_e(e,c):null,t?n("div",{className:"font-normal text-sm "+(e?"mt-2":""),children:t}):null,i?.length?je(i,s):null]}),l?.text?Te(l):null]})}));function Te(e){return n(Q,{className:"mt-6 w-full",appendLeft:e.icon&&n(m,{name:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function _e(e,t){return n("div",{className:`font-medium text-xl m-0 ${t}`,children:e})}function je(e,t){return n("section",{className:"max-w-[308px] mt-2",role:"list",children:e.filter((e=>e?.text)).map(((e,r)=>function(e,t,r){return n($e,{version:r??"primary",children:n("span",{className:"text-sm",children:e})},String(t))}(e.text,r,t)))})}const De=a((({context:e,title:t,description:a,cards:i=[],version:l="normal",activeCardIndex:c})=>r("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,a?n("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),n("div",{className:`flex ${i?.length<=Ne[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*ve[l]}px)`},role:"list",children:i?.map(((t,r)=>function({card:e,version:t},r){return n("section",{className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${ye[t]} ${ge[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Ce,{...e})},String(r))}({card:t,version:l,context:e},r)))})]})));const Ie=a((({context:e,cards:t=[],className:a="",version:i="normal",...l})=>{const[s,c]=e.useState(0),o=t?.length>Ne[i],m=o&&t?.length-s>Ne[i],d=o&&s>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[n(De,{context:e,cards:t,version:i,activeCardIndex:s,...l}),d&&n(be,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]",onClick:()=>c(s-1),ariaLabel:"Пролистать влево"}),m&&n(be,{className:"absolute top-1/2 right-8 z-10 mt-[25px]",onClick:()=>c(s+1),ariaLabel:"Пролистать вправо"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),Le=a((e=>n(Ie,{...e,version:"mini"}))),Be=a((({className:e="",documents:t})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Re(t):null})}))),Re=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),Ve={Headline:x,LinkDocs:C,TextBlock:V,PictureText:T,Tile:ie,ProductTile:ce,Gallery:de,MiniGallery:Le,LinkList:Be},Ae=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(Oe(t)):null}))),Oe=e=>(t,r)=>{const a=t?.accordionBlockType;if(!a||!(a in Ve))return null;return n("div",{className:"mb-5 last:mb-0",children:n(Ve[a],{context:e,...t,className:"!p-0"})},`block_${r}`)},Me=a((({label:e,blocks:t,bordered:a,context:i})=>{const{hasContent:l,icon:s,handleToggle:c}=(({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=(({currentTarget:e})=>e.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")+" border-solid border-main-divider",children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${a?"":"py-[14px] px-0"}\n ${l?"group cursor-pointer":""}`,onClick:c,children:[n("span",{className:"text-sm pr-2.5 font-medium "+(l?"group-hover:text-primary-main":""),children:e}),l?n(m,{name:s,width:"20",height:"20",asSVG:!0}):null]}),l?n(Ae,{blocks:t,context:i}):null]})})),Pe=a((({title:e,description:t,accordionItems:a,context:i,className:l="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${l}`,children:[e?n(s,{headingType:"h3",className:"mb-2 text-center",title: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(Me,{...e,context:i,bordered:c},`AccordionItem${t}`)))}):null]}))),Ze="https://www.cbr-xml-daily.ru/daily_json.js",He=["USD","EUR"],ze={USD:"DollarIcon",EUR:"EuroIcon"},Ee=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],Ge=a((({className:e="",context:t,title:a="Курсы обмена валют"})=>{const{data:i}=t.useAsyncData(Ze,Ue);return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${re(e)} ${ne(e)} `,children:n(q,{context:t,title:a&&n(s,{headingType:te(e),title:a,className:"whitespace-pre-wrap max-w-[600px] "+(a?"mb-3":"")}),buttons:Ee?.length?n(X,{context:t,buttons:Ee,className:"flex mt-9 gap-3"}):null,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(We,{children:"Валюта"}),n(We,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:He.map(Qe(i))})]})})})})),We=a((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),Fe=a((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function Ue(){const e=await fetch(Ze);return await e.json()}const Je=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ke=e=>e?Je.format(e):"",Qe=e=>t=>{const a=(e?.Valute||{})[t]?.Value;return r("tr",{children:[n(Fe,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(m,{name:ze[t],width:"24",height:"24"}),n("span",{className:"ml-2",children:t})]})}),n(Fe,{className:"pt-4 pl-11",children:Ke(a)})]},t)},Xe=["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"],Ye={"bg-white":"text-primary-main",transparent:"text-white"},qe={"bg-white":"text-black",transparent:"text-white"},et=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(ue,{className:`${Ye[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:Xe.map((e=>({d:e})))}),!s&&n("span",{className:`${qe[l]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),tt=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(et,{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-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:a})]})]}):null}))),nt=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(rt):null,a?n(Q,{version:"primary",className:"mt-0.5 mb-5",...W({router:l,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),rt=(e,t)=>{const{type:a,text:i,description:l}=e;return r("div",{className:"mb-3.5",children:[n("div",{children:at(a,i)}),n("div",{className:"font-sans text-sm text-secondary-text",children:l})]},String(t))},at=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${it(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})}},it=e=>e.replaceAll(/\D/g,""),lt=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-2 pt-3",children:t.map(((e,t)=>n(st,{index:t,...W({router:l,handlerDecorator:s},e)},String(t))))}):null]})})),st=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}`}))),ct=[{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"}],ot=a((({href:e})=>{const{icon:t,width:r,height:a,label:i}=ct.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:text-primary-main",href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:m&&n(m,{name:t,width:r,height:a,asSVG:!0,className:"block",color:"none"})}):null})),mt=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(ot,{...W({router:a,handlerDecorator:i},e)},String(t))))})})),dt=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",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-2",children:t.map(((e,t)=>n(ht,{index:t,...W({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),ht=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}`}))),xt=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(m,{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 placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded 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",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer",onClick:e=>{e.preventDefault(),i("")},children:n(m,{name:"CloseIcon",width:"24",height:"24"})})]})})),pt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),ut=a((({className:e="",documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:m})=>{const d={context:c,accordionItems:pt(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(nt,{className:"overflow-hidden",items:i,context:c,hasButton:!0}),n(Pe,{className:"!p-0 mb-4",...d}),n("div",{children:m?.map(ft)}),n(tt,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(xt,{context:c,className:"grow"}),n(mt,{className:"pb-4",media:l,context:c}),n(lt,{title:o,links:a,context:c}),n(dt,{links:t,context:c})]})})),ft=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(Q,{version:"link",href:i,className:"flex text-sm mb-4",children:[a?n(m,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:l})]},`footer-${t}`)},bt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(P(e),(e=>(e||"").replace(z,""))(P(M(e)?t.href:t.pathname))),gt=e=>t=>bt(t.href,e),Nt=e=>t=>t.items?.some(gt(e))||bt(t.href,e)||((e,t)=>Z(e)===Z(t.href))(t.href,e),yt=e=>t=>e?.href===t?.href,vt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(yt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(yt(e))))));var n,r,a};async function wt(){const e=await fetch(kt());return await e.json()}function kt(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const $t="absolute left-0 -bottom-3 w-full h-[2px]",St=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:Ct(o,l),children:t||c}),l?n("div",{className:Tt(o,l)}):null]}))),Ct=(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`},Tt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${$t}`:$t,_t=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:i="",children:l})=>{const[s,c]=e.useGeolocation(i);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:a,children:n(m,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text mb-4 bg-transparent cursor-pointer",children:[n(m,{name:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),l,n("div",{className:"mb-7",children:t?.map(jt)}),n(xt,{context:e,className:"grow"})]})})),jt=(e,t)=>{const{icon:a,href:i,text:l}=e;return r("a",{href:i,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(m,{className:"text-primary-main pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},Dt=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 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(m,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(et,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),It=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(kt(),wt);return t||{}}(i.useAsyncData),{handlerDecorator:m}=i,d=vt(o.topItems,l).find(Nt(c))?.items,h=(e=>(t=[])=>{const n=t?.filter(gt(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)(d),[x,p]=i.useState(!1),u=()=>p(!x);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Dt,{onClick:u,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:d?.map(((e,t)=>Lt({...W({router:c,handlerDecorator:m},e),active:e===h,bgColor:a},t)))})})]}),x?n(_t,{context:i,onClick:u,burgerSubMenu:s,defaultLocation:t,children:n(Pe,{context:i,accordionItems:pt(l),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),Lt=(e,t)=>n(St,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),Bt={primary:"text-primary-text",secondary:"text-white"},Rt={primary:"text-secondary-text",secondary:"text-white"};const Vt=a((({className:e="",context:t,title:a,headingType:i="h2",description:l,benefits:c,buttons:o,image:d,items:h,version:x="primary"})=>r("div",{className:`w-full text-primary-text ${e}`,children:[n("div",{children:r(q,{context:t,title:a&&n(s,{headingType:i,title:a,className:"whitespace-pre-wrap max-w-[600px] "+(a?"mb-3":"")}),buttons:o?.length?n(X,{context:t,buttons:o,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?n(Y,{className:"mb-5",description:l}):null,c?.length?n("div",{className:"mt-5",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(m,{className:"w-6 h-6 rounded-full box-border",name:e.icon,width:"24",height:"24",asSVG:!0}),n("div",{className:`font-medium text-m-title-xs m-0 ${Bt[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${Rt[a]}`,children:e.description})]},String(t))}(e,t,x)))}):null,h?.length?n(B,{items:h}):null]})}),At(d)]})));function At(e){return e?.src?n("div",{className:"mt-5",children:n(d,{image:{className:"block",...e}})}):null}const Ot=a((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(Vt,{...e})})})),Mt=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 pt-6",children:n("div",{className:"flex grow",children:n(Vt,{context:r,headingType:t||"h2",...e})})}))),Pt=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(N,{context:t,children:a.map(((e,r)=>n(Mt,{block:e,context:t},String(r))))})})})),Zt=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(s,{headingType:"h3",className:"text-center",title: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)=>Ht({step:e,size:l,i:t,length:i.length})))})}):null]}))),Ht=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:[zt(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-start 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))},zt=(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(m,{name:e.icon,width:a,height:a})||r+1})})},Et={Accordion:Pe,ExchangeRateTile:Ge,Footer:ut,Gallery:de,Header:It,Headline:x,LinkDocs:C,MobileAppTile:tt,ProductBlock:Ot,ProductGallery:Pt,StepsBlock:Zt,TextBlock:V,LinkList:Be},Gt=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:Wt()}))),Wt=()=>{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"})]})},Ft=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(Gt,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Gt,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Ut=a((({className:e,context:t,title:a,description:i="Блок в разработке..."})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${re(e)} ${ne(e)} `,children:r(q,{context:t,title:a?n(s,{headingType:te(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[i?n(Y,{className:"mt-4 max-w-[600px]",description:i}):null,n("figure",{className:"m-0 min-w-[600px]",children:Jt()})]})}))),Jt=(e=3)=>Qt(100,e).map((e=>Math.floor(e))).map(Kt),Kt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Qt=(e,t)=>[e].concat(t>0?Qt(e/1.618,t-1):[]),Xt=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Yt=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=Xt})=>{const{header:d}=s;return r("section",{className:`relative ${en(i)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${en(d?.style)}`,children:d.blocks.map(((e,n)=>qt({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>qt({block:e,blockDecorator:m,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(Ft,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function qt({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l&&l in r||console.warn(`No block with "${l}" is registered`);const s=r[l||"Placeholder"]||Ut;return t({blockClassName:en(e.style),block:e,render:e=>{const{version:t,content:r}=e.block;return n(s,{className:e.blockClassName,version:t,context:a,...r},`${l}-${i}`)}},`block-${i}`)}function en(e){return e?e.join(" "):""}const tn=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,main:l,og:s,twitter:c,jsonLd:o}=t,{description:m,keywords:d,canonical:h,robots:x}=l||{};return r(e,{children:[n("title",{children:i}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),m&&n("meta",{name:"description",content:m}),d&&n("meta",{name:"keywords",content:d.join(",")}),x&&n("meta",{name:"robots",content:x.join(",")}),nn(s),rn(c),h&&n("link",{rel:"canonical",href:h}),o&&n("script",{type:"application/ld+json",children:o}),a]})}));function nn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null}function rn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function an(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function ln(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in Et&&!e.mobile?.hidden)).map(an)}e.Blocks=Et,e.ContentPage=Yt,e.ContentPageHead=tn,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=It,e.Icon=m,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.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:ln(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:ln(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=H,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -5,6 +5,6 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const AccordionItem_1 = require("./AccordionItem");
|
|
7
7
|
exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', bordered }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `py-6 font-sans bg-white text-primary-text ${
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-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,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,
|
|
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,kDAAkD,SAAS,EAAE,aAEvE,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACtF,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,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"}
|
|
@@ -7,4 +7,5 @@ export declare const AccordionBlocks: {
|
|
|
7
7
|
ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
|
|
8
8
|
Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
|
|
9
9
|
MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../MiniGallery/MiniGallery").MiniGalleryProps, any>, context?: any) => any;
|
|
10
|
+
LinkList: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../LinkList/LinkList").LinkListProps, any>, context?: any) => any;
|
|
10
11
|
};
|
|
@@ -8,6 +8,7 @@ const Tile_1 = require("../Tile/Tile");
|
|
|
8
8
|
const ProductTile_1 = require("../ProductTile/ProductTile");
|
|
9
9
|
const Gallery_1 = require("../Gallery/Gallery");
|
|
10
10
|
const MiniGallery_1 = require("../MiniGallery/MiniGallery");
|
|
11
|
+
const LinkList_1 = require("../LinkList/LinkList");
|
|
11
12
|
exports.AccordionBlocks = {
|
|
12
13
|
Headline: Headline_1.Headline,
|
|
13
14
|
LinkDocs: LinkDocs_1.LinkDocs,
|
|
@@ -17,5 +18,6 @@ exports.AccordionBlocks = {
|
|
|
17
18
|
ProductTile: ProductTile_1.ProductTile,
|
|
18
19
|
Gallery: Gallery_1.Gallery,
|
|
19
20
|
MiniGallery: MiniGallery_1.MiniGallery,
|
|
21
|
+
LinkList: LinkList_1.LinkList,
|
|
20
22
|
};
|
|
21
23
|
//# sourceMappingURL=AccordionBlocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionBlocks.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionBlocks.tsx"],"names":[],"mappings":";;AAAA,mDAAgD;AAChD,mDAAgD;AAChD,4DAAyD;AACzD,sDAAmD;AACnD,uCAAoC;AACpC,4DAAyD;AACzD,gDAA6C;AAC7C,4DAAyD;
|
|
1
|
+
{"version":3,"file":"AccordionBlocks.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionBlocks.tsx"],"names":[],"mappings":";;AAAA,mDAAgD;AAChD,mDAAgD;AAChD,4DAAyD;AACzD,sDAAmD;AACnD,uCAAoC;AACpC,4DAAyD;AACzD,gDAA6C;AAC7C,4DAAyD;AACzD,mDAAgD;AAEnC,QAAA,eAAe,GAAG;IAC7B,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;IACX,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,QAAQ,EAAR,mBAAQ;CACT,CAAC"}
|
|
@@ -6,10 +6,11 @@ import type { PictureTextContent } from '../PictureText/PictureTextContent';
|
|
|
6
6
|
import type { ProductTileContent } from '../ProductTile/ProductTileContent';
|
|
7
7
|
import type { TextBlockContent } from '../TextBlock/TextBlockContent';
|
|
8
8
|
import type { TileContent } from '../Tile/TileContent';
|
|
9
|
+
import type { LinkListContent } from '../LinkList/LinkListContent';
|
|
9
10
|
/**
|
|
10
11
|
* @title Тип блока
|
|
11
12
|
*/
|
|
12
|
-
export declare type AccordionBlockType = 'Headline' | 'LinkDocs' | 'TextBlock' | 'PictureText' | 'Tile' | 'ProductTile' | 'Gallery' | 'MiniGallery';
|
|
13
|
+
export declare type AccordionBlockType = 'Headline' | 'LinkDocs' | 'TextBlock' | 'PictureText' | 'Tile' | 'ProductTile' | 'Gallery' | 'MiniGallery' | 'LinkList';
|
|
13
14
|
interface AccordionBlockDef {
|
|
14
15
|
accordionBlockType: AccordionBlockType;
|
|
15
16
|
}
|
|
@@ -45,6 +46,10 @@ export declare type GalleryAccordionBlockDef = GalleryContent & AccordionBlockDe
|
|
|
45
46
|
* @title Мини-галлерея
|
|
46
47
|
*/
|
|
47
48
|
export declare type MiniGalleryAccordionBlockDef = MiniGalleryContent & AccordionBlockDef;
|
|
49
|
+
/**
|
|
50
|
+
* @title Список ссылок
|
|
51
|
+
*/
|
|
52
|
+
export declare type LinkListAccordionBlockDef = LinkListContent & AccordionBlockDef;
|
|
48
53
|
/**
|
|
49
54
|
* @title Выберите блок
|
|
50
55
|
*/
|
|
@@ -52,7 +57,7 @@ export declare type EmptyOption = null;
|
|
|
52
57
|
/**
|
|
53
58
|
* @title Содержимое аккордеона
|
|
54
59
|
*/
|
|
55
|
-
export declare type AccordionBlockProps = EmptyOption | HeadlineAccordionBlockDef | LinkDocsAccordionBlockDef | TextBlockAccordionBlockDef | PictureTextAccordionBlockDef | TileAccordionBlockDef | ProductTileAccordionBlockDef | GalleryAccordionBlockDef | MiniGalleryAccordionBlockDef;
|
|
60
|
+
export declare type AccordionBlockProps = EmptyOption | HeadlineAccordionBlockDef | LinkDocsAccordionBlockDef | TextBlockAccordionBlockDef | PictureTextAccordionBlockDef | TileAccordionBlockDef | ProductTileAccordionBlockDef | GalleryAccordionBlockDef | MiniGalleryAccordionBlockDef | LinkListAccordionBlockDef;
|
|
56
61
|
/**
|
|
57
62
|
* @title Элемент списка
|
|
58
63
|
*/
|
|
@@ -10,7 +10,8 @@ exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label, blocks, bordered, context }
|
|
|
10
10
|
context,
|
|
11
11
|
blocks,
|
|
12
12
|
});
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0
|
|
14
|
-
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider`, children: [(0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
14
|
+
${bordered ? '' : 'py-[14px] px-0'}
|
|
15
|
+
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [(0, jsx_runtime_1.jsx)("span", { className: `text-sm pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: "20", height: "20", asSVG: true }) : null] }), hasContent ? (0, jsx_runtime_1.jsx)(AccordionItemInner_1.AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
15
16
|
});
|
|
16
17
|
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAE9C,6DAA0D;AAC1D,6DAA0D;AAI7C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAA,iCAAe,EAAC;QACzD,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,gCACE,SAAS,EAAE,GACT,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAE9C,6DAA0D;AAC1D,6DAA0D;AAI7C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAA,iCAAe,EAAC;QACzD,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,gCACE,SAAS,EAAE,GACT,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCACzC,mCAAmC,aAEnC,oCACE,SAAS,EAAE;YACP,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB;YAChC,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC9C,OAAO,EAAE,YAAY,aAErB,iCACE,SAAS,EAAE,8BACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,YAED,KAAK,GACD,EACN,UAAU,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IAC/D,EACR,UAAU,CAAC,CAAC,CAAC,uBAAC,uCAAkB,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,IAC1E,CACN,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const AccordionBlocks_1 = require("./AccordionBlocks");
|
|
6
6
|
exports.AccordionItemInner = (0, uni_jsx_1.JSX)(({ blocks, context }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("div", { className:
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0", children: blocks?.length ? blocks.map(renderBlock(context)) : null }));
|
|
8
8
|
});
|
|
9
9
|
const renderBlock = (context) => (block, i) => {
|
|
10
10
|
const type = block?.accordionBlockType;
|
|
@@ -12,6 +12,6 @@ const renderBlock = (context) => (block, i) => {
|
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
14
|
const AccordionBlock = AccordionBlocks_1.AccordionBlocks[type];
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "mb-5 last:mb-0
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "mb-5 last:mb-0", children: (0, jsx_runtime_1.jsx)(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=AccordionItemInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItemInner.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AAIvC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,gCAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"AccordionItemInner.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AAIvC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,gCAAK,SAAS,EAAC,0EAA0E,YACtF,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GACrD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,CAAC,KAA0B,EAAE,CAAS,EAAE,EAAE;IAC7F,MAAM,IAAI,GAAG,KAAK,EAAE,kBAAkB,CAAC;IACvC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,iCAAe,CAAC,EAAE;QACvC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,cAAc,GAAa,iCAAe,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,CACL,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,cAAc,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,IAD7B,SAAS,CAAC,EAAE,CAE3C,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -5,9 +5,9 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
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
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className || ''}`, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-2 gap-8 mt-9", children: benefits.map(renderStep) })) : null] }));
|
|
9
9
|
});
|
|
10
10
|
const renderStep = (benefit, i) => {
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-5 max-w-[500px]", 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)));
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=BenefitsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,wEACT,SAAS,IAAI,EACf,EAAE,aAED,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,2BAA2B,EAAC,KAAK,EAAE,KAAK,GAAI,CACjF,CAAC,CAAC,CAAC,IAAI,EACP,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,uCAAuC,aACnE,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"}
|
|
@@ -17,7 +17,8 @@ import type { StepsBlockContent } from './StepsBlock/StepsBlockContent';
|
|
|
17
17
|
import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
|
|
18
18
|
import type { TextBlockContent } from './TextBlock/TextBlockContent';
|
|
19
19
|
import type { TileContent } from './Tile/TileContent';
|
|
20
|
+
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
20
21
|
/**
|
|
21
22
|
* @hidden
|
|
22
23
|
*/
|
|
23
|
-
export declare type BlockContent = BenefitsBlockContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | HeaderContent | LinkDocsContent | MobileAppTileContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent;
|
|
24
|
+
export declare type BlockContent = BenefitsBlockContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | HeaderContent | LinkDocsContent | MobileAppTileContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent;
|
|
@@ -11,4 +11,5 @@ export declare const Blocks: {
|
|
|
11
11
|
ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductGallery/ProductGallery").ProductGalleryProps, any>, context?: any) => any;
|
|
12
12
|
StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock/StepsBlock").StepsBlockProps, any>, context?: any) => any;
|
|
13
13
|
TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
|
|
14
|
+
LinkList: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./LinkList/LinkList").LinkListProps, any>, context?: any) => any;
|
|
14
15
|
};
|
|
@@ -12,6 +12,7 @@ const ProductBlock_1 = require("./ProductBlock/ProductBlock");
|
|
|
12
12
|
const ProductGallery_1 = require("./ProductGallery/ProductGallery");
|
|
13
13
|
const StepsBlock_1 = require("./StepsBlock/StepsBlock");
|
|
14
14
|
const TextBlock_1 = require("./TextBlock/TextBlock");
|
|
15
|
+
const LinkList_1 = require("./LinkList/LinkList");
|
|
15
16
|
exports.Blocks = {
|
|
16
17
|
Accordion: Accordion_1.Accordion,
|
|
17
18
|
ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
|
|
@@ -25,5 +26,6 @@ exports.Blocks = {
|
|
|
25
26
|
ProductGallery: ProductGallery_1.ProductGallery,
|
|
26
27
|
StepsBlock: StepsBlock_1.StepsBlock,
|
|
27
28
|
TextBlock: TextBlock_1.TextBlock,
|
|
29
|
+
LinkList: LinkList_1.LinkList,
|
|
28
30
|
};
|
|
29
31
|
//# sourceMappingURL=Blocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,qDAAkD;
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,qDAAkD;AAClD,kDAA+C;AAElC,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,SAAS,EAAT,qBAAS;IACT,QAAQ,EAAR,mBAAQ;CACT,CAAC"}
|
|
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const constants_1 = require("./constants");
|
|
6
6
|
exports.TableCell = (0, uni_jsx_1.JSX)(({ cell, isFirstRow, isLastRow, isFillGradient }) => {
|
|
7
7
|
const cellWrapperClasses = `w-80 box-border flex flex-col ${constants_1.BORDER_CLASSES} ${!isLastRow ? 'border-y-0' : 'border-t-0 rounded-b-md'} ${isFillGradient ? constants_1.GRADIENT : ''}`;
|
|
8
|
-
const cellClasses = `mx-7 h-full ${constants_1.DIVIDER_CLASSES} ${isFillGradient && isFirstRow ? 'border-t' : ''} ${!isLastRow ? 'border-solid' : ''}`;
|
|
8
|
+
const cellClasses = `mx-7 h-full ${constants_1.DIVIDER_CLASSES} ${isFillGradient && isFirstRow ? 'border-t' : ''} ${!isLastRow ? 'border-solid' : 'border-b-0'}`;
|
|
9
9
|
return ((0, jsx_runtime_1.jsx)("div", { className: cellWrapperClasses, role: "cell", children: (0, jsx_runtime_1.jsx)("div", { className: cellClasses, children: cell.map((item, i) => renderCellInner(item, i, isFillGradient)) }) }));
|
|
10
10
|
});
|
|
11
11
|
const renderCellInner = ({ label, description }, i, isFillGradient) => ((0, jsx_runtime_1.jsxs)("div", { className: "first:pt-7 pt-6 last:pb-7", children: [label && ((0, jsx_runtime_1.jsx)("h5", { className: `text-xl font-medium m-0 ${isFillGradient ? 'text-white' : ''}`, children: label })), description && ((0, jsx_runtime_1.jsx)("div", { className: `text-sm opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`, children: description }))] }, String(i)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2CAAwE;AAS3D,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,EAAE;IAC/F,MAAM,kBAAkB,GAAG,iCAAiC,0BAAc,IACxE,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,yBAC9B,IAAI,cAAc,CAAC,CAAC,CAAC,oBAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAErC,MAAM,WAAW,GAAG,eAAe,2BAAe,IAChD,cAAc,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAC9C,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2CAAwE;AAS3D,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,EAAE;IAC/F,MAAM,kBAAkB,GAAG,iCAAiC,0BAAc,IACxE,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,yBAC9B,IAAI,cAAc,CAAC,CAAC,CAAC,oBAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAErC,MAAM,WAAW,GAAG,eAAe,2BAAe,IAChD,cAAc,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAC9C,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;IAEjD,OAAO,CACL,gCAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,gCAAK,SAAS,EAAE,WAAW,YACxB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC,GAC5D,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAY,EAAE,CAAS,EAAE,cAAuB,EAAE,EAAE,CAAC,CAChG,iCAAqB,SAAS,EAAC,2BAA2B,aACvD,KAAK,IAAI,CACR,+BAAI,SAAS,EAAE,2BAA2B,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,YAAG,KAAK,GAAM,CAC7F,EACA,WAAW,IAAI,CACd,gCACE,SAAS,EAAE,sBAAsB,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,qBAAqB,EAAE,YAEvF,WAAW,GACR,CACP,KAVO,MAAM,CAAC,CAAC,CAAC,CAWb,CACP,CAAC"}
|
|
@@ -6,5 +6,5 @@ const constants_1 = require("./constants");
|
|
|
6
6
|
const TableCarouselContainer_1 = require("./TableCarouselContainer");
|
|
7
7
|
const TableCell_1 = require("./TableCell");
|
|
8
8
|
const TableRowContainer_1 = require("./TableRowContainer");
|
|
9
|
-
exports.TableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => ((0, jsx_runtime_1.jsxs)(TableRowContainer_1.TableRowContainer, { children: [header?.title ? ((0, jsx_runtime_1.jsx)("div", { className: `text-sm py-7 ${constants_1.DIVIDER_CLASSES} ${constants_1.FIRST_CELL_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: header.title })) : null, data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, children: data.map((cell, i) => ((0, jsx_runtime_1.jsx)(TableCell_1.TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
|
|
9
|
+
exports.TableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => ((0, jsx_runtime_1.jsxs)(TableRowContainer_1.TableRowContainer, { children: [header?.title ? ((0, jsx_runtime_1.jsx)("div", { className: `text-sm py-7 ${constants_1.DIVIDER_CLASSES} ${constants_1.FIRST_CELL_CLASSES} ${!isLastRow ? 'border-solid' : 'border-b-0'}`, children: header.title })) : null, data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, children: data.map((cell, i) => ((0, jsx_runtime_1.jsx)(TableCell_1.TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
|
|
10
10
|
//# sourceMappingURL=TableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2CAAgF;AAChF,qEAAkE;AAClE,2CAAwC;AACxC,2DAAwD;AAW3C,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC3F,wBAAC,qCAAiB,eACf,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CACf,gCACE,SAAS,EAAE,gBAAgB,2BAAe,IAAI,8BAAkB,IAC9D,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2CAAgF;AAChF,qEAAkE;AAClE,2CAAwC;AACxC,2DAAwD;AAW3C,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC3F,wBAAC,qCAAiB,eACf,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CACf,gCACE,SAAS,EAAE,gBAAgB,2BAAe,IAAI,8BAAkB,IAC9D,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAChC,EAAE,YAED,MAAM,CAAC,KAAK,GACT,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,wBAAY,YAChF,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,uBAAC,qBAAS,IAER,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,oBAAoB,IAAI,CAAC,KAAK,CAAC,IAJ1C,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACU,CACrB,CACF,CAAC"}
|
|
@@ -3,11 +3,18 @@ exports.ContentPageHead = 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
|
exports.ContentPageHead = (0, uni_jsx_1.JSX)(({ HeadComponent, data, children }) => {
|
|
6
|
-
const { title, main
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
: null, twitter
|
|
10
|
-
? Object.entries(twitter).map(([key, value]) => ((0, jsx_runtime_1.jsx)("meta", { name: `twitter:${key}`, content: value }, key)))
|
|
11
|
-
: null, canonical && (0, jsx_runtime_1.jsx)("link", { rel: "canonical", href: canonical }), jsonLd && (0, jsx_runtime_1.jsx)("script", { type: "application/ld+json", children: jsonLd }), children] }));
|
|
6
|
+
const { title, main, og, twitter, jsonLd } = data;
|
|
7
|
+
const { description, keywords, canonical, robots } = main || {};
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(HeadComponent, { children: [(0, jsx_runtime_1.jsx)("title", { children: title }), (0, jsx_runtime_1.jsx)("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), description && (0, jsx_runtime_1.jsx)("meta", { name: "description", content: description }), keywords && (0, jsx_runtime_1.jsx)("meta", { name: "keywords", content: keywords.join(',') }), robots && (0, jsx_runtime_1.jsx)("meta", { name: "robots", content: robots.join(',') }), renderOpenGraph(og), renderTwitter(twitter), canonical && (0, jsx_runtime_1.jsx)("link", { rel: "canonical", href: canonical }), jsonLd && (0, jsx_runtime_1.jsx)("script", { type: "application/ld+json", children: jsonLd }), children] }));
|
|
12
9
|
});
|
|
10
|
+
function renderOpenGraph(og) {
|
|
11
|
+
return og
|
|
12
|
+
? Object.entries(og).map(([key, value]) => ((0, jsx_runtime_1.jsx)("meta", { name: `og:${key}`, content: value }, key)))
|
|
13
|
+
: null;
|
|
14
|
+
}
|
|
15
|
+
function renderTwitter(twitter) {
|
|
16
|
+
return twitter
|
|
17
|
+
? Object.entries(twitter).map(([key, value]) => ((0, jsx_runtime_1.jsx)("meta", { name: `twitter:${key}`, content: value }, key)))
|
|
18
|
+
: null;
|
|
19
|
+
}
|
|
13
20
|
//# sourceMappingURL=ContentPageHead.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageHead.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPageHead.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,eAAe,GAAG,IAAA,aAAG,EAAuB,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC7F,MAAM,
|
|
1
|
+
{"version":3,"file":"ContentPageHead.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPageHead.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,eAAe,GAAG,IAAA,aAAG,EAAuB,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC7F,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAClD,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;IAChE,OAAO,CACL,wBAAC,aAAa,eACZ,4CAAQ,KAAK,GAAS,EACtB,iCAAM,IAAI,EAAC,UAAU,EAAC,OAAO,EAAC,qCAAqC,GAAG,EACrE,WAAW,IAAI,iCAAM,IAAI,EAAC,aAAa,EAAC,OAAO,EAAE,WAAW,GAAI,EAChE,QAAQ,IAAI,iCAAM,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,GAAI,EACjE,MAAM,IAAI,iCAAM,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAI,EAC3D,eAAe,CAAC,EAAE,CAAC,EACnB,aAAa,CAAC,OAAO,CAAC,EACtB,SAAS,IAAI,iCAAM,GAAG,EAAC,WAAW,EAAC,IAAI,EAAE,SAAS,GAAI,EACtD,MAAM,IAAI,mCAAQ,IAAI,EAAC,qBAAqB,YAAE,MAAM,GAAU,EAC9D,QAAQ,IACK,CACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,eAAe,CAAC,EAAsC;IAC7D,OAAO,EAAE;QACP,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CACvC,iCAAgB,IAAI,EAAE,MAAM,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,IAAtC,GAAG,CAAuC,CACtD,CAAC;QACJ,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,SAAS,aAAa,CAAC,OAA2C;IAChE,OAAO,OAAO;QACZ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAC5C,iCAAgB,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,IAA3C,GAAG,CAA4C,CAC3D,CAAC;QACJ,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -7,7 +7,7 @@ const Button_1 = require("../../ui-kit/Button/Button");
|
|
|
7
7
|
exports.Contacts = (0, uni_jsx_1.JSX)(({ className, items, hasButton, context }) => {
|
|
8
8
|
const router = context.useRouter();
|
|
9
9
|
const { handlerDecorator } = context;
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col ${className || ''}`, children: [items?.length ? items.map(renderContact) : null, hasButton ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { version: "primary", className: "
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col ${className || ''}`, children: [items?.length ? items.map(renderContact) : null, hasButton ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { version: "primary", className: "mt-0.5 mb-5", ...(0, useLink_1.useLink)({ router, handlerDecorator }, {
|
|
11
11
|
text: 'Обратная связь',
|
|
12
12
|
href: '/',
|
|
13
13
|
target: '_blank',
|
|
@@ -15,7 +15,7 @@ exports.Contacts = (0, uni_jsx_1.JSX)(({ className, items, hasButton, context })
|
|
|
15
15
|
});
|
|
16
16
|
const renderContact = (item, index) => {
|
|
17
17
|
const { type, text, description } = item;
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "mb-
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "mb-3.5", children: [(0, jsx_runtime_1.jsx)("div", { children: renderText(type, text) }), (0, jsx_runtime_1.jsx)("div", { className: "font-sans text-sm text-secondary-text", children: description })] }, String(index)));
|
|
19
19
|
};
|
|
20
20
|
const renderText = (type, text = '') => {
|
|
21
21
|
switch (type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../../src/components/Footer/Contacts.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,uDAAoD;AAQvC,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACtF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,iBAAiB,SAAS,IAAI,EAAE,EAAE,aAC/C,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,EAC/C,SAAS,CAAC,CAAC,CAAC,CACX,uBAAC,eAAM,IACL,OAAO,EAAC,SAAS,EACjB,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../../src/components/Footer/Contacts.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,uDAAoD;AAQvC,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACtF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,iBAAiB,SAAS,IAAI,EAAE,EAAE,aAC/C,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,EAC/C,SAAS,CAAC,CAAC,CAAC,CACX,uBAAC,eAAM,IACL,OAAO,EAAC,SAAS,EACjB,SAAS,EAAC,aAAa,KACnB,IAAA,iBAAO,EACT,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAC5B;oBACE,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,GAAG;oBACT,MAAM,EAAE,QAAQ;iBACjB,CACF,GACD,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,IAAiB,EAAE,KAAa,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAEzC,OAAO,CACL,iCAAK,SAAS,EAAC,QAAQ,aACrB,0CAAM,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,GAAO,EACnC,gCAAK,SAAS,EAAC,uCAAuC,YAAE,WAAW,GAAO,KAF/C,MAAM,CAAC,KAAK,CAAC,CAGpC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAyB,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE;IAC1D,QAAQ,IAAI,EAAE;QACZ,KAAK,KAAK;YACR,OAAO,CACL,8BACE,SAAS,EAAC,8DAA8D,EACxE,IAAI,EAAE,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,YAE7B,IAAI,GACH,CACL,CAAC;QACJ,KAAK,OAAO;YACV,OAAO,CACL,8BACE,SAAS,EAAC,8DAA8D,EACxE,IAAI,EAAE,UAAU,IAAI,EAAE,YAErB,IAAI,GACH,CACL,CAAC;QACJ;YACE,OAAO,2CAAO,IAAI,GAAQ,CAAC;KAC9B;AACH,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC"}
|