@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.
- package/dist/{Form.module-DbpB9u1l.mjs → Form.module-Cd8qH2rj.mjs} +1 -1
- package/dist/{ResultsTable.module-nTlGw9Lh.mjs → ResultsTable.module-B7M9y7hd.mjs} +1 -5
- package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
- package/dist/{add-FrnMPwwO.mjs → add-UWUc_nrO.mjs} +2 -2
- package/dist/{addMonths-BDf46gmB.mjs → addMonths-FatsTLmU.mjs} +1 -1
- package/dist/assets/ActionButton.css +1 -1
- package/dist/assets/AdBlock.css +1 -1
- package/dist/assets/CarouselSlide.css +1 -1
- package/dist/assets/ChannelSearch.css +1 -1
- package/dist/assets/DateNavigation.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/DeviceAndPlatformLists.css +1 -1
- package/dist/assets/EqualSizeFlexRow.css +1 -1
- package/dist/assets/EqualSizeGrid.css +1 -1
- package/dist/assets/FeaturedList.css +1 -1
- package/dist/assets/Figure.css +1 -1
- package/dist/assets/FindUs.css +1 -1
- package/dist/assets/Form.css +1 -1
- package/dist/assets/GridList.css +1 -1
- package/dist/assets/IONShowHero.css +1 -1
- package/dist/assets/ImageCard.css +1 -1
- package/dist/assets/LogoListItem.css +1 -1
- package/dist/assets/ModalContainer.css +1 -1
- package/dist/assets/PageHero.css +1 -1
- package/dist/assets/ProgramAirdate.css +1 -1
- package/dist/assets/PromotionBlock.css +1 -1
- package/dist/assets/ResultsTable.css +1 -1
- package/dist/{chevron-left-DmvQntvu.mjs → chevron-left-DRvpaLmK.mjs} +1 -1
- package/dist/{chevron-right-CaAz6ISN.mjs → chevron-right-C8yCnmfx.mjs} +1 -1
- package/dist/components/ActionButton/ActionButton.d.ts +20 -1
- package/dist/components/ActionButton/ActionButton.js +36 -36
- package/dist/components/ActionButton/index.d.ts +2 -1
- package/dist/components/AirDateFormatter/AirDateFormatter.js +3 -3
- package/dist/components/BasicGridModule/BasicGridModule.js +25 -25
- package/dist/components/Carousel/Carousel.d.ts +7 -24
- package/dist/components/Carousel/Carousel.js +109 -109
- package/dist/components/Carousel/CarouselUtils.class.d.ts +16 -28
- package/dist/components/Carousel/CarouselUtils.class.js +85 -55
- package/dist/components/CarouselSlide/CarouselSlide.d.ts +8 -6
- package/dist/components/CarouselSlide/CarouselSlide.js +90 -26
- package/dist/components/CarouselSlide/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +1 -1
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +3 -4
- package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +2 -2
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +10 -11
- package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +2 -2
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +9 -10
- package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.js +1 -1
- package/dist/components/ChannelSearch/ChannelSearch.js +12 -12
- package/dist/components/Concat/Concat.js +1 -1
- package/dist/components/CtaBlock/CtaBlock.js +2 -2
- package/dist/components/CustomDataList/CustomDataList.js +44 -47
- package/dist/components/CustomSelect/CustomSelect.js +5 -5
- package/dist/components/DateNavigation/DateNavigation.js +7 -8
- package/dist/components/DatePicker/DatePicker.js +2527 -2452
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +1 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.js +27 -29
- package/dist/components/ErrorHandler/ErrorHandler.js +1 -1
- package/dist/components/FeaturedList/FeaturedList.js +7 -7
- package/dist/components/Figure/Figure.js +1 -1
- package/dist/components/FindUs/FindUs.js +6 -6
- package/dist/components/GenericList/GenericList.js +1 -1
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +6 -6
- package/dist/components/ImageCard/ImageCard.js +6 -6
- package/dist/components/ImageCard/ImageCardCore.js +1 -1
- package/dist/components/InfoPanel/InfoPanel.js +15 -16
- package/dist/components/InlineNavigation/InlineNavigation.js +6 -7
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/InstructionsList/InstructionsList.js +1 -1
- package/dist/components/Loading/Loading.js +5 -8
- package/dist/components/ModalContainer/ModalContainer.js +41 -44
- package/dist/components/Overlay/Overlay.js +17 -20
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.js +9 -9
- package/dist/components/PromotionBlock/PromotionBlock.js +15 -17
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +8 -8
- package/dist/components/ResultsTable/ResultsTable.js +7 -7
- package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +1 -1
- package/dist/components/ScheduleLayout/ScheduleLayout.js +2 -2
- package/dist/components/ScheduleList/ScheduleList.js +17 -17
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +10 -10
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +8 -8
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +8 -8
- package/dist/components/SectionedContent/SectionedContent.js +13 -16
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +24 -25
- package/dist/components/SocialLinks/SocialLinks.js +3 -3
- package/dist/components/SocialShareBlock/SocialShareBlock.js +8 -8
- package/dist/components/StringList/StringList.js +1 -1
- package/dist/components/TabContent/TabContent.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/UpcomingList/UpcomingList.js +8 -8
- package/dist/containers/NowPlayingContainer.js +10 -10
- package/dist/{facebook-osmzgL7R.mjs → facebook-HCcA1M1m.mjs} +1 -1
- package/dist/{format-plq8pBNY.mjs → format-YhWt2D8M.mjs} +78 -12
- package/dist/hooks/useGetSchedule.js +3 -3
- package/dist/hooks/useGetUpcoming.js +2 -2
- package/dist/{index-C8O1hjfH.mjs → index-0wieGV50.mjs} +0 -1
- package/dist/{index-DC7FmJPK.mjs → index-C-kn9Zhn.mjs} +7134 -7069
- package/dist/{index-CZzwT3Oj.mjs → index-DC2JJV3a.mjs} +246 -241
- package/dist/index-VjANCDXC.mjs +1873 -0
- package/dist/settings.d.ts +4 -3
- package/dist/{sub-CkNH5u-l.mjs → sub-CoUmnfhv.mjs} +2 -2
- package/dist/{subMonths-nbU1oDhB.mjs → subMonths-BtMU5A9u.mjs} +1 -1
- package/dist/{triangle-D0AHL9lB.mjs → triangle-PcCcGXjr.mjs} +1 -1
- package/dist/types.d.js +27 -0
- package/dist/utils/analytics.js +434 -423
- package/dist/utils/date-helpers.js +4 -4
- package/dist/utils/getFeaturedList.js +3 -3
- package/dist/utils/getOnNowProgram.js +3 -3
- package/dist/utils/getUpcomingPrograms.js +2 -2
- package/dist/{x-D8_C2o-U.mjs → x-C-QzJ-qD.mjs} +1 -1
- package/package.json +27 -24
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +0 -34
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +0 -105
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +0 -19
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +0 -35
- package/dist/index-B0ARwqly.mjs +0 -1818
- /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
|
|
2
|
-
import { useState as
|
|
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
|
|
6
|
-
import { ImageReplacementAnchor as
|
|
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
|
|
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:
|
|
22
|
-
classname:
|
|
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] =
|
|
29
|
-
if (y(!a),
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
33
|
+
m.style.overflowY = "hidden";
|
|
36
34
|
}, f = () => {
|
|
37
|
-
a ||
|
|
35
|
+
a || l(null);
|
|
38
36
|
};
|
|
39
|
-
return document.addEventListener("scripps:overlay:closed",
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
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" :
|
|
46
|
+
`drawer-navigation__nav-bar--${a ? "expanded" : d ? "closing" : "closed"}`
|
|
49
47
|
]),
|
|
50
48
|
children: [
|
|
51
49
|
i.image && /* @__PURE__ */ e(
|
|
52
|
-
|
|
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__ */
|
|
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:
|
|
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__ */
|
|
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" :
|
|
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:
|
|
104
|
-
|
|
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(
|
|
112
|
+
/* @__PURE__ */ e(N, { items: g })
|
|
115
113
|
] })
|
|
116
114
|
]
|
|
117
115
|
}
|
|
118
116
|
),
|
|
119
|
-
a && /* @__PURE__ */ e(x, { appendToElement: w, state:
|
|
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-
|
|
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 {
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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-
|
|
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
|
|
5
|
-
import { DeviceAndPlatformLists as
|
|
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
|
|
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(
|
|
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(
|
|
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,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 "../../
|
|
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
|
|
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
|
|
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} ${
|
|
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
|
-
|
|
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 "
|
|
4
|
-
import
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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-
|
|
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
|
|
2
|
-
import { useState as
|
|
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-
|
|
6
|
-
import '../../assets/InfoPanel.css';const
|
|
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:
|
|
12
|
+
onBackClicked: s = () => {
|
|
14
13
|
},
|
|
15
14
|
backButtonLabel: c = "Back to List",
|
|
16
15
|
classname: y = ""
|
|
17
16
|
}) {
|
|
18
|
-
const [f, L] =
|
|
19
|
-
p.current =
|
|
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
|
|
25
|
+
async function o() {
|
|
27
26
|
L(h.get(e.layout));
|
|
28
27
|
}
|
|
29
|
-
|
|
28
|
+
o();
|
|
30
29
|
}, [e.layout]), m(() => {
|
|
31
30
|
n.current !== null && (t === "exiting" && n.current.addEventListener("animationend", () => {
|
|
32
|
-
|
|
31
|
+
s(p.current);
|
|
33
32
|
}, { once: !0 }), t === "entering" && n.current.addEventListener("animationend", () => {
|
|
34
33
|
u("idle");
|
|
35
34
|
}, { once: !0 }));
|
|
36
|
-
}, [t,
|
|
37
|
-
/* @__PURE__ */
|
|
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([
|
|
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__ */
|
|
49
|
+
/* @__PURE__ */ a(
|
|
51
50
|
"button",
|
|
52
51
|
{
|
|
53
|
-
className: i([
|
|
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
|
|
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
|
|
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:
|
|
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
|
-
|
|
27
|
-
|
|
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-
|
|
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-
|
|
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
|
|
4
|
+
import '../../assets/Loading.css';const d = "_spinner_4d38k_14", r = {
|
|
5
5
|
"spinner-wrap": "_spinner-wrap_4d38k_14",
|
|
6
|
-
|
|
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
|
|
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
|
-
|
|
38
|
-
|
|
34
|
+
m as Loading,
|
|
35
|
+
m as default
|
|
39
36
|
};
|
|
@@ -1,52 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import P, { useState as
|
|
3
|
-
import { r as
|
|
4
|
-
import { classes as
|
|
5
|
-
import { blockLayoutsMap as
|
|
6
|
-
import { X as
|
|
7
|
-
import '../../assets/ModalContainer.css';const
|
|
8
|
-
modal:
|
|
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
|
-
},
|
|
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
|
|
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 [
|
|
27
|
-
|
|
28
|
-
o.current.close(),
|
|
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(),
|
|
32
|
-
},
|
|
33
|
-
e.target.classList.contains(`${
|
|
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
|
|
32
|
+
return N(t), g(() => {
|
|
36
33
|
document.getElementById(t).removeEventListener(`scripps:${t.replaceAll("-", "")}:change`, (n) => {
|
|
37
|
-
|
|
34
|
+
m(n.detail.componentProps), n.detail.forceOpen && d((l) => !l);
|
|
38
35
|
});
|
|
39
36
|
async function e() {
|
|
40
|
-
B(
|
|
37
|
+
B(F.get(r));
|
|
41
38
|
}
|
|
42
39
|
return r !== "" && e(), document.getElementById(t).addEventListener(`scripps:${t.replaceAll("-", "")}:change`, (n) => {
|
|
43
|
-
|
|
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
|
-
|
|
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
|
-
}, [
|
|
60
|
-
o.current !== null && [...o.current.attributes].findIndex((e) => e.name === "open") === -1 && c !== null && (o.current.showModal(),
|
|
61
|
-
}, [c,
|
|
62
|
-
/* @__PURE__ */
|
|
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":
|
|
67
|
-
className:
|
|
63
|
+
"data-state": D,
|
|
64
|
+
className: k([y.modal, "modal"]),
|
|
68
65
|
onKeyDown: i,
|
|
69
66
|
onKeyUp: i,
|
|
70
|
-
onClick:
|
|
67
|
+
onClick: S,
|
|
71
68
|
onCancel: (e) => e.preventDefault(),
|
|
72
69
|
"aria-modal": "true",
|
|
73
70
|
"aria-label": h,
|
|
74
71
|
children: [
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
p !== null && u === void 0 && /* @__PURE__ */ s(
|
|
73
|
+
p,
|
|
77
74
|
{
|
|
78
75
|
...c,
|
|
79
|
-
containerClosing:
|
|
76
|
+
containerClosing: v,
|
|
80
77
|
handleClosing: i
|
|
81
78
|
}
|
|
82
79
|
),
|
|
83
|
-
u !== void 0 && /* @__PURE__ */
|
|
80
|
+
u !== void 0 && /* @__PURE__ */ s($, { children: P.Children.map(u, (e) => P.cloneElement(e, {
|
|
84
81
|
...c,
|
|
85
|
-
containerClosing:
|
|
82
|
+
containerClosing: v,
|
|
86
83
|
handleClosing: i
|
|
87
84
|
})) }),
|
|
88
85
|
/* @__PURE__ */ E(
|
|
89
86
|
"button",
|
|
90
87
|
{
|
|
91
88
|
type: "button",
|
|
92
|
-
onClick:
|
|
93
|
-
className:
|
|
89
|
+
onClick: f,
|
|
90
|
+
className: k([y["modal__close-btn"], "modal__close-btn"]),
|
|
94
91
|
"aria-label": "Close",
|
|
95
|
-
ref:
|
|
92
|
+
ref: b,
|
|
96
93
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
110
|
-
|
|
106
|
+
V as ModalContainer,
|
|
107
|
+
V as default
|
|
111
108
|
};
|