@redneckz/wildless-cms-uni-blocks 0.8.26 → 0.8.28
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/bin/migration-scripts/0.8.17.js +4 -2
- package/bin/migration-scripts/0.8.24.js +24 -0
- package/bundle/EventBus/defaultEventBus.d.ts +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +230 -64
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/bundle/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/bundle/components/Bonus/BonusContent.d.ts +0 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/bundle/components/Calculator/CalculatorContent.d.ts +2 -4
- package/bundle/components/Carousel/CarouselContent.d.ts +1 -4
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/bundle/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/bundle/components/PictureText/PictureTextContent.d.ts +3 -21
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/bundle/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/bundle/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/bundle/components/Tabs/TabsContent.d.ts +1 -4
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/bundle/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/bundle/components/Tile/TileContent.d.ts +3 -22
- package/bundle/components/Video/VideoContent.d.ts +2 -15
- package/bundle/hooks/useCarouselControls.d.ts +0 -2
- package/{dist/services/sitemap → bundle/hooks}/useSWRResource.d.ts +1 -1
- package/bundle/model/Bullets.d.ts +4 -0
- package/bundle/model/Button.d.ts +15 -0
- package/bundle/model/HeadlineType.d.ts +4 -0
- package/bundle/model/Picture.d.ts +3 -10
- package/{dist/services/sitemap/SitemapProps.d.ts → bundle/services/sitemap/SitemapData.d.ts} +1 -1
- package/bundle/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/bundle/services/sitemap/search/joinMaps.d.ts +1 -0
- package/bundle/services/sitemap/search/search.d.ts +12 -0
- package/bundle/services/sitemap/search/textRank.d.ts +1 -0
- package/bundle/services/sitemap/search/tokenize.d.ts +1 -0
- package/bundle/services/sitemap/useSearch.d.ts +8 -0
- package/bundle/ui-kit/BlockWrapper.d.ts +1 -0
- package/bundle/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/bundle/ui-kit/List/ListProps.d.ts +3 -4
- package/bundle/ui-kit/Location/Location.d.ts +1 -18
- package/bundle/ui-kit/Location/LocationProps.d.ts +16 -0
- package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/bundle/utils/Comparator.d.ts +4 -0
- package/bundle/utils/maxBy.d.ts +1 -0
- package/bundle/utils/minBy.d.ts +1 -0
- package/bundle/utils/sum.d.ts +1 -0
- package/bundle/utils/unique.d.ts +1 -0
- package/bundle/utils/url.d.ts +1 -1
- package/bundle/utils/zip.d.ts +4 -0
- package/dist/EventBus/defaultEventBus.d.ts +1 -0
- package/dist/EventBus/defaultEventBus.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/dist/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/dist/components/Bonus/BonusContent.d.ts +0 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/dist/components/Calculator/CalculatorContent.d.ts +2 -4
- package/dist/components/Carousel/CarouselContent.d.ts +1 -4
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/dist/components/ContentPage/ContentPage.js +7 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +2 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/dist/components/Footer/Footer.js +22 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/dist/components/Footer/MediaButton.js +5 -2
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/Sitemap.d.ts +2 -2
- package/dist/components/Footer/Sitemap.js +2 -4
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- 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.d.ts +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +2 -0
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/dist/components/PictureText/PictureTextContent.d.ts +3 -21
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/dist/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/dist/components/Tabs/TabsContent.d.ts +1 -4
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/dist/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/dist/components/Tile/TileContent.d.ts +3 -22
- package/dist/components/VerticalLayout/VerticalLayout.js +5 -3
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +2 -15
- package/dist/hooks/useCarouselControls.d.ts +0 -2
- package/dist/hooks/useCarouselControls.js +7 -15
- package/dist/hooks/useCarouselControls.js.map +1 -1
- package/{lib/services/sitemap → dist/hooks}/useSWRResource.d.ts +1 -1
- package/{mobile/dist/services/sitemap → dist/hooks}/useSWRResource.js +1 -1
- package/dist/hooks/useSWRResource.js.map +1 -0
- package/dist/model/Bullets.d.ts +4 -0
- package/dist/{services/sitemap/SitemapProps.js → model/Bullets.js} +1 -1
- package/dist/model/Bullets.js.map +1 -0
- package/dist/model/Button.d.ts +15 -0
- package/{mobile/dist/services/sitemap/SitemapProps.js → dist/model/Button.js} +1 -1
- package/dist/model/Button.js.map +1 -0
- package/dist/model/HeadlineType.d.ts +4 -0
- package/dist/model/Picture.d.ts +3 -10
- package/{bundle/services/sitemap/SitemapProps.d.ts → dist/services/sitemap/SitemapData.d.ts} +1 -1
- package/dist/services/sitemap/SitemapData.js +2 -0
- package/dist/services/sitemap/SitemapData.js.map +1 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.js +67 -0
- package/dist/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/dist/services/sitemap/search/joinMaps.d.ts +1 -0
- package/dist/services/sitemap/search/joinMaps.js +10 -0
- package/dist/services/sitemap/search/joinMaps.js.map +1 -0
- package/dist/services/sitemap/search/search.d.ts +12 -0
- package/dist/services/sitemap/search/search.js +39 -0
- package/dist/services/sitemap/search/search.js.map +1 -0
- package/dist/services/sitemap/search/textRank.d.ts +1 -0
- package/dist/services/sitemap/search/textRank.js +14 -0
- package/dist/services/sitemap/search/textRank.js.map +1 -0
- package/dist/services/sitemap/search/tokenize.d.ts +1 -0
- package/dist/services/sitemap/search/tokenize.js +9 -0
- package/dist/services/sitemap/search/tokenize.js.map +1 -0
- package/dist/services/sitemap/useSearch.d.ts +8 -0
- package/dist/services/sitemap/useSearch.js +33 -0
- package/dist/services/sitemap/useSearch.js.map +1 -0
- package/dist/ui-kit/BlockWrapper.d.ts +1 -0
- package/dist/ui-kit/BlockWrapper.js +3 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/dist/ui-kit/List/ListProps.d.ts +3 -4
- package/dist/ui-kit/Location/Location.d.ts +1 -18
- package/dist/ui-kit/Location/Location.js +6 -8
- package/dist/ui-kit/Location/Location.js.map +1 -1
- package/dist/ui-kit/Location/LocationProps.d.ts +16 -0
- package/dist/ui-kit/Location/LocationProps.js +2 -0
- package/dist/ui-kit/Location/LocationProps.js.map +1 -0
- package/dist/ui-kit/Location/SearchBar.js +1 -1
- package/dist/ui-kit/Location/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/utils/Comparator.d.ts +4 -0
- package/dist/utils/Comparator.js +9 -0
- package/dist/utils/Comparator.js.map +1 -0
- package/dist/utils/fetchJSON.js +1 -1
- package/dist/utils/fetchJSON.js.map +1 -1
- package/dist/utils/maxBy.d.ts +1 -0
- package/dist/utils/maxBy.js +2 -1
- package/dist/utils/maxBy.js.map +1 -1
- package/dist/utils/minBy.d.ts +1 -0
- package/dist/utils/minBy.js +2 -1
- package/dist/utils/minBy.js.map +1 -1
- package/dist/utils/sum.d.ts +1 -0
- package/dist/utils/sum.js +5 -0
- package/dist/utils/sum.js.map +1 -0
- package/dist/utils/unique.d.ts +1 -0
- package/dist/utils/unique.js +5 -0
- package/dist/utils/unique.js.map +1 -0
- package/dist/utils/url.d.ts +1 -1
- package/dist/utils/url.js.map +1 -1
- package/dist/utils/zip.d.ts +4 -0
- package/dist/utils/zip.js +7 -0
- package/dist/utils/zip.js.map +1 -0
- package/lib/EventBus/defaultEventBus.d.ts +1 -0
- package/lib/EventBus/defaultEventBus.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/lib/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/lib/components/Bonus/BonusContent.d.ts +0 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/lib/components/Calculator/CalculatorContent.d.ts +2 -4
- package/lib/components/Carousel/CarouselContent.d.ts +1 -4
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +4 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +2 -3
- package/lib/components/ContentPage/ContentPage.js +7 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +2 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/lib/components/Footer/Footer.js +22 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/lib/components/Footer/MediaButton.js +5 -2
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/Sitemap.d.ts +2 -2
- package/lib/components/Footer/Sitemap.js +2 -4
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- 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.d.ts +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +2 -0
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/lib/components/PictureText/PictureTextContent.d.ts +3 -21
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/lib/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/lib/components/Tabs/TabsContent.d.ts +1 -4
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/lib/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/lib/components/Tile/TileContent.d.ts +3 -22
- package/lib/components/VerticalLayout/VerticalLayout.js +5 -3
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +2 -15
- package/lib/hooks/useCarouselControls.d.ts +0 -2
- package/lib/hooks/useCarouselControls.js +7 -15
- package/lib/hooks/useCarouselControls.js.map +1 -1
- package/{bundle/services/sitemap → lib/hooks}/useSWRResource.d.ts +1 -1
- package/lib/{services/sitemap → hooks}/useSWRResource.js +1 -1
- package/lib/hooks/useSWRResource.js.map +1 -0
- package/lib/model/Bullets.d.ts +4 -0
- package/lib/model/Bullets.js +2 -0
- package/lib/model/Bullets.js.map +1 -0
- package/lib/model/Button.d.ts +15 -0
- package/lib/model/Button.js +2 -0
- package/lib/model/Button.js.map +1 -0
- package/lib/model/HeadlineType.d.ts +4 -0
- package/lib/model/Picture.d.ts +3 -10
- package/{mobile/bundle/services/sitemap/SitemapProps.d.ts → lib/services/sitemap/SitemapData.d.ts} +1 -1
- package/lib/services/sitemap/SitemapData.js +2 -0
- package/lib/services/sitemap/SitemapData.js.map +1 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.js +64 -0
- package/lib/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/lib/services/sitemap/search/joinMaps.d.ts +1 -0
- package/lib/services/sitemap/search/joinMaps.js +7 -0
- package/lib/services/sitemap/search/joinMaps.js.map +1 -0
- package/lib/services/sitemap/search/search.d.ts +12 -0
- package/lib/services/sitemap/search/search.js +36 -0
- package/lib/services/sitemap/search/search.js.map +1 -0
- package/lib/services/sitemap/search/textRank.d.ts +1 -0
- package/lib/services/sitemap/search/textRank.js +11 -0
- package/lib/services/sitemap/search/textRank.js.map +1 -0
- package/lib/services/sitemap/search/tokenize.d.ts +1 -0
- package/lib/services/sitemap/search/tokenize.js +6 -0
- package/lib/services/sitemap/search/tokenize.js.map +1 -0
- package/lib/services/sitemap/useSearch.d.ts +8 -0
- package/lib/services/sitemap/useSearch.js +30 -0
- package/lib/services/sitemap/useSearch.js.map +1 -0
- package/lib/ui-kit/BlockWrapper.d.ts +1 -0
- package/lib/ui-kit/BlockWrapper.js +3 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/lib/ui-kit/List/ListProps.d.ts +3 -4
- package/lib/ui-kit/Location/Location.d.ts +1 -18
- package/lib/ui-kit/Location/Location.js +7 -9
- package/lib/ui-kit/Location/Location.js.map +1 -1
- package/lib/ui-kit/Location/LocationProps.d.ts +16 -0
- package/lib/ui-kit/Location/LocationProps.js +2 -0
- package/lib/ui-kit/Location/LocationProps.js.map +1 -0
- package/lib/ui-kit/Location/SearchBar.js +1 -1
- package/lib/ui-kit/Location/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/utils/Comparator.d.ts +4 -0
- package/lib/utils/Comparator.js +4 -0
- package/lib/utils/Comparator.js.map +1 -0
- package/lib/utils/fetchJSON.js +1 -1
- package/lib/utils/fetchJSON.js.map +1 -1
- package/lib/utils/maxBy.d.ts +1 -0
- package/lib/utils/maxBy.js +1 -0
- package/lib/utils/maxBy.js.map +1 -1
- package/lib/utils/minBy.d.ts +1 -0
- package/lib/utils/minBy.js +1 -0
- package/lib/utils/minBy.js.map +1 -1
- package/lib/utils/sum.d.ts +1 -0
- package/lib/utils/sum.js +2 -0
- package/lib/utils/sum.js.map +1 -0
- package/lib/utils/unique.d.ts +1 -0
- package/lib/utils/unique.js +2 -0
- package/lib/utils/unique.js.map +1 -0
- package/lib/utils/url.d.ts +1 -1
- package/lib/utils/url.js.map +1 -1
- package/lib/utils/zip.d.ts +4 -0
- package/lib/utils/zip.js +4 -0
- package/lib/utils/zip.js.map +1 -0
- package/mobile/bundle/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +25 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -4
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/bundle/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/bundle/components/Tile/TileContent.d.ts +3 -22
- package/mobile/bundle/components/Video/VideoContent.d.ts +2 -15
- package/mobile/bundle/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/bundle/{services/sitemap → hooks}/useSWRResource.d.ts +1 -1
- package/mobile/bundle/model/Bullets.d.ts +4 -0
- package/mobile/bundle/model/Button.d.ts +15 -0
- package/mobile/bundle/model/HeadlineType.d.ts +4 -0
- package/mobile/bundle/model/Picture.d.ts +3 -10
- package/{lib/services/sitemap/SitemapProps.d.ts → mobile/bundle/services/sitemap/SitemapData.d.ts} +1 -1
- package/mobile/bundle/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/search.d.ts +12 -0
- package/mobile/bundle/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/bundle/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/bundle/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/bundle/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/bundle/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/bundle/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/bundle/utils/Comparator.d.ts +4 -0
- package/mobile/bundle/utils/maxBy.d.ts +1 -0
- package/mobile/bundle/utils/minBy.d.ts +1 -0
- package/mobile/bundle/utils/sum.d.ts +1 -0
- package/mobile/bundle/utils/unique.d.ts +1 -0
- package/mobile/bundle/utils/url.d.ts +1 -1
- package/mobile/bundle/utils/zip.d.ts +4 -0
- package/mobile/dist/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/dist/EventBus/defaultEventBus.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/dist/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -4
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/dist/components/ContentPage/ContentPage.js +7 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/dist/components/Footer/MediaButton.js +5 -2
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/dist/components/Footer/Sitemap.js +2 -4
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- 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.d.ts +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/dist/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/dist/components/Tile/TileContent.d.ts +3 -22
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +5 -3
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +2 -15
- package/mobile/dist/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/dist/hooks/useCarouselControls.js +7 -15
- package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
- package/mobile/dist/hooks/useSWRResource.d.ts +2 -0
- package/{dist/services/sitemap → mobile/dist/hooks}/useSWRResource.js +1 -1
- package/mobile/dist/hooks/useSWRResource.js.map +1 -0
- package/mobile/dist/model/Bullets.d.ts +4 -0
- package/mobile/dist/model/Bullets.js +2 -0
- package/mobile/dist/model/Bullets.js.map +1 -0
- package/mobile/dist/model/Button.d.ts +15 -0
- package/mobile/dist/model/Button.js +2 -0
- package/mobile/dist/model/Button.js.map +1 -0
- package/mobile/dist/model/HeadlineType.d.ts +4 -0
- package/mobile/dist/model/Picture.d.ts +3 -10
- package/mobile/dist/services/sitemap/SitemapData.d.ts +32 -0
- package/mobile/dist/services/sitemap/SitemapData.js +2 -0
- package/mobile/dist/services/sitemap/SitemapData.js.map +1 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.js +67 -0
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/dist/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/joinMaps.js +10 -0
- package/mobile/dist/services/sitemap/search/joinMaps.js.map +1 -0
- package/mobile/dist/services/sitemap/search/search.d.ts +12 -0
- package/mobile/dist/services/sitemap/search/search.js +39 -0
- package/mobile/dist/services/sitemap/search/search.js.map +1 -0
- package/mobile/dist/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/textRank.js +14 -0
- package/mobile/dist/services/sitemap/search/textRank.js.map +1 -0
- package/mobile/dist/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/dist/services/sitemap/search/tokenize.js +9 -0
- package/mobile/dist/services/sitemap/search/tokenize.js.map +1 -0
- package/mobile/dist/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/dist/services/sitemap/useSearch.js +33 -0
- package/mobile/dist/services/sitemap/useSearch.js.map +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/dist/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/dist/ui-kit/Location/Location.js +6 -8
- package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
- package/mobile/dist/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/dist/ui-kit/Location/LocationProps.js +2 -0
- package/mobile/dist/ui-kit/Location/LocationProps.js.map +1 -0
- package/mobile/dist/ui-kit/Location/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/Location/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/utils/Comparator.d.ts +4 -0
- package/mobile/dist/utils/Comparator.js +9 -0
- package/mobile/dist/utils/Comparator.js.map +1 -0
- package/mobile/dist/utils/fetchJSON.js +1 -1
- package/mobile/dist/utils/fetchJSON.js.map +1 -1
- package/mobile/dist/utils/maxBy.d.ts +1 -0
- package/mobile/dist/utils/maxBy.js +2 -1
- package/mobile/dist/utils/maxBy.js.map +1 -1
- package/mobile/dist/utils/minBy.d.ts +1 -0
- package/mobile/dist/utils/minBy.js +2 -1
- package/mobile/dist/utils/minBy.js.map +1 -1
- package/mobile/dist/utils/sum.d.ts +1 -0
- package/mobile/dist/utils/sum.js +5 -0
- package/mobile/dist/utils/sum.js.map +1 -0
- package/mobile/dist/utils/unique.d.ts +1 -0
- package/mobile/dist/utils/unique.js +5 -0
- package/mobile/dist/utils/unique.js.map +1 -0
- package/mobile/dist/utils/url.d.ts +1 -1
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/dist/utils/zip.d.ts +4 -0
- package/mobile/dist/utils/zip.js +7 -0
- package/mobile/dist/utils/zip.js.map +1 -0
- package/mobile/lib/EventBus/defaultEventBus.d.ts +1 -0
- package/mobile/lib/EventBus/defaultEventBus.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -5
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -8
- package/mobile/lib/components/Bonus/BonusContent.d.ts +0 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -8
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +2 -9
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +1 -5
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +2 -4
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -4
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -10
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -10
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +3 -21
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +4 -29
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +8 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +2 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +12 -7
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -21
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -8
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +2 -3
- package/mobile/lib/components/ContentPage/ContentPage.js +7 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +4 -23
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/lib/components/Footer/MediaButton.js +5 -2
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/lib/components/Footer/Sitemap.js +2 -4
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +3 -14
- 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.d.ts +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +2 -2
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -1
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +2 -4
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -3
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -17
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -20
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +3 -21
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -23
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -17
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +2 -28
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +7 -23
- package/mobile/lib/components/Tabs/TabsContent.d.ts +1 -4
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +4 -9
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +3 -3
- package/mobile/lib/components/Tile/TileContent.d.ts +3 -22
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +5 -3
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +2 -15
- package/mobile/lib/hooks/useCarouselControls.d.ts +0 -2
- package/mobile/lib/hooks/useCarouselControls.js +7 -15
- package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
- package/mobile/lib/hooks/useSWRResource.d.ts +2 -0
- package/mobile/lib/{services/sitemap → hooks}/useSWRResource.js +1 -1
- package/mobile/lib/hooks/useSWRResource.js.map +1 -0
- package/mobile/lib/model/Bullets.d.ts +4 -0
- package/mobile/lib/model/Bullets.js +2 -0
- package/mobile/lib/model/Bullets.js.map +1 -0
- package/mobile/lib/model/Button.d.ts +15 -0
- package/mobile/lib/model/Button.js +2 -0
- package/mobile/lib/model/Button.js.map +1 -0
- package/mobile/lib/model/HeadlineType.d.ts +4 -0
- package/mobile/lib/model/Picture.d.ts +3 -10
- package/mobile/lib/services/sitemap/SitemapData.d.ts +32 -0
- package/mobile/lib/services/sitemap/SitemapData.js +2 -0
- package/mobile/lib/services/sitemap/SitemapData.js.map +1 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.js +64 -0
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/lib/services/sitemap/search/joinMaps.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/joinMaps.js +7 -0
- package/mobile/lib/services/sitemap/search/joinMaps.js.map +1 -0
- package/mobile/lib/services/sitemap/search/search.d.ts +12 -0
- package/mobile/lib/services/sitemap/search/search.js +36 -0
- package/mobile/lib/services/sitemap/search/search.js.map +1 -0
- package/mobile/lib/services/sitemap/search/textRank.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/textRank.js +11 -0
- package/mobile/lib/services/sitemap/search/textRank.js.map +1 -0
- package/mobile/lib/services/sitemap/search/tokenize.d.ts +1 -0
- package/mobile/lib/services/sitemap/search/tokenize.js +6 -0
- package/mobile/lib/services/sitemap/search/tokenize.js.map +1 -0
- package/mobile/lib/services/sitemap/useSearch.d.ts +8 -0
- package/mobile/lib/services/sitemap/useSearch.js +30 -0
- package/mobile/lib/services/sitemap/useSearch.js.map +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +4 -4
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +3 -4
- package/mobile/lib/ui-kit/Location/Location.d.ts +1 -18
- package/mobile/lib/ui-kit/Location/Location.js +7 -9
- package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
- package/mobile/lib/ui-kit/Location/LocationProps.d.ts +16 -0
- package/mobile/lib/ui-kit/Location/LocationProps.js +2 -0
- package/mobile/lib/ui-kit/Location/LocationProps.js.map +1 -0
- package/mobile/lib/ui-kit/Location/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/Location/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +3 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +4 -6
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/utils/Comparator.d.ts +4 -0
- package/mobile/lib/utils/Comparator.js +4 -0
- package/mobile/lib/utils/Comparator.js.map +1 -0
- package/mobile/lib/utils/fetchJSON.js +1 -1
- package/mobile/lib/utils/fetchJSON.js.map +1 -1
- package/mobile/lib/utils/maxBy.d.ts +1 -0
- package/mobile/lib/utils/maxBy.js +1 -0
- package/mobile/lib/utils/maxBy.js.map +1 -1
- package/mobile/lib/utils/minBy.d.ts +1 -0
- package/mobile/lib/utils/minBy.js +1 -0
- package/mobile/lib/utils/minBy.js.map +1 -1
- package/mobile/lib/utils/sum.d.ts +1 -0
- package/mobile/lib/utils/sum.js +2 -0
- package/mobile/lib/utils/sum.js.map +1 -0
- package/mobile/lib/utils/unique.d.ts +1 -0
- package/mobile/lib/utils/unique.js +2 -0
- package/mobile/lib/utils/unique.js.map +1 -0
- package/mobile/lib/utils/url.d.ts +1 -1
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/lib/utils/zip.d.ts +4 -0
- package/mobile/lib/utils/zip.js +4 -0
- package/mobile/lib/utils/zip.js.map +1 -0
- package/mobile/src/EventBus/defaultEventBus.ts +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +8 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -5
- package/mobile/src/components/BaseTile/BaseTileProps.ts +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -3
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -8
- package/mobile/src/components/Bonus/Bonus.example.json +2 -1
- package/mobile/src/components/Bonus/Bonus.ui.json +1 -1
- package/mobile/src/components/Bonus/BonusContent.ts +0 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +3 -8
- package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +42 -8
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +3 -9
- package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +3 -1
- package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +1 -5
- package/mobile/src/components/Calculator/CalculatorContent.ts +6 -7
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/CarouselContent.ts +1 -4
- package/mobile/src/components/CarouselCard/CarouselCard.example.json +4 -2
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -3
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +3 -10
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +3 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -10
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +13 -6
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +4 -21
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +11 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -29
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +25 -12
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +2 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -5
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +44 -26
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -21
- package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +8 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +15 -11
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +3 -3
- package/mobile/src/components/ContentPage/ContentPage.tsx +16 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +15 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +7 -4
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +5 -23
- package/mobile/src/components/Footer/Footer.tsx +3 -3
- package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
- package/mobile/src/components/Footer/MediaButton.tsx +13 -7
- package/mobile/src/components/Footer/Sitemap.tsx +4 -7
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +15 -0
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +1 -1
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +3 -14
- package/mobile/src/components/Header/Header.tsx +3 -3
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +4 -1
- package/mobile/src/components/Headline/Headline.tsx +5 -6
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.example.json +3 -1
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +3 -1
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +2 -4
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +3 -3
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +9 -2
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +4 -17
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +10 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +4 -20
- package/mobile/src/components/PictureText/PictureText.example.json +9 -1
- package/mobile/src/components/PictureText/PictureTextContent.ts +4 -21
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +10 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +5 -23
- package/mobile/src/components/ProductTile/ProductTile.example.json +10 -2
- package/mobile/src/components/ProductTile/ProductTileContent.ts +3 -17
- package/mobile/src/components/Recommendation/Recommendation.example.json +5 -1
- package/mobile/src/components/Recommendation/RecommendationContent.ts +2 -28
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +8 -4
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +19 -33
- package/mobile/src/components/Tabs/Tabs.example.json +2 -1
- package/mobile/src/components/Tabs/TabsContent.ts +1 -4
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +4 -9
- package/mobile/src/components/TextBlock/TextBlockContent.ts +5 -5
- package/mobile/src/components/Tile/Tile.example.json +9 -1
- package/mobile/src/components/Tile/TileContent.ts +5 -22
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -1
- package/mobile/src/components/Video/Video.example.json +7 -1
- package/mobile/src/components/Video/VideoContent.ts +2 -15
- package/mobile/src/hooks/useCarouselControls.ts +7 -30
- package/mobile/src/{services/sitemap → hooks}/useSWRResource.ts +2 -2
- package/mobile/src/model/Bullets.ts +4 -0
- package/mobile/src/model/Button.ts +16 -0
- package/mobile/src/model/HeadlineType.ts +5 -0
- package/mobile/src/model/Picture.ts +3 -10
- package/mobile/src/services/sitemap/{SitemapProps.ts → SitemapData.ts} +1 -1
- package/mobile/src/services/sitemap/search/jaroWinklerDistance.ts +98 -0
- package/mobile/src/services/sitemap/search/joinMaps.ts +9 -0
- package/mobile/src/services/sitemap/search/search.ts +73 -0
- package/mobile/src/services/sitemap/search/textRank.ts +14 -0
- package/mobile/src/services/sitemap/search/tokenize.ts +7 -0
- package/mobile/src/services/sitemap/useSearch.ts +56 -0
- package/mobile/src/ui-kit/BlockWrapper.tsx +8 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +4 -4
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/mobile/src/ui-kit/List/ListProps.ts +11 -11
- package/mobile/src/ui-kit/Location/Location.tsx +23 -40
- package/mobile/src/ui-kit/Location/LocationProps.ts +25 -0
- package/mobile/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +59 -56
- package/mobile/src/utils/Comparator.ts +14 -0
- package/mobile/src/utils/fetchJSON.ts +1 -1
- package/mobile/src/utils/maxBy.ts +2 -0
- package/mobile/src/utils/minBy.ts +2 -0
- package/mobile/src/utils/sum.ts +1 -0
- package/mobile/src/utils/unique.ts +1 -0
- package/mobile/src/utils/url.ts +1 -1
- package/mobile/src/utils/zip.ts +8 -0
- package/package.json +1 -1
- package/src/EventBus/defaultEventBus.ts +1 -0
- package/src/components/ApplicationForm/ApplicationForm.example.json +8 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -5
- package/src/components/BaseTile/BaseTileProps.ts +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -3
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -8
- package/src/components/Bonus/Bonus.example.json +2 -1
- package/src/components/Bonus/Bonus.ui.json +1 -1
- package/src/components/Bonus/BonusContent.ts +0 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +3 -8
- package/src/components/BusinessBlock/BusinessBlock.example.json +42 -8
- package/src/components/BusinessBlock/BusinessBlockContent.ts +3 -9
- package/src/components/ButtonBlock/ButtonBlock.example.json +3 -1
- package/src/components/ButtonBlock/ButtonBlockContent.ts +1 -5
- package/src/components/Calculator/CalculatorContent.ts +6 -7
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +5 -4
- package/src/components/Carousel/CarouselContent.ts +1 -4
- package/src/components/CarouselCard/CarouselCard.example.json +4 -2
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +3 -0
- package/src/components/CarouselCard/CarouselCard.tsx +4 -3
- package/src/components/CarouselCard/CarouselCardContent.ts +3 -10
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +3 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -10
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +13 -6
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +4 -21
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +11 -2
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -29
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +25 -12
- package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -5
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +82 -22
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +44 -26
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -21
- package/src/components/ComparisonTable/ComparisonTable.example.json +8 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +15 -11
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +3 -3
- package/src/components/ContentPage/ContentPage.tsx +16 -1
- package/src/components/ErrorBlock/ErrorBlock.example.json +15 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +7 -4
- package/src/components/ErrorBlock/ErrorBlockContent.ts +5 -23
- package/src/components/Footer/Footer.mobile.tsx +3 -3
- package/src/components/Footer/Footer.tsx +33 -3
- package/src/components/Footer/FooterDataProps.ts +2 -2
- package/src/components/Footer/MediaButton.tsx +13 -7
- package/src/components/Footer/Sitemap.tsx +4 -7
- package/src/components/Footer/SocialMedia.tsx +11 -2
- package/src/components/GracePeriod/GracePeriod.example.json +15 -0
- package/src/components/GracePeriod/GracePeriod.ui.json +1 -1
- package/src/components/GracePeriod/GracePeriodContent.ts +3 -14
- package/src/components/Header/Header.mobile.tsx +3 -3
- package/src/components/Header/Header.tsx +3 -3
- package/src/components/Header/HeaderSecondaryMenu.tsx +4 -1
- package/src/components/Headline/Headline.fixture.tsx +11 -11
- package/src/components/Headline/Headline.tsx +5 -6
- package/src/components/HorizontalLayout/HorizontalLayout.example.json +3 -1
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +3 -1
- package/src/components/ImgBlock/ImgBlockContent.ts +2 -4
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +3 -3
- package/src/components/LinkDocs/LinkDocs.example.json +9 -2
- package/src/components/LinkDocs/LinkDocsContent.ts +4 -17
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.example.json +10 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +4 -20
- package/src/components/PictureText/PictureText.example.json +9 -1
- package/src/components/PictureText/PictureTextContent.ts +4 -21
- package/src/components/ProductBlock/ProductBlock.example.json +10 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +5 -23
- package/src/components/ProductBlock/ProductBlockInner.tsx +0 -1
- package/src/components/ProductTile/ProductTile.example.json +10 -2
- package/src/components/ProductTile/ProductTileContent.ts +3 -17
- package/src/components/Recommendation/Recommendation.example.json +5 -1
- package/src/components/Recommendation/RecommendationContent.ts +2 -28
- package/src/components/StepsBlock/StepsBlock.example.json +8 -4
- package/src/components/StepsBlock/StepsBlockContent.ts +19 -33
- package/src/components/Tabs/Tabs.example.json +2 -1
- package/src/components/Tabs/TabsContent.ts +1 -4
- package/src/components/TariffsTable/TariffsTableContent.ts +4 -9
- package/src/components/TextBlock/TextBlockContent.ts +5 -5
- package/src/components/Tile/Tile.example.json +9 -1
- package/src/components/Tile/TileContent.ts +5 -22
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +1 -0
- package/src/components/VerticalLayout/VerticalLayout.tsx +5 -1
- package/src/components/Video/Video.example.json +7 -1
- package/src/components/Video/VideoContent.ts +2 -15
- package/src/hooks/useCarouselControls.ts +7 -30
- package/src/{services/sitemap → hooks}/useSWRResource.ts +2 -2
- package/src/model/Bullets.ts +4 -0
- package/src/model/Button.ts +16 -0
- package/src/model/HeadlineType.ts +5 -0
- package/src/model/Picture.ts +3 -10
- package/src/services/sitemap/{SitemapProps.ts → SitemapData.ts} +1 -1
- package/src/services/sitemap/search/jaroWinklerDistance.ts +98 -0
- package/src/services/sitemap/search/joinMaps.ts +9 -0
- package/src/services/sitemap/search/search.ts +73 -0
- package/src/services/sitemap/search/textRank.ts +14 -0
- package/src/services/sitemap/search/tokenize.ts +7 -0
- package/src/services/sitemap/useSearch.ts +56 -0
- package/src/ui-kit/BlockWrapper.tsx +8 -3
- package/src/ui-kit/Button/ButtonProps.ts +4 -4
- package/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/src/ui-kit/List/ListProps.ts +11 -11
- package/src/ui-kit/Location/Location.fixture.tsx +1 -1
- package/src/ui-kit/Location/Location.tsx +23 -40
- package/src/ui-kit/Location/LocationProps.ts +25 -0
- package/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +59 -56
- package/src/utils/Comparator.ts +14 -0
- package/src/utils/fetchJSON.ts +1 -1
- package/src/utils/maxBy.ts +2 -0
- package/src/utils/minBy.ts +2 -0
- package/src/utils/sum.ts +1 -0
- package/src/utils/unique.ts +1 -0
- package/src/utils/url.ts +1 -1
- package/src/utils/zip.ts +8 -0
- package/bundle/hooks/useSearch.d.ts +0 -4
- package/dist/hooks/useSearch.d.ts +0 -4
- package/dist/hooks/useSearch.js +0 -12
- package/dist/hooks/useSearch.js.map +0 -1
- package/dist/services/sitemap/SitemapProps.js.map +0 -1
- package/dist/services/sitemap/useSWRResource.js.map +0 -1
- package/lib/hooks/useSearch.d.ts +0 -4
- package/lib/hooks/useSearch.js +0 -9
- package/lib/hooks/useSearch.js.map +0 -1
- package/lib/services/sitemap/SitemapProps.js +0 -2
- package/lib/services/sitemap/SitemapProps.js.map +0 -1
- package/lib/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/bundle/hooks/useSearch.d.ts +0 -4
- package/mobile/dist/hooks/useSearch.d.ts +0 -4
- package/mobile/dist/hooks/useSearch.js +0 -12
- package/mobile/dist/hooks/useSearch.js.map +0 -1
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +0 -32
- package/mobile/dist/services/sitemap/SitemapProps.js.map +0 -1
- package/mobile/dist/services/sitemap/useSWRResource.d.ts +0 -2
- package/mobile/dist/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/lib/hooks/useSearch.d.ts +0 -4
- package/mobile/lib/hooks/useSearch.js +0 -9
- package/mobile/lib/hooks/useSearch.js.map +0 -1
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +0 -32
- package/mobile/lib/services/sitemap/SitemapProps.js +0 -2
- package/mobile/lib/services/sitemap/SitemapProps.js.map +0 -1
- package/mobile/lib/services/sitemap/useSWRResource.d.ts +0 -2
- package/mobile/lib/services/sitemap/useSWRResource.js.map +0 -1
- package/mobile/src/hooks/useSearch.ts +0 -10
- package/src/hooks/useSearch.ts +0 -10
package/bundle/bundle.umd.js
CHANGED
|
@@ -365,15 +365,16 @@
|
|
|
365
365
|
transparent: 'bg-transparent text-primary-text',
|
|
366
366
|
'': '',
|
|
367
367
|
};
|
|
368
|
-
const BlockWrapper = JSX(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, children, }) => {
|
|
368
|
+
const BlockWrapper = JSX(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, extraProps = {}, children, }) => {
|
|
369
369
|
const Tag = tag;
|
|
370
370
|
const ref = useBlockIntersectionObserver(block);
|
|
371
371
|
const [isHidden, setHidden] = useState(false);
|
|
372
372
|
useEffect(() => defaultEventBus.subscribe('tab', (event) => {
|
|
373
373
|
setHidden(Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)));
|
|
374
374
|
}), [block]);
|
|
375
|
-
return (jsx(Tag, { className: style(
|
|
375
|
+
return (jsx(Tag, { className: style(groupStyle(Boolean(version && isTheme)), blockStyles[version], isHidden ? 'hidden' : '', className), ...(version && isTheme ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, ...extraProps, children: children }));
|
|
376
376
|
});
|
|
377
|
+
const groupStyle = (isGroup) => (isGroup ? 'group' : '');
|
|
377
378
|
|
|
378
379
|
const styles$4 = {
|
|
379
380
|
h0: 'text-h0',
|
|
@@ -493,7 +494,7 @@
|
|
|
493
494
|
|
|
494
495
|
async function fetchJSON(url, options) {
|
|
495
496
|
try {
|
|
496
|
-
return await fetchJSONUnsafe(url, options);
|
|
497
|
+
return url ? await fetchJSONUnsafe(url, options) : null;
|
|
497
498
|
}
|
|
498
499
|
catch (err) {
|
|
499
500
|
console.error(err);
|
|
@@ -1195,10 +1196,10 @@
|
|
|
1195
1196
|
XS: 'text-xs-light',
|
|
1196
1197
|
};
|
|
1197
1198
|
|
|
1198
|
-
const Headline = JSX(({ className, title, description, headlineVersion = 'XL', align = 'text-center', as, isPadding = true, ...rest }) => {
|
|
1199
|
+
const Headline = JSX(({ className, title, description, headlineVersion = 'XL', align = 'text-center', as, isPadding = true, isTheme = false, version = '', ...rest }) => {
|
|
1199
1200
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
1200
1201
|
const paddingStyle = isPadding ? 'p-12' : '';
|
|
1201
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col
|
|
1202
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col', paddingStyle, versionStyle.wrapper, className), version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { color: "group-data-secondary:text-white/80", size: versionStyle.descriptionSize, align: align, children: description })) : null] }));
|
|
1202
1203
|
});
|
|
1203
1204
|
|
|
1204
1205
|
const Bonus = JSX((props) => {
|
|
@@ -1246,13 +1247,12 @@
|
|
|
1246
1247
|
const ButtonBlock = JSX(({ button, className, ...rest }) => (jsx(BlockWrapper, { className: style('!bg-transparent', className), ...rest, children: renderButtonsSection([button]) })));
|
|
1247
1248
|
|
|
1248
1249
|
const useCarouselControls = (props) => {
|
|
1249
|
-
const { itemCount, visibleItemCount
|
|
1250
|
+
const { itemCount, visibleItemCount } = props;
|
|
1250
1251
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
1251
|
-
const inc = useCallback(() => setActiveIndex((_) =>
|
|
1252
|
-
const dec = useCallback(() => setActiveIndex((_) =>
|
|
1253
|
-
const canInc =
|
|
1254
|
-
|
|
1255
|
-
const canDec = isCyclic || activeIndex > 0;
|
|
1252
|
+
const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
|
|
1253
|
+
const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
|
|
1254
|
+
const canInc = isScrollable(props) && activeIndex < itemCount - (visibleItemCount || 1);
|
|
1255
|
+
const canDec = activeIndex > 0;
|
|
1256
1256
|
const isScrollAvailable = canDec || canInc;
|
|
1257
1257
|
return [
|
|
1258
1258
|
activeIndex,
|
|
@@ -1265,15 +1265,8 @@
|
|
|
1265
1265
|
},
|
|
1266
1266
|
];
|
|
1267
1267
|
};
|
|
1268
|
-
function isScrollable(
|
|
1269
|
-
|
|
1270
|
-
return itemCount > visibleItemCount;
|
|
1271
|
-
}
|
|
1272
|
-
if (container) {
|
|
1273
|
-
const scrollLeft = (container.scrollWidth * activeIndex) / itemCount;
|
|
1274
|
-
return scrollLeft + container.clientWidth < container.scrollWidth;
|
|
1275
|
-
}
|
|
1276
|
-
return false;
|
|
1268
|
+
function isScrollable({ itemCount, visibleItemCount }) {
|
|
1269
|
+
return Boolean(visibleItemCount && itemCount > visibleItemCount);
|
|
1277
1270
|
}
|
|
1278
1271
|
|
|
1279
1272
|
const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
|
|
@@ -1460,6 +1453,7 @@
|
|
|
1460
1453
|
|
|
1461
1454
|
const defaultDiscriminator = (_) => _;
|
|
1462
1455
|
const maxBy = (discriminator = defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
1456
|
+
const max = maxBy();
|
|
1463
1457
|
|
|
1464
1458
|
const minBy = (discriminator = defaultDiscriminator) => maxBy((_) => -discriminator(_));
|
|
1465
1459
|
|
|
@@ -2080,7 +2074,7 @@
|
|
|
2080
2074
|
normal: 'min-w-[970px]',
|
|
2081
2075
|
small: 'min-w-[355px]',
|
|
2082
2076
|
};
|
|
2083
|
-
const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 border-box h-full ${CARD_WIDTH_MAP[carouselVersion]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative h-full bg-white z-10 p-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "L", align: "text-left" }), renderButtonsSection([button], { className: 'mt-14' })] })] }) })));
|
|
2077
|
+
const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal', version = '' }) => (jsx("section", { className: `flex pb-9 pl-12 border-box h-full ${CARD_WIDTH_MAP[carouselVersion]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative h-full bg-white z-10 p-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "L", align: "text-left", version: version }), renderButtonsSection([button], { className: 'mt-14' })] })] }) })));
|
|
2084
2078
|
|
|
2085
2079
|
const cardStyleMap = {
|
|
2086
2080
|
black: 'bg-black',
|
|
@@ -2167,7 +2161,12 @@
|
|
|
2167
2161
|
const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
|
|
2168
2162
|
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
|
|
2169
2163
|
|
|
2170
|
-
const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [],
|
|
2164
|
+
const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
|
|
2165
|
+
const link = useLink();
|
|
2166
|
+
const adjustedProps = link({ href, target });
|
|
2167
|
+
const tagName = href ? 'a' : 'section';
|
|
2168
|
+
return (jsxs(BlockWrapper, { tag: tagName, className: style('border border-gray flex min-w-[536px]', className), extraProps: adjustedProps, ...rest, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) }) : null] })] }));
|
|
2169
|
+
});
|
|
2171
2170
|
const renderList$1 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: `text-h6`, children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
|
|
2172
2171
|
|
|
2173
2172
|
const ICONS_MAP = [
|
|
@@ -2206,24 +2205,30 @@
|
|
|
2206
2205
|
default: 'w-14 h-14',
|
|
2207
2206
|
small: 'w-12 h-12',
|
|
2208
2207
|
};
|
|
2208
|
+
const buttonStylesWithText = (text, buttonSize) => text
|
|
2209
|
+
? ''
|
|
2210
|
+
: `group/media flex items-center justify-center box-border ${buttonSizeStyles[buttonSize]}`;
|
|
2209
2211
|
const MediaButton = JSX(({ iconVersion = 'color', buttonSize = 'default', rounded = false, icon, ...rest }) => {
|
|
2210
|
-
const { href, version } = rest;
|
|
2212
|
+
const { href, version, text, appendLeft, appendRight, aboveText } = rest;
|
|
2211
2213
|
const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
2212
2214
|
const iconCustom = icon ?? iconMapped;
|
|
2213
2215
|
const iconWithVersion = iconCustom
|
|
2214
2216
|
? { ...getIconWithVersion(iconCustom), iconVersion }
|
|
2215
2217
|
: undefined;
|
|
2216
|
-
return (jsx(Button, { className: style(
|
|
2218
|
+
return (jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonStylesWithText(text, buttonSize)), aboveText: aboveText, appendLeft: appendLeft, appendRight: appendRight, "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconWithVersion && !text ? (jsx(ImgInner, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
2217
2219
|
});
|
|
2218
2220
|
|
|
2219
|
-
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-
|
|
2221
|
+
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-1 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { aboveText: _.aboveText, appendLeft: _.appendLeft, appendRight: _.appendRight, buttonSize: buttonSize, text: _.text, version: _.version, ..._ }, String(index)))) }), jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
|
|
2220
2222
|
|
|
2221
|
-
const
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
const
|
|
2225
|
-
|
|
2223
|
+
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
2224
|
+
const setAdditionalIconStyles = (items) => items.length ? 'w-1/2 flex-1 justify-center' : 'w-full justify-end';
|
|
2225
|
+
const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, version = 'primary', ...rest }) => {
|
|
2226
|
+
const link = useLink();
|
|
2227
|
+
const adjustedProps = link({ href, target });
|
|
2228
|
+
const tagName = href ? 'a' : 'section';
|
|
2229
|
+
return (jsxs(BlockWrapper, { className: style('relative p-12 min-w-[524px] h-full flex flex-col box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), extraProps: adjustedProps, tag: tagName, version: version, ...rest, children: [jsx("div", { className: "self-center", children: title ? jsx(Heading, { headingType: "h3", as: "h3", className: "mb-8", title: title }) : null }), jsx("div", { className: "mb-5", children: description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "group-data-gray:text-secondary-text", children: description })) : null }), jsxs("div", { className: "flex align-center w-full", children: [jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "text-xl-light flex flex-col gap-2 pb-16 mb-3", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pb-0", media: socialMedia }) : null] }), renderIconBlock$1(icon, items)] })] }));
|
|
2226
2230
|
});
|
|
2231
|
+
const renderIconBlock$1 = (icon, items) => (jsxs("div", { className: style('flex', setAdditionalIconStyles(items)), children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
|
|
2227
2232
|
|
|
2228
2233
|
const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
2229
2234
|
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
@@ -2343,7 +2348,7 @@
|
|
|
2343
2348
|
return null;
|
|
2344
2349
|
};
|
|
2345
2350
|
const getErrorBlockStyle = (text) => (text ? 'py-20 pt-3 pb-1' : 'mb-16 pb-2 mt-24 pt-3');
|
|
2346
|
-
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button }) => (jsxs(
|
|
2351
|
+
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', getErrorBlockStyle(button?.text), className), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "font-sans text-xl-light mb-7 max-w-[613px] text-center", children: subtitle })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
|
|
2347
2352
|
|
|
2348
2353
|
var Currency;
|
|
2349
2354
|
(function (Currency) {
|
|
@@ -2526,6 +2531,154 @@
|
|
|
2526
2531
|
return data || {};
|
|
2527
2532
|
}
|
|
2528
2533
|
|
|
2534
|
+
const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
|
|
2535
|
+
const desc = (cmp) => (a, b) => -cmp(a, b);
|
|
2536
|
+
|
|
2537
|
+
function zip(firstCol, ...restCols) {
|
|
2538
|
+
return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
const JARO_WINKLER_P = 0.1;
|
|
2542
|
+
const JARO_WINKLER_MAX_L = 4;
|
|
2543
|
+
const jaroWinklerDistance = (s1) => (s2) => {
|
|
2544
|
+
if (s1 === s2) {
|
|
2545
|
+
return 1;
|
|
2546
|
+
}
|
|
2547
|
+
if (!s1 || !s2) {
|
|
2548
|
+
return 0;
|
|
2549
|
+
}
|
|
2550
|
+
const { m, s1Matches, s2Matches } = computeM(s1, s2);
|
|
2551
|
+
if (m === 0) {
|
|
2552
|
+
return 0;
|
|
2553
|
+
}
|
|
2554
|
+
const t = computeT(s1, s2, { s1Matches, s2Matches });
|
|
2555
|
+
const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
|
|
2556
|
+
const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
|
|
2557
|
+
return jaroWeight + winklerWeight * (1 - jaroWeight);
|
|
2558
|
+
};
|
|
2559
|
+
function computeM(s1, s2) {
|
|
2560
|
+
const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
|
|
2561
|
+
const s1Matches = new Array(s1.length);
|
|
2562
|
+
const s2Matches = new Array(s2.length);
|
|
2563
|
+
let m = 0;
|
|
2564
|
+
for (let i = 0; i < s1.length; i++) {
|
|
2565
|
+
const low = Math.max(0, i - range);
|
|
2566
|
+
const high = Math.min(i + range, s2.length - 1);
|
|
2567
|
+
for (let j = low; j <= high; j++) {
|
|
2568
|
+
if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
|
|
2569
|
+
continue;
|
|
2570
|
+
}
|
|
2571
|
+
m++;
|
|
2572
|
+
s1Matches[i] = true;
|
|
2573
|
+
s2Matches[j] = true;
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
return { m, s1Matches, s2Matches };
|
|
2577
|
+
}
|
|
2578
|
+
function computeT(s1, s2, { s1Matches, s2Matches }) {
|
|
2579
|
+
let t = 0;
|
|
2580
|
+
for (let i = 0, k = 0; i < s1.length; i++) {
|
|
2581
|
+
if (!s1Matches[i]) {
|
|
2582
|
+
continue;
|
|
2583
|
+
}
|
|
2584
|
+
let j = k;
|
|
2585
|
+
for (; j < s2.length; j++) {
|
|
2586
|
+
if (s2Matches[j]) {
|
|
2587
|
+
k = j + 1;
|
|
2588
|
+
break;
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
if (s1[i] !== s2[j]) {
|
|
2592
|
+
t++;
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
return t;
|
|
2596
|
+
}
|
|
2597
|
+
function computePrefixL(s1, s2) {
|
|
2598
|
+
let prefixL = 0;
|
|
2599
|
+
while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
|
|
2600
|
+
prefixL++;
|
|
2601
|
+
}
|
|
2602
|
+
return prefixL;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
const joinMaps = (aggregate, emptyVal) => (acc, map) => {
|
|
2606
|
+
for (const [key, b] of map) {
|
|
2607
|
+
acc.set(key, aggregate(acc.get(key) || emptyVal, b));
|
|
2608
|
+
}
|
|
2609
|
+
return acc;
|
|
2610
|
+
};
|
|
2611
|
+
|
|
2612
|
+
const sum = (list = []) => list.reduce((a, b) => a + b, 0);
|
|
2613
|
+
|
|
2614
|
+
const MIN_TERM_LEN = 3;
|
|
2615
|
+
const tokenize = (text) => text
|
|
2616
|
+
.toLowerCase()
|
|
2617
|
+
.split(/[^0-9a-zа-я-]+/)
|
|
2618
|
+
.filter((token) => token.length >= MIN_TERM_LEN && !/[0-9a-z]/.test(token));
|
|
2619
|
+
|
|
2620
|
+
const textRank = (queryTokens) => (text) => {
|
|
2621
|
+
const textTokens = tokenize(text || '');
|
|
2622
|
+
return textTokens.length
|
|
2623
|
+
? sum(queryTokens.map((qToken) => max(textTokens.map(jaroWinklerDistance(qToken)))))
|
|
2624
|
+
: 0;
|
|
2625
|
+
};
|
|
2626
|
+
|
|
2627
|
+
const JW_THRESHOLD = 0.8;
|
|
2628
|
+
const RANK_EPS = 0.001;
|
|
2629
|
+
const search = (query) => (searchIndex) => {
|
|
2630
|
+
const { corpus, dictionary } = searchIndex || {};
|
|
2631
|
+
if (!query || !corpus?.length || !dictionary || !Object.keys(dictionary).length) {
|
|
2632
|
+
return [];
|
|
2633
|
+
}
|
|
2634
|
+
const queryTokens = tokenize(query);
|
|
2635
|
+
if (!queryTokens.length) {
|
|
2636
|
+
return [];
|
|
2637
|
+
}
|
|
2638
|
+
const dictEntries = Object.entries(dictionary);
|
|
2639
|
+
const pagesRanking = queryTokens
|
|
2640
|
+
.map(computePagesRankingPerToken(dictEntries))
|
|
2641
|
+
.reduce(joinMaps((a, b) => a + b, 0), new Map());
|
|
2642
|
+
const relevantPages = [...pagesRanking.entries()]
|
|
2643
|
+
.filter(([, pageRank]) => pageRank >= (JW_THRESHOLD - RANK_EPS) * queryTokens.length) // Multiplication of query tokens
|
|
2644
|
+
.map(([pageIndex]) => corpus[pageIndex]);
|
|
2645
|
+
return sortResultsByRank(queryTokens)(relevantPages);
|
|
2646
|
+
};
|
|
2647
|
+
const computePagesRankingPerToken = (dictEntries) => (qToken) => dictEntries
|
|
2648
|
+
.map(([stem, pageIndices]) => [jaroWinklerDistance(qToken)(stem), pageIndices])
|
|
2649
|
+
.filter(([stemRank]) => stemRank >= JW_THRESHOLD)
|
|
2650
|
+
.map(([stemRank, pageIndices]) => fillMapWith(pageIndices, stemRank))
|
|
2651
|
+
.reduce(joinMaps(Math.max, 0), new Map());
|
|
2652
|
+
const sortResultsByRank = (queryTokens) => (results) => zip(results, results.map(({ title }) => title).map(textRank(queryTokens)))
|
|
2653
|
+
.sort(desc(compareBy(([, pageTitleRank]) => pageTitleRank)))
|
|
2654
|
+
.map(([corpusItem]) => corpusItem);
|
|
2655
|
+
const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
|
|
2656
|
+
|
|
2657
|
+
const SEARCH_INDEX_FILENAME = 'search.index.json';
|
|
2658
|
+
const useSearch = (basePathList = ['/']) => {
|
|
2659
|
+
const [query, setQuery] = useState('');
|
|
2660
|
+
const [wasQueryFocused, setWasQueryFocused] = useState(false);
|
|
2661
|
+
const handleFocus = useCallback(() => {
|
|
2662
|
+
setWasQueryFocused(true);
|
|
2663
|
+
}, []);
|
|
2664
|
+
const key = useMemo(() => basePathList.map((_) => (wasQueryFocused ? _ : null)), // Load search index on input focus
|
|
2665
|
+
[wasQueryFocused, ...basePathList]);
|
|
2666
|
+
const { data } = useAsyncData(key, fetchSearchIndex);
|
|
2667
|
+
const [result, setResult] = useState(null);
|
|
2668
|
+
useEffect(() => {
|
|
2669
|
+
const timerId = setTimeout(() => {
|
|
2670
|
+
if (data) {
|
|
2671
|
+
setResult(data.map(search(query)));
|
|
2672
|
+
}
|
|
2673
|
+
}, 300);
|
|
2674
|
+
return () => {
|
|
2675
|
+
clearTimeout(timerId);
|
|
2676
|
+
};
|
|
2677
|
+
}, [data, query]);
|
|
2678
|
+
return [result, { value: query, onChange: setQuery, onFocus: handleFocus }];
|
|
2679
|
+
};
|
|
2680
|
+
const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => fetchJSON(joinPath(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
|
|
2681
|
+
|
|
2529
2682
|
const ICON_VERSION_MAP = {
|
|
2530
2683
|
'bg-white': 'color',
|
|
2531
2684
|
transparent: 'white',
|
|
@@ -2553,24 +2706,15 @@
|
|
|
2553
2706
|
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$2(bgColor, logo?.image, { width: '40', height: '45' }), showTitle ? renderTitle$3(children || logo?.title, bgColor) : null] }));
|
|
2554
2707
|
});
|
|
2555
2708
|
|
|
2556
|
-
const
|
|
2557
|
-
const [term, setTerm] = useState('');
|
|
2558
|
-
return {
|
|
2559
|
-
term,
|
|
2560
|
-
setTerm: (text) => setTerm(text),
|
|
2561
|
-
};
|
|
2562
|
-
};
|
|
2563
|
-
|
|
2564
|
-
const SearchBarInner = JSX(({ className, isMobile = false }) => {
|
|
2565
|
-
const { term, setTerm } = useSearch();
|
|
2709
|
+
const SearchBarInner = JSX(({ className, isMobile, value: query, onChange, onFocus }) => {
|
|
2566
2710
|
const LoupeIconClassName = isMobile ? 'w-5 h-5' : 'w-6 h-6';
|
|
2567
2711
|
const SearchBarLabelClassName = isMobile ? 'text-s' : 'text-l-light';
|
|
2568
2712
|
const SearchBarInputClassName = isMobile ? ' placeholder-transparent' : 'h-full';
|
|
2569
2713
|
const inputPlaceholder = isMobile ? 'some search' : undefined;
|
|
2570
|
-
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: LoupeIconClassName, children: jsx(ImgInner, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }),
|
|
2571
|
-
outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${SearchBarInputClassName}`, value:
|
|
2714
|
+
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: LoupeIconClassName, children: jsx(ImgInner, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), query ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text ${SearchBarLabelClassName}`, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), jsx("input", { id: "search-bar-input", className: `h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border
|
|
2715
|
+
outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${SearchBarInputClassName}`, value: query, onChange: (e) => onChange && onChange(e.target.value || ''), onFocus: onFocus, type: "text", name: "search-bar-input", placeholder: inputPlaceholder }), isMobile ? (jsx("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) => {
|
|
2572
2716
|
e.preventDefault();
|
|
2573
|
-
|
|
2717
|
+
onChange && onChange('');
|
|
2574
2718
|
}, children: jsx(ImgInner, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })) : (jsx(Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-[3px] right-1", onClick: (ev) => {
|
|
2575
2719
|
ev?.preventDefault();
|
|
2576
2720
|
console.log('click');
|
|
@@ -2606,10 +2750,9 @@
|
|
|
2606
2750
|
return (jsx("div", { className: className, children: links?.length ? (jsx("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l-light max-w-[292px]", ..._ }, String(i)))) })) : null }));
|
|
2607
2751
|
});
|
|
2608
2752
|
|
|
2609
|
-
const Sitemap = JSX(({ className = '',
|
|
2753
|
+
const Sitemap = JSX(({ className = '', sitemap }) => {
|
|
2610
2754
|
const link = useLink(true);
|
|
2611
|
-
|
|
2612
|
-
return (jsx("div", { className: `flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${className}`, children: sitemap.topItems?.map((_, i) => renderColumn(link(_), i)) }));
|
|
2755
|
+
return (jsx("div", { className: `flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${className}`, children: sitemap?.topItems?.map((_, i) => renderColumn(link(_), i)) }));
|
|
2613
2756
|
});
|
|
2614
2757
|
const renderColumn = (menuItem, index) => {
|
|
2615
2758
|
const { text, items, href, target, onClick } = menuItem;
|
|
@@ -2633,9 +2776,26 @@
|
|
|
2633
2776
|
const LEFT_COL_WIDTH_FULL_HD = 'w-[204px]';
|
|
2634
2777
|
const Footer = JSX(({ className = '', ...rest }) => {
|
|
2635
2778
|
const fallback = rest.options?.page?.fallback;
|
|
2779
|
+
const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
|
|
2636
2780
|
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } = useSWRResource(projectSettings.FOOTER || 'footer', fallback);
|
|
2637
|
-
|
|
2781
|
+
const basePathList = sitemap?.topItems?.map((_) => _.href || '/');
|
|
2782
|
+
const [searchResult, searchInputProps] = useSearch(basePathList);
|
|
2783
|
+
useEffect(() => {
|
|
2784
|
+
printSearchResult(sitemap, searchResult); // Temp
|
|
2785
|
+
}, [sitemap, searchResult]);
|
|
2786
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: `p-9 ${className}`, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-[54px] pb-[30px] xl:gap-8", children: [jsx(Logo, { className: LEFT_COL_WIDTH_FULL_HD, logo: logo }), jsx(SearchBar$1, { className: "grow", ...searchInputProps })] }), jsxs("div", { className: "flex items-stretch gap-[54px] xl:gap-8", children: [jsxs("div", { className: `${LEFT_COL_WIDTH_FULL_HD} flex flex-col shrink-0 overflow-hidden`, children: [jsx(Contacts, { items: contacts, hasButton: true }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { className: "mt-6", media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "pt-[3px]", sitemap: sitemap })] }), jsx(HorizontalNavigation, { className: "mt-[98px]", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
2638
2787
|
});
|
|
2788
|
+
// Temp
|
|
2789
|
+
function printSearchResult(sitemap, searchResult) {
|
|
2790
|
+
if (!sitemap?.topItems?.length || !searchResult?.length) {
|
|
2791
|
+
return;
|
|
2792
|
+
}
|
|
2793
|
+
for (const [{ text }, portalSearchResult] of zip(sitemap.topItems, searchResult).filter(([, _]) => _?.length)) {
|
|
2794
|
+
console.group(text);
|
|
2795
|
+
console.table(portalSearchResult, ['title', 'uri']);
|
|
2796
|
+
console.groupEnd();
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2639
2799
|
|
|
2640
2800
|
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: `p-12 ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0 mb-4", title: title, description: description, headlineVersion: "M" }), calendar ? renderCalendar(calendar) : null] })));
|
|
2641
2801
|
const renderCalendar = (calendar) => {
|
|
@@ -2741,26 +2901,25 @@
|
|
|
2741
2901
|
|
|
2742
2902
|
const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
|
|
2743
2903
|
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border
|
|
2744
|
-
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value), type: "text", name: "location-search-bar-input" })] }));
|
|
2904
|
+
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
|
|
2745
2905
|
});
|
|
2746
2906
|
|
|
2747
2907
|
const SEARCH_TERM_MIN_LENGTH = 3;
|
|
2748
2908
|
const Location = JSX(({ currentLocation, onChangeLocation, close, foreignOffices }) => {
|
|
2749
|
-
const
|
|
2750
|
-
const handleSearch = useCallback((_) => setTerm(_), []);
|
|
2909
|
+
const [query, setQuery] = useState('');
|
|
2751
2910
|
const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
|
|
2752
2911
|
const regionsGroupByLetter = groupBy(regions, regionFirstLetter);
|
|
2753
|
-
return (
|
|
2754
|
-
|
|
2755
|
-
|
|
2912
|
+
return (jsx("div", { className: "absolute h-full w-full inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll", children: jsxs("div", { className: "relative container pt-6 pb-12", children: [jsxs("div", { className: "sticky bg-white pt-6 top-0", children: [jsx(CloseButton, { close: close }), jsx(CurrentLocation, { currentLocation: currentLocation }), jsx(SearchBar, { onSearch: setQuery, searchTerm: query, className: "mb-7" })] }), query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
|
|
2913
|
+
.filter((region) => region.name?.startsWith(query))
|
|
2914
|
+
.map(renderRegion({ onChangeLocation, close })) })) : (jsx("div", { className: "columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup({ onChangeLocation, close })) })), jsx(ForeignOffices, { foreignOffices: foreignOffices })] }) }));
|
|
2756
2915
|
});
|
|
2757
2916
|
const regionFirstLetter = (region) => region.name?.charAt(0) || '';
|
|
2758
2917
|
const cleanUpRegions = (regions) => regions.map((region) => ({
|
|
2759
2918
|
...region,
|
|
2760
2919
|
name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
|
|
2761
2920
|
}));
|
|
2762
|
-
const CurrentLocation = JSX(({ currentLocation }) => currentLocation ? (jsxs("div", { className: "mb-4", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { className: "cursor-pointer", onClick: close, children: jsx(Text, { color: "text-
|
|
2763
|
-
const CloseButton = JSX(({ close }) => (jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-
|
|
2921
|
+
const CurrentLocation = JSX(({ currentLocation }) => currentLocation ? (jsxs("div", { className: "mb-4", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { className: "cursor-pointer", onClick: close, children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null);
|
|
2922
|
+
const CloseButton = JSX(({ close }) => (jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-0 -right-6 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
|
|
2764
2923
|
e.preventDefault();
|
|
2765
2924
|
close && close();
|
|
2766
2925
|
}, children: jsx(ImgInner, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
|
|
@@ -2843,6 +3002,7 @@
|
|
|
2843
3002
|
ev?.preventDefault();
|
|
2844
3003
|
showLocationModal();
|
|
2845
3004
|
}, []);
|
|
3005
|
+
defaultEventBus.fire('setPageOverflowHidden', isShowLocationModal);
|
|
2846
3006
|
return (jsxs("div", { className: style('flex items-center', className), children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: handleShowLocationModal }), officesLink ? (jsx(TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "mr-5", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, isShowLocationModal ? (jsx(Location, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation, close: hideLocationModal })) : null] }));
|
|
2847
3007
|
});
|
|
2848
3008
|
|
|
@@ -2925,9 +3085,9 @@
|
|
|
2925
3085
|
'': '',
|
|
2926
3086
|
};
|
|
2927
3087
|
|
|
2928
|
-
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', ...rest }) => (jsx(BlockWrapper, { className: style('grid grid-cols-12', isPadding ? 'p-12' : '', gapStyles[gap], className), version: version, ...rest, children: renderChildren(rest) })));
|
|
3088
|
+
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('grid grid-cols-12', isPadding ? 'p-12' : '', gapStyles[gap], className), version: version, isTheme: isTheme, ...rest, children: renderChildren(rest) })));
|
|
2929
3089
|
HorizontalLayout.childrenTypes = {
|
|
2930
|
-
exclude: ['HorizontalLayout'],
|
|
3090
|
+
exclude: ['HorizontalLayout', 'Accordion', 'OtherProducts'],
|
|
2931
3091
|
};
|
|
2932
3092
|
|
|
2933
3093
|
const ImgBlock = JSX((props) => {
|
|
@@ -3592,7 +3752,7 @@
|
|
|
3592
3752
|
const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
3593
3753
|
const benefitsCount = benefits?.filter((_) => _.label)?.length;
|
|
3594
3754
|
const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
|
|
3595
|
-
return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left"
|
|
3755
|
+
return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits?.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
|
|
3596
3756
|
});
|
|
3597
3757
|
const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
|
|
3598
3758
|
? 'inline-grid grid-cols-[auto_auto_auto]'
|
|
@@ -4351,11 +4511,13 @@
|
|
|
4351
4511
|
center: 'items-center',
|
|
4352
4512
|
right: 'items-end',
|
|
4353
4513
|
};
|
|
4354
|
-
const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
|
|
4514
|
+
const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, options, ...rest }) => {
|
|
4355
4515
|
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
4356
|
-
return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
|
|
4516
|
+
return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, isTheme: isTheme, ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
|
|
4357
4517
|
});
|
|
4358
|
-
VerticalLayout.childrenTypes =
|
|
4518
|
+
VerticalLayout.childrenTypes = {
|
|
4519
|
+
exclude: ['Accordion', 'OtherProducts'],
|
|
4520
|
+
};
|
|
4359
4521
|
|
|
4360
4522
|
const MIN_COL_SPAN = 10;
|
|
4361
4523
|
const getPaddings = (className) => getColSpan(className) < MIN_COL_SPAN ? 'py-6 px-11' : 'py-12 px-32';
|
|
@@ -4523,6 +4685,7 @@
|
|
|
4523
4685
|
const ContentPage = JSX((props) => {
|
|
4524
4686
|
const { className = '', blocksRegistry, blockDecorator, data = {} } = props;
|
|
4525
4687
|
const { style: pageStyle, blocks, slots, likeControl, colorPalette = 'pc' } = data;
|
|
4688
|
+
const [overflowStyle, setOverflowStyle] = useState('');
|
|
4526
4689
|
const options = {
|
|
4527
4690
|
key: '',
|
|
4528
4691
|
page: data,
|
|
@@ -4531,7 +4694,10 @@
|
|
|
4531
4694
|
parent: data,
|
|
4532
4695
|
};
|
|
4533
4696
|
useBlockRouterProvider();
|
|
4534
|
-
|
|
4697
|
+
useEffect(() => defaultEventBus.subscribe('setPageOverflowHidden', (isHidden) => {
|
|
4698
|
+
setOverflowStyle(isHidden ? 'overflow-hidden h-screen' : '');
|
|
4699
|
+
}), []);
|
|
4700
|
+
return (jsxs("section", { className: style('relative', pageStyle, className, overflowStyle), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, {
|
|
4535
4701
|
...options,
|
|
4536
4702
|
slotName: 'header',
|
|
4537
4703
|
}) })) : null, jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderBlocksList(blocks, options), slots?.footer
|
|
@@ -4547,7 +4713,7 @@
|
|
|
4547
4713
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
4548
4714
|
}
|
|
4549
4715
|
|
|
4550
|
-
const packageVersion = "0.8.
|
|
4716
|
+
const packageVersion = "0.8.28";
|
|
4551
4717
|
|
|
4552
4718
|
exports.Blocks = Blocks;
|
|
4553
4719
|
exports.ContentPage = ContentPage;
|