@platform-x/hcltechx-mfe-wrapper 1.0.15 → 1.0.17
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-Cmh3dbqz.mjs +28 -0
- package/ChallengeDetailComponent-DEVyf4Wz.mjs +107 -0
- package/ChallengeSliderComponent-CJWZYazj.mjs +85 -0
- package/CommonContentComponent-C2CQPSUv.mjs +78 -0
- package/{DailyMotion-D2e1_6Lo.mjs → DailyMotion-Dn0Wefyy.mjs} +2 -2
- package/EngagementHomeComponent-C1TlhquE.mjs +101 -0
- package/{EventDetailComponent-DyWKS8qq.mjs → EventDetailComponent-C6rPM84x.mjs} +44 -52
- package/{EventList-C5eFcxcn.mjs → EventList-lwNYrStD.mjs} +76550 -82984
- package/{EventListComponent-BVHDmTUj.mjs → EventListComponent-DYXFA5v_.mjs} +34 -42
- package/{Facebook-DeTNvyzj.mjs → Facebook-CHDKmwQ2.mjs} +2 -2
- package/{FilePlayer-DJ3jIz04.mjs → FilePlayer-DYPozp9B.mjs} +2 -2
- package/{IndividualChallengeComponent-B_LH6kGS.mjs → IndividualChallengeComponent-Cr9-cwdB.mjs} +59 -67
- package/{Kaltura-D29Vxa3f.mjs → Kaltura-CF9gfNmQ.mjs} +2 -2
- package/{Mixcloud-DQ2Lv8M7.mjs → Mixcloud-Rcvs2th1.mjs} +2 -2
- package/{Mux-Hzci7MQW.mjs → Mux-DHN7l3BG.mjs} +2 -2
- package/{Preview-Q5clyNSx.mjs → Preview-CVDdi0j6.mjs} +1 -1
- package/RecentCarousel-B-ELyI30.mjs +245 -0
- package/Share-uXoUDHk4.mjs +1905 -0
- package/{SoundCloud-BSArANPY.mjs → SoundCloud-Cjg4ImMg.mjs} +2 -2
- package/{Streamable-CNuoty2V.mjs → Streamable-CCYu2EKx.mjs} +2 -2
- package/{Twitch-D8ak9PNz.mjs → Twitch-cmyUqhkG.mjs} +2 -2
- package/{Vidyard-BzcUofyS.mjs → Vidyard-B8-nr_Fv.mjs} +2 -2
- package/{Vimeo-BpmjKKvG.mjs → Vimeo-B63IG5aC.mjs} +2 -2
- package/{Wistia-BtUevsst.mjs → Wistia-DfkI_SbS.mjs} +2 -2
- package/{YouTube-DJ_h2tam.mjs → YouTube-CU68ZQl6.mjs} +2 -2
- package/{index-BHdH4CGi.mjs → index-CgIBu_Si.mjs} +3219 -4522
- package/{index-6dvcnXVE.mjs → index-Dbzb3b-0.mjs} +3 -3
- package/index.mjs +2 -2
- package/lib/utils/constants.d.ts +2 -0
- package/{mutateApi-D_cBrIKP.mjs → mutateApi-PiJF8MYO.mjs} +1 -1
- package/package.json +1 -1
- package/ArticleVodListComponent-Bso55pbj.mjs +0 -36
- package/ChallengeDetailComponent-B8QVladY.mjs +0 -115
- package/ChallengeSliderComponent-BvlWqch7.mjs +0 -93
- package/CommonContentComponent-sLmvojvf.mjs +0 -86
- package/EngagementHomeComponent-vw9OkASk.mjs +0 -108
- package/RecentCarousel-C1ArLhM5.mjs +0 -340
- package/Share-848qnxye.mjs +0 -2265
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as
|
|
3
|
-
import { useState as
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import { e as v } from "./EventList-lwNYrStD.mjs";
|
|
3
|
+
import { useState as g, useEffect as A } from "react";
|
|
4
|
+
import { s as r, f as k, a as L } from "./index-CgIBu_Si.mjs";
|
|
5
|
+
import { m as b } from "./mutateApi-PiJF8MYO.mjs";
|
|
5
6
|
import "react-dom";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
prelemAuthoringHelper: h,
|
|
7
|
+
const q = ({
|
|
8
|
+
data: h,
|
|
9
|
+
prelemAnalyticsProp: p,
|
|
10
|
+
prelemAuthoringHelper: P,
|
|
11
11
|
secondaryArgs: c,
|
|
12
|
-
userId:
|
|
13
|
-
filters:
|
|
14
|
-
relativePath:
|
|
12
|
+
userId: d,
|
|
13
|
+
filters: y,
|
|
14
|
+
relativePath: S
|
|
15
15
|
}) => {
|
|
16
|
-
const [
|
|
16
|
+
const [w, D] = g({}), [E, m] = g(!1), {
|
|
17
17
|
prelemBaseEndpoint: { language: f, site_host: u }
|
|
18
|
-
} = c, n = localStorage.getItem("userId") ||
|
|
18
|
+
} = c, n = localStorage.getItem("userId") || d, I = async (l, t, i) => {
|
|
19
19
|
var s, o;
|
|
20
20
|
if (!n) {
|
|
21
21
|
r("User ID is not available. Please log in.");
|
|
@@ -25,12 +25,12 @@ const H = ({
|
|
|
25
25
|
const e = {
|
|
26
26
|
input: { activity_type: i, target: l.toString(), action: t },
|
|
27
27
|
user_id: n
|
|
28
|
-
}, a = await
|
|
29
|
-
((o = (s = a == null ? void 0 : a.data) == null ? void 0 : s.community_setPersonalGoal) == null ? void 0 : o.message) === "Created Successfully!!!" && t === "goal" ?
|
|
28
|
+
}, a = await b.setPersonalGoal(e, f, u);
|
|
29
|
+
((o = (s = a == null ? void 0 : a.data) == null ? void 0 : s.community_setPersonalGoal) == null ? void 0 : o.message) === "Created Successfully!!!" && t === "goal" ? L("Goal updated successfully!") : t !== "entry" && r("Something went wrong, please try after sometime !");
|
|
30
30
|
} catch (e) {
|
|
31
31
|
console.error("Error in update goal API:", e), r("Something went wrong, please try after sometime !");
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, T = async () => {
|
|
34
34
|
var l, t, i, s;
|
|
35
35
|
if (!n) {
|
|
36
36
|
r("User ID is not available. Please log in.");
|
|
@@ -41,12 +41,12 @@ const H = ({
|
|
|
41
41
|
const o = {
|
|
42
42
|
date: "",
|
|
43
43
|
user_id: n
|
|
44
|
-
}, e = await
|
|
44
|
+
}, e = await k.fetchPersonalTracker(o, f, u);
|
|
45
45
|
if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
|
|
46
46
|
r((t = e == null ? void 0 : e.errors[0]) == null ? void 0 : t.message);
|
|
47
47
|
else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
|
|
48
48
|
const { steps: a } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_fetchPersonalTracker;
|
|
49
|
-
|
|
49
|
+
D(a);
|
|
50
50
|
} else
|
|
51
51
|
console.error("GetPersonalData API failed");
|
|
52
52
|
} catch (o) {
|
|
@@ -54,34 +54,26 @@ const H = ({
|
|
|
54
54
|
} finally {
|
|
55
55
|
m(!1);
|
|
56
56
|
}
|
|
57
|
-
},
|
|
58
|
-
stepsData:
|
|
57
|
+
}, G = {
|
|
58
|
+
stepsData: w,
|
|
59
59
|
loading: E,
|
|
60
|
-
updateGoals:
|
|
60
|
+
updateGoals: I
|
|
61
61
|
};
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
}, []), /* @__PURE__ */
|
|
65
|
-
|
|
62
|
+
return A(() => {
|
|
63
|
+
T();
|
|
64
|
+
}, []), /* @__PURE__ */ _(
|
|
65
|
+
v,
|
|
66
66
|
{
|
|
67
|
-
content:
|
|
68
|
-
analytics:
|
|
69
|
-
authoringHelper:
|
|
67
|
+
content: h,
|
|
68
|
+
analytics: p,
|
|
69
|
+
authoringHelper: P,
|
|
70
70
|
secondaryArgs: c,
|
|
71
|
-
stepsDetails:
|
|
72
|
-
filters:
|
|
73
|
-
relativePath:
|
|
74
|
-
}
|
|
75
|
-
void 0,
|
|
76
|
-
!1,
|
|
77
|
-
{
|
|
78
|
-
fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/prelems/Components/EventListComponent.tsx",
|
|
79
|
-
lineNumber: 87,
|
|
80
|
-
columnNumber: 5
|
|
81
|
-
},
|
|
82
|
-
void 0
|
|
71
|
+
stepsDetails: G,
|
|
72
|
+
filters: y,
|
|
73
|
+
relativePath: S
|
|
74
|
+
}
|
|
83
75
|
);
|
|
84
76
|
};
|
|
85
77
|
export {
|
|
86
|
-
|
|
78
|
+
q as default
|
|
87
79
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as _ } from "./index-
|
|
1
|
+
import { g as _ } from "./index-CgIBu_Si.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { u as P, p as m } from "./EventList-
|
|
3
|
+
import { u as P, p as m } from "./EventList-lwNYrStD.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 { g as b } from "./index-
|
|
1
|
+
import { g as b } from "./index-CgIBu_Si.mjs";
|
|
2
2
|
import _ from "react";
|
|
3
|
-
import { u as O, p as A } from "./EventList-
|
|
3
|
+
import { u as O, p as A } from "./EventList-lwNYrStD.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-B_LH6kGS.mjs → IndividualChallengeComponent-Cr9-cwdB.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { I as
|
|
3
|
-
import { useState as
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as W } from "react/jsx-runtime";
|
|
2
|
+
import { I as X } from "./EventList-lwNYrStD.mjs";
|
|
3
|
+
import { useState as m, useEffect as Y } from "react";
|
|
4
|
+
import { f as y, s as g, a as S } from "./index-CgIBu_Si.mjs";
|
|
5
|
+
import { m as C } from "./mutateApi-PiJF8MYO.mjs";
|
|
5
6
|
import "react-dom";
|
|
6
|
-
import "react/jsx-runtime";
|
|
7
7
|
const te = (q) => {
|
|
8
8
|
const {
|
|
9
9
|
pageData: l = {},
|
|
@@ -12,170 +12,162 @@ const te = (q) => {
|
|
|
12
12
|
prelemAuthoringHelper: E,
|
|
13
13
|
userId: v
|
|
14
14
|
} = q || {}, {
|
|
15
|
-
prelemBaseEndpoint: { site_host:
|
|
16
|
-
} = L, d = localStorage.getItem("userId") || v, [
|
|
15
|
+
prelemBaseEndpoint: { site_host: h, language: f }
|
|
16
|
+
} = L, d = localStorage.getItem("userId") || v, [G, u] = m(!1), [T, P] = m(!1), [B, j] = m(0), [D, U] = m(0), [k, b] = m([]), [x, H] = m([]), [J, z] = m([]), [F, I] = m({}), K = async (i) => {
|
|
17
17
|
var o, n, s, t, r, e;
|
|
18
18
|
try {
|
|
19
|
-
|
|
19
|
+
u(!0);
|
|
20
20
|
const a = {
|
|
21
21
|
input: {
|
|
22
22
|
...i,
|
|
23
23
|
userId: d
|
|
24
24
|
}
|
|
25
|
-
}, c = await
|
|
26
|
-
((o = c == null ? void 0 : c.errors) == null ? void 0 : o.length) > 0 ?
|
|
25
|
+
}, c = await C.joinChallenge(a, f, h);
|
|
26
|
+
((o = c == null ? void 0 : c.errors) == null ? void 0 : o.length) > 0 ? g((n = c == null ? void 0 : c.errors[0]) == null ? void 0 : n.message) : (t = (s = c == null ? void 0 : c.data) == null ? void 0 : s.community_joinChallenge) != null && t.id ? (S((e = (r = c == null ? void 0 : c.data) == null ? void 0 : r.community_joinChallenge) == null ? void 0 : e.message), P(!0), A()) : console.error("Join Challenge API failed");
|
|
27
27
|
} catch (a) {
|
|
28
28
|
console.error("Error in Join Challenge API:", a);
|
|
29
29
|
} finally {
|
|
30
|
-
|
|
30
|
+
u(!1);
|
|
31
31
|
}
|
|
32
32
|
}, A = async () => {
|
|
33
33
|
var i, o, n, s;
|
|
34
34
|
try {
|
|
35
|
-
|
|
35
|
+
u(!0);
|
|
36
36
|
const t = {
|
|
37
37
|
challenge_id: l == null ? void 0 : l.page,
|
|
38
38
|
user_id: d
|
|
39
|
-
}, r = await y.getChallengeDetails(t,
|
|
39
|
+
}, r = await y.getChallengeDetails(t, f, h);
|
|
40
40
|
if (((i = r == null ? void 0 : r.errors) == null ? void 0 : i.length) > 0)
|
|
41
|
-
|
|
41
|
+
g((o = r == null ? void 0 : r.errors[0]) == null ? void 0 : o.message);
|
|
42
42
|
else if ((n = r == null ? void 0 : r.data) != null && n.community_challengesDetail) {
|
|
43
43
|
const {
|
|
44
44
|
total_participant: e,
|
|
45
45
|
is_joined: a,
|
|
46
46
|
user_steps: c = 0
|
|
47
47
|
} = (s = r == null ? void 0 : r.data) == null ? void 0 : s.community_challengesDetail;
|
|
48
|
-
P(a), j(e),
|
|
48
|
+
P(a), j(e), U(c);
|
|
49
49
|
} else
|
|
50
50
|
console.error("GetChallengeDetails API failed");
|
|
51
51
|
} catch (t) {
|
|
52
52
|
console.error("Error in GetChallengeDetails API:", t);
|
|
53
53
|
} finally {
|
|
54
|
-
|
|
54
|
+
u(!1);
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, M = async (i = "") => {
|
|
57
57
|
var o, n, s, t;
|
|
58
58
|
try {
|
|
59
|
-
|
|
59
|
+
u(!0);
|
|
60
60
|
const r = {
|
|
61
61
|
date: i,
|
|
62
62
|
user_id: d
|
|
63
|
-
}, e = await y.fetchPersonalTracker(r,
|
|
63
|
+
}, e = await y.fetchPersonalTracker(r, f, h);
|
|
64
64
|
if (((o = e == null ? void 0 : e.errors) == null ? void 0 : o.length) > 0)
|
|
65
|
-
|
|
65
|
+
g((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
|
|
66
66
|
else if ((s = e == null ? void 0 : e.data) != null && s.community_fetchPersonalTracker) {
|
|
67
67
|
const { steps: a } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_fetchPersonalTracker;
|
|
68
68
|
I(a);
|
|
69
69
|
} else
|
|
70
|
-
console.error("GetPersonalData API failed"),
|
|
70
|
+
console.error("GetPersonalData API failed"), g("GetPersonalData API failed");
|
|
71
71
|
} catch (r) {
|
|
72
|
-
|
|
72
|
+
g("Something went wrong !"), console.error("Error in GetPersonalData API:", r), g("Error in GetPersonalData API"), I({});
|
|
73
73
|
} finally {
|
|
74
|
-
|
|
74
|
+
u(!1);
|
|
75
75
|
}
|
|
76
|
-
},
|
|
76
|
+
}, N = async () => {
|
|
77
77
|
var i, o, n, s, t;
|
|
78
78
|
try {
|
|
79
|
-
|
|
79
|
+
u(!0);
|
|
80
80
|
const r = {
|
|
81
81
|
challenge_id: l == null ? void 0 : l.page,
|
|
82
82
|
user_id: d
|
|
83
|
-
}, e = await y.getLeaderBoardList(r,
|
|
83
|
+
}, e = await y.getLeaderBoardList(r, f, h);
|
|
84
84
|
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
85
|
-
|
|
85
|
+
g((o = e == null ? void 0 : e.errors[0]) == null ? void 0 : o.message);
|
|
86
86
|
else if ((s = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_getLeaderBoardList) != null && s.records) {
|
|
87
87
|
const { records: a } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_getLeaderBoardList;
|
|
88
|
-
|
|
88
|
+
b(a);
|
|
89
89
|
} else
|
|
90
90
|
console.error("GetLeaderBoardList API failed");
|
|
91
91
|
} catch (r) {
|
|
92
92
|
console.error("Error in GetLeaderBoardList API:", r);
|
|
93
93
|
} finally {
|
|
94
|
-
|
|
94
|
+
u(!1);
|
|
95
95
|
}
|
|
96
|
-
},
|
|
96
|
+
}, O = async (i) => {
|
|
97
97
|
var o, n;
|
|
98
98
|
try {
|
|
99
99
|
const s = {
|
|
100
100
|
input: i
|
|
101
|
-
}, t = await
|
|
102
|
-
((n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.community_setupChallenge) == null ? void 0 : n.message) === "challenge has been setUp successfully" ?
|
|
101
|
+
}, t = await C.setUpChallenge(s, f, h);
|
|
102
|
+
((n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.community_setupChallenge) == null ? void 0 : n.message) === "challenge has been setUp successfully" ? S("Challenge has been setup successfully!") : g("Something went wrong, please try after sometime !");
|
|
103
103
|
} catch (s) {
|
|
104
|
-
console.error("Error in update goal API:", s),
|
|
104
|
+
console.error("Error in update goal API:", s), g("Something went wrong, please try after sometime !");
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, Q = async () => {
|
|
107
107
|
var i, o, n, s, t;
|
|
108
108
|
try {
|
|
109
|
-
|
|
109
|
+
u(!0);
|
|
110
110
|
const r = {
|
|
111
111
|
challenge_id: l == null ? void 0 : l.page,
|
|
112
112
|
user_id: d
|
|
113
|
-
}, e = await y.getSentRequestList(r,
|
|
113
|
+
}, e = await y.getSentRequestList(r, f, h);
|
|
114
114
|
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
115
|
-
|
|
115
|
+
g((o = e == null ? void 0 : e.errors[0]) == null ? void 0 : o.message);
|
|
116
116
|
else if ((s = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_sentRequests) != null && s.records) {
|
|
117
117
|
const { records: a } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_sentRequests;
|
|
118
|
-
|
|
118
|
+
H(a);
|
|
119
119
|
} else
|
|
120
120
|
console.error("GetSentRequestList API failed");
|
|
121
121
|
} catch (r) {
|
|
122
122
|
console.error("Error in GetSentRequestList API:", r);
|
|
123
123
|
} finally {
|
|
124
|
-
|
|
124
|
+
u(!1);
|
|
125
125
|
}
|
|
126
126
|
}, _ = async () => {
|
|
127
127
|
var i, o, n, s, t;
|
|
128
128
|
try {
|
|
129
|
-
|
|
129
|
+
u(!0);
|
|
130
130
|
const r = {
|
|
131
131
|
challenge_id: l == null ? void 0 : l.page,
|
|
132
132
|
user_id: d
|
|
133
|
-
}, e = await y.getReceivedRequestList(r,
|
|
133
|
+
}, e = await y.getReceivedRequestList(r, f, h);
|
|
134
134
|
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
135
|
-
|
|
135
|
+
g((o = e == null ? void 0 : e.errors[0]) == null ? void 0 : o.message);
|
|
136
136
|
else if ((s = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_receivedRequests) != null && s.records) {
|
|
137
137
|
const { records: a } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_receivedRequests;
|
|
138
|
-
|
|
138
|
+
z(a);
|
|
139
139
|
} else
|
|
140
140
|
console.error("GetReceivedRequestList API failed");
|
|
141
141
|
} catch (r) {
|
|
142
142
|
console.error("Error in GetReceivedRequestList API:", r);
|
|
143
143
|
} finally {
|
|
144
|
-
|
|
144
|
+
u(!1);
|
|
145
145
|
}
|
|
146
|
-
},
|
|
147
|
-
joinChallenge:
|
|
148
|
-
loading:
|
|
149
|
-
isEnrolled:
|
|
146
|
+
}, V = {
|
|
147
|
+
joinChallenge: K,
|
|
148
|
+
loading: G,
|
|
149
|
+
isEnrolled: T,
|
|
150
150
|
enrolledParticipants: B,
|
|
151
151
|
userAchieved: D,
|
|
152
|
-
leaderBoardList:
|
|
153
|
-
stepsData:
|
|
154
|
-
setUpChallenge:
|
|
155
|
-
sentRequestList:
|
|
156
|
-
receivedRequestList:
|
|
157
|
-
getSentRequestList:
|
|
152
|
+
leaderBoardList: k,
|
|
153
|
+
stepsData: F,
|
|
154
|
+
setUpChallenge: O,
|
|
155
|
+
sentRequestList: x,
|
|
156
|
+
receivedRequestList: J,
|
|
157
|
+
getSentRequestList: Q,
|
|
158
158
|
getReceivedRequestList: _
|
|
159
159
|
};
|
|
160
160
|
return Y(() => {
|
|
161
|
-
l != null && l.page && (A(),
|
|
162
|
-
}, [l]), /* @__PURE__ */
|
|
163
|
-
|
|
161
|
+
l != null && l.page && (A(), N(), M(), _());
|
|
162
|
+
}, [l]), /* @__PURE__ */ W(
|
|
163
|
+
X,
|
|
164
164
|
{
|
|
165
165
|
content: l,
|
|
166
166
|
analytics: w,
|
|
167
167
|
authoringHelper: E,
|
|
168
168
|
secondaryArgs: L,
|
|
169
|
-
challengeDetails:
|
|
170
|
-
}
|
|
171
|
-
void 0,
|
|
172
|
-
!1,
|
|
173
|
-
{
|
|
174
|
-
fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/contentTypes/Components/IndividualChallengeComponent.tsx",
|
|
175
|
-
lineNumber: 227,
|
|
176
|
-
columnNumber: 5
|
|
177
|
-
},
|
|
178
|
-
void 0
|
|
169
|
+
challengeDetails: V
|
|
170
|
+
}
|
|
179
171
|
);
|
|
180
172
|
};
|
|
181
173
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as f } from "./index-
|
|
1
|
+
import { g as f } from "./index-CgIBu_Si.mjs";
|
|
2
2
|
import y from "react";
|
|
3
|
-
import { u as _, p as m } from "./EventList-
|
|
3
|
+
import { u as _, p as m } from "./EventList-lwNYrStD.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 { g as f } from "./index-
|
|
1
|
+
import { g as f } from "./index-CgIBu_Si.mjs";
|
|
2
2
|
import y from "react";
|
|
3
|
-
import { u as m, p as g } from "./EventList-
|
|
3
|
+
import { u as m, p as g } from "./EventList-lwNYrStD.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 { g as P } from "./index-
|
|
1
|
+
import { g as P } from "./index-CgIBu_Si.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { p as E } from "./EventList-
|
|
3
|
+
import { p as E } from "./EventList-lwNYrStD.mjs";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { m as y, B as i, T as x, g as B, r as z, h as T, i as H, j as M, k as U, l as j, L as F, n as V, o as q, q as W, s as O } from "./EventList-lwNYrStD.mjs";
|
|
3
|
+
import Y, { useState as G, useEffect as J } from "react";
|
|
4
|
+
import { u as K } from "./index-CgIBu_Si.mjs";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const Q = y(() => {
|
|
7
|
+
const r = K();
|
|
8
|
+
return {
|
|
9
|
+
recentCardsWrapper: {
|
|
10
|
+
"&.recentCardsBg": {
|
|
11
|
+
width: "100%",
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
[r.breakpoints.up("xs")]: {
|
|
14
|
+
marginBottom: 0
|
|
15
|
+
},
|
|
16
|
+
"& .PX-TopHeading": {
|
|
17
|
+
padding: "15px",
|
|
18
|
+
background: "#9964DD",
|
|
19
|
+
borderTopRightRadius: r.borderRadius.value,
|
|
20
|
+
borderTopLeftRadius: r.borderRadius.value,
|
|
21
|
+
"& h5": {
|
|
22
|
+
margin: 0,
|
|
23
|
+
color: "#fff"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"& .PX-CardBox": {
|
|
27
|
+
border: "1px solid #D1D1D1",
|
|
28
|
+
paddingBottom: "15px",
|
|
29
|
+
borderTop: "0",
|
|
30
|
+
borderBottomRightRadius: r.borderRadius.value,
|
|
31
|
+
borderBottomLeftRadius: r.borderRadius.value,
|
|
32
|
+
"& .PX-InnerBox": {
|
|
33
|
+
padding: "15px",
|
|
34
|
+
borderTop: "0",
|
|
35
|
+
borderBottomRightRadius: r.borderRadius.value,
|
|
36
|
+
borderBottomLeftRadius: r.borderRadius.value,
|
|
37
|
+
overflowY: "auto",
|
|
38
|
+
maxHeight: "700px",
|
|
39
|
+
"& .PX-CardWp": {
|
|
40
|
+
display: "flex",
|
|
41
|
+
border: "1px solid #E8E8E8",
|
|
42
|
+
padding: "10px",
|
|
43
|
+
borderRadius: r.borderRadius.value,
|
|
44
|
+
marginBottom: "10px",
|
|
45
|
+
cursor: "pointer",
|
|
46
|
+
"& .PX-MediaWp": {
|
|
47
|
+
minWidth: "160px",
|
|
48
|
+
minHeight: "108px",
|
|
49
|
+
marginRight: "15px",
|
|
50
|
+
maxWidth: "160px",
|
|
51
|
+
maxHeight: "108px",
|
|
52
|
+
position: "relative",
|
|
53
|
+
[r.breakpoints.down("lg")]: {
|
|
54
|
+
minWidth: "90px",
|
|
55
|
+
marginRight: "10px",
|
|
56
|
+
maxWidth: "90px"
|
|
57
|
+
},
|
|
58
|
+
[r.breakpoints.down("em")]: {
|
|
59
|
+
minWidth: "150px",
|
|
60
|
+
marginRight: "10px",
|
|
61
|
+
maxWidth: "150px"
|
|
62
|
+
},
|
|
63
|
+
[r.breakpoints.down("em")]: {
|
|
64
|
+
minWidth: "90px",
|
|
65
|
+
marginRight: "10px",
|
|
66
|
+
maxWidth: "90px"
|
|
67
|
+
},
|
|
68
|
+
"& picture": {
|
|
69
|
+
height: "100%",
|
|
70
|
+
"& img": {
|
|
71
|
+
width: "100%",
|
|
72
|
+
height: "100%",
|
|
73
|
+
objectFit: "cover",
|
|
74
|
+
borderRadius: "5px"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"& .PX-MidIcon": {
|
|
78
|
+
position: "absolute",
|
|
79
|
+
top: "0",
|
|
80
|
+
left: "0",
|
|
81
|
+
right: "0",
|
|
82
|
+
bottom: "0",
|
|
83
|
+
margin: "auto",
|
|
84
|
+
width: "24px",
|
|
85
|
+
height: "24px",
|
|
86
|
+
filter: "brightness(0) invert(1)",
|
|
87
|
+
"& img": {
|
|
88
|
+
width: "100%"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"& .PX-CardRightContent": {
|
|
93
|
+
"& p": {
|
|
94
|
+
margin: 0
|
|
95
|
+
},
|
|
96
|
+
"& .title": {
|
|
97
|
+
display: "-webkit-box",
|
|
98
|
+
WebkitBoxOrient: "vertical",
|
|
99
|
+
WebkitLineClamp: "3",
|
|
100
|
+
overflow: "hidden",
|
|
101
|
+
margin: "7px 0",
|
|
102
|
+
height: "57px"
|
|
103
|
+
},
|
|
104
|
+
"& .readmoreCta": {
|
|
105
|
+
display: "inline-flex",
|
|
106
|
+
alignItems: "center",
|
|
107
|
+
color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
|
|
108
|
+
textDecoration: "none",
|
|
109
|
+
"& h6": {
|
|
110
|
+
color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
|
|
111
|
+
display: "inline-block",
|
|
112
|
+
margin: 0
|
|
113
|
+
},
|
|
114
|
+
"& svg": {
|
|
115
|
+
fontSize: "18px",
|
|
116
|
+
marginLeft: "8px"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}), oe = ({ isVideoLandingPage: r, data: f, secondaryArgs: t, filters: d }) => {
|
|
127
|
+
const k = t == null ? void 0 : t.platform, L = Q(), { gcpUrl: c, bucketName: h } = t, [X, E] = G([]), I = (e) => {
|
|
128
|
+
var m, p, s;
|
|
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
|
+
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
|
+
}, N = (e) => {
|
|
132
|
+
k !== "isAuthoring" && I(e);
|
|
133
|
+
}, _ = {
|
|
134
|
+
dotPosition: "outside",
|
|
135
|
+
arrows: !1,
|
|
136
|
+
animationType: "slideIn",
|
|
137
|
+
itemsPerRow: {
|
|
138
|
+
lg: 3,
|
|
139
|
+
md: 3,
|
|
140
|
+
sm: 2,
|
|
141
|
+
xs: 1
|
|
142
|
+
}
|
|
143
|
+
}, w = () => {
|
|
144
|
+
const e = q(f, _.itemsPerRow);
|
|
145
|
+
e && E(e);
|
|
146
|
+
}, S = O(w, 100);
|
|
147
|
+
J(() => {
|
|
148
|
+
w();
|
|
149
|
+
const e = () => {
|
|
150
|
+
S();
|
|
151
|
+
};
|
|
152
|
+
return window.addEventListener("resize", e), () => {
|
|
153
|
+
window.removeEventListener("resize", e);
|
|
154
|
+
};
|
|
155
|
+
}, [f]);
|
|
156
|
+
const b = (e) => {
|
|
157
|
+
e.target.src !== W && (e.target.onerror = null, e.target.src = W);
|
|
158
|
+
};
|
|
159
|
+
return /* @__PURE__ */ n(i, { className: `${L.recentCardsWrapper} recentCardsBg`, children: [
|
|
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: X.map(
|
|
162
|
+
(e) => e == null ? void 0 : e.map((a, l) => {
|
|
163
|
+
var v, P;
|
|
164
|
+
const { original_image: m = {}, thumbnail: p } = a, { original_image_relative_path: s, ext: D } = m;
|
|
165
|
+
let R, u;
|
|
166
|
+
return ((v = a == null ? void 0 : a.content_type) == null ? void 0 : v.toLowerCase()) === "vod" ? (R = B(c, h, z(p)), u = B(c, h, p)) : (R = T(
|
|
167
|
+
c,
|
|
168
|
+
h,
|
|
169
|
+
s,
|
|
170
|
+
"webp"
|
|
171
|
+
), u = T(
|
|
172
|
+
c,
|
|
173
|
+
h,
|
|
174
|
+
s || p,
|
|
175
|
+
D
|
|
176
|
+
)), /* @__PURE__ */ n(
|
|
177
|
+
i,
|
|
178
|
+
{
|
|
179
|
+
onClick: () => N(a),
|
|
180
|
+
className: "PX-CardWp",
|
|
181
|
+
"data-testid": "enable-vod-play",
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ n(i, { className: "PX-MediaWp", children: [
|
|
184
|
+
/* @__PURE__ */ n(H, { component: "picture", children: [
|
|
185
|
+
M.map(({ breakpoint: g }, $) => /* @__PURE__ */ n(Y.Fragment, { children: [
|
|
186
|
+
/* @__PURE__ */ o(
|
|
187
|
+
"source",
|
|
188
|
+
{
|
|
189
|
+
onError: (C) => {
|
|
190
|
+
b(C);
|
|
191
|
+
},
|
|
192
|
+
media: `(min-width:${g}px)`,
|
|
193
|
+
srcSet: R
|
|
194
|
+
}
|
|
195
|
+
),
|
|
196
|
+
/* @__PURE__ */ o(
|
|
197
|
+
"source",
|
|
198
|
+
{
|
|
199
|
+
onError: (C) => {
|
|
200
|
+
b(C);
|
|
201
|
+
},
|
|
202
|
+
media: `(min-width:${g}px)`,
|
|
203
|
+
srcSet: u
|
|
204
|
+
}
|
|
205
|
+
)
|
|
206
|
+
] }, $)),
|
|
207
|
+
/* @__PURE__ */ o(
|
|
208
|
+
"img",
|
|
209
|
+
{
|
|
210
|
+
loading: "lazy",
|
|
211
|
+
alt: "cropped-img",
|
|
212
|
+
src: u,
|
|
213
|
+
onError: (g) => {
|
|
214
|
+
b(g);
|
|
215
|
+
},
|
|
216
|
+
className: "PX-CardImage"
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
] }),
|
|
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: U }) }) : (
|
|
221
|
+
// <Box className='PX-MidIcon'>
|
|
222
|
+
// <img alt='' src={ArticleIcon} />
|
|
223
|
+
// </Box>
|
|
224
|
+
null
|
|
225
|
+
)
|
|
226
|
+
] }),
|
|
227
|
+
/* @__PURE__ */ n(i, { className: "PX-CardRightContent", children: [
|
|
228
|
+
/* @__PURE__ */ o(x, { variant: "h7regular", children: j((a == null ? void 0 : a.publishedDate) || (a == null ? void 0 : a.published_date)) }),
|
|
229
|
+
/* @__PURE__ */ o(x, { variant: "h6medium", className: "title", children: a == null ? void 0 : a.title }),
|
|
230
|
+
/* @__PURE__ */ n(F, { href: "", className: "readmoreCta", children: [
|
|
231
|
+
/* @__PURE__ */ o(x, { variant: "h6regular", children: "Read more" }),
|
|
232
|
+
/* @__PURE__ */ o(V, {})
|
|
233
|
+
] })
|
|
234
|
+
] })
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
l
|
|
238
|
+
);
|
|
239
|
+
})
|
|
240
|
+
) }) })
|
|
241
|
+
] });
|
|
242
|
+
};
|
|
243
|
+
export {
|
|
244
|
+
oe as default
|
|
245
|
+
};
|