@scrippsproduct/networks-ui-library 1.0.15
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/README.md +71 -0
- package/dist/ChoicesItem-CGIr6Qga.mjs +38 -0
- package/dist/Form.module-DbpB9u1l.mjs +150 -0
- package/dist/PageHero.module-BdV8z_Xv.mjs +8 -0
- package/dist/ResultsTable.module-B7M9y7hd.mjs +14 -0
- package/dist/SocialShareButton-BXGVUD-z.mjs +30 -0
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +8 -0
- package/dist/add-DH4DZT_w.mjs +17 -0
- package/dist/addMonths-Ca2KMx6g.mjs +23 -0
- package/dist/assets/ActionButton.css +1 -0
- package/dist/assets/AdBlock.css +1 -0
- package/dist/assets/AdjustableTwoColumnGrid.css +1 -0
- package/dist/assets/AirDateFormatter.css +1 -0
- package/dist/assets/AnchorTag.css +1 -0
- package/dist/assets/BCVideoPlayer.css +1 -0
- package/dist/assets/BasicGridModule.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/CarouselSlide.css +1 -0
- package/dist/assets/ChannelSearch.css +1 -0
- package/dist/assets/ChoicesItem.css +1 -0
- package/dist/assets/ContentHero.css +1 -0
- package/dist/assets/CtaBlock.css +1 -0
- package/dist/assets/CustomDataList.css +1 -0
- package/dist/assets/DateNavigation.css +1 -0
- package/dist/assets/DatePicker.css +1 -0
- package/dist/assets/DeviceAndPlatformLists.css +1 -0
- package/dist/assets/DrawerNavigation.css +1 -0
- package/dist/assets/EqualSizeFlexRow.css +1 -0
- package/dist/assets/EqualSizeGrid.css +1 -0
- package/dist/assets/ErrorHandler.css +1 -0
- package/dist/assets/FeaturedList.css +1 -0
- package/dist/assets/Figure.css +1 -0
- package/dist/assets/Figure2.css +1 -0
- package/dist/assets/FindUs.css +1 -0
- package/dist/assets/FooterNavigation.css +1 -0
- package/dist/assets/Form.css +1 -0
- package/dist/assets/GradientButton.css +1 -0
- package/dist/assets/GridList.css +1 -0
- package/dist/assets/IONShowHero.css +1 -0
- package/dist/assets/ImageCard.css +1 -0
- package/dist/assets/ImageReplacementAnchor.css +1 -0
- package/dist/assets/InfoPanel.css +1 -0
- package/dist/assets/InlineNavigation.css +1 -0
- package/dist/assets/InstructionsList.css +1 -0
- package/dist/assets/Loading.css +1 -0
- package/dist/assets/LoadingV2.css +1 -0
- package/dist/assets/LogoListItem.css +1 -0
- package/dist/assets/LogoNavigation.css +1 -0
- package/dist/assets/ModalContainer.css +1 -0
- package/dist/assets/MultiLayeredFigure.css +1 -0
- package/dist/assets/NavList.css +1 -0
- package/dist/assets/Overlay.css +1 -0
- package/dist/assets/PageHero.css +1 -0
- package/dist/assets/Pagination.css +1 -0
- package/dist/assets/ProgramAirdate.css +1 -0
- package/dist/assets/PromotionBlock.css +1 -0
- package/dist/assets/PromotionsRowModule.css +1 -0
- package/dist/assets/RescanInstructions.css +1 -0
- package/dist/assets/ResultsTable.css +1 -0
- package/dist/assets/ScheduleList.css +1 -0
- package/dist/assets/ShowAboutLayout.css +1 -0
- package/dist/assets/ShowSlide.css +1 -0
- package/dist/assets/SocialLinks.css +1 -0
- package/dist/assets/SocialShareButton.css +1 -0
- package/dist/assets/StringList.css +1 -0
- package/dist/assets/TabNavigation.css +1 -0
- package/dist/assets/TextSlide.css +1 -0
- package/dist/assets/TwoColumnSlide.css +1 -0
- package/dist/assets/UpcomingList.css +1 -0
- package/dist/chevron-left-DmvQntvu.mjs +54 -0
- package/dist/chevron-right-CaAz6ISN.mjs +54 -0
- package/dist/components/ActionButton/ActionButton.d.ts +19 -0
- package/dist/components/ActionButton/ActionButton.js +78 -0
- package/dist/components/ActionButton/index.d.ts +1 -0
- package/dist/components/ActionButton/index.js +5 -0
- package/dist/components/AdBlock/AdBlock.d.ts +6 -0
- package/dist/components/AdBlock/AdBlock.js +110 -0
- package/dist/components/AdBlock/index.d.ts +1 -0
- package/dist/components/AdBlock/index.js +5 -0
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -0
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +24 -0
- package/dist/components/AdjustableTwoColumnGrid/index.d.ts +1 -0
- package/dist/components/AdjustableTwoColumnGrid/index.js +5 -0
- package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -0
- package/dist/components/AirDateFormatter/AirDateFormatter.js +82 -0
- package/dist/components/AirDateFormatter/index.d.ts +1 -0
- package/dist/components/AirDateFormatter/index.js +5 -0
- package/dist/components/AnchorTag/AnchorTag.d.ts +9 -0
- package/dist/components/AnchorTag/AnchorTag.js +45 -0
- package/dist/components/AnchorTag/index.d.ts +1 -0
- package/dist/components/AnchorTag/index.js +5 -0
- package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +13 -0
- package/dist/components/BCVideoPlayer/BCVideoPlayer.js +57 -0
- package/dist/components/BCVideoPlayer/index.d.ts +1 -0
- package/dist/components/BCVideoPlayer/index.js +5 -0
- package/dist/components/BasicGridModule/BasicGridModule.d.ts +24 -0
- package/dist/components/BasicGridModule/BasicGridModule.js +88 -0
- package/dist/components/BasicGridModule/index.d.ts +1 -0
- package/dist/components/BasicGridModule/index.js +5 -0
- package/dist/components/Button/Button.d.ts +19 -0
- package/dist/components/Button/Button.js +76 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +5 -0
- package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +6 -0
- package/dist/components/ButtonAnchor/ButtonAnchor.js +18 -0
- package/dist/components/ButtonAnchor/index.d.ts +1 -0
- package/dist/components/ButtonAnchor/index.js +5 -0
- package/dist/components/Carousel/Carousel.d.ts +25 -0
- package/dist/components/Carousel/Carousel.js +298 -0
- package/dist/components/Carousel/CarouselUtils.class.d.ts +68 -0
- package/dist/components/Carousel/CarouselUtils.class.js +187 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/Carousel/index.js +5 -0
- package/dist/components/Carousel/navigations/Pagination.d.ts +3 -0
- package/dist/components/Carousel/navigations/Pagination.js +18 -0
- package/dist/components/CarouselSlide/CarouselSlide.d.ts +7 -0
- package/dist/components/CarouselSlide/CarouselSlide.js +37 -0
- package/dist/components/CarouselSlide/index.d.ts +1 -0
- package/dist/components/CarouselSlide/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +2 -0
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +9 -0
- package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Empty/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +9 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +30 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +34 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +105 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +2 -0
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +10 -0
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.d.ts +4 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.js +27 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +28 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +42 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +17 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +116 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +170 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +193 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +7 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +30 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +19 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +35 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +17 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +17 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +49 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +2 -0
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +20 -0
- package/dist/components/CarouselSlide/slide-layouts/Video/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Video/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/index.d.ts +8 -0
- package/dist/components/CarouselSlide/slide-layouts/index.js +18 -0
- package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +2 -0
- package/dist/components/CastInfoLayout/CastInfoLayout.js +62 -0
- package/dist/components/CastInfoLayout/index.d.ts +1 -0
- package/dist/components/CastInfoLayout/index.js +5 -0
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -0
- package/dist/components/ChannelSearch/ChannelSearch.js +171 -0
- package/dist/components/ChannelSearch/index.d.ts +1 -0
- package/dist/components/ChannelSearch/index.js +5 -0
- package/dist/components/ChoicesItem/ChoicesItem.d.ts +5 -0
- package/dist/components/ChoicesItem/ChoicesItem.js +8 -0
- package/dist/components/ChoicesItem/index.d.ts +1 -0
- package/dist/components/ChoicesItem/index.js +5 -0
- package/dist/components/ChoicesList/ChoicesList.d.ts +4 -0
- package/dist/components/ChoicesList/ChoicesList.js +9 -0
- package/dist/components/ChoicesList/index.d.ts +1 -0
- package/dist/components/ChoicesList/index.js +5 -0
- package/dist/components/Concat/Concat.d.ts +4 -0
- package/dist/components/Concat/Concat.js +10 -0
- package/dist/components/Concat/index.d.ts +1 -0
- package/dist/components/Concat/index.js +5 -0
- package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +6 -0
- package/dist/components/CreateChoiceList/CreateChoiceList.js +14 -0
- package/dist/components/CreateChoiceList/index.d.ts +1 -0
- package/dist/components/CreateChoiceList/index.js +5 -0
- package/dist/components/CtaBlock/CtaBlock.d.ts +23 -0
- package/dist/components/CtaBlock/CtaBlock.js +89 -0
- package/dist/components/CtaBlock/index.d.ts +1 -0
- package/dist/components/CtaBlock/index.js +5 -0
- package/dist/components/CustomDataList/CustomDataList.d.ts +11 -0
- package/dist/components/CustomDataList/CustomDataList.js +282 -0
- package/dist/components/CustomDataList/index.d.ts +1 -0
- package/dist/components/CustomDataList/index.js +5 -0
- package/dist/components/CustomSelect/CustomSelect.d.ts +14 -0
- package/dist/components/CustomSelect/CustomSelect.js +217 -0
- package/dist/components/CustomSelect/index.d.ts +1 -0
- package/dist/components/CustomSelect/index.js +5 -0
- package/dist/components/DateNavigation/DateNavigation.d.ts +5 -0
- package/dist/components/DateNavigation/DateNavigation.js +115 -0
- package/dist/components/DateNavigation/index.d.ts +1 -0
- package/dist/components/DateNavigation/index.js +5 -0
- package/dist/components/DatePicker/DatePicker.d.ts +10 -0
- package/dist/components/DatePicker/DatePicker.js +5895 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/index.js +5 -0
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +5 -0
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +60 -0
- package/dist/components/DeviceAndPlatformLists/index.d.ts +1 -0
- package/dist/components/DeviceAndPlatformLists/index.js +5 -0
- package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +10 -0
- package/dist/components/DrawerNavigation/DrawerNavigation.js +123 -0
- package/dist/components/DrawerNavigation/index.d.ts +1 -0
- package/dist/components/DrawerNavigation/index.js +5 -0
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -0
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +31 -0
- package/dist/components/EqualSizeFlexRow/index.d.ts +1 -0
- package/dist/components/EqualSizeFlexRow/index.js +5 -0
- package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -0
- package/dist/components/EqualSizeGrid/EqualSizeGrid.js +29 -0
- package/dist/components/EqualSizeGrid/index.d.ts +1 -0
- package/dist/components/EqualSizeGrid/index.js +5 -0
- package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -0
- package/dist/components/ErrorHandler/ErrorHandler.js +17 -0
- package/dist/components/ErrorHandler/index.d.ts +1 -0
- package/dist/components/ErrorHandler/index.js +5 -0
- package/dist/components/FeaturedList/FeaturedList.d.ts +7 -0
- package/dist/components/FeaturedList/FeaturedList.js +48 -0
- package/dist/components/FeaturedList/index.d.ts +1 -0
- package/dist/components/FeaturedList/index.js +5 -0
- package/dist/components/Figure/Figure.d.ts +8 -0
- package/dist/components/Figure/Figure.js +23 -0
- package/dist/components/Figure/index.d.ts +1 -0
- package/dist/components/Figure/index.js +5 -0
- package/dist/components/FindUs/FindUs.d.ts +20 -0
- package/dist/components/FindUs/FindUs.js +120 -0
- package/dist/components/FindUs/index.d.ts +1 -0
- package/dist/components/FindUs/index.js +5 -0
- package/dist/components/FooterNavigation/FooterNavigation.d.ts +4 -0
- package/dist/components/FooterNavigation/FooterNavigation.js +24 -0
- package/dist/components/FooterNavigation/index.d.ts +1 -0
- package/dist/components/FooterNavigation/index.js +5 -0
- package/dist/components/GenericList/GenericList.d.ts +6 -0
- package/dist/components/GenericList/GenericList.js +23 -0
- package/dist/components/GenericList/index.d.ts +1 -0
- package/dist/components/GenericList/index.js +5 -0
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -0
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +40 -0
- package/dist/components/GetAirdateWrapper/index.d.ts +1 -0
- package/dist/components/GetAirdateWrapper/index.js +5 -0
- package/dist/components/GradientButton/GradientButton.d.ts +15 -0
- package/dist/components/GradientButton/GradientButton.js +69 -0
- package/dist/components/GradientButton/index.d.ts +1 -0
- package/dist/components/GradientButton/index.js +5 -0
- package/dist/components/GridList/GridList.d.ts +6 -0
- package/dist/components/GridList/GridList.js +28 -0
- package/dist/components/GridList/index.d.ts +1 -0
- package/dist/components/GridList/index.js +5 -0
- package/dist/components/ImageCard/ImageCard.d.ts +3 -0
- package/dist/components/ImageCard/ImageCard.js +113 -0
- package/dist/components/ImageCard/ImageCardCore.d.ts +3 -0
- package/dist/components/ImageCard/ImageCardCore.js +129 -0
- package/dist/components/ImageCard/index.d.ts +1 -0
- package/dist/components/ImageCard/index.js +5 -0
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +15 -0
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +52 -0
- package/dist/components/ImageReplacementAnchor/index.d.ts +1 -0
- package/dist/components/ImageReplacementAnchor/index.js +5 -0
- package/dist/components/InfoPanel/InfoPanel.d.ts +10 -0
- package/dist/components/InfoPanel/InfoPanel.js +66 -0
- package/dist/components/InfoPanel/index.d.ts +1 -0
- package/dist/components/InfoPanel/index.js +5 -0
- package/dist/components/InlineNavigation/InlineNavigation.d.ts +6 -0
- package/dist/components/InlineNavigation/InlineNavigation.js +27 -0
- package/dist/components/InlineNavigation/index.d.ts +1 -0
- package/dist/components/InlineNavigation/index.js +4 -0
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.js +57 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.js +5 -0
- package/dist/components/InstructionsList/InstructionsList.d.ts +5 -0
- package/dist/components/InstructionsList/InstructionsList.js +17 -0
- package/dist/components/InstructionsList/index.d.ts +1 -0
- package/dist/components/InstructionsList/index.js +5 -0
- package/dist/components/Loading/Loading.d.ts +8 -0
- package/dist/components/Loading/Loading.js +36 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/Loading/index.js +5 -0
- package/dist/components/LoadingV2/LoadingV2.d.ts +7 -0
- package/dist/components/LoadingV2/LoadingV2.js +39 -0
- package/dist/components/LoadingV2/index.d.ts +1 -0
- package/dist/components/LoadingV2/index.js +5 -0
- package/dist/components/LogoListItem/LogoListItem.d.ts +7 -0
- package/dist/components/LogoListItem/LogoListItem.js +29 -0
- package/dist/components/LogoListItem/index.d.ts +1 -0
- package/dist/components/LogoListItem/index.js +5 -0
- package/dist/components/LogoNavigation/LogoNavigation.d.ts +5 -0
- package/dist/components/LogoNavigation/LogoNavigation.js +23 -0
- package/dist/components/LogoNavigation/index.d.ts +1 -0
- package/dist/components/LogoNavigation/index.js +5 -0
- package/dist/components/ModalContainer/ModalContainer.d.ts +9 -0
- package/dist/components/ModalContainer/ModalContainer.js +108 -0
- package/dist/components/ModalContainer/index.d.ts +1 -0
- package/dist/components/ModalContainer/index.js +5 -0
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -0
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +29 -0
- package/dist/components/MultiLayeredFigure/index.d.ts +1 -0
- package/dist/components/MultiLayeredFigure/index.js +5 -0
- package/dist/components/NavList/NavList.d.ts +8 -0
- package/dist/components/NavList/NavList.js +33 -0
- package/dist/components/NavList/index.d.ts +1 -0
- package/dist/components/NavList/index.js +5 -0
- package/dist/components/Overlay/Overlay.d.ts +6 -0
- package/dist/components/Overlay/Overlay.js +37 -0
- package/dist/components/Overlay/index.d.ts +1 -0
- package/dist/components/Overlay/index.js +5 -0
- package/dist/components/PageHero/PageHero.d.ts +6 -0
- package/dist/components/PageHero/PageHero.js +19 -0
- package/dist/components/PageHero/index.d.ts +1 -0
- package/dist/components/PageHero/index.js +5 -0
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +14 -0
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +40 -0
- package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +1 -0
- package/dist/components/PageHero/page-hero-layouts/ContentHero/index.js +5 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +6 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +64 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +1 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/index.js +5 -0
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +13 -0
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +35 -0
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +1 -0
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.js +5 -0
- package/dist/components/PageHero/page-hero-layouts/index.d.ts +3 -0
- package/dist/components/PageHero/page-hero-layouts/index.js +8 -0
- package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +11 -0
- package/dist/components/ProgramAirdate/ProgramAirdate.js +151 -0
- package/dist/components/ProgramAirdate/index.d.ts +1 -0
- package/dist/components/ProgramAirdate/index.js +5 -0
- package/dist/components/PromotionBlock/PromotionBlock.d.ts +5 -0
- package/dist/components/PromotionBlock/PromotionBlock.js +43 -0
- package/dist/components/PromotionBlock/index.d.ts +1 -0
- package/dist/components/PromotionBlock/index.js +5 -0
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -0
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +10 -0
- package/dist/components/PromotionsRowBlock/index.d.ts +1 -0
- package/dist/components/PromotionsRowBlock/index.js +5 -0
- package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +6 -0
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +113 -0
- package/dist/components/PromotionsRowModule/index.d.ts +1 -0
- package/dist/components/PromotionsRowModule/index.js +5 -0
- package/dist/components/RescanInstructions/RescanInstructions.d.ts +4 -0
- package/dist/components/RescanInstructions/RescanInstructions.js +30 -0
- package/dist/components/RescanInstructions/index.d.ts +1 -0
- package/dist/components/RescanInstructions/index.js +5 -0
- package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +14 -0
- package/dist/components/ResponsiveImage/ResponsiveImage.js +34 -0
- package/dist/components/ResponsiveImage/index.d.ts +1 -0
- package/dist/components/ResponsiveImage/index.js +5 -0
- package/dist/components/ResultsTable/ResultsTable.d.ts +7 -0
- package/dist/components/ResultsTable/ResultsTable.js +26 -0
- package/dist/components/ResultsTable/index.d.ts +1 -0
- package/dist/components/ResultsTable/index.js +5 -0
- package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +6 -0
- package/dist/components/ResultsTableBody/ResultsTableBody.js +51 -0
- package/dist/components/ResultsTableBody/index.d.ts +1 -0
- package/dist/components/ResultsTableBody/index.js +5 -0
- package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +4 -0
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +21 -0
- package/dist/components/ResultsTableHeader/index.d.ts +1 -0
- package/dist/components/ResultsTableHeader/index.js +5 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +6 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.js +28 -0
- package/dist/components/ScheduleLayout/index.d.ts +1 -0
- package/dist/components/ScheduleLayout/index.js +5 -0
- package/dist/components/ScheduleList/ScheduleList.d.ts +6 -0
- package/dist/components/ScheduleList/ScheduleList.js +100 -0
- package/dist/components/ScheduleList/index.d.ts +1 -0
- package/dist/components/ScheduleList/index.js +5 -0
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +5 -0
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +21 -0
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +8 -0
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +39 -0
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +8 -0
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +41 -0
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +8 -0
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +39 -0
- package/dist/components/SectionedContent/SectionedContent.d.ts +4 -0
- package/dist/components/SectionedContent/SectionedContent.js +23 -0
- package/dist/components/SectionedContent/index.d.ts +1 -0
- package/dist/components/SectionedContent/index.js +5 -0
- package/dist/components/Select/Select.d.ts +12 -0
- package/dist/components/Select/Select.js +64 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +5 -0
- package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +8 -0
- package/dist/components/ShowAboutContent/ShowAboutContent.js +69 -0
- package/dist/components/ShowAboutContent/index.d.ts +1 -0
- package/dist/components/ShowAboutContent/index.js +5 -0
- package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +8 -0
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +53 -0
- package/dist/components/ShowAboutLayout/index.d.ts +1 -0
- package/dist/components/ShowAboutLayout/index.js +5 -0
- package/dist/components/SocialLinks/SocialLinks.d.ts +11 -0
- package/dist/components/SocialLinks/SocialLinks.js +260 -0
- package/dist/components/SocialLinks/index.d.ts +1 -0
- package/dist/components/SocialLinks/index.js +5 -0
- package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -0
- package/dist/components/SocialShareBlock/SocialShareBlock.js +44 -0
- package/dist/components/SocialShareBlock/index.d.ts +1 -0
- package/dist/components/SocialShareBlock/index.js +5 -0
- package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -0
- package/dist/components/SocialShareButton/SocialShareButton.js +9 -0
- package/dist/components/SocialShareButton/index.d.ts +1 -0
- package/dist/components/SocialShareButton/index.js +5 -0
- package/dist/components/StringList/StringList.d.ts +6 -0
- package/dist/components/StringList/StringList.js +30 -0
- package/dist/components/StringList/index.d.ts +1 -0
- package/dist/components/StringList/index.js +5 -0
- package/dist/components/TabContent/TabContent.d.ts +5 -0
- package/dist/components/TabContent/TabContent.js +10 -0
- package/dist/components/TabContent/index.d.ts +1 -0
- package/dist/components/TabContent/index.js +5 -0
- package/dist/components/TabNavigation/TabNavigation.d.ts +6 -0
- package/dist/components/TabNavigation/TabNavigation.js +69 -0
- package/dist/components/TabNavigation/index.d.ts +1 -0
- package/dist/components/TabNavigation/index.js +5 -0
- package/dist/components/TabbedContent/TabbedContent.d.ts +5 -0
- package/dist/components/TabbedContent/TabbedContent.js +15 -0
- package/dist/components/TabbedContent/index.d.ts +1 -0
- package/dist/components/TabbedContent/index.js +5 -0
- package/dist/components/TextArea/TextArea.d.ts +2 -0
- package/dist/components/TextArea/TextArea.js +49 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextArea/index.js +5 -0
- package/dist/components/UpcomingList/UpcomingList.d.ts +5 -0
- package/dist/components/UpcomingList/UpcomingList.js +61 -0
- package/dist/components/UpcomingList/index.d.ts +1 -0
- package/dist/components/UpcomingList/index.js +5 -0
- package/dist/containers/GetFeatruedListContainer.d.ts +17 -0
- package/dist/containers/GetFeatruedListContainer.js +50 -0
- package/dist/containers/NowPlayingContainer.d.ts +16 -0
- package/dist/containers/NowPlayingContainer.js +87 -0
- package/dist/data-resources/FakeDataResource.d.ts +95 -0
- package/dist/data-resources/FakeDataResource.js +692 -0
- package/dist/error-boundries/BlankErrorBoundry.d.ts +15 -0
- package/dist/error-boundries/BlankErrorBoundry.js +25 -0
- package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -0
- package/dist/error-boundries/GeneralErrorBoundry.js +27 -0
- package/dist/facebook-osmzgL7R.mjs +54 -0
- package/dist/format-DF9p-6BI.mjs +1221 -0
- package/dist/hooks/useAddScriptTags.d.ts +2 -0
- package/dist/hooks/useAddScriptTags.js +8 -0
- package/dist/hooks/useGetSchedule.d.ts +14 -0
- package/dist/hooks/useGetSchedule.js +58 -0
- package/dist/hooks/useGetUpcoming.d.ts +7 -0
- package/dist/hooks/useGetUpcoming.js +28 -0
- package/dist/hooks/useOptinMonsterReset.d.ts +4 -0
- package/dist/hooks/useOptinMonsterReset.js +41 -0
- package/dist/hooks/useSourcepointPrivacyTrigger.d.ts +4 -0
- package/dist/hooks/useSourcepointPrivacyTrigger.js +23 -0
- package/dist/icons/Facebook.d.ts +3 -0
- package/dist/icons/Facebook.js +33 -0
- package/dist/icons/Tiktok.d.ts +3 -0
- package/dist/icons/Tiktok.js +35 -0
- package/dist/icons/Twitter.d.ts +3 -0
- package/dist/icons/Twitter.js +35 -0
- package/dist/index-0wieGV50.mjs +133 -0
- package/dist/index-CZzwT3Oj.mjs +662 -0
- package/dist/index-DB0QlRo7.mjs +1827 -0
- package/dist/index-YbL9dKxh.mjs +19068 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +158 -0
- package/dist/secl-ui.d.ts +2 -0
- package/dist/settings.d.ts +3 -0
- package/dist/settings.js +30 -0
- package/dist/sub-DTz41m8W.mjs +17 -0
- package/dist/subMonths-YdVF7zsL.mjs +11 -0
- package/dist/triangle-D0AHL9lB.mjs +54 -0
- package/dist/utils/Redirect.d.ts +4 -0
- package/dist/utils/Redirect.js +9 -0
- package/dist/utils/analytics.d.ts +1 -0
- package/dist/utils/analytics.js +458 -0
- package/dist/utils/createSocialShareLinks.d.ts +7 -0
- package/dist/utils/createSocialShareLinks.js +65 -0
- package/dist/utils/date-helpers.d.ts +31 -0
- package/dist/utils/date-helpers.js +49 -0
- package/dist/utils/events.d.ts +3 -0
- package/dist/utils/events.js +15 -0
- package/dist/utils/getCarouselOptions.d.ts +1 -0
- package/dist/utils/getCarouselOptions.js +64 -0
- package/dist/utils/getFeaturedList.d.ts +22 -0
- package/dist/utils/getFeaturedList.js +66 -0
- package/dist/utils/getFeaturedListImages.d.ts +5 -0
- package/dist/utils/getFeaturedListImages.js +36 -0
- package/dist/utils/getOnNowProgram.d.ts +12 -0
- package/dist/utils/getOnNowProgram.js +116 -0
- package/dist/utils/getSchedule.d.ts +7 -0
- package/dist/utils/getSchedule.js +31 -0
- package/dist/utils/getUpcomingPrograms.d.ts +18 -0
- package/dist/utils/getUpcomingPrograms.js +30 -0
- package/dist/utils/getViewingPlatforms.d.ts +16 -0
- package/dist/utils/getViewingPlatforms.js +34 -0
- package/dist/utils/gtm.d.ts +4 -0
- package/dist/utils/gtm.js +17 -0
- package/dist/utils/helpers.d.ts +116 -0
- package/dist/utils/helpers.js +117 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/optinMonsterReset.d.ts +4 -0
- package/dist/utils/optinMonsterReset.js +18 -0
- package/dist/utils/optinMonsterScript.d.ts +4 -0
- package/dist/utils/optinMonsterScript.js +20 -0
- package/dist/utils/program-helpers.d.ts +50 -0
- package/dist/utils/program-helpers.js +33 -0
- package/dist/utils/schedule-helpers.d.ts +1 -0
- package/dist/utils/schedule-helpers.js +7 -0
- package/dist/utils/series-helpers.d.ts +50 -0
- package/dist/utils/series-helpers.js +33 -0
- package/dist/utils/wpPlatformsTransformer.d.ts +1 -0
- package/dist/utils/wpPlatformsTransformer.js +28 -0
- package/dist/vite-env.d.js +1 -0
- package/dist/vite.svg +1 -0
- package/dist/x-D8_C2o-U.mjs +62 -0
- package/package.json +131 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const a = (t, l, o = "local") => {
|
|
2
|
+
let e = {};
|
|
3
|
+
return t === "BANNER" ? e = {
|
|
4
|
+
paginationType: "dots",
|
|
5
|
+
showControls: !0,
|
|
6
|
+
controlArrowSize: 72,
|
|
7
|
+
controlButtonsOffset: -5.25,
|
|
8
|
+
showScrollbar: !1,
|
|
9
|
+
startIndex: 0,
|
|
10
|
+
variableHeight: !1,
|
|
11
|
+
title: l,
|
|
12
|
+
autoplay: o !== "local",
|
|
13
|
+
autoplayDelay: 6e3,
|
|
14
|
+
showPagination: !0,
|
|
15
|
+
gutterSize: 0,
|
|
16
|
+
slideAspectRatio: 2.011764705882353,
|
|
17
|
+
slideGap: 1.5,
|
|
18
|
+
cellsPerSlide: 1,
|
|
19
|
+
cellAspectRatio: 2.011764705882353,
|
|
20
|
+
cellsPosition: "center",
|
|
21
|
+
wrapAround: !0
|
|
22
|
+
} : t === "FEATURED" ? e = {
|
|
23
|
+
paginationType: "dots",
|
|
24
|
+
showControls: !0,
|
|
25
|
+
controlArrowSize: 64,
|
|
26
|
+
controlButtonsOffset: -2,
|
|
27
|
+
showScrollbar: !1,
|
|
28
|
+
startIndex: 0,
|
|
29
|
+
variableHeight: !1,
|
|
30
|
+
title: l,
|
|
31
|
+
autoplay: !1,
|
|
32
|
+
autoplayDelay: 6e3,
|
|
33
|
+
showPagination: !1,
|
|
34
|
+
gutterSize: 0,
|
|
35
|
+
slideAspectRatio: "",
|
|
36
|
+
slideGap: 2.5,
|
|
37
|
+
cellsPerSlide: 4,
|
|
38
|
+
cellAspectRatio: 0.6561461794019934,
|
|
39
|
+
cellsPosition: "flex-start",
|
|
40
|
+
wrapAround: !1
|
|
41
|
+
} : t === "TWO_COLUMN" && (e = {
|
|
42
|
+
paginationType: "dots",
|
|
43
|
+
showControls: !0,
|
|
44
|
+
controlArrowSize: 64,
|
|
45
|
+
controlButtonsOffset: -4.5,
|
|
46
|
+
showScrollbar: !1,
|
|
47
|
+
startIndex: 0,
|
|
48
|
+
variableHeight: !1,
|
|
49
|
+
title: l,
|
|
50
|
+
autoplay: !1,
|
|
51
|
+
autoplayDelay: 6e3,
|
|
52
|
+
showPagination: !0,
|
|
53
|
+
gutterSize: 0,
|
|
54
|
+
slideAspectRatio: 2.6666666666666665,
|
|
55
|
+
slideGap: 1.5,
|
|
56
|
+
cellsPerSlide: 1,
|
|
57
|
+
cellAspectRatio: 2.6666666666666665,
|
|
58
|
+
cellsPosition: "center",
|
|
59
|
+
wrapAround: !1
|
|
60
|
+
}), e;
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
a as getCarouselOptions
|
|
64
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets a list of programs that meet the acceptance criteria
|
|
3
|
+
* Will run until numberOfPrograms are found or until the end of the schedule is reached
|
|
4
|
+
*
|
|
5
|
+
* @param {object} param0
|
|
6
|
+
* @param {number} [param0.numberOfPrograms = 4] - number of programs to return
|
|
7
|
+
* @param {string} [param0.startTime = 11:00] - earliest time of day to return programs
|
|
8
|
+
* @param {string} [param0.endTime = 23:00] - latest time of day to return programs
|
|
9
|
+
* @param {string} [param0.type = series] - type of program to return (allowed values: series, movies, all)
|
|
10
|
+
* @param {string} param0.SCHEDULE_ENDPOINT - the api endpoint for the schedule
|
|
11
|
+
* @param {string} param0.NETWORK - the network to get the schedule for
|
|
12
|
+
|
|
13
|
+
* @returns {array} - an array of programs
|
|
14
|
+
*/
|
|
15
|
+
export function getFeaturedList({ numberOfPrograms, startTime, endTime, type, canUseSameDay, SCHEDULE_ENDPOINT, NETWORK, }: {
|
|
16
|
+
numberOfPrograms?: number | undefined;
|
|
17
|
+
startTime?: string | undefined;
|
|
18
|
+
endTime?: string | undefined;
|
|
19
|
+
type?: string | undefined;
|
|
20
|
+
SCHEDULE_ENDPOINT: string;
|
|
21
|
+
NETWORK: string;
|
|
22
|
+
}): array;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { a as M } from "../add-DH4DZT_w.mjs";
|
|
2
|
+
import { f as _ } from "../format-DF9p-6BI.mjs";
|
|
3
|
+
import { determineSeriesPrefix as w } from "./program-helpers.js";
|
|
4
|
+
import { g as k } from "../index-0wieGV50.mjs";
|
|
5
|
+
const D = /* @__PURE__ */ new Date(), T = /* @__PURE__ */ new Map([
|
|
6
|
+
["series", "Episode"],
|
|
7
|
+
["movies", "Film"],
|
|
8
|
+
["films", "Film"],
|
|
9
|
+
["all", "All"]
|
|
10
|
+
]), A = async ({ startDateTime: i, offset: o, type: c, SCHEDULE_ENDPOINT: l, NETWORK: f }) => {
|
|
11
|
+
const d = _(i, "yyyy-MM-dd"), u = _(M(i, { days: 60 }), "yyyy-MM-dd"), r = `${l}/${f}?ordering=start_ts_parse&&start_date__range=${d},${u}&limit=100&offset=${o}&program_class__iexact=${T.get(c)}`;
|
|
12
|
+
try {
|
|
13
|
+
const e = await fetch(r);
|
|
14
|
+
return e != null && e.ok ? await e.json() : (console.log(`An error was returned from fetch. HTTP Response Code: ', ${e == null ? void 0 : e.status}`), null);
|
|
15
|
+
} catch (e) {
|
|
16
|
+
return console.log("Fetch failed with error:", e), null;
|
|
17
|
+
}
|
|
18
|
+
}, b = async ({
|
|
19
|
+
numberOfPrograms: i = 4,
|
|
20
|
+
startTime: o = "11:00",
|
|
21
|
+
endTime: c = "23:00",
|
|
22
|
+
type: l = "series",
|
|
23
|
+
canUseSameDay: f = !1,
|
|
24
|
+
SCHEDULE_ENDPOINT: d,
|
|
25
|
+
NETWORK: u
|
|
26
|
+
}) => {
|
|
27
|
+
let r = [], e = [], n = [], g = "", p = 0;
|
|
28
|
+
do {
|
|
29
|
+
const m = await A({
|
|
30
|
+
startDateTime: D,
|
|
31
|
+
offset: p,
|
|
32
|
+
type: l,
|
|
33
|
+
SCHEDULE_ENDPOINT: d,
|
|
34
|
+
NETWORK: u
|
|
35
|
+
});
|
|
36
|
+
if (m !== null) {
|
|
37
|
+
const s = m.results.filter((t) => t.start_ts_parse * 1e3 > D.valueOf());
|
|
38
|
+
g = m.next;
|
|
39
|
+
for (let t = 0; t < s.length; ++t) {
|
|
40
|
+
const h = s[t].start_ts_parse * 1e3, a = _(new Date(h), "yyyy-MM-dd");
|
|
41
|
+
if (!f && n.includes(a)) continue;
|
|
42
|
+
const y = k("America/New_York", /* @__PURE__ */ new Date(`${a}T${o}`)) / 36e5, x = (/* @__PURE__ */ new Date(`${a}T${o}:00-0${y * -1}:00`)).valueOf(), S = (/* @__PURE__ */ new Date(`${a}T${c}:00-0${y * -1}:00`)).valueOf();
|
|
43
|
+
if (h >= x && h <= S)
|
|
44
|
+
switch (T.get(l)) {
|
|
45
|
+
case "Episode": {
|
|
46
|
+
let $ = w(s[t].series_prefix);
|
|
47
|
+
e.includes($) || (r.push(s[t]), e.push($), n.push(a));
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
case "Film":
|
|
51
|
+
e.includes(s[t].title_code) || (r.push(s[t]), e.push(s[t].title_code), n.push(a));
|
|
52
|
+
break;
|
|
53
|
+
case "All":
|
|
54
|
+
!e.includes(s[t].title_code) && !e.includes(w(s[t].series_prefix)) && (r.push(s[t]), e.push(s[t].series_prefix ?? s[t].title_code), n.push(a));
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
if (r.length >= i) break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
p = p + 100;
|
|
61
|
+
} while (r.length < i && g !== null);
|
|
62
|
+
return r;
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
b as getFeaturedList
|
|
66
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { determineSeriesPrefix as $ } from "./program-helpers.js";
|
|
2
|
+
const A = async ({ featuredList: s, fallbackImage: d, getResource: q }) => {
|
|
3
|
+
var n, m, c, g, a, p, u, I, h, x, y, F, S, _, w;
|
|
4
|
+
const i = [];
|
|
5
|
+
for (let e = 0; e < s.length; e++) {
|
|
6
|
+
let r = "", t = "", o = "";
|
|
7
|
+
if (s[e].program_class === "Episode" ? (r = `seriesPrefix = ${$(s[e].series_prefix)}`, t = "SeriesList", o = "showFeaturedImage") : s[e].program_class === "Film" && (r = `titleCode = ${s[e].title_code}`, t = "MovieList", o = "movieFeaturedImage"), r !== "") {
|
|
8
|
+
const l = await await q({
|
|
9
|
+
queryKey: [
|
|
10
|
+
"",
|
|
11
|
+
{
|
|
12
|
+
resourceName: o,
|
|
13
|
+
queryVars: {
|
|
14
|
+
id: r
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}), v = ((h = (I = (u = (p = (a = (g = (c = (m = (n = l[t]) == null ? void 0 : n.items) == null ? void 0 : m[0]) == null ? void 0 : c.featuredImage) == null ? void 0 : g.image) == null ? void 0 : a.sizes) == null ? void 0 : p[0]) == null ? void 0 : u.srcSets) == null ? void 0 : I[1]) == null ? void 0 : h.src) ?? d.url, P = (F = (y = (x = l[t]) == null ? void 0 : x.items) == null ? void 0 : y[0]) != null && F.slug ? (w = (_ = (S = l[t]) == null ? void 0 : S.items) == null ? void 0 : _[0]) == null ? void 0 : w.slug : s[e].content.slug !== "" ? s[e].content.slug : "";
|
|
19
|
+
i.push({
|
|
20
|
+
...s[e],
|
|
21
|
+
content: {
|
|
22
|
+
...s[e].content,
|
|
23
|
+
image: v,
|
|
24
|
+
slug: P
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
} else
|
|
28
|
+
i.push({
|
|
29
|
+
...s[e]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return i;
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
A as getFeaturedListImages
|
|
36
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the current airing or upcoming program
|
|
3
|
+
* Returns undefined if no program is found
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} options
|
|
6
|
+
* @param {boolean} options.showEpisodeNumber
|
|
7
|
+
*
|
|
8
|
+
* @returns {Object|undefined}
|
|
9
|
+
*/
|
|
10
|
+
export function getOnNowProgram(options?: {
|
|
11
|
+
showEpisodeNumber: boolean;
|
|
12
|
+
}): Object | undefined;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { a as U } from "../add-DH4DZT_w.mjs";
|
|
2
|
+
import { f as Y } from "../format-DF9p-6BI.mjs";
|
|
3
|
+
import { getCurrentEasternProgrammingDateStr as V, determineIfShowIsOnNow as Z } from "./date-helpers.js";
|
|
4
|
+
import { convert12to24 as d } from "./helpers.js";
|
|
5
|
+
import { determineSeriesPrefix as B, determineSeasonNumberFromSeriesPrefix as D, determineEpisodeNumber as G } from "./series-helpers.js";
|
|
6
|
+
import { g as J } from "../index-0wieGV50.mjs";
|
|
7
|
+
const H = /* @__PURE__ */ new Date(`${V()}T00:00:00`), Q = (o) => {
|
|
8
|
+
const n = o.substring(0, o.lastIndexOf("S") - 1);
|
|
9
|
+
return n === "" ? o : n;
|
|
10
|
+
}, W = async ({ scheduleEndpoint: o, network: n }) => {
|
|
11
|
+
let i = [], m = {}, s = 0, l = "";
|
|
12
|
+
const c = Y(H, "yyyy-MM-dd"), u = Y(U(H, { days: 2 }), "yyyy-MM-dd");
|
|
13
|
+
do {
|
|
14
|
+
l = `${o}/${n}?ordering=start_ts_parse&start_date__range=${c},${u}&limit=100&offset=${s}`;
|
|
15
|
+
try {
|
|
16
|
+
const a = await fetch(l);
|
|
17
|
+
if (a != null && a.ok)
|
|
18
|
+
m = await a.json(), i = [...i, ...m.results];
|
|
19
|
+
else {
|
|
20
|
+
console.error(`An error was returned from fetch. HTTP Response Code: ', ${a == null ? void 0 : a.status}`);
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
} catch (a) {
|
|
24
|
+
console.error("Fetch failed with error:", a);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
s += 100;
|
|
28
|
+
} while (m.next !== null);
|
|
29
|
+
return { results: i };
|
|
30
|
+
}, K = async ({ seriesPrefix: o, getResource: n, resourceName: i = "onnow" }) => {
|
|
31
|
+
var s;
|
|
32
|
+
return await ((s = (await n({
|
|
33
|
+
queryKey: [
|
|
34
|
+
"",
|
|
35
|
+
{
|
|
36
|
+
resourceName: i,
|
|
37
|
+
queryVars: {
|
|
38
|
+
id: `seriesPrefix = ${o}`
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
})).SeriesList) == null ? void 0 : s.items[0]);
|
|
43
|
+
}, X = async (o) => {
|
|
44
|
+
var p, w, y, h, $, N, b, S, P, I, O, T, k, v, x, E, C, M, z, A, F, R, j, q;
|
|
45
|
+
const {
|
|
46
|
+
showEpisodeNumber: n,
|
|
47
|
+
scheduleEndpoint: i,
|
|
48
|
+
network: m,
|
|
49
|
+
fallbackImage: s,
|
|
50
|
+
getResource: l
|
|
51
|
+
} = o;
|
|
52
|
+
let c = "on-now";
|
|
53
|
+
const u = await W({ scheduleEndpoint: i, network: m }), a = /* @__PURE__ */ new Date(), _ = u.results.filter((t) => t.program_class !== null);
|
|
54
|
+
let r = await _.find((t) => Z(`${t.start_date_parse}T${d(t.start_time)}`, t.element_length));
|
|
55
|
+
if (r || (r = _.find((t) => {
|
|
56
|
+
const f = J("America/New_York", /* @__PURE__ */ new Date(`${t.start_date_parse}T${d(t.start_time)}`)) / 36e5;
|
|
57
|
+
return (/* @__PURE__ */ new Date(`${t.start_date_parse}T${d(t.start_time)}:00-0${f * -1}:00`)).valueOf() > a;
|
|
58
|
+
}), c = "upcoming"), r === void 0) {
|
|
59
|
+
console.error("No program found for today");
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (r.program_class === "Episode") {
|
|
63
|
+
const t = B(r.series_prefix), f = n ? D(r) : null, L = n ? G(r) : null;
|
|
64
|
+
let e = await K({ seriesPrefix: t, getResource: l });
|
|
65
|
+
return e === void 0 && (e = await K({ seriesPrefix: t, getResource: l, resourceName: "onnowinactive" })), e === void 0 && console.warn(`No series data found for seriesPrefix: ${t}`), {
|
|
66
|
+
program: {
|
|
67
|
+
program_class: r.program_class,
|
|
68
|
+
episode: {
|
|
69
|
+
series: {
|
|
70
|
+
logo: {
|
|
71
|
+
black: {
|
|
72
|
+
url: (w = (p = e == null ? void 0 : e.logoImage) == null ? void 0 : p.image) == null ? void 0 : w.publicUrl
|
|
73
|
+
},
|
|
74
|
+
dimensions: e ? ((h = (y = e.logoImage) == null ? void 0 : y.image) == null ? void 0 : h.width) / ((N = ($ = e.logoImage) == null ? void 0 : $.image) == null ? void 0 : N.height) : 1,
|
|
75
|
+
aspect_ratio: e ? ((S = (b = e.logoImage) == null ? void 0 : b.image) == null ? void 0 : S.width) / ((I = (P = e.logoImage) == null ? void 0 : P.image) == null ? void 0 : I.height) : 1
|
|
76
|
+
},
|
|
77
|
+
image: {
|
|
78
|
+
url: ((O = r.content) == null ? void 0 : O.image) === "" ? s.url : (T = r.content) == null ? void 0 : T.image,
|
|
79
|
+
sizes: e ? (E = (x = (v = (k = e == null ? void 0 : e.items) == null ? void 0 : k[0]) == null ? void 0 : v.nowPlayingImage) == null ? void 0 : x.image) == null ? void 0 : E.sizes : void 0
|
|
80
|
+
},
|
|
81
|
+
primary_color: ((z = (M = (C = e == null ? void 0 : e.colors) == null ? void 0 : C.entries) == null ? void 0 : M.find((g) => g.key === "primaryColor")) == null ? void 0 : z.value) ?? "var(--theme-color-400)",
|
|
82
|
+
secondary_color: ((R = (F = (A = e == null ? void 0 : e.colors) == null ? void 0 : A.entries) == null ? void 0 : F.find((g) => g.key === "secondaryColor")) == null ? void 0 : R.value) ?? "var(--theme-color-400)",
|
|
83
|
+
slug: (e == null ? void 0 : e.slug) ?? null,
|
|
84
|
+
name: (e == null ? void 0 : e.title) ?? Q(r.program)
|
|
85
|
+
},
|
|
86
|
+
season: f,
|
|
87
|
+
number: L,
|
|
88
|
+
name: r.title_name
|
|
89
|
+
},
|
|
90
|
+
airdate: `${r.start_date} ${d(r.start_time)}`
|
|
91
|
+
},
|
|
92
|
+
type: c
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
if (r.program_class === "Film" || r.program_class === "Sports" || r.program_class === "Special")
|
|
96
|
+
return {
|
|
97
|
+
program: {
|
|
98
|
+
program_class: r.program_class,
|
|
99
|
+
name: r.title_name,
|
|
100
|
+
primary_color: "var(--theme-color-100)",
|
|
101
|
+
secondary_color: "var(--theme-color-200)",
|
|
102
|
+
airdate: `${r.start_date} ${d(r.start_time)}`,
|
|
103
|
+
episode: {
|
|
104
|
+
series: {
|
|
105
|
+
image: {
|
|
106
|
+
url: ((j = r.content) == null ? void 0 : j.image) === "" ? s.url : (q = r.content) == null ? void 0 : q.image
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
type: c
|
|
112
|
+
};
|
|
113
|
+
}, se = async (o = { showEpisodeNumber: !1 }) => await X(o);
|
|
114
|
+
export {
|
|
115
|
+
se as getOnNowProgram
|
|
116
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { arrangeSchedule as w } from "./schedule-helpers.js";
|
|
2
|
+
const f = async ({ day: s, oa: a, ct: o, scheduleApiUrl: r }) => {
|
|
3
|
+
const i = async () => await (await fetch(a, {
|
|
4
|
+
method: "POST",
|
|
5
|
+
headers: {
|
|
6
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
7
|
+
Authorization: `Basic ${o}`
|
|
8
|
+
}
|
|
9
|
+
})).json(), c = async (e) => {
|
|
10
|
+
let g = `${r}?start_date__range=${s},${s}&offset=0&limit=100`;
|
|
11
|
+
return (await fetch(g, {
|
|
12
|
+
headers: {
|
|
13
|
+
Authorization: `Bearer ${e}`
|
|
14
|
+
}
|
|
15
|
+
})).json();
|
|
16
|
+
}, n = async () => {
|
|
17
|
+
let e = await i();
|
|
18
|
+
return t = (e == null ? void 0 : e.access_token) ?? "", t !== "" && sessionStorage.setItem("snn:at", JSON.stringify({ at: t, setAt: (/* @__PURE__ */ new Date()).getTime() })), t;
|
|
19
|
+
};
|
|
20
|
+
let t = "";
|
|
21
|
+
if (sessionStorage.getItem("snn:at")) {
|
|
22
|
+
const e = JSON.parse(sessionStorage.getItem("snn:at"));
|
|
23
|
+
e.setAt + 864e5 > (/* @__PURE__ */ new Date()).getTime() ? t = e.at : t = await n();
|
|
24
|
+
} else
|
|
25
|
+
t = await n();
|
|
26
|
+
const l = await c(t);
|
|
27
|
+
return w(l.results);
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
f as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {object} param0
|
|
4
|
+
* @param {string} param0.programId - the program id to get upcoming air dates for
|
|
5
|
+
* @param {string} param0.programType - the type of program to get air dates for (allowed values: series, film, movie)
|
|
6
|
+
* @param {number} param0.maxResults - the maximum number of results to return
|
|
7
|
+
* @param {string} param0.SCHEDULE_ENDPOINT - the api endpoint for the schedule
|
|
8
|
+
* @param {string} param0.NETWORK - the network to get the schedule for
|
|
9
|
+
*
|
|
10
|
+
* @returns {array} - an array of upcoming programs
|
|
11
|
+
*/
|
|
12
|
+
export function getUpcomingAirDates({ programId, programType, maxResults, SCHEDULE_ENDPOINT, NETWORK }: {
|
|
13
|
+
programId: string;
|
|
14
|
+
programType: string;
|
|
15
|
+
maxResults: number;
|
|
16
|
+
SCHEDULE_ENDPOINT: string;
|
|
17
|
+
NETWORK: string;
|
|
18
|
+
}): array;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { a as f } from "../add-DH4DZT_w.mjs";
|
|
2
|
+
import { f as c } from "../format-DF9p-6BI.mjs";
|
|
3
|
+
const l = async (t, o = "series", r, i, s) => {
|
|
4
|
+
const a = /* @__PURE__ */ new Map([
|
|
5
|
+
["series", `series_prefix__icontains=${t}`],
|
|
6
|
+
["film", `title_code__iexact=${t}`],
|
|
7
|
+
["movie", `title_code__iexact=${t}`]
|
|
8
|
+
]), n = `${r}/${i}?ordering=start_ts_parse&${a.get(o)}&start_date__range=${c(s, "yyyy-MM-dd")},${c(f(s, { days: 14 }), "yyyy-MM-dd")}&limit=20`;
|
|
9
|
+
try {
|
|
10
|
+
const e = await fetch(n);
|
|
11
|
+
if (e != null && e.ok)
|
|
12
|
+
return await e.json();
|
|
13
|
+
console.log(`An error was returned from fetch. HTTP Response Code: ', ${e == null ? void 0 : e.status}`);
|
|
14
|
+
} catch (e) {
|
|
15
|
+
console.log("Fetch failed with error:", e);
|
|
16
|
+
}
|
|
17
|
+
}, p = async ({
|
|
18
|
+
programId: t,
|
|
19
|
+
programType: o = "series",
|
|
20
|
+
maxResults: r = 6,
|
|
21
|
+
SCHEDULE_ENDPOINT: i,
|
|
22
|
+
NETWORK: s
|
|
23
|
+
}) => {
|
|
24
|
+
const a = /* @__PURE__ */ new Date();
|
|
25
|
+
let e = (await l(t, o, i, s, a)).results.filter((_) => _.start_ts_parse * 1e3 > a.valueOf());
|
|
26
|
+
return e.length > r && (e = e.splice(0, r)), await e;
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
p as getUpcomingAirDates
|
|
30
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function getViewingPlatforms({ network, platformsApiUrl }: {
|
|
2
|
+
network: any;
|
|
3
|
+
platformsApiUrl: any;
|
|
4
|
+
}): Promise<Map<any, any> | {
|
|
5
|
+
error: {
|
|
6
|
+
type: string;
|
|
7
|
+
statusCode: number;
|
|
8
|
+
message?: undefined;
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
11
|
+
error: {
|
|
12
|
+
type: string;
|
|
13
|
+
message: unknown;
|
|
14
|
+
statusCode?: undefined;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const g = async ({ network: l, platformsApiUrl: s }) => {
|
|
2
|
+
try {
|
|
3
|
+
const r = await fetch(`${s}/${l}`);
|
|
4
|
+
if (r != null && r.ok) {
|
|
5
|
+
const a = await r.json();
|
|
6
|
+
let o = /* @__PURE__ */ new Map();
|
|
7
|
+
for (let e = 0; e < a.length; e++)
|
|
8
|
+
o.set(a[e].category, a[e].viewing_platforms.map((t, n) => ({
|
|
9
|
+
id: `${a[e].category.slug}-${n}`,
|
|
10
|
+
image_url: t != null && t.override_image ? t.image_override : t.platform.image,
|
|
11
|
+
alt_text: t.platform.name,
|
|
12
|
+
link: t.link_url,
|
|
13
|
+
target: (t == null ? void 0 : t.target) ?? "_blank"
|
|
14
|
+
})));
|
|
15
|
+
return o;
|
|
16
|
+
} else
|
|
17
|
+
return console.log(`An error was returned from fetch. HTTP Response Code: ', ${r == null ? void 0 : r.status}`), {
|
|
18
|
+
error: {
|
|
19
|
+
type: "Fetch Response Error",
|
|
20
|
+
statusCode: r == null ? void 0 : r.status
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
} catch (r) {
|
|
24
|
+
return console.log("Fetch failed with error:", r), {
|
|
25
|
+
error: {
|
|
26
|
+
type: "Fetch Failed",
|
|
27
|
+
message: r
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
g as getViewingPlatforms
|
|
34
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useEffect as a } from "react";
|
|
2
|
+
const r = ({ gtmId: e = null }) => (a(() => {
|
|
3
|
+
if (e !== null) {
|
|
4
|
+
const t = document.createElement("script");
|
|
5
|
+
t.innerHTML = `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
6
|
+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
7
|
+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
8
|
+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
9
|
+
})(window,document,'script','dataLayer','${e}');`, document.head.appendChild(t);
|
|
10
|
+
const n = document.createElement("noscript");
|
|
11
|
+
n.innerHTML = `<iframe src="https://www.googletagmanager.com/ns.html?id=${e}"
|
|
12
|
+
height="0" width="0" style="display:none;visibility:hidden"></iframe>`, document.body.appendChild(n);
|
|
13
|
+
}
|
|
14
|
+
}, [e]), null);
|
|
15
|
+
export {
|
|
16
|
+
r as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export function createScriptTags(tagOptions?: array): void;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a chunked array from the original array
|
|
4
|
+
* where the chunks are determined by chunkSize
|
|
5
|
+
*
|
|
6
|
+
* @param {number} chunkSize
|
|
7
|
+
* @param {array} array
|
|
8
|
+
* @returns {array} chunkedArray
|
|
9
|
+
*/
|
|
10
|
+
export function chunkArray(chunkSize: number, array: any): any;
|
|
11
|
+
/**
|
|
12
|
+
* Converts a time sting of the format "HH:MM" to
|
|
13
|
+
* a string formatted as "MM MIN"
|
|
14
|
+
*
|
|
15
|
+
* @param {string} runTime
|
|
16
|
+
* @returns {string} - the number of minutes as a string
|
|
17
|
+
*/
|
|
18
|
+
export function getMinutesFromStr(timeLenghtStr: any): string;
|
|
19
|
+
/**
|
|
20
|
+
* Converts a time length in minutes to a string formatted as "HH HR MM MIN"
|
|
21
|
+
*
|
|
22
|
+
* @param {number} timeLenghtInMins - the time length in minutes
|
|
23
|
+
* @returns {string} - the time length formatted as "HH HR MM MIN"
|
|
24
|
+
*/
|
|
25
|
+
export function getHoursMinsStr(timeLenghtInMins: number): string;
|
|
26
|
+
/**
|
|
27
|
+
* Converts a string to a slug
|
|
28
|
+
*
|
|
29
|
+
* convert all characters to lowercase, trim whitespace
|
|
30
|
+
* replace spaces, dashes and underscores with a dash (-)
|
|
31
|
+
* remove special characters
|
|
32
|
+
*
|
|
33
|
+
* @param {string} str
|
|
34
|
+
* @returns {string} - the slugified string
|
|
35
|
+
*/
|
|
36
|
+
export function slugify(str: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* Formats a phone number input to the format
|
|
39
|
+
* (xxx) xxx-xxxx
|
|
40
|
+
*
|
|
41
|
+
* @param {string} value
|
|
42
|
+
* @returns {string} - the formatted phone number
|
|
43
|
+
*/
|
|
44
|
+
export function areaCodePhoneNumberMask(value?: string): string;
|
|
45
|
+
/**
|
|
46
|
+
* Converts a 12h time formatted as H:MM AM/PM
|
|
47
|
+
* to a 24h time formatted as HH:MM
|
|
48
|
+
*
|
|
49
|
+
* @param {string} time12h
|
|
50
|
+
* @returns {string} - the time in 24h format
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
export function convert12to24(time12h: string): string;
|
|
54
|
+
/**
|
|
55
|
+
* Create an HTML class list from an array or nested arrays.
|
|
56
|
+
*
|
|
57
|
+
* It will exclude any value that is not a string. Nested arrays will be flattened.
|
|
58
|
+
*/
|
|
59
|
+
export function classes(list?: any[]): string;
|
|
60
|
+
/**
|
|
61
|
+
* Convert an object into a GET query string
|
|
62
|
+
*
|
|
63
|
+
* @param {object} object
|
|
64
|
+
* @returns {string}
|
|
65
|
+
*/
|
|
66
|
+
export function objectToGetParams(object: object): string;
|
|
67
|
+
/**
|
|
68
|
+
* Open a new window using the window.open method
|
|
69
|
+
*
|
|
70
|
+
* @param {string} url - the url to open
|
|
71
|
+
* @param {number} width - the width of the new window in px
|
|
72
|
+
* @param {number} height - the height of the new window in px
|
|
73
|
+
*
|
|
74
|
+
* @returns {null}
|
|
75
|
+
*/
|
|
76
|
+
export function windowOpen(url: string, width?: number, height?: number, location?: string, menubar?: string, resizable?: string): null;
|
|
77
|
+
/**
|
|
78
|
+
* Converts a string in snake_case to PascalCase.
|
|
79
|
+
*
|
|
80
|
+
* @param {string} str - The snake_case string to be converted.
|
|
81
|
+
* @returns {string} - The converted string in PascalCase.
|
|
82
|
+
*/
|
|
83
|
+
export function snakeToPascal(str: string): string;
|
|
84
|
+
/**
|
|
85
|
+
* Converts a space separated string to camelCase.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} str - The space separated string to be converted.
|
|
88
|
+
* @returns {string} - The converted string in camelCase.
|
|
89
|
+
*/
|
|
90
|
+
export function stringToCamelCase(str: string): string;
|
|
91
|
+
/**
|
|
92
|
+
* Generates the href link for a given program item object based on its slug and type.
|
|
93
|
+
*
|
|
94
|
+
* @param {object} programItem - The program item object containing the slug and type.
|
|
95
|
+
* - Must have a __typename property that is either 'SeriesItem' or 'MovieItem', a slug property that contains the unique identifier for the program item, and have preventDetailPage set to a falsy value.
|
|
96
|
+
* @returns {string} - The href link for the program item, formatted as 'show/{slug}' for SeriesItems or 'movie/{slug}' for MovieItems.
|
|
97
|
+
* - An empty string is returned if programItem is undefined or does not have a valid type or slug.
|
|
98
|
+
*/
|
|
99
|
+
export function generateHrefFromProgramSlug(programItem: object): string;
|
|
100
|
+
/**
|
|
101
|
+
* Determines the alt text for an image associated with an object, based on the object's properties.
|
|
102
|
+
*
|
|
103
|
+
* @param {object} data - The object containing properties related to the image and alt text.
|
|
104
|
+
* - Must have an "omitAltText" property that is a boolean, an "altTextOverride" property that is a string or undefined, and an "image" property that is an array of image objects, with each object having an "alt" property that is a string or undefined.
|
|
105
|
+
* @returns {string} - The alt text for the image, determined based on the slide object's properties.
|
|
106
|
+
* - An empty string is returned if "omitAltText" is true, or none of the other conditions are met.
|
|
107
|
+
* - The value of "altTextOverride" is returned if it is defined & truthy
|
|
108
|
+
* - Otherwise, the alt value associated with the image is returned if it is defined & truthy
|
|
109
|
+
*/
|
|
110
|
+
export function setAltText(data: object): string;
|
|
111
|
+
/**
|
|
112
|
+
* Determines if the current device is a touch device.
|
|
113
|
+
*
|
|
114
|
+
* @returns {boolean} - True if the current device is a touch device, false otherwise.
|
|
115
|
+
*/
|
|
116
|
+
export function isTouchDevice(): boolean;
|