@scrippsproduct/networks-ui-library 1.0.21 → 1.0.22
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-B7M9y7hd.mjs → ResultsTable.module-nTlGw9Lh.mjs} +5 -1
- package/dist/{add-DH4DZT_w.mjs → add-FrnMPwwO.mjs} +2 -2
- package/dist/{addMonths-Ca2KMx6g.mjs → addMonths-BDf46gmB.mjs} +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/SectionedContent.css +1 -0
- package/dist/components/AirDateFormatter/AirDateFormatter.js +3 -3
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
- package/dist/components/Concat/Concat.js +1 -1
- package/dist/components/CtaBlock/CtaBlock.js +1 -1
- package/dist/components/CustomDataList/CustomDataList.js +45 -42
- package/dist/components/DateNavigation/DateNavigation.js +6 -5
- package/dist/components/DatePicker/DatePicker.js +1322 -1341
- package/dist/components/DrawerNavigation/DrawerNavigation.js +29 -27
- package/dist/components/ErrorHandler/ErrorHandler.js +1 -1
- package/dist/components/Figure/Figure.js +1 -1
- package/dist/components/GenericList/GenericList.js +1 -1
- package/dist/components/ImageCard/ImageCardCore.js +1 -1
- package/dist/components/InfoPanel/InfoPanel.js +15 -14
- package/dist/components/InlineNavigation/InlineNavigation.js +7 -6
- package/dist/components/InstructionsList/InstructionsList.js +1 -1
- package/dist/components/Loading/Loading.js +8 -5
- package/dist/components/ModalContainer/ModalContainer.js +44 -41
- package/dist/components/Overlay/Overlay.js +20 -17
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.js +3 -3
- package/dist/components/PromotionBlock/PromotionBlock.js +17 -15
- 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/ScheduleLayout/ScheduleLayout.js +2 -2
- package/dist/components/SectionedContent/SectionedContent.js +22 -13
- package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +13 -12
- package/dist/components/StringList/StringList.js +1 -1
- package/dist/components/TabContent/TabContent.js +1 -1
- package/dist/{format-DF9p-6BI.mjs → format-plq8pBNY.mjs} +12 -10
- package/dist/hooks/useGetSchedule.js +3 -3
- package/dist/hooks/useGetUpcoming.js +2 -2
- package/dist/{index-DB0QlRo7.mjs → index-B0ARwqly.mjs} +301 -310
- package/dist/{index-0wieGV50.mjs → index-C8O1hjfH.mjs} +1 -0
- package/dist/{index-YbL9dKxh.mjs → index-DC7FmJPK.mjs} +6743 -6742
- package/dist/{sub-DTz41m8W.mjs → sub-CkNH5u-l.mjs} +2 -2
- package/dist/{subMonths-YdVF7zsL.mjs → subMonths-nbU1oDhB.mjs} +1 -1
- package/dist/utils/analytics.js +1 -1
- 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/package.json +1 -1
- package/dist/components/Carousel/types.d.js +0 -1
|
@@ -1,53 +1,55 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as r, Fragment as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c } 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 k } from "../LogoNavigation/LogoNavigation.js";
|
|
6
|
+
import { ImageReplacementAnchor as N } from "../ImageReplacementAnchor/ImageReplacementAnchor.js";
|
|
7
7
|
import { Overlay as x } from "../Overlay/Overlay.js";
|
|
8
|
-
import '../../assets/DrawerNavigation.css';const n = {
|
|
8
|
+
import '../../assets/DrawerNavigation.css';const A = "_clipPathOpen_5hknh_1", O = "_clipPathClose_5hknh_1", 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,
|
|
14
16
|
"drawer-navigation__separator": "_drawer-navigation__separator_5hknh_102",
|
|
15
17
|
"visually-hidden": "_visually-hidden_5hknh_113"
|
|
16
18
|
};
|
|
17
19
|
function I({
|
|
18
20
|
links: s = [],
|
|
19
|
-
items:
|
|
20
|
-
classname:
|
|
21
|
+
items: l = [],
|
|
22
|
+
classname: v = "",
|
|
21
23
|
logo: i = {},
|
|
22
24
|
clipPathStart: p = "circle(0% at top right)",
|
|
23
25
|
clipPathEnd: u = "circle(250% at top right)",
|
|
24
26
|
overlayAppendEl: w = document.querySelector("#root")
|
|
25
27
|
}) {
|
|
26
|
-
const [a, y] =
|
|
27
|
-
if (y(!a),
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
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";
|
|
31
33
|
}, 400);
|
|
32
34
|
} else
|
|
33
|
-
|
|
35
|
+
h.style.overflowY = "hidden";
|
|
34
36
|
}, f = () => {
|
|
35
|
-
a ||
|
|
37
|
+
a || g(null);
|
|
36
38
|
};
|
|
37
|
-
return document.addEventListener("scripps:overlay:closed",
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
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(
|
|
40
42
|
"div",
|
|
41
43
|
{
|
|
42
44
|
className: o([
|
|
43
45
|
n["drawer-navigation__nav-bar"],
|
|
44
46
|
"drawer-navigation__nav-bar",
|
|
45
47
|
i.image && n["with-logo"],
|
|
46
|
-
`drawer-navigation__nav-bar--${a ? "expanded" :
|
|
48
|
+
`drawer-navigation__nav-bar--${a ? "expanded" : _ ? "closing" : "closed"}`
|
|
47
49
|
]),
|
|
48
50
|
children: [
|
|
49
51
|
i.image && /* @__PURE__ */ e(
|
|
50
|
-
|
|
52
|
+
N,
|
|
51
53
|
{
|
|
52
54
|
href: i.href,
|
|
53
55
|
image: i.image,
|
|
@@ -55,7 +57,7 @@ function I({
|
|
|
55
57
|
baselineAdjustment: i.baselineAdjustment
|
|
56
58
|
}
|
|
57
59
|
),
|
|
58
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ r(
|
|
59
61
|
"button",
|
|
60
62
|
{
|
|
61
63
|
className: o([
|
|
@@ -64,7 +66,7 @@ function I({
|
|
|
64
66
|
]),
|
|
65
67
|
"aria-controls": "drawer-navigation__primary-navigation",
|
|
66
68
|
"aria-expanded": a,
|
|
67
|
-
onClick:
|
|
69
|
+
onClick: d,
|
|
68
70
|
children: [
|
|
69
71
|
/* @__PURE__ */ e("span", { className: n["visually-hidden"], children: "Menu" }),
|
|
70
72
|
/* @__PURE__ */ e(
|
|
@@ -83,7 +85,7 @@ function I({
|
|
|
83
85
|
]
|
|
84
86
|
}
|
|
85
87
|
),
|
|
86
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ r(
|
|
87
89
|
"div",
|
|
88
90
|
{
|
|
89
91
|
className: o([
|
|
@@ -91,15 +93,15 @@ function I({
|
|
|
91
93
|
"drawer-navigation__primary-navigation"
|
|
92
94
|
]),
|
|
93
95
|
id: "drawer-navigation__primary-navigation",
|
|
94
|
-
"data-state": a ? "opened" :
|
|
96
|
+
"data-state": a ? "opened" : _ || "closed",
|
|
95
97
|
onAnimationEnd: f,
|
|
96
98
|
style: {
|
|
97
99
|
"--clip-path-start": p,
|
|
98
100
|
"--clip-path-end": u
|
|
99
101
|
},
|
|
100
102
|
children: [
|
|
101
|
-
s.length > 0 && /* @__PURE__ */ e(b, { links: s, classname:
|
|
102
|
-
|
|
103
|
+
s.length > 0 && /* @__PURE__ */ e(b, { links: s, classname: v, toggleHandler: d }),
|
|
104
|
+
l.length > 0 && /* @__PURE__ */ r(m, { children: [
|
|
103
105
|
/* @__PURE__ */ e(
|
|
104
106
|
"hr",
|
|
105
107
|
{
|
|
@@ -109,12 +111,12 @@ function I({
|
|
|
109
111
|
])
|
|
110
112
|
}
|
|
111
113
|
),
|
|
112
|
-
/* @__PURE__ */ e(
|
|
114
|
+
/* @__PURE__ */ e(k, { items: l })
|
|
113
115
|
] })
|
|
114
116
|
]
|
|
115
117
|
}
|
|
116
118
|
),
|
|
117
|
-
a && /* @__PURE__ */ e(x, { appendToElement: w, state:
|
|
119
|
+
a && /* @__PURE__ */ e(x, { appendToElement: w, state: _ === null && !a ? "exiting" : "entering" })
|
|
118
120
|
] });
|
|
119
121
|
}
|
|
120
122
|
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-B0ARwqly.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,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-B0ARwqly.mjs";
|
|
4
4
|
import '../../assets/Figure2.css';const s = "_figure_1wcw1_1", c = {
|
|
5
5
|
figure: s
|
|
6
6
|
};
|
|
@@ -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-B0ARwqly.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,42 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
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";
|
|
3
3
|
import { classes as i } from "../../utils/helpers.js";
|
|
4
4
|
import { blockLayoutsMap as h } from "../../settings.js";
|
|
5
5
|
import { C as k } from "../../chevron-left-DmvQntvu.mjs";
|
|
6
|
-
import '../../assets/InfoPanel.css';const
|
|
6
|
+
import '../../assets/InfoPanel.css';const v = "_fade_1j4w6_1", s = {
|
|
7
7
|
"info-panel": "_info-panel_1j4w6_1",
|
|
8
|
+
fade: v,
|
|
8
9
|
"info-panel__back-btn": "_info-panel__back-btn_1j4w6_19"
|
|
9
10
|
};
|
|
10
11
|
function N({
|
|
11
12
|
layoutComponent: e = { layout: "", props: {} },
|
|
12
|
-
onBackClicked:
|
|
13
|
+
onBackClicked: l = () => {
|
|
13
14
|
},
|
|
14
15
|
backButtonLabel: c = "Back to List",
|
|
15
16
|
classname: y = ""
|
|
16
17
|
}) {
|
|
17
|
-
const [f, L] =
|
|
18
|
-
p.current =
|
|
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({
|
|
19
20
|
top: n.current.offsetTop,
|
|
20
21
|
left: 0,
|
|
21
22
|
behaviour: "instant"
|
|
22
23
|
});
|
|
23
24
|
};
|
|
24
25
|
return m(() => {
|
|
25
|
-
async function
|
|
26
|
+
async function a() {
|
|
26
27
|
L(h.get(e.layout));
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
+
a();
|
|
29
30
|
}, [e.layout]), m(() => {
|
|
30
31
|
n.current !== null && (t === "exiting" && n.current.addEventListener("animationend", () => {
|
|
31
|
-
|
|
32
|
+
l(p.current);
|
|
32
33
|
}, { once: !0 }), t === "entering" && n.current.addEventListener("animationend", () => {
|
|
33
34
|
u("idle");
|
|
34
35
|
}, { once: !0 }));
|
|
35
|
-
}, [t,
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
}, [t, l]), /* @__PURE__ */ o("div", { className: i([s["info-panel"], `${y}`]), "data-state": t, ref: n, children: [
|
|
37
|
+
/* @__PURE__ */ o(
|
|
37
38
|
"button",
|
|
38
39
|
{
|
|
39
|
-
className: i([
|
|
40
|
+
className: i([s["info-panel__back-btn"], "info-panel__back-btn"]),
|
|
40
41
|
type: "button",
|
|
41
42
|
onClick: _,
|
|
42
43
|
children: [
|
|
@@ -46,10 +47,10 @@ function N({
|
|
|
46
47
|
}
|
|
47
48
|
),
|
|
48
49
|
f !== null && /* @__PURE__ */ r(f, { ...e.props }),
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ o(
|
|
50
51
|
"button",
|
|
51
52
|
{
|
|
52
|
-
className: i([
|
|
53
|
+
className: i([s["info-panel__back-btn"], "info-panel__back-btn"]),
|
|
53
54
|
type: "button",
|
|
54
55
|
onClick: _,
|
|
55
56
|
children: [
|
|
@@ -1,10 +1,11 @@
|
|
|
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"
|
|
4
|
+
import '../../assets/InlineNavigation.css';const r = {
|
|
5
|
+
"inline-navigation": "_inline-navigation_3u114_1",
|
|
6
|
+
"anchor-tag--image": "_anchor-tag--image_3u114_10"
|
|
6
7
|
};
|
|
7
|
-
function
|
|
8
|
+
function f({ links: t = [], classname: i = "", position: e = "left" }) {
|
|
8
9
|
const a = /* @__PURE__ */ new Map([
|
|
9
10
|
["left", "flex-start"],
|
|
10
11
|
["right", "flex-end"],
|
|
@@ -13,7 +14,7 @@ function c({ links: t = [], classname: i = "", position: e = "left" }) {
|
|
|
13
14
|
return /* @__PURE__ */ n(
|
|
14
15
|
"nav",
|
|
15
16
|
{
|
|
16
|
-
className:
|
|
17
|
+
className: r["inline-navigation"],
|
|
17
18
|
style: {
|
|
18
19
|
"--inline-nav-justify-content": a.get(e)
|
|
19
20
|
},
|
|
@@ -22,6 +23,6 @@ function c({ links: t = [], classname: i = "", position: e = "left" }) {
|
|
|
22
23
|
);
|
|
23
24
|
}
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
f as InlineNavigation,
|
|
27
|
+
f as default
|
|
27
28
|
};
|
|
@@ -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-B0ARwqly.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,12 +1,15 @@
|
|
|
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 _ = "_spinner_4d38k_14", d = "_rot_4d38k_1", r = {
|
|
5
5
|
"spinner-wrap": "_spinner-wrap_4d38k_14",
|
|
6
|
-
|
|
6
|
+
"fade-in": "_fade-in_4d38k_1",
|
|
7
|
+
"fade-out": "_fade-out_4d38k_1",
|
|
8
|
+
spinner: _,
|
|
9
|
+
rot: d,
|
|
7
10
|
"loading-wrapper__message": "_loading-wrapper__message_4d38k_44"
|
|
8
11
|
};
|
|
9
|
-
function
|
|
12
|
+
function f({
|
|
10
13
|
spinnerColor: s = "var(--theme-color-100)",
|
|
11
14
|
spinnerSize: a = "3.125rem",
|
|
12
15
|
spinnerTrackWidth: i = "6px",
|
|
@@ -31,6 +34,6 @@ function m({
|
|
|
31
34
|
] });
|
|
32
35
|
}
|
|
33
36
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
f as Loading,
|
|
38
|
+
f as default
|
|
36
39
|
};
|
|
@@ -1,49 +1,52 @@
|
|
|
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:
|
|
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",
|
|
9
12
|
"modal__close-btn": "_modal__close-btn_1vlfz_48"
|
|
10
|
-
},
|
|
13
|
+
}, R = (r) => {
|
|
11
14
|
if (!document.querySelector(`#${r}`)) {
|
|
12
15
|
const t = document.createElement("div");
|
|
13
16
|
t.setAttribute("id", r), document.querySelector("body").append(t);
|
|
14
17
|
}
|
|
15
18
|
};
|
|
16
|
-
function
|
|
19
|
+
function G({
|
|
17
20
|
contentComponent: r = "BCVideoPlayer",
|
|
18
21
|
airaLabel: h = "",
|
|
19
22
|
modalId: t = "modal-container",
|
|
20
23
|
onModalClose: x = () => !0,
|
|
21
24
|
children: u
|
|
22
25
|
}) {
|
|
23
|
-
const [
|
|
24
|
-
|
|
25
|
-
o.current.close(),
|
|
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();
|
|
26
29
|
}, 750);
|
|
27
30
|
}, i = (e) => {
|
|
28
|
-
[...o.current.attributes].findIndex((n) => n.name === "open") !== -1 && e.key === "Escape" && (e.preventDefault(), e.stopPropagation(),
|
|
29
|
-
},
|
|
30
|
-
e.target.classList.contains(`${
|
|
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();
|
|
31
34
|
};
|
|
32
|
-
return
|
|
35
|
+
return R(t), _(() => {
|
|
33
36
|
document.getElementById(t).removeEventListener(`scripps:${t.replaceAll("-", "")}:change`, (n) => {
|
|
34
|
-
|
|
37
|
+
p(n.detail.componentProps), n.detail.forceOpen && f((l) => !l);
|
|
35
38
|
});
|
|
36
39
|
async function e() {
|
|
37
|
-
B(
|
|
40
|
+
B(w.get(r));
|
|
38
41
|
}
|
|
39
42
|
return r !== "" && e(), document.getElementById(t).addEventListener(`scripps:${t.replaceAll("-", "")}:change`, (n) => {
|
|
40
|
-
|
|
43
|
+
p(n.detail.componentProps), n.detail.forceOpen && f((l) => !l);
|
|
41
44
|
}), () => {
|
|
42
45
|
document.getElementById(t).removeEventListener(`scripps:${t.replaceAll("-", "")}:change`, (n) => {
|
|
43
|
-
|
|
46
|
+
p(n.detail.componentProps), n.detail.forceOpen && f((l) => !l);
|
|
44
47
|
});
|
|
45
48
|
};
|
|
46
|
-
}, [r, t]),
|
|
49
|
+
}, [r, t]), _(() => {
|
|
47
50
|
let e = null;
|
|
48
51
|
const n = () => {
|
|
49
52
|
const l = setInterval(() => {
|
|
@@ -53,46 +56,46 @@ function V({
|
|
|
53
56
|
return o.current === null && n(), () => {
|
|
54
57
|
e == null || e.close();
|
|
55
58
|
};
|
|
56
|
-
}, [
|
|
57
|
-
o.current !== null && [...o.current.attributes].findIndex((e) => e.name === "open") === -1 && c !== null && (o.current.showModal(),
|
|
58
|
-
}, [c,
|
|
59
|
-
/* @__PURE__ */
|
|
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(
|
|
60
63
|
"dialog",
|
|
61
64
|
{
|
|
62
65
|
ref: o,
|
|
63
|
-
"data-state":
|
|
64
|
-
className:
|
|
66
|
+
"data-state": z,
|
|
67
|
+
className: L([v.modal, "modal"]),
|
|
65
68
|
onKeyDown: i,
|
|
66
69
|
onKeyUp: i,
|
|
67
|
-
onClick:
|
|
70
|
+
onClick: O,
|
|
68
71
|
onCancel: (e) => e.preventDefault(),
|
|
69
72
|
"aria-modal": "true",
|
|
70
73
|
"aria-label": h,
|
|
71
74
|
children: [
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
d !== null && u === void 0 && /* @__PURE__ */ a(
|
|
76
|
+
d,
|
|
74
77
|
{
|
|
75
78
|
...c,
|
|
76
|
-
containerClosing:
|
|
79
|
+
containerClosing: y,
|
|
77
80
|
handleClosing: i
|
|
78
81
|
}
|
|
79
82
|
),
|
|
80
|
-
u !== void 0 && /* @__PURE__ */
|
|
83
|
+
u !== void 0 && /* @__PURE__ */ a(S, { children: P.Children.map(u, (e) => P.cloneElement(e, {
|
|
81
84
|
...c,
|
|
82
|
-
containerClosing:
|
|
85
|
+
containerClosing: y,
|
|
83
86
|
handleClosing: i
|
|
84
87
|
})) }),
|
|
85
88
|
/* @__PURE__ */ E(
|
|
86
89
|
"button",
|
|
87
90
|
{
|
|
88
91
|
type: "button",
|
|
89
|
-
onClick:
|
|
90
|
-
className:
|
|
92
|
+
onClick: m,
|
|
93
|
+
className: L([v["modal__close-btn"], "modal__close-btn"]),
|
|
91
94
|
"aria-label": "Close",
|
|
92
|
-
ref:
|
|
95
|
+
ref: C,
|
|
93
96
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "close" }),
|
|
98
|
+
/* @__PURE__ */ a("i", { children: /* @__PURE__ */ a(F, { width: "48", height: "48" }) })
|
|
96
99
|
]
|
|
97
100
|
}
|
|
98
101
|
)
|
|
@@ -103,6 +106,6 @@ function V({
|
|
|
103
106
|
);
|
|
104
107
|
}
|
|
105
108
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
G as ModalContainer,
|
|
110
|
+
G as default
|
|
108
111
|
};
|
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { r as i } from "../../index-
|
|
4
|
-
import '../../assets/Overlay.css';const
|
|
5
|
-
overlay:
|
|
1
|
+
import { jsx as c, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as n } from "react";
|
|
3
|
+
import { r as i } from "../../index-DC7FmJPK.mjs";
|
|
4
|
+
import '../../assets/Overlay.css';const d = "_overlay_itsaf_1", v = "_fade_itsaf_1", m = "_reveal_itsaf_1", u = "_hide_itsaf_1", y = {
|
|
5
|
+
overlay: d,
|
|
6
|
+
fade: v,
|
|
7
|
+
reveal: m,
|
|
8
|
+
hide: u
|
|
6
9
|
};
|
|
7
|
-
function
|
|
10
|
+
function h({ appendToElement: r, state: a = "entering" }) {
|
|
8
11
|
(() => {
|
|
9
12
|
if (!document.querySelector("#overlay")) {
|
|
10
13
|
const t = document.createElement("div");
|
|
11
|
-
t.setAttribute("id", "overlay"), t.setAttribute("class", `${
|
|
14
|
+
t.setAttribute("id", "overlay"), t.setAttribute("class", `${y.overlay} overlay`), t.setAttribute("data-state", "entering"), r !== null ? r.append(t) : document.body.appendChild(t);
|
|
12
15
|
}
|
|
13
16
|
})();
|
|
14
|
-
const
|
|
17
|
+
const o = setInterval(() => {
|
|
15
18
|
const e = document.querySelector("#overlay");
|
|
16
19
|
if (e) {
|
|
17
20
|
const t = () => {
|
|
18
|
-
const
|
|
19
|
-
document.dispatchEvent(
|
|
21
|
+
const s = new CustomEvent("scripps:overlay:closed");
|
|
22
|
+
document.dispatchEvent(s), e.setAttribute("data-state", "exiting"), setTimeout(() => {
|
|
20
23
|
e.remove();
|
|
21
24
|
}, 200);
|
|
22
25
|
};
|
|
23
|
-
clearInterval(
|
|
26
|
+
clearInterval(o), e.addEventListener("click", t);
|
|
24
27
|
}
|
|
25
28
|
});
|
|
26
|
-
return
|
|
29
|
+
return n(() => {
|
|
27
30
|
var e;
|
|
28
|
-
(e = document.querySelector("#overlay")) == null || e.setAttribute("data-state",
|
|
29
|
-
}, [
|
|
30
|
-
/* @__PURE__ */ l
|
|
31
|
+
(e = document.querySelector("#overlay")) == null || e.setAttribute("data-state", a);
|
|
32
|
+
}, [a]), i.createPortal(
|
|
33
|
+
/* @__PURE__ */ c(l, {}),
|
|
31
34
|
document.getElementById("overlay")
|
|
32
35
|
);
|
|
33
36
|
}
|
|
34
37
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
h as Overlay,
|
|
39
|
+
h as default
|
|
37
40
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r, Fragment as u } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { p as y } from "../../../../index-
|
|
3
|
+
import { p as y } from "../../../../index-B0ARwqly.mjs";
|
|
4
4
|
import { AirDateFormatter as h } from "../../../AirDateFormatter/AirDateFormatter.js";
|
|
5
5
|
import { GetAirdateWrapper as x } from "../../../GetAirdateWrapper/GetAirdateWrapper.js";
|
|
6
6
|
import { StringList as I } from "../../../StringList/StringList.js";
|
|
@@ -3,10 +3,10 @@ import "react";
|
|
|
3
3
|
import { Concat as V } from "../Concat/Concat.js";
|
|
4
4
|
import { CtaBlock as Q } from "../CtaBlock/CtaBlock.js";
|
|
5
5
|
import { StringList as X } from "../StringList/StringList.js";
|
|
6
|
-
import { p as R } from "../../index-
|
|
6
|
+
import { p as R } from "../../index-B0ARwqly.mjs";
|
|
7
7
|
import { classes as d } from "../../utils/helpers.js";
|
|
8
|
-
import { s as Y } from "../../sub-
|
|
9
|
-
import { f as _ } from "../../format-
|
|
8
|
+
import { s as Y } from "../../sub-CkNH5u-l.mjs";
|
|
9
|
+
import { f as _ } from "../../format-plq8pBNY.mjs";
|
|
10
10
|
import '../../assets/ProgramAirdate.css';const i = {
|
|
11
11
|
"program-airdate": "_program-airdate_et1s5_1",
|
|
12
12
|
"program-airdate__descriptor": "_program-airdate__descriptor_et1s5_5",
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as _, useEffect as s } from "react";
|
|
3
3
|
import '../../assets/PromotionBlock.css';const o = {
|
|
4
4
|
"promo-image": "_promo-image_1nlw7_12",
|
|
5
5
|
"promo-image__text": "_promo-image__text_1nlw7_33",
|
|
6
6
|
"promo-copy": "_promo-copy_1nlw7_38",
|
|
7
7
|
"promo-image--animate": "_promo-image--animate_1nlw7_44",
|
|
8
|
+
"promo-slide-in-left": "_promo-slide-in-left_1nlw7_1",
|
|
8
9
|
"promo-copy--animate": "_promo-copy--animate_1nlw7_51",
|
|
10
|
+
"promo-slide-in-right": "_promo-slide-in-right_1nlw7_1",
|
|
9
11
|
"promo-copy__header": "_promo-copy__header_1nlw7_59",
|
|
10
12
|
"promo-copy__description": "_promo-copy__description_1nlw7_64",
|
|
11
13
|
"promo-copy__link": "_promo-copy__link_1nlw7_65"
|
|
12
14
|
};
|
|
13
|
-
function f({ image:
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
function f({ image: t, promo: r }) {
|
|
16
|
+
const a = _(), n = _(), c = (i, p) => {
|
|
17
|
+
i.forEach((l) => {
|
|
18
|
+
l.isIntersecting && (a.current.classList.add(`${o["promo-copy--animate"]}`), n.current.classList.add(`${o["promo-image--animate"]}`), p.unobserve(n.current));
|
|
17
19
|
});
|
|
18
20
|
};
|
|
19
|
-
return
|
|
20
|
-
const
|
|
21
|
+
return s(() => {
|
|
22
|
+
const i = new IntersectionObserver(c, {
|
|
21
23
|
root: null,
|
|
22
24
|
rootMargin: "0px",
|
|
23
25
|
threshold: 0.1
|
|
24
26
|
});
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
+
return i.observe(n.current), () => {
|
|
28
|
+
i.disconnect();
|
|
27
29
|
};
|
|
28
|
-
}, []), /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */ e("span", { className: o["promo-image__text"], children:
|
|
31
|
-
/* @__PURE__ */ e("promo-image", { children: /* @__PURE__ */ e("a", { href: r.href, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e("img", { src:
|
|
30
|
+
}, []), /* @__PURE__ */ m("promotion-block", { children: [
|
|
31
|
+
/* @__PURE__ */ m("div", { className: o["promo-image"], ref: n, children: [
|
|
32
|
+
/* @__PURE__ */ e("span", { className: o["promo-image__text"], children: t.text }),
|
|
33
|
+
/* @__PURE__ */ e("promo-image", { children: /* @__PURE__ */ e("a", { href: r.href, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e("img", { src: t.url, alt: t.altText }) }) })
|
|
32
34
|
] }),
|
|
33
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ m("div", { className: o["promo-copy"], ref: a, children: [
|
|
34
36
|
/* @__PURE__ */ e("h4", { className: o["promo-copy__header"], children: r.header }),
|
|
35
37
|
/* @__PURE__ */ e("p", { className: o["promo-copy__description"], children: r.description }),
|
|
36
38
|
/* @__PURE__ */ e("a", { className: o["promo-copy__link"], href: r.href, target: "_blank", rel: "noreferrer", children: r.linkText })
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import { ResultsTableBody as m } from "../ResultsTableBody/ResultsTableBody.js";
|
|
4
4
|
import { ResultsTableHeader as i } from "../ResultsTableHeader/ResultsTableHeader.js";
|
|
5
5
|
import { classes as p } from "../../utils/helpers.js";
|
|
6
|
-
import { s as e } from "../../ResultsTable.module-
|
|
6
|
+
import { s as e } from "../../ResultsTable.module-nTlGw9Lh.mjs";
|
|
7
7
|
function x({
|
|
8
8
|
columns: s = [],
|
|
9
9
|
results: l = [],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { classes as t } from "../../utils/helpers.js";
|
|
4
|
-
import { s as e } from "../../ResultsTable.module-
|
|
4
|
+
import { s as e } from "../../ResultsTable.module-nTlGw9Lh.mjs";
|
|
5
5
|
function c({ results: r = [], columns: u = [], noResultsMsg: b = "No results were returned" }) {
|
|
6
6
|
return r.length > 0 ? r.map((a, i) => /* @__PURE__ */ l(
|
|
7
7
|
"div",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { s as r } from "../../ResultsTable.module-
|
|
3
|
+
import { s as r } from "../../ResultsTable.module-nTlGw9Lh.mjs";
|
|
4
4
|
function o({ columns: s = [] }) {
|
|
5
5
|
return /* @__PURE__ */ t("div", { className: [r["results-table__row"], r["results-table__header-row"], "results-table__header-row"].join(" "), children: s.map((e) => /* @__PURE__ */ t(
|
|
6
6
|
"div",
|