@scrippsproduct/networks-ui-library 1.1.0-alpha.0 → 1.1.0-alpha.10
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/dist/Carousel.module-CNJzZW2-.mjs +14 -0
- package/dist/{ChoicesItem-CGIr6Qga.mjs → ChoicesItem-CT9fXB0I.mjs} +22 -23
- package/dist/PageHero.module-BM0IV1P5.mjs +8 -0
- package/dist/ResultsTable.module-1zxhXaem.mjs +14 -0
- package/dist/{SocialShareButton-BXGVUD-z.mjs → SocialShareButton-BMhRS9Qr.mjs} +12 -7
- package/dist/assets/ActionButton.css +1 -1
- package/dist/assets/AdBlock.css +1 -1
- package/dist/assets/AirDateFormatter.css +1 -1
- package/dist/assets/AnchorTag.css +1 -1
- package/dist/assets/BasicGridModule.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Carousel.css +1 -1
- package/dist/assets/CarouselSlide.css +1 -1
- package/dist/assets/ChannelSearch.css +1 -1
- package/dist/assets/ChoicesItem.css +1 -1
- package/dist/assets/ContentHero.css +1 -1
- package/dist/assets/CtaBlock.css +1 -1
- package/dist/assets/CustomDataList.css +1 -1
- package/dist/assets/DateNavigation.css +1 -1
- package/dist/assets/DeviceAndPlatformLists.css +1 -1
- package/dist/assets/Figure.css +1 -1
- package/dist/assets/Figure2.css +1 -1
- package/dist/assets/FindUs.css +1 -1
- package/dist/assets/GradientButton.css +1 -1
- package/dist/assets/ImageCard.css +1 -1
- package/dist/assets/InlineNavigation.css +1 -1
- package/dist/assets/LogoListItem.css +1 -1
- package/dist/assets/ModalContainer.css +1 -1
- package/dist/assets/PageHero.css +1 -1
- package/dist/assets/ProgramAirdate.css +1 -1
- package/dist/assets/PromotionBlock.css +1 -1
- package/dist/assets/ResultsTable.css +1 -1
- package/dist/assets/ScheduleLayout.css +1 -0
- package/dist/assets/ScheduleList.css +1 -1
- package/dist/assets/ShowAboutLayout.css +1 -1
- package/dist/assets/ShowSlide.css +1 -1
- package/dist/assets/SocialLinks.css +1 -1
- package/dist/assets/TextSlide.css +1 -1
- package/dist/assets/TwoColumnSlide.css +1 -1
- package/dist/assets/UpcomingList.css +1 -1
- package/dist/components/ActionButton/ActionButton.d.ts +20 -1
- package/dist/components/ActionButton/ActionButton.js +36 -36
- package/dist/components/ActionButton/index.d.ts +2 -1
- package/dist/components/AdBlock/AdBlock.d.ts +20 -1
- package/dist/components/AdBlock/AdBlock.js +118 -83
- package/dist/components/AdBlock/index.d.ts +2 -1
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -1
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +17 -12
- package/dist/components/AdjustableTwoColumnGrid/index.d.ts +2 -1
- package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -4
- package/dist/components/AirDateFormatter/AirDateFormatter.js +21 -22
- package/dist/components/AirDateFormatter/index.d.ts +2 -1
- package/dist/components/AnchorTag/AnchorTag.d.ts +10 -1
- package/dist/components/AnchorTag/AnchorTag.js +22 -23
- package/dist/components/AnchorTag/index.d.ts +2 -1
- package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +19 -12
- package/dist/components/BCVideoPlayer/BCVideoPlayer.js +39 -37
- package/dist/components/BCVideoPlayer/index.d.ts +2 -1
- package/dist/components/BasicGridModule/BasicGridModule.d.ts +19 -17
- package/dist/components/BasicGridModule/BasicGridModule.js +57 -51
- package/dist/components/BasicGridModule/index.d.ts +2 -1
- package/dist/components/Button/Button.d.ts +18 -17
- package/dist/components/Button/Button.js +31 -32
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +5 -5
- package/dist/components/ButtonAnchor/ButtonAnchor.js +7 -5
- package/dist/components/ButtonAnchor/index.d.ts +2 -1
- package/dist/components/Carousel/Carousel.d.ts +7 -24
- package/dist/components/Carousel/Carousel.js +113 -113
- package/dist/components/Carousel/CarouselUtils.class.d.ts +16 -28
- package/dist/components/Carousel/CarouselUtils.class.js +85 -55
- package/dist/components/Carousel/index.d.ts +2 -1
- package/dist/components/Carousel/navigations/Pagination.js +12 -10
- package/dist/components/CarouselSlide/CarouselSlide.d.ts +8 -6
- package/dist/components/CarouselSlide/CarouselSlide.js +25 -23
- package/dist/components/CarouselSlide/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +1 -1
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +3 -4
- package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +2 -2
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +10 -11
- package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +1 -1
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +3 -4
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +18 -16
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +49 -34
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +2 -2
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +11 -12
- package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -4
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +10 -11
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +8 -1
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +19 -15
- package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +16 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.js +31 -21
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -16
- package/dist/components/ChannelSearch/ChannelSearch.js +80 -63
- package/dist/components/ChannelSearch/index.d.ts +2 -1
- package/dist/components/ChoicesItem/ChoicesItem.d.ts +7 -4
- package/dist/components/ChoicesItem/ChoicesItem.js +3 -4
- package/dist/components/ChoicesItem/index.d.ts +2 -1
- package/dist/components/ChoicesItem/index.js +1 -1
- package/dist/components/ChoicesList/ChoicesList.d.ts +4 -3
- package/dist/components/ChoicesList/ChoicesList.js +3 -4
- package/dist/components/ChoicesList/index.d.ts +2 -1
- package/dist/components/Concat/Concat.d.ts +4 -3
- package/dist/components/Concat/Concat.js +5 -5
- package/dist/components/Concat/index.d.ts +2 -1
- package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +7 -5
- package/dist/components/CreateChoiceList/CreateChoiceList.js +38 -9
- package/dist/components/CreateChoiceList/index.d.ts +2 -1
- package/dist/components/CtaBlock/CtaBlock.d.ts +13 -15
- package/dist/components/CtaBlock/CtaBlock.js +23 -22
- package/dist/components/CtaBlock/index.d.ts +2 -1
- package/dist/components/CustomDataList/CustomDataList.d.ts +12 -10
- package/dist/components/CustomDataList/CustomDataList.js +200 -174
- package/dist/components/CustomDataList/index.d.ts +2 -1
- package/dist/components/CustomSelect/CustomSelect.d.ts +16 -13
- package/dist/components/CustomSelect/CustomSelect.js +224 -154
- package/dist/components/CustomSelect/index.d.ts +2 -1
- package/dist/components/DateNavigation/DateNavigation.d.ts +1 -4
- package/dist/components/DateNavigation/DateNavigation.js +125 -82
- package/dist/components/DateNavigation/index.d.ts +2 -1
- package/dist/components/DatePicker/index.d.ts +2 -1
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +14 -4
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +40 -33
- package/dist/components/DeviceAndPlatformLists/index.d.ts +2 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +21 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.js +75 -56
- package/dist/components/DrawerNavigation/index.d.ts +2 -1
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -5
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +18 -14
- package/dist/components/EqualSizeFlexRow/index.d.ts +2 -1
- package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -6
- package/dist/components/EqualSizeGrid/EqualSizeGrid.js +17 -12
- package/dist/components/EqualSizeGrid/index.d.ts +2 -1
- package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -4
- package/dist/components/ErrorHandler/ErrorHandler.js +3 -4
- package/dist/components/ErrorHandler/index.d.ts +2 -1
- package/dist/components/FeaturedList/FeaturedList.d.ts +8 -6
- package/dist/components/FeaturedList/FeaturedList.js +44 -36
- package/dist/components/FeaturedList/index.d.ts +2 -1
- package/dist/components/Figure/Figure.d.ts +5 -4
- package/dist/components/Figure/Figure.js +8 -9
- package/dist/components/Figure/index.d.ts +2 -1
- package/dist/components/FindUs/FindUs.d.ts +24 -1
- package/dist/components/FindUs/FindUs.js +70 -63
- package/dist/components/FindUs/index.d.ts +2 -1
- package/dist/components/FooterNavigation/FooterNavigation.d.ts +9 -3
- package/dist/components/FooterNavigation/FooterNavigation.js +10 -11
- package/dist/components/FooterNavigation/index.d.ts +2 -1
- package/dist/components/GenericList/GenericList.d.ts +6 -5
- package/dist/components/GenericList/GenericList.js +13 -14
- package/dist/components/GenericList/index.d.ts +2 -1
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -8
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +46 -30
- package/dist/components/GetAirdateWrapper/index.d.ts +2 -1
- package/dist/components/GradientButton/GradientButton.d.ts +15 -14
- package/dist/components/GradientButton/GradientButton.js +37 -40
- package/dist/components/GradientButton/index.d.ts +2 -1
- package/dist/components/GridList/GridList.d.ts +6 -5
- package/dist/components/GridList/GridList.js +14 -10
- package/dist/components/GridList/index.d.ts +2 -1
- package/dist/components/ImageCard/ImageCard.d.ts +27 -1
- package/dist/components/ImageCard/ImageCard.js +59 -58
- package/dist/components/ImageCard/ImageCardCore.d.ts +6 -2
- package/dist/components/ImageCard/ImageCardCore.js +115 -89
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +11 -14
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +25 -18
- package/dist/components/InfoPanel/InfoPanel.d.ts +10 -8
- package/dist/components/InfoPanel/InfoPanel.js +2 -2
- package/dist/components/InfoPanel/index.d.ts +2 -1
- package/dist/components/InlineNavigation/InlineNavigation.d.ts +7 -5
- package/dist/components/InlineNavigation/InlineNavigation.js +13 -10
- package/dist/components/Input/Input.d.ts +10 -9
- package/dist/components/Input/Input.js +47 -40
- package/dist/components/Input/index.d.ts +2 -1
- package/dist/components/InstructionsList/InstructionsList.d.ts +5 -4
- package/dist/components/InstructionsList/InstructionsList.js +20 -10
- package/dist/components/InstructionsList/index.d.ts +2 -1
- package/dist/components/Loading/Loading.d.ts +8 -7
- package/dist/components/Loading/Loading.js +25 -20
- package/dist/components/Loading/index.d.ts +2 -1
- package/dist/components/LoadingV2/LoadingV2.d.ts +7 -6
- package/dist/components/LoadingV2/LoadingV2.js +31 -21
- package/dist/components/LoadingV2/index.d.ts +2 -1
- package/dist/components/LogoListItem/LogoListItem.d.ts +7 -6
- package/dist/components/LogoListItem/LogoListItem.js +34 -17
- package/dist/components/LogoListItem/index.d.ts +2 -1
- package/dist/components/LogoNavigation/LogoNavigation.d.ts +13 -4
- package/dist/components/LogoNavigation/LogoNavigation.js +23 -18
- package/dist/components/LogoNavigation/index.d.ts +2 -1
- package/dist/components/ModalContainer/ModalContainer.d.ts +8 -8
- package/dist/components/ModalContainer/ModalContainer.js +84 -72
- package/dist/components/ModalContainer/index.d.ts +2 -1
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -5
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +13 -10
- package/dist/components/MultiLayeredFigure/index.d.ts +2 -1
- package/dist/components/NavList/NavList.d.ts +9 -7
- package/dist/components/NavList/NavList.js +56 -20
- package/dist/components/NavList/index.d.ts +2 -1
- package/dist/components/Overlay/Overlay.d.ts +5 -5
- package/dist/components/Overlay/Overlay.js +8 -5
- package/dist/components/PageHero/PageHero.d.ts +6 -5
- package/dist/components/PageHero/PageHero.js +29 -16
- package/dist/components/PageHero/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +2 -13
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +17 -10
- package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +7 -5
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +108 -42
- package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +2 -12
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +13 -7
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/page-hero.d.js +1 -0
- package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +14 -10
- package/dist/components/ProgramAirdate/ProgramAirdate.js +72 -67
- package/dist/components/ProgramAirdate/index.d.ts +2 -1
- package/dist/components/PromotionBlock/PromotionBlock.d.ts +11 -4
- package/dist/components/PromotionBlock/PromotionBlock.js +36 -26
- package/dist/components/PromotionBlock/index.d.ts +2 -1
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -4
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +8 -6
- package/dist/components/PromotionsRowBlock/index.d.ts +2 -1
- package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +25 -5
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +48 -48
- package/dist/components/PromotionsRowModule/index.d.ts +2 -1
- package/dist/components/RescanInstructions/RescanInstructions.d.ts +3 -3
- package/dist/components/RescanInstructions/RescanInstructions.js +29 -18
- package/dist/components/RescanInstructions/index.d.ts +2 -1
- package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +13 -12
- package/dist/components/ResponsiveImage/ResponsiveImage.js +16 -20
- package/dist/components/ResponsiveImage/index.d.ts +2 -1
- package/dist/components/ResultsTable/ResultsTable.d.ts +10 -6
- package/dist/components/ResultsTable/ResultsTable.js +21 -16
- package/dist/components/ResultsTable/index.d.ts +2 -1
- package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +9 -5
- package/dist/components/ResultsTableBody/ResultsTableBody.js +21 -16
- package/dist/components/ResultsTableBody/index.d.ts +2 -1
- package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +7 -3
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +4 -5
- package/dist/components/ResultsTableHeader/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/ScheduleContext.d.ts +27 -0
- package/dist/components/ScheduleLayout/ScheduleContext.js +1931 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +16 -5
- package/dist/components/ScheduleLayout/ScheduleLayout.js +98 -24
- package/dist/components/ScheduleLayout/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/useScheduleContext.d.ts +15 -0
- package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
- package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
- package/dist/components/ScheduleList/ScheduleList.js +162 -60
- package/dist/components/ScheduleList/index.d.ts +2 -1
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +6 -4
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +28 -17
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +46 -34
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +48 -32
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +46 -34
- package/dist/components/SectionedContent/SectionedContent.d.ts +11 -3
- package/dist/components/SectionedContent/SectionedContent.js +14 -15
- package/dist/components/SectionedContent/index.d.ts +2 -1
- package/dist/components/Select/Select.d.ts +15 -11
- package/dist/components/Select/Select.js +21 -21
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +10 -8
- package/dist/components/ShowAboutContent/ShowAboutContent.js +27 -28
- package/dist/components/ShowAboutContent/index.d.ts +2 -1
- package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +10 -8
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +91 -42
- package/dist/components/ShowAboutLayout/index.d.ts +2 -1
- package/dist/components/SocialLinks/SocialLinks.d.ts +15 -9
- package/dist/components/SocialLinks/SocialLinks.js +192 -138
- package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -8
- package/dist/components/SocialShareBlock/SocialShareBlock.js +20 -22
- package/dist/components/SocialShareBlock/index.d.ts +2 -1
- package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -7
- package/dist/components/SocialShareButton/SocialShareButton.js +3 -4
- package/dist/components/SocialShareButton/index.d.ts +2 -1
- package/dist/components/SocialShareButton/index.js +1 -1
- package/dist/components/StringList/StringList.d.ts +6 -5
- package/dist/components/StringList/StringList.js +16 -12
- package/dist/components/StringList/index.d.ts +2 -1
- package/dist/components/TabContent/TabContent.d.ts +5 -4
- package/dist/components/TabContent/TabContent.js +9 -7
- package/dist/components/TabContent/index.d.ts +2 -1
- package/dist/components/TabNavigation/TabNavigation.d.ts +7 -5
- package/dist/components/TabNavigation/TabNavigation.js +58 -53
- package/dist/components/TabNavigation/index.d.ts +2 -1
- package/dist/components/TabbedContent/TabbedContent.d.ts +20 -4
- package/dist/components/TabbedContent/TabbedContent.js +24 -8
- package/dist/components/TabbedContent/index.d.ts +2 -1
- package/dist/components/TextArea/TextArea.d.ts +9 -1
- package/dist/components/TextArea/TextArea.js +13 -13
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/UpcomingList/UpcomingList.d.ts +5 -4
- package/dist/components/UpcomingList/UpcomingList.js +55 -41
- package/dist/containers/GetFeatruedListContainer.d.ts +22 -15
- package/dist/containers/GetFeatruedListContainer.js +16 -16
- package/dist/containers/NowPlayingContainer.d.ts +17 -15
- package/dist/containers/NowPlayingContainer.js +18 -16
- package/dist/custom-elements.d.js +1 -0
- package/dist/data-resources/FakeDataResource.d.ts +77 -68
- package/dist/data-resources/FakeDataResource.js +244 -142
- package/dist/error-boundries/BlankErrorBoundry.d.ts +14 -9
- package/dist/error-boundries/BlankErrorBoundry.js +5 -5
- package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -10
- package/dist/error-boundries/GeneralErrorBoundry.js +10 -10
- package/dist/hooks/{useGetSchedule.d.ts → getSchedule.d.ts} +12 -4
- package/dist/hooks/getSchedule.js +62 -0
- package/dist/hooks/useGetUpcoming.d.ts +8 -6
- package/dist/hooks/useGetUpcoming.js +22 -25
- package/dist/icons/Facebook.js +6 -6
- package/dist/icons/Tiktok.js +15 -7
- package/dist/icons/Twitter.js +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +35 -33
- package/dist/logger-C0N7U0YY.mjs +67 -0
- package/dist/settings.d.ts +4 -3
- package/dist/settings.js +6 -5
- package/dist/types.d.js +27 -0
- package/dist/utils/Redirect.d.ts +2 -2
- package/dist/utils/analytics.js +1 -1
- package/dist/utils/date-helpers.d.ts +3 -2
- package/dist/utils/date-helpers.js +26 -26
- package/dist/utils/events.js +8 -6
- package/dist/utils/getFeaturedList.d.ts +28 -8
- package/dist/utils/getFeaturedList.js +58 -45
- package/dist/utils/getFeaturedListImages.d.ts +15 -5
- package/dist/utils/getFeaturedListImages.js +27 -16
- package/dist/utils/getOnNowProgram.d.ts +17 -3
- package/dist/utils/getOnNowProgram.js +106 -68
- package/dist/utils/getSchedule.d.ts +8 -6
- package/dist/utils/getSchedule.js +6 -1
- package/dist/utils/getUpcomingPrograms.d.ts +10 -7
- package/dist/utils/getUpcomingPrograms.js +5 -4
- package/dist/utils/getViewingPlatforms.d.ts +6 -16
- package/dist/utils/getViewingPlatforms.js +14 -11
- package/dist/utils/gtm.js +1 -1
- package/dist/utils/helpers.d.ts +9 -9
- package/dist/utils/helpers.js +69 -65
- package/dist/utils/program-helpers.d.ts +14 -20
- package/dist/utils/program-helpers.js +9 -8
- package/dist/utils/series-helpers.d.ts +14 -20
- package/dist/utils/series-helpers.js +9 -8
- package/package.json +23 -13
- package/dist/Carousel.module-DOrBKQEQ.mjs +0 -14
- package/dist/PageHero.module-BdV8z_Xv.mjs +0 -8
- package/dist/ResultsTable.module-B7M9y7hd.mjs +0 -14
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +0 -34
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +0 -105
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +0 -28
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +0 -42
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +0 -170
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +0 -193
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +0 -19
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +0 -35
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +0 -17
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +0 -49
- package/dist/facebook-HCcA1M1m.mjs +0 -54
- package/dist/hooks/useGetSchedule.js +0 -58
|
@@ -1,52 +1,51 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import { p as Q } from "../../index-VjANCDXC.mjs";
|
|
2
|
+
import { p as X } from "../../index-VjANCDXC.mjs";
|
|
4
3
|
import { classes as d } from "../../utils/helpers.js";
|
|
5
|
-
import { Concat as
|
|
6
|
-
import { CtaBlock as
|
|
7
|
-
import { StringList as
|
|
8
|
-
import { s as
|
|
9
|
-
import { f as
|
|
4
|
+
import { Concat as Z } from "../Concat/Concat.js";
|
|
5
|
+
import { CtaBlock as Y } from "../CtaBlock/CtaBlock.js";
|
|
6
|
+
import { StringList as S } from "../StringList/StringList.js";
|
|
7
|
+
import { s as L } from "../../sub-CoUmnfhv.mjs";
|
|
8
|
+
import { f as p } from "../../format-YhWt2D8M.mjs";
|
|
10
9
|
import '../../assets/ProgramAirdate.css';const i = {
|
|
11
|
-
"program-airdate": "_program-
|
|
12
|
-
"program-airdate__descriptor": "_program-
|
|
13
|
-
"program-airdate__logo": "_program-
|
|
14
|
-
"program-airdate--missing-logo": "_program-airdate--missing-
|
|
10
|
+
"program-airdate": "_program-airdate_ozunj_1",
|
|
11
|
+
"program-airdate__descriptor": "_program-airdate__descriptor_ozunj_5",
|
|
12
|
+
"program-airdate__logo": "_program-airdate__logo_ozunj_11",
|
|
13
|
+
"program-airdate--missing-logo": "_program-airdate--missing-logo_ozunj_30"
|
|
15
14
|
};
|
|
16
|
-
function
|
|
17
|
-
brand:
|
|
15
|
+
function ne({
|
|
16
|
+
brand: _ = "",
|
|
18
17
|
program: e,
|
|
19
|
-
type:
|
|
18
|
+
type: m = "on-now",
|
|
20
19
|
buttonStyle: c = "flat",
|
|
21
20
|
// flat or gradient
|
|
22
21
|
logoStyle: s = "gradient",
|
|
23
22
|
// gradient or anything else that's not gradient
|
|
24
|
-
useLogo:
|
|
25
|
-
useSeriesColors:
|
|
26
|
-
href:
|
|
23
|
+
useLogo: a = !0,
|
|
24
|
+
useSeriesColors: l = !0,
|
|
25
|
+
href: u = ""
|
|
27
26
|
}) {
|
|
28
|
-
var v,
|
|
29
|
-
const
|
|
27
|
+
var y, v, k, $, C, N, w, j, E, H, z, F, G, M, x, B, I, P, T, A, D, W, q, J, K, O, Q, R, U, V;
|
|
28
|
+
const b = /* @__PURE__ */ new Map([
|
|
30
29
|
["on-now", "Now Playing on "],
|
|
31
30
|
["on-tomorrow", "Playing Tomorrow on "],
|
|
32
31
|
["upcoming", "Coming Soon on "]
|
|
33
|
-
]), r = e != null && e.airdate ? new Date(e.airdate.replace(" ", "T")) : null,
|
|
34
|
-
if ((e == null ? void 0 : e.program_class) === "Episode") {
|
|
32
|
+
]), r = e != null && e.airdate ? new Date(e.airdate.replace(" ", "T")) : null, f = r ? L(r, { hours: 1 }) : null, g = r ? r.getMinutes() === 0 ? "" : p(r, ":mm") : null, h = r && f ? `${p(r, "h")}${g}${Number.parseInt(p(r, "H"), 10) < 12 ? "a" : ""}/${p(f, "h")}${g}c` : "";
|
|
33
|
+
if ((e == null ? void 0 : e.program_class) === "Episode" && e.episode) {
|
|
35
34
|
let t;
|
|
36
35
|
return e.episode.season === null && e.episode.number === null ? t = null : e.episode.season === null || e.episode.number === null ? e.episode.season === null ? t = `E${e.episode.number}` : t = `S${e.episode.season}` : t = `S${e.episode.season} E${e.episode.number}`, /* @__PURE__ */ n(
|
|
37
36
|
"div",
|
|
38
37
|
{
|
|
39
38
|
className: d([i["program-airdate"], "program-airdate"]),
|
|
40
39
|
style: {
|
|
41
|
-
"--pa-logo-image": s === "gradient" &&
|
|
42
|
-
"--pa-gradient": s === "gradient" &&
|
|
43
|
-
"--pa-logo-aspect-ratio":
|
|
40
|
+
"--pa-logo-image": s === "gradient" && a ? `url("${(k = (v = (y = e.episode.series) == null ? void 0 : y.logo) == null ? void 0 : v.black) == null ? void 0 : k.url}")` : null,
|
|
41
|
+
"--pa-gradient": s === "gradient" && a ? `linear-gradient(to bottom, ${e.episode.series.primary_color} 0%, ${e.episode.series.secondary_color} 100%)` : null,
|
|
42
|
+
"--pa-logo-aspect-ratio": a && e.episode.series.logo ? e.episode.series.logo.aspect_ratio : null,
|
|
44
43
|
"--pa-color": e.episode.series.secondary_color
|
|
45
44
|
},
|
|
46
45
|
children: [
|
|
47
46
|
/* @__PURE__ */ n("div", { className: i["program-airdate__descriptor"], children: [
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
b.get(m),
|
|
48
|
+
_
|
|
50
49
|
] }),
|
|
51
50
|
/* @__PURE__ */ n(
|
|
52
51
|
"div",
|
|
@@ -54,50 +53,55 @@ function re({
|
|
|
54
53
|
className: d([
|
|
55
54
|
i["program-airdate__logo"],
|
|
56
55
|
"program-airdate__logo",
|
|
57
|
-
(N = (C = (
|
|
56
|
+
(N = (C = ($ = e.episode.series) == null ? void 0 : $.logo) == null ? void 0 : C.black) != null && N.url ? "" : i["program-airdate--missing-logo"]
|
|
58
57
|
]),
|
|
59
58
|
"data-style": s,
|
|
60
59
|
style: {
|
|
61
|
-
maskImage: (E = (
|
|
62
|
-
WebkitMaskImage: (
|
|
60
|
+
maskImage: (E = (j = (w = e.episode.series) == null ? void 0 : w.logo) == null ? void 0 : j.black) != null && E.url && s === "gradient" && a ? `url('${(F = (z = (H = e.episode.series) == null ? void 0 : H.logo) == null ? void 0 : z.black) == null ? void 0 : F.url}')` : null,
|
|
61
|
+
WebkitMaskImage: (x = (M = (G = e.episode.series) == null ? void 0 : G.logo) == null ? void 0 : M.black) != null && x.url && s === "gradient" && a ? `url('${(P = (I = (B = e.episode.series) == null ? void 0 : B.logo) == null ? void 0 : I.black) == null ? void 0 : P.url}')` : null
|
|
63
62
|
},
|
|
64
63
|
children: [
|
|
65
|
-
(D = (A = (
|
|
66
|
-
s !== "gradient" && ((
|
|
64
|
+
(D = (A = (T = e.episode.series) == null ? void 0 : T.logo) == null ? void 0 : A.black) != null && D.url && a ? /* @__PURE__ */ o("span", { className: "sr-only", children: ((W = e.episode.series) == null ? void 0 : W.name).replace(/<br\s*\/?>/i, " ") }) : /* @__PURE__ */ o("span", { children: X((q = e.episode.series) == null ? void 0 : q.name) }),
|
|
65
|
+
s !== "gradient" && ((O = (K = (J = e.episode.series) == null ? void 0 : J.logo) == null ? void 0 : K.black) == null ? void 0 : O.url) && a && /* @__PURE__ */ o(
|
|
67
66
|
"img",
|
|
68
67
|
{
|
|
68
|
+
alt: ((Q = e.episode.series) == null ? void 0 : Q.name).replace(/<br\s*\/?>/i, " "),
|
|
69
69
|
className: d([i["program-airdate__logo-image"], "program-airdate__logo-image"]),
|
|
70
|
-
src: (
|
|
71
|
-
alt: e.episode.series.name.replace(/<br\s*\/?>/i, " ")
|
|
70
|
+
src: (V = (U = (R = e.episode.series) == null ? void 0 : R.logo) == null ? void 0 : U.black) == null ? void 0 : V.url
|
|
72
71
|
}
|
|
73
72
|
)
|
|
74
73
|
]
|
|
75
74
|
}
|
|
76
75
|
),
|
|
77
76
|
/* @__PURE__ */ o(
|
|
78
|
-
|
|
77
|
+
Y,
|
|
79
78
|
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
btnFlatColors: {
|
|
80
|
+
bgColor: l ? e.episode.series.primary_color : "var(--theme-color-400)",
|
|
81
|
+
bgHoverColor: l ? e.episode.series.secondary_color : "var(--mono-color-300)",
|
|
82
|
+
color: "#fff",
|
|
83
|
+
hoverColor: "#fff",
|
|
84
|
+
borderColor: l ? e.episode.series.primary_color : "var(--theme-color-400)",
|
|
85
|
+
borderHoverColor: l ? e.episode.series.secondary_color : "var(--mono-color-300)"
|
|
86
|
+
},
|
|
87
|
+
btnGradientEndColor: c === "gradient" ? l ? e.episode.series.primary_color : "var(--theme-color-300)" : "",
|
|
88
|
+
btnGradientStartColor: c === "gradient" ? l ? e.episode.series.secondary_color : "var(--theme-color-400)" : "",
|
|
89
|
+
content: /* @__PURE__ */ o(
|
|
90
|
+
Z,
|
|
91
|
+
{
|
|
92
|
+
list: [
|
|
93
|
+
`<strong>${h}</strong><br/>`,
|
|
94
|
+
/* @__PURE__ */ o(S, { list: [t, e.episode.name], separatorType: "pipe" })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
),
|
|
85
98
|
cta: {
|
|
86
99
|
label: "Full Schedule",
|
|
87
|
-
href:
|
|
100
|
+
href: u,
|
|
101
|
+
type: "internal-link"
|
|
88
102
|
},
|
|
89
103
|
ctaButtonStyle: c,
|
|
90
|
-
|
|
91
|
-
btnGradientEndColor: c === "gradient" ? a ? e.episode.series.primary_color : "var(--theme-color-300)" : "",
|
|
92
|
-
btnFlatColors: {
|
|
93
|
-
bgColor: a ? e.episode.series.primary_color : "var(--theme-color-400)",
|
|
94
|
-
// when ready use color function for hover colors: hsl(from var(--theme-color-400) h s calc(l + 0.1))
|
|
95
|
-
bgHoverColor: a ? e.episode.series.secondary_color : "var(--mono-color-300)",
|
|
96
|
-
color: "#fff",
|
|
97
|
-
hoverColor: "#fff",
|
|
98
|
-
borderColor: a ? e.episode.series.primary_color : "var(--theme-color-400)",
|
|
99
|
-
borderHoverColor: a ? e.episode.series.secondary_color : "var(--mono-color-300)"
|
|
100
|
-
}
|
|
104
|
+
type: "internal-link"
|
|
101
105
|
}
|
|
102
106
|
)
|
|
103
107
|
]
|
|
@@ -106,8 +110,8 @@ function re({
|
|
|
106
110
|
} else
|
|
107
111
|
return /* @__PURE__ */ n("div", { className: d([i["program-airdate"], "program-airdate"]), children: [
|
|
108
112
|
/* @__PURE__ */ n("div", { className: i["program-airdate__descriptor"], children: [
|
|
109
|
-
|
|
110
|
-
|
|
113
|
+
b.get(m),
|
|
114
|
+
_
|
|
111
115
|
] }),
|
|
112
116
|
/* @__PURE__ */ o(
|
|
113
117
|
"div",
|
|
@@ -118,21 +122,12 @@ function re({
|
|
|
118
122
|
i["program-airdate--missing-logo"]
|
|
119
123
|
]),
|
|
120
124
|
"data-style": s,
|
|
121
|
-
children: /* @__PURE__ */ o("span", { children:
|
|
125
|
+
children: /* @__PURE__ */ o("span", { children: X(e.name) })
|
|
122
126
|
}
|
|
123
127
|
),
|
|
124
128
|
/* @__PURE__ */ o(
|
|
125
|
-
|
|
129
|
+
Y,
|
|
126
130
|
{
|
|
127
|
-
content: `<strong>${h}</strong>`,
|
|
128
|
-
type: "internal-link",
|
|
129
|
-
cta: {
|
|
130
|
-
label: "Full Schedule",
|
|
131
|
-
href: b
|
|
132
|
-
},
|
|
133
|
-
ctaButtonStyle: c,
|
|
134
|
-
btnGradientStartColor: "",
|
|
135
|
-
btnGradientEndColor: "",
|
|
136
131
|
btnFlatColors: {
|
|
137
132
|
bgColor: e.primary_color,
|
|
138
133
|
bgHoverColor: e.secondary_color,
|
|
@@ -140,12 +135,22 @@ function re({
|
|
|
140
135
|
hoverColor: "#fff",
|
|
141
136
|
borderColor: e.primary_color,
|
|
142
137
|
borderHoverColor: e.secondary_color
|
|
143
|
-
}
|
|
138
|
+
},
|
|
139
|
+
btnGradientEndColor: "",
|
|
140
|
+
btnGradientStartColor: "",
|
|
141
|
+
content: `<strong>${h}</strong>`,
|
|
142
|
+
cta: {
|
|
143
|
+
label: "Full Schedule",
|
|
144
|
+
href: u,
|
|
145
|
+
type: "internal-link"
|
|
146
|
+
},
|
|
147
|
+
ctaButtonStyle: c,
|
|
148
|
+
type: "internal-link"
|
|
144
149
|
}
|
|
145
150
|
)
|
|
146
151
|
] });
|
|
147
152
|
}
|
|
148
153
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
ne as ProgramAirdate,
|
|
155
|
+
ne as default
|
|
151
156
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { ProgramAirdate
|
|
1
|
+
export { ProgramAirdate } from './ProgramAirdate';
|
|
2
|
+
export { ProgramAirdate as default } from './ProgramAirdate';
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Image } from '../../types.d.ts';
|
|
2
|
+
type PromotionBlockProps = {
|
|
3
|
+
image: Image;
|
|
4
|
+
promo: {
|
|
5
|
+
header: string;
|
|
6
|
+
description: string;
|
|
7
|
+
linkText: string;
|
|
8
|
+
href: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare function PromotionBlock({ image, promo }: PromotionBlockProps): JSX.Element;
|
|
5
12
|
export default PromotionBlock;
|
|
@@ -1,43 +1,53 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as _, useEffect as d } from "react";
|
|
3
3
|
import '../../assets/PromotionBlock.css';const o = {
|
|
4
|
-
"promo-image": "_promo-
|
|
5
|
-
"promo-image__text": "_promo-
|
|
6
|
-
"promo-copy": "_promo-
|
|
7
|
-
"promo-image--animate": "_promo-image--
|
|
8
|
-
"promo-copy--animate": "_promo-copy--
|
|
9
|
-
"promo-copy__header": "_promo-
|
|
10
|
-
"promo-copy__description": "_promo-
|
|
11
|
-
"promo-copy__link": "_promo-
|
|
4
|
+
"promo-image": "_promo-image_1hym6_12",
|
|
5
|
+
"promo-image__text": "_promo-image__text_1hym6_33",
|
|
6
|
+
"promo-copy": "_promo-copy_1hym6_38",
|
|
7
|
+
"promo-image--animate": "_promo-image--animate_1hym6_44",
|
|
8
|
+
"promo-copy--animate": "_promo-copy--animate_1hym6_51",
|
|
9
|
+
"promo-copy__header": "_promo-copy__header_1hym6_59",
|
|
10
|
+
"promo-copy__description": "_promo-copy__description_1hym6_64",
|
|
11
|
+
"promo-copy__link": "_promo-copy__link_1hym6_65"
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
function g({ image: n, promo: e }) {
|
|
14
|
+
const a = _(null), m = _(null), s = (t, l) => {
|
|
15
|
+
const i = a.current, p = m.current;
|
|
16
|
+
!i || !p || t.forEach((h) => {
|
|
17
|
+
h.isIntersecting && (i.classList.add(`${o["promo-copy--animate"]}`), p.classList.add(`${o["promo-image--animate"]}`), m.current && l.unobserve(m.current));
|
|
17
18
|
});
|
|
18
19
|
};
|
|
19
|
-
return
|
|
20
|
-
const t = new IntersectionObserver(
|
|
20
|
+
return d(() => {
|
|
21
|
+
const t = new IntersectionObserver(s, {
|
|
21
22
|
root: null,
|
|
22
23
|
rootMargin: "0px",
|
|
23
24
|
threshold: 0.1
|
|
24
25
|
});
|
|
25
|
-
return t.observe(
|
|
26
|
+
return t.observe(m.current), () => {
|
|
26
27
|
t.disconnect();
|
|
27
28
|
};
|
|
28
29
|
}, []), /* @__PURE__ */ c("promotion-block", { children: [
|
|
29
|
-
/* @__PURE__ */ c("div", { className: o["promo-image"], ref:
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ c("div", { className: o["promo-image"], ref: m, children: [
|
|
31
|
+
/* @__PURE__ */ r("span", { className: o["promo-image__text"], children: n.text }),
|
|
32
|
+
/* @__PURE__ */ r("promo-image", { children: /* @__PURE__ */ r("a", { href: e.href, rel: "noreferrer", target: "_blank", children: /* @__PURE__ */ r("img", { alt: n.altText, src: n.url }) }) })
|
|
32
33
|
] }),
|
|
33
|
-
/* @__PURE__ */ c("div", { className: o["promo-copy"], ref:
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ c("div", { className: o["promo-copy"], ref: a, children: [
|
|
35
|
+
/* @__PURE__ */ r("h4", { className: o["promo-copy__header"], children: e.header }),
|
|
36
|
+
/* @__PURE__ */ r("p", { className: o["promo-copy__description"], children: e.description }),
|
|
37
|
+
/* @__PURE__ */ r(
|
|
38
|
+
"a",
|
|
39
|
+
{
|
|
40
|
+
className: o["promo-copy__link"],
|
|
41
|
+
href: e.href,
|
|
42
|
+
rel: "noreferrer",
|
|
43
|
+
target: "_blank",
|
|
44
|
+
children: e.linkText
|
|
45
|
+
}
|
|
46
|
+
)
|
|
37
47
|
] })
|
|
38
48
|
] });
|
|
39
49
|
}
|
|
40
50
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
51
|
+
g as PromotionBlock,
|
|
52
|
+
g as default
|
|
43
53
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { PromotionBlock
|
|
1
|
+
export { PromotionBlock } from './PromotionBlock';
|
|
2
|
+
export { PromotionBlock as default } from './PromotionBlock';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
children:
|
|
3
|
-
gap?: string
|
|
4
|
-
}
|
|
1
|
+
type PromotionsRowBlockProps = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
gap?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function PromotionsRowBlock({ children, gap, }: PromotionsRowBlockProps): JSX.Element;
|
|
5
6
|
export default PromotionsRowBlock;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { EqualSizeFlexRow as e } from "../EqualSizeFlexRow/EqualSizeFlexRow.js";
|
|
3
|
+
function l({
|
|
4
|
+
children: r,
|
|
5
|
+
gap: t = "1.5rem"
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ o("promotions-row-block", { children: /* @__PURE__ */ o(e, { gap: t, children: r }) });
|
|
6
8
|
}
|
|
7
9
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
l as PromotionsRowBlock,
|
|
11
|
+
l as default
|
|
10
12
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { PromotionsRowBlock
|
|
1
|
+
export { PromotionsRowBlock } from './PromotionsRowBlock';
|
|
2
|
+
export { PromotionsRowBlock as default } from './PromotionsRowBlock';
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { HandleClicksDetails, Image, CTA } from '../../types';
|
|
2
|
+
type Promo = {
|
|
3
|
+
id: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
image: Image;
|
|
7
|
+
overlayContent?: {
|
|
8
|
+
title?: string;
|
|
9
|
+
content?: string | JSX.Element;
|
|
10
|
+
cta?: CTA;
|
|
11
|
+
titleImageUrl?: string;
|
|
12
|
+
btnGradientStartColor?: string;
|
|
13
|
+
btnGradientEndColor?: string;
|
|
14
|
+
ctaButtonStyle?: 'flat' | 'gradient' | undefined;
|
|
15
|
+
type?: 'play-video' | 'internal-link' | 'external-link';
|
|
16
|
+
};
|
|
17
|
+
cta?: CTA;
|
|
18
|
+
classname?: string;
|
|
19
|
+
};
|
|
20
|
+
type PromotionsRowModuleProps = {
|
|
21
|
+
title?: string;
|
|
22
|
+
promos: Promo[];
|
|
23
|
+
handleClicks?: ((eventDetails: HandleClicksDetails) => void) | null;
|
|
24
|
+
};
|
|
25
|
+
export declare function PromotionsRowModule({ title, promos, handleClicks, }: PromotionsRowModuleProps): JSX.Element;
|
|
6
26
|
export default PromotionsRowModule;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as h,
|
|
1
|
+
import { jsxs as h, Fragment as S, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as R, useEffect as x } from "react";
|
|
3
3
|
import { classes as I } from "../../utils/helpers.js";
|
|
4
4
|
import { PromotionsRowBlock as b } from "../PromotionsRowBlock/PromotionsRowBlock.js";
|
|
@@ -25,13 +25,16 @@ import '../../assets/PromotionsRowModule.css';const P = {
|
|
|
25
25
|
cellsPosition: "flex-start",
|
|
26
26
|
wrapAround: !1
|
|
27
27
|
};
|
|
28
|
-
function T({
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
function T({
|
|
29
|
+
title: d = "",
|
|
30
|
+
promos: n = [],
|
|
31
|
+
handleClicks: o = null
|
|
32
|
+
}) {
|
|
33
|
+
const [u, w] = R([]), y = () => {
|
|
31
34
|
};
|
|
32
|
-
|
|
33
|
-
const t =
|
|
34
|
-
const c =
|
|
35
|
+
return x(() => {
|
|
36
|
+
const t = (r) => {
|
|
37
|
+
const c = r.map((e) => {
|
|
35
38
|
var l, i, s;
|
|
36
39
|
return {
|
|
37
40
|
title: "",
|
|
@@ -49,9 +52,9 @@ function T({ title: d = "", promos: n = [], handleClicks: o = null }) {
|
|
|
49
52
|
overlayContent: e != null && e.overlayContent ? /* @__PURE__ */ a(
|
|
50
53
|
v,
|
|
51
54
|
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
content: (l = e.overlayContent) == null ? void 0 : l.content,
|
|
56
|
+
cta: (i = e.overlayContent) == null ? void 0 : i.cta,
|
|
57
|
+
title: (s = e.overlayContent) == null ? void 0 : s.title
|
|
55
58
|
}
|
|
56
59
|
) : "",
|
|
57
60
|
cta: e.cta
|
|
@@ -61,50 +64,47 @@ function T({ title: d = "", promos: n = [], handleClicks: o = null }) {
|
|
|
61
64
|
w(c);
|
|
62
65
|
};
|
|
63
66
|
n.length > 4 && t(n);
|
|
64
|
-
}, [n, o]), n.length
|
|
65
|
-
return /* @__PURE__ */ h("section", { className: "promotions-row", children: [
|
|
66
|
-
/* @__PURE__ */ a("h2", { className: I(["h2", "promotions-row__header"]), children: d }),
|
|
67
|
-
/* @__PURE__ */ a(b, { gap: "2rem", children: n.map((t) => {
|
|
68
|
-
var r, c, e, l, i, s, C, f, g;
|
|
69
|
-
return /* @__PURE__ */ a(
|
|
70
|
-
B,
|
|
71
|
-
{
|
|
72
|
-
classname: t == null ? void 0 : t.classname,
|
|
73
|
-
image: t.image,
|
|
74
|
-
title: t.title,
|
|
75
|
-
content: t.content,
|
|
76
|
-
cta: t.cta,
|
|
77
|
-
handleClicks: ((r = t == null ? void 0 : t.cta) == null ? void 0 : r.type) === "play-video" ? o ?? y : () => !0,
|
|
78
|
-
relatedResourceId: t.id,
|
|
79
|
-
overlayContent: t.overlayContent ? /* @__PURE__ */ a(
|
|
80
|
-
v,
|
|
81
|
-
{
|
|
82
|
-
title: (c = t.overlayContent) == null ? void 0 : c.title,
|
|
83
|
-
content: (e = t.overlayContent) == null ? void 0 : e.content,
|
|
84
|
-
cta: (l = t.overlayContent) == null ? void 0 : l.cta,
|
|
85
|
-
titleImageUrl: (i = t.overlayContent) == null ? void 0 : i.titleImageUrl,
|
|
86
|
-
btnGradientStartColor: (s = t.overlayContent) == null ? void 0 : s.btnGradientStartColor,
|
|
87
|
-
btnGradientEndColor: (C = t.overlayContent) == null ? void 0 : C.btnGradientEndColor,
|
|
88
|
-
ctaButtonStyle: (f = t.overlayContent) == null ? void 0 : f.ctaButtonStyle,
|
|
89
|
-
type: (g = t.overlayConent) == null ? void 0 : g.type
|
|
90
|
-
}
|
|
91
|
-
) : ""
|
|
92
|
-
},
|
|
93
|
-
`promo-image-card-${Math.round(Math.random() * 1e7)}`
|
|
94
|
-
);
|
|
95
|
-
}) })
|
|
96
|
-
] });
|
|
97
|
-
if (n.length > 4 && u.length) return /* @__PURE__ */ h(S, { children: [
|
|
67
|
+
}, [n, o]), n.length > 4 && u.length ? /* @__PURE__ */ h(S, { children: [
|
|
98
68
|
/* @__PURE__ */ a("h1", { className: ["h3", "promotions-row__header"].join(" "), children: d }),
|
|
99
69
|
/* @__PURE__ */ a(
|
|
100
70
|
G,
|
|
101
71
|
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
options: P
|
|
105
|
-
id: "promotions-row"
|
|
72
|
+
cells: u,
|
|
73
|
+
id: `promotions-row-${Date.now()}`,
|
|
74
|
+
options: P
|
|
106
75
|
}
|
|
107
76
|
)
|
|
77
|
+
] }) : /* @__PURE__ */ h("section", { className: "promotions-row", children: [
|
|
78
|
+
/* @__PURE__ */ a("h2", { className: I(["h2", "promotions-row__header"]), children: d }),
|
|
79
|
+
/* @__PURE__ */ a(b, { gap: "2rem", children: n.map((t) => {
|
|
80
|
+
var r, c, e, l, i, s, C, f, g;
|
|
81
|
+
return /* @__PURE__ */ a(
|
|
82
|
+
B,
|
|
83
|
+
{
|
|
84
|
+
classname: t == null ? void 0 : t.classname,
|
|
85
|
+
content: t.content,
|
|
86
|
+
cta: t.cta,
|
|
87
|
+
handleClicks: ((r = t == null ? void 0 : t.cta) == null ? void 0 : r.type) === "play-video" ? o ?? y : () => !0,
|
|
88
|
+
image: t.image,
|
|
89
|
+
overlayContent: t.overlayContent ? /* @__PURE__ */ a(
|
|
90
|
+
v,
|
|
91
|
+
{
|
|
92
|
+
btnGradientEndColor: (c = t.overlayContent) == null ? void 0 : c.btnGradientEndColor,
|
|
93
|
+
btnGradientStartColor: (e = t.overlayContent) == null ? void 0 : e.btnGradientStartColor,
|
|
94
|
+
content: (l = t.overlayContent) == null ? void 0 : l.content,
|
|
95
|
+
cta: (i = t.overlayContent) == null ? void 0 : i.cta,
|
|
96
|
+
ctaButtonStyle: (s = t.overlayContent) == null ? void 0 : s.ctaButtonStyle,
|
|
97
|
+
title: (C = t.overlayContent) == null ? void 0 : C.title,
|
|
98
|
+
titleImageUrl: (f = t.overlayContent) == null ? void 0 : f.titleImageUrl,
|
|
99
|
+
type: (g = t.overlayContent) == null ? void 0 : g.type
|
|
100
|
+
}
|
|
101
|
+
) : "",
|
|
102
|
+
relatedResourceId: t.id,
|
|
103
|
+
title: t.title
|
|
104
|
+
},
|
|
105
|
+
`promo-image-card-${Math.round(Math.random() * 1e7)}`
|
|
106
|
+
);
|
|
107
|
+
}) })
|
|
108
108
|
] });
|
|
109
109
|
}
|
|
110
110
|
export {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { PromotionsRowModule
|
|
1
|
+
export { PromotionsRowModule } from './PromotionsRowModule';
|
|
2
|
+
export { PromotionsRowModule as default } from './PromotionsRowModule';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function RescanInstructions({ brandName }: {
|
|
2
|
-
brandName?: string
|
|
3
|
-
}):
|
|
1
|
+
export declare function RescanInstructions({ brandName }: {
|
|
2
|
+
brandName?: string;
|
|
3
|
+
}): JSX.Element;
|
|
4
4
|
export default RescanInstructions;
|
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
import { jsxs as e, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
2
|
import { InstructionsList as t } from "../InstructionsList/InstructionsList.js";
|
|
4
3
|
import '../../assets/RescanInstructions.css';const s = "_rescan__header_ndzy9_5", o = {
|
|
5
4
|
"rescan-instructions": "_rescan-instructions_ndzy9_1",
|
|
6
5
|
rescan__header: s
|
|
7
6
|
};
|
|
8
|
-
function
|
|
7
|
+
function c({ brandName: r = "" }) {
|
|
9
8
|
return /* @__PURE__ */ e("section", { className: [o["rescan-instructions"], "rescan-instructions"].join(" "), children: [
|
|
10
9
|
/* @__PURE__ */ n("h3", { className: [o.rescan__header, "rescan__header"].join(" "), children: "LEARN HOW TO RESCAN" }),
|
|
11
|
-
/* @__PURE__ */ n(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
/* @__PURE__ */ n(
|
|
11
|
+
t,
|
|
12
|
+
{
|
|
13
|
+
headerHtml: `Watching ${r} with an antenna? You may need to rescan your TV.`,
|
|
14
|
+
instructions: [
|
|
15
|
+
"Press the <strong>Menu</strong> button on your Converter Box, Digital TV, or remote.",
|
|
16
|
+
"Go to <strong>Setup</strong> or <strong>Settings</strong>.",
|
|
17
|
+
"Go to <strong>Installation</strong>, or <strong>System</strong>, or <strong>Channels</strong>.",
|
|
18
|
+
"Go to <strong>Scan Channels</strong>, or <strong>Program Channels</strong>, or <strong>Auto Scan</strong>, or <strong>Auto Program</strong>, or <strong>Auto-Tuning</strong>.",
|
|
19
|
+
"Press <strong>Select</strong>, or <strong>Enter</strong>, or <strong>OK</strong> to scan."
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
/* @__PURE__ */ n(
|
|
24
|
+
t,
|
|
25
|
+
{
|
|
26
|
+
headerHtml: "Sometimes, a double rescan is needed to clear the memory of your Digital TV or Converter Box:",
|
|
27
|
+
instructions: [
|
|
28
|
+
"Disconnect the antenna from the Digital TV or Converter Box.",
|
|
29
|
+
"Rescan without the antenna connected. As with any scan, follow the on-screen instructions or owner's manual for your device.",
|
|
30
|
+
"Unplug the Digital TV or Converter Box from the electrical outlet for one minute.",
|
|
31
|
+
"Reconnect the antenna to the Digital TV or Converter Box and plug the unit into the electrical outlet.",
|
|
32
|
+
"Rescan the Digital TV or Converter Box one more time."
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
)
|
|
25
36
|
] });
|
|
26
37
|
}
|
|
27
38
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
c as RescanInstructions,
|
|
40
|
+
c as default
|
|
30
41
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { RescanInstructions
|
|
1
|
+
export { RescanInstructions } from './RescanInstructions';
|
|
2
|
+
export { RescanInstructions as default } from './RescanInstructions';
|