@redneckz/wildless-cms-uni-blocks 0.6.37 → 0.6.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/EventBus/EventBus.d.ts +6 -5
- package/bundle/EventBus/EventMap.d.ts +1 -4
- package/bundle/bundle.umd.js +178 -98
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Footer/FooterDataProps.d.ts +8 -3
- package/bundle/components/Tabs/LinkTab.d.ts +0 -1
- package/bundle/components/Tabs/Tabs.d.ts +0 -4
- package/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/bundle/utils/debounce.d.ts +5 -0
- package/dist/EventBus/EventBus.d.ts +6 -5
- package/dist/EventBus/EventBus.js +5 -3
- package/dist/EventBus/EventBus.js.map +1 -1
- package/dist/EventBus/EventMap.d.ts +1 -4
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js +1 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +2 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +0 -1
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/renderProposal.js +2 -2
- package/dist/components/Calculator/renderProposal.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +1 -1
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -0
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/useContentPageData.js +4 -8
- package/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/FooterDataProps.d.ts +8 -3
- package/dist/components/Footer/MediaButton.js +1 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +1 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +2 -2
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkList/LinkList.js +1 -1
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/dist/components/OfficeMap/useOfficeMap.js +3 -4
- package/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +3 -3
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tabs/LinkTab.d.ts +0 -1
- package/dist/components/Tabs/LinkTab.js +2 -8
- package/dist/components/Tabs/LinkTab.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -4
- package/dist/components/Tabs/Tabs.js +6 -12
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/hooks/useLink.js +11 -2
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/dist/services/BlockRouter/BlockIntersection.js +2 -0
- package/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
- package/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/dist/services/BlockRouter/BlockRouter.js +32 -0
- package/dist/services/BlockRouter/BlockRouter.js.map +1 -0
- package/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/dist/services/BlockRouter/findActiveBlock.js +15 -0
- package/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
- package/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
- package/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
- package/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/dist/services/BlockRouter/useBlockRouter.js +8 -0
- package/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
- package/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
- package/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +6 -20
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
- package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/dist/utils/debounce.d.ts +5 -0
- package/dist/utils/debounce.js +19 -0
- package/dist/utils/debounce.js.map +1 -0
- package/lib/EventBus/EventBus.d.ts +6 -5
- package/lib/EventBus/EventBus.js +5 -3
- package/lib/EventBus/EventBus.js.map +1 -1
- package/lib/EventBus/EventMap.d.ts +1 -4
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js +1 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +2 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +0 -1
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/renderProposal.js +2 -2
- package/lib/components/Calculator/renderProposal.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -0
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/useContentPageData.js +4 -8
- package/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/FooterDataProps.d.ts +8 -3
- package/lib/components/Footer/MediaButton.js +1 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +2 -2
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkList/LinkList.js +1 -1
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/lib/components/OfficeMap/useOfficeMap.js +3 -4
- package/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -3
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tabs/LinkTab.d.ts +0 -1
- package/lib/components/Tabs/LinkTab.js +2 -8
- package/lib/components/Tabs/LinkTab.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +0 -4
- package/lib/components/Tabs/Tabs.js +7 -13
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/hooks/useLink.js +11 -2
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/lib/services/BlockRouter/BlockIntersection.js +2 -0
- package/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
- package/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/lib/services/BlockRouter/BlockRouter.js +29 -0
- package/lib/services/BlockRouter/BlockRouter.js.map +1 -0
- package/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/lib/services/BlockRouter/findActiveBlock.js +12 -0
- package/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
- package/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
- package/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
- package/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/lib/services/BlockRouter/useBlockRouter.js +5 -0
- package/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
- package/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
- package/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +7 -21
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
- package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/lib/utils/debounce.d.ts +5 -0
- package/lib/utils/debounce.js +16 -0
- package/lib/utils/debounce.js.map +1 -0
- package/mobile/bundle/EventBus/EventBus.d.ts +6 -5
- package/mobile/bundle/EventBus/EventMap.d.ts +1 -4
- package/mobile/bundle/bundle.umd.js +140 -48
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +8 -3
- package/mobile/bundle/components/Tabs/LinkTab.d.ts +0 -1
- package/mobile/bundle/components/Tabs/Tabs.d.ts +0 -4
- package/mobile/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/mobile/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/mobile/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/mobile/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/mobile/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/mobile/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/mobile/bundle/utils/debounce.d.ts +5 -0
- package/mobile/dist/EventBus/EventBus.d.ts +6 -5
- package/mobile/dist/EventBus/EventBus.js +5 -3
- package/mobile/dist/EventBus/EventBus.js.map +1 -1
- package/mobile/dist/EventBus/EventMap.d.ts +1 -4
- package/mobile/dist/components/AccordionItem/AccordionItem.js +1 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +2 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +0 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/renderProposal.js +2 -2
- package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +1 -1
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -0
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js +4 -8
- package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +8 -3
- package/mobile/dist/components/Footer/MediaButton.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +1 -1
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +2 -2
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.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/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.js +1 -1
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/OfficeMap/useOfficeMap.js +3 -4
- package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +3 -3
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/LinkTab.d.ts +0 -1
- package/mobile/dist/components/Tabs/LinkTab.js +2 -8
- package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.d.ts +0 -4
- package/mobile/dist/components/Tabs/Tabs.js +6 -12
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/hooks/useLink.js +11 -2
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/mobile/dist/services/BlockRouter/BlockIntersection.js +2 -0
- package/mobile/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
- package/mobile/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/mobile/dist/services/BlockRouter/BlockRouter.js +32 -0
- package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -0
- package/mobile/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/mobile/dist/services/BlockRouter/findActiveBlock.js +15 -0
- package/mobile/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
- package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
- package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
- package/mobile/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/mobile/dist/services/BlockRouter/useBlockRouter.js +8 -0
- package/mobile/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
- package/mobile/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
- package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +6 -20
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/mobile/dist/utils/debounce.d.ts +5 -0
- package/mobile/dist/utils/debounce.js +19 -0
- package/mobile/dist/utils/debounce.js.map +1 -0
- package/mobile/lib/EventBus/EventBus.d.ts +6 -5
- package/mobile/lib/EventBus/EventBus.js +5 -3
- package/mobile/lib/EventBus/EventBus.js.map +1 -1
- package/mobile/lib/EventBus/EventMap.d.ts +1 -4
- package/mobile/lib/components/AccordionItem/AccordionItem.js +1 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +2 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +0 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/renderProposal.js +2 -2
- package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +1 -1
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -0
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js +4 -8
- package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +8 -3
- package/mobile/lib/components/Footer/MediaButton.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +1 -1
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +2 -2
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.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/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.js +1 -1
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/OfficeMap/useOfficeMap.js +3 -4
- package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -3
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/LinkTab.d.ts +0 -1
- package/mobile/lib/components/Tabs/LinkTab.js +2 -8
- package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.d.ts +0 -4
- package/mobile/lib/components/Tabs/Tabs.js +7 -13
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +11 -2
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
- package/mobile/lib/services/BlockRouter/BlockIntersection.js +2 -0
- package/mobile/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
- package/mobile/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
- package/mobile/lib/services/BlockRouter/BlockRouter.js +29 -0
- package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -0
- package/mobile/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
- package/mobile/lib/services/BlockRouter/findActiveBlock.js +12 -0
- package/mobile/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
- package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
- package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
- package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
- package/mobile/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
- package/mobile/lib/services/BlockRouter/useBlockRouter.js +5 -0
- package/mobile/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
- package/mobile/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
- package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
- package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +7 -21
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/mobile/lib/utils/debounce.d.ts +5 -0
- package/mobile/lib/utils/debounce.js +16 -0
- package/mobile/lib/utils/debounce.js.map +1 -0
- package/mobile/src/EventBus/EventBus.ts +18 -14
- package/mobile/src/EventBus/EventMap.ts +1 -4
- package/mobile/src/components/AccordionItem/AccordionItem.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Bonus/Bonus.tsx +2 -4
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +0 -1
- package/mobile/src/components/Calculator/renderProposal.tsx +2 -2
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/mobile/src/components/Catalog/Catalog.example.json +1 -1
- package/mobile/src/components/Catalog/Catalog.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +3 -0
- package/mobile/src/components/ContentPage/useContentPageData.ts +4 -8
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/mobile/src/components/Footer/FooterDataProps.ts +8 -3
- package/mobile/src/components/Footer/MediaButton.tsx +1 -1
- package/mobile/src/components/Gallery/Gallery.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +2 -2
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -6
- package/mobile/src/components/LinkList/LinkList.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/OfficeMap/useOfficeMap.ts +4 -4
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -3
- package/mobile/src/components/Tabs/LinkTab.tsx +2 -10
- package/mobile/src/components/Tabs/Tabs.tsx +11 -19
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/hooks/useLink.ts +13 -2
- package/mobile/src/services/BlockRouter/BlockIntersection.ts +3 -0
- package/mobile/src/services/BlockRouter/BlockRouter.ts +51 -0
- package/mobile/src/services/BlockRouter/findActiveBlock.ts +20 -0
- package/mobile/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
- package/mobile/src/services/BlockRouter/useBlockRouter.ts +5 -0
- package/mobile/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
- package/mobile/src/ui-kit/BlockWrapper.tsx +9 -32
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
- package/mobile/src/ui-kit/Select/Select.tsx +2 -2
- package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
- package/mobile/src/utils/debounce.ts +24 -0
- package/package.json +1 -1
- package/src/EventBus/EventBus.ts +18 -14
- package/src/EventBus/EventMap.ts +1 -4
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/AccordionItem/AccordionItem.mobile.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Bonus/Bonus.tsx +2 -4
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/src/components/Calculator/DepositCalculatorForm.tsx +0 -1
- package/src/components/Calculator/renderProposal.tsx +2 -2
- package/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +0 -1
- package/src/components/Catalog/Catalog.example.json +1 -1
- package/src/components/Catalog/Catalog.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +3 -0
- package/src/components/ContentPage/useContentPageData.ts +4 -8
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/src/components/Footer/Footer.tsx +2 -2
- package/src/components/Footer/FooterDataProps.ts +8 -3
- package/src/components/Footer/MediaButton.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +1 -1
- package/src/components/GracePeriod/GracePeriod.tsx +2 -2
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/Headline/Headline.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -6
- package/src/components/LinkDocs/LinkDocs.tsx +1 -4
- package/src/components/LinkList/LinkList.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/OfficeMap/useOfficeMap.ts +4 -4
- package/src/components/ProductBlock/ProductBlock.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/src/components/Recommendation/Recommendation.fixture.tsx +38 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.tsx +2 -4
- package/src/components/Tabs/LinkTab.tsx +2 -10
- package/src/components/Tabs/Tabs.tsx +11 -19
- package/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +3 -3
- package/src/hooks/useLink.ts +13 -2
- package/src/services/BlockRouter/BlockIntersection.ts +3 -0
- package/src/services/BlockRouter/BlockRouter.ts +51 -0
- package/src/services/BlockRouter/findActiveBlock.ts +20 -0
- package/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
- package/src/services/BlockRouter/useBlockRouter.ts +5 -0
- package/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
- package/src/ui-kit/BlockWrapper.tsx +9 -32
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +1 -1
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
- package/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
- package/src/ui-kit/Select/Select.tsx +2 -2
- package/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
- package/src/utils/debounce.ts +24 -0
- package/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/bundle/utils/changeHashOnObserve.d.ts +0 -9
- package/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/dist/components/SafeDepositRental/YandexMap.js +0 -31
- package/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
- package/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
- package/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
- package/dist/utils/changeHashOnObserve.d.ts +0 -9
- package/dist/utils/changeHashOnObserve.js +0 -21
- package/dist/utils/changeHashOnObserve.js.map +0 -1
- package/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/lib/components/SafeDepositRental/YandexMap.js +0 -29
- package/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
- package/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
- package/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
- package/lib/utils/changeHashOnObserve.d.ts +0 -9
- package/lib/utils/changeHashOnObserve.js +0 -18
- package/lib/utils/changeHashOnObserve.js.map +0 -1
- package/mobile/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/mobile/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/mobile/bundle/utils/changeHashOnObserve.d.ts +0 -9
- package/mobile/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/mobile/dist/components/SafeDepositRental/YandexMap.js +0 -31
- package/mobile/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
- package/mobile/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
- package/mobile/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
- package/mobile/dist/utils/changeHashOnObserve.d.ts +0 -9
- package/mobile/dist/utils/changeHashOnObserve.js +0 -21
- package/mobile/dist/utils/changeHashOnObserve.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
- package/mobile/lib/components/SafeDepositRental/YandexMap.js +0 -29
- package/mobile/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
- package/mobile/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
- package/mobile/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
- package/mobile/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
- package/mobile/lib/utils/changeHashOnObserve.d.ts +0 -9
- package/mobile/lib/utils/changeHashOnObserve.js +0 -18
- package/mobile/lib/utils/changeHashOnObserve.js.map +0 -1
- package/mobile/src/components/SafeDepositRental/YandexMap.tsx +0 -43
- package/mobile/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
- package/mobile/src/utils/changeHashOnObserve.ts +0 -30
- package/src/components/SafeDepositRental/YandexMap.tsx +0 -43
- package/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
- package/src/utils/changeHashOnObserve.ts +0 -30
|
@@ -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";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),f=[],N=["col-span-12"];function y(e,t){const{key:n,blockDecorator:i=b,blocksRegistry:r={},ancestors:l=f}=t,{type:a}=e;a&&a in r||console.warn(`No block with "${a}" is registered`);const s=a&&r[a];return i({blockClassName:`scroll-mt-12 ${g(e.style||N)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return s?h(s,{className:r,block:e,options:t,...l},n):null}},n)}const v=[],w=(e,{key:t,ancestors:n=v,slotName:i=null,renderChild:r=y,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...n||v,[l.parent,i]]:n})));function k({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?w(t.blocks,{...n,parent:t,renderChild:i}):null)}class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function C(e,{sensitivity:t,rootRef:n}={}){const i=s(null),l=a((()=>({threshold:S(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}function S(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const T=p((({className:e,block:t,tag:n="section",role:l,children:o})=>{const c=n,{anchor:d,labels:m}=t||{},[u,p]=i(!0),x=s({}),g=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[i]=n;!i.isIntersecting||i.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?($.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),$.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||$.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),b=C(g,{sensitivity:1});return r((()=>$.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const n=m?.length||t?.anchor;p(!e.label||(!n||Boolean(m?.includes(e.label))))}else(n=e.label)&&(globalThis.document.location.hash=n),p(!0);var n}))),[]),u?h(c,{className:e,role:l,...d?{id:d,ref:b}:{},children:o}):null}));const _={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},I=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${_[n]} ${t||""}`,children:i})})),R=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("p",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),j=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),A=p((({title:e,description:t,className:n="",...i})=>u(T,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?h(I,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(R,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(j,{children:k(i)})]})));A.childrenTypes=["AccordionItem"];const D=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),O=p((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),h("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),V={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},M=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?h(P,{className:e,children:u("svg",{className:[B(e,s.width),V[l],t,L(l)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,i?h("desc",{children:i}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:i,title:r,...s,"aria-hidden":"true"})})),L=e=>"white"===e?"invert":"",B=(e,t)=>t?`width: ${t}px `:"w-full h-full",P=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function F(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const E=(e,t)=>e.media&&t.media?e.media-t.media:0,z=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(E).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:H(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,G(t,n,i)]})})),G=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})};function H(e){return e?`image/${String(e)}`:void 0}const J=p((({className:e="",image:t,imageClassName:n="",isMobile:i,...r})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(M,{className:e,imageClassName:n,iconVersion:F(t),name:l,...r}):null:h(z,{className:e,imageClassName:n,image:t,isMobile:i})})),U=p((e=>h(J,{...e,isMobile:!0}))),W=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("span",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),Y=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),K=["PlusIcon","MinusIcon"],X=p((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return h("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h(D,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(O,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(q,{className:l?"":"py-[14px] px-0",label:t,icon:K[Number(e)],primaryIcon:n,onClick:i})})})}));X.childrenTypes=[];const q=p((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[u("div",{className:"flex group-hover:text-primary-main",children:[i?h(U,{image:Y(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(W,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(U,{className:"flex-shrink-0",image:Y({icon:t}),width:"24",height:"24",asSVG:!0})]}))),Q=p((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:a,onIntersection:s})=>{const o=C(l((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:a})})),Z=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]"],ee=p((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i,gap:r=0,padding:a=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:m})=>{const u={sensitivity:1,rootRef:t},p=s([]),x=l(((e,t)=>{const n=[...p.current||[]];n[e]=t,p.current=n,d&&d(n),m&&m(ne(n))}),[d,m]);return h("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...te(a),gap:`${r}px`},role:"list",ref:t,children:(g=(e,t)=>h(Q,{className:`${o} ${i?Z[i-1]:""}`,style:te(a/4),activeIndex:n,idx:t,observerOptions:u,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(g):g(e,0))(c)});var g})),te=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),ne=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ie=p((({containerRef:e,activeIndex:t,dotCount:n=0})=>n?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:new Array(n).fill(null).map(((n,i)=>h("div",{className:"cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300 "+(i===t?"w-6":"w-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),re=e=>e,le=(e=re)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),ae=(e=re)=>le((t=>-e(t))),se=e=>t=>e.scrollWidth/t,oe=e=>(t,n)=>{e.scrollBy({left:n*se(e)(t),behavior:"smooth"})},ce=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[a,o]=i([]),c=l((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=a.length?[ae()(a),le()(a)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):oe(r.current)(e,-1))}),[t,e,h]),x=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):oe(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},de=p((({className:e,gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l})=>{const a=Array.isArray(r)?r.length:0,[s,o]=ce({itemCount:a,onVisibleIndicesChange:l}),[c]=o.visibleIndicesRange;return u("div",{className:e,children:[h(ee,{containerRef:s,activeIndex:c,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:o.handleVisibleIndicesChange,children:r}),i?h(ie,{containerRef:s,activeIndex:c,dotCount:a}):null]})})),me=e=>e?.includes("//"),he=e=>(e||"").replace(/\/?\?.*/,""),ue=e=>{if(!e||!me(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},pe=e=>e?.startsWith("#");var xe=Object.freeze({__proto__:null,isURL:me,withoutQuery:he,getOrigin:ue,getHash:e=>{if(!e||!me(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:pe});const ge=(e,t)=>ge._impl(e,t);function be(){return be._impl()}function fe(){const e=be();return t=>{const n=((e,t)=>{if(!e)return e;const n=ue(t?.href);return n?e.replace(n,"")||"/":e})(t.href,e);return{...t,href:n,"aria-label":t.text,onClick:ge((i=>{t.onClick&&t.onClick(i);const r=n&&!me(n),l=!t.target||"_self"===t.target;r&&l&&!pe(n)&&(i?.preventDefault(),e.push(n))}),t)}}}ge._impl=e=>e,ge.setup=e=>{ge._impl=e},be._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),be.setup=e=>{be._impl=e};const Ne={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},ye="bg-main-divider text-main-disabled",ve={primary:ye,secondary:ye,white:ye,link:""},we="text-center font-sans select-none",ke={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},$e=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:Ce(e),children:[i?h("div",{className:ke[l],children:i}):null,Se(e)?u("div",{children:[n?h("div",{className:"text-xs-light text-left",children:n}):null,h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:ke[l],children:r}):null]})})),Ce=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",Se(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},Se=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Te=({className:e,rounded:t,version:n})=>["inline-block",we,n?ve[n]:"",t?"rounded-full":"rounded-md",e].join(" "),_e=({className:e,rounded:t,version:n})=>[we,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?Ne[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ie=p((({disabled:e,children:t,...n})=>{const i=fe()(n),r=t??h($e,{...i});return h(e?je:Re,{...i,children:r})})),Re=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>h("a",{className:_e({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),je=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Te({className:e,rounded:i,version:n}),children:r}))),Ae=(e=!1)=>e?"text-white":"",De=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Oe=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(U,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(U,{image:t})}),n?h(I,{headingType:"h4",className:Ae(r),title:n}):null,i?h("div",{className:De(r),children:i}):null]}))),Ve=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Me(n,t))})}))),Me=(e,t)=>({label:n,description:i},r)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),Le=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(Oe,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(Ve,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(Ie,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Be({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),Be=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Pe=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(I,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(Fe,{...e})})]})})),Fe=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return h(Le,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?h(de,{onVisibleIndicesChange:m,children:u}):u})),Ee=new Map;function ze(e,t,{fallback:n}={}){const l=a((()=>Ge(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>Ee.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ge(e){return e?Array.isArray(e)?e:e instanceof Function?Ge(e()):[e]:[e]}async function He(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Je(e,t={}){const{data:n}=ze(`/wcms-resources/${e}.json`,He,{fallback:t});return n||{}}const Ue=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(U,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(U,{image:"CloseIcon",width:"24",height:"24"})}):h(Ie,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),We=p((e=>h(Ue,{...e,isMobile:!0}))),Ye=p((({className:e="",documents:t,...n})=>h(T,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ke(t):null})}))),Ke=e=>e.map(((e,t)=>{const{text:n,...i}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),Xe={"bg-white":"color",transparent:"white"},qe={"bg-white":"text-primary-main",transparent:"text-white"},Qe={"bg-white":"text-black",transparent:"text-white"},Ze=p((({className:e="",href:t,children:n,targetBlank:i,bgColor:r="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(U,{image:{icon:"LogoIcon",iconVersion:Xe[r]},className:`${qe[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${Qe[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),et=p((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(Ze,{className:"w-8",bgColor:"transparent",showTitle:!0})}),u("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),tt=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(nt):null,n?h(Ie,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),nt=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:it(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},it=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${rt(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},rt=e=>e.replaceAll(/\D/g,""),lt=p((({className:e="",index:t,text:n,...i})=>{const r=fe(),{href:l,target:a,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),at=p((({title:e,links:t,className:n=""})=>u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(lt,{index:t,className:"text-s",...e},String(t))))}):null]}))),st=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],ot=p((({version:e="primary",...t})=>{const n=fe(),{href:i,onClick:r}=n(t),{icon:l,label:a}=st.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":a,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(U,{image:Y(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),ct=p((({className:e="",media:t,version:n})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(ot,{version:n,...e},String(t))))}))),dt=p((({className:e="",index:t,...n})=>{const i=fe(),{href:r,target:l,text:a,onClick:s}=i(n);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),mt=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(dt,{index:t,...e},String(t))))}):null]}))),ht=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Je(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Je(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(tt,{className:"overflow-hidden",items:a,hasButton:!0}),h(j,{children:i.topItems?.map(((e,t)=>h(X,{label:e.text,children:h(Ye,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(ut)}),h(et,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(We,{className:"grow"}),h(ct,{className:"pb-4",media:s}),h(at,{title:o,links:l}),h(mt,{links:r})]})})),ut=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(Ie,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(U,{className:"pr-1",image:Y(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},pt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},xt=p((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[e?h(I,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),gt(r,n)]})));function gt(e,t){return"horizontal"===e?h(de,{children:t?.map(bt)}):h("div",{className:"grid gap-[14px]",children:t?.map(bt)})}function bt(e,t){return u("div",{className:`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-main-stroke p-4\n ${pt[e.version??"primary"]}`,children:[u("div",{children:[ft(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Nt(e):null,e.items?.length?vt(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(Ie,{className:"mt-3",...n})):null]},t);var n}const ft=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(U,{className:"mb-3.5",image:e})}):null;function Nt(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const yt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function vt(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,i)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${yt[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const wt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(he(e),he(me(e)?t.href:t.pathname)),kt=e=>t=>wt(t.href,e),$t=e=>t=>t.items?.some(kt(e))||wt(t.href,e)||((e,t)=>ue(e)===ue(t.href))(t.href,e),Ct="absolute left-0 -bottom-3 w-full h-[2px]",St=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[h("span",{className:Tt(s,r),children:t||a}),r?h("div",{className:_t(s,r)}):null]}))),Tt=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},_t=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ct}`:Ct,It=o("https://10.80.4.9");const Rt=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{It.getFetcherAddress().then((t=>{const i=t||e;globalThis?.localStorage.setItem("location",i),n(i)}))}),[e])]}(n);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:h(U,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:o,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(U,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),a,h("div",{className:"mb-7",children:e?.map(jt)}),h(We,{className:"grow"})]})})),jt=(e,t)=>{const{icon:n,href:i,text:r}=e;return u("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(U,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},At=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(U,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(Ze,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Dt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=be(),a=n.options?.page?.fallback,{topItems:s,dispositions:o,defaultLocation:d}=Je(c.SITEMAP||"sitemap",a),m=s?.find($t(r)),p=m?.items,x=(e=>(t=[])=>{const n=t?.filter(kt(e));return n?.length?le((e=>e.href?.length||0))(n):void 0})(r)(p),[g,b]=i(!1),f=l((()=>b((e=>!e))),[]);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(At,{onClick:f,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:p?.map(((e,n)=>h(St,{className:"mr-8 whitespace-nowrap text-s",active:e===x,bgColor:t,...e},String(n))))})})]}),g?h(Rt,{onClick:f,burgerSubMenu:o,defaultLocation:d,children:h(j,{children:s?.map(((e,t)=>h(X,{label:e.text,children:h(Ye,{documents:e.items})},String(t))))})}):null]})})),Ot={left:"text-left",center:"text-center",right:"text-right"},Vt={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},Mt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const a=Vt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(I,{headingType:"h2",className:`${a.text} ${Ot[l]}`,title:n}):null,i?h("p",{className:`text-m ${a.description} ${Ot[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(U,{image:r})})]})})),Lt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(U,{className:t,image:Y(l),width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:i,children:o?.href&&Bt(Pt(o.href),s)})]}):null]})})),Bt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Pt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ft=p((({className:e="",doc:t,icon:n})=>h(Lt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Et=p((({hasBorder:e=!0,documents:t,icon:n})=>h(de,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(Ft,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),zt=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>h("div",{role:"listitem",children:h(Ft,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Gt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(Mt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...s}),h("vertical"===l?zt:Et,{hasBorder:a,documents:r,icon:i})]}))),Ht=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Jt(e=""){const t=Ht(e);return t<=4?"S":t<=8?"M":"L"}function Ut(e=""){const t=Ht(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Wt(e=""){const t=Ht(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Yt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Wt(e)} ${Ut(e)} `,...i,children:[h(Mt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Jt(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:Kt()})]}))),Kt=(e=3)=>qt(100,e).map((e=>Math.floor(e))).map(Xt),Xt=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),qt=(e,t)=>[e].concat(t>0?qt(e/1.618,t-1):[]),Qt=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Zt({button:e,index:t})))}):null));function Zt({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...a}=e,s="secondary"===l?"color":"white",o=en({...i,iconVersion:s}),c=en({...r,iconVersion:s});return h(Ie,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const en=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(U,{image:{...e},width:t,height:"24",asSVG:!0})},tn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},nn={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},rn=p((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${tn[i]} ${nn[r]}`})}):null,h("span",{children:n})]}))),ln={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},an={S:"text-l-light",M:"text-h6",L:"text-h5"},sn={S:"ml-2",M:"ml-3",L:"ml-4"},on=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${ln[s]} ${an[a]} ${t} ${n?sn[a]:""}`,role:"list",children:l.map(((e,t)=>h(rn,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),cn=p((({className:e="",title:t="",buttons:n,image:i,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),n?h("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),dn={primary:"text-primary-text",secondary:"text-white"},mn={primary:"text-secondary-text",secondary:"text-white"},hn=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:un(l,a),children:h(U,{className:"w-6 h-6",image:Y(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${dn[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${mn[l]}`,children:r}):null]})]})}));function un(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const pn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(hn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),xn=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?fn(c,s):null,h(Mt,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),u(cn,{buttons:r?.length?h(Qt,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(pn(s,i))}):null,a?.length?h(on,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),gn(l)]})));function gn(e){return e?.src?h(U,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const bn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},fn=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${bn[t]}`,children:e}),Nn=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${pt[n]} ${t}`,children:h(xn,{...e})})})),yn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},vn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},wn={normal:"min-h-[70px]",small:"min-h-[50px]"},kn=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=yn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(I,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map($n(l,a,i))})}):null]})})),$n=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=yn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[Cn(e,t)(i,r),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${wn[e]}`,children:[i.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?h("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},Cn=(e,t)=>(n,i)=>{const r=yn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${vn[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(U,{image:Y({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var s},Sn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>Zt({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?h(U,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(on,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},Tn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(I,{headingType:"h3",className:"font-medium",title:e}):null,t?h(U,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),_n=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(Tn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,In(e,t)]},String(n)))):null]})));function In(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Sn))return null;const n=Sn[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Rn=p((({tiles:e,...t})=>e?.length?h(de,{...t,children:e.map(((e,n)=>h(_n,{tile:e,...t},String(n))))}):null)),jn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(_n,{tile:e,...t},String(n))))}):null)),An=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=Dn(i),o=On(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(I,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"mb-5 text-center text-m",children:n}):null,h("vertical"===l?jn:Rn,{tiles:o,...a})]})})),Dn=e=>e?.[0]?.data?e[0].data:[],On=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Vn={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"}},Mn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=Vn[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Ln(o.icon):null,"big"===i?Bn(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(on,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Ln(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Bn(e){return e?.src?h(U,{className:"pb-3 mr-auto",image:e}):null}const Pn={Accordion:A,AccordionItem:X,ComparisonTable:Pe,Footer:ht,Gallery:xt,Header:Dt,Headline:Mt,LinkDocs:Gt,LinkList:Ye,MobileAppTile:et,ProductBlock:Nn,StepsBlock:kn,TariffsTable:An,TextBlock:Mn,Placeholder:Yt},Fn=m();const En=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:zn()}))),zn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Gn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Fn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Fn.like(e))}),[e]),dislike:l((async()=>{n(await Fn.dislike(e))}),[e])}}(be().pathname);return u("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:[h(En,{onClick:ge(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(En,{onClick:ge(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Hn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return u("section",{className:`relative ${g(l)} ${t}`,"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(a,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Gn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Hn.childrenTypes=[],Hn.slots=()=>["header","footer"];e.Blocks=Pn,e.ContentPage=Hn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=ge,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.37",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=xe,e.useRouter=be,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";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),s=n("useMemo"),a=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,s=i||l&&l();return e(Object.assign(r,s&&{children:s}),n)}return t.inheritAttrs=!1,t};function b(e){return e?e.filter(Boolean).join(" "):""}const x=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),f=[],N=["col-span-12"];function y(e,t){const{key:n,blockDecorator:i=x,blocksRegistry:r={},ancestors:l=f}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const a=s&&r[s];return i({blockClassName:`scroll-mt-12 ${b(e.style||N)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return a?h(a,{className:r,block:e,options:t,...l},n):null}},n)}const v=[],w=(e,{key:t,ancestors:n=v,slotName:i=null,renderChild:r=y,...l})=>(e||[]).map(((e,s)=>r(e,{...l,key:`${t||e.type}-${s}`,ancestors:l.parent?[...n||v,[l.parent,i]]:n})));function k({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?w(t.blocks,{...n,parent:t,renderChild:i}):null)}class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function C(e,{sensitivity:t,rootRef:n}={}){const i=a(null),l=s((()=>({threshold:S(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}function S(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const T=e=>e?.replace("#","");class _{static inst=new _;eventBus=new $;constructor(){const e=T(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=T(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",`#${T(e)}`)}replace(e){globalThis.history?.replaceState(null,"",`#${T(e)}`)}reset(){globalThis.history?.replaceState(null,"","#")}}const I=p((({className:e,block:t,tag:n="section",role:s,children:a})=>{const o=n,c=function(e,t=_.inst){const n=C(l((n=>{if(!e||!n?.length)return;const i=n[n.length-1];t.eventBus.fire("intersection",{block:e,intersection:i})}),[e,t]),{sensitivity:1});return r((()=>{if(n.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{n.current&&e?.anchor===t&&n.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),n}(t),[d,m]=i(!0);return r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const n=t?.labels?.length||t?.anchor;m(!e.label||(!n||Boolean(t?.labels?.includes(e.label))))}else m(!0)}))),[t]),d?h(o,{className:e,role:s,...t?.anchor?{id:t.anchor,ref:c}:{},children:a}):null})),R={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},j=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${R[n]} ${t||""}`,children:i})})),A=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("p",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),D=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),O=p((({title:e,description:t,className:n="",...i})=>u(I,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?h(j,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(A,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(D,{children:k(i)})]})));O.childrenTypes=["AccordionItem"];const M=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[s,a]=i(t),o=l((()=>{a((e=>!e))}),[]),c=n({isUnfolded:s,onToggle:o}),d=r?r({isUnfolded:s,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),V=p((({className:e="",isUnfolded:t,children:n})=>{const i=a(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),h("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),B={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},L=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:s,...a})=>{const o=`${c.CDN||""}icons/${n}.svg`;return s&&"normal"!==l?h(E,{className:e,children:u("svg",{className:[P(e,a.width),B[l],t,F(l)].join(" "),...a,"aria-hidden":"true",children:[r?h("title",{children:r}):null,i?h("desc",{children:i}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:i,title:r,...a,"aria-hidden":"true"})})),F=e=>"white"===e?"invert":"",P=(e,t)=>t?`width: ${t}px `:"w-full h-full",E=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function z(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const G=(e,t)=>e.media&&t.media?e.media-t.media:0,H=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(G).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:U(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,J(t,n,i)]})})),J=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,s=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${s} ${t}`,alt:l,title:r,style:i,...e.size})};function U(e){return e?`image/${String(e)}`:void 0}const W=p((({className:e="",image:t,imageClassName:n="",isMobile:i,...r})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(L,{className:e,imageClassName:n,iconVersion:z(t),name:l,...r}):null:h(H,{className:e,imageClassName:n,image:t,isMobile:i})})),Y=p((e=>h(W,{...e,isMobile:!0}))),K=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("span",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),X=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),q=["PlusIcon","MinusIcon"],Q=p((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return h("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h(M,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(V,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(Z,{className:l?"":"py-3.5 px-0",label:t,icon:q[Number(e)],primaryIcon:n,onClick:i})})})}));Q.childrenTypes=[];const Z=p((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[u("div",{className:"flex group-hover:text-primary-main",children:[i?h(Y,{image:X(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(K,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(Y,{className:"flex-shrink-0",image:X({icon:t}),width:"24",height:"24",asSVG:!0})]}))),ee=p((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:s,onIntersection:a})=>{const o=C(l((e=>{e.length&&a&&a(n||0,e[e.length-1])}),[a,n]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:s})})),te=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]"],ne=p((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i,gap:r=0,padding:s=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:m})=>{const u={sensitivity:1,rootRef:t},p=a([]),g=l(((e,t)=>{const n=[...p.current||[]];n[e]=t,p.current=n,d&&d(n),m&&m(re(n))}),[d,m]);return h("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...ie(s),gap:`${r}px`},role:"list",ref:t,children:(b=(e,t)=>h(ee,{className:`${o} ${i?te[i-1]:""}`,style:ie(s/4),activeIndex:n,idx:t,observerOptions:u,onIntersection:g,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(b):b(e,0))(c)});var b})),ie=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),re=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),le=p((({containerRef:e,activeIndex:t,dotCount:n=0})=>n?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:new Array(n).fill(null).map(((n,i)=>h("div",{className:"cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300 "+(i===t?"w-6":"w-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),se=e=>e,ae=(e=se)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),oe=(e=se)=>ae((t=>-e(t))),ce=e=>t=>e.scrollWidth/t,de=e=>(t,n)=>{e.scrollBy({left:n*ce(e)(t),behavior:"smooth"})},me=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=a(null),[s,o]=i([]),c=l((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=s.length?[oe()(s),ae()(s)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):de(r.current)(e,-1))}),[t,e,h]),g=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):de(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},he=p((({className:e,gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l})=>{const s=Array.isArray(r)?r.length:0,[a,o]=me({itemCount:s,onVisibleIndicesChange:l}),[c]=o.visibleIndicesRange;return u("div",{className:e,children:[h(ne,{containerRef:a,activeIndex:c,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:o.handleVisibleIndicesChange,children:r}),i?h(le,{containerRef:a,activeIndex:c,dotCount:s}):null]})}));const ue=e=>e?.includes("//"),pe=e=>(e||"").replace(/\/?\?.*/,""),ge=e=>{if(!e||!ue(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},be=e=>e?.startsWith("#");var xe=Object.freeze({__proto__:null,isURL:ue,withoutQuery:pe,getOrigin:ge,getHash:e=>{if(!e||!ue(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:be});const fe=(e,t)=>fe._impl(e,t);function Ne(){return Ne._impl()}function ye(){const e=Ne(),t=_.inst;return n=>{const i=((e,t)=>{if(!e)return e;const n=ge(t?.href);return n?e.replace(n,"")||"/":e})(n.href,e);return{...n,href:i,"aria-label":n.text,onClick:fe((r=>{n.onClick&&n.onClick(r);const l=i&&!ue(i),s=!n.target||"_self"===n.target;l&&s&&(r?.preventDefault(),be(i)?t.goto(i):e.push(i))}),n)}}}fe._impl=e=>e,fe.setup=e=>{fe._impl=e},Ne._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Ne.setup=e=>{Ne._impl=e};const ve={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},we="bg-main-divider text-main-disabled",ke={primary:we,secondary:we,white:we,link:""},$e="text-center font-sans select-none",Ce={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},Se=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:Te(e),children:[i?h("div",{className:Ce[l],children:i}):null,_e(e)?u("div",{children:[n?h("div",{className:"text-xs-light text-left",children:n}):null,h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:Ce[l],children:r}):null]})})),Te=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",_e(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},_e=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Ie=({className:e,rounded:t,version:n})=>["inline-block",$e,n?ke[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Re=({className:e,rounded:t,version:n})=>[$e,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?ve[n]:"",t?"rounded-full":"rounded-md",e].join(" "),je=p((({disabled:e,children:t,...n})=>{const i=ye()(n),r=t??h(Se,{...i});return h(e?De:Ae,{...i,children:r})})),Ae=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:s,onClick:a,children:o})=>h("a",{className:Re({className:e,version:l,rounded:s}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:a,children:o}))),De=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ie({className:e,rounded:i,version:n}),children:r}))),Oe=(e=!1)=>e?"text-white":"",Me=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ve=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(Y,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(Y,{image:t})}),n?h(j,{headingType:"h4",className:Oe(r),title:n}):null,i?h("div",{className:Me(r),children:i}):null]}))),Be=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Le(n,t))})}))),Le=(e,t)=>({label:n,description:i},r)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),Fe=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const s=t?.slice(0,r?t.length:n),a=i?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(Ve,{...e,isFillGradient:i}),s?.length?s.map((({rowHeader:e,cell:t},n)=>h(Be,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(je,{href:e.link.href,target:e.link.target,version:a,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Pe({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),Pe=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Ee=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(j,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(ze,{...e})})]})})),ze=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:s,...a})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return h(Fe,{visibleRowLength:r,showRow:o[l],header:i,columnData:(s=e,s?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...a},String(l));var s}));return"horizontal"===s?h(he,{onVisibleIndicesChange:m,children:u}):u})),Ge=new Map;function He(e,t,{fallback:n}={}){const l=s((()=>Je(e)),[e]),[a,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>Ge.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:a||c||!p?a:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Je(e){return e?Array.isArray(e)?e:e instanceof Function?Je(e()):[e]:[e]}async function Ue(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function We(e,t={}){const{data:n}=He(`/wcms-resources/${e}.json`,Ue,{fallback:t});return n||{}}const Ye=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",s=t?" placeholder-transparent":"h-full",a=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(Y,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${s}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:a}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(Y,{image:"CloseIcon",width:"24",height:"24"})}):h(je,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ke=p((e=>h(Ye,{...e,isMobile:!0}))),Xe=p((({className:e="",documents:t,...n})=>h(I,{className:`font-sans bg-white mt-2.5 ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?qe(t):null})}))),qe=e=>e.map(((e,t)=>{const{text:n,...i}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),Qe={"bg-white":"color",transparent:"white"},Ze={"bg-white":"text-primary-main",transparent:"text-white"},et={"bg-white":"text-black",transparent:"text-white"},tt=p((({className:e="",href:t,children:n,targetBlank:i,bgColor:r="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(Y,{image:{icon:"LogoIcon",iconVersion:Qe[r]},className:`${Ze[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${et[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),nt=p((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:h(tt,{className:"w-8",bgColor:"transparent",showTitle:!0})}),u("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),it=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(rt):null,n?h(je,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),rt=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:lt(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},lt=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${st(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},st=e=>e.replaceAll(/\D/g,""),at=p((({className:e="",index:t,text:n,...i})=>{const r=ye(),{href:l,target:s,onClick:a}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:s,onClick:a,children:n||`Документ ${t}`})})),ot=p((({title:e,links:t,className:n=""})=>u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(at,{index:t,className:"text-s",...e},String(t))))}):null]}))),ct=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],dt=p((({version:e="primary",...t})=>{const n=ye(),{href:i,onClick:r}=n(t),{icon:l,label:s}=ct.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(Y,{image:X(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),mt=p((({className:e="",media:t,version:n})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(dt,{version:n,...e},String(t))))}))),ht=p((({className:e="",index:t,...n})=>{const i=ye(),{href:r,target:l,text:s,onClick:a}=i(n);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:a,children:s||`Документ ${t}`})})),ut=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(ht,{index:t,...e},String(t))))}):null]}))),pt=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=We(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:s,socialMedia:a,horizontalNavigationTitle:o}=We(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(it,{className:"overflow-hidden",items:s,hasButton:!0}),h(D,{children:i.topItems?.map(((e,t)=>h(Q,{label:e.text,children:h(Xe,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(gt)}),h(nt,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(Ke,{className:"grow"}),h(mt,{className:"pb-4",media:a}),h(ot,{title:o,links:l}),h(ut,{links:r})]})})),gt=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(je,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(Y,{className:"pr-1",image:X(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},bt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},xt=p((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[e?h(j,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),ft(r,n)]})));function ft(e,t){return"horizontal"===e?h(he,{children:t?.map(Nt)}):h("div",{className:"grid gap-3.5",children:t?.map(Nt)})}function Nt(e,t){return u("div",{className:`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-main-stroke p-4\n ${bt[e.version??"primary"]}`,children:[u("div",{children:[yt(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?vt(e):null,e.items?.length?kt(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(je,{className:"mt-3",...n})):null]},t);var n}const yt=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(Y,{className:"mb-3.5",image:e})}):null;function vt(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const wt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function kt(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,i)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${wt[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const $t=(e,t,n=((e,t)=>t.startsWith(e)))=>n(pe(e),pe(ue(e)?t.href:t.pathname)),Ct=e=>t=>$t(t.href,e),St=e=>t=>t.items?.some(Ct(e))||$t(t.href,e)||((e,t)=>ge(e)===ge(t.href))(t.href,e),Tt="absolute left-0 -bottom-3 w-full h-0.5",_t=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:s,bgColor:a="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[h("span",{className:It(a,r),children:t||s}),r?h("div",{className:Rt(a,r)}):null]}))),It=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},Rt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Tt}`:Tt,jt=o("https://10.80.4.9");const At=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:s})=>{const[a,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{jt.getFetcherAddress().then((t=>{const i=t||e;globalThis?.localStorage.setItem("location",i),n(i)}))}),[e])]}(n);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:h(Y,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:o,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(Y,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),a]}),s,h("div",{className:"mb-7",children:e?.map(Dt)}),h(Ke,{className:"grow"})]})})),Dt=(e,t)=>{const{icon:n,href:i,text:r}=e;return u("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(Y,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},Ot=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(Y,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(tt,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Mt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=Ne(),s=n.options?.page?.fallback,{topItems:a,dispositions:o,defaultLocation:d}=We(c.SITEMAP||"sitemap",s),m=a?.find(St(r)),p=m?.items,g=(e=>(t=[])=>{const n=t?.filter(Ct(e));return n?.length?ae((e=>e.href?.length||0))(n):void 0})(r)(p),[b,x]=i(!1),f=l((()=>x((e=>!e))),[]);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(Ot,{onClick:f,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:p?.map(((e,n)=>h(_t,{className:"mr-8 whitespace-nowrap text-s",active:e===g,bgColor:t,...e},String(n))))})})]}),b?h(At,{onClick:f,burgerSubMenu:o,defaultLocation:d,children:h(D,{children:a?.map(((e,t)=>h(Q,{label:e.text,children:h(Xe,{documents:e.items})},String(t))))})}):null]})})),Vt={left:"text-left",center:"text-center",right:"text-right"},Bt={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},Lt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const s=Bt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${s.background} ${t}`,children:[n?h(j,{headingType:"h2",className:`${s.text} ${Vt[l]}`,title:n}):null,i?h("p",{className:`text-m ${s.description} ${Vt[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(Y,{image:r})})]})})),Ft=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:s,fileSize:a,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(Y,{className:t,image:X(l),width:"24px",height:"24px",asSVG:!0}):null,s?u("span",{className:n,children:[s,h("span",{className:i,children:o?.href&&Pt(Et(o.href),a)})]}):null]})})),Pt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Et=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},zt=p((({className:e="",doc:t,icon:n})=>h(Ft,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Gt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(he,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(zt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Ht=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>h("div",{role:"listitem",children:h(zt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Jt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:s=!0,...a})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(Lt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...a}),h("vertical"===l?Ht:Gt,{hasBorder:s,documents:r,icon:i})]}))),Ut=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Wt(e=""){const t=Ut(e);return t<=4?"S":t<=8?"M":"L"}function Yt(e=""){const t=Ut(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Kt(e=""){const t=Ut(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Xt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(I,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Kt(e)} ${Yt(e)} `,...i,children:[h(Lt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Wt(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:qt()})]}))),qt=(e=3)=>Zt(100,e).map((e=>Math.floor(e))).map(Qt),Qt=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Zt=(e,t)=>[e].concat(t>0?Zt(e/1.618,t-1):[]),en=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>tn({button:e,index:t})))}):null));function tn({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...s}=e,a="secondary"===l?"color":"white",o=nn({...i,iconVersion:a}),c=nn({...r,iconVersion:a});return h(je,{className:t,appendLeft:o,appendRight:c,version:l,...s},n?String(n):"")}const nn=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(Y,{image:{...e},width:t,height:"24",asSVG:!0})},rn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},ln={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},sn=p((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${rn[i]} ${ln[r]}`})}):null,h("span",{children:n})]}))),an={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},on={S:"text-l-light",M:"text-h6",L:"text-h5"},cn={S:"ml-2",M:"ml-3",L:"ml-4"},dn=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:s="M",version:a="primary"}=e;return l?.length?h("section",{className:`${an[a]} ${on[s]} ${t} ${n?cn[s]:""}`,role:"list",children:l.map(((e,t)=>h(sn,{className:`${r} mb-1.5`,isDotted:i,version:a,size:s,children:e},String(t))))}):null})),mn=p((({className:e="",title:t="",buttons:n,image:i,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),n?h("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),hn={primary:"text-primary-text",secondary:"text-white"},un={primary:"text-secondary-text",secondary:"text-white"},pn=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:s="normal"}=e,a="white"===s?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:gn(l,s),children:h(Y,{className:"w-6 h-6",image:X(n,a),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${hn[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${un[l]}`,children:r}):null]})]})}));function gn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const bn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(pn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),xn=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:s,version:a="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?yn(c,a):null,h(Lt,{className:"!p-0 max-w-[600px]",bgColorHeadline:a,headlineVersion:t,...d}),u(mn,{buttons:r?.length?h(en,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(bn(a,i))}):null,s?.length?h(dn,{className:"mt-3 text-m",items:s,version:a,isDotted:o}):null]})]}),fn(l)]})));function fn(e){return e?.src?h(Y,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Nn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},yn=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Nn[t]}`,children:e}),vn=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${bt[n]} ${t}`,children:h(xn,{...e})})})),wn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},kn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},$n={normal:"min-h-[70px]",small:"min-h-12"},Cn=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:s="primary"})=>{const a=wn[s];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${a.background} ${a.title} ${e||""}`,children:[t?h(j,{headingType:"h3",className:`text-center ${a.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${a.description} ${t?"mt-2":""}`,children:n}):null,r?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(Sn(l,s,i))})}):null]})})),Sn=(e,t,n)=>(i,r,l)=>{const s=l.length-1===r,a="normal"===e?"ml-[34px]":"ml-6",o=wn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[Tn(e,t)(i,r),s?null:h("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${a}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${$n[e]}`,children:[i.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?h("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},Tn=(e,t)=>(n,i)=>{const r=wn[t],l="normal"===e?"38":"27",s="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${kn[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${r.title} ${s}`,children:(a=n?.icon,Boolean(a?.icon||a?.src)?h(Y,{image:X({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var a},_n={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>tn({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?h(Y,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(dn,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},In=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(j,{headingType:"h3",className:"font-medium",title:e}):null,t?h(Y,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Rn=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(In,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,jn(e,t)]},String(n)))):null]})));function jn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in _n))return null;const n=_n[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const An=p((({tiles:e,...t})=>e?.length?h(he,{...t,children:e.map(((e,n)=>h(Rn,{tile:e,...t},String(n))))}):null)),Dn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(Rn,{tile:e,...t},String(n))))}):null)),On=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...s})=>{const a=Mn(i),o=Vn(r,a);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(j,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"mb-5 text-center text-m",children:n}):null,h("vertical"===l?Dn:An,{tiles:o,...s})]})})),Mn=e=>e?.[0]?.data?e[0].data:[],Vn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Bn={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"}},Ln=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:s,isDotted:a=!0})=>{const o=Bn[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Fn(o.icon):null,"big"===i?Pn(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,s?.length?h(dn,{className:"mt-1 text-m",items:s,isDotted:a,version:c}):null]})]})}));function Fn(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Pn(e){return e?.src?h(Y,{className:"pb-3 mr-auto",image:e}):null}const En={Accordion:O,AccordionItem:Q,ComparisonTable:Ee,Footer:pt,Gallery:xt,Header:Mt,Headline:Lt,LinkDocs:Jt,LinkList:Xe,MobileAppTile:nt,ProductBlock:vn,StepsBlock:Cn,TariffsTable:On,TextBlock:Ln,Placeholder:Xt},zn=["Header","Footer"],Gn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Hn(e=_.inst,t=globalThis){const n=a(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{n.current&&n.current.set(e,t)}))),[e]),r((()=>{const i=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!zn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?oe(Gn)(t):[];return n}([...n.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",i),()=>{i.dispose(),t.removeEventListener("scroll",i)}}),[e,t])}const Jn=m();const Un=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Wn()}))),Wn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Yn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Jn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Jn.like(e))}),[e]),dislike:l((async()=>{n(await Jn.dislike(e))}),[e])}}(Ne().pathname);return u("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:[h(Un,{onClick:fe(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Un,{onClick:fe(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Kn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:s,slots:a,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return Hn(),u("section",{className:`relative ${b(l)} ${t}`,"data-theme":c,children:[a?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(a?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(s,d),a?.footer?w(a?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Yn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Kn.childrenTypes=[],Kn.slots=()=>["header","footer"];e.Blocks=En,e.ContentPage=Kn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=fe,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.39",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=xe,e.useRouter=Ne,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { LinkCommonProps, LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { LinkCommonProps, LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
|
+
import type { SitemapDataProps } from '../../services/sitemap/SitemapProps';
|
|
4
|
+
import type { ContactInfo, SubMenuItem } from './FooterContent';
|
|
4
5
|
export interface FooterDataProps extends SitemapDataProps {
|
|
5
6
|
documents?: LinkProps[];
|
|
6
7
|
relatedEnterprises?: LinkProps[];
|
|
@@ -9,4 +10,8 @@ export interface FooterDataProps extends SitemapDataProps {
|
|
|
9
10
|
mobileApps?: LinkCommonProps[];
|
|
10
11
|
horizontalNavigationTitle?: string;
|
|
11
12
|
subMenu?: SubMenuItem[];
|
|
13
|
+
logo?: {
|
|
14
|
+
image?: Picture;
|
|
15
|
+
title?: string;
|
|
16
|
+
};
|
|
12
17
|
}
|
|
@@ -2,7 +2,6 @@ import type { LinkTabData, TabData } from './TabsContent';
|
|
|
2
2
|
interface LinkTabProps {
|
|
3
3
|
tab: LinkTabData;
|
|
4
4
|
currentTab?: TabData;
|
|
5
|
-
onClick?: (tab: TabData) => void;
|
|
6
5
|
}
|
|
7
6
|
export declare const LinkTab: import("@redneckz/uni-jsx").UNIComponent<LinkTabProps, any, any>;
|
|
8
7
|
export {};
|
|
@@ -4,10 +4,6 @@ export interface TabActivationEvent {
|
|
|
4
4
|
type?: TabData['type'];
|
|
5
5
|
label?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface AnchorClickScrollingEvent {
|
|
8
|
-
isScrolling?: boolean;
|
|
9
|
-
label?: string;
|
|
10
|
-
}
|
|
11
7
|
export interface TabsBlockProps extends TabsContent, UniBlockProps {
|
|
12
8
|
}
|
|
13
9
|
export declare const Tabs: import("@redneckz/uni-jsx").UNIComponent<TabsBlockProps, any, any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventBus } from '../../EventBus/EventBus';
|
|
2
|
+
import type { BlockDef } from '../../model/ContentPageDef';
|
|
3
|
+
export interface GotoAnchorEvent {
|
|
4
|
+
anchor: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BlockIntersectionEvent {
|
|
7
|
+
block: BlockDef;
|
|
8
|
+
intersection: IntersectionObserverEntry;
|
|
9
|
+
}
|
|
10
|
+
interface EventMap {
|
|
11
|
+
goto: GotoAnchorEvent;
|
|
12
|
+
intersection: BlockIntersectionEvent;
|
|
13
|
+
}
|
|
14
|
+
export declare class BlockRouter {
|
|
15
|
+
static readonly inst: BlockRouter;
|
|
16
|
+
readonly eventBus: EventBus<EventMap>;
|
|
17
|
+
constructor();
|
|
18
|
+
goto(rawAnchor: string): void;
|
|
19
|
+
push(rawAnchor: string): void;
|
|
20
|
+
replace(rawAnchor: string): void;
|
|
21
|
+
reset(): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
|
|
2
|
+
import type { TariffsTableInnerContent } from './InnerTableProps';
|
|
3
|
+
export interface TableInnerButtonProps extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent {
|
|
3
4
|
onClick?: () => void;
|
|
4
5
|
isOpen?: boolean;
|
|
5
6
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
|
|
2
1
|
export declare type RowsData = {
|
|
3
2
|
data?: string;
|
|
4
3
|
cols?: string[];
|
|
@@ -20,5 +19,3 @@ export interface TariffsTableInnerContent {
|
|
|
20
19
|
/** @title Ссылка PDF-файл */
|
|
21
20
|
pdfUrl?: string;
|
|
22
21
|
}
|
|
23
|
-
export interface TariffsTableInnerEvent extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent {
|
|
24
|
-
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { EventMap } from './EventMap';
|
|
2
|
-
export declare
|
|
3
|
-
|
|
2
|
+
export declare type BaseEventMap = Record<string, any>;
|
|
3
|
+
export declare class EventBus<EM extends BaseEventMap> {
|
|
4
|
+
static readonly inst: EventBus<EventMap>;
|
|
4
5
|
private subscribers;
|
|
5
6
|
private subjectsStateMap;
|
|
6
|
-
subscribe<
|
|
7
|
+
subscribe<K extends keyof EM>(type: K, listener: (event: EM[K]) => void): () => void;
|
|
7
8
|
private unsubscribe;
|
|
8
|
-
fire<
|
|
9
|
-
subject<
|
|
9
|
+
fire<K extends keyof EM>(type: K, event: EM[K]): void;
|
|
10
|
+
subject<K extends keyof EM>(type: K, event: EM[K]): void;
|
|
10
11
|
}
|
|
@@ -5,8 +5,7 @@ class EventBus {
|
|
|
5
5
|
subscribers = {};
|
|
6
6
|
subjectsStateMap = {};
|
|
7
7
|
subscribe(type, listener) {
|
|
8
|
-
this.subscribers[type]
|
|
9
|
-
this.subscribers[type]?.push(listener);
|
|
8
|
+
this.subscribers[type] = (this.subscribers[type] || []).concat(listener);
|
|
10
9
|
const latestEvent = this.subjectsStateMap[type];
|
|
11
10
|
if (latestEvent) {
|
|
12
11
|
listener(latestEvent);
|
|
@@ -19,7 +18,10 @@ class EventBus {
|
|
|
19
18
|
this.subscribers[type] = this.subscribers[type]?.filter((s) => s !== listener);
|
|
20
19
|
}
|
|
21
20
|
fire(type, event) {
|
|
22
|
-
this.subjectsStateMap
|
|
21
|
+
const isSubjectDeclared = type in this.subjectsStateMap;
|
|
22
|
+
if (isSubjectDeclared) {
|
|
23
|
+
this.subjectsStateMap[type] = event;
|
|
24
|
+
}
|
|
23
25
|
this.subscribers[type]?.forEach((s) => s(event));
|
|
24
26
|
}
|
|
25
27
|
subject(type, event) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventBus.js","sourceRoot":"","sources":["../../src/EventBus/EventBus.ts"],"names":[],"mappings":";;AAIA,MAAa,QAAQ;IACZ,MAAM,CAAU,IAAI,GAAG,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"EventBus.js","sourceRoot":"","sources":["../../src/EventBus/EventBus.ts"],"names":[],"mappings":";;AAIA,MAAa,QAAQ;IACZ,MAAM,CAAU,IAAI,GAAG,IAAI,QAAQ,EAAY,CAAC;IAE/C,WAAW,GAAiE,EAAE,CAAC;IAC/E,gBAAgB,GAAgB,EAAE,CAAC;IAE3C,SAAS,CAAqB,IAAO,EAAE,QAAgC;QACrE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAC5D,QAAsC,CACvC,CAAC;QAEF,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,WAAW,EAAE;YACf,QAAQ,CAAC,WAAoB,CAAC,CAAC;SAChC;QAED,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACnC,CAAC,CAAC;IACJ,CAAC;IAEO,WAAW,CAAqB,IAAO,EAAE,QAAgC;QAC/E,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC;IACjF,CAAC;IAED,IAAI,CAAqB,IAAO,EAAE,KAAY;QAC5C,MAAM,iBAAiB,GAAG,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC;QACxD,IAAI,iBAAiB,EAAE;YACrB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;SACrC;QAED,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,CAAqB,IAAO,EAAE,KAAY;QAC/C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IACtC,CAAC;;AApCH,4BAqCC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TariffsTableInnerEvent } from '../ui-kit/InnerTable/InnerTableProps';
|
|
1
|
+
import type { TabActivationEvent } from '../components/Tabs/Tabs';
|
|
3
2
|
export interface EventMap {
|
|
4
3
|
tab: TabActivationEvent;
|
|
5
|
-
tariffInnerTable: TariffsTableInnerEvent;
|
|
6
|
-
anchorClick: AnchorClickScrollingEvent;
|
|
7
4
|
}
|
|
@@ -12,7 +12,7 @@ const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
|
12
12
|
const icons = ['PlusIcon', 'MinusIcon'];
|
|
13
13
|
exports.AccordionItem = (0, uni_jsx_1.JSX)(({ className = '', label = '', labelIcon, isExpanded, ...rest }) => {
|
|
14
14
|
const { bordered } = (0, getParentBlockContent_1.getParentBlockContent)(rest.options, {});
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-3.5 px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
|
|
16
16
|
});
|
|
17
17
|
exports.AccordionItem.childrenTypes = [];
|
|
18
18
|
const FoldButton = (0, uni_jsx_1.JSX)(({ className, icon, label, primaryIcon, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "flex-shrink-0", image: (0, getIconWithVersion_1.getIconWithVersion)({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAClF,uEAAoE;AAGpE,6DAA0D;AAC1D,2EAAwE;AAExE,8CAA2C;AAC3C,iDAA8C;AAC9C,uEAAoE;AAIpE,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAiC,IAAA,aAAG,EAC5D,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACjE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAqB,EAAC,IAAI,CAAC,OAAO,EAAE,EAAsB,CAAC,CAAC;IAEjF,OAAO,CACL,+BACE,SAAS,EAAE,GACT,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCACzC,qCAAqC,SAAS,EAAE,YAEhD,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,IAAI,EACvB,iBAAiB,EAAE,UAAU,EAC7B,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IACd,SAAS,EAAC,qDAAqD,EAC/D,UAAU,EAAE,UAAU,YAErB,IAAA,+BAAc,EAAC,IAAI,CAAC,GACL,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,UAAU,IACT,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAClF,uEAAoE;AAGpE,6DAA0D;AAC1D,2EAAwE;AAExE,8CAA2C;AAC3C,iDAA8C;AAC9C,uEAAoE;AAIpE,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAiC,IAAA,aAAG,EAC5D,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACjE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAqB,EAAC,IAAI,CAAC,OAAO,EAAE,EAAsB,CAAC,CAAC;IAEjF,OAAO,CACL,+BACE,SAAS,EAAE,GACT,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCACzC,qCAAqC,SAAS,EAAE,YAEhD,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,IAAI,EACvB,iBAAiB,EAAE,UAAU,EAC7B,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IACd,SAAS,EAAC,qDAAqD,EAC/D,UAAU,EAAE,UAAU,YAErB,IAAA,+BAAc,EAAC,IAAI,CAAC,GACL,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,UAAU,IACT,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EACxC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,WAAW,EAAE,SAAS,EACtB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACC,CACN,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,qBAAa,CAAC,aAAa,GAAG,EAAE,CAAC;AAUjC,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC5F,oCACE,SAAS,EAAE,qHAAqH,SAAS,EAAE,EAC3I,OAAO,EAAE,OAAO,aAEhB,iCAAK,SAAS,EAAC,oCAAoC,aAChD,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,SAAG,IACF,KAAK,EAAE,IAAA,uCAAkB,EAAC,WAAW,CAAC,EACtC,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,WAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAC,aAAa,YAC5C,KAAK,GACD,IACH,EACN,uBAAC,SAAG,IACF,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE,IAAA,uCAAkB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACzC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC,CAAC"}
|
|
@@ -22,7 +22,7 @@ const benefitsIconStyleMap = {
|
|
|
22
22
|
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '', title, benefitList, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans text-primary-text p-12 flex flex-col items-center ${className} ${BlockVersion_1.VersionStyleMap[version]}`, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h2", className: `max-w-[47rem] text-center ${benefitsTextStyleMap[version]}`, title: title })) : null, benefitList?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-8", children: benefitList.map(renderStep(version)) })) : null] })));
|
|
23
23
|
const renderStep = (version) => (benefit, i) => {
|
|
24
24
|
const description = benefit.description;
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-12 h-12 min-w-12 p-3 rounded-full ${benefitsIconStyleMap[version]}`, image: (0, getIconWithVersion_1.getIconWithVersion)(benefit.icon, version), asSVG: true })) : null, benefit?.icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: benefit.icon }) : null, (0, jsx_runtime_1.jsxs)("div", { className: "ml-5", children: [benefit?.label ? ((0, jsx_runtime_1.jsx)("h3", { className: `text-h6 m-0 ${benefitsTextStyleMap[version]}`, children: benefit.label })) : null, renderDescription(description, version)] })] }, String(i)));
|
|
26
26
|
};
|
|
27
27
|
const renderDescription = (description, version) => {
|
|
28
28
|
const benefitType = description?.benefitType || null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAyE;AAEzE,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,uEAAoE;AAIpE,MAAM,oBAAoB,GAAG;IAC3B,OAAO,EAAE,EAAE;IACX,SAAS,EAAE,YAAY;CACxB,CAAC;AAEF,MAAM,2BAA2B,GAAG;IAClC,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,uBAAuB;CACnC,CAAC;AAEF,MAAM,oBAAoB,GAAG;IAC3B,OAAO,EAAE,mCAAmC;IAC5C,SAAS,EAAE,wBAAwB;CACpC,CAAC;AAIW,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACxE,wBAAC,2BAAY,IACX,SAAS,EAAE,+DAA+D,SAAS,IAAI,8BAAe,CAAC,OAAO,CAAC,EAAE,KAC7G,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,EAAE,EAAC,IAAI,EACP,SAAS,EAAE,6BAA6B,oBAAoB,CAAC,OAAO,CAAC,EAAE,EACvE,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,gCAAK,SAAS,EAAC,oDAAoD,YAChE,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GACjC,CACP,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAqB,EAAE,EAAE,CAAC,CAAC,OAA8B,EAAE,CAAS,EAAE,EAAE;IAC1F,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAExC,OAAO,CACL,iCAAqB,SAAS,EAAC,iDAAiD,aAC7E,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACrB,uBAAC,SAAG,IACF,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAyE;AAEzE,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,uEAAoE;AAIpE,MAAM,oBAAoB,GAAG;IAC3B,OAAO,EAAE,EAAE;IACX,SAAS,EAAE,YAAY;CACxB,CAAC;AAEF,MAAM,2BAA2B,GAAG;IAClC,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,uBAAuB;CACnC,CAAC;AAEF,MAAM,oBAAoB,GAAG;IAC3B,OAAO,EAAE,mCAAmC;IAC5C,SAAS,EAAE,wBAAwB;CACpC,CAAC;AAIW,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACxE,wBAAC,2BAAY,IACX,SAAS,EAAE,+DAA+D,SAAS,IAAI,8BAAe,CAAC,OAAO,CAAC,EAAE,KAC7G,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,EAAE,EAAC,IAAI,EACP,SAAS,EAAE,6BAA6B,oBAAoB,CAAC,OAAO,CAAC,EAAE,EACvE,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,gCAAK,SAAS,EAAC,oDAAoD,YAChE,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GACjC,CACP,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAqB,EAAE,EAAE,CAAC,CAAC,OAA8B,EAAE,CAAS,EAAE,EAAE;IAC1F,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAExC,OAAO,CACL,iCAAqB,SAAS,EAAC,iDAAiD,aAC7E,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACrB,uBAAC,SAAG,IACF,SAAS,EAAE,uCAAuC,oBAAoB,CAAC,OAAO,CAAC,EAAE,EACjF,KAAK,EAAE,IAAA,uCAAkB,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,EAChD,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,OAAO,CAAC,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACzD,iCAAK,SAAS,EAAC,MAAM,aAClB,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAChB,+BAAI,SAAS,EAAE,eAAe,oBAAoB,CAAC,OAAO,CAAC,EAAE,YAAG,OAAO,CAAC,KAAK,GAAM,CACpF,CAAC,CAAC,CAAC,IAAI,EACP,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,IACpC,KAdE,MAAM,CAAC,CAAC,CAAC,CAeb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,WAAuC,EAAE,OAAqB,EAAE,EAAE;IAC3F,MAAM,WAAW,GAAG,WAAW,EAAE,WAAW,IAAI,IAAI,CAAC;IAErD,OAAO,WAAW,IAAI,WAAW,CAAC,CAAC,CAAC,CAClC,gCAAK,SAAS,EAAE,qBAAqB,2BAA2B,CAAC,OAAO,CAAC,EAAE,YACxE,WAAW,KAAK,MAAM;YACrB,CAAC,CAAC,iBAAiB,CAAC,WAA6B,CAAC;YAClD,CAAC,CAAC,iBAAiB,CAAC,WAA6B,CAAC,GAChD,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,WAA4B,EAAE,EAAE,CAAC,WAAW,EAAE,IAAI,IAAI,IAAI,CAAC;AAEtF,MAAM,iBAAiB,GAAG,CAAC,WAA4B,EAAE,EAAE;IACzD,MAAM,aAAa,GAAG,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAEnE,OAAO,WAAW,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC1D,+BAAI,SAAS,EAAE,aAAa,YACzB,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,yCAAkC,CAAC,IAA1B,mBAAmB,CAAC,EAAE,CAAU,CAC1C,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ const Img_1 = require("../../ui-kit/Img/Img");
|
|
|
8
8
|
const Headline_1 = require("../Headline/Headline");
|
|
9
9
|
exports.Bonus = (0, uni_jsx_1.JSX)((props) => {
|
|
10
10
|
const { className = '', title, description, bonusItems, ...rest } = props;
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-12 pb-9 ${className}`, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center", ...rest }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
|
|
12
12
|
? bonusItems.map((_, i) => {
|
|
13
13
|
return ((0, jsx_runtime_1.jsx)("div", { className: "flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between mr-4", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-h4", children: _.title }), (0, jsx_runtime_1.jsx)("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ? (0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { buttons: _?.buttons }) : null] }), _.bonusItemContent?.bonusType
|
|
14
14
|
? renderBonusItemContent(_.bonusItemContent)
|
|
@@ -20,5 +20,5 @@ const renderBonusItemContent = (bonusItemContent) => ((0, jsx_runtime_1.jsx)("di
|
|
|
20
20
|
? renderBonusCount(bonusItemContent)
|
|
21
21
|
: renderBonusImage(bonusItemContent) }));
|
|
22
22
|
const renderBonusCount = (_) => ((0, jsx_runtime_1.jsxs)("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [_.bonusCount ? ((0, jsx_runtime_1.jsx)("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount })) : null, _.bonusName ? ((0, jsx_runtime_1.jsx)("span", { className: "text-h2 bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })) : null] }));
|
|
23
|
-
const renderBonusImage = (_) => _.image ? (
|
|
23
|
+
const renderBonusImage = (_) => _.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-12 h-12 min-w-12 p-3 rounded-full`, image: _.image }) : null;
|
|
24
24
|
//# sourceMappingURL=Bonus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,qEAAkE;AAClE,8CAA2C;AAC3C,mDAAgD;AAKnC,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE1E,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,qEAAkE;AAClE,8CAA2C;AAC3C,mDAAgD;AAKnC,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE1E,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAE,gCAAgC,SAAS,EAAE,KAAM,IAAI,YAC5E,iCAAK,SAAS,EAAC,WAAW,aACxB,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,KACV,IAAI,GACR,EACF,gCAAK,SAAS,EAAC,4BAA4B,YACxC,UAAU,EAAE,MAAM;wBACjB,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,gCAEE,SAAS,EAAC,qFAAqF,YAE/F,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,iCAAK,SAAS,EAAC,oCAAoC,aACjD,4CACE,gCAAK,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,KAAK,GAAO,EACxC,gCAAK,SAAS,EAAC,kCAAkC,YAAE,CAAC,CAAC,WAAW,GAAO,IACnE,EACL,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,uBAAC,6BAAa,IAAC,OAAO,EAAE,CAAC,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,IAC/D,EACL,CAAC,CAAC,gBAAgB,EAAE,SAAS;4CAC5B,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,gBAAgB,CAAC;4CAC5C,CAAC,CAAC,IAAI,IACJ,IAdD,MAAM,CAAC,CAAC,CAAC,CAeV,CACP,CAAC;wBACJ,CAAC,CAAC;wBACJ,CAAC,CAAC,IAAI,GACJ,IACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,CAAC,gBAA+C,EAAE,EAAE,CAAC,CAClF,0CACG,gBAAgB,CAAC,SAAS,KAAK,OAAO;QACrC,CAAC,CAAC,gBAAgB,CAAC,gBAAiC,CAAC;QACrD,CAAC,CAAC,gBAAgB,CAAC,gBAAiC,CAAC,GACnD,CACP,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAgB,EAAE,EAAE,CAAC,CAC7C,iCAAK,SAAS,EAAC,yDAAyD,aACrE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACd,iCAAM,SAAS,EAAC,qGAAqG,YAClH,CAAC,CAAC,UAAU,GACR,CACR,CAAC,CAAC,CAAC,IAAI,EACP,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CACb,iCAAM,SAAS,EAAC,0DAA0D,YACvE,CAAC,CAAC,SAAS,GACP,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAgB,EAAE,EAAE,CAC5C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAE,qCAAqC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -6,7 +6,7 @@ const AlignText_1 = require("../../model/AlignText");
|
|
|
6
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
8
|
const Headline_1 = require("../Headline/Headline");
|
|
9
|
-
exports.BonusBenefitsBlock = (0, uni_jsx_1.JSX)(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans text-primary-text bg-white p-
|
|
9
|
+
exports.BonusBenefitsBlock = (0, uni_jsx_1.JSX)(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans text-primary-text bg-white p-12 flex flex-col text-center ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 mb-8", title: title, description: subtitle, headlineVersion: "M", align: "center", ...rest }), bonusBenefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `grid gap-1 ${AlignText_1.AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
|
|
10
10
|
const renderBonusBenefit = ({ icon, label, description }, i) => {
|
|
11
11
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center text-h6", children: [description ? (0, jsx_runtime_1.jsx)("span", { children: description }) : null, icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, height: "180", width: "auto", className: "h-[180px] w-auto" }) : null, (0, jsx_runtime_1.jsx)("div", { children: label ? (0, jsx_runtime_1.jsx)("span", { children: label }) : null })] }, String(i)));
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAElD,4DAAyD;AACzD,8CAA2C;AAC3C,mDAAgD;AASnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EACC,aAAa,EACb,aAAa,GAAG,QAAQ,EACxB,SAAS,GAAG,EAAE,EACd,YAAY,GAAG,GAAG,EAClB,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAElD,4DAAyD;AACzD,8CAA2C;AAC3C,mDAAgD;AASnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EACC,aAAa,EACb,aAAa,GAAG,QAAQ,EACxB,SAAS,GAAG,EAAE,EACd,YAAY,GAAG,GAAG,EAClB,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,uEAAuE,SAAS,EAAE,KACzF,IAAI,aAER,uBAAC,mBAAQ,IACP,SAAS,EAAC,WAAW,EACrB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,QAAQ,EACrB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,KACV,IAAI,GACR,EACD,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,gCACE,SAAS,EAAE,cAAc,qBAAS,CAAC,aAAa,CAAC,IAAI,oBAAoB,CAAC,YAAY,CAAC,EAAE,YAExF,aAAa,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAClC,CACP,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CACF,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAgB,EAAE,CAAS,EAAE,EAAE;IACnF,OAAO,CACL,iCAAqB,SAAS,EAAC,oCAAoC,aAChE,WAAW,CAAC,CAAC,CAAC,2CAAO,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,EAC/C,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,SAAS,EAAC,kBAAkB,GAAG,CAAC,CAAC,CAAC,IAAI,EAC1F,0CAAM,KAAK,CAAC,CAAC,CAAC,2CAAO,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,GAAO,KAHxC,MAAM,CAAC,CAAC,CAAC,CAIb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,QAAsB,EAAE,EAAE;IACtD,QAAQ,QAAQ,EAAE;QAChB,KAAK,GAAG;YACN,OAAO,aAAa,CAAC;QACvB,KAAK,GAAG;YACN,OAAO,aAAa,CAAC;QACvB,KAAK,GAAG;YACN,OAAO,aAAa,CAAC;QACvB;YACE,OAAO,aAAa,CAAC;KACxB;AACH,CAAC,CAAC"}
|
|
@@ -5,5 +5,5 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
7
|
const BusinessCard_1 = require("./BusinessCard");
|
|
8
|
-
exports.BusinessBlock = (0, uni_jsx_1.JSX)(({ className = '', title, cards, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-
|
|
8
|
+
exports.BusinessBlock = (0, uni_jsx_1.JSX)(({ className = '', title, cards, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-12 pb-9 ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", title: title, className: "text-center mb-8" }), (0, jsx_runtime_1.jsx)("div", { className: "flex gap-5", children: cards?.length ? cards.map((_, i) => (0, jsx_runtime_1.jsx)(BusinessCard_1.BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
9
9
|
//# sourceMappingURL=BusinessBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessBlock.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AAEvD,iDAA8C;AAIjC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7C,wBAAC,2BAAY,IAAC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"BusinessBlock.js","sourceRoot":"","sources":["../../../src/components/BusinessBlock/BusinessBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AAEvD,iDAA8C;AAIjC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7C,wBAAC,2BAAY,IAAC,SAAS,EAAE,gCAAgC,SAAS,EAAE,KAAM,IAAI,aAC5E,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,kBAAkB,GAAG,EACvE,gCAAK,SAAS,EAAC,YAAY,YACxB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAC,2BAAY,OAAqB,CAAC,IAAhB,MAAM,CAAC,CAAC,CAAC,CAAW,CAAC,CAAC,CAAC,CAAC,IAAI,GAChF,IACO,CAChB,CACF,CAAC"}
|