@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.
Files changed (32) hide show
  1. package/dist/ResultsTable.module-DqVv22tU.mjs +14 -0
  2. package/dist/assets/ActionButton.css +1 -1
  3. package/dist/assets/AdBlock.css +1 -1
  4. package/dist/assets/DateNavigation.css +1 -1
  5. package/dist/assets/DatePicker.css +1 -1
  6. package/dist/assets/DrawerNavigation.css +1 -1
  7. package/dist/assets/InfoPanel.css +1 -1
  8. package/dist/assets/Loading.css +1 -1
  9. package/dist/assets/LoadingV2.css +1 -1
  10. package/dist/assets/ModalContainer.css +1 -1
  11. package/dist/assets/Overlay.css +1 -1
  12. package/dist/assets/PromotionBlock.css +1 -1
  13. package/dist/assets/ResultsTable.css +1 -1
  14. package/dist/assets/ScheduleList.css +1 -1
  15. package/dist/assets/ShowAboutLayout.css +1 -1
  16. package/dist/components/ActionButton/ActionButton.js +57 -38
  17. package/dist/components/AdBlock/AdBlock.js +157 -103
  18. package/dist/components/DateNavigation/DateNavigation.js +42 -42
  19. package/dist/components/DrawerNavigation/DrawerNavigation.js +28 -28
  20. package/dist/components/InfoPanel/InfoPanel.js +13 -13
  21. package/dist/components/Loading/Loading.js +8 -8
  22. package/dist/components/LoadingV2/LoadingV2.js +11 -11
  23. package/dist/components/ModalContainer/ModalContainer.js +10 -10
  24. package/dist/components/Overlay/Overlay.js +2 -2
  25. package/dist/components/PromotionBlock/PromotionBlock.js +24 -24
  26. package/dist/components/ResultsTable/ResultsTable.js +1 -1
  27. package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
  28. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +1 -1
  29. package/dist/components/ScheduleList/ScheduleList.js +106 -88
  30. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +9 -9
  31. package/package.json +2 -1
  32. 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 i } from "../../utils/helpers.js";
4
- import { blockLayoutsMap as h } from "../../settings.js";
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 l = {
7
- "info-panel": "_info-panel_1j4w6_1",
8
- "info-panel__back-btn": "_info-panel__back-btn_1j4w6_19"
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 N({
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, L] = b(null), [t, u] = b("entering"), n = d(null), p = d(null), _ = (o) => {
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(h.get(e.layout));
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: i([l["info-panel"], `${y}`]), "data-state": t, ref: n, children: [
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: i([l["info-panel__back-btn"], "info-panel__back-btn"]),
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: i([l["info-panel__back-btn"], "info-panel__back-btn"]),
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
- N as InfoPanel,
65
- N as default
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 d = "_spinner_4d38k_14", r = {
4
- "spinner-wrap": "_spinner-wrap_4d38k_14",
5
- spinner: d,
6
- "loading-wrapper__message": "_loading-wrapper__message_4d38k_44"
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: a = "3.125rem",
11
- spinnerTrackWidth: i = "6px",
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": a,
20
- "--spinner-track-width": i,
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 t = "_spinner_tub9o_11", o = "_spinner__wrapper_tub9o_23", l = "_spinner__left_tub9o_57", c = "_spinner__right_tub9o_61", m = "_spinner__anim_tub9o_65", n = {
4
- "loading-wrapper": "_loading-wrapper_tub9o_1",
5
- spinner: t,
6
- spinner__wrapper: o,
7
- "spinner--pie": "_spinner--pie_tub9o_41",
8
- "spinner--ring": "_spinner--ring_tub9o_45",
9
- spinner__left: l,
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-wrapper__message_tub9o_97"
12
+ "loading-wrapper__message": "_loading-wrapper__message_1o6w7_330"
13
13
  };
14
- function u({
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
- u as LoadingV2,
48
- u as default
47
+ g as LoadingV2,
48
+ g as default
49
49
  };
@@ -1,12 +1,12 @@
1
- import { jsx as s, jsxs as k, Fragment as B } from "react/jsx-runtime";
2
- import { useState as i, useRef as x, useEffect as v, Suspense as M, Children as w, isValidElement as F, cloneElement as K } from "react";
3
- import { r as N } from "../../index-DzfYkULW.mjs";
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 = "_modal_ojmou_1", C = {
7
+ import '../../assets/ModalContainer.css';const T = "_modal_1es68_237", C = {
8
8
  modal: T,
9
- "modal__close-btn": "_modal__close-btn_ojmou_48"
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
- }, j = (e) => {
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, $]), N.createPortal(
71
- /* @__PURE__ */ s(M, { children: /* @__PURE__ */ k(
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: j,
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(B, { children: w.map(p, (e) => F(e) ? K(e, {
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 = "_overlay_itsaf_1", d = {
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", `${d.overlay} overlay`), e.setAttribute("data-state", "entering"), r ? r.append(e) : document.body.appendChild(e);
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 c, jsx as r } from "react/jsx-runtime";
2
- import { useRef as _, useEffect as d } from "react";
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-image_1hym6_12",
5
- "promo-image__text": "_promo-image__text_1hym6_33",
6
- "promo-copy": "_promo-copy_1hym6_38",
7
- "promo-image--animate": "_promo-image--animate_1hym6_44",
8
- "promo-copy--animate": "_promo-copy--animate_1hym6_51",
9
- "promo-copy__header": "_promo-copy__header_1hym6_59",
10
- "promo-copy__description": "_promo-copy__description_1hym6_64",
11
- "promo-copy__link": "_promo-copy__link_1hym6_65"
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: n, promo: e }) {
14
- const a = _(null), m = _(null), s = (t, l) => {
15
- const i = a.current, p = m.current;
16
- !i || !p || t.forEach((h) => {
17
- h.isIntersecting && (i.classList.add(`${o["promo-copy--animate"]}`), p.classList.add(`${o["promo-image--animate"]}`), m.current && l.unobserve(m.current));
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 d(() => {
21
- const t = new IntersectionObserver(s, {
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 t.observe(m.current), () => {
27
- t.disconnect();
26
+ return n.observe(t.current), () => {
27
+ n.disconnect();
28
28
  };
29
- }, []), /* @__PURE__ */ c("promotion-block", { children: [
30
- /* @__PURE__ */ c("div", { className: o["promo-image"], ref: m, children: [
31
- /* @__PURE__ */ r("span", { className: o["promo-image__text"], children: n.text }),
32
- /* @__PURE__ */ r("promo-image", { children: /* @__PURE__ */ r("a", { href: e.href, rel: "noreferrer", target: "_blank", children: /* @__PURE__ */ r("img", { alt: n.altText, src: n.url }) }) })
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__ */ c("div", { className: o["promo-copy"], ref: a, children: [
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-wcNUQEKe.mjs";
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-wcNUQEKe.mjs";
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-wcNUQEKe.mjs";
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 n, jsxs as v } from "react/jsx-runtime";
2
- import { useReducer as A, useState as x, useRef as u, useCallback as C, useEffect as c } from "react";
3
- import { classes as S, getMinutesFromStr as D } from "../../utils/helpers.js";
4
- import { u as M } from "../../useScheduleContext-D7FdzNxe.mjs";
5
- import { Loading as O } from "../Loading/Loading.js";
6
- import { SportsItem as P } from "./schedule-list-items/SportsItem.js";
7
- import { SeriesItem as k } from "./schedule-list-items/SeriesItem.js";
8
- import { MovieItem as N } from "./schedule-list-items/MovieItem.js";
9
- import '../../assets/ScheduleList.css';const y = {
10
- "schedule-list__item": "_schedule-list__item_686v7_1",
11
- "schedule-list__airdate": "_schedule-list__airdate_686v7_14",
12
- "airdate-formatter__date": "_airdate-formatter__date_686v7_22",
13
- "airdate-formatter__day": "_airdate-formatter__day_686v7_23",
14
- "airdate-formatter__time-wrap": "_airdate-formatter__time-wrap_686v7_26",
15
- "schedule-list": "_schedule-list_686v7_1",
16
- "fade-out": "_fade-out_686v7_1",
17
- "fade-in": "_fade-in_686v7_1",
18
- "schedule-list__no-schedule": "_schedule-list__no-schedule_686v7_50",
19
- "schedule-content-constrainer": "_schedule-content-constrainer_686v7_102",
20
- "image-card__content": "_image-card__content_686v7_116"
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 w(r) {
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 $(r, o) {
26
- switch (o.type) {
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 T = (r) => {
40
- var o, a, d, t, e, s, E, p, _, f, i;
41
- return (o = r.video) != null && o.brightcove_id ? {
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
- } : (((a = r == null ? void 0 : r.content) == null ? void 0 : a.external_link) !== void 0 && ((d = r == null ? void 0 : r.content) == null ? void 0 : d.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) !== "") && !((s = r == null ? void 0 : r.content) != null && s.prevent_detail_page) ? {
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: (E = r == null ? void 0 : r.content) != null && E.external_link ? "external-link" : "internal-link",
75
- href: (p = r == null ? void 0 : r.content) != null && p.external_link ? (_ = r == null ? void 0 : r.content) == null ? void 0 : _.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}`,
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 B({
102
+ function K({
85
103
  handleClicks: r = () => !0
86
104
  }) {
87
- const { schedule: o, isLoading: a, isError: d } = M(), [t, e] = A($, "idle"), [s, E] = x(o), p = u(null), _ = u(null), f = C(() => {
88
- _.current && (clearTimeout(_.current), _.current = null), t === "exiting" ? e({ type: "EXIT_COMPLETE" }) : t === "entering" && e({ type: "ENTER_COMPLETE" });
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 c(() => {
91
- const i = p.current;
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]), c(() => {
97
- a && t === "idle" && e({ type: "START_EXIT" });
98
- }, [a, t]), c(() => {
99
- !a && t === "exiting" && e({ type: "EXIT_COMPLETE" });
100
- }, [a, t]), c(() => {
101
- const i = w(o) || Array.isArray(o) && o.length >= 0;
102
- !a && t === "loading" && i && (E(o), e({ type: "SCHEDULE_LOADED" }));
103
- }, [a, t, o]), c(() => {
104
- if (t === "exiting" && p.current && p.current) {
105
- const i = document.querySelector("sticky-content-wrapper"), g = document.querySelector(".mobile-nav");
106
- let l = 0;
107
- i && (l += i.offsetHeight), g && window.getComputedStyle(g).display !== "none" && (l += g.offsetHeight), l += 16;
108
- const R = p.current.getBoundingClientRect(), L = window.pageYOffset || document.documentElement.scrollTop, b = R.top + L - l;
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]), c(() => () => {
117
- _.current && clearTimeout(_.current);
118
- }, []), t === "loading" ? /* @__PURE__ */ n(
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__ */ n(O, {})
145
+ children: /* @__PURE__ */ a(D, {})
128
146
  }
129
- ) : d ? /* @__PURE__ */ v("div", { className: "schedule-list__no-schedule", children: [
130
- /* @__PURE__ */ n("h2", { children: "There was an error loading the schedule for this day." }),
131
- /* @__PURE__ */ v("p", { children: [
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__ */ n("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
151
+ /* @__PURE__ */ a("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
134
152
  "."
135
153
  ] })
136
- ] }) : w(s) ? /* @__PURE__ */ v(
154
+ ] }) : h(_) ? /* @__PURE__ */ y(
137
155
  "div",
138
156
  {
139
- className: S([
140
- y["schedule-list__no-schedule"],
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__ */ n("h2", { children: "There are no shows scheduled for this day." }),
147
- /* @__PURE__ */ v("p", { children: [
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__ */ n("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
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(s) && s.length === 0 ? /* @__PURE__ */ v(
172
+ ) : Array.isArray(_) && _.length === 0 ? /* @__PURE__ */ y(
155
173
  "div",
156
174
  {
157
- className: S([
158
- y["schedule-list__no-schedule"],
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__ */ n("h2", { children: "Our programming schedule for today has completed." }),
164
- /* @__PURE__ */ n("p", { children: "Our programming will restart at 6am." })
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__ */ n(
185
+ ) : /* @__PURE__ */ a(
168
186
  "ul",
169
187
  {
170
- className: `${y["schedule-list"]} schedule-list`,
188
+ className: `${g["schedule-list"]} schedule-list`,
171
189
  "data-state": t,
172
- ref: p,
173
- children: Array.isArray(s) && s.map((i) => {
174
- const g = D(i.element_length), l = T(i).type === "" ? [g, i.rating] : [g, i.rating, " "];
175
- return i.program_class === "Episode" ? /* @__PURE__ */ n(
176
- k,
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: T,
196
+ determineCTA: u,
179
197
  handleClicks: r,
180
198
  scheduleItem: i,
181
- strListArr: l,
182
- styles: y
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__ */ n(
186
- N,
203
+ ) : i.program_class === "Film" || i.program_class === "Movie" || i.program_class === "Special" ? /* @__PURE__ */ a(
204
+ P,
187
205
  {
188
- determineCTA: T,
206
+ determineCTA: u,
189
207
  handleClicks: r,
190
208
  scheduleItem: i,
191
- strListArr: l,
192
- styles: y
209
+ strListArr: p,
210
+ styles: g
193
211
  },
194
212
  `schedule-list-${i.id}`
195
- ) : i.program_class === "Sports" ? /* @__PURE__ */ n(
196
- P,
213
+ ) : i.program_class === "Sports" ? /* @__PURE__ */ a(
214
+ M,
197
215
  {
198
- determineCTA: T,
216
+ determineCTA: u,
199
217
  handleClicks: r,
200
218
  scheduleItem: i,
201
- strListArr: l,
202
- styles: y
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
- B as ScheduleList,
212
- B as default
229
+ K as ScheduleList,
230
+ K as default
213
231
  };