@platform-x/hcltechx-mfe-wrapper 1.0.26 → 1.0.28
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/{ArticleVodListComponent-DTkoREqR.mjs → ArticleVodListComponent-DSRNjKD8.mjs} +2 -2
- package/{ChallengeDetailComponent-Ca25Clz-.mjs → ChallengeDetailComponent-DbesgdUJ.mjs} +26 -26
- package/{ChallengeSliderComponent-CbJY4Aiz.mjs → ChallengeSliderComponent-CZha8umL.mjs} +3 -3
- package/{CommonContentComponent-DLcGdgGX.mjs → CommonContentComponent-ymMUmwfq.mjs} +3 -3
- package/{DailyMotion-bHI4xRnL.mjs → DailyMotion-CQs-0b3L.mjs} +2 -2
- package/{EngagementHomeComponent-D0jGLYp5.mjs → EngagementHomeComponent-jiWMO5Fk.mjs} +3 -3
- package/{EventDetailComponent-BP1evsCS.mjs → EventDetailComponent-CsgMuDbh.mjs} +3 -3
- package/{EventListComponent-DAVTINQh.mjs → EventListComponent-CzTQ_7Py.mjs} +3 -3
- package/{ExperienceZone-COPPagdy.mjs → ExperienceZone-9s0HjLtt.mjs} +1 -1
- package/{ExperienceZoneComponent-lFEV7QIB.mjs → ExperienceZoneComponent-mepbZgL9.mjs} +3 -3
- package/{Facebook-BPWggWdh.mjs → Facebook-CgDCJTbB.mjs} +2 -2
- package/{FilePlayer-Je4awm0z.mjs → FilePlayer-Cv8NCqau.mjs} +2 -2
- package/{IndividualChallengeComponent-F0MPiqay.mjs → IndividualChallengeComponent-DJJBve3f.mjs} +3 -3
- package/{Kaltura-B9bKsKgk.mjs → Kaltura-D81dYYRC.mjs} +2 -2
- package/{Mixcloud-BzDCCIv4.mjs → Mixcloud-Cym45aB6.mjs} +2 -2
- package/{Mux-DdIx71kS.mjs → Mux-Do6b3D66.mjs} +2 -2
- package/{PageComponent-B5TTyKlk.mjs → PageComponent-DCxfmEz5.mjs} +2 -2
- package/{Preview-2BqxpeCy.mjs → Preview-CYhyunnq.mjs} +1 -1
- package/{RecentCarousel-BSDId8Fv.mjs → RecentCarousel-rTey69ZH.mjs} +31 -31
- package/{Share-eewBtkXm.mjs → Share-BPqSzxmC.mjs} +2 -2
- package/{SoundCloud-DRL-N2dl.mjs → SoundCloud-g00SMKNw.mjs} +2 -2
- package/{Streamable-DwB1M094.mjs → Streamable-5RCbAxXJ.mjs} +2 -2
- package/{ToggleButton-BQpl1Ovm.mjs → ToggleButton-DwoLCG-T.mjs} +1125 -1120
- package/{Twitch-EHWs8_OW.mjs → Twitch-CXNw75sG.mjs} +2 -2
- package/{Vidyard-D3JaO07V.mjs → Vidyard-BGDZV2LT.mjs} +2 -2
- package/{Vimeo-BP5Q7Ds1.mjs → Vimeo-DH_Kas-K.mjs} +2 -2
- package/{Wistia-lVh_WUaK.mjs → Wistia-CU7u5NvH.mjs} +2 -2
- package/{YouTube-yhsWBUnx.mjs → YouTube-B-iIx-zE.mjs} +2 -2
- package/{index-C5zfooxZ.mjs → index-BiL5fYRg.mjs} +10 -10
- package/{index-C_NBgMzk.mjs → index-CbX19e8t.mjs} +7 -7
- package/index.mjs +1 -1
- package/{mutateApi-t986qmZb.mjs → mutateApi-D7QidbHk.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { A as p } from "./ToggleButton-
|
|
2
|
+
import { A as p } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-BiL5fYRg.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const f = ({
|
|
7
7
|
data: t,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
|
-
import { b as K } from "./ToggleButton-
|
|
2
|
+
import { b as K } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
3
|
import { useState as f, useEffect as M } from "react";
|
|
4
|
-
import { s as a, f as u } from "./index-
|
|
5
|
-
import { m as N } from "./mutateApi-
|
|
4
|
+
import { s as a, f as u } from "./index-BiL5fYRg.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-D7QidbHk.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const Z = (
|
|
7
|
+
const Z = (L) => {
|
|
8
8
|
const {
|
|
9
9
|
pageData: t = {},
|
|
10
10
|
secondaryArgs: P,
|
|
11
11
|
prelemAnalyticsProp: E,
|
|
12
12
|
prelemAuthoringHelper: D,
|
|
13
13
|
userId: y
|
|
14
|
-
} =
|
|
15
|
-
prelemBaseEndpoint: { language:
|
|
16
|
-
} = P, [C, c] = f(!1), [v, I] = f(!1), [w, B] = f(0), [
|
|
14
|
+
} = L || {}, {
|
|
15
|
+
prelemBaseEndpoint: { language: m, site_host: d }
|
|
16
|
+
} = P, [C, c] = f(!1), [v, I] = f(!1), [w, B] = f(0), [S, G] = f(0), [T, j] = f([]), [b, A] = f(!1), [k, U] = f({}), h = localStorage.getItem("userId") || y, x = async (i) => {
|
|
17
17
|
var n, s, l, o;
|
|
18
|
-
if (!
|
|
18
|
+
if (!h) {
|
|
19
19
|
a("User ID is not available. Please log in.");
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
@@ -24,18 +24,18 @@ const Z = (_) => {
|
|
|
24
24
|
const r = {
|
|
25
25
|
input: {
|
|
26
26
|
...i,
|
|
27
|
-
userId:
|
|
27
|
+
userId: h
|
|
28
28
|
}
|
|
29
|
-
}, e = await N.joinChallenge(r,
|
|
30
|
-
((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? a((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_joinChallenge) != null && o.id ? (I(!0),
|
|
29
|
+
}, e = await N.joinChallenge(r, m, d);
|
|
30
|
+
((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? a((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_joinChallenge) != null && o.id ? (I(!0), _(), A(!0)) : console.error("Join Challenge API failed");
|
|
31
31
|
} catch (r) {
|
|
32
32
|
console.error("Error in Join Challenge API:", r);
|
|
33
33
|
} finally {
|
|
34
34
|
c(!1);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
36
|
+
}, _ = async () => {
|
|
37
37
|
var i, n, s, l;
|
|
38
|
-
if (!
|
|
38
|
+
if (!h) {
|
|
39
39
|
a("User ID is not available. Please log in.");
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
@@ -44,16 +44,16 @@ const Z = (_) => {
|
|
|
44
44
|
const o = {
|
|
45
45
|
challenge_id: t == null ? void 0 : t.page,
|
|
46
46
|
user_id: y
|
|
47
|
-
}, r = await u.getChallengeDetails(o,
|
|
47
|
+
}, r = await u.getChallengeDetails(o, m, d);
|
|
48
48
|
if (((i = r == null ? void 0 : r.errors) == null ? void 0 : i.length) > 0)
|
|
49
49
|
a((n = r == null ? void 0 : r.errors[0]) == null ? void 0 : n.message);
|
|
50
50
|
else if ((s = r == null ? void 0 : r.data) != null && s.community_challengesDetail) {
|
|
51
51
|
const {
|
|
52
52
|
total_participant: e,
|
|
53
|
-
is_joined:
|
|
53
|
+
is_joined: g,
|
|
54
54
|
user_steps: z = 0
|
|
55
55
|
} = (l = r == null ? void 0 : r.data) == null ? void 0 : l.community_challengesDetail;
|
|
56
|
-
I(
|
|
56
|
+
I(g), B(e), G(z);
|
|
57
57
|
} else
|
|
58
58
|
console.error("GetEventDetails API failed");
|
|
59
59
|
} catch (o) {
|
|
@@ -67,13 +67,13 @@ const Z = (_) => {
|
|
|
67
67
|
c(!0);
|
|
68
68
|
const r = {
|
|
69
69
|
challenge_id: t == null ? void 0 : t.page,
|
|
70
|
-
user_id:
|
|
71
|
-
}, e = await u.getLeaderBoardList(r,
|
|
70
|
+
user_id: localStorage.getItem("userId")
|
|
71
|
+
}, e = await u.getLeaderBoardList(r, m, d);
|
|
72
72
|
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
73
73
|
a((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
|
|
74
74
|
else if ((l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_getLeaderBoardList) != null && l.records) {
|
|
75
|
-
const { records:
|
|
76
|
-
j(
|
|
75
|
+
const { records: g } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_getLeaderBoardList;
|
|
76
|
+
j(g);
|
|
77
77
|
} else
|
|
78
78
|
console.error("GetLeaderBoardList API failed");
|
|
79
79
|
} catch (r) {
|
|
@@ -87,13 +87,13 @@ const Z = (_) => {
|
|
|
87
87
|
c(!0);
|
|
88
88
|
const r = {
|
|
89
89
|
date: i,
|
|
90
|
-
user_id:
|
|
91
|
-
}, e = await u.fetchPersonalTracker(r,
|
|
90
|
+
user_id: h
|
|
91
|
+
}, e = await u.fetchPersonalTracker(r, m, d);
|
|
92
92
|
if (((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0)
|
|
93
93
|
a((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
|
|
94
94
|
else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
|
|
95
|
-
const { device_info:
|
|
96
|
-
U(
|
|
95
|
+
const { device_info: g } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
|
|
96
|
+
U(g);
|
|
97
97
|
} else
|
|
98
98
|
console.error("GetPersonalData API failed"), a("GetPersonalData API failed");
|
|
99
99
|
} catch (r) {
|
|
@@ -106,14 +106,14 @@ const Z = (_) => {
|
|
|
106
106
|
loading: C,
|
|
107
107
|
isEnrolled: v,
|
|
108
108
|
enrolledParticipants: w,
|
|
109
|
-
userAchieved:
|
|
109
|
+
userAchieved: S,
|
|
110
110
|
leaderBoardList: T,
|
|
111
111
|
showPopup: b,
|
|
112
112
|
setShowPopup: A,
|
|
113
113
|
deviceInfo: k
|
|
114
114
|
};
|
|
115
115
|
return M(() => {
|
|
116
|
-
t != null && t.page && (
|
|
116
|
+
t != null && t.page && (_(), H(), J());
|
|
117
117
|
}, [t]), /* @__PURE__ */ F(
|
|
118
118
|
K,
|
|
119
119
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
-
import { f as D, C as F } from "./ToggleButton-
|
|
2
|
+
import { f as D, C as F } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
3
|
import { useState as d, useEffect as J } from "react";
|
|
4
|
-
import { f as p, s as a, a as K } from "./index-
|
|
5
|
-
import { m as N } from "./mutateApi-
|
|
4
|
+
import { f as p, s as a, a as K } from "./index-BiL5fYRg.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-D7QidbHk.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (I) => {
|
|
8
8
|
var S, P, A;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as O } from "react/jsx-runtime";
|
|
2
2
|
import j, { memo as x, useState as g, useEffect as J } from "react";
|
|
3
|
-
import { F as M, f as N, s as w } from "./index-
|
|
4
|
-
import { m as $ } from "./mutateApi-
|
|
3
|
+
import { F as M, f as N, s as w } from "./index-BiL5fYRg.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-D7QidbHk.mjs";
|
|
5
5
|
import { M as T } from "./Mapping-jqmNMEpL.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const c = {};
|
|
8
8
|
Object.keys(T).forEach((l) => (c[l] = j.lazy(
|
|
9
|
-
() => import("./index-
|
|
9
|
+
() => import("./index-CbX19e8t.mjs").then((t) => ({
|
|
10
10
|
default: t[T[l]]
|
|
11
11
|
}))
|
|
12
12
|
), c));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as P } from "./index-
|
|
1
|
+
import { n as P } from "./index-BiL5fYRg.mjs";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import { y as D, z as O } from "./ToggleButton-
|
|
3
|
+
import { y as D, z as O } from "./ToggleButton-DwoLCG-T.mjs";
|
|
4
4
|
function b(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
-
import { f as V, a as R } from "./ToggleButton-
|
|
2
|
+
import { f as V, a as R } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
3
|
import { useState as a, useEffect as ee } from "react";
|
|
4
|
-
import { f as A, s, a as te } from "./index-
|
|
5
|
-
import { m as ae } from "./mutateApi-
|
|
4
|
+
import { f as A, s, a as te } from "./index-BiL5fYRg.mjs";
|
|
5
|
+
import { m as ae } from "./mutateApi-D7QidbHk.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const k = async (w, g, D, I = "", t = "wellnessevent") => {
|
|
8
8
|
var f, d, n, r;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as U } from "react/jsx-runtime";
|
|
2
|
-
import { c as V } from "./ToggleButton-
|
|
2
|
+
import { c as V } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
3
|
import { useState as a, useEffect as p } from "react";
|
|
4
|
-
import { f as q, s as d, a as I } from "./index-
|
|
5
|
-
import { m as z } from "./mutateApi-
|
|
4
|
+
import { f as q, s as d, a as I } from "./index-BiL5fYRg.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-D7QidbHk.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (h) => {
|
|
8
8
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import { E as M, f as U } from "./ToggleButton-
|
|
2
|
+
import { E as M, f as U } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
3
|
import { useState as c, useEffect as j } from "react";
|
|
4
|
-
import { s as a, f as B, a as H } from "./index-
|
|
5
|
-
import { m as q } from "./mutateApi-
|
|
4
|
+
import { s as a, f as B, a as H } from "./index-BiL5fYRg.mjs";
|
|
5
|
+
import { m as q } from "./mutateApi-D7QidbHk.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Q = ({
|
|
8
8
|
data: h,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a6 as $, a7 as r, a8 as v, B as u, T as E, k as m, a9 as P, aa as _, ab as b } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
3
|
const L = ({
|
|
4
4
|
content: C,
|
|
5
5
|
analytics: S,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import "./ToggleButton-
|
|
3
|
-
import { E as L } from "./ExperienceZone-
|
|
2
|
+
import "./ToggleButton-DwoLCG-T.mjs";
|
|
3
|
+
import { E as L } from "./ExperienceZone-9s0HjLtt.mjs";
|
|
4
4
|
import { useState as S, useEffect as _ } from "react";
|
|
5
|
-
import { f as T, s as j } from "./index-
|
|
5
|
+
import { f as T, s as j } from "./index-BiL5fYRg.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const P = (h) => {
|
|
8
8
|
var t, r, i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as _ } from "./index-
|
|
1
|
+
import { n as _ } from "./index-BiL5fYRg.mjs";
|
|
2
2
|
import P from "react";
|
|
3
|
-
import { y as g, z as m } from "./ToggleButton-
|
|
3
|
+
import { y as g, z as m } from "./ToggleButton-DwoLCG-T.mjs";
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as b } from "./index-
|
|
1
|
+
import { n as b } from "./index-BiL5fYRg.mjs";
|
|
2
2
|
import _ from "react";
|
|
3
|
-
import { y as O, z as A } from "./ToggleButton-
|
|
3
|
+
import { y as O, z as A } from "./ToggleButton-DwoLCG-T.mjs";
|
|
4
4
|
function R(s, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
package/{IndividualChallengeComponent-F0MPiqay.mjs → IndividualChallengeComponent-DJJBve3f.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as re } from "react/jsx-runtime";
|
|
2
|
-
import { I as te } from "./ToggleButton-
|
|
2
|
+
import { I as te } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
3
|
import { useState as u, useEffect as se } from "react";
|
|
4
|
-
import { f as y, s as f, a as w } from "./index-
|
|
5
|
-
import { m as E } from "./mutateApi-
|
|
4
|
+
import { f as y, s as f, a as w } from "./index-BiL5fYRg.mjs";
|
|
5
|
+
import { m as E } from "./mutateApi-D7QidbHk.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const ge = (G) => {
|
|
8
8
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as y } from "./index-
|
|
1
|
+
import { n as y } from "./index-BiL5fYRg.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as _, z as m } from "./ToggleButton-
|
|
3
|
+
import { y as _, z as m } from "./ToggleButton-DwoLCG-T.mjs";
|
|
4
4
|
function P(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const o = e[t];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as y } from "./index-
|
|
1
|
+
import { n as y } from "./index-BiL5fYRg.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as m, z as g } from "./ToggleButton-
|
|
3
|
+
import { y as m, z as g } from "./ToggleButton-DwoLCG-T.mjs";
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as P } from "./index-
|
|
1
|
+
import { n as P } from "./index-BiL5fYRg.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { z as E } from "./ToggleButton-
|
|
3
|
+
import { z as E } from "./ToggleButton-DwoLCG-T.mjs";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { c as I } from "./index-
|
|
2
|
+
import { c as I } from "./index-BiL5fYRg.mjs";
|
|
3
3
|
import S from "react";
|
|
4
4
|
import { M as f } from "./Mapping-jqmNMEpL.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const p = {};
|
|
7
7
|
Object.keys(f).forEach((o) => (p[o] = S.lazy(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-CbX19e8t.mjs").then((n) => ({
|
|
9
9
|
default: n[f[o]]
|
|
10
10
|
}))
|
|
11
11
|
), p));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { m as y, B as i, T as x, o as
|
|
3
|
-
import
|
|
4
|
-
import { o as
|
|
2
|
+
import { m as y, B as i, T as x, o as B, p as V, q as W, g as z, t as H, V as M, P as U, u as F, v as j, w as k, x as A } from "./ToggleButton-DwoLCG-T.mjs";
|
|
3
|
+
import q, { useState as O, useEffect as Y } from "react";
|
|
4
|
+
import { o as G } from "./index-BiL5fYRg.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
7
|
-
const r =
|
|
6
|
+
const J = y(() => {
|
|
7
|
+
const r = G();
|
|
8
8
|
return {
|
|
9
9
|
recentCardsWrapper: {
|
|
10
10
|
"&.recentCardsBg": {
|
|
@@ -123,13 +123,13 @@ const K = y(() => {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
|
-
}),
|
|
127
|
-
const
|
|
126
|
+
}), re = ({ isVideoLandingPage: r, data: w, secondaryArgs: t, filters: d }) => {
|
|
127
|
+
const E = t == null ? void 0 : t.platform, I = J(), { gcpUrl: c, bucketName: h } = t, [N, X] = O([]), v = (e) => {
|
|
128
128
|
var m, p, s;
|
|
129
129
|
const a = (e == null ? void 0 : e.CurrentPageURL) || e.current_page_url, l = ((m = e == null ? void 0 : e.content_type) == null ? void 0 : m.toLowerCase()) === "vod" ? "video" : "article";
|
|
130
130
|
typeof window < "u" && (d != null && d.onCardClick ? d == null || d.onCardClick({ id: a, type: l }) : (p = t == null ? void 0 : t.prelemBaseEndpoint) != null && p.language ? window.open(`/${(s = t == null ? void 0 : t.prelemBaseEndpoint) == null ? void 0 : s.language}/${l}${a}`) : window.open(`/${l}${a}`));
|
|
131
|
-
},
|
|
132
|
-
|
|
131
|
+
}, L = (e) => {
|
|
132
|
+
E !== "isAuthoring" && v(e);
|
|
133
133
|
}, _ = {
|
|
134
134
|
dotPosition: "outside",
|
|
135
135
|
arrows: !1,
|
|
@@ -141,10 +141,10 @@ const K = y(() => {
|
|
|
141
141
|
xs: 1
|
|
142
142
|
}
|
|
143
143
|
}, f = () => {
|
|
144
|
-
const e =
|
|
145
|
-
e &&
|
|
146
|
-
}, S =
|
|
147
|
-
|
|
144
|
+
const e = j(w, _.itemsPerRow);
|
|
145
|
+
e && X(e);
|
|
146
|
+
}, S = A(f, 100);
|
|
147
|
+
Y(() => {
|
|
148
148
|
f();
|
|
149
149
|
const e = () => {
|
|
150
150
|
S();
|
|
@@ -154,21 +154,21 @@ const K = y(() => {
|
|
|
154
154
|
};
|
|
155
155
|
}, [w]);
|
|
156
156
|
const b = (e) => {
|
|
157
|
-
e.target.src !==
|
|
157
|
+
e.target.src !== k && (e.target.onerror = null, e.target.src = k);
|
|
158
158
|
};
|
|
159
|
-
return /* @__PURE__ */ n(i, { className: `${
|
|
159
|
+
return /* @__PURE__ */ n(i, { className: `${I.recentCardsWrapper} recentCardsBg`, children: [
|
|
160
160
|
/* @__PURE__ */ o(i, { className: "PX-TopHeading", children: /* @__PURE__ */ o(x, { variant: "h5medium", children: r ? "Related Videos" : "Related Articles" }) }),
|
|
161
|
-
/* @__PURE__ */ o(i, { className: "PX-CardBox", children: /* @__PURE__ */ o(i, { className: "PX-InnerBox", children:
|
|
161
|
+
/* @__PURE__ */ o(i, { className: "PX-CardBox", children: /* @__PURE__ */ o(i, { className: "PX-InnerBox", children: N.map(
|
|
162
162
|
(e) => e == null ? void 0 : e.map((a, l) => {
|
|
163
|
-
var
|
|
163
|
+
var T, P;
|
|
164
164
|
const { original_image: m = {}, thumbnail: p } = a, { original_image_relative_path: s, ext: D } = m;
|
|
165
|
-
let
|
|
166
|
-
return ((
|
|
165
|
+
let C, u;
|
|
166
|
+
return ((T = a == null ? void 0 : a.content_type) == null ? void 0 : T.toLowerCase()) === "vod" ? (C = B(c, h, V(p)), u = B(c, h, p)) : (C = W(
|
|
167
167
|
c,
|
|
168
168
|
h,
|
|
169
169
|
s,
|
|
170
170
|
"webp"
|
|
171
|
-
), u =
|
|
171
|
+
), u = W(
|
|
172
172
|
c,
|
|
173
173
|
h,
|
|
174
174
|
s || p,
|
|
@@ -176,28 +176,28 @@ const K = y(() => {
|
|
|
176
176
|
)), /* @__PURE__ */ n(
|
|
177
177
|
i,
|
|
178
178
|
{
|
|
179
|
-
onClick: () =>
|
|
179
|
+
onClick: () => L(a),
|
|
180
180
|
className: "PX-CardWp",
|
|
181
181
|
"data-testid": "enable-vod-play",
|
|
182
182
|
children: [
|
|
183
183
|
/* @__PURE__ */ n(i, { className: "PX-MediaWp", children: [
|
|
184
184
|
/* @__PURE__ */ n(z, { component: "picture", children: [
|
|
185
|
-
H.map(({ breakpoint: g }, $) => /* @__PURE__ */ n(
|
|
185
|
+
H.map(({ breakpoint: g }, $) => /* @__PURE__ */ n(q.Fragment, { children: [
|
|
186
186
|
/* @__PURE__ */ o(
|
|
187
187
|
"source",
|
|
188
188
|
{
|
|
189
|
-
onError: (
|
|
190
|
-
b(
|
|
189
|
+
onError: (R) => {
|
|
190
|
+
b(R);
|
|
191
191
|
},
|
|
192
192
|
media: `(min-width:${g}px)`,
|
|
193
|
-
srcSet:
|
|
193
|
+
srcSet: C
|
|
194
194
|
}
|
|
195
195
|
),
|
|
196
196
|
/* @__PURE__ */ o(
|
|
197
197
|
"source",
|
|
198
198
|
{
|
|
199
|
-
onError: (
|
|
200
|
-
b(
|
|
199
|
+
onError: (R) => {
|
|
200
|
+
b(R);
|
|
201
201
|
},
|
|
202
202
|
media: `(min-width:${g}px)`,
|
|
203
203
|
srcSet: u
|
|
@@ -217,7 +217,7 @@ const K = y(() => {
|
|
|
217
217
|
}
|
|
218
218
|
)
|
|
219
219
|
] }),
|
|
220
|
-
((
|
|
220
|
+
((P = a == null ? void 0 : a.content_type) == null ? void 0 : P.toLowerCase()) === "vod" ? /* @__PURE__ */ o(i, { className: "PX-MidIcon", children: /* @__PURE__ */ o("img", { alt: "", src: M }) }) : (
|
|
221
221
|
// <Box className='PX-MidIcon'>
|
|
222
222
|
// <img alt='' src={ArticleIcon} />
|
|
223
223
|
// </Box>
|
|
@@ -227,9 +227,9 @@ const K = y(() => {
|
|
|
227
227
|
/* @__PURE__ */ n(i, { className: "PX-CardRightContent", children: [
|
|
228
228
|
/* @__PURE__ */ o(x, { variant: "h7regular", children: U((a == null ? void 0 : a.publishedDate) || (a == null ? void 0 : a.published_date)) }),
|
|
229
229
|
/* @__PURE__ */ o(x, { variant: "h6bold", className: "title", children: a == null ? void 0 : a.title }),
|
|
230
|
-
/* @__PURE__ */ n(
|
|
230
|
+
/* @__PURE__ */ n(i, { onClick: () => v(a), className: "readmoreCta", children: [
|
|
231
231
|
/* @__PURE__ */ o(x, { variant: "h6regular", children: "Read more" }),
|
|
232
|
-
/* @__PURE__ */ o(
|
|
232
|
+
/* @__PURE__ */ o(F, {})
|
|
233
233
|
] })
|
|
234
234
|
] })
|
|
235
235
|
]
|
|
@@ -241,5 +241,5 @@ const K = y(() => {
|
|
|
241
241
|
] });
|
|
242
242
|
};
|
|
243
243
|
export {
|
|
244
|
-
|
|
244
|
+
re as default
|
|
245
245
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Le, { jsx as a, jsxs as k, Fragment as je } from "react/jsx-runtime";
|
|
2
2
|
import * as le from "react";
|
|
3
3
|
import Te, { forwardRef as Ne, useState as $, useEffect as de, useRef as Oe, useCallback as Pe } from "react";
|
|
4
|
-
import { d as ce, r as Ee, i as Re, m as We, h as Be, e as ue, B as b, g as De, j as He, T as L, P as Me, k as I, D as $e, l as Ue, s as Ve, n as J } from "./ToggleButton-
|
|
5
|
-
import { g as he, d as pe, e as we, _ as j, u as fe, h as ge, i as me, P as p, j as be, k as ve, l as ze, m as ee, n as Fe, G as P, o as Ke } from "./index-
|
|
4
|
+
import { d as ce, r as Ee, i as Re, m as We, h as Be, e as ue, B as b, g as De, j as He, T as L, P as Me, k as I, D as $e, l as Ue, s as Ve, n as J } from "./ToggleButton-DwoLCG-T.mjs";
|
|
5
|
+
import { g as he, d as pe, e as we, _ as j, u as fe, h as ge, i as me, P as p, j as be, k as ve, l as ze, m as ee, n as Fe, G as P, o as Ke } from "./index-BiL5fYRg.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
function Ge(e) {
|
|
8
8
|
return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as P } from "./index-
|
|
1
|
+
import { n as P } from "./index-BiL5fYRg.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { y as b, z as v } from "./ToggleButton-
|
|
3
|
+
import { y as b, z as v } from "./ToggleButton-DwoLCG-T.mjs";
|
|
4
4
|
function O(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as m } from "./index-
|
|
1
|
+
import { n as m } from "./index-BiL5fYRg.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as _, z as b } from "./ToggleButton-
|
|
3
|
+
import { y as _, z as b } from "./ToggleButton-DwoLCG-T.mjs";
|
|
4
4
|
function P(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|