@scrippsproduct/networks-ui-library 1.1.0-alpha.1 → 1.1.0-alpha.12

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.
Files changed (338) hide show
  1. package/dist/Carousel.module-CNJzZW2-.mjs +14 -0
  2. package/dist/{ChoicesItem-CGIr6Qga.mjs → ChoicesItem-CT9fXB0I.mjs} +22 -23
  3. package/dist/PageHero.module-BM0IV1P5.mjs +8 -0
  4. package/dist/ResultsTable.module-1zxhXaem.mjs +14 -0
  5. package/dist/{SocialShareButton-BXGVUD-z.mjs → SocialShareButton-BMhRS9Qr.mjs} +12 -7
  6. package/dist/assets/AdBlock.css +1 -1
  7. package/dist/assets/AirDateFormatter.css +1 -1
  8. package/dist/assets/AnchorTag.css +1 -1
  9. package/dist/assets/BasicGridModule.css +1 -1
  10. package/dist/assets/Button.css +1 -1
  11. package/dist/assets/Carousel.css +1 -1
  12. package/dist/assets/ChannelSearch.css +1 -1
  13. package/dist/assets/ChoicesItem.css +1 -1
  14. package/dist/assets/ContentHero.css +1 -1
  15. package/dist/assets/CtaBlock.css +1 -1
  16. package/dist/assets/CustomDataList.css +1 -1
  17. package/dist/assets/DateNavigation.css +1 -1
  18. package/dist/assets/DeviceAndPlatformLists.css +1 -1
  19. package/dist/assets/Figure2.css +1 -1
  20. package/dist/assets/FindUs.css +1 -1
  21. package/dist/assets/GradientButton.css +1 -1
  22. package/dist/assets/ImageCard.css +1 -1
  23. package/dist/assets/InlineNavigation.css +1 -1
  24. package/dist/assets/LogoListItem.css +1 -1
  25. package/dist/assets/ModalContainer.css +1 -1
  26. package/dist/assets/PageHero.css +1 -1
  27. package/dist/assets/ProgramAirdate.css +1 -1
  28. package/dist/assets/PromotionBlock.css +1 -1
  29. package/dist/assets/ResultsTable.css +1 -1
  30. package/dist/assets/ScheduleLayout.css +1 -0
  31. package/dist/assets/ScheduleList.css +1 -1
  32. package/dist/assets/ShowAboutLayout.css +1 -1
  33. package/dist/assets/ShowSlide.css +1 -1
  34. package/dist/assets/SocialLinks.css +1 -1
  35. package/dist/assets/TextSlide.css +1 -1
  36. package/dist/assets/TwoColumnSlide.css +1 -1
  37. package/dist/assets/UpcomingList.css +1 -1
  38. package/dist/components/AdBlock/AdBlock.d.ts +20 -1
  39. package/dist/components/AdBlock/AdBlock.js +118 -83
  40. package/dist/components/AdBlock/index.d.ts +2 -1
  41. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -1
  42. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +17 -12
  43. package/dist/components/AdjustableTwoColumnGrid/index.d.ts +2 -1
  44. package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -4
  45. package/dist/components/AirDateFormatter/AirDateFormatter.js +21 -22
  46. package/dist/components/AirDateFormatter/index.d.ts +2 -1
  47. package/dist/components/AnchorTag/AnchorTag.d.ts +10 -1
  48. package/dist/components/AnchorTag/AnchorTag.js +22 -23
  49. package/dist/components/AnchorTag/index.d.ts +2 -1
  50. package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +19 -12
  51. package/dist/components/BCVideoPlayer/BCVideoPlayer.js +39 -37
  52. package/dist/components/BCVideoPlayer/index.d.ts +2 -1
  53. package/dist/components/BasicGridModule/BasicGridModule.d.ts +19 -17
  54. package/dist/components/BasicGridModule/BasicGridModule.js +57 -51
  55. package/dist/components/BasicGridModule/index.d.ts +2 -1
  56. package/dist/components/Button/Button.d.ts +18 -17
  57. package/dist/components/Button/Button.js +31 -32
  58. package/dist/components/Button/index.d.ts +2 -1
  59. package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +5 -5
  60. package/dist/components/ButtonAnchor/ButtonAnchor.js +7 -5
  61. package/dist/components/ButtonAnchor/index.d.ts +2 -1
  62. package/dist/components/Carousel/Carousel.js +1 -1
  63. package/dist/components/Carousel/index.d.ts +2 -1
  64. package/dist/components/Carousel/navigations/Pagination.js +12 -10
  65. package/dist/components/CarouselSlide/CarouselSlide.js +25 -87
  66. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +1 -1
  67. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +3 -4
  68. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +18 -16
  69. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +49 -34
  70. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +5 -5
  71. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -4
  72. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +10 -11
  73. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +8 -1
  74. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +19 -15
  75. package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +16 -1
  76. package/dist/components/CastInfoLayout/CastInfoLayout.js +31 -21
  77. package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -16
  78. package/dist/components/ChannelSearch/ChannelSearch.js +80 -63
  79. package/dist/components/ChannelSearch/index.d.ts +2 -1
  80. package/dist/components/ChoicesItem/ChoicesItem.d.ts +7 -4
  81. package/dist/components/ChoicesItem/ChoicesItem.js +3 -4
  82. package/dist/components/ChoicesItem/index.d.ts +2 -1
  83. package/dist/components/ChoicesItem/index.js +1 -1
  84. package/dist/components/ChoicesList/ChoicesList.d.ts +4 -3
  85. package/dist/components/ChoicesList/ChoicesList.js +3 -4
  86. package/dist/components/ChoicesList/index.d.ts +2 -1
  87. package/dist/components/Concat/Concat.d.ts +4 -3
  88. package/dist/components/Concat/Concat.js +5 -5
  89. package/dist/components/Concat/index.d.ts +2 -1
  90. package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +7 -5
  91. package/dist/components/CreateChoiceList/CreateChoiceList.js +38 -9
  92. package/dist/components/CreateChoiceList/index.d.ts +2 -1
  93. package/dist/components/CtaBlock/CtaBlock.d.ts +13 -15
  94. package/dist/components/CtaBlock/CtaBlock.js +23 -22
  95. package/dist/components/CtaBlock/index.d.ts +2 -1
  96. package/dist/components/CustomDataList/CustomDataList.d.ts +12 -10
  97. package/dist/components/CustomDataList/CustomDataList.js +200 -174
  98. package/dist/components/CustomDataList/index.d.ts +2 -1
  99. package/dist/components/CustomSelect/CustomSelect.d.ts +16 -13
  100. package/dist/components/CustomSelect/CustomSelect.js +224 -154
  101. package/dist/components/CustomSelect/index.d.ts +2 -1
  102. package/dist/components/DateNavigation/DateNavigation.d.ts +1 -4
  103. package/dist/components/DateNavigation/DateNavigation.js +125 -82
  104. package/dist/components/DateNavigation/index.d.ts +2 -1
  105. package/dist/components/DatePicker/index.d.ts +2 -1
  106. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +14 -4
  107. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +40 -33
  108. package/dist/components/DeviceAndPlatformLists/index.d.ts +2 -1
  109. package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +21 -1
  110. package/dist/components/DrawerNavigation/DrawerNavigation.js +75 -56
  111. package/dist/components/DrawerNavigation/index.d.ts +2 -1
  112. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -5
  113. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +18 -14
  114. package/dist/components/EqualSizeFlexRow/index.d.ts +2 -1
  115. package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -6
  116. package/dist/components/EqualSizeGrid/EqualSizeGrid.js +17 -12
  117. package/dist/components/EqualSizeGrid/index.d.ts +2 -1
  118. package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -4
  119. package/dist/components/ErrorHandler/ErrorHandler.js +3 -4
  120. package/dist/components/ErrorHandler/index.d.ts +2 -1
  121. package/dist/components/FeaturedList/FeaturedList.d.ts +8 -6
  122. package/dist/components/FeaturedList/FeaturedList.js +44 -36
  123. package/dist/components/FeaturedList/index.d.ts +2 -1
  124. package/dist/components/Figure/Figure.d.ts +5 -4
  125. package/dist/components/Figure/Figure.js +8 -9
  126. package/dist/components/Figure/index.d.ts +2 -1
  127. package/dist/components/FindUs/FindUs.d.ts +24 -1
  128. package/dist/components/FindUs/FindUs.js +70 -63
  129. package/dist/components/FindUs/index.d.ts +2 -1
  130. package/dist/components/FooterNavigation/FooterNavigation.d.ts +9 -3
  131. package/dist/components/FooterNavigation/FooterNavigation.js +10 -11
  132. package/dist/components/FooterNavigation/index.d.ts +2 -1
  133. package/dist/components/GenericList/GenericList.d.ts +6 -5
  134. package/dist/components/GenericList/GenericList.js +13 -14
  135. package/dist/components/GenericList/index.d.ts +2 -1
  136. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -8
  137. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +46 -30
  138. package/dist/components/GetAirdateWrapper/index.d.ts +2 -1
  139. package/dist/components/GradientButton/GradientButton.d.ts +15 -14
  140. package/dist/components/GradientButton/GradientButton.js +37 -40
  141. package/dist/components/GradientButton/index.d.ts +2 -1
  142. package/dist/components/GridList/GridList.d.ts +6 -5
  143. package/dist/components/GridList/GridList.js +14 -10
  144. package/dist/components/GridList/index.d.ts +2 -1
  145. package/dist/components/ImageCard/ImageCard.d.ts +27 -1
  146. package/dist/components/ImageCard/ImageCard.js +59 -58
  147. package/dist/components/ImageCard/ImageCardCore.d.ts +6 -2
  148. package/dist/components/ImageCard/ImageCardCore.js +115 -89
  149. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +11 -14
  150. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +25 -18
  151. package/dist/components/InfoPanel/InfoPanel.d.ts +10 -8
  152. package/dist/components/InfoPanel/InfoPanel.js +2 -2
  153. package/dist/components/InfoPanel/index.d.ts +2 -1
  154. package/dist/components/InlineNavigation/InlineNavigation.d.ts +7 -5
  155. package/dist/components/InlineNavigation/InlineNavigation.js +13 -10
  156. package/dist/components/Input/Input.d.ts +10 -9
  157. package/dist/components/Input/Input.js +47 -40
  158. package/dist/components/Input/index.d.ts +2 -1
  159. package/dist/components/InstructionsList/InstructionsList.d.ts +5 -4
  160. package/dist/components/InstructionsList/InstructionsList.js +20 -10
  161. package/dist/components/InstructionsList/index.d.ts +2 -1
  162. package/dist/components/Loading/Loading.d.ts +8 -7
  163. package/dist/components/Loading/Loading.js +25 -20
  164. package/dist/components/Loading/index.d.ts +2 -1
  165. package/dist/components/LoadingV2/LoadingV2.d.ts +7 -6
  166. package/dist/components/LoadingV2/LoadingV2.js +31 -21
  167. package/dist/components/LoadingV2/index.d.ts +2 -1
  168. package/dist/components/LogoListItem/LogoListItem.d.ts +7 -6
  169. package/dist/components/LogoListItem/LogoListItem.js +34 -17
  170. package/dist/components/LogoListItem/index.d.ts +2 -1
  171. package/dist/components/LogoNavigation/LogoNavigation.d.ts +13 -4
  172. package/dist/components/LogoNavigation/LogoNavigation.js +23 -18
  173. package/dist/components/LogoNavigation/index.d.ts +2 -1
  174. package/dist/components/ModalContainer/ModalContainer.d.ts +8 -8
  175. package/dist/components/ModalContainer/ModalContainer.js +84 -72
  176. package/dist/components/ModalContainer/index.d.ts +2 -1
  177. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -5
  178. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +13 -10
  179. package/dist/components/MultiLayeredFigure/index.d.ts +2 -1
  180. package/dist/components/NavList/NavList.d.ts +9 -7
  181. package/dist/components/NavList/NavList.js +56 -20
  182. package/dist/components/NavList/index.d.ts +2 -1
  183. package/dist/components/Overlay/Overlay.d.ts +5 -5
  184. package/dist/components/Overlay/Overlay.js +8 -5
  185. package/dist/components/PageHero/PageHero.d.ts +6 -5
  186. package/dist/components/PageHero/PageHero.js +29 -16
  187. package/dist/components/PageHero/index.d.ts +2 -1
  188. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +2 -13
  189. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +17 -10
  190. package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +2 -1
  191. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +7 -5
  192. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +108 -42
  193. package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +2 -1
  194. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +2 -12
  195. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +13 -7
  196. package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +2 -1
  197. package/dist/components/PageHero/page-hero-layouts/page-hero.d.js +1 -0
  198. package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +14 -10
  199. package/dist/components/ProgramAirdate/ProgramAirdate.js +72 -67
  200. package/dist/components/ProgramAirdate/index.d.ts +2 -1
  201. package/dist/components/PromotionBlock/PromotionBlock.d.ts +11 -4
  202. package/dist/components/PromotionBlock/PromotionBlock.js +36 -26
  203. package/dist/components/PromotionBlock/index.d.ts +2 -1
  204. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -4
  205. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +8 -6
  206. package/dist/components/PromotionsRowBlock/index.d.ts +2 -1
  207. package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +25 -5
  208. package/dist/components/PromotionsRowModule/PromotionsRowModule.js +48 -48
  209. package/dist/components/PromotionsRowModule/index.d.ts +2 -1
  210. package/dist/components/RescanInstructions/RescanInstructions.d.ts +3 -3
  211. package/dist/components/RescanInstructions/RescanInstructions.js +29 -18
  212. package/dist/components/RescanInstructions/index.d.ts +2 -1
  213. package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +13 -12
  214. package/dist/components/ResponsiveImage/ResponsiveImage.js +16 -20
  215. package/dist/components/ResponsiveImage/index.d.ts +2 -1
  216. package/dist/components/ResultsTable/ResultsTable.d.ts +10 -6
  217. package/dist/components/ResultsTable/ResultsTable.js +21 -16
  218. package/dist/components/ResultsTable/index.d.ts +2 -1
  219. package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +9 -5
  220. package/dist/components/ResultsTableBody/ResultsTableBody.js +21 -16
  221. package/dist/components/ResultsTableBody/index.d.ts +2 -1
  222. package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +7 -3
  223. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +4 -5
  224. package/dist/components/ResultsTableHeader/index.d.ts +2 -1
  225. package/dist/components/ScheduleLayout/ScheduleContext.d.ts +27 -0
  226. package/dist/components/ScheduleLayout/ScheduleContext.js +1931 -0
  227. package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +16 -5
  228. package/dist/components/ScheduleLayout/ScheduleLayout.js +98 -24
  229. package/dist/components/ScheduleLayout/index.d.ts +2 -1
  230. package/dist/components/ScheduleLayout/useScheduleContext.d.ts +15 -0
  231. package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
  232. package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
  233. package/dist/components/ScheduleList/ScheduleList.js +162 -60
  234. package/dist/components/ScheduleList/index.d.ts +2 -1
  235. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +6 -4
  236. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +28 -17
  237. package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +9 -7
  238. package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +46 -34
  239. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +9 -7
  240. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +48 -32
  241. package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +9 -7
  242. package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +46 -34
  243. package/dist/components/SectionedContent/SectionedContent.d.ts +11 -3
  244. package/dist/components/SectionedContent/SectionedContent.js +14 -15
  245. package/dist/components/SectionedContent/index.d.ts +2 -1
  246. package/dist/components/Select/Select.d.ts +15 -11
  247. package/dist/components/Select/Select.js +21 -21
  248. package/dist/components/Select/index.d.ts +2 -1
  249. package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +10 -8
  250. package/dist/components/ShowAboutContent/ShowAboutContent.js +27 -28
  251. package/dist/components/ShowAboutContent/index.d.ts +2 -1
  252. package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +10 -8
  253. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +91 -42
  254. package/dist/components/ShowAboutLayout/index.d.ts +2 -1
  255. package/dist/components/SocialLinks/SocialLinks.d.ts +15 -9
  256. package/dist/components/SocialLinks/SocialLinks.js +192 -138
  257. package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -8
  258. package/dist/components/SocialShareBlock/SocialShareBlock.js +20 -22
  259. package/dist/components/SocialShareBlock/index.d.ts +2 -1
  260. package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -7
  261. package/dist/components/SocialShareButton/SocialShareButton.js +3 -4
  262. package/dist/components/SocialShareButton/index.d.ts +2 -1
  263. package/dist/components/SocialShareButton/index.js +1 -1
  264. package/dist/components/StringList/StringList.d.ts +6 -5
  265. package/dist/components/StringList/StringList.js +16 -12
  266. package/dist/components/StringList/index.d.ts +2 -1
  267. package/dist/components/TabContent/TabContent.d.ts +5 -4
  268. package/dist/components/TabContent/TabContent.js +9 -7
  269. package/dist/components/TabContent/index.d.ts +2 -1
  270. package/dist/components/TabNavigation/TabNavigation.d.ts +7 -5
  271. package/dist/components/TabNavigation/TabNavigation.js +58 -53
  272. package/dist/components/TabNavigation/index.d.ts +2 -1
  273. package/dist/components/TabbedContent/TabbedContent.d.ts +20 -4
  274. package/dist/components/TabbedContent/TabbedContent.js +24 -8
  275. package/dist/components/TabbedContent/index.d.ts +2 -1
  276. package/dist/components/TextArea/TextArea.d.ts +9 -1
  277. package/dist/components/TextArea/TextArea.js +13 -13
  278. package/dist/components/TextArea/index.d.ts +2 -1
  279. package/dist/components/UpcomingList/UpcomingList.d.ts +5 -4
  280. package/dist/components/UpcomingList/UpcomingList.js +55 -41
  281. package/dist/containers/GetFeatruedListContainer.d.ts +22 -15
  282. package/dist/containers/GetFeatruedListContainer.js +16 -16
  283. package/dist/containers/NowPlayingContainer.d.ts +17 -15
  284. package/dist/containers/NowPlayingContainer.js +18 -16
  285. package/dist/custom-elements.d.js +1 -0
  286. package/dist/data-resources/FakeDataResource.d.ts +77 -68
  287. package/dist/data-resources/FakeDataResource.js +244 -142
  288. package/dist/error-boundries/BlankErrorBoundry.d.ts +14 -9
  289. package/dist/error-boundries/BlankErrorBoundry.js +5 -5
  290. package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -10
  291. package/dist/error-boundries/GeneralErrorBoundry.js +10 -10
  292. package/dist/hooks/{useGetSchedule.d.ts → getSchedule.d.ts} +12 -4
  293. package/dist/hooks/getSchedule.js +62 -0
  294. package/dist/hooks/useGetUpcoming.d.ts +8 -6
  295. package/dist/hooks/useGetUpcoming.js +22 -25
  296. package/dist/icons/Facebook.js +6 -6
  297. package/dist/icons/Tiktok.js +15 -7
  298. package/dist/icons/Twitter.js +7 -7
  299. package/dist/index.d.ts +1 -0
  300. package/dist/index.js +35 -33
  301. package/dist/logger-C0N7U0YY.mjs +67 -0
  302. package/dist/settings.js +6 -5
  303. package/dist/utils/Redirect.d.ts +2 -2
  304. package/dist/utils/analytics.js +1 -1
  305. package/dist/utils/date-helpers.d.ts +3 -2
  306. package/dist/utils/date-helpers.js +26 -26
  307. package/dist/utils/events.js +8 -6
  308. package/dist/utils/getFeaturedList.d.ts +28 -8
  309. package/dist/utils/getFeaturedList.js +58 -45
  310. package/dist/utils/getFeaturedListImages.d.ts +15 -5
  311. package/dist/utils/getFeaturedListImages.js +27 -16
  312. package/dist/utils/getOnNowProgram.d.ts +17 -3
  313. package/dist/utils/getOnNowProgram.js +106 -68
  314. package/dist/utils/getSchedule.d.ts +8 -6
  315. package/dist/utils/getSchedule.js +6 -1
  316. package/dist/utils/getUpcomingPrograms.d.ts +10 -7
  317. package/dist/utils/getUpcomingPrograms.js +5 -4
  318. package/dist/utils/getViewingPlatforms.d.ts +6 -16
  319. package/dist/utils/getViewingPlatforms.js +14 -11
  320. package/dist/utils/gtm.js +1 -1
  321. package/dist/utils/helpers.d.ts +9 -9
  322. package/dist/utils/helpers.js +69 -65
  323. package/dist/utils/program-helpers.d.ts +14 -20
  324. package/dist/utils/program-helpers.js +9 -8
  325. package/dist/utils/series-helpers.d.ts +14 -20
  326. package/dist/utils/series-helpers.js +9 -8
  327. package/package.json +19 -14
  328. package/dist/Carousel.module-DOrBKQEQ.mjs +0 -14
  329. package/dist/PageHero.module-BdV8z_Xv.mjs +0 -8
  330. package/dist/ResultsTable.module-B7M9y7hd.mjs +0 -14
  331. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +0 -28
  332. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +0 -42
  333. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +0 -170
  334. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +0 -193
  335. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +0 -17
  336. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +0 -49
  337. package/dist/facebook-HCcA1M1m.mjs +0 -54
  338. package/dist/hooks/useGetSchedule.js +0 -58
@@ -1,6 +1,17 @@
1
- export function ScheduleLayout({ schedule, handleScheduleClicks, handleDateChanged }: {
2
- schedule?: never[] | undefined;
3
- handleScheduleClicks?: (() => boolean) | undefined;
4
- handleDateChanged?: (() => boolean) | undefined;
5
- }): import("react/jsx-runtime").JSX.Element;
1
+ import { ScheduleResponse, HandleClicksDetails } from '../../types.d.ts';
2
+ type Day = {
3
+ date: Date;
4
+ dayStr: string;
5
+ dateStr: string;
6
+ monthStr: string;
7
+ fullDateStr: string;
8
+ };
9
+ type ScheduleLayoutProps = {
10
+ fetchSchedule: (date: Date) => Promise<ScheduleResponse>;
11
+ initialSchedule?: ScheduleResponse;
12
+ weeks?: Day[][];
13
+ handleScheduleClicks?: (details: HandleClicksDetails) => boolean | void;
14
+ handleDateChanged?: (date: Date) => boolean | void;
15
+ };
16
+ export declare function ScheduleLayout({ fetchSchedule, initialSchedule, weeks, handleScheduleClicks, handleDateChanged, }: ScheduleLayoutProps): JSX.Element;
6
17
  export default ScheduleLayout;
@@ -1,28 +1,102 @@
1
- import { jsxs as y, jsx as s } from "react/jsx-runtime";
2
- import { useState as a, useEffect as f } from "react";
3
- import { DateNavigation as x } from "../DateNavigation/DateNavigation.js";
4
- import { ScheduleList as w } from "../ScheduleList/ScheduleList.js";
5
- import { chunkArray as L, create2WeeksList as S } from "../../utils/date-helpers.js";
6
- import { f as u } from "../../format-YhWt2D8M.mjs";
7
- import { s as b } from "../../sub-CoUmnfhv.mjs";
8
- function F({ schedule: o = [], handleScheduleClicks: e = () => !0, handleDateChanged: c = () => !0 }) {
9
- const l = (/* @__PURE__ */ new Date()).toLocaleString("en-US", { timeZone: "America/New_York" }), t = new Date(l), [r, d] = a(Number.parseInt(u(t, "H"), 10) < 6 ? b(t, { days: 1 }) : t), g = L(S(), 7), [p, n] = a(!1), [D, i] = a(!1), h = (m) => {
10
- i(!0), setTimeout(() => {
11
- n(!0);
12
- }, 325), setTimeout(() => {
13
- d(m), c(m);
14
- }, 2e3);
15
- };
16
- return f(() => {
17
- i(!1), n(!1);
18
- }, [o]), f(() => {
19
- e(r);
20
- }, [r, e]), /* @__PURE__ */ y("schedule-layout", { children: [
21
- /* @__PURE__ */ s(x, { weeks: g, handleDateChanged: h }),
22
- /* @__PURE__ */ s("div", { id: u(r, "yyyy-MM-dd"), role: "tabpanel", children: /* @__PURE__ */ s(w, { schedule: o, handleClicks: e, fetching: p, exiting: D }) })
1
+ import { jsx as t, jsxs as b } from "react/jsx-runtime";
2
+ import { useRef as d, useCallback as g, useEffect as h } from "react";
3
+ import { f as w } from "../../format-YhWt2D8M.mjs";
4
+ import { l } from "../../logger-C0N7U0YY.mjs";
5
+ import { classes as L } from "../../utils/helpers.js";
6
+ import { ScheduleProvider as E } from "./ScheduleContext.js";
7
+ import { useScheduleContext as T } from "./useScheduleContext.js";
8
+ import { DateNavigation as k } from "../DateNavigation/DateNavigation.js";
9
+ import { ScheduleList as q } from "../ScheduleList/ScheduleList.js";
10
+ l.setComponent("ScheduleLayout");
11
+ import '../../assets/ScheduleLayout.css';function x({
12
+ handleScheduleClicks: f = () => !0
13
+ }) {
14
+ const { currentDate: r } = T(), n = d(null), p = d(0), o = d(null), c = d(null), i = d(null), u = g((a) => {
15
+ l.log("Determining pointer position for date: ", a);
16
+ const s = () => {
17
+ let e;
18
+ const v = document.querySelector(`.date-navigation__day[aria-controls="${w(a, "yyyy-MM-dd")}"]`);
19
+ if (v && (e = v.parentElement), e && n.current) {
20
+ const S = e.offsetLeft + e.offsetWidth / 2;
21
+ p.current = S, n.current.style.setProperty(
22
+ "--pointer-position",
23
+ `${S}px`
24
+ );
25
+ }
26
+ }, y = () => {
27
+ l.log("Scrolling schedule list to top"), c.current || (c.current = document.querySelector(".schedule-list")), i.current || (i.current = document.querySelector("sticky-content-wrapper")), l.log("Schedule list element: ", c.current), l.log("Sticky wrapper element: ", i.current);
28
+ const e = document.querySelector(".mobile-nav");
29
+ c.current && i.current && (l.log("Mobile nav element: ", e), window.scrollTo({
30
+ behavior: "auto",
31
+ top: e && window.getComputedStyle(e).display !== "none" ? c.current.offsetTop - i.current.offsetHeight - e.offsetHeight - 8 : c.current.offsetTop - i.current.offsetHeight - 16,
32
+ left: 0
33
+ }));
34
+ };
35
+ if (!n.current) {
36
+ const e = setInterval(() => {
37
+ n.current = document.querySelector(".date-navigation__list"), n.current && (clearInterval(e), c.current = document.querySelector(".schedule-list"), i.current = document.querySelector("sticky-content-wrapper"), s(), y());
38
+ }, 100);
39
+ setTimeout(() => {
40
+ clearInterval(e);
41
+ }, 3e3);
42
+ return;
43
+ }
44
+ s(), y();
45
+ }, []), m = g(() => {
46
+ o.current && clearTimeout(o.current), o.current = window.setTimeout(() => {
47
+ u(r);
48
+ }, 250);
49
+ }, [r, u]);
50
+ return h(() => (window.addEventListener("resize", m), () => {
51
+ window.removeEventListener("resize", m), o.current && clearTimeout(o.current);
52
+ }), [u, m]), h(() => {
53
+ const a = document.querySelector(".header-divider"), s = document.querySelector("sticky-content-wrapper");
54
+ s && a && new IntersectionObserver(
55
+ ([e]) => {
56
+ e.intersectionRatio < 1 ? s.dataset.pinnedState = "pinned" : s.dataset.pinnedState = "unpinned";
57
+ },
58
+ {
59
+ threshold: [1],
60
+ rootMargin: "-37px"
61
+ }
62
+ ).observe(a);
63
+ }, []), h(() => {
64
+ u(r);
65
+ }, [r, u]), /* @__PURE__ */ b("schedule-layout", { children: [
66
+ /* @__PURE__ */ t("sticky-content-wrapper", { "data-pinned-state": "unpinned", children: /* @__PURE__ */ t(
67
+ "content-constrainer",
68
+ {
69
+ class: L([
70
+ "content-constrainer--no-padding",
71
+ "content-constrainer--no-border",
72
+ "content-constrainer--lead-container",
73
+ "schedule-date-nav-constrainer"
74
+ ]),
75
+ children: /* @__PURE__ */ t(k, {})
76
+ }
77
+ ) }),
78
+ /* @__PURE__ */ t("section", { className: "page-section", id: "schedule-section", children: /* @__PURE__ */ t("content-constrainer", { class: "content-constrainer--no-border schedule-content-constrainer", children: /* @__PURE__ */ t("div", { id: w(r, "yyyy-MM-dd"), role: "tabpanel", children: /* @__PURE__ */ t(q, { handleClicks: f }) }) }) })
23
79
  ] });
24
80
  }
81
+ function N({
82
+ fetchSchedule: f,
83
+ initialSchedule: r = [],
84
+ weeks: n = [],
85
+ handleScheduleClicks: p = () => !0,
86
+ handleDateChanged: o = () => !0
87
+ }) {
88
+ return /* @__PURE__ */ t(
89
+ E,
90
+ {
91
+ fetchSchedule: f,
92
+ handleDateChanged: o,
93
+ initialSchedule: r,
94
+ weeks: n,
95
+ children: /* @__PURE__ */ t(x, { handleScheduleClicks: p })
96
+ }
97
+ );
98
+ }
25
99
  export {
26
- F as ScheduleLayout,
27
- F as default
100
+ N as ScheduleLayout,
101
+ N as default
28
102
  };
@@ -1 +1,2 @@
1
- export { ScheduleLayout, ScheduleLayout as default } from './ScheduleLayout';
1
+ export { ScheduleLayout } from './ScheduleLayout';
2
+ export { ScheduleLayout as default } from './ScheduleLayout';
@@ -0,0 +1,15 @@
1
+ export declare function useScheduleContext(): {
2
+ schedule: import('../../types').ScheduleResponse;
3
+ weeks: {
4
+ date: Date;
5
+ dayStr: string;
6
+ dateStr: string;
7
+ monthStr: string;
8
+ fullDateStr: string;
9
+ }[][];
10
+ currentDate: Date;
11
+ isLoading: boolean;
12
+ isError: boolean;
13
+ setCurrentDate: (date: Date) => void;
14
+ };
15
+ export default useScheduleContext;
@@ -0,0 +1,12 @@
1
+ import { useContext as t } from "react";
2
+ import { ScheduleContext as o } from "./ScheduleContext.js";
3
+ function n() {
4
+ const e = t(o);
5
+ if (e === void 0)
6
+ throw new Error("useScheduleContext must be used within a ScheduleProvider");
7
+ return e;
8
+ }
9
+ export {
10
+ n as default,
11
+ n as useScheduleContext
12
+ };
@@ -1,6 +1,6 @@
1
- export function ScheduleList({ schedule, handleClicks, exiting, }: {
2
- schedule?: never[] | undefined;
3
- handleClicks?: (() => boolean) | undefined;
4
- exiting?: boolean | undefined;
5
- }): import("react/jsx-runtime").JSX.Element;
1
+ import { HandleClicksDetails } from '../../types.d.ts';
2
+ type ScheduleListProps = {
3
+ handleClicks?: (details: HandleClicksDetails) => boolean | void;
4
+ };
5
+ export declare function ScheduleList({ handleClicks, }: ScheduleListProps): JSX.Element;
6
6
  export default ScheduleList;
@@ -1,22 +1,51 @@
1
- import { jsx as _ } from "react/jsx-runtime";
2
- import "react";
3
- import { getMinutesFromStr as j } from "../../utils/helpers.js";
4
- import { SportsItem as w } from "./schedule-list-items/SportsItem.js";
5
- import { SeriesItem as $ } from "./schedule-list-items/SeriesItem.js";
6
- import { MovieItem as k } from "./schedule-list-items/MovieItem.js";
7
- import '../../assets/ScheduleList.css';const g = {
8
- "schedule-list__item": "_schedule-list__item_10j6g_1",
9
- "schedule-list__airdate": "_schedule-list__airdate_10j6g_12",
10
- "schedule-list": "_schedule-list_10j6g_1",
11
- "fade-in": "_fade-in_10j6g_1",
12
- "fade-out": "_fade-out_10j6g_1"
13
- }, f = (r) => {
14
- var o, p, i, a, n, t, v, y, x, b, S;
15
- return (o = r.video) != null && o.brightcove_id ? {
1
+ import { jsx as a, jsxs as g } from "react/jsx-runtime";
2
+ import { useReducer as R, useState as L, useRef as w, useCallback as A, useEffect as y } from "react";
3
+ import { classes as T, getMinutesFromStr as u } from "../../utils/helpers.js";
4
+ import { useScheduleContext as x } from "../ScheduleLayout/useScheduleContext.js";
5
+ import { Loading as b } from "../Loading/Loading.js";
6
+ import { SportsItem as D } from "./schedule-list-items/SportsItem.js";
7
+ import { SeriesItem as M } from "./schedule-list-items/SeriesItem.js";
8
+ import { MovieItem as C } from "./schedule-list-items/MovieItem.js";
9
+ import '../../assets/ScheduleList.css';const l = {
10
+ "schedule-list__item": "_schedule-list__item_wmqq1_1",
11
+ "schedule-list__airdate": "_schedule-list__airdate_wmqq1_14",
12
+ "airdate-formatter__date": "_airdate-formatter__date_wmqq1_22",
13
+ "airdate-formatter__day": "_airdate-formatter__day_wmqq1_23",
14
+ "airdate-formatter__time-wrap": "_airdate-formatter__time-wrap_wmqq1_26",
15
+ "schedule-list": "_schedule-list_wmqq1_1",
16
+ "fade-out": "_fade-out_wmqq1_1",
17
+ "fade-in": "_fade-in_wmqq1_1",
18
+ "schedule-list__no-schedule": "_schedule-list__no-schedule_wmqq1_50",
19
+ "schedule-content-constrainer": "_schedule-content-constrainer_wmqq1_102",
20
+ "date-navigation__weekday": "_date-navigation__weekday_wmqq1_110",
21
+ "date-navigation__date": "_date-navigation__date_wmqq1_113",
22
+ "image-card__content": "_image-card__content_wmqq1_122"
23
+ };
24
+ function S(r) {
25
+ return typeof r == "object" && !Array.isArray(r) && (r == null ? void 0 : r.queryStatus) && r.queryStatus === "no-results";
26
+ }
27
+ function O(r, t) {
28
+ switch (t.type) {
29
+ case "START_EXIT":
30
+ return "exiting";
31
+ case "EXIT_COMPLETE":
32
+ return "loading";
33
+ case "SCHEDULE_LOADED":
34
+ return "entering";
35
+ case "ENTER_COMPLETE":
36
+ return "idle";
37
+ default:
38
+ return r;
39
+ }
40
+ }
41
+ const v = (r) => {
42
+ var t, o, d, n, _, s, E, f, e, p, i;
43
+ return (t = r.video) != null && t.brightcove_id ? {
16
44
  label: "Watch Preview",
17
45
  type: "play-video",
18
46
  href: "",
19
47
  relatedResourceId: r.video.brightcove_id,
48
+ relatedResourceType: "video",
20
49
  position: "inline"
21
50
  } : r != null && r.showUpcoming && (r == null ? void 0 : r.program_class) === "Episode" ? {
22
51
  label: "",
@@ -28,7 +57,7 @@ import '../../assets/ScheduleList.css';const g = {
28
57
  //determineSeriesPrefix(scheduleItem.series_prefix),
29
58
  relatedResourceType: "",
30
59
  //'series',
31
- position: ""
60
+ position: void 0
32
61
  //'inline',
33
62
  } : r != null && r.showUpcoming && (r == null ? void 0 : r.program_class) === "Film" ? {
34
63
  label: "",
@@ -40,61 +69,134 @@ import '../../assets/ScheduleList.css';const g = {
40
69
  //scheduleItem.title_code,
41
70
  relatedResourceType: "",
42
71
  //'film',
43
- position: ""
72
+ position: void 0
44
73
  //'inline',
45
- } : (((p = r == null ? void 0 : r.content) == null ? void 0 : p.external_link) !== void 0 && ((i = r == null ? void 0 : r.content) == null ? void 0 : i.external_link) !== "" || ((a = r == null ? void 0 : r.content) == null ? void 0 : a.slug) !== void 0 && ((n = r == null ? void 0 : r.content) == null ? void 0 : n.slug) !== "") && !((t = r == null ? void 0 : r.content) != null && t.prevent_detail_page) ? {
74
+ } : (((o = r == null ? void 0 : r.content) == null ? void 0 : o.external_link) !== void 0 && ((d = r == null ? void 0 : r.content) == null ? void 0 : d.external_link) !== "" || ((n = r == null ? void 0 : r.content) == null ? void 0 : n.slug) !== void 0 && ((_ = r == null ? void 0 : r.content) == null ? void 0 : _.slug) !== "") && !((s = r == null ? void 0 : r.content) != null && s.prevent_detail_page) ? {
46
75
  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: (v = r == null ? void 0 : r.content) != null && v.external_link ? "external-link" : "internal-link",
48
- href: (y = r == null ? void 0 : r.content) != null && y.external_link ? (x = r == null ? void 0 : r.content) == null ? void 0 : x.external_link : r.program_class === "Episode" ? `/show/${(b = r == null ? void 0 : r.content) == null ? void 0 : b.slug}` : `/movie/${(S = r == null ? void 0 : r.content) == null ? void 0 : S.slug}`,
76
+ type: (E = r == null ? void 0 : r.content) != null && E.external_link ? "external-link" : "internal-link",
77
+ href: (f = r == null ? void 0 : r.content) != null && f.external_link ? (e = r == null ? void 0 : r.content) == null ? void 0 : e.external_link : r.program_class === "Episode" ? `/show/${(p = r == null ? void 0 : r.content) == null ? void 0 : p.slug}` : `/movie/${(i = r == null ? void 0 : r.content) == null ? void 0 : i.slug}`,
49
78
  position: "inline"
50
79
  } : {
51
80
  label: "",
52
81
  type: "",
53
82
  href: "",
54
- position: ""
83
+ position: void 0
55
84
  };
56
85
  };
57
- function A({
58
- schedule: r = [],
59
- handleClicks: o = () => !0,
60
- exiting: p = !1
86
+ function H({
87
+ handleClicks: r = () => !0
61
88
  }) {
62
- return /* @__PURE__ */ _("ul", { className: `${g["schedule-list"]} schedule-list`, "data-state": p ? "exiting" : "idle", children: r.length !== 0 && r.map((i) => {
63
- const a = j(i.element_length), n = f(i).type === "" ? [a, i.rating] : [a, i.rating, "&nbsp;"];
64
- return i.program_class === "Episode" ? /* @__PURE__ */ _(
65
- $,
66
- {
67
- determineCTA: f,
68
- handleClicks: o,
69
- scheduleItem: i,
70
- strListArr: n,
71
- styles: g
72
- },
73
- `schedule-list-${i.id}`
74
- ) : i.program_class === "Film" || i.program_class === "Movie" || i.program_class === "Special" ? /* @__PURE__ */ _(
75
- k,
76
- {
77
- determineCTA: f,
78
- handleClicks: o,
79
- scheduleItem: i,
80
- strListArr: n,
81
- styles: g
82
- },
83
- `schedule-list-${i.id}`
84
- ) : i.program_class === "Sports" ? /* @__PURE__ */ _(
85
- w,
86
- {
87
- determineCTA: f,
88
- handleClicks: o,
89
- scheduleItem: i,
90
- strListArr: n,
91
- styles: g
89
+ const { schedule: t, isLoading: o, isError: d } = x(), [n, _] = R(O, "idle"), [s, E] = L(t), f = w(null), e = w(null), p = A(() => {
90
+ e.current && (clearTimeout(e.current), e.current = null), n === "exiting" ? _({ type: "EXIT_COMPLETE" }) : n === "entering" && _({ type: "ENTER_COMPLETE" });
91
+ }, [n]);
92
+ return y(() => {
93
+ const i = f.current;
94
+ if (i)
95
+ return i.addEventListener("animationend", p), () => {
96
+ i.removeEventListener("animationend", p);
97
+ };
98
+ }, [p]), y(() => {
99
+ o && n === "idle" && _({ type: "START_EXIT" });
100
+ }, [o, n]), y(() => {
101
+ !o && n === "exiting" && _({ type: "EXIT_COMPLETE" });
102
+ }, [o, n]), y(() => {
103
+ const i = S(t) || Array.isArray(t) && t.length >= 0;
104
+ !o && n === "loading" && i && (E(t), _({ type: "SCHEDULE_LOADED" }));
105
+ }, [o, n, t]), y(() => () => {
106
+ e.current && clearTimeout(e.current);
107
+ }, []), n === "loading" ? /* @__PURE__ */ a(
108
+ "div",
109
+ {
110
+ style: {
111
+ display: "grid",
112
+ alignContent: "start",
113
+ minHeight: "100dvh",
114
+ paddingTop: "6rem"
92
115
  },
93
- `schedule-list-${i.id}`
94
- ) : null;
95
- }) });
116
+ children: /* @__PURE__ */ a(b, {})
117
+ }
118
+ ) : d ? /* @__PURE__ */ g("div", { className: "schedule-list__no-schedule", children: [
119
+ /* @__PURE__ */ a("h2", { children: "There was an error loading the schedule for this day." }),
120
+ /* @__PURE__ */ g("p", { children: [
121
+ "Please try again later. If this problem persists report it at ",
122
+ /* @__PURE__ */ a("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
123
+ "."
124
+ ] })
125
+ ] }) : S(s) ? /* @__PURE__ */ g(
126
+ "div",
127
+ {
128
+ className: T([
129
+ l["schedule-list__no-schedule"],
130
+ "schedule-list__no-schedule"
131
+ ]),
132
+ "data-state": n,
133
+ style: { animationDelay: "500ms" },
134
+ children: [
135
+ /* @__PURE__ */ a("h2", { children: "There are no shows scheduled for this day." }),
136
+ /* @__PURE__ */ g("p", { children: [
137
+ "Please try again later. If this problem persists report it at ",
138
+ /* @__PURE__ */ a("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
139
+ "."
140
+ ] })
141
+ ]
142
+ }
143
+ ) : Array.isArray(s) && s.length === 0 ? /* @__PURE__ */ g(
144
+ "div",
145
+ {
146
+ className: T([
147
+ l["schedule-list__no-schedule"],
148
+ "schedule-list__no-schedule"
149
+ ]),
150
+ "data-state": n,
151
+ children: [
152
+ /* @__PURE__ */ a("h2", { children: "Our programming schedule for today has completed." }),
153
+ /* @__PURE__ */ a("p", { children: "Our programming will restart at 6am." })
154
+ ]
155
+ }
156
+ ) : /* @__PURE__ */ a(
157
+ "ul",
158
+ {
159
+ className: `${l["schedule-list"]} schedule-list`,
160
+ "data-state": n,
161
+ ref: f,
162
+ children: Array.isArray(s) && s.map((i) => {
163
+ const c = u(i.element_length), q = v(i).type === "" ? [c, i.rating] : [c, i.rating, "&nbsp;"];
164
+ return i.program_class === "Episode" ? /* @__PURE__ */ a(
165
+ M,
166
+ {
167
+ determineCTA: v,
168
+ handleClicks: r,
169
+ scheduleItem: i,
170
+ strListArr: q,
171
+ styles: l
172
+ },
173
+ `schedule-list-${i.id}`
174
+ ) : i.program_class === "Film" || i.program_class === "Movie" || i.program_class === "Special" ? /* @__PURE__ */ a(
175
+ C,
176
+ {
177
+ determineCTA: v,
178
+ handleClicks: r,
179
+ scheduleItem: i,
180
+ strListArr: q,
181
+ styles: l
182
+ },
183
+ `schedule-list-${i.id}`
184
+ ) : i.program_class === "Sports" ? /* @__PURE__ */ a(
185
+ D,
186
+ {
187
+ determineCTA: v,
188
+ handleClicks: r,
189
+ scheduleItem: i,
190
+ strListArr: q,
191
+ styles: l
192
+ },
193
+ `schedule-list-${i.id}`
194
+ ) : null;
195
+ })
196
+ }
197
+ );
96
198
  }
97
199
  export {
98
- A as ScheduleList,
99
- A as default
200
+ H as ScheduleList,
201
+ H as default
100
202
  };
@@ -1 +1,2 @@
1
- export { ScheduleList, ScheduleList as default } from './ScheduleList';
1
+ export { ScheduleList } from './ScheduleList';
2
+ export { ScheduleList as default } from './ScheduleList';
@@ -1,5 +1,7 @@
1
- export function AirDateSegment({ scheduleItem, styles }: {
2
- scheduleItem: any;
3
- styles: any;
4
- }): import("react/jsx-runtime").JSX.Element;
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
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import "react";
3
- import { determineIfShowIsOnNow as o } from "../../../utils/date-helpers.js";
4
- import { classes as s, convert12to24 as e } from "../../../utils/helpers.js";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { determineIfShowIsOnNow as s } from "../../../utils/date-helpers.js";
3
+ import { classes as a, convert12to24 as i } from "../../../utils/helpers.js";
5
4
  import { AirDateFormatter as n } from "../../AirDateFormatter/AirDateFormatter.js";
6
- function f({ scheduleItem: t, styles: a }) {
7
- return /* @__PURE__ */ i("div", { className: s([a["schedule-list__airdate"], "schedule-list__airdate"]), children: [
8
- o(`${t.start_date_parse}T${e(t.start_time)}`, t.element_length) && /* @__PURE__ */ r("div", { className: "schedule-list__on-now", children: "On Now" }),
9
- /* @__PURE__ */ r(
10
- n,
11
- {
12
- airdateStr: `${t.start_date} ${e(t.start_time)}`,
13
- separatorType: "line-break"
14
- }
15
- )
16
- ] });
5
+ function p({
6
+ scheduleItem: t,
7
+ styles: r
8
+ }) {
9
+ return /* @__PURE__ */ o(
10
+ "div",
11
+ {
12
+ className: a([r["schedule-list__airdate"], "schedule-list__airdate"]),
13
+ children: [
14
+ s(
15
+ `${t.start_date_parse}T${i(t.start_time)}`,
16
+ t.element_length
17
+ ) && /* @__PURE__ */ e("div", { className: a([r["schedule-list__on-now"], "schedule-list__on-now"]), children: "On Now" }),
18
+ /* @__PURE__ */ e(
19
+ n,
20
+ {
21
+ airdateStr: `${t.start_date} ${i(t.start_time)}`,
22
+ separatorType: "line-break"
23
+ }
24
+ )
25
+ ]
26
+ }
27
+ );
17
28
  }
18
29
  export {
19
- f as AirDateSegment,
20
- f as default
30
+ p as AirDateSegment,
31
+ p as default
21
32
  };
@@ -1,8 +1,10 @@
1
- export function MovieItem({ scheduleItem, styles, handleClicks, strListArr, determineCTA }: {
2
- scheduleItem: any;
3
- styles: any;
4
- handleClicks: any;
5
- strListArr: any;
6
- determineCTA: any;
7
- }): import("react/jsx-runtime").JSX.Element;
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 t, jsxs as s } from "react/jsx-runtime";
2
- import "react";
3
- import { classes as f } from "../../../utils/helpers.js";
4
- import { StringList as l } from "../../StringList/StringList.js";
5
- import { Concat as e } from "../../Concat/Concat.js";
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 j({ scheduleItem: i, styles: r, handleClicks: a, strListArr: n, determineCTA: p }) {
9
- var o;
10
- const m = [
11
- `<div>${i.program_synopsis}</div>`,
12
- /* @__PURE__ */ t(l, { list: n, separatorType: "pipe" })
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__ */ s("li", { className: f([r["schedule-list__item"], "schedule-list__item"]), children: [
15
- /* @__PURE__ */ t(g, { scheduleItem: i, styles: r }),
16
- /* @__PURE__ */ t(
17
- C,
18
- {
19
- id: i.id,
20
- image: {
21
- url: ((o = i == null ? void 0 : i.content) == null ? void 0 : o.image) ?? "",
22
- altText: "",
23
- aspectRatio: 543 / 305
24
- },
25
- title: i.program,
26
- content: /* @__PURE__ */ t(e, { list: m }),
27
- cta: p(i),
28
- clampContentLines: !0,
29
- numberOfLinesToClamp: 5,
30
- displayInline: !0,
31
- handleClicks: a
32
- }
33
- )
34
- ] }, `schedule-list-${i.id}`);
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
- j as MovieItem,
38
- j as default
49
+ d as MovieItem,
50
+ d as default
39
51
  };