@scrippsproduct/networks-ui-library 1.1.0-alpha.1 → 1.1.0-alpha.2
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/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/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/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/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.js +1 -1
- package/dist/components/Carousel/index.d.ts +2 -1
- package/dist/components/Carousel/navigations/Pagination.js +12 -10
- package/dist/components/CarouselSlide/CarouselSlide.js +25 -87
- 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.js +5 -5
- 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 +114 -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 +25 -0
- package/dist/components/ScheduleLayout/ScheduleContext.js +33 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +15 -5
- package/dist/components/ScheduleLayout/ScheduleLayout.js +76 -24
- package/dist/components/ScheduleLayout/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/useScheduleContext.d.ts +14 -0
- package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
- package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
- package/dist/components/ScheduleList/ScheduleList.js +153 -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 +27 -16
- 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 +53 -37
- 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 +12 -4
- package/dist/hooks/useGetSchedule.js +31 -27
- 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.js +1 -1
- package/dist/logger-C0N7U0YY.mjs +67 -0
- package/dist/settings.js +6 -5
- 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 +12 -9
- 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/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/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
|
@@ -1,22 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "react";
|
|
3
|
-
import { getMinutesFromStr as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"schedule-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useReducer as S, useState as w, useRef as T, useCallback as R, useEffect as f } from "react";
|
|
3
|
+
import { getMinutesFromStr as A } from "../../utils/helpers.js";
|
|
4
|
+
import { useScheduleContext as L } from "../ScheduleLayout/useScheduleContext.js";
|
|
5
|
+
import { Loading as x } from "../Loading/Loading.js";
|
|
6
|
+
import { SportsItem as b } from "./schedule-list-items/SportsItem.js";
|
|
7
|
+
import { SeriesItem as D } from "./schedule-list-items/SeriesItem.js";
|
|
8
|
+
import { MovieItem as M } from "./schedule-list-items/MovieItem.js";
|
|
9
|
+
import '../../assets/ScheduleList.css';const k = "_h4_r54qy_53", d = {
|
|
10
|
+
"schedule-list__item": "_schedule-list__item_r54qy_1",
|
|
11
|
+
"schedule-list__airdate": "_schedule-list__airdate_r54qy_12",
|
|
12
|
+
"airdate-formatter__date": "_airdate-formatter__date_r54qy_20",
|
|
13
|
+
"airdate-formatter__day": "_airdate-formatter__day_r54qy_21",
|
|
14
|
+
"airdate-formatter__time-wrap": "_airdate-formatter__time-wrap_r54qy_24",
|
|
15
|
+
"schedule-list": "_schedule-list_r54qy_1",
|
|
16
|
+
"fade-out": "_fade-out_r54qy_1",
|
|
17
|
+
"fade-in": "_fade-in_r54qy_1",
|
|
18
|
+
h4: k,
|
|
19
|
+
"string-list__pipe": "_string-list__pipe_r54qy_61",
|
|
20
|
+
"image-card__content": "_image-card__content_r54qy_68",
|
|
21
|
+
"string-list": "_string-list_r54qy_61",
|
|
22
|
+
"image-card__img-wrapper": "_image-card__img-wrapper_r54qy_92",
|
|
23
|
+
"image-card__cta": "_image-card__cta_r54qy_98",
|
|
24
|
+
"schedule-list__on-now": "_schedule-list__on-now_r54qy_103",
|
|
25
|
+
"schedule-list__no-schedule": "_schedule-list__no-schedule_r54qy_117",
|
|
26
|
+
"schedule-content-constrainer": "_schedule-content-constrainer_r54qy_137",
|
|
27
|
+
"date-navigation__weekday": "_date-navigation__weekday_r54qy_145",
|
|
28
|
+
"date-navigation__date": "_date-navigation__date_r54qy_148"
|
|
29
|
+
};
|
|
30
|
+
function q(r) {
|
|
31
|
+
return typeof r == "object" && !Array.isArray(r) && "queryStatus" in r && r.queryStatus === "no-results";
|
|
32
|
+
}
|
|
33
|
+
function u(r, a) {
|
|
34
|
+
switch (a.type) {
|
|
35
|
+
case "START_EXIT":
|
|
36
|
+
return "exiting";
|
|
37
|
+
case "EXIT_COMPLETE":
|
|
38
|
+
return "loading";
|
|
39
|
+
case "SCHEDULE_LOADED":
|
|
40
|
+
return "entering";
|
|
41
|
+
case "ENTER_COMPLETE":
|
|
42
|
+
return "idle";
|
|
43
|
+
default:
|
|
44
|
+
return r;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const E = (r) => {
|
|
48
|
+
var a, s, n, p, o, y, l, _, e, i, g;
|
|
49
|
+
return (a = r.video) != null && a.brightcove_id ? {
|
|
16
50
|
label: "Watch Preview",
|
|
17
51
|
type: "play-video",
|
|
18
52
|
href: "",
|
|
19
53
|
relatedResourceId: r.video.brightcove_id,
|
|
54
|
+
relatedResourceType: "video",
|
|
20
55
|
position: "inline"
|
|
21
56
|
} : r != null && r.showUpcoming && (r == null ? void 0 : r.program_class) === "Episode" ? {
|
|
22
57
|
label: "",
|
|
@@ -28,7 +63,7 @@ import '../../assets/ScheduleList.css';const g = {
|
|
|
28
63
|
//determineSeriesPrefix(scheduleItem.series_prefix),
|
|
29
64
|
relatedResourceType: "",
|
|
30
65
|
//'series',
|
|
31
|
-
position:
|
|
66
|
+
position: void 0
|
|
32
67
|
//'inline',
|
|
33
68
|
} : r != null && r.showUpcoming && (r == null ? void 0 : r.program_class) === "Film" ? {
|
|
34
69
|
label: "",
|
|
@@ -40,61 +75,119 @@ import '../../assets/ScheduleList.css';const g = {
|
|
|
40
75
|
//scheduleItem.title_code,
|
|
41
76
|
relatedResourceType: "",
|
|
42
77
|
//'film',
|
|
43
|
-
position:
|
|
78
|
+
position: void 0
|
|
44
79
|
//'inline',
|
|
45
|
-
} : (((
|
|
80
|
+
} : (((s = r == null ? void 0 : r.content) == null ? void 0 : s.external_link) !== void 0 && ((n = r == null ? void 0 : r.content) == null ? void 0 : n.external_link) !== "" || ((p = r == null ? void 0 : r.content) == null ? void 0 : p.slug) !== void 0 && ((o = r == null ? void 0 : r.content) == null ? void 0 : o.slug) !== "") && !((y = r == null ? void 0 : r.content) != null && y.prevent_detail_page) ? {
|
|
46
81
|
label: (r == null ? void 0 : r.program_class) === "Episode" ? "View Series Details" : (r == null ? void 0 : r.program_class) === "Film" ? "View Movie Details" : "Learn More",
|
|
47
|
-
type: (
|
|
48
|
-
href: (
|
|
82
|
+
type: (l = r == null ? void 0 : r.content) != null && l.external_link ? "external-link" : "internal-link",
|
|
83
|
+
href: (_ = r == null ? void 0 : r.content) != null && _.external_link ? (e = r == null ? void 0 : r.content) == null ? void 0 : e.external_link : r.program_class === "Episode" ? `/show/${(i = r == null ? void 0 : r.content) == null ? void 0 : i.slug}` : `/movie/${(g = r == null ? void 0 : r.content) == null ? void 0 : g.slug}`,
|
|
49
84
|
position: "inline"
|
|
50
85
|
} : {
|
|
51
86
|
label: "",
|
|
52
87
|
type: "",
|
|
53
88
|
href: "",
|
|
54
|
-
position:
|
|
89
|
+
position: void 0
|
|
55
90
|
};
|
|
56
91
|
};
|
|
57
|
-
function
|
|
58
|
-
|
|
59
|
-
handleClicks: o = () => !0,
|
|
60
|
-
exiting: p = !1
|
|
92
|
+
function j({
|
|
93
|
+
handleClicks: r = () => !0
|
|
61
94
|
}) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
{
|
|
87
|
-
determineCTA: f,
|
|
88
|
-
handleClicks: o,
|
|
89
|
-
scheduleItem: i,
|
|
90
|
-
strListArr: n,
|
|
91
|
-
styles: g
|
|
95
|
+
const { schedule: a, isLoading: s } = L(), [n, p] = S(u, "idle"), [o, y] = w(a), l = T(null), _ = T(null), e = R(() => {
|
|
96
|
+
_.current && (clearTimeout(_.current), _.current = null), n === "exiting" ? p({ type: "EXIT_COMPLETE" }) : n === "entering" && p({ type: "ENTER_COMPLETE" });
|
|
97
|
+
}, [n]);
|
|
98
|
+
return f(() => {
|
|
99
|
+
const i = l.current;
|
|
100
|
+
if (i)
|
|
101
|
+
return i.addEventListener("animationend", e), () => {
|
|
102
|
+
i.removeEventListener("animationend", e);
|
|
103
|
+
};
|
|
104
|
+
}, [e]), f(() => {
|
|
105
|
+
s && n === "idle" && p({ type: "START_EXIT" });
|
|
106
|
+
}, [s, n]), f(() => {
|
|
107
|
+
const i = q(a) || Array.isArray(a) && a.length >= 0;
|
|
108
|
+
!s && n === "loading" && i && (y(a), p({ type: "SCHEDULE_LOADED" }));
|
|
109
|
+
}, [s, n, a]), f(() => () => {
|
|
110
|
+
_.current && clearTimeout(_.current);
|
|
111
|
+
}, []), n === "loading" ? /* @__PURE__ */ t(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
style: {
|
|
115
|
+
display: "grid",
|
|
116
|
+
alignContent: "start",
|
|
117
|
+
minHeight: "100dvh",
|
|
118
|
+
paddingTop: "6rem"
|
|
92
119
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
120
|
+
children: /* @__PURE__ */ t(x, {})
|
|
121
|
+
}
|
|
122
|
+
) : q(o) ? /* @__PURE__ */ c(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
className: "schedule-list__no-schedule",
|
|
126
|
+
"data-state": n,
|
|
127
|
+
style: { animationDelay: "500ms" },
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ t("h2", { children: "There are no shows scheduled for this day." }),
|
|
130
|
+
/* @__PURE__ */ c("p", { children: [
|
|
131
|
+
"Please try again later. If this problem persists report it at ",
|
|
132
|
+
/* @__PURE__ */ t("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
|
|
133
|
+
"."
|
|
134
|
+
] })
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
) : Array.isArray(o) && o.length === 0 ? /* @__PURE__ */ c(
|
|
138
|
+
"div",
|
|
139
|
+
{
|
|
140
|
+
className: "schedule-list__no-schedule",
|
|
141
|
+
"data-state": n,
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ t("h2", { children: "Our programming schedule for today has completed." }),
|
|
144
|
+
/* @__PURE__ */ t("p", { children: "Our programming will restart at 6am." })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
) : /* @__PURE__ */ t(
|
|
148
|
+
"ul",
|
|
149
|
+
{
|
|
150
|
+
className: `${d["schedule-list"]} schedule-list`,
|
|
151
|
+
"data-state": n,
|
|
152
|
+
ref: l,
|
|
153
|
+
children: Array.isArray(o) && o.map((i) => {
|
|
154
|
+
const g = A(i.element_length), v = E(i).type === "" ? [g, i.rating] : [g, i.rating, " "];
|
|
155
|
+
return i.program_class === "Episode" ? /* @__PURE__ */ t(
|
|
156
|
+
D,
|
|
157
|
+
{
|
|
158
|
+
determineCTA: E,
|
|
159
|
+
handleClicks: r,
|
|
160
|
+
scheduleItem: i,
|
|
161
|
+
strListArr: v,
|
|
162
|
+
styles: d
|
|
163
|
+
},
|
|
164
|
+
`schedule-list-${i.id}`
|
|
165
|
+
) : i.program_class === "Film" || i.program_class === "Movie" || i.program_class === "Special" ? /* @__PURE__ */ t(
|
|
166
|
+
M,
|
|
167
|
+
{
|
|
168
|
+
determineCTA: E,
|
|
169
|
+
handleClicks: r,
|
|
170
|
+
scheduleItem: i,
|
|
171
|
+
strListArr: v,
|
|
172
|
+
styles: d
|
|
173
|
+
},
|
|
174
|
+
`schedule-list-${i.id}`
|
|
175
|
+
) : i.program_class === "Sports" ? /* @__PURE__ */ t(
|
|
176
|
+
b,
|
|
177
|
+
{
|
|
178
|
+
determineCTA: E,
|
|
179
|
+
handleClicks: r,
|
|
180
|
+
scheduleItem: i,
|
|
181
|
+
strListArr: v,
|
|
182
|
+
styles: d
|
|
183
|
+
},
|
|
184
|
+
`schedule-list-${i.id}`
|
|
185
|
+
) : null;
|
|
186
|
+
})
|
|
187
|
+
}
|
|
188
|
+
);
|
|
96
189
|
}
|
|
97
190
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
191
|
+
j as ScheduleList,
|
|
192
|
+
j as default
|
|
100
193
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { ScheduleList
|
|
1
|
+
export { ScheduleList } from './ScheduleList';
|
|
2
|
+
export { ScheduleList as default } from './ScheduleList';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ScheduleItem } from '../../../types';
|
|
2
|
+
type AirDateSegmentProps = {
|
|
3
|
+
scheduleItem: ScheduleItem;
|
|
4
|
+
styles: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
export declare function AirDateSegment({ scheduleItem, styles, }: AirDateSegmentProps): JSX.Element;
|
|
5
7
|
export default AirDateSegment;
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import { classes as s, convert12to24 as e } from "../../../utils/helpers.js";
|
|
2
|
+
import { determineIfShowIsOnNow as s } from "../../../utils/date-helpers.js";
|
|
3
|
+
import { classes as o, convert12to24 as e } from "../../../utils/helpers.js";
|
|
5
4
|
import { AirDateFormatter as n } from "../../AirDateFormatter/AirDateFormatter.js";
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
function p({
|
|
6
|
+
scheduleItem: t,
|
|
7
|
+
styles: a
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ i(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
className: o([a["schedule-list__airdate"], "schedule-list__airdate"]),
|
|
13
|
+
children: [
|
|
14
|
+
s(
|
|
15
|
+
`${t.start_date_parse}T${e(t.start_time)}`,
|
|
16
|
+
t.element_length
|
|
17
|
+
) && /* @__PURE__ */ r("div", { className: "schedule-list__on-now", children: "On Now" }),
|
|
18
|
+
/* @__PURE__ */ r(
|
|
19
|
+
n,
|
|
20
|
+
{
|
|
21
|
+
airdateStr: `${t.start_date} ${e(t.start_time)}`,
|
|
22
|
+
separatorType: "line-break"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
);
|
|
17
28
|
}
|
|
18
29
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
p as AirDateSegment,
|
|
31
|
+
p as default
|
|
21
32
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ScheduleItem, HandleClicksDetails, CTA } from '../../../types.d.ts';
|
|
2
|
+
type MovieItemProps = {
|
|
3
|
+
scheduleItem: ScheduleItem;
|
|
4
|
+
styles: Record<string, string>;
|
|
5
|
+
handleClicks: (details: HandleClicksDetails) => boolean | void;
|
|
6
|
+
strListArr: (string | undefined)[];
|
|
7
|
+
determineCTA: (scheduleItem: ScheduleItem) => CTA;
|
|
8
|
+
};
|
|
9
|
+
export declare function MovieItem({ scheduleItem, styles, handleClicks, strListArr, determineCTA, }: MovieItemProps): JSX.Element;
|
|
8
10
|
export default MovieItem;
|
|
@@ -1,39 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { AirDateSegment as g } from "./AirDateSegment.js";
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { classes as g } from "../../../utils/helpers.js";
|
|
3
|
+
import { StringList as f } from "../../StringList/StringList.js";
|
|
4
|
+
import { Concat as l } from "../../Concat/Concat.js";
|
|
5
|
+
import { AirDateSegment as _ } from "./AirDateSegment.js";
|
|
7
6
|
import { ImageCard as C } from "../../ImageCard/ImageCard.js";
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
function d({
|
|
8
|
+
scheduleItem: i,
|
|
9
|
+
styles: o,
|
|
10
|
+
handleClicks: a,
|
|
11
|
+
strListArr: n,
|
|
12
|
+
determineCTA: p
|
|
13
|
+
}) {
|
|
14
|
+
var t;
|
|
15
|
+
const s = [
|
|
16
|
+
i.program_synopsis !== null && i.program_synopsis !== void 0 ? `<div>${i.program_synopsis}</div>` : "",
|
|
17
|
+
/* @__PURE__ */ r(f, { list: n, separatorType: "pipe" })
|
|
13
18
|
];
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
return /* @__PURE__ */ m(
|
|
20
|
+
"li",
|
|
21
|
+
{
|
|
22
|
+
className: g([o["schedule-list__item"], "schedule-list__item"]),
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ r(_, { scheduleItem: i, styles: o }),
|
|
25
|
+
/* @__PURE__ */ r(
|
|
26
|
+
C,
|
|
27
|
+
{
|
|
28
|
+
clampContentLines: !0,
|
|
29
|
+
displayInline: !0,
|
|
30
|
+
content: /* @__PURE__ */ r(l, { list: s }),
|
|
31
|
+
cta: p(i),
|
|
32
|
+
handleClicks: a,
|
|
33
|
+
id: i.id,
|
|
34
|
+
image: {
|
|
35
|
+
url: ((t = i == null ? void 0 : i.content) == null ? void 0 : t.image) ?? "",
|
|
36
|
+
altText: "",
|
|
37
|
+
aspectRatio: 543 / 305
|
|
38
|
+
},
|
|
39
|
+
numberOfLinesToClamp: 5,
|
|
40
|
+
title: i.program
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
`schedule-list-${i.id}`
|
|
46
|
+
);
|
|
35
47
|
}
|
|
36
48
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
49
|
+
d as MovieItem,
|
|
50
|
+
d as default
|
|
39
51
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ScheduleItem, HandleClicksDetails, CTA } from '../../../types.d.ts';
|
|
2
|
+
type SeriesItemProps = {
|
|
3
|
+
scheduleItem: ScheduleItem;
|
|
4
|
+
styles: Record<string, string>;
|
|
5
|
+
strListArr: (string | undefined)[];
|
|
6
|
+
handleClicks: (details: HandleClicksDetails) => boolean | void;
|
|
7
|
+
determineCTA: (scheduleItem: ScheduleItem) => CTA;
|
|
8
|
+
};
|
|
9
|
+
export declare function SeriesItem({ scheduleItem, styles, strListArr, handleClicks, determineCTA, }: SeriesItemProps): JSX.Element;
|
|
8
10
|
export default SeriesItem;
|
|
@@ -1,41 +1,57 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { classes as e } from "../../../utils/helpers.js";
|
|
3
|
+
import { determineProgramTitle as a } from "../../../utils/program-helpers.js";
|
|
4
|
+
import { Concat as y } from "../../Concat/Concat.js";
|
|
5
|
+
import { StringList as C } from "../../StringList/StringList.js";
|
|
6
|
+
import { AirDateSegment as S } from "./AirDateSegment.js";
|
|
7
|
+
import { ImageCard as v } from "../../ImageCard/ImageCard.js";
|
|
8
|
+
import { l as p } from "../../../logger-C0N7U0YY.mjs";
|
|
9
|
+
p.setComponent("SeriesItem");
|
|
10
|
+
function D({
|
|
11
|
+
scheduleItem: i,
|
|
12
|
+
styles: o,
|
|
13
|
+
strListArr: m,
|
|
14
|
+
handleClicks: s,
|
|
15
|
+
determineCTA: g
|
|
16
|
+
}) {
|
|
17
|
+
var n;
|
|
18
|
+
const _ = i.episode_number ? `${i.episode_number}:` : "", t = i.program_synopsis !== null ? i.program_synopsis : "";
|
|
19
|
+
p.log("SeriesItem - programSynopsis: ", t), i.title_name && (i.title_name = i.title_name.trim());
|
|
20
|
+
const f = [
|
|
21
|
+
i.title_name !== a(i).trim() ? `<div>${_} ${i.title_name}</div>` : "",
|
|
22
|
+
i.program_synopsis !== null && i.program_synopsis !== void 0 ? `<div>${t}</div>` : "",
|
|
23
|
+
/* @__PURE__ */ r(C, { list: m, separatorType: "pipe" })
|
|
15
24
|
];
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
return /* @__PURE__ */ l(
|
|
26
|
+
"li",
|
|
27
|
+
{
|
|
28
|
+
className: e([o["schedule-list__item"], "schedule-list__item"]),
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ r(S, { scheduleItem: i, styles: o }),
|
|
31
|
+
/* @__PURE__ */ r(
|
|
32
|
+
v,
|
|
33
|
+
{
|
|
34
|
+
clampContentLines: !0,
|
|
35
|
+
displayInline: !0,
|
|
36
|
+
content: /* @__PURE__ */ r(y, { list: f }),
|
|
37
|
+
cta: g(i),
|
|
38
|
+
handleClicks: s,
|
|
39
|
+
id: i.id,
|
|
40
|
+
image: {
|
|
41
|
+
url: ((n = i == null ? void 0 : i.content) == null ? void 0 : n.image) ?? "",
|
|
42
|
+
altText: "",
|
|
43
|
+
aspectRatio: 543 / 305
|
|
44
|
+
},
|
|
45
|
+
numberOfLinesToClamp: 5,
|
|
46
|
+
title: a(i)
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
`schedule-list-${i.id}`
|
|
52
|
+
);
|
|
37
53
|
}
|
|
38
54
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
D as SeriesItem,
|
|
56
|
+
D as default
|
|
41
57
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ScheduleItem, HandleClicksDetails, CTA } from '../../../types.d.ts';
|
|
2
|
+
type SportsItemProps = {
|
|
3
|
+
scheduleItem: ScheduleItem;
|
|
4
|
+
styles: Record<string, string>;
|
|
5
|
+
strListArr: (string | undefined)[];
|
|
6
|
+
handleClicks: (details: HandleClicksDetails) => boolean | void;
|
|
7
|
+
determineCTA: (scheduleItem: ScheduleItem) => CTA;
|
|
8
|
+
};
|
|
9
|
+
export declare function SportsItem({ scheduleItem, styles, strListArr, handleClicks, determineCTA, }: SportsItemProps): JSX.Element;
|
|
8
10
|
export default SportsItem;
|
|
@@ -1,39 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { AirDateSegment as g } from "./AirDateSegment.js";
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { classes as g } from "../../../utils/helpers.js";
|
|
3
|
+
import { Concat as f } from "../../Concat/Concat.js";
|
|
4
|
+
import { StringList as l } from "../../StringList/StringList.js";
|
|
5
|
+
import { AirDateSegment as _ } from "./AirDateSegment.js";
|
|
7
6
|
import { ImageCard as C } from "../../ImageCard/ImageCard.js";
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
function c({
|
|
8
|
+
scheduleItem: i,
|
|
9
|
+
styles: o,
|
|
10
|
+
strListArr: a,
|
|
11
|
+
handleClicks: n,
|
|
12
|
+
determineCTA: p
|
|
13
|
+
}) {
|
|
14
|
+
var t;
|
|
15
|
+
const s = [
|
|
16
|
+
i.program_synopsis !== null && i.program_synopsis !== void 0 ? `<div>${i.program_synopsis}</div>` : "",
|
|
17
|
+
/* @__PURE__ */ r(l, { list: a, separatorType: "pipe" })
|
|
13
18
|
];
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
return /* @__PURE__ */ m(
|
|
20
|
+
"li",
|
|
21
|
+
{
|
|
22
|
+
className: g([o["schedule-list__item"], "schedule-list__item"]),
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ r(_, { scheduleItem: i, styles: o }),
|
|
25
|
+
/* @__PURE__ */ r(
|
|
26
|
+
C,
|
|
27
|
+
{
|
|
28
|
+
clampContentLines: !0,
|
|
29
|
+
displayInline: !0,
|
|
30
|
+
content: /* @__PURE__ */ r(f, { list: s }),
|
|
31
|
+
cta: p(i),
|
|
32
|
+
handleClicks: n,
|
|
33
|
+
id: i.id,
|
|
34
|
+
image: {
|
|
35
|
+
url: ((t = i == null ? void 0 : i.content) == null ? void 0 : t.image) ?? "",
|
|
36
|
+
altText: "",
|
|
37
|
+
aspectRatio: 543 / 305
|
|
38
|
+
},
|
|
39
|
+
numberOfLinesToClamp: 5,
|
|
40
|
+
title: i.program
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
`schedule-list-${i.id}`
|
|
46
|
+
);
|
|
35
47
|
}
|
|
36
48
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
49
|
+
c as SportsItem,
|
|
50
|
+
c as default
|
|
39
51
|
};
|