@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.
Files changed (525) hide show
  1. package/README.md +71 -0
  2. package/dist/ChoicesItem-CGIr6Qga.mjs +38 -0
  3. package/dist/Form.module-DbpB9u1l.mjs +150 -0
  4. package/dist/PageHero.module-BdV8z_Xv.mjs +8 -0
  5. package/dist/ResultsTable.module-B7M9y7hd.mjs +14 -0
  6. package/dist/SocialShareButton-BXGVUD-z.mjs +30 -0
  7. package/dist/_commonjsHelpers-DaMA6jEr.mjs +8 -0
  8. package/dist/add-DH4DZT_w.mjs +17 -0
  9. package/dist/addMonths-Ca2KMx6g.mjs +23 -0
  10. package/dist/assets/ActionButton.css +1 -0
  11. package/dist/assets/AdBlock.css +1 -0
  12. package/dist/assets/AdjustableTwoColumnGrid.css +1 -0
  13. package/dist/assets/AirDateFormatter.css +1 -0
  14. package/dist/assets/AnchorTag.css +1 -0
  15. package/dist/assets/BCVideoPlayer.css +1 -0
  16. package/dist/assets/BasicGridModule.css +1 -0
  17. package/dist/assets/Button.css +1 -0
  18. package/dist/assets/CarouselSlide.css +1 -0
  19. package/dist/assets/ChannelSearch.css +1 -0
  20. package/dist/assets/ChoicesItem.css +1 -0
  21. package/dist/assets/ContentHero.css +1 -0
  22. package/dist/assets/CtaBlock.css +1 -0
  23. package/dist/assets/CustomDataList.css +1 -0
  24. package/dist/assets/DateNavigation.css +1 -0
  25. package/dist/assets/DatePicker.css +1 -0
  26. package/dist/assets/DeviceAndPlatformLists.css +1 -0
  27. package/dist/assets/DrawerNavigation.css +1 -0
  28. package/dist/assets/EqualSizeFlexRow.css +1 -0
  29. package/dist/assets/EqualSizeGrid.css +1 -0
  30. package/dist/assets/ErrorHandler.css +1 -0
  31. package/dist/assets/FeaturedList.css +1 -0
  32. package/dist/assets/Figure.css +1 -0
  33. package/dist/assets/Figure2.css +1 -0
  34. package/dist/assets/FindUs.css +1 -0
  35. package/dist/assets/FooterNavigation.css +1 -0
  36. package/dist/assets/Form.css +1 -0
  37. package/dist/assets/GradientButton.css +1 -0
  38. package/dist/assets/GridList.css +1 -0
  39. package/dist/assets/IONShowHero.css +1 -0
  40. package/dist/assets/ImageCard.css +1 -0
  41. package/dist/assets/ImageReplacementAnchor.css +1 -0
  42. package/dist/assets/InfoPanel.css +1 -0
  43. package/dist/assets/InlineNavigation.css +1 -0
  44. package/dist/assets/InstructionsList.css +1 -0
  45. package/dist/assets/Loading.css +1 -0
  46. package/dist/assets/LoadingV2.css +1 -0
  47. package/dist/assets/LogoListItem.css +1 -0
  48. package/dist/assets/LogoNavigation.css +1 -0
  49. package/dist/assets/ModalContainer.css +1 -0
  50. package/dist/assets/MultiLayeredFigure.css +1 -0
  51. package/dist/assets/NavList.css +1 -0
  52. package/dist/assets/Overlay.css +1 -0
  53. package/dist/assets/PageHero.css +1 -0
  54. package/dist/assets/Pagination.css +1 -0
  55. package/dist/assets/ProgramAirdate.css +1 -0
  56. package/dist/assets/PromotionBlock.css +1 -0
  57. package/dist/assets/PromotionsRowModule.css +1 -0
  58. package/dist/assets/RescanInstructions.css +1 -0
  59. package/dist/assets/ResultsTable.css +1 -0
  60. package/dist/assets/ScheduleList.css +1 -0
  61. package/dist/assets/ShowAboutLayout.css +1 -0
  62. package/dist/assets/ShowSlide.css +1 -0
  63. package/dist/assets/SocialLinks.css +1 -0
  64. package/dist/assets/SocialShareButton.css +1 -0
  65. package/dist/assets/StringList.css +1 -0
  66. package/dist/assets/TabNavigation.css +1 -0
  67. package/dist/assets/TextSlide.css +1 -0
  68. package/dist/assets/TwoColumnSlide.css +1 -0
  69. package/dist/assets/UpcomingList.css +1 -0
  70. package/dist/chevron-left-DmvQntvu.mjs +54 -0
  71. package/dist/chevron-right-CaAz6ISN.mjs +54 -0
  72. package/dist/components/ActionButton/ActionButton.d.ts +19 -0
  73. package/dist/components/ActionButton/ActionButton.js +78 -0
  74. package/dist/components/ActionButton/index.d.ts +1 -0
  75. package/dist/components/ActionButton/index.js +5 -0
  76. package/dist/components/AdBlock/AdBlock.d.ts +6 -0
  77. package/dist/components/AdBlock/AdBlock.js +110 -0
  78. package/dist/components/AdBlock/index.d.ts +1 -0
  79. package/dist/components/AdBlock/index.js +5 -0
  80. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -0
  81. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +24 -0
  82. package/dist/components/AdjustableTwoColumnGrid/index.d.ts +1 -0
  83. package/dist/components/AdjustableTwoColumnGrid/index.js +5 -0
  84. package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -0
  85. package/dist/components/AirDateFormatter/AirDateFormatter.js +82 -0
  86. package/dist/components/AirDateFormatter/index.d.ts +1 -0
  87. package/dist/components/AirDateFormatter/index.js +5 -0
  88. package/dist/components/AnchorTag/AnchorTag.d.ts +9 -0
  89. package/dist/components/AnchorTag/AnchorTag.js +45 -0
  90. package/dist/components/AnchorTag/index.d.ts +1 -0
  91. package/dist/components/AnchorTag/index.js +5 -0
  92. package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +13 -0
  93. package/dist/components/BCVideoPlayer/BCVideoPlayer.js +57 -0
  94. package/dist/components/BCVideoPlayer/index.d.ts +1 -0
  95. package/dist/components/BCVideoPlayer/index.js +5 -0
  96. package/dist/components/BasicGridModule/BasicGridModule.d.ts +24 -0
  97. package/dist/components/BasicGridModule/BasicGridModule.js +88 -0
  98. package/dist/components/BasicGridModule/index.d.ts +1 -0
  99. package/dist/components/BasicGridModule/index.js +5 -0
  100. package/dist/components/Button/Button.d.ts +19 -0
  101. package/dist/components/Button/Button.js +76 -0
  102. package/dist/components/Button/index.d.ts +1 -0
  103. package/dist/components/Button/index.js +5 -0
  104. package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +6 -0
  105. package/dist/components/ButtonAnchor/ButtonAnchor.js +18 -0
  106. package/dist/components/ButtonAnchor/index.d.ts +1 -0
  107. package/dist/components/ButtonAnchor/index.js +5 -0
  108. package/dist/components/Carousel/Carousel.d.ts +25 -0
  109. package/dist/components/Carousel/Carousel.js +298 -0
  110. package/dist/components/Carousel/CarouselUtils.class.d.ts +68 -0
  111. package/dist/components/Carousel/CarouselUtils.class.js +187 -0
  112. package/dist/components/Carousel/index.d.ts +1 -0
  113. package/dist/components/Carousel/index.js +5 -0
  114. package/dist/components/Carousel/navigations/Pagination.d.ts +3 -0
  115. package/dist/components/Carousel/navigations/Pagination.js +18 -0
  116. package/dist/components/CarouselSlide/CarouselSlide.d.ts +7 -0
  117. package/dist/components/CarouselSlide/CarouselSlide.js +37 -0
  118. package/dist/components/CarouselSlide/index.d.ts +1 -0
  119. package/dist/components/CarouselSlide/index.js +5 -0
  120. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +2 -0
  121. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +9 -0
  122. package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +1 -0
  123. package/dist/components/CarouselSlide/slide-layouts/Empty/index.js +5 -0
  124. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +9 -0
  125. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +30 -0
  126. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +34 -0
  127. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +105 -0
  128. package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +1 -0
  129. package/dist/components/CarouselSlide/slide-layouts/Figure/index.js +5 -0
  130. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +2 -0
  131. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +10 -0
  132. package/dist/components/CarouselSlide/slide-layouts/ImageCard/index.d.ts +1 -0
  133. package/dist/components/CarouselSlide/slide-layouts/ImageCard/index.js +5 -0
  134. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.d.ts +4 -0
  135. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.js +27 -0
  136. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +28 -0
  137. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +42 -0
  138. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/index.d.ts +1 -0
  139. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/index.js +5 -0
  140. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +17 -0
  141. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +116 -0
  142. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +170 -0
  143. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +193 -0
  144. package/dist/components/CarouselSlide/slide-layouts/Show/index.d.ts +1 -0
  145. package/dist/components/CarouselSlide/slide-layouts/Show/index.js +5 -0
  146. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +7 -0
  147. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +30 -0
  148. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +19 -0
  149. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +35 -0
  150. package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +1 -0
  151. package/dist/components/CarouselSlide/slide-layouts/Text/index.js +5 -0
  152. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -0
  153. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +17 -0
  154. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +17 -0
  155. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +49 -0
  156. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/index.d.ts +1 -0
  157. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/index.js +5 -0
  158. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +2 -0
  159. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +20 -0
  160. package/dist/components/CarouselSlide/slide-layouts/Video/index.d.ts +1 -0
  161. package/dist/components/CarouselSlide/slide-layouts/Video/index.js +5 -0
  162. package/dist/components/CarouselSlide/slide-layouts/index.d.ts +8 -0
  163. package/dist/components/CarouselSlide/slide-layouts/index.js +18 -0
  164. package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +2 -0
  165. package/dist/components/CastInfoLayout/CastInfoLayout.js +62 -0
  166. package/dist/components/CastInfoLayout/index.d.ts +1 -0
  167. package/dist/components/CastInfoLayout/index.js +5 -0
  168. package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -0
  169. package/dist/components/ChannelSearch/ChannelSearch.js +171 -0
  170. package/dist/components/ChannelSearch/index.d.ts +1 -0
  171. package/dist/components/ChannelSearch/index.js +5 -0
  172. package/dist/components/ChoicesItem/ChoicesItem.d.ts +5 -0
  173. package/dist/components/ChoicesItem/ChoicesItem.js +8 -0
  174. package/dist/components/ChoicesItem/index.d.ts +1 -0
  175. package/dist/components/ChoicesItem/index.js +5 -0
  176. package/dist/components/ChoicesList/ChoicesList.d.ts +4 -0
  177. package/dist/components/ChoicesList/ChoicesList.js +9 -0
  178. package/dist/components/ChoicesList/index.d.ts +1 -0
  179. package/dist/components/ChoicesList/index.js +5 -0
  180. package/dist/components/Concat/Concat.d.ts +4 -0
  181. package/dist/components/Concat/Concat.js +10 -0
  182. package/dist/components/Concat/index.d.ts +1 -0
  183. package/dist/components/Concat/index.js +5 -0
  184. package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +6 -0
  185. package/dist/components/CreateChoiceList/CreateChoiceList.js +14 -0
  186. package/dist/components/CreateChoiceList/index.d.ts +1 -0
  187. package/dist/components/CreateChoiceList/index.js +5 -0
  188. package/dist/components/CtaBlock/CtaBlock.d.ts +23 -0
  189. package/dist/components/CtaBlock/CtaBlock.js +89 -0
  190. package/dist/components/CtaBlock/index.d.ts +1 -0
  191. package/dist/components/CtaBlock/index.js +5 -0
  192. package/dist/components/CustomDataList/CustomDataList.d.ts +11 -0
  193. package/dist/components/CustomDataList/CustomDataList.js +282 -0
  194. package/dist/components/CustomDataList/index.d.ts +1 -0
  195. package/dist/components/CustomDataList/index.js +5 -0
  196. package/dist/components/CustomSelect/CustomSelect.d.ts +14 -0
  197. package/dist/components/CustomSelect/CustomSelect.js +217 -0
  198. package/dist/components/CustomSelect/index.d.ts +1 -0
  199. package/dist/components/CustomSelect/index.js +5 -0
  200. package/dist/components/DateNavigation/DateNavigation.d.ts +5 -0
  201. package/dist/components/DateNavigation/DateNavigation.js +115 -0
  202. package/dist/components/DateNavigation/index.d.ts +1 -0
  203. package/dist/components/DateNavigation/index.js +5 -0
  204. package/dist/components/DatePicker/DatePicker.d.ts +10 -0
  205. package/dist/components/DatePicker/DatePicker.js +5895 -0
  206. package/dist/components/DatePicker/index.d.ts +1 -0
  207. package/dist/components/DatePicker/index.js +5 -0
  208. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +5 -0
  209. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +60 -0
  210. package/dist/components/DeviceAndPlatformLists/index.d.ts +1 -0
  211. package/dist/components/DeviceAndPlatformLists/index.js +5 -0
  212. package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +10 -0
  213. package/dist/components/DrawerNavigation/DrawerNavigation.js +123 -0
  214. package/dist/components/DrawerNavigation/index.d.ts +1 -0
  215. package/dist/components/DrawerNavigation/index.js +5 -0
  216. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -0
  217. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +31 -0
  218. package/dist/components/EqualSizeFlexRow/index.d.ts +1 -0
  219. package/dist/components/EqualSizeFlexRow/index.js +5 -0
  220. package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -0
  221. package/dist/components/EqualSizeGrid/EqualSizeGrid.js +29 -0
  222. package/dist/components/EqualSizeGrid/index.d.ts +1 -0
  223. package/dist/components/EqualSizeGrid/index.js +5 -0
  224. package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -0
  225. package/dist/components/ErrorHandler/ErrorHandler.js +17 -0
  226. package/dist/components/ErrorHandler/index.d.ts +1 -0
  227. package/dist/components/ErrorHandler/index.js +5 -0
  228. package/dist/components/FeaturedList/FeaturedList.d.ts +7 -0
  229. package/dist/components/FeaturedList/FeaturedList.js +48 -0
  230. package/dist/components/FeaturedList/index.d.ts +1 -0
  231. package/dist/components/FeaturedList/index.js +5 -0
  232. package/dist/components/Figure/Figure.d.ts +8 -0
  233. package/dist/components/Figure/Figure.js +23 -0
  234. package/dist/components/Figure/index.d.ts +1 -0
  235. package/dist/components/Figure/index.js +5 -0
  236. package/dist/components/FindUs/FindUs.d.ts +20 -0
  237. package/dist/components/FindUs/FindUs.js +120 -0
  238. package/dist/components/FindUs/index.d.ts +1 -0
  239. package/dist/components/FindUs/index.js +5 -0
  240. package/dist/components/FooterNavigation/FooterNavigation.d.ts +4 -0
  241. package/dist/components/FooterNavigation/FooterNavigation.js +24 -0
  242. package/dist/components/FooterNavigation/index.d.ts +1 -0
  243. package/dist/components/FooterNavigation/index.js +5 -0
  244. package/dist/components/GenericList/GenericList.d.ts +6 -0
  245. package/dist/components/GenericList/GenericList.js +23 -0
  246. package/dist/components/GenericList/index.d.ts +1 -0
  247. package/dist/components/GenericList/index.js +5 -0
  248. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -0
  249. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +40 -0
  250. package/dist/components/GetAirdateWrapper/index.d.ts +1 -0
  251. package/dist/components/GetAirdateWrapper/index.js +5 -0
  252. package/dist/components/GradientButton/GradientButton.d.ts +15 -0
  253. package/dist/components/GradientButton/GradientButton.js +69 -0
  254. package/dist/components/GradientButton/index.d.ts +1 -0
  255. package/dist/components/GradientButton/index.js +5 -0
  256. package/dist/components/GridList/GridList.d.ts +6 -0
  257. package/dist/components/GridList/GridList.js +28 -0
  258. package/dist/components/GridList/index.d.ts +1 -0
  259. package/dist/components/GridList/index.js +5 -0
  260. package/dist/components/ImageCard/ImageCard.d.ts +3 -0
  261. package/dist/components/ImageCard/ImageCard.js +113 -0
  262. package/dist/components/ImageCard/ImageCardCore.d.ts +3 -0
  263. package/dist/components/ImageCard/ImageCardCore.js +129 -0
  264. package/dist/components/ImageCard/index.d.ts +1 -0
  265. package/dist/components/ImageCard/index.js +5 -0
  266. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +15 -0
  267. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +52 -0
  268. package/dist/components/ImageReplacementAnchor/index.d.ts +1 -0
  269. package/dist/components/ImageReplacementAnchor/index.js +5 -0
  270. package/dist/components/InfoPanel/InfoPanel.d.ts +10 -0
  271. package/dist/components/InfoPanel/InfoPanel.js +66 -0
  272. package/dist/components/InfoPanel/index.d.ts +1 -0
  273. package/dist/components/InfoPanel/index.js +5 -0
  274. package/dist/components/InlineNavigation/InlineNavigation.d.ts +6 -0
  275. package/dist/components/InlineNavigation/InlineNavigation.js +27 -0
  276. package/dist/components/InlineNavigation/index.d.ts +1 -0
  277. package/dist/components/InlineNavigation/index.js +4 -0
  278. package/dist/components/Input/Input.d.ts +10 -0
  279. package/dist/components/Input/Input.js +57 -0
  280. package/dist/components/Input/index.d.ts +1 -0
  281. package/dist/components/Input/index.js +5 -0
  282. package/dist/components/InstructionsList/InstructionsList.d.ts +5 -0
  283. package/dist/components/InstructionsList/InstructionsList.js +17 -0
  284. package/dist/components/InstructionsList/index.d.ts +1 -0
  285. package/dist/components/InstructionsList/index.js +5 -0
  286. package/dist/components/Loading/Loading.d.ts +8 -0
  287. package/dist/components/Loading/Loading.js +36 -0
  288. package/dist/components/Loading/index.d.ts +1 -0
  289. package/dist/components/Loading/index.js +5 -0
  290. package/dist/components/LoadingV2/LoadingV2.d.ts +7 -0
  291. package/dist/components/LoadingV2/LoadingV2.js +39 -0
  292. package/dist/components/LoadingV2/index.d.ts +1 -0
  293. package/dist/components/LoadingV2/index.js +5 -0
  294. package/dist/components/LogoListItem/LogoListItem.d.ts +7 -0
  295. package/dist/components/LogoListItem/LogoListItem.js +29 -0
  296. package/dist/components/LogoListItem/index.d.ts +1 -0
  297. package/dist/components/LogoListItem/index.js +5 -0
  298. package/dist/components/LogoNavigation/LogoNavigation.d.ts +5 -0
  299. package/dist/components/LogoNavigation/LogoNavigation.js +23 -0
  300. package/dist/components/LogoNavigation/index.d.ts +1 -0
  301. package/dist/components/LogoNavigation/index.js +5 -0
  302. package/dist/components/ModalContainer/ModalContainer.d.ts +9 -0
  303. package/dist/components/ModalContainer/ModalContainer.js +108 -0
  304. package/dist/components/ModalContainer/index.d.ts +1 -0
  305. package/dist/components/ModalContainer/index.js +5 -0
  306. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -0
  307. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +29 -0
  308. package/dist/components/MultiLayeredFigure/index.d.ts +1 -0
  309. package/dist/components/MultiLayeredFigure/index.js +5 -0
  310. package/dist/components/NavList/NavList.d.ts +8 -0
  311. package/dist/components/NavList/NavList.js +33 -0
  312. package/dist/components/NavList/index.d.ts +1 -0
  313. package/dist/components/NavList/index.js +5 -0
  314. package/dist/components/Overlay/Overlay.d.ts +6 -0
  315. package/dist/components/Overlay/Overlay.js +37 -0
  316. package/dist/components/Overlay/index.d.ts +1 -0
  317. package/dist/components/Overlay/index.js +5 -0
  318. package/dist/components/PageHero/PageHero.d.ts +6 -0
  319. package/dist/components/PageHero/PageHero.js +19 -0
  320. package/dist/components/PageHero/index.d.ts +1 -0
  321. package/dist/components/PageHero/index.js +5 -0
  322. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +14 -0
  323. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +40 -0
  324. package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +1 -0
  325. package/dist/components/PageHero/page-hero-layouts/ContentHero/index.js +5 -0
  326. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +6 -0
  327. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +64 -0
  328. package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +1 -0
  329. package/dist/components/PageHero/page-hero-layouts/IONShow/index.js +5 -0
  330. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +13 -0
  331. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +35 -0
  332. package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +1 -0
  333. package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.js +5 -0
  334. package/dist/components/PageHero/page-hero-layouts/index.d.ts +3 -0
  335. package/dist/components/PageHero/page-hero-layouts/index.js +8 -0
  336. package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +11 -0
  337. package/dist/components/ProgramAirdate/ProgramAirdate.js +151 -0
  338. package/dist/components/ProgramAirdate/index.d.ts +1 -0
  339. package/dist/components/ProgramAirdate/index.js +5 -0
  340. package/dist/components/PromotionBlock/PromotionBlock.d.ts +5 -0
  341. package/dist/components/PromotionBlock/PromotionBlock.js +43 -0
  342. package/dist/components/PromotionBlock/index.d.ts +1 -0
  343. package/dist/components/PromotionBlock/index.js +5 -0
  344. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -0
  345. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +10 -0
  346. package/dist/components/PromotionsRowBlock/index.d.ts +1 -0
  347. package/dist/components/PromotionsRowBlock/index.js +5 -0
  348. package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +6 -0
  349. package/dist/components/PromotionsRowModule/PromotionsRowModule.js +113 -0
  350. package/dist/components/PromotionsRowModule/index.d.ts +1 -0
  351. package/dist/components/PromotionsRowModule/index.js +5 -0
  352. package/dist/components/RescanInstructions/RescanInstructions.d.ts +4 -0
  353. package/dist/components/RescanInstructions/RescanInstructions.js +30 -0
  354. package/dist/components/RescanInstructions/index.d.ts +1 -0
  355. package/dist/components/RescanInstructions/index.js +5 -0
  356. package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +14 -0
  357. package/dist/components/ResponsiveImage/ResponsiveImage.js +34 -0
  358. package/dist/components/ResponsiveImage/index.d.ts +1 -0
  359. package/dist/components/ResponsiveImage/index.js +5 -0
  360. package/dist/components/ResultsTable/ResultsTable.d.ts +7 -0
  361. package/dist/components/ResultsTable/ResultsTable.js +26 -0
  362. package/dist/components/ResultsTable/index.d.ts +1 -0
  363. package/dist/components/ResultsTable/index.js +5 -0
  364. package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +6 -0
  365. package/dist/components/ResultsTableBody/ResultsTableBody.js +51 -0
  366. package/dist/components/ResultsTableBody/index.d.ts +1 -0
  367. package/dist/components/ResultsTableBody/index.js +5 -0
  368. package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +4 -0
  369. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +21 -0
  370. package/dist/components/ResultsTableHeader/index.d.ts +1 -0
  371. package/dist/components/ResultsTableHeader/index.js +5 -0
  372. package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +6 -0
  373. package/dist/components/ScheduleLayout/ScheduleLayout.js +28 -0
  374. package/dist/components/ScheduleLayout/index.d.ts +1 -0
  375. package/dist/components/ScheduleLayout/index.js +5 -0
  376. package/dist/components/ScheduleList/ScheduleList.d.ts +6 -0
  377. package/dist/components/ScheduleList/ScheduleList.js +100 -0
  378. package/dist/components/ScheduleList/index.d.ts +1 -0
  379. package/dist/components/ScheduleList/index.js +5 -0
  380. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +5 -0
  381. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +21 -0
  382. package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +8 -0
  383. package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +39 -0
  384. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +8 -0
  385. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +41 -0
  386. package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +8 -0
  387. package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +39 -0
  388. package/dist/components/SectionedContent/SectionedContent.d.ts +4 -0
  389. package/dist/components/SectionedContent/SectionedContent.js +23 -0
  390. package/dist/components/SectionedContent/index.d.ts +1 -0
  391. package/dist/components/SectionedContent/index.js +5 -0
  392. package/dist/components/Select/Select.d.ts +12 -0
  393. package/dist/components/Select/Select.js +64 -0
  394. package/dist/components/Select/index.d.ts +1 -0
  395. package/dist/components/Select/index.js +5 -0
  396. package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +8 -0
  397. package/dist/components/ShowAboutContent/ShowAboutContent.js +69 -0
  398. package/dist/components/ShowAboutContent/index.d.ts +1 -0
  399. package/dist/components/ShowAboutContent/index.js +5 -0
  400. package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +8 -0
  401. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +53 -0
  402. package/dist/components/ShowAboutLayout/index.d.ts +1 -0
  403. package/dist/components/ShowAboutLayout/index.js +5 -0
  404. package/dist/components/SocialLinks/SocialLinks.d.ts +11 -0
  405. package/dist/components/SocialLinks/SocialLinks.js +260 -0
  406. package/dist/components/SocialLinks/index.d.ts +1 -0
  407. package/dist/components/SocialLinks/index.js +5 -0
  408. package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -0
  409. package/dist/components/SocialShareBlock/SocialShareBlock.js +44 -0
  410. package/dist/components/SocialShareBlock/index.d.ts +1 -0
  411. package/dist/components/SocialShareBlock/index.js +5 -0
  412. package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -0
  413. package/dist/components/SocialShareButton/SocialShareButton.js +9 -0
  414. package/dist/components/SocialShareButton/index.d.ts +1 -0
  415. package/dist/components/SocialShareButton/index.js +5 -0
  416. package/dist/components/StringList/StringList.d.ts +6 -0
  417. package/dist/components/StringList/StringList.js +30 -0
  418. package/dist/components/StringList/index.d.ts +1 -0
  419. package/dist/components/StringList/index.js +5 -0
  420. package/dist/components/TabContent/TabContent.d.ts +5 -0
  421. package/dist/components/TabContent/TabContent.js +10 -0
  422. package/dist/components/TabContent/index.d.ts +1 -0
  423. package/dist/components/TabContent/index.js +5 -0
  424. package/dist/components/TabNavigation/TabNavigation.d.ts +6 -0
  425. package/dist/components/TabNavigation/TabNavigation.js +69 -0
  426. package/dist/components/TabNavigation/index.d.ts +1 -0
  427. package/dist/components/TabNavigation/index.js +5 -0
  428. package/dist/components/TabbedContent/TabbedContent.d.ts +5 -0
  429. package/dist/components/TabbedContent/TabbedContent.js +15 -0
  430. package/dist/components/TabbedContent/index.d.ts +1 -0
  431. package/dist/components/TabbedContent/index.js +5 -0
  432. package/dist/components/TextArea/TextArea.d.ts +2 -0
  433. package/dist/components/TextArea/TextArea.js +49 -0
  434. package/dist/components/TextArea/index.d.ts +1 -0
  435. package/dist/components/TextArea/index.js +5 -0
  436. package/dist/components/UpcomingList/UpcomingList.d.ts +5 -0
  437. package/dist/components/UpcomingList/UpcomingList.js +61 -0
  438. package/dist/components/UpcomingList/index.d.ts +1 -0
  439. package/dist/components/UpcomingList/index.js +5 -0
  440. package/dist/containers/GetFeatruedListContainer.d.ts +17 -0
  441. package/dist/containers/GetFeatruedListContainer.js +50 -0
  442. package/dist/containers/NowPlayingContainer.d.ts +16 -0
  443. package/dist/containers/NowPlayingContainer.js +87 -0
  444. package/dist/data-resources/FakeDataResource.d.ts +95 -0
  445. package/dist/data-resources/FakeDataResource.js +692 -0
  446. package/dist/error-boundries/BlankErrorBoundry.d.ts +15 -0
  447. package/dist/error-boundries/BlankErrorBoundry.js +25 -0
  448. package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -0
  449. package/dist/error-boundries/GeneralErrorBoundry.js +27 -0
  450. package/dist/facebook-osmzgL7R.mjs +54 -0
  451. package/dist/format-DF9p-6BI.mjs +1221 -0
  452. package/dist/hooks/useAddScriptTags.d.ts +2 -0
  453. package/dist/hooks/useAddScriptTags.js +8 -0
  454. package/dist/hooks/useGetSchedule.d.ts +14 -0
  455. package/dist/hooks/useGetSchedule.js +58 -0
  456. package/dist/hooks/useGetUpcoming.d.ts +7 -0
  457. package/dist/hooks/useGetUpcoming.js +28 -0
  458. package/dist/hooks/useOptinMonsterReset.d.ts +4 -0
  459. package/dist/hooks/useOptinMonsterReset.js +41 -0
  460. package/dist/hooks/useSourcepointPrivacyTrigger.d.ts +4 -0
  461. package/dist/hooks/useSourcepointPrivacyTrigger.js +23 -0
  462. package/dist/icons/Facebook.d.ts +3 -0
  463. package/dist/icons/Facebook.js +33 -0
  464. package/dist/icons/Tiktok.d.ts +3 -0
  465. package/dist/icons/Tiktok.js +35 -0
  466. package/dist/icons/Twitter.d.ts +3 -0
  467. package/dist/icons/Twitter.js +35 -0
  468. package/dist/index-0wieGV50.mjs +133 -0
  469. package/dist/index-CZzwT3Oj.mjs +662 -0
  470. package/dist/index-DB0QlRo7.mjs +1827 -0
  471. package/dist/index-YbL9dKxh.mjs +19068 -0
  472. package/dist/index.d.ts +78 -0
  473. package/dist/index.js +158 -0
  474. package/dist/secl-ui.d.ts +2 -0
  475. package/dist/settings.d.ts +3 -0
  476. package/dist/settings.js +30 -0
  477. package/dist/sub-DTz41m8W.mjs +17 -0
  478. package/dist/subMonths-YdVF7zsL.mjs +11 -0
  479. package/dist/triangle-D0AHL9lB.mjs +54 -0
  480. package/dist/utils/Redirect.d.ts +4 -0
  481. package/dist/utils/Redirect.js +9 -0
  482. package/dist/utils/analytics.d.ts +1 -0
  483. package/dist/utils/analytics.js +458 -0
  484. package/dist/utils/createSocialShareLinks.d.ts +7 -0
  485. package/dist/utils/createSocialShareLinks.js +65 -0
  486. package/dist/utils/date-helpers.d.ts +31 -0
  487. package/dist/utils/date-helpers.js +49 -0
  488. package/dist/utils/events.d.ts +3 -0
  489. package/dist/utils/events.js +15 -0
  490. package/dist/utils/getCarouselOptions.d.ts +1 -0
  491. package/dist/utils/getCarouselOptions.js +64 -0
  492. package/dist/utils/getFeaturedList.d.ts +22 -0
  493. package/dist/utils/getFeaturedList.js +66 -0
  494. package/dist/utils/getFeaturedListImages.d.ts +5 -0
  495. package/dist/utils/getFeaturedListImages.js +36 -0
  496. package/dist/utils/getOnNowProgram.d.ts +12 -0
  497. package/dist/utils/getOnNowProgram.js +116 -0
  498. package/dist/utils/getSchedule.d.ts +7 -0
  499. package/dist/utils/getSchedule.js +31 -0
  500. package/dist/utils/getUpcomingPrograms.d.ts +18 -0
  501. package/dist/utils/getUpcomingPrograms.js +30 -0
  502. package/dist/utils/getViewingPlatforms.d.ts +16 -0
  503. package/dist/utils/getViewingPlatforms.js +34 -0
  504. package/dist/utils/gtm.d.ts +4 -0
  505. package/dist/utils/gtm.js +17 -0
  506. package/dist/utils/helpers.d.ts +116 -0
  507. package/dist/utils/helpers.js +117 -0
  508. package/dist/utils/index.d.ts +1 -0
  509. package/dist/utils/index.js +4 -0
  510. package/dist/utils/optinMonsterReset.d.ts +4 -0
  511. package/dist/utils/optinMonsterReset.js +18 -0
  512. package/dist/utils/optinMonsterScript.d.ts +4 -0
  513. package/dist/utils/optinMonsterScript.js +20 -0
  514. package/dist/utils/program-helpers.d.ts +50 -0
  515. package/dist/utils/program-helpers.js +33 -0
  516. package/dist/utils/schedule-helpers.d.ts +1 -0
  517. package/dist/utils/schedule-helpers.js +7 -0
  518. package/dist/utils/series-helpers.d.ts +50 -0
  519. package/dist/utils/series-helpers.js +33 -0
  520. package/dist/utils/wpPlatformsTransformer.d.ts +1 -0
  521. package/dist/utils/wpPlatformsTransformer.js +28 -0
  522. package/dist/vite-env.d.js +1 -0
  523. package/dist/vite.svg +1 -0
  524. package/dist/x-D8_C2o-U.mjs +62 -0
  525. package/package.json +131 -0
@@ -0,0 +1,298 @@
1
+ import { jsx as n, Fragment as F, jsxs as D } from "react/jsx-runtime";
2
+ import { useRef as c, useState as P, useEffect as O, useCallback as u } from "react";
3
+ import W from "./CarouselUtils.class.js";
4
+ import { CarouselSlide as J } from "../CarouselSlide/CarouselSlide.js";
5
+ import { chunkArray as Q, classes as y } from "../../utils/helpers.js";
6
+ import { C as X } from "../../chevron-left-DmvQntvu.mjs";
7
+ import { C as Y } from "../../chevron-right-CaAz6ISN.mjs";
8
+ import '../../assets/Pagination.css';const Z = "_carousel_1booq_1", ee = "_carousel__scroller_1booq_11", a = {
9
+ carousel: Z,
10
+ carousel__scroller: ee,
11
+ "carousel-controls": "_carousel-controls_1booq_38",
12
+ "carousel-controls__btn": "_carousel-controls__btn_1booq_42",
13
+ "carousel-controls__previous": "_carousel-controls__previous_1booq_67",
14
+ "carousel-controls__next": "_carousel-controls__next_1booq_74",
15
+ "carousel-nav": "_carousel-nav_1booq_86",
16
+ "carousel-nav__list": "_carousel-nav__list_1booq_90",
17
+ "carousel-nav__item": "_carousel-nav__item_1booq_99"
18
+ }, re = window.matchMedia("(max-width: 600px)"), te = window.matchMedia("(max-width: 800px"), le = window.matchMedia("(max-width: 1024px"), oe = window.matchMedia("(max-width: 1280px");
19
+ function fe({
20
+ id: A,
21
+ slides: z,
22
+ options: x = {
23
+ paginationType: "dots",
24
+ showControls: !0,
25
+ controlArrowSize: 48,
26
+ controlButtonsOffset: 12,
27
+ showScrollbar: !1,
28
+ startIndex: 0,
29
+ variableHeight: !1,
30
+ title: "",
31
+ autoplay: !1,
32
+ autoplayDelay: 3500,
33
+ showPagination: !1,
34
+ gutterSize: 25,
35
+ slideAspectRatio: "4/2",
36
+ slideGap: 1.5,
37
+ cellsPerSlide: 1,
38
+ cellAspectRatio: "4/2",
39
+ cellsPosition: "center",
40
+ wrapAround: !0
41
+ }
42
+ }) {
43
+ const _ = c(`carousel-${A}`), R = c(null), i = c(null), I = c(null), m = c(z), E = c(null), S = c(null), l = c(null), e = c(x), $ = c(x.showPagination), T = c("-50%"), [N, V] = P([]), [t, d] = P(null), [k, j] = P([]);
44
+ O(() => {
45
+ ((o = null) => {
46
+ re.matches ? (d({
47
+ ...e.current,
48
+ showControls: !1,
49
+ showPagination: !1,
50
+ cellsPerSlide: 1,
51
+ cellsPosition: e.current.wrapAround ? "center" : "flex-start",
52
+ gutterSize: 10
53
+ }), e.current = {
54
+ ...e.current,
55
+ showControls: !1,
56
+ showPagination: !1,
57
+ cellsPerSlide: 1,
58
+ cellsPosition: e.current.wrapAround ? "center" : "flex-start",
59
+ gutterSize: 10
60
+ }, $.current = !1) : te.matches ? e.current.cellsPerSlide > 2 ? (d({
61
+ ...e.current,
62
+ cellsPerSlide: 2,
63
+ showControls: !1,
64
+ gutterSize: 10
65
+ }), e.current = {
66
+ ...e.current,
67
+ cellsPerSlide: 2,
68
+ showControls: !1,
69
+ gutterSize: 10
70
+ }) : (d({
71
+ ...e.current,
72
+ showControls: !1,
73
+ gutterSize: 10
74
+ }), e.current = {
75
+ ...e.current,
76
+ showControls: !1,
77
+ gutterSize: 10
78
+ }) : le.matches ? e.current.cellsPerSlide > 3 ? (d({
79
+ ...e.current,
80
+ cellsPerSlide: 3,
81
+ showControls: !1,
82
+ gutterSize: 10
83
+ }), e.current = {
84
+ ...e.current,
85
+ cellsPerSlide: 3,
86
+ showControls: !1,
87
+ gutterSize: 10
88
+ }) : (d({
89
+ ...e.current,
90
+ showControls: !1,
91
+ gutterSize: 10
92
+ }), e.current = {
93
+ ...e.current,
94
+ showControls: !1,
95
+ gutterSize: 10
96
+ }) : oe.matches && e.current.showPagination ? (d({
97
+ ...e.current,
98
+ showControls: !1
99
+ }), e.current = {
100
+ ...e.current,
101
+ showControls: !1
102
+ }) : d({
103
+ ...e.current
104
+ });
105
+ })();
106
+ }, []);
107
+ const L = u((r, o) => {
108
+ const f = Q(o, r);
109
+ j([...f]);
110
+ let h = [];
111
+ for (let s = 0; s <= f.length - 1; s++) {
112
+ h[s] = {}, h[s].ariaLabel = `${s + 1} of ${f.length}`, h[s].layout = f[s][0].layout, h[s].cells = [];
113
+ for (let w = 0; w <= f[s].length - 1; w++)
114
+ h[s].cells[w] = {
115
+ props: f[s][w].props
116
+ };
117
+ }
118
+ const C = [...h], b = [...h], U = C.slice(-1), K = C.slice(0);
119
+ return b.push(K[0]), b.unshift(U[0]), e.current.wrapAround && r.length > o ? b : C;
120
+ }, []), p = u(() => {
121
+ e.current.autoplay && l.current.clearTimer();
122
+ }, []), B = u((r) => {
123
+ p();
124
+ const o = r.key;
125
+ o === "ArrowLeft" ? (r.preventDefault(), l.current.determineScrollAction(-1)) : o === "ArrowRight" && (r.preventDefault(), l.current.determineScrollAction(1));
126
+ }, [p]), G = u((r) => {
127
+ p(), i.current.addEventListener("scrollend", () => {
128
+ l.current.handleScrollEnd();
129
+ }, { once: !0 });
130
+ }, [p]), g = u((r) => {
131
+ p(), i.current.addEventListener("scrollend", () => {
132
+ l.current.handleScrollEnd(), i.current.addEventListener("scroll", g, { once: !0 });
133
+ }, { once: !0 });
134
+ }, [p]), H = () => {
135
+ l.current && e.current.autoplay && l.current.clearTimer();
136
+ }, v = u(() => {
137
+ //! make sure class is only instantiated once because of reacts
138
+ //! "strict" mode double do hocus pocus
139
+ l.current === null && (l.current = new W({
140
+ carouselEl: R.current,
141
+ scrollerEl: i.current,
142
+ paginationEl: I.current,
143
+ slides: m.current,
144
+ navBtnEls: {
145
+ next: E.current,
146
+ previous: S.current
147
+ },
148
+ id: _.current,
149
+ options: {
150
+ autoplay: e.current.autoplay,
151
+ wrapAround: e.current.wrapAround && m.current.length > e.current.cellsPerSlide,
152
+ showPagination: e.current.showPagination,
153
+ delay: e.current.autoplayDelay,
154
+ slideGutterSize: e.current.gutterSize,
155
+ slideAspectRatio: e.current.slideAspectRatio,
156
+ showControls: e.current.showControls && m.current.length > e.current.cellsPerSlide,
157
+ cellsPerSlide: e.current.cellsPerSlide
158
+ }
159
+ }));
160
+ }, []), M = u(() => {
161
+ i.current.addEventListener("scroll", g, { once: !0 });
162
+ }, [g]), q = u(() => {
163
+ if (V(L(m.current, e.current.cellsPerSlide)), m.current.length > e.current.cellsPerSlide) {
164
+ let r = setInterval(() => {
165
+ i.current !== null && (S.current !== null && e.current.showControls || !e.current.showControls) && (clearInterval(r), M(), v());
166
+ }, 100);
167
+ } else {
168
+ let r = setInterval(() => {
169
+ i.current !== null && (clearInterval(r), v());
170
+ }, 100);
171
+ }
172
+ }, [L, M, v]);
173
+ return O(() => {
174
+ if (t !== null) {
175
+ if (t.showControls) {
176
+ let r = 0;
177
+ t.showPagination && (r = r + 25), t.showScrollbar && (r = r + 6), T.current = `calc(-50% - ${r}px)`;
178
+ }
179
+ q();
180
+ }
181
+ return () => {
182
+ H();
183
+ };
184
+ }, [q, t]), /* @__PURE__ */ n(F, { children: t !== null && /* @__PURE__ */ D(
185
+ "div",
186
+ {
187
+ className: a.carousel,
188
+ id: _.current,
189
+ ref: R,
190
+ tabIndex: -1,
191
+ role: "region",
192
+ "aria-roledescription": "carousel",
193
+ "aria-label": t.title,
194
+ onKeyDown: B,
195
+ style: {
196
+ "--_carousel-gutters": t.wrapAround ? `${t.gutterSize <= 25 ? t.gutterSize : 25}%` : `0 ${t.gutterSize <= 25 ? t.gutterSize : 25}%`,
197
+ "--_slide-aspect-ratio": t.slideAspectRatio,
198
+ "--_cell-aspect-ratio": t.cellAspectRatio,
199
+ "--_slide-cell-size": `${100 / t.cellsPerSlide}%`,
200
+ "--_cells-position": t.cellsPosition,
201
+ "--_control-btns-offset-x": `${t.controlButtonsOffset}rem`,
202
+ "--_slide-gap": `${t.slideGap}rem`,
203
+ "--_controls-transform": T.current
204
+ },
205
+ children: [
206
+ /* @__PURE__ */ n(
207
+ "ol",
208
+ {
209
+ className: a.carousel__scroller,
210
+ ref: i,
211
+ role: "group",
212
+ "aria-label": "Items Scroller",
213
+ "aria-live": "Polite",
214
+ tabIndex: 0,
215
+ onMouseEnter: (r) => {
216
+ e.current.autoplay && l.current !== null && l.current.clearTimer();
217
+ },
218
+ onMouseLeave: (r) => {
219
+ e.current.autoplay && l.current !== null && l.current.startTimer();
220
+ },
221
+ onTouchStart: G,
222
+ "data-scrollbar": t.showScrollbar,
223
+ children: N.length > 0 && N.map((r, o) => /* @__PURE__ */ n(
224
+ J,
225
+ {
226
+ slide: r,
227
+ index: o,
228
+ currentIndex: t.wrapAround ? 1 : 0,
229
+ variableHeight: t.variableHeight
230
+ },
231
+ `carousel${A}-slide${o}`
232
+ ))
233
+ }
234
+ ),
235
+ t.showControls && z.length > e.current.cellsPerSlide && /* @__PURE__ */ D("div", { className: a["carousel-controls"], children: [
236
+ /* @__PURE__ */ n(
237
+ "button",
238
+ {
239
+ type: "button",
240
+ ref: S,
241
+ title: "Previous Item",
242
+ className: y([a["carousel-controls__btn"], a["carousel-controls__previous"], "carousel-controls__previous"]),
243
+ "aria-controls": _.current,
244
+ "aria-label": "Previous Item",
245
+ onClick: (r) => {
246
+ l.current.determineScrollAction(-1);
247
+ },
248
+ onMouseEnter: (r) => {
249
+ e.current.autoplay && l.current !== null && l.current.clearTimer();
250
+ },
251
+ onMouseLeave: (r) => {
252
+ e.current.autoplay && l.current !== null && l.current.startTimer();
253
+ },
254
+ children: /* @__PURE__ */ n("i", { "aria-hidden": "true", children: /* @__PURE__ */ n(X, { width: t.controlArrowSize, height: t.controlArrowSize }) })
255
+ }
256
+ ),
257
+ /* @__PURE__ */ n(
258
+ "button",
259
+ {
260
+ type: "button",
261
+ ref: E,
262
+ title: "Next Item",
263
+ className: y([a["carousel-controls__btn"], a["carousel-controls__next"], "carousel-controls__next"]),
264
+ "aria-controls": _.current,
265
+ "aria-label": "Next Item",
266
+ onClick: (r) => {
267
+ l.current.determineScrollAction(1);
268
+ },
269
+ onMouseEnter: (r) => {
270
+ e.current.autoplay && l.current !== null && l.current.clearTimer();
271
+ },
272
+ onMouseLeave: (r) => {
273
+ e.current.autoplay && l.current !== null && l.current.startTimer();
274
+ },
275
+ children: /* @__PURE__ */ n("i", { "aria-hidden": "true", children: /* @__PURE__ */ n(Y, { width: t.controlArrowSize, height: t.controlArrowSize }) })
276
+ }
277
+ )
278
+ ] }),
279
+ $.current && k.length > 1 && /* @__PURE__ */ n("div", { className: [a["carousel-nav"], "carousel-nav"].join(" "), children: /* @__PURE__ */ n("ol", { className: a["carousel-nav__list"], ref: I, children: k.map((r, o) => /* @__PURE__ */ n(
280
+ "li",
281
+ {
282
+ className: y([a["carousel-nav__item"], "carousel-nav__item"]),
283
+ "data-current": o === 0 ? "true" : "false",
284
+ onClick: (f) => {
285
+ l.current.navigateToIndex(o);
286
+ },
287
+ title: `Navigate to slide ${o + 1}`
288
+ },
289
+ `carousel${_}-nav-${o}`
290
+ )) }) })
291
+ ]
292
+ }
293
+ ) });
294
+ }
295
+ export {
296
+ fe as Carousel,
297
+ fe as default
298
+ };
@@ -0,0 +1,68 @@
1
+ export default class CarouselUtils {
2
+ constructor({ carouselEl, scrollerEl, paginationEl, slides, navBtnEls, options }: {
3
+ carouselEl: any;
4
+ scrollerEl: any;
5
+ paginationEl: any;
6
+ slides: any;
7
+ navBtnEls?: {
8
+ next: {};
9
+ previous: {};
10
+ } | undefined;
11
+ options: any;
12
+ });
13
+ carouselEl: any;
14
+ scrollerEl: any;
15
+ paginationEl: any;
16
+ slides: any;
17
+ currentIndex: number;
18
+ slideEls: any[];
19
+ navBtnEls: {
20
+ next: {};
21
+ previous: {};
22
+ };
23
+ currentIntersecting: {};
24
+ options: any;
25
+ timer: NodeJS.Timeout | null;
26
+ timerInterval: any;
27
+ slideGutterSize: any;
28
+ showPagination: any;
29
+ isInitialScroll: boolean;
30
+ totalSlideEls: number;
31
+ totalSlides: number;
32
+ carouselObserver: IntersectionObserver | undefined;
33
+ /**
34
+ * starts the autoplay timer
35
+ */
36
+ startTimer(): void;
37
+ /**
38
+ * clears the autoplay timer
39
+ */
40
+ clearTimer(): void;
41
+ /**
42
+ * checks to see if the scroller is moving to the
43
+ * end or beginning, if so it makes the appropriate
44
+ * updates
45
+ *
46
+ * @param {number} dir - a number representing the direction of scroll 1 for forward, -1 for backward
47
+ */
48
+ determineScrollAction(dir: number): void;
49
+ /**
50
+ * Navigates the carousel to a specific index
51
+ *
52
+ * @param {number} index
53
+ * @returns void
54
+ */
55
+ navigateToIndex(index: number): void;
56
+ /**
57
+ * Returns the current index of the carousel
58
+ *
59
+ * @returns {number} - the current index of the carousel
60
+ */
61
+ getCurrentIndex(): number;
62
+ /**
63
+ * Handles the scrollend event - determines which slide is in view and updates the carousel
64
+ * @returns void
65
+ */
66
+ handleScrollEnd(): void;
67
+ #private;
68
+ }
@@ -0,0 +1,187 @@
1
+ var w = (o) => {
2
+ throw TypeError(o);
3
+ };
4
+ var G = (o, t, s) => t.has(o) || w("Cannot " + s);
5
+ var y = (o, t, s) => t.has(o) ? w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, s);
6
+ var i = (o, t, s) => (G(o, t, "access private method"), s);
7
+ var e, T, S, L, p, f, v, B, A, z;
8
+ class N {
9
+ constructor({ carouselEl: t, scrollerEl: s, paginationEl: a, slides: O, navBtnEls: P = { next: {}, previous: {} }, options: n }) {
10
+ y(this, e);
11
+ if (!("onscrollend" in window)) {
12
+ let d = function(h, r, b) {
13
+ let c = h[r];
14
+ h[r] = function() {
15
+ let l = Array.prototype.slice.apply(arguments, [0]);
16
+ c.apply(this, l), l.unshift(c), b.apply(this, l);
17
+ };
18
+ }, I = function(h, r, b, c) {
19
+ if (r !== "scroll" && r !== "scrollend")
20
+ return;
21
+ let l = this, u = E.get(l);
22
+ if (u === void 0) {
23
+ let x = 0;
24
+ u = {
25
+ scrollListener: (W) => {
26
+ clearTimeout(x), x = setTimeout(() => {
27
+ m.size ? setTimeout(u.scrollListener, 100) : (l.dispatchEvent(C), x = 0);
28
+ }, 100);
29
+ },
30
+ listeners: 0
31
+ // Count of number of listeners.
32
+ }, h.apply(l, ["scroll", u.scrollListener]), E.set(l, u);
33
+ }
34
+ u.listeners++;
35
+ }, g = function(h, r, b) {
36
+ if (r !== "scroll" && r !== "scrollend")
37
+ return;
38
+ let c = this, l = E.get(c);
39
+ l !== void 0 && (l[r]--, !(--l.listeners > 0) && (h.apply(c, ["scroll", l.scrollListener]), E.delete(c)));
40
+ };
41
+ const C = new Event("scrollend"), m = /* @__PURE__ */ new Set();
42
+ document.addEventListener("touchstart", (h) => {
43
+ for (let r of h.changedTouches)
44
+ m.add(r.identifier);
45
+ }, { passive: !0 }), document.addEventListener("touchend", (h) => {
46
+ for (let r of h.changedTouches)
47
+ m.delete(r.identifier);
48
+ }, { passive: !0 });
49
+ let E = /* @__PURE__ */ new WeakMap();
50
+ d(Element.prototype, "addEventListener", I), d(window, "addEventListener", I), d(document, "addEventListener", I), d(Element.prototype, "removeEventListener", g), d(window, "removeEventListener", g), d(document, "removeEventListener", g);
51
+ }
52
+ this.carouselEl = t, this.scrollerEl = s, this.paginationEl = a, this.slides = O, this.currentIndex = 0, this.slideEls = [...s.children], this.navBtnEls = P, this.currentIntersecting = {}, this.options = n, n.autoplay && (this.timer = null, this.timerInterval = (n == null ? void 0 : n.delay) ?? 3500, this.startTimer()), this.slideGutterSize = (n == null ? void 0 : n.slideGutterSize) ?? 25, this.showPagination = n == null ? void 0 : n.showPagination, this.isInitialScroll = !0, this.totalSlideEls = this.slideEls.length, this.totalSlides = Math.ceil(this.slides.length / this.options.cellsPerSlide), i(this, e, T).call(this), i(this, e, L).call(this), i(this, e, S).call(this);
53
+ }
54
+ /**
55
+ * starts the autoplay timer
56
+ */
57
+ startTimer() {
58
+ this.timer || (this.timer = setInterval(() => {
59
+ this.determineScrollAction(1);
60
+ }, this.timerInterval));
61
+ }
62
+ /**
63
+ * clears the autoplay timer
64
+ */
65
+ clearTimer() {
66
+ clearInterval(this.timer), this.timer = null;
67
+ }
68
+ /**
69
+ * checks to see if the scroller is moving to the
70
+ * end or beginning, if so it makes the appropriate
71
+ * updates
72
+ *
73
+ * @param {number} dir - a number representing the direction of scroll 1 for forward, -1 for backward
74
+ */
75
+ determineScrollAction(t) {
76
+ this.options.autoplay && this.timer !== null && this.clearTimer(), t === 1 ? this.currentIndex === this.totalSlides - 1 ? this.options.wrapAround && (this.scrollerEl.style.scrollBehavior = "auto", this.scrollerEl.scrollTo(0, 0), i(this, e, f).call(this, t), this.currentIndex = 0) : (i(this, e, f).call(this, t), this.currentIndex += 1) : t === -1 && (this.currentIndex === 0 ? this.options.wrapAround && (this.scrollerEl.style.scrollBehavior = "auto", this.scrollerEl.scrollTo(99999, 0), this.currentIndex = this.totalSlides - 1, i(this, e, f).call(this, t)) : (i(this, e, f).call(this, t), this.currentIndex -= 1)), this.options.autoplay && this.timer === null && this.startTimer();
77
+ }
78
+ /**
79
+ * Navigates the carousel to a specific index
80
+ *
81
+ * @param {number} index
82
+ * @returns void
83
+ */
84
+ navigateToIndex(t) {
85
+ if (t === this.currentIndex) return;
86
+ this.options.autoplay && this.clearTimer();
87
+ let s = t > this.currentIndex ? t - this.currentIndex : this.currentIndex - t, a = t > this.currentIndex ? 1 : -1;
88
+ this.currentIndex = t, i(this, e, f).call(this, a, s), this.options.autoplay && this.startTimer(), i(this, e, v).call(this);
89
+ }
90
+ /**
91
+ * Returns the current index of the carousel
92
+ *
93
+ * @returns {number} - the current index of the carousel
94
+ */
95
+ getCurrentIndex() {
96
+ return this.currentIndex;
97
+ }
98
+ /**
99
+ * Handles the scrollend event - determines which slide is in view and updates the carousel
100
+ * @returns void
101
+ */
102
+ handleScrollEnd() {
103
+ if (this.timer === null && this.options.autoplay && this.startTimer(), this.currentIntersecting.target) {
104
+ const t = Number.parseInt(this.currentIntersecting.target.getAttribute("data-index"), 10);
105
+ if (!this.options.wrapAround) {
106
+ this.currentIndex = t, i(this, e, v).call(this);
107
+ return;
108
+ }
109
+ t === 0 ? (this.currentIndex = this.slides.length - 1, i(this, e, p).call(this, { scrollport: this.scrollerEl, element: this.slideEls[this.totalSlides] })) : t === this.totalSlideEls - 1 ? (this.currentIndex = 0, i(this, e, p).call(this, { scrollport: this.scrollerEl, element: this.slideEls[1] })) : this.currentIndex = t - 1;
110
+ }
111
+ i(this, e, v).call(this);
112
+ }
113
+ }
114
+ e = new WeakSet(), /**
115
+ * adds an observer to the scroller element that we can use to
116
+ * determine which slide is intersecting
117
+ */
118
+ T = function() {
119
+ this.carouselObserver = new IntersectionObserver((t) => {
120
+ for (let s of t)
121
+ s.isIntersecting && (this.currentIntersecting = s);
122
+ }, {
123
+ root: this.scrollerEl,
124
+ threshold: 0.8
125
+ });
126
+ }, /**
127
+ * sets listeners on the slide elements for the observer
128
+ */
129
+ S = function() {
130
+ for (let t of this.slideEls)
131
+ this.carouselObserver.observe(t);
132
+ }, /**
133
+ * sets some intial settings for the carousel based on some of the options
134
+ */
135
+ L = function() {
136
+ this.options.wrapAround ? (this.scrollerEl.style.scrollBehavior = "auto", this.scrollerEl.scrollTo(-9999, 0), i(this, e, p).call(this, { scrollport: this.scrollerEl, element: this.scrollerEl.children[1] })) : this.options.showControls ? (this.navBtnEls.previous.setAttribute("disabled", !0), i(this, e, v).call(this)) : i(this, e, A).call(this), this.totalSlides === 1 && this.slideEls[0].removeAttribute("inert");
137
+ }, /**
138
+ * Scrolls the carousel to a specific child element
139
+ * @param {*} param0 - an object containing the scrollport element and the child element to scroll to
140
+ */
141
+ p = function({ scrollport: t, element: s }) {
142
+ const a = this.slideGutterSize * 2 / 100;
143
+ t.style.scrollBehavior = "auto", t.scrollTo(Math.abs(t.offsetLeft - s.offsetLeft + s.clientWidth * a), 0);
144
+ }, /**
145
+ * Scrolls the carousel in a specified direction by a specified distance
146
+ *
147
+ * @param {number} dir - a number representing the direction of scroll 1 for forward, -1 for backward
148
+ * @param {number} distance - a number representing the number of slides to scroll
149
+ */
150
+ f = function(t, s = 1) {
151
+ this.scrollerEl.style.scrollBehavior = "smooth", this.scrollerEl.scrollBy({
152
+ left: this.scrollerEl.clientWidth * ((100 - this.slideGutterSize * 2) / 100) * s * t,
153
+ top: 0,
154
+ behavior: "smooth"
155
+ });
156
+ }, /**
157
+ * Syncronizes various elements of the carousel
158
+ *
159
+ * add methods here to have them sync
160
+ * when scroller is scrolled
161
+ */
162
+ v = function() {
163
+ i(this, e, A).call(this), this.showPagination && i(this, e, z).call(this), this.options.wrapAround || i(this, e, B).call(this);
164
+ }, /**
165
+ * Sets the control arrow buttons to disabled if the carousel is at the start or end
166
+ */
167
+ B = function() {
168
+ this.navBtnEls.previous && this.navBtnEls.next && (this.navBtnEls.previous.removeAttribute("disabled"), this.navBtnEls.next.removeAttribute("disabled"), this.currentIndex === 0 && this.navBtnEls.previous.toggleAttribute("disabled"), this.currentIndex === this.slideEls.length - 1 && this.navBtnEls.next.toggleAttribute("disabled"));
169
+ }, /**
170
+ * Sets the inert attribute on all slides that are not the current slide
171
+ */
172
+ A = function() {
173
+ const t = this.options.wrapAround ? this.currentIndex + 1 : this.currentIndex;
174
+ this.slideEls.length === 1 ? this.slideEls[0].removeAttribute("inert") : this.slideEls.forEach((s, a) => {
175
+ s.toggleAttribute("inert", a !== t);
176
+ });
177
+ }, /**
178
+ * Sets the pagination indicator to the current slide
179
+ */
180
+ z = function() {
181
+ [...this.paginationEl.children].forEach((t, s) => {
182
+ s === this.currentIndex ? t.setAttribute("data-current", "true") : t.setAttribute("data-current", "false");
183
+ });
184
+ };
185
+ export {
186
+ N as default
187
+ };
@@ -0,0 +1 @@
1
+ export { Carousel, Carousel as default } from './Carousel';
@@ -0,0 +1,5 @@
1
+ import { Carousel as o, Carousel as r } from "./Carousel.js";
2
+ export {
3
+ o as Carousel,
4
+ r as default
5
+ };
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export default Pagination;
3
+ declare const Pagination: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
@@ -0,0 +1,18 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import t from "react";
3
+ import '../../../assets/Pagination.css';const l = {
4
+ "carousel-nav": "_carousel-nav_1booq_86",
5
+ "carousel-nav__list": "_carousel-nav__list_1booq_90",
6
+ "carousel-nav__item": "_carousel-nav__item_1booq_99"
7
+ }, v = t.forwardRef(({ slides: o, carouselId: r, CarouselUtil: _, scrollerRef: c }, s) => /* @__PURE__ */ e("div", { className: `${l["carousel-nav"]} carousel-nav`, children: /* @__PURE__ */ e("ol", { className: l["carousel-nav__list"], ref: s, children: o.map((u, a) => /* @__PURE__ */ e(
8
+ "li",
9
+ {
10
+ className: `${l["carousel-nav__item"]} carousel-nav__item`,
11
+ "data-current": a === 0 ? "true" : "false",
12
+ title: `Navigate to slide ${a + 1}`
13
+ },
14
+ `carousel${r}-nav-${a}`
15
+ )) }) }));
16
+ export {
17
+ v as default
18
+ };
@@ -0,0 +1,7 @@
1
+ export function CarouselSlide({ slide, index, currentIndex, variableHeight }: {
2
+ slide: any;
3
+ index: any;
4
+ currentIndex: any;
5
+ variableHeight?: boolean | undefined;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export default CarouselSlide;
@@ -0,0 +1,37 @@
1
+ import { jsx as t, Fragment as c } from "react/jsx-runtime";
2
+ import { useState as d, useEffect as m, createElement as p } from "react";
3
+ import { classes as f } from "../../utils/helpers.js";
4
+ import { slideLayoutsMap as h } from "../../settings.js";
5
+ import '../../assets/CarouselSlide.css';const g = "_slide_gx8qn_1", i = {
6
+ slide: g,
7
+ "slide--variable-height": "_slide--variable-height_gx8qn_17"
8
+ };
9
+ function v({
10
+ slide: e,
11
+ index: l,
12
+ currentIndex: r,
13
+ variableHeight: s = !1
14
+ }) {
15
+ const [a, o] = d(null);
16
+ return m(() => {
17
+ o(h.get(e.layout));
18
+ }, [e]), /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
19
+ "li",
20
+ {
21
+ className: f([
22
+ i.slide,
23
+ "slide",
24
+ s ? i["slide--variable-height"] : ""
25
+ ]),
26
+ "aria-label": e.ariaLabel,
27
+ "aria-roledescription": "carousel-item",
28
+ inert: r !== l ? "" : null,
29
+ "data-index": l,
30
+ children: a !== null && e.cells.map((n, u) => /* @__PURE__ */ p(a, { ...n.props, key: `slide${l}-cell${u}` }))
31
+ }
32
+ ) });
33
+ }
34
+ export {
35
+ v as CarouselSlide,
36
+ v as default
37
+ };
@@ -0,0 +1 @@
1
+ export { CarouselSlide, CarouselSlide as default } from './CarouselSlide';
@@ -0,0 +1,5 @@
1
+ import { CarouselSlide as a, CarouselSlide as o } from "./CarouselSlide.js";
2
+ export {
3
+ a as CarouselSlide,
4
+ o as default
5
+ };
@@ -0,0 +1,2 @@
1
+ export function Empty(): import("react/jsx-runtime").JSX.Element;
2
+ export default Empty;
@@ -0,0 +1,9 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "react";
3
+ function r() {
4
+ return /* @__PURE__ */ t("div", { className: "empty-slide" });
5
+ }
6
+ export {
7
+ r as Empty,
8
+ r as default
9
+ };
@@ -0,0 +1 @@
1
+ export { Empty, Empty as default } from './Empty';
@@ -0,0 +1,5 @@
1
+ import { Empty as p, Empty as a } from "./Empty.js";
2
+ export {
3
+ p as Empty,
4
+ a as default
5
+ };
@@ -0,0 +1,9 @@
1
+ export function FigureSlide({ images, imagesPerSlide }: {
2
+ images?: {
3
+ url: string;
4
+ altText: string;
5
+ caption: string;
6
+ }[] | undefined;
7
+ imagesPerSlide?: number | undefined;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export default FigureSlide;