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

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 (126) hide show
  1. package/dist/{Form.module-DbpB9u1l.mjs → Form.module-Cd8qH2rj.mjs} +1 -1
  2. package/dist/{ResultsTable.module-nTlGw9Lh.mjs → ResultsTable.module-B7M9y7hd.mjs} +1 -5
  3. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  4. package/dist/{add-FrnMPwwO.mjs → add-UWUc_nrO.mjs} +2 -2
  5. package/dist/{addMonths-BDf46gmB.mjs → addMonths-FatsTLmU.mjs} +1 -1
  6. package/dist/assets/ActionButton.css +1 -1
  7. package/dist/assets/AdBlock.css +1 -1
  8. package/dist/assets/CarouselSlide.css +1 -1
  9. package/dist/assets/ChannelSearch.css +1 -1
  10. package/dist/assets/DateNavigation.css +1 -1
  11. package/dist/assets/DatePicker.css +1 -1
  12. package/dist/assets/DeviceAndPlatformLists.css +1 -1
  13. package/dist/assets/EqualSizeFlexRow.css +1 -1
  14. package/dist/assets/EqualSizeGrid.css +1 -1
  15. package/dist/assets/FeaturedList.css +1 -1
  16. package/dist/assets/Figure.css +1 -1
  17. package/dist/assets/FindUs.css +1 -1
  18. package/dist/assets/Form.css +1 -1
  19. package/dist/assets/GridList.css +1 -1
  20. package/dist/assets/IONShowHero.css +1 -1
  21. package/dist/assets/ImageCard.css +1 -1
  22. package/dist/assets/LogoListItem.css +1 -1
  23. package/dist/assets/ModalContainer.css +1 -1
  24. package/dist/assets/PageHero.css +1 -1
  25. package/dist/assets/ProgramAirdate.css +1 -1
  26. package/dist/assets/PromotionBlock.css +1 -1
  27. package/dist/assets/ResultsTable.css +1 -1
  28. package/dist/{chevron-left-DmvQntvu.mjs → chevron-left-DRvpaLmK.mjs} +1 -1
  29. package/dist/{chevron-right-CaAz6ISN.mjs → chevron-right-C8yCnmfx.mjs} +1 -1
  30. package/dist/components/ActionButton/ActionButton.d.ts +20 -1
  31. package/dist/components/ActionButton/ActionButton.js +36 -36
  32. package/dist/components/ActionButton/index.d.ts +2 -1
  33. package/dist/components/AirDateFormatter/AirDateFormatter.js +3 -3
  34. package/dist/components/BasicGridModule/BasicGridModule.js +25 -25
  35. package/dist/components/Carousel/Carousel.d.ts +7 -24
  36. package/dist/components/Carousel/Carousel.js +109 -109
  37. package/dist/components/Carousel/CarouselUtils.class.d.ts +16 -28
  38. package/dist/components/Carousel/CarouselUtils.class.js +85 -55
  39. package/dist/components/CarouselSlide/CarouselSlide.d.ts +8 -6
  40. package/dist/components/CarouselSlide/CarouselSlide.js +90 -26
  41. package/dist/components/CarouselSlide/index.d.ts +2 -1
  42. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +1 -1
  43. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +3 -4
  44. package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +2 -1
  45. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +2 -2
  46. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +10 -11
  47. package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +2 -1
  48. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +2 -2
  49. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +9 -10
  50. package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +2 -1
  51. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
  52. package/dist/components/CastInfoLayout/CastInfoLayout.js +1 -1
  53. package/dist/components/ChannelSearch/ChannelSearch.js +12 -12
  54. package/dist/components/Concat/Concat.js +1 -1
  55. package/dist/components/CtaBlock/CtaBlock.js +2 -2
  56. package/dist/components/CustomDataList/CustomDataList.js +44 -47
  57. package/dist/components/CustomSelect/CustomSelect.js +5 -5
  58. package/dist/components/DateNavigation/DateNavigation.js +7 -8
  59. package/dist/components/DatePicker/DatePicker.js +2527 -2452
  60. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +1 -1
  61. package/dist/components/DrawerNavigation/DrawerNavigation.js +27 -29
  62. package/dist/components/ErrorHandler/ErrorHandler.js +1 -1
  63. package/dist/components/FeaturedList/FeaturedList.js +7 -7
  64. package/dist/components/Figure/Figure.js +1 -1
  65. package/dist/components/FindUs/FindUs.js +6 -6
  66. package/dist/components/GenericList/GenericList.js +1 -1
  67. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +6 -6
  68. package/dist/components/ImageCard/ImageCard.js +6 -6
  69. package/dist/components/ImageCard/ImageCardCore.js +1 -1
  70. package/dist/components/InfoPanel/InfoPanel.js +15 -16
  71. package/dist/components/InlineNavigation/InlineNavigation.js +6 -7
  72. package/dist/components/Input/Input.js +1 -1
  73. package/dist/components/InstructionsList/InstructionsList.js +1 -1
  74. package/dist/components/Loading/Loading.js +5 -8
  75. package/dist/components/ModalContainer/ModalContainer.js +41 -44
  76. package/dist/components/Overlay/Overlay.js +17 -20
  77. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
  78. package/dist/components/ProgramAirdate/ProgramAirdate.js +9 -9
  79. package/dist/components/PromotionBlock/PromotionBlock.js +15 -17
  80. package/dist/components/PromotionsRowModule/PromotionsRowModule.js +8 -8
  81. package/dist/components/ResultsTable/ResultsTable.js +7 -7
  82. package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
  83. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +1 -1
  84. package/dist/components/ScheduleLayout/ScheduleLayout.js +2 -2
  85. package/dist/components/ScheduleList/ScheduleList.js +17 -17
  86. package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +10 -10
  87. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +8 -8
  88. package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +8 -8
  89. package/dist/components/SectionedContent/SectionedContent.js +13 -16
  90. package/dist/components/Select/Select.js +1 -1
  91. package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
  92. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +24 -25
  93. package/dist/components/SocialLinks/SocialLinks.js +3 -3
  94. package/dist/components/SocialShareBlock/SocialShareBlock.js +8 -8
  95. package/dist/components/StringList/StringList.js +1 -1
  96. package/dist/components/TabContent/TabContent.js +1 -1
  97. package/dist/components/TextArea/TextArea.js +1 -1
  98. package/dist/components/UpcomingList/UpcomingList.js +8 -8
  99. package/dist/containers/NowPlayingContainer.js +10 -10
  100. package/dist/{facebook-osmzgL7R.mjs → facebook-HCcA1M1m.mjs} +1 -1
  101. package/dist/{format-plq8pBNY.mjs → format-YhWt2D8M.mjs} +78 -12
  102. package/dist/hooks/useGetSchedule.js +3 -3
  103. package/dist/hooks/useGetUpcoming.js +2 -2
  104. package/dist/{index-C8O1hjfH.mjs → index-0wieGV50.mjs} +0 -1
  105. package/dist/{index-DC7FmJPK.mjs → index-C-kn9Zhn.mjs} +7134 -7069
  106. package/dist/{index-CZzwT3Oj.mjs → index-DC2JJV3a.mjs} +246 -241
  107. package/dist/index-VjANCDXC.mjs +1873 -0
  108. package/dist/settings.d.ts +4 -3
  109. package/dist/{sub-CkNH5u-l.mjs → sub-CoUmnfhv.mjs} +2 -2
  110. package/dist/{subMonths-nbU1oDhB.mjs → subMonths-BtMU5A9u.mjs} +1 -1
  111. package/dist/{triangle-D0AHL9lB.mjs → triangle-PcCcGXjr.mjs} +1 -1
  112. package/dist/types.d.js +27 -0
  113. package/dist/utils/analytics.js +434 -423
  114. package/dist/utils/date-helpers.js +4 -4
  115. package/dist/utils/getFeaturedList.js +3 -3
  116. package/dist/utils/getOnNowProgram.js +3 -3
  117. package/dist/utils/getUpcomingPrograms.js +2 -2
  118. package/dist/{x-D8_C2o-U.mjs → x-C-QzJ-qD.mjs} +1 -1
  119. package/package.json +27 -24
  120. package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
  121. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +0 -34
  122. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +0 -105
  123. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +0 -19
  124. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +0 -35
  125. package/dist/index-B0ARwqly.mjs +0 -1818
  126. /package/dist/{networks-ui.d.ts → secl-ui.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { jsxs as v, jsx as l } from "react/jsx-runtime";
2
2
  import "react";
3
+ import { classes as a } from "../../utils/helpers.js";
3
4
  import { GridList as r } from "../GridList/GridList.js";
4
5
  import { LogoListItem as _ } from "../LogoListItem/LogoListItem.js";
5
- import { classes as a } from "../../utils/helpers.js";
6
6
  import '../../assets/DeviceAndPlatformLists.css';const t = {
7
7
  "devices-platforms": "_devices-platforms_1jzzl_1",
8
8
  "devices-platforms__column": "_devices-platforms__column_1jzzl_5",
@@ -1,55 +1,53 @@
1
- import { jsxs as r, Fragment as m, jsx as e } from "react/jsx-runtime";
2
- import { useState as c } from "react";
1
+ import { jsxs as t, Fragment as h, jsx as e } from "react/jsx-runtime";
2
+ import { useState as v } from "react";
3
3
  import { classes as o } from "../../utils/helpers.js";
4
4
  import { NavList as b } from "../NavList/NavList.js";
5
- import { LogoNavigation as k } from "../LogoNavigation/LogoNavigation.js";
6
- import { ImageReplacementAnchor as N } from "../ImageReplacementAnchor/ImageReplacementAnchor.js";
5
+ import { LogoNavigation as N } from "../LogoNavigation/LogoNavigation.js";
6
+ import { ImageReplacementAnchor as k } from "../ImageReplacementAnchor/ImageReplacementAnchor.js";
7
7
  import { Overlay as x } from "../Overlay/Overlay.js";
8
- import '../../assets/DrawerNavigation.css';const A = "_clipPathOpen_5hknh_1", O = "_clipPathClose_5hknh_1", n = {
8
+ import '../../assets/DrawerNavigation.css';const n = {
9
9
  "drawer-navigation__nav-bar": "_drawer-navigation__nav-bar_5hknh_1",
10
10
  "with-logo": "_with-logo_5hknh_11",
11
11
  "drawer-navigation__menu-toggle": "_drawer-navigation__menu-toggle_5hknh_15",
12
12
  "drawer-navigation__hamburger": "_drawer-navigation__hamburger_5hknh_22",
13
13
  "drawer-navigation__primary-navigation": "_drawer-navigation__primary-navigation_5hknh_54",
14
- clipPathOpen: A,
15
- clipPathClose: O,
16
14
  "drawer-navigation__separator": "_drawer-navigation__separator_5hknh_102",
17
15
  "visually-hidden": "_visually-hidden_5hknh_113"
18
16
  };
19
17
  function I({
20
18
  links: s = [],
21
- items: l = [],
22
- classname: v = "",
19
+ items: g = [],
20
+ classname: c = "",
23
21
  logo: i = {},
24
22
  clipPathStart: p = "circle(0% at top right)",
25
23
  clipPathEnd: u = "circle(250% at top right)",
26
24
  overlayAppendEl: w = document.querySelector("#root")
27
25
  }) {
28
- const [a, y] = c(!1), [_, g] = c(null), h = document.querySelector("body"), d = () => {
29
- if (y(!a), g("closing"), a) {
30
- const t = document.querySelector("#overlay");
31
- t == null || t.setAttribute("data-state", "exiting"), setTimeout(() => {
32
- t == null || t.remove(), h.style.overflowY = "auto";
26
+ const [a, y] = v(!1), [d, l] = v(null), m = document.querySelector("body"), _ = () => {
27
+ if (y(!a), l("closing"), a) {
28
+ const r = document.querySelector("#overlay");
29
+ r == null || r.setAttribute("data-state", "exiting"), setTimeout(() => {
30
+ r == null || r.remove(), m.style.overflowY = "auto";
33
31
  }, 400);
34
32
  } else
35
- h.style.overflowY = "hidden";
33
+ m.style.overflowY = "hidden";
36
34
  }, f = () => {
37
- a || g(null);
35
+ a || l(null);
38
36
  };
39
- return document.addEventListener("scripps:overlay:closed", d), // Ideally the parent for this component will be a <nav> for accessibility reasons
40
- /* @__PURE__ */ r(m, { children: [
41
- /* @__PURE__ */ r(
37
+ return document.addEventListener("scripps:overlay:closed", _), // Ideally the parent for this component will be a <nav> for accessibility reasons
38
+ /* @__PURE__ */ t(h, { children: [
39
+ /* @__PURE__ */ t(
42
40
  "div",
43
41
  {
44
42
  className: o([
45
43
  n["drawer-navigation__nav-bar"],
46
44
  "drawer-navigation__nav-bar",
47
45
  i.image && n["with-logo"],
48
- `drawer-navigation__nav-bar--${a ? "expanded" : _ ? "closing" : "closed"}`
46
+ `drawer-navigation__nav-bar--${a ? "expanded" : d ? "closing" : "closed"}`
49
47
  ]),
50
48
  children: [
51
49
  i.image && /* @__PURE__ */ e(
52
- N,
50
+ k,
53
51
  {
54
52
  href: i.href,
55
53
  image: i.image,
@@ -57,7 +55,7 @@ function I({
57
55
  baselineAdjustment: i.baselineAdjustment
58
56
  }
59
57
  ),
60
- /* @__PURE__ */ r(
58
+ /* @__PURE__ */ t(
61
59
  "button",
62
60
  {
63
61
  className: o([
@@ -66,7 +64,7 @@ function I({
66
64
  ]),
67
65
  "aria-controls": "drawer-navigation__primary-navigation",
68
66
  "aria-expanded": a,
69
- onClick: d,
67
+ onClick: _,
70
68
  children: [
71
69
  /* @__PURE__ */ e("span", { className: n["visually-hidden"], children: "Menu" }),
72
70
  /* @__PURE__ */ e(
@@ -85,7 +83,7 @@ function I({
85
83
  ]
86
84
  }
87
85
  ),
88
- /* @__PURE__ */ r(
86
+ /* @__PURE__ */ t(
89
87
  "div",
90
88
  {
91
89
  className: o([
@@ -93,15 +91,15 @@ function I({
93
91
  "drawer-navigation__primary-navigation"
94
92
  ]),
95
93
  id: "drawer-navigation__primary-navigation",
96
- "data-state": a ? "opened" : _ || "closed",
94
+ "data-state": a ? "opened" : d || "closed",
97
95
  onAnimationEnd: f,
98
96
  style: {
99
97
  "--clip-path-start": p,
100
98
  "--clip-path-end": u
101
99
  },
102
100
  children: [
103
- s.length > 0 && /* @__PURE__ */ e(b, { links: s, classname: v, toggleHandler: d }),
104
- l.length > 0 && /* @__PURE__ */ r(m, { children: [
101
+ s.length > 0 && /* @__PURE__ */ e(b, { links: s, classname: c, toggleHandler: _ }),
102
+ g.length > 0 && /* @__PURE__ */ t(h, { children: [
105
103
  /* @__PURE__ */ e(
106
104
  "hr",
107
105
  {
@@ -111,12 +109,12 @@ function I({
111
109
  ])
112
110
  }
113
111
  ),
114
- /* @__PURE__ */ e(k, { items: l })
112
+ /* @__PURE__ */ e(N, { items: g })
115
113
  ] })
116
114
  ]
117
115
  }
118
116
  ),
119
- a && /* @__PURE__ */ e(x, { appendToElement: w, state: _ === null && !a ? "exiting" : "entering" })
117
+ a && /* @__PURE__ */ e(x, { appendToElement: w, state: d === null && !a ? "exiting" : "entering" })
120
118
  ] });
121
119
  }
122
120
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
2
  import "react";
3
- import { p as _ } from "../../index-B0ARwqly.mjs";
3
+ import { p as _ } from "../../index-VjANCDXC.mjs";
4
4
  import { classes as e } from "../../utils/helpers.js";
5
5
  import '../../assets/ErrorHandler.css';const s = {
6
6
  "error-handler__message": "_error-handler__message_4uq8z_1"
@@ -1,10 +1,10 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { ImageCard as i } from "../ImageCard/ImageCard.js";
4
- import { Loading as p } from "../Loading/Loading.js";
5
- import { AirDateFormatter as c } from "../AirDateFormatter/AirDateFormatter.js";
6
- import { convert12to24 as u } from "../../utils/helpers.js";
3
+ import { convert12to24 as i } from "../../utils/helpers.js";
7
4
  import { determineSeriesPrefix as s } from "../../utils/program-helpers.js";
5
+ import { ImageCard as p } from "../ImageCard/ImageCard.js";
6
+ import { Loading as c } from "../Loading/Loading.js";
7
+ import { AirDateFormatter as u } from "../AirDateFormatter/AirDateFormatter.js";
8
8
  import '../../assets/FeaturedList.css';function y({
9
9
  list: a = [],
10
10
  imageAspectRatio: n = 800 / 1393,
@@ -12,18 +12,18 @@ import '../../assets/FeaturedList.css';function y({
12
12
  handleClicks: d = () => {
13
13
  }
14
14
  }) {
15
- if (a === null) return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(p, {}) });
15
+ if (a === null) return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(c, {}) });
16
16
  if (a.length) return /* @__PURE__ */ e("featured-list", { children: a.map((r) => {
17
17
  var l, t;
18
18
  return /* @__PURE__ */ e(
19
- i,
19
+ p,
20
20
  {
21
21
  image: {
22
22
  url: ((l = r == null ? void 0 : r.content) == null ? void 0 : l.image) ?? "",
23
23
  aspectRatio: n,
24
24
  altText: r.program
25
25
  },
26
- content: /* @__PURE__ */ e(c, { airdateStr: `${r.start_date} ${u(r.start_time)}`, separatorType: "pipe" }),
26
+ content: /* @__PURE__ */ e(u, { airdateStr: `${r.start_date} ${i(r.start_time)}`, separatorType: "pipe" }),
27
27
  fullCardClickable: !0,
28
28
  handleClicks: o ? () => {
29
29
  } : d,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import "react";
3
- import { p as o } from "../../index-B0ARwqly.mjs";
3
+ import { p as o } from "../../index-VjANCDXC.mjs";
4
4
  import '../../assets/Figure2.css';const s = "_figure_1wcw1_1", c = {
5
5
  figure: s
6
6
  };
@@ -1,10 +1,10 @@
1
1
  import { jsxs as s, jsx as e, Fragment as j } from "react/jsx-runtime";
2
2
  import { useState as v, useEffect as N } from "react";
3
+ import { getViewingPlatforms as W } from "../../utils/getViewingPlatforms.js";
3
4
  import { ChannelSearch as b } from "../ChannelSearch/ChannelSearch.js";
4
- import { RescanInstructions as W } from "../RescanInstructions/RescanInstructions.js";
5
- import { DeviceAndPlatformLists as M } from "../DeviceAndPlatformLists/DeviceAndPlatformLists.js";
5
+ import { RescanInstructions as M } from "../RescanInstructions/RescanInstructions.js";
6
+ import { DeviceAndPlatformLists as x } from "../DeviceAndPlatformLists/DeviceAndPlatformLists.js";
6
7
  import { GeneralErrorBoundary as c } from "../../error-boundries/GeneralErrorBoundry.js";
7
- import { getViewingPlatforms as x } from "../../utils/getViewingPlatforms.js";
8
8
  import '../../assets/FindUs.css';const F = "_findus__column_mvuro_8", u = {
9
9
  "grid-wrapper": "_grid-wrapper_mvuro_1",
10
10
  findus__column: F
@@ -31,7 +31,7 @@ function G({
31
31
  const [r, w] = v(null), [g, I] = v(i ? a : 0);
32
32
  return N(() => {
33
33
  r === null && (async () => {
34
- const o = await x({ network: t.platformsSlug, platformsApiUrl: m });
34
+ const o = await W({ network: t.platformsSlug, platformsApiUrl: m });
35
35
  w(o);
36
36
  })();
37
37
  }, [r, t.platformsSlug, m]), N(() => {
@@ -94,7 +94,7 @@ function G({
94
94
  }
95
95
  )
96
96
  ] }),
97
- /* @__PURE__ */ e(W, { brandName: t.brand_name })
97
+ /* @__PURE__ */ e(M, { brandName: t.brand_name })
98
98
  ] }),
99
99
  /* @__PURE__ */ s(
100
100
  c,
@@ -102,7 +102,7 @@ function G({
102
102
  errorTitle: "We're sorry, there's currently an issue with our device and platform lists.",
103
103
  errorMessage: "Please try again later. If the problem persists please use the <strong>contact us</strong> link below to report the issue.",
104
104
  children: [
105
- r !== null && r.size > 0 && r.get("error") === void 0 && /* @__PURE__ */ e(M, { platformResources: r, ..._ && { numberOfColumns: _ } }),
105
+ r !== null && r.size > 0 && r.get("error") === void 0 && /* @__PURE__ */ e(x, { platformResources: r, ..._ && { numberOfColumns: _ } }),
106
106
  r !== null && r.size === 0 && /* @__PURE__ */ e("div", { className: "find-us__error", children: /* @__PURE__ */ s("p", { className: "find-us__error-message", children: [
107
107
  "We couldn't find any viewing platforms for ",
108
108
  t.brand_name,
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import "react";
3
- import { p as s } from "../../index-B0ARwqly.mjs";
3
+ import { p as s } from "../../index-VjANCDXC.mjs";
4
4
  import { classes as o } from "../../utils/helpers.js";
5
5
  function u({
6
6
  list: p = [],
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, Fragment as d } from "react/jsx-runtime";
2
2
  import { useState as s } from "react";
3
- import A from "../../hooks/useGetUpcoming.js";
3
+ import { convert12to24 as A } from "../../utils/helpers.js";
4
+ import b from "../../hooks/useGetUpcoming.js";
4
5
  import { AirDateFormatter as c } from "../AirDateFormatter/AirDateFormatter.js";
5
- import { StringList as b } from "../StringList/StringList.js";
6
- import { convert12to24 as h } from "../../utils/helpers.js";
6
+ import { StringList as h } from "../StringList/StringList.js";
7
7
  const N = (i) => {
8
8
  let n;
9
9
  for (let t = 0; t < i.title_code.length; t++)
@@ -22,12 +22,12 @@ function v({
22
22
  NETWORK: u
23
23
  }) {
24
24
  const [a, S] = s(null), [$, x] = s(null);
25
- return A({ programId: i, programType: n, SCHEDULE_ENDPOINT: _, NETWORK: u }).then((e) => {
25
+ return b({ programId: i, programType: n, SCHEDULE_ENDPOINT: _, NETWORK: u }).then((e) => {
26
26
  var p, f;
27
27
  let l = null, o = null;
28
- e.length && (l = `${e[0].start_date_parse} ${h(e[0].start_time)}`, m && ((p = e[0]) != null && p.episode_number ? o = `${(f = e[0]) == null ? void 0 : f.episode_number}: ${e[0].title_name}` : o = `${N(e[0])}: ${e[0].title_name}`)), S(l), x(o);
28
+ e.length && (l = `${e[0].start_date_parse} ${A(e[0].start_time)}`, m && ((p = e[0]) != null && p.episode_number ? o = `${(f = e[0]) == null ? void 0 : f.episode_number}: ${e[0].title_name}` : o = `${N(e[0])}: ${e[0].title_name}`)), S(l), x(o);
29
29
  }), a === null ? /* @__PURE__ */ r(d, {}) : i === "" ? /* @__PURE__ */ r(d, {}) : m ? /* @__PURE__ */ r(
30
- b,
30
+ h,
31
31
  {
32
32
  list: [/* @__PURE__ */ r(c, { airdateStr: a, separatorType: t }), $],
33
33
  separatorType: "pipe"
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as v } from "react";
3
- import k from "./ImageCardCore.js";
4
- import { classes as x } from "../../utils/helpers.js";
3
+ import { classes as k } from "../../utils/helpers.js";
4
+ import x from "./ImageCardCore.js";
5
5
  import '../../assets/ImageCard.css';const l = {
6
6
  "image-card--clickable": "_image-card--clickable_1b3j4_13",
7
7
  "image-card__img-wrapper": "_image-card__img-wrapper_1b3j4_17",
@@ -55,7 +55,7 @@ import '../../assets/ImageCard.css';const l = {
55
55
  return c && (e == null ? void 0 : e.href) !== "" && ((e == null ? void 0 : e.type) === "internal-link" || (e == null ? void 0 : e.type) === "external-link") ? /* @__PURE__ */ n(
56
56
  "image-card",
57
57
  {
58
- class: x([
58
+ class: k([
59
59
  c ? l["image-card--clickable"] : null,
60
60
  i ? l["image-card--inline"] : null,
61
61
  y
@@ -80,14 +80,14 @@ import '../../assets/ImageCard.css';const l = {
80
80
  target: e.type === "external-link" ? "_blank" : "_self",
81
81
  rel: e.type === "external-link" ? "noreferrer" : null,
82
82
  className: "image-card__full-card-link",
83
- children: /* @__PURE__ */ n(k, { ..._, styles: l, ref: o })
83
+ children: /* @__PURE__ */ n(x, { ..._, styles: l, ref: o })
84
84
  }
85
85
  )
86
86
  }
87
87
  ) : /* @__PURE__ */ n(
88
88
  "image-card",
89
89
  {
90
- class: x([
90
+ class: k([
91
91
  i ? l["image-card--inline"] : null,
92
92
  y
93
93
  ]),
@@ -103,7 +103,7 @@ import '../../assets/ImageCard.css';const l = {
103
103
  },
104
104
  onClick: c ? f : () => !0,
105
105
  "data-cursor": c ? "pointer" : "default",
106
- children: /* @__PURE__ */ n(k, { ..._, styles: l, ref: o })
106
+ children: /* @__PURE__ */ n(x, { ..._, styles: l, ref: o })
107
107
  }
108
108
  );
109
109
  });
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, Fragment as v, jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as R } from "react";
3
- import { p as w } from "../../index-B0ARwqly.mjs";
3
+ import { p as w } from "../../index-VjANCDXC.mjs";
4
4
  import { AnchorTag as x } from "../AnchorTag/AnchorTag.js";
5
5
  import { ButtonAnchor as c } from "../ButtonAnchor/ButtonAnchor.js";
6
6
  import { ResponsiveImage as k } from "../ResponsiveImage/ResponsiveImage.js";
@@ -1,43 +1,42 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { useState as d, useRef as b, useEffect as m } from "react";
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { useState as b, useRef as d, useEffect as m } from "react";
3
3
  import { classes as i } from "../../utils/helpers.js";
4
4
  import { blockLayoutsMap as h } from "../../settings.js";
5
- import { C as k } from "../../chevron-left-DmvQntvu.mjs";
6
- import '../../assets/InfoPanel.css';const v = "_fade_1j4w6_1", s = {
5
+ import { C as k } from "../../chevron-left-DRvpaLmK.mjs";
6
+ import '../../assets/InfoPanel.css';const l = {
7
7
  "info-panel": "_info-panel_1j4w6_1",
8
- fade: v,
9
8
  "info-panel__back-btn": "_info-panel__back-btn_1j4w6_19"
10
9
  };
11
10
  function N({
12
11
  layoutComponent: e = { layout: "", props: {} },
13
- onBackClicked: l = () => {
12
+ onBackClicked: s = () => {
14
13
  },
15
14
  backButtonLabel: c = "Back to List",
16
15
  classname: y = ""
17
16
  }) {
18
- const [f, L] = d(null), [t, u] = d("entering"), n = b(null), p = b(null), _ = (a) => {
19
- p.current = a, u("exiting"), n.current.scrollTo({
17
+ const [f, L] = b(null), [t, u] = b("entering"), n = d(null), p = d(null), _ = (o) => {
18
+ p.current = o, u("exiting"), n.current.scrollTo({
20
19
  top: n.current.offsetTop,
21
20
  left: 0,
22
21
  behaviour: "instant"
23
22
  });
24
23
  };
25
24
  return m(() => {
26
- async function a() {
25
+ async function o() {
27
26
  L(h.get(e.layout));
28
27
  }
29
- a();
28
+ o();
30
29
  }, [e.layout]), m(() => {
31
30
  n.current !== null && (t === "exiting" && n.current.addEventListener("animationend", () => {
32
- l(p.current);
31
+ s(p.current);
33
32
  }, { once: !0 }), t === "entering" && n.current.addEventListener("animationend", () => {
34
33
  u("idle");
35
34
  }, { once: !0 }));
36
- }, [t, l]), /* @__PURE__ */ o("div", { className: i([s["info-panel"], `${y}`]), "data-state": t, ref: n, children: [
37
- /* @__PURE__ */ o(
35
+ }, [t, s]), /* @__PURE__ */ a("div", { className: i([l["info-panel"], `${y}`]), "data-state": t, ref: n, children: [
36
+ /* @__PURE__ */ a(
38
37
  "button",
39
38
  {
40
- className: i([s["info-panel__back-btn"], "info-panel__back-btn"]),
39
+ className: i([l["info-panel__back-btn"], "info-panel__back-btn"]),
41
40
  type: "button",
42
41
  onClick: _,
43
42
  children: [
@@ -47,10 +46,10 @@ function N({
47
46
  }
48
47
  ),
49
48
  f !== null && /* @__PURE__ */ r(f, { ...e.props }),
50
- /* @__PURE__ */ o(
49
+ /* @__PURE__ */ a(
51
50
  "button",
52
51
  {
53
- className: i([s["info-panel__back-btn"], "info-panel__back-btn"]),
52
+ className: i([l["info-panel__back-btn"], "info-panel__back-btn"]),
54
53
  type: "button",
55
54
  onClick: _,
56
55
  children: [
@@ -1,11 +1,10 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { NavList as o } from "../NavList/NavList.js";
4
- import '../../assets/InlineNavigation.css';const r = {
5
- "inline-navigation": "_inline-navigation_3u114_1",
6
- "anchor-tag--image": "_anchor-tag--image_3u114_10"
4
+ import '../../assets/InlineNavigation.css';const l = {
5
+ "inline-navigation": "_inline-navigation_3u114_1"
7
6
  };
8
- function f({ links: t = [], classname: i = "", position: e = "left" }) {
7
+ function c({ links: t = [], classname: i = "", position: e = "left" }) {
9
8
  const a = /* @__PURE__ */ new Map([
10
9
  ["left", "flex-start"],
11
10
  ["right", "flex-end"],
@@ -14,7 +13,7 @@ function f({ links: t = [], classname: i = "", position: e = "left" }) {
14
13
  return /* @__PURE__ */ n(
15
14
  "nav",
16
15
  {
17
- className: r["inline-navigation"],
16
+ className: l["inline-navigation"],
18
17
  style: {
19
18
  "--inline-nav-justify-content": a.get(e)
20
19
  },
@@ -23,6 +22,6 @@ function f({ links: t = [], classname: i = "", position: e = "left" }) {
23
22
  );
24
23
  }
25
24
  export {
26
- f as InlineNavigation,
27
- f as default
25
+ c as InlineNavigation,
26
+ c as default
28
27
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as l } from "react/jsx-runtime";
2
2
  import { useState as s, useRef as b } from "react";
3
3
  import { classes as m, areaCodePhoneNumberMask as M } from "../../utils/helpers.js";
4
- import { s as t, C as V, A as $ } from "../../Form.module-DbpB9u1l.mjs";
4
+ import { s as t, C as V, A as $ } from "../../Form.module-Cd8qH2rj.mjs";
5
5
  function B({
6
6
  name: i,
7
7
  label: h = "",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
2
  import "react";
3
- import { p as n } from "../../index-B0ARwqly.mjs";
3
+ import { p as n } from "../../index-VjANCDXC.mjs";
4
4
  import '../../assets/InstructionsList.css';const s = {
5
5
  "instructions-list__list": "_instructions-list__list_suf45_1",
6
6
  "instructions-list__item": "_instructions-list__item_suf45_5"
@@ -1,15 +1,12 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { classes as t } from "../../utils/helpers.js";
4
- import '../../assets/Loading.css';const _ = "_spinner_4d38k_14", d = "_rot_4d38k_1", r = {
4
+ import '../../assets/Loading.css';const d = "_spinner_4d38k_14", r = {
5
5
  "spinner-wrap": "_spinner-wrap_4d38k_14",
6
- "fade-in": "_fade-in_4d38k_1",
7
- "fade-out": "_fade-out_4d38k_1",
8
- spinner: _,
9
- rot: d,
6
+ spinner: d,
10
7
  "loading-wrapper__message": "_loading-wrapper__message_4d38k_44"
11
8
  };
12
- function f({
9
+ function m({
13
10
  spinnerColor: s = "var(--theme-color-100)",
14
11
  spinnerSize: a = "3.125rem",
15
12
  spinnerTrackWidth: i = "6px",
@@ -34,6 +31,6 @@ function f({
34
31
  ] });
35
32
  }
36
33
  export {
37
- f as Loading,
38
- f as default
34
+ m as Loading,
35
+ m as default
39
36
  };
@@ -1,52 +1,49 @@
1
- import { jsx as a, jsxs as E, Fragment as S } from "react/jsx-runtime";
2
- import P, { useState as s, useRef as k, useEffect as _, Suspense as $ } from "react";
3
- import { r as A } from "../../index-DC7FmJPK.mjs";
4
- import { classes as L } from "../../utils/helpers.js";
5
- import { blockLayoutsMap as w } from "../../settings.js";
6
- import { X as F } from "../../x-D8_C2o-U.mjs";
7
- import '../../assets/ModalContainer.css';const K = "_modal_1vlfz_1", M = "_reveal_1vlfz_1", N = "_hide_1vlfz_1", v = {
8
- modal: K,
9
- reveal: M,
10
- hide: N,
11
- "backdrop-reveal": "_backdrop-reveal_1vlfz_1",
1
+ import { jsx as s, jsxs as E, Fragment as $ } from "react/jsx-runtime";
2
+ import P, { useState as a, useRef as L, useEffect as g, Suspense as A } from "react";
3
+ import { r as w } from "../../index-C-kn9Zhn.mjs";
4
+ import { classes as k } from "../../utils/helpers.js";
5
+ import { blockLayoutsMap as F } from "../../settings.js";
6
+ import { X as K } from "../../x-C-QzJ-qD.mjs";
7
+ import '../../assets/ModalContainer.css';const M = "_modal_1vlfz_1", y = {
8
+ modal: M,
12
9
  "modal__close-btn": "_modal__close-btn_1vlfz_48"
13
- }, R = (r) => {
10
+ }, N = (r) => {
14
11
  if (!document.querySelector(`#${r}`)) {
15
12
  const t = document.createElement("div");
16
13
  t.setAttribute("id", r), document.querySelector("body").append(t);
17
14
  }
18
15
  };
19
- function G({
16
+ function V({
20
17
  contentComponent: r = "BCVideoPlayer",
21
18
  airaLabel: h = "",
22
19
  modalId: t = "modal-container",
23
20
  onModalClose: x = () => !0,
24
21
  children: u
25
22
  }) {
26
- const [d, B] = s(null), [z, g] = s("entering"), [y, b] = s(!1), [c, p] = s(null), [D, f] = s(!1), o = k(null), C = k(null), m = () => {
27
- g("exiting"), b(!0), o.current !== null && setTimeout(() => {
28
- o.current.close(), b(!1), g("entering"), x();
23
+ const [p, B] = a(null), [D, _] = a("entering"), [v, C] = a(!1), [c, m] = a(null), [O, d] = a(!1), o = L(null), b = L(null), f = () => {
24
+ _("exiting"), C(!0), o.current !== null && setTimeout(() => {
25
+ o.current.close(), C(!1), _("entering"), x();
29
26
  }, 750);
30
27
  }, i = (e) => {
31
- [...o.current.attributes].findIndex((n) => n.name === "open") !== -1 && e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), m());
32
- }, O = (e) => {
33
- e.target.classList.contains(`${v.modal}`) && m();
28
+ [...o.current.attributes].findIndex((n) => n.name === "open") !== -1 && e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), f());
29
+ }, S = (e) => {
30
+ e.target.classList.contains(`${y.modal}`) && f();
34
31
  };
35
- return R(t), _(() => {
32
+ return N(t), g(() => {
36
33
  document.getElementById(t).removeEventListener(`scripps:${t.replaceAll("-", "")}:change`, (n) => {
37
- p(n.detail.componentProps), n.detail.forceOpen && f((l) => !l);
34
+ m(n.detail.componentProps), n.detail.forceOpen && d((l) => !l);
38
35
  });
39
36
  async function e() {
40
- B(w.get(r));
37
+ B(F.get(r));
41
38
  }
42
39
  return r !== "" && e(), document.getElementById(t).addEventListener(`scripps:${t.replaceAll("-", "")}:change`, (n) => {
43
- p(n.detail.componentProps), n.detail.forceOpen && f((l) => !l);
40
+ m(n.detail.componentProps), n.detail.forceOpen && d((l) => !l);
44
41
  }), () => {
45
42
  document.getElementById(t).removeEventListener(`scripps:${t.replaceAll("-", "")}:change`, (n) => {
46
- p(n.detail.componentProps), n.detail.forceOpen && f((l) => !l);
43
+ m(n.detail.componentProps), n.detail.forceOpen && d((l) => !l);
47
44
  });
48
45
  };
49
- }, [r, t]), _(() => {
46
+ }, [r, t]), g(() => {
50
47
  let e = null;
51
48
  const n = () => {
52
49
  const l = setInterval(() => {
@@ -56,46 +53,46 @@ function G({
56
53
  return o.current === null && n(), () => {
57
54
  e == null || e.close();
58
55
  };
59
- }, [d]), _(() => {
60
- o.current !== null && [...o.current.attributes].findIndex((e) => e.name === "open") === -1 && c !== null && (o.current.showModal(), C.current.blur());
61
- }, [c, D]), A.createPortal(
62
- /* @__PURE__ */ a($, { children: /* @__PURE__ */ E(
56
+ }, [p]), g(() => {
57
+ o.current !== null && [...o.current.attributes].findIndex((e) => e.name === "open") === -1 && c !== null && (o.current.showModal(), b.current.blur());
58
+ }, [c, O]), w.createPortal(
59
+ /* @__PURE__ */ s(A, { children: /* @__PURE__ */ E(
63
60
  "dialog",
64
61
  {
65
62
  ref: o,
66
- "data-state": z,
67
- className: L([v.modal, "modal"]),
63
+ "data-state": D,
64
+ className: k([y.modal, "modal"]),
68
65
  onKeyDown: i,
69
66
  onKeyUp: i,
70
- onClick: O,
67
+ onClick: S,
71
68
  onCancel: (e) => e.preventDefault(),
72
69
  "aria-modal": "true",
73
70
  "aria-label": h,
74
71
  children: [
75
- d !== null && u === void 0 && /* @__PURE__ */ a(
76
- d,
72
+ p !== null && u === void 0 && /* @__PURE__ */ s(
73
+ p,
77
74
  {
78
75
  ...c,
79
- containerClosing: y,
76
+ containerClosing: v,
80
77
  handleClosing: i
81
78
  }
82
79
  ),
83
- u !== void 0 && /* @__PURE__ */ a(S, { children: P.Children.map(u, (e) => P.cloneElement(e, {
80
+ u !== void 0 && /* @__PURE__ */ s($, { children: P.Children.map(u, (e) => P.cloneElement(e, {
84
81
  ...c,
85
- containerClosing: y,
82
+ containerClosing: v,
86
83
  handleClosing: i
87
84
  })) }),
88
85
  /* @__PURE__ */ E(
89
86
  "button",
90
87
  {
91
88
  type: "button",
92
- onClick: m,
93
- className: L([v["modal__close-btn"], "modal__close-btn"]),
89
+ onClick: f,
90
+ className: k([y["modal__close-btn"], "modal__close-btn"]),
94
91
  "aria-label": "Close",
95
- ref: C,
92
+ ref: b,
96
93
  children: [
97
- /* @__PURE__ */ a("span", { className: "sr-only", children: "close" }),
98
- /* @__PURE__ */ a("i", { children: /* @__PURE__ */ a(F, { width: "48", height: "48" }) })
94
+ /* @__PURE__ */ s("span", { className: "sr-only", children: "close" }),
95
+ /* @__PURE__ */ s("i", { children: /* @__PURE__ */ s(K, { width: "48", height: "48" }) })
99
96
  ]
100
97
  }
101
98
  )
@@ -106,6 +103,6 @@ function G({
106
103
  );
107
104
  }
108
105
  export {
109
- G as ModalContainer,
110
- G as default
106
+ V as ModalContainer,
107
+ V as default
111
108
  };