@scrippsproduct/networks-ui-library 1.1.10 → 1.1.11-alpha.0
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/ResultsTable.module-DqVv22tU.mjs +14 -0
- package/dist/assets/ActionButton.css +1 -1
- package/dist/assets/AdBlock.css +1 -1
- package/dist/assets/DateNavigation.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/DrawerNavigation.css +1 -1
- package/dist/assets/InfoPanel.css +1 -1
- package/dist/assets/Loading.css +1 -1
- package/dist/assets/LoadingV2.css +1 -1
- package/dist/assets/ModalContainer.css +1 -1
- package/dist/assets/Overlay.css +1 -1
- package/dist/assets/PromotionBlock.css +1 -1
- package/dist/assets/ResultsTable.css +1 -1
- package/dist/assets/ScheduleList.css +1 -1
- package/dist/assets/ShowAboutLayout.css +1 -1
- package/dist/components/ActionButton/ActionButton.js +57 -38
- package/dist/components/AdBlock/AdBlock.js +157 -103
- package/dist/components/DateNavigation/DateNavigation.js +42 -42
- package/dist/components/DrawerNavigation/DrawerNavigation.js +28 -28
- package/dist/components/InfoPanel/InfoPanel.js +13 -13
- package/dist/components/Loading/Loading.js +8 -8
- package/dist/components/LoadingV2/LoadingV2.js +11 -11
- package/dist/components/ModalContainer/ModalContainer.js +10 -10
- package/dist/components/Overlay/Overlay.js +2 -2
- package/dist/components/PromotionBlock/PromotionBlock.js +24 -24
- package/dist/components/ResultsTable/ResultsTable.js +1 -1
- package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +1 -1
- package/dist/components/ScheduleList/ScheduleList.js +106 -88
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +9 -9
- package/package.json +2 -1
- package/dist/ResultsTable.module-wcNUQEKe.mjs +0 -14
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as b, useRef as d, useEffect as m } from "react";
|
|
3
|
-
import { classes as
|
|
4
|
-
import { blockLayoutsMap as
|
|
3
|
+
import { classes as l } from "../../utils/helpers.js";
|
|
4
|
+
import { blockLayoutsMap as L } from "../../settings.js";
|
|
5
5
|
import { C as k } from "../../chevron-left-D0UjbrKw.mjs";
|
|
6
|
-
import '../../assets/InfoPanel.css';const
|
|
7
|
-
"info-panel": "_info-
|
|
8
|
-
"info-panel__back-btn": "_info-panel__back-
|
|
6
|
+
import '../../assets/InfoPanel.css';const i = {
|
|
7
|
+
"info-panel": "_info-panel_5xlo1_237",
|
|
8
|
+
"info-panel__back-btn": "_info-panel__back-btn_5xlo1_255"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function R({
|
|
11
11
|
layoutComponent: e = { layout: "", props: {} },
|
|
12
12
|
onBackClicked: s = () => {
|
|
13
13
|
},
|
|
14
14
|
backButtonLabel: c = "Back to List",
|
|
15
15
|
classname: y = ""
|
|
16
16
|
}) {
|
|
17
|
-
const [f,
|
|
17
|
+
const [f, x] = b(null), [t, u] = b("entering"), n = d(null), p = d(null), _ = (o) => {
|
|
18
18
|
p.current = o, u("exiting"), n.current !== null && n.current.scrollTo({
|
|
19
19
|
top: n.current.offsetTop,
|
|
20
20
|
left: 0,
|
|
@@ -23,7 +23,7 @@ function N({
|
|
|
23
23
|
};
|
|
24
24
|
return m(() => {
|
|
25
25
|
async function o() {
|
|
26
|
-
L
|
|
26
|
+
x(L.get(e.layout));
|
|
27
27
|
}
|
|
28
28
|
o();
|
|
29
29
|
}, [e.layout]), m(() => {
|
|
@@ -32,11 +32,11 @@ function N({
|
|
|
32
32
|
}, { once: !0 }), t === "entering" && n.current.addEventListener("animationend", () => {
|
|
33
33
|
u("idle");
|
|
34
34
|
}, { once: !0 }));
|
|
35
|
-
}, [t, s]), /* @__PURE__ */ a("div", { className:
|
|
35
|
+
}, [t, s]), /* @__PURE__ */ a("div", { className: l([i["info-panel"], `${y}`]), "data-state": t, ref: n, children: [
|
|
36
36
|
/* @__PURE__ */ a(
|
|
37
37
|
"button",
|
|
38
38
|
{
|
|
39
|
-
className:
|
|
39
|
+
className: l([i["info-panel__back-btn"], "info-panel__back-btn"]),
|
|
40
40
|
type: "button",
|
|
41
41
|
onClick: _,
|
|
42
42
|
children: [
|
|
@@ -49,7 +49,7 @@ function N({
|
|
|
49
49
|
/* @__PURE__ */ a(
|
|
50
50
|
"button",
|
|
51
51
|
{
|
|
52
|
-
className:
|
|
52
|
+
className: l([i["info-panel__back-btn"], "info-panel__back-btn"]),
|
|
53
53
|
type: "button",
|
|
54
54
|
onClick: _,
|
|
55
55
|
children: [
|
|
@@ -61,6 +61,6 @@ function N({
|
|
|
61
61
|
] });
|
|
62
62
|
}
|
|
63
63
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
R as InfoPanel,
|
|
65
|
+
R as default
|
|
66
66
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { classes as t } from "../../utils/helpers.js";
|
|
3
|
-
import '../../assets/Loading.css';const
|
|
4
|
-
"spinner-wrap": "_spinner-
|
|
5
|
-
spinner:
|
|
6
|
-
"loading-wrapper__message": "_loading-
|
|
3
|
+
import '../../assets/Loading.css';const l = "_spinner_1ihy7_250", r = {
|
|
4
|
+
"spinner-wrap": "_spinner-wrap_1ihy7_250",
|
|
5
|
+
spinner: l,
|
|
6
|
+
"loading-wrapper__message": "_loading-wrapper__message_1ihy7_273"
|
|
7
7
|
};
|
|
8
8
|
function c({
|
|
9
9
|
spinnerColor: s = "var(--theme-color-100)",
|
|
10
|
-
spinnerSize:
|
|
11
|
-
spinnerTrackWidth:
|
|
10
|
+
spinnerSize: i = "3.125rem",
|
|
11
|
+
spinnerTrackWidth: a = "6px",
|
|
12
12
|
topOffset: p = "50%",
|
|
13
13
|
message: n = ""
|
|
14
14
|
}) {
|
|
@@ -16,8 +16,8 @@ function c({
|
|
|
16
16
|
"loading-wrapper",
|
|
17
17
|
{
|
|
18
18
|
style: {
|
|
19
|
-
"--spinner-size":
|
|
20
|
-
"--spinner-track-width":
|
|
19
|
+
"--spinner-size": i,
|
|
20
|
+
"--spinner-track-width": a,
|
|
21
21
|
"--spinner-color": s,
|
|
22
22
|
"--spinner-top-offset": p
|
|
23
23
|
},
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { classes as _ } from "../../utils/helpers.js";
|
|
3
|
-
import '../../assets/LoadingV2.css';const
|
|
4
|
-
"loading-wrapper": "_loading-
|
|
5
|
-
spinner:
|
|
6
|
-
spinner__wrapper:
|
|
7
|
-
"spinner--pie": "_spinner--
|
|
8
|
-
"spinner--ring": "_spinner--
|
|
9
|
-
spinner__left:
|
|
3
|
+
import '../../assets/LoadingV2.css';const o = "_spinner_1o6w7_247", l = "_spinner__wrapper_1o6w7_256", t = "_spinner__left_1o6w7_290", c = "_spinner__right_1o6w7_294", m = "_spinner__anim_1o6w7_298", n = {
|
|
4
|
+
"loading-wrapper": "_loading-wrapper_1o6w7_237",
|
|
5
|
+
spinner: o,
|
|
6
|
+
spinner__wrapper: l,
|
|
7
|
+
"spinner--pie": "_spinner--pie_1o6w7_274",
|
|
8
|
+
"spinner--ring": "_spinner--ring_1o6w7_278",
|
|
9
|
+
spinner__left: t,
|
|
10
10
|
spinner__right: c,
|
|
11
11
|
spinner__anim: m,
|
|
12
|
-
"loading-wrapper__message": "_loading-
|
|
12
|
+
"loading-wrapper__message": "_loading-wrapper__message_1o6w7_330"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function g({
|
|
15
15
|
width: i = "3rem",
|
|
16
16
|
topOffset: p = "50%",
|
|
17
17
|
message: r = "",
|
|
@@ -44,6 +44,6 @@ function u({
|
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
g as LoadingV2,
|
|
48
|
+
g as default
|
|
49
49
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as s, jsxs as k, Fragment as
|
|
2
|
-
import { useState as i, useRef as x, useEffect as v, Suspense as
|
|
3
|
-
import { r as
|
|
1
|
+
import { jsx as s, jsxs as k, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useRef as x, useEffect as v, Suspense as w, Children as F, isValidElement as K, cloneElement as N } from "react";
|
|
3
|
+
import { r as j } from "../../index-DzfYkULW.mjs";
|
|
4
4
|
import { classes as D } from "../../utils/helpers.js";
|
|
5
5
|
import { blockLayoutsMap as q } from "../../settings.js";
|
|
6
6
|
import { X as R } from "../../x-Ck9Vk5Fo.mjs";
|
|
7
|
-
import '../../assets/ModalContainer.css';const T = "
|
|
7
|
+
import '../../assets/ModalContainer.css';const T = "_modal_1es68_237", C = {
|
|
8
8
|
modal: T,
|
|
9
|
-
"modal__close-btn": "_modal__close-
|
|
9
|
+
"modal__close-btn": "_modal__close-btn_1es68_284"
|
|
10
10
|
}, V = (l) => {
|
|
11
11
|
if (!document.querySelector(`#${l}`)) {
|
|
12
12
|
const n = document.createElement("div");
|
|
@@ -30,7 +30,7 @@ function J({
|
|
|
30
30
|
}, 750);
|
|
31
31
|
}, f = (e) => {
|
|
32
32
|
t.current !== null && [...t.current.attributes].findIndex((c) => c.name === "open") !== -1 && e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), E());
|
|
33
|
-
},
|
|
33
|
+
}, B = (e) => {
|
|
34
34
|
e.target instanceof HTMLElement && e.target.classList.contains(`${C.modal}`) && E();
|
|
35
35
|
};
|
|
36
36
|
return V(n), v(() => {
|
|
@@ -67,8 +67,8 @@ function J({
|
|
|
67
67
|
};
|
|
68
68
|
}, [d]), v(() => {
|
|
69
69
|
t.current !== null && [...t.current.attributes].findIndex((e) => e.name === "open") === -1 && m !== null && (t.current.showModal(), h.current && h.current.blur());
|
|
70
|
-
}, [m, $]),
|
|
71
|
-
/* @__PURE__ */ s(
|
|
70
|
+
}, [m, $]), j.createPortal(
|
|
71
|
+
/* @__PURE__ */ s(w, { children: /* @__PURE__ */ k(
|
|
72
72
|
"dialog",
|
|
73
73
|
{
|
|
74
74
|
"aria-label": b,
|
|
@@ -77,7 +77,7 @@ function J({
|
|
|
77
77
|
"data-state": S,
|
|
78
78
|
ref: t,
|
|
79
79
|
onCancel: (e) => e.preventDefault(),
|
|
80
|
-
onClick:
|
|
80
|
+
onClick: B,
|
|
81
81
|
onKeyDown: f,
|
|
82
82
|
onKeyUp: f,
|
|
83
83
|
children: [
|
|
@@ -89,7 +89,7 @@ function J({
|
|
|
89
89
|
handleClosing: f
|
|
90
90
|
}
|
|
91
91
|
),
|
|
92
|
-
p !== void 0 && /* @__PURE__ */ s(
|
|
92
|
+
p !== void 0 && /* @__PURE__ */ s(M, { children: F.map(p, (e) => K(e) ? N(e, {
|
|
93
93
|
...m,
|
|
94
94
|
containerClosing: P,
|
|
95
95
|
handleClosing: f
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as a } from "react";
|
|
3
3
|
import { r as i } from "../../index-DzfYkULW.mjs";
|
|
4
|
-
import '../../assets/Overlay.css';const v = "
|
|
4
|
+
import '../../assets/Overlay.css';const v = "_overlay_9fmgx_237", m = {
|
|
5
5
|
overlay: v
|
|
6
6
|
};
|
|
7
7
|
function p({
|
|
@@ -11,7 +11,7 @@ function p({
|
|
|
11
11
|
return (() => {
|
|
12
12
|
if (!document.querySelector("#overlay")) {
|
|
13
13
|
const e = document.createElement("div");
|
|
14
|
-
e.setAttribute("id", "overlay"), e.setAttribute("class", `${
|
|
14
|
+
e.setAttribute("id", "overlay"), e.setAttribute("class", `${m.overlay} overlay`), e.setAttribute("data-state", "entering"), r ? r.append(e) : document.body.appendChild(e);
|
|
15
15
|
}
|
|
16
16
|
})(), a(() => {
|
|
17
17
|
const t = setInterval(() => {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as p, useEffect as u } from "react";
|
|
3
3
|
import '../../assets/PromotionBlock.css';const o = {
|
|
4
|
-
"promo-image": "_promo-
|
|
5
|
-
"promo-image__text": "_promo-
|
|
6
|
-
"promo-copy": "_promo-
|
|
7
|
-
"promo-image--animate": "_promo-image--
|
|
8
|
-
"promo-copy--animate": "_promo-copy--
|
|
9
|
-
"promo-copy__header": "_promo-
|
|
10
|
-
"promo-copy__description": "_promo-
|
|
11
|
-
"promo-copy__link": "_promo-
|
|
4
|
+
"promo-image": "_promo-image_xs0du_248",
|
|
5
|
+
"promo-image__text": "_promo-image__text_xs0du_269",
|
|
6
|
+
"promo-copy": "_promo-copy_xs0du_274",
|
|
7
|
+
"promo-image--animate": "_promo-image--animate_xs0du_280",
|
|
8
|
+
"promo-copy--animate": "_promo-copy--animate_xs0du_287",
|
|
9
|
+
"promo-copy__header": "_promo-copy__header_xs0du_295",
|
|
10
|
+
"promo-copy__description": "_promo-copy__description_xs0du_300",
|
|
11
|
+
"promo-copy__link": "_promo-copy__link_xs0du_301"
|
|
12
12
|
};
|
|
13
|
-
function g({ image:
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
!
|
|
17
|
-
|
|
13
|
+
function g({ image: c, promo: e }) {
|
|
14
|
+
const i = p(null), t = p(null), _ = (n, l) => {
|
|
15
|
+
const m = i.current, s = t.current;
|
|
16
|
+
!m || !s || n.forEach((d) => {
|
|
17
|
+
d.isIntersecting && (m.classList.add(`${o["promo-copy--animate"]}`), s.classList.add(`${o["promo-image--animate"]}`), t.current && l.unobserve(t.current));
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
const
|
|
20
|
+
return u(() => {
|
|
21
|
+
const n = new IntersectionObserver(_, {
|
|
22
22
|
root: null,
|
|
23
23
|
rootMargin: "0px",
|
|
24
24
|
threshold: 0.1
|
|
25
25
|
});
|
|
26
|
-
return
|
|
27
|
-
|
|
26
|
+
return n.observe(t.current), () => {
|
|
27
|
+
n.disconnect();
|
|
28
28
|
};
|
|
29
|
-
}, []), /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */ r("span", { className: o["promo-image__text"], children:
|
|
32
|
-
/* @__PURE__ */ r("promo-image", { children: /* @__PURE__ */ r("a", { href: e.href, rel: "noreferrer", target: "_blank", children: /* @__PURE__ */ r("img", { alt:
|
|
29
|
+
}, []), /* @__PURE__ */ a("promotion-block", { children: [
|
|
30
|
+
/* @__PURE__ */ a("div", { className: o["promo-image"], ref: t, children: [
|
|
31
|
+
/* @__PURE__ */ r("span", { className: o["promo-image__text"], children: c.text }),
|
|
32
|
+
/* @__PURE__ */ r("promo-image", { children: /* @__PURE__ */ r("a", { href: e.href, rel: "noreferrer", target: "_blank", children: /* @__PURE__ */ r("img", { alt: c.altText, src: c.url }) }) })
|
|
33
33
|
] }),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ a("div", { className: o["promo-copy"], ref: i, children: [
|
|
35
35
|
/* @__PURE__ */ r("h4", { className: o["promo-copy__header"], children: e.header }),
|
|
36
36
|
/* @__PURE__ */ r("p", { className: o["promo-copy__description"], children: e.description }),
|
|
37
37
|
/* @__PURE__ */ r(
|
|
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { classes as m } from "../../utils/helpers.js";
|
|
3
3
|
import { ResultsTableBody as f } from "../ResultsTableBody/ResultsTableBody.js";
|
|
4
4
|
import { ResultsTableHeader as i } from "../ResultsTableHeader/ResultsTableHeader.js";
|
|
5
|
-
import { s as e } from "../../ResultsTable.module-
|
|
5
|
+
import { s as e } from "../../ResultsTable.module-DqVv22tU.mjs";
|
|
6
6
|
function n({
|
|
7
7
|
columns: s = [],
|
|
8
8
|
results: l = [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, Fragment as m, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import { classes as l } from "../../utils/helpers.js";
|
|
3
|
-
import { s as e } from "../../ResultsTable.module-
|
|
3
|
+
import { s as e } from "../../ResultsTable.module-DqVv22tU.mjs";
|
|
4
4
|
function c({ results: r = [], columns: u = [], noResultsMsg: b = "No results were returned" }) {
|
|
5
5
|
return r.length > 0 ? /* @__PURE__ */ t(m, { children: r.map((a, i) => /* @__PURE__ */ t(
|
|
6
6
|
"div",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { classes as u } from "../../utils/helpers.js";
|
|
3
|
-
import { s } from "../../ResultsTable.module-
|
|
3
|
+
import { s } from "../../ResultsTable.module-DqVv22tU.mjs";
|
|
4
4
|
function h({ columns: a = [] }) {
|
|
5
5
|
let t = [];
|
|
6
6
|
const i = a.map((e, d) => {
|
|
@@ -1,29 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useReducer as
|
|
3
|
-
import { classes as
|
|
4
|
-
import { u as
|
|
5
|
-
import { Loading as
|
|
6
|
-
import { SportsItem as
|
|
7
|
-
import { SeriesItem as
|
|
8
|
-
import { MovieItem as
|
|
9
|
-
import '../../assets/ScheduleList.css';const
|
|
10
|
-
"schedule-list__item": "_schedule-
|
|
11
|
-
"schedule-list__airdate": "_schedule-
|
|
12
|
-
"airdate-formatter__date": "_airdate-
|
|
13
|
-
"airdate-formatter__day": "_airdate-
|
|
14
|
-
"airdate-formatter__time-wrap": "_airdate-formatter__time-
|
|
15
|
-
"schedule-list": "_schedule-
|
|
16
|
-
"fade-out": "_fade-
|
|
17
|
-
"fade-in": "_fade-
|
|
18
|
-
"schedule-list__no-schedule": "_schedule-list__no-
|
|
19
|
-
"schedule-content-constrainer": "_schedule-content-
|
|
20
|
-
"image-card__content": "_image-
|
|
1
|
+
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useReducer as L, useState as A, useRef as E, useCallback as x, useEffect as d } from "react";
|
|
3
|
+
import { classes as T, getMinutesFromStr as C } from "../../utils/helpers.js";
|
|
4
|
+
import { u as k } from "../../useScheduleContext-D7FdzNxe.mjs";
|
|
5
|
+
import { Loading as D } from "../Loading/Loading.js";
|
|
6
|
+
import { SportsItem as M } from "./schedule-list-items/SportsItem.js";
|
|
7
|
+
import { SeriesItem as O } from "./schedule-list-items/SeriesItem.js";
|
|
8
|
+
import { MovieItem as P } from "./schedule-list-items/MovieItem.js";
|
|
9
|
+
import '../../assets/ScheduleList.css';const N = "_fade_7wha0_1", $ = "_slidein_7wha0_1", H = "_slideout_7wha0_1", X = "_scale_7wha0_1", q = "_reveal_7wha0_1", F = "_hide_7wha0_1", g = {
|
|
10
|
+
"schedule-list__item": "_schedule-list__item_7wha0_237",
|
|
11
|
+
"schedule-list__airdate": "_schedule-list__airdate_7wha0_250",
|
|
12
|
+
"airdate-formatter__date": "_airdate-formatter__date_7wha0_258",
|
|
13
|
+
"airdate-formatter__day": "_airdate-formatter__day_7wha0_259",
|
|
14
|
+
"airdate-formatter__time-wrap": "_airdate-formatter__time-wrap_7wha0_262",
|
|
15
|
+
"schedule-list": "_schedule-list_7wha0_237",
|
|
16
|
+
"fade-out": "_fade-out_7wha0_1",
|
|
17
|
+
"fade-in": "_fade-in_7wha0_1",
|
|
18
|
+
"schedule-list__no-schedule": "_schedule-list__no-schedule_7wha0_286",
|
|
19
|
+
"schedule-content-constrainer": "_schedule-content-constrainer_7wha0_338",
|
|
20
|
+
"image-card__content": "_image-card__content_7wha0_352",
|
|
21
|
+
fade: N,
|
|
22
|
+
"page-fade-in": "_page-fade-in_7wha0_1",
|
|
23
|
+
"backdrop-reveal": "_backdrop-reveal_7wha0_1",
|
|
24
|
+
"slide-up": "_slide-up_7wha0_1",
|
|
25
|
+
slidein: $,
|
|
26
|
+
slideout: H,
|
|
27
|
+
"promo-slide-in-left": "_promo-slide-in-left_7wha0_1",
|
|
28
|
+
"promo-slide-in-right": "_promo-slide-in-right_7wha0_1",
|
|
29
|
+
scale: X,
|
|
30
|
+
reveal: q,
|
|
31
|
+
"reveal-overlay": "_reveal-overlay_7wha0_1",
|
|
32
|
+
hide: F,
|
|
33
|
+
"hide-overlay": "_hide-overlay_7wha0_1",
|
|
34
|
+
"rotate-full": "_rotate-full_7wha0_1",
|
|
35
|
+
"ui-spinner-rotate-left": "_ui-spinner-rotate-left_7wha0_1",
|
|
36
|
+
"ui-spinner-rotate-right": "_ui-spinner-rotate-right_7wha0_1",
|
|
37
|
+
"clip-path-open": "_clip-path-open_7wha0_1",
|
|
38
|
+
"clip-path-close": "_clip-path-close_7wha0_1"
|
|
21
39
|
};
|
|
22
|
-
function
|
|
40
|
+
function h(r) {
|
|
23
41
|
return typeof r == "object" && !Array.isArray(r) && (r == null ? void 0 : r.queryStatus) && r.queryStatus === "no-results";
|
|
24
42
|
}
|
|
25
|
-
function
|
|
26
|
-
switch (
|
|
43
|
+
function U(r, n) {
|
|
44
|
+
switch (n.type) {
|
|
27
45
|
case "START_EXIT":
|
|
28
46
|
return "exiting";
|
|
29
47
|
case "EXIT_COMPLETE":
|
|
@@ -36,9 +54,9 @@ function $(r, o) {
|
|
|
36
54
|
return r;
|
|
37
55
|
}
|
|
38
56
|
}
|
|
39
|
-
const
|
|
40
|
-
var
|
|
41
|
-
return (
|
|
57
|
+
const u = (r) => {
|
|
58
|
+
var n, o, w, t, e, _, v, s, l, f, i;
|
|
59
|
+
return (n = r.video) != null && n.brightcove_id ? {
|
|
42
60
|
label: "Watch Preview",
|
|
43
61
|
type: "play-video",
|
|
44
62
|
href: "",
|
|
@@ -69,10 +87,10 @@ const T = (r) => {
|
|
|
69
87
|
//'film',
|
|
70
88
|
position: void 0
|
|
71
89
|
//'inline',
|
|
72
|
-
} : (((
|
|
90
|
+
} : (((o = r == null ? void 0 : r.content) == null ? void 0 : o.external_link) !== void 0 && ((w = r == null ? void 0 : r.content) == null ? void 0 : w.external_link) !== "" || ((t = r == null ? void 0 : r.content) == null ? void 0 : t.slug) !== void 0 && ((e = r == null ? void 0 : r.content) == null ? void 0 : e.slug) !== "") && !((_ = r == null ? void 0 : r.content) != null && _.prevent_detail_page) ? {
|
|
73
91
|
label: (r == null ? void 0 : r.program_class) === "Episode" ? "View Series Details" : (r == null ? void 0 : r.program_class) === "Film" ? "View Movie Details" : "Learn More",
|
|
74
|
-
type: (
|
|
75
|
-
href: (
|
|
92
|
+
type: (v = r == null ? void 0 : r.content) != null && v.external_link ? "external-link" : "internal-link",
|
|
93
|
+
href: (s = r == null ? void 0 : r.content) != null && s.external_link ? (l = r == null ? void 0 : r.content) == null ? void 0 : l.external_link : r.program_class === "Episode" ? `/show/${(f = r == null ? void 0 : r.content) == null ? void 0 : f.slug}` : `/movie/${(i = r == null ? void 0 : r.content) == null ? void 0 : i.slug}`,
|
|
76
94
|
position: "inline"
|
|
77
95
|
} : {
|
|
78
96
|
label: "",
|
|
@@ -81,31 +99,31 @@ const T = (r) => {
|
|
|
81
99
|
position: void 0
|
|
82
100
|
};
|
|
83
101
|
};
|
|
84
|
-
function
|
|
102
|
+
function K({
|
|
85
103
|
handleClicks: r = () => !0
|
|
86
104
|
}) {
|
|
87
|
-
const { schedule:
|
|
88
|
-
|
|
105
|
+
const { schedule: n, isLoading: o, isError: w } = k(), [t, e] = L(U, "idle"), [_, v] = A(n), s = E(null), l = E(null), f = x(() => {
|
|
106
|
+
l.current && (clearTimeout(l.current), l.current = null), t === "exiting" ? e({ type: "EXIT_COMPLETE" }) : t === "entering" && e({ type: "ENTER_COMPLETE" });
|
|
89
107
|
}, [t]);
|
|
90
|
-
return
|
|
91
|
-
const i =
|
|
108
|
+
return d(() => {
|
|
109
|
+
const i = s.current;
|
|
92
110
|
if (i)
|
|
93
111
|
return i.addEventListener("animationend", f), () => {
|
|
94
112
|
i.removeEventListener("animationend", f);
|
|
95
113
|
};
|
|
96
|
-
}, [f]),
|
|
97
|
-
|
|
98
|
-
}, [
|
|
99
|
-
!
|
|
100
|
-
}, [
|
|
101
|
-
const i =
|
|
102
|
-
!
|
|
103
|
-
}, [
|
|
104
|
-
if (t === "exiting" &&
|
|
105
|
-
const i = document.querySelector("sticky-content-wrapper"),
|
|
106
|
-
let
|
|
107
|
-
i && (
|
|
108
|
-
const
|
|
114
|
+
}, [f]), d(() => {
|
|
115
|
+
o && t === "idle" && e({ type: "START_EXIT" });
|
|
116
|
+
}, [o, t]), d(() => {
|
|
117
|
+
!o && t === "exiting" && e({ type: "EXIT_COMPLETE" });
|
|
118
|
+
}, [o, t]), d(() => {
|
|
119
|
+
const i = h(n) || Array.isArray(n) && n.length >= 0;
|
|
120
|
+
!o && t === "loading" && i && (v(n), e({ type: "SCHEDULE_LOADED" }));
|
|
121
|
+
}, [o, t, n]), d(() => {
|
|
122
|
+
if (t === "exiting" && s.current && s.current) {
|
|
123
|
+
const i = document.querySelector("sticky-content-wrapper"), c = document.querySelector(".mobile-nav");
|
|
124
|
+
let p = 0;
|
|
125
|
+
i && (p += i.offsetHeight), c && window.getComputedStyle(c).display !== "none" && (p += c.offsetHeight), p += 16;
|
|
126
|
+
const S = s.current.getBoundingClientRect(), R = window.pageYOffset || document.documentElement.scrollTop, b = S.top + R - p;
|
|
109
127
|
setTimeout(() => {
|
|
110
128
|
window.scrollTo({
|
|
111
129
|
top: b,
|
|
@@ -113,9 +131,9 @@ function B({
|
|
|
113
131
|
});
|
|
114
132
|
}, 400);
|
|
115
133
|
}
|
|
116
|
-
}, [t]),
|
|
117
|
-
|
|
118
|
-
}, []), t === "loading" ? /* @__PURE__ */
|
|
134
|
+
}, [t]), d(() => () => {
|
|
135
|
+
l.current && clearTimeout(l.current);
|
|
136
|
+
}, []), t === "loading" ? /* @__PURE__ */ a(
|
|
119
137
|
"div",
|
|
120
138
|
{
|
|
121
139
|
style: {
|
|
@@ -124,82 +142,82 @@ function B({
|
|
|
124
142
|
minHeight: "100dvh",
|
|
125
143
|
paddingTop: "6rem"
|
|
126
144
|
},
|
|
127
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ a(D, {})
|
|
128
146
|
}
|
|
129
|
-
) :
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
147
|
+
) : w ? /* @__PURE__ */ y("div", { className: "schedule-list__no-schedule", children: [
|
|
148
|
+
/* @__PURE__ */ a("h2", { children: "There was an error loading the schedule for this day." }),
|
|
149
|
+
/* @__PURE__ */ y("p", { children: [
|
|
132
150
|
"Please try again later. If this problem persists report it at ",
|
|
133
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ a("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
|
|
134
152
|
"."
|
|
135
153
|
] })
|
|
136
|
-
] }) :
|
|
154
|
+
] }) : h(_) ? /* @__PURE__ */ y(
|
|
137
155
|
"div",
|
|
138
156
|
{
|
|
139
|
-
className:
|
|
140
|
-
|
|
157
|
+
className: T([
|
|
158
|
+
g["schedule-list__no-schedule"],
|
|
141
159
|
"schedule-list__no-schedule"
|
|
142
160
|
]),
|
|
143
161
|
"data-state": t,
|
|
144
162
|
style: { animationDelay: "500ms" },
|
|
145
163
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ a("h2", { children: "There are no shows scheduled for this day." }),
|
|
165
|
+
/* @__PURE__ */ y("p", { children: [
|
|
148
166
|
"Please try again later. If this problem persists report it at ",
|
|
149
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ a("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
|
|
150
168
|
"."
|
|
151
169
|
] })
|
|
152
170
|
]
|
|
153
171
|
}
|
|
154
|
-
) : Array.isArray(
|
|
172
|
+
) : Array.isArray(_) && _.length === 0 ? /* @__PURE__ */ y(
|
|
155
173
|
"div",
|
|
156
174
|
{
|
|
157
|
-
className:
|
|
158
|
-
|
|
175
|
+
className: T([
|
|
176
|
+
g["schedule-list__no-schedule"],
|
|
159
177
|
"schedule-list__no-schedule"
|
|
160
178
|
]),
|
|
161
179
|
"data-state": t,
|
|
162
180
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ a("h2", { children: "Our programming schedule for today has completed." }),
|
|
182
|
+
/* @__PURE__ */ a("p", { children: "Our programming will restart at 6am." })
|
|
165
183
|
]
|
|
166
184
|
}
|
|
167
|
-
) : /* @__PURE__ */
|
|
185
|
+
) : /* @__PURE__ */ a(
|
|
168
186
|
"ul",
|
|
169
187
|
{
|
|
170
|
-
className: `${
|
|
188
|
+
className: `${g["schedule-list"]} schedule-list`,
|
|
171
189
|
"data-state": t,
|
|
172
|
-
ref:
|
|
173
|
-
children: Array.isArray(
|
|
174
|
-
const
|
|
175
|
-
return i.program_class === "Episode" ? /* @__PURE__ */
|
|
176
|
-
|
|
190
|
+
ref: s,
|
|
191
|
+
children: Array.isArray(_) && _.map((i) => {
|
|
192
|
+
const c = C(i.element_length), p = u(i).type === "" ? [c, i.rating] : [c, i.rating, " "];
|
|
193
|
+
return i.program_class === "Episode" ? /* @__PURE__ */ a(
|
|
194
|
+
O,
|
|
177
195
|
{
|
|
178
|
-
determineCTA:
|
|
196
|
+
determineCTA: u,
|
|
179
197
|
handleClicks: r,
|
|
180
198
|
scheduleItem: i,
|
|
181
|
-
strListArr:
|
|
182
|
-
styles:
|
|
199
|
+
strListArr: p,
|
|
200
|
+
styles: g
|
|
183
201
|
},
|
|
184
202
|
`schedule-list-${i.id}`
|
|
185
|
-
) : i.program_class === "Film" || i.program_class === "Movie" || i.program_class === "Special" ? /* @__PURE__ */
|
|
186
|
-
|
|
203
|
+
) : i.program_class === "Film" || i.program_class === "Movie" || i.program_class === "Special" ? /* @__PURE__ */ a(
|
|
204
|
+
P,
|
|
187
205
|
{
|
|
188
|
-
determineCTA:
|
|
206
|
+
determineCTA: u,
|
|
189
207
|
handleClicks: r,
|
|
190
208
|
scheduleItem: i,
|
|
191
|
-
strListArr:
|
|
192
|
-
styles:
|
|
209
|
+
strListArr: p,
|
|
210
|
+
styles: g
|
|
193
211
|
},
|
|
194
212
|
`schedule-list-${i.id}`
|
|
195
|
-
) : i.program_class === "Sports" ? /* @__PURE__ */
|
|
196
|
-
|
|
213
|
+
) : i.program_class === "Sports" ? /* @__PURE__ */ a(
|
|
214
|
+
M,
|
|
197
215
|
{
|
|
198
|
-
determineCTA:
|
|
216
|
+
determineCTA: u,
|
|
199
217
|
handleClicks: r,
|
|
200
218
|
scheduleItem: i,
|
|
201
|
-
strListArr:
|
|
202
|
-
styles:
|
|
219
|
+
strListArr: p,
|
|
220
|
+
styles: g
|
|
203
221
|
},
|
|
204
222
|
`schedule-list-${i.id}`
|
|
205
223
|
) : null;
|
|
@@ -208,6 +226,6 @@ function B({
|
|
|
208
226
|
);
|
|
209
227
|
}
|
|
210
228
|
export {
|
|
211
|
-
|
|
212
|
-
|
|
229
|
+
K as ScheduleList,
|
|
230
|
+
K as default
|
|
213
231
|
};
|