@platform-x/hcltechx-mfe-wrapper 1.0.4 → 1.0.5
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-YtUMKTV-.mjs +28 -0
- package/{ChallengeDetailComponent-OIc_qbQ7.mjs → ChallengeDetailComponent-j278rJJS.mjs} +17 -20
- package/{CommonContentComponent-Dw7qN2UY.mjs → CommonContentComponent-_hdjGmme.mjs} +5 -7
- package/{DailyMotion-usIiQTBI.mjs → DailyMotion-k0P9b2sC.mjs} +2 -2
- package/{EngagementHomeComponent-DlxSKhZn.mjs → EngagementHomeComponent-DQFLt6If.mjs} +26 -29
- package/{EventDetailComponent-DyMc9Jpn.mjs → EventDetailComponent-BnDu80CK.mjs} +38 -41
- package/EventList-ql-92dgs.mjs +37721 -0
- package/{EventListComponent-BeSBR1e4.mjs → EventListComponent-Dy6XnpUL.mjs} +11 -14
- package/{Facebook-TD2Ez4MH.mjs → Facebook-VoE7NiL8.mjs} +2 -2
- package/{FilePlayer-Cvjl83nF.mjs → FilePlayer-DfU88hmO.mjs} +2 -2
- package/{Kaltura-afUVGHPF.mjs → Kaltura-Bu9eMAN_.mjs} +2 -2
- package/{Mixcloud-BTCM6aDR.mjs → Mixcloud-Co8pBsFF.mjs} +2 -2
- package/{Mux-eEaw5K6o.mjs → Mux-CQDLL49m.mjs} +2 -2
- package/{Preview-C7exPUsb.mjs → Preview-BchOEyWT.mjs} +1 -1
- package/{RecentCarousel-DQUR6FRm.mjs → RecentCarousel-B2MDJzK3.mjs} +57 -60
- package/Share-BQzXwAtU.mjs +1905 -0
- package/{SoundCloud-DXK23jJ4.mjs → SoundCloud-D29HmRwe.mjs} +2 -2
- package/{Streamable-DnGSi_Rr.mjs → Streamable-QMtcUAgf.mjs} +2 -2
- package/{Twitch-DXFvLORO.mjs → Twitch-B4LsE3Lz.mjs} +2 -2
- package/{Vidyard-DOxjZyIR.mjs → Vidyard-Cl-t0hI0.mjs} +2 -2
- package/{Vimeo-BVqFzd-a.mjs → Vimeo-BqWIdDq5.mjs} +2 -2
- package/{Wistia-C5MonHzH.mjs → Wistia-BHdOPrcK.mjs} +2 -2
- package/{YouTube-DI16ACXR.mjs → YouTube-Dlusrv1H.mjs} +2 -2
- package/index-BNSG2Kzk.mjs +18 -0
- package/index-CuGbAy3z.mjs +10360 -0
- package/index.mjs +3 -5
- package/{mutateApi-DzPMKCtv.mjs → mutateApi-DN4k_whx.mjs} +1 -1
- package/package.json +1 -14
- package/ArticleVodListComponent-BgaqfZOW.mjs +0 -31
- package/EventList-sMbbb46c.mjs +0 -206513
- package/Share-CEf4pdOM.mjs +0 -2243
- package/index-BF0Ks43y.mjs +0 -7443
- package/index-DyyetrI2.mjs +0 -21
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import { d as v } from "./EventList-
|
|
2
|
+
import { d as v } from "./EventList-ql-92dgs.mjs";
|
|
3
3
|
import { useState as g, useEffect as A } from "react";
|
|
4
|
-
import { s as r, f as k, a as L } from "./index-
|
|
5
|
-
import { m as b } from "./mutateApi-
|
|
6
|
-
import "@mui/material";
|
|
7
|
-
import "@mui/styles";
|
|
8
|
-
import "@mui/system";
|
|
4
|
+
import { s as r, f as k, a as L } from "./index-CuGbAy3z.mjs";
|
|
5
|
+
import { m as b } from "./mutateApi-DN4k_whx.mjs";
|
|
9
6
|
import "react-dom";
|
|
10
|
-
const
|
|
11
|
-
data:
|
|
12
|
-
prelemAnalyticsProp:
|
|
13
|
-
prelemAuthoringHelper:
|
|
7
|
+
const q = ({
|
|
8
|
+
data: h,
|
|
9
|
+
prelemAnalyticsProp: d,
|
|
10
|
+
prelemAuthoringHelper: p,
|
|
14
11
|
secondaryArgs: c,
|
|
15
12
|
userId: P,
|
|
16
13
|
filters: y,
|
|
@@ -67,9 +64,9 @@ const J = ({
|
|
|
67
64
|
}, []), /* @__PURE__ */ _(
|
|
68
65
|
v,
|
|
69
66
|
{
|
|
70
|
-
content:
|
|
71
|
-
analytics:
|
|
72
|
-
authoringHelper:
|
|
67
|
+
content: h,
|
|
68
|
+
analytics: d,
|
|
69
|
+
authoringHelper: p,
|
|
73
70
|
secondaryArgs: c,
|
|
74
71
|
stepsDetails: G,
|
|
75
72
|
filters: y,
|
|
@@ -78,5 +75,5 @@ const J = ({
|
|
|
78
75
|
);
|
|
79
76
|
};
|
|
80
77
|
export {
|
|
81
|
-
|
|
78
|
+
q as default
|
|
82
79
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as _ } from "./index-
|
|
1
|
+
import { g as _ } from "./index-CuGbAy3z.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-ql-92dgs.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-CuGbAy3z.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-ql-92dgs.mjs";
|
|
4
4
|
function R(s, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as f } from "./index-
|
|
1
|
+
import { g as f } from "./index-CuGbAy3z.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-ql-92dgs.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-CuGbAy3z.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-ql-92dgs.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-CuGbAy3z.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { p as E } from "./EventList-
|
|
3
|
+
import { p as E } from "./EventList-ql-92dgs.mjs";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { Box as i, Typography as x, CardMedia as G, Link as J } from "@mui/material";
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { m as H, e as M, B as n, T as x, g as W, r as U, h as k, i as j, j as F, k as V, l as q, L as O, n as Y, o as G, q as L, s as J } from "./EventList-ql-92dgs.mjs";
|
|
4
3
|
import K, { useState as Q, useEffect as Z } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import "./index-BF0Ks43y.mjs";
|
|
4
|
+
import { u as A } from "./index-CuGbAy3z.mjs";
|
|
7
5
|
import "react-dom";
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const a = H();
|
|
6
|
+
const ee = H(() => {
|
|
7
|
+
const r = A();
|
|
11
8
|
return {
|
|
12
9
|
recentCardsWrapper: {
|
|
13
10
|
"&.recentCardsBg": {
|
|
14
11
|
width: "100%",
|
|
15
12
|
overflow: "hidden",
|
|
16
|
-
[
|
|
13
|
+
[r.breakpoints.up("xs")]: {
|
|
17
14
|
marginBottom: 0
|
|
18
15
|
},
|
|
19
16
|
"& .PX-TopHeading": {
|
|
20
17
|
padding: "15px",
|
|
21
18
|
background: "#9964DD",
|
|
22
|
-
borderTopRightRadius:
|
|
23
|
-
borderTopLeftRadius:
|
|
19
|
+
borderTopRightRadius: r.borderRadius.value,
|
|
20
|
+
borderTopLeftRadius: r.borderRadius.value,
|
|
24
21
|
"& h5": {
|
|
25
22
|
margin: 0,
|
|
26
23
|
color: "#fff"
|
|
@@ -30,20 +27,20 @@ const ee = A(() => {
|
|
|
30
27
|
border: "1px solid #D1D1D1",
|
|
31
28
|
paddingBottom: "15px",
|
|
32
29
|
borderTop: "0",
|
|
33
|
-
borderBottomRightRadius:
|
|
34
|
-
borderBottomLeftRadius:
|
|
30
|
+
borderBottomRightRadius: r.borderRadius.value,
|
|
31
|
+
borderBottomLeftRadius: r.borderRadius.value,
|
|
35
32
|
"& .PX-InnerBox": {
|
|
36
33
|
padding: "15px",
|
|
37
34
|
borderTop: "0",
|
|
38
|
-
borderBottomRightRadius:
|
|
39
|
-
borderBottomLeftRadius:
|
|
35
|
+
borderBottomRightRadius: r.borderRadius.value,
|
|
36
|
+
borderBottomLeftRadius: r.borderRadius.value,
|
|
40
37
|
overflowY: "auto",
|
|
41
38
|
maxHeight: "700px",
|
|
42
39
|
"& .PX-CardWp": {
|
|
43
40
|
display: "flex",
|
|
44
41
|
border: "1px solid #E8E8E8",
|
|
45
42
|
padding: "10px",
|
|
46
|
-
borderRadius:
|
|
43
|
+
borderRadius: r.borderRadius.value,
|
|
47
44
|
marginBottom: "10px",
|
|
48
45
|
cursor: "pointer",
|
|
49
46
|
"& .PX-MediaWp": {
|
|
@@ -53,17 +50,17 @@ const ee = A(() => {
|
|
|
53
50
|
maxWidth: "160px",
|
|
54
51
|
maxHeight: "108px",
|
|
55
52
|
position: "relative",
|
|
56
|
-
[
|
|
53
|
+
[r.breakpoints.down("lg")]: {
|
|
57
54
|
minWidth: "90px",
|
|
58
55
|
marginRight: "10px",
|
|
59
56
|
maxWidth: "90px"
|
|
60
57
|
},
|
|
61
|
-
[
|
|
58
|
+
[r.breakpoints.down("em")]: {
|
|
62
59
|
minWidth: "150px",
|
|
63
60
|
marginRight: "10px",
|
|
64
61
|
maxWidth: "150px"
|
|
65
62
|
},
|
|
66
|
-
[
|
|
63
|
+
[r.breakpoints.down("em")]: {
|
|
67
64
|
minWidth: "90px",
|
|
68
65
|
marginRight: "10px",
|
|
69
66
|
maxWidth: "90px"
|
|
@@ -107,10 +104,10 @@ const ee = A(() => {
|
|
|
107
104
|
"& .readmoreCta": {
|
|
108
105
|
display: "inline-flex",
|
|
109
106
|
alignItems: "center",
|
|
110
|
-
color:
|
|
107
|
+
color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
|
|
111
108
|
textDecoration: "none",
|
|
112
109
|
"& h6": {
|
|
113
|
-
color:
|
|
110
|
+
color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
|
|
114
111
|
display: "inline-block",
|
|
115
112
|
margin: 0
|
|
116
113
|
},
|
|
@@ -126,19 +123,19 @@ const ee = A(() => {
|
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
125
|
};
|
|
129
|
-
}),
|
|
130
|
-
isVideoLandingPage:
|
|
131
|
-
data:
|
|
126
|
+
}), ie = ({
|
|
127
|
+
isVideoLandingPage: r,
|
|
128
|
+
data: w,
|
|
132
129
|
secondaryArgs: t,
|
|
133
130
|
filters: d,
|
|
134
|
-
relativePath:
|
|
131
|
+
relativePath: f
|
|
135
132
|
}) => {
|
|
136
|
-
const
|
|
137
|
-
var
|
|
138
|
-
const
|
|
139
|
-
typeof window < "u" && (d != null && d.onCardClick ? d == null || d.onCardClick({ id:
|
|
133
|
+
const X = t == null ? void 0 : t.platform, E = ee(), { t: v } = M(), { gcpUrl: c, bucketName: h } = t, [_, I] = Q([]), N = (e) => {
|
|
134
|
+
var u, l, s;
|
|
135
|
+
const a = (e == null ? void 0 : e.CurrentPageURL) || (e == null ? void 0 : e.current_page_url), p = ((u = e == null ? void 0 : e.content_type) == null ? void 0 : u.toLowerCase()) === "vod" ? "video" : "article";
|
|
136
|
+
typeof window < "u" && (d != null && d.onCardClick ? d == null || d.onCardClick({ id: a, type: p }) : f !== "" ? window.open(`/${f}/${p}${a}`) : (l = t == null ? void 0 : t.prelemBaseEndpoint) != null && l.language ? window.open(`/${(s = t == null ? void 0 : t.prelemBaseEndpoint) == null ? void 0 : s.language}/${p}${a}`) : window.open(`/${p}${a}`));
|
|
140
137
|
}, S = (e) => {
|
|
141
|
-
|
|
138
|
+
X !== "isAuthoring" && N(e);
|
|
142
139
|
}, $ = {
|
|
143
140
|
dotPosition: "outside",
|
|
144
141
|
arrows: !1,
|
|
@@ -150,9 +147,9 @@ const ee = A(() => {
|
|
|
150
147
|
xs: 1
|
|
151
148
|
}
|
|
152
149
|
}, P = () => {
|
|
153
|
-
const e =
|
|
150
|
+
const e = G(w, $.itemsPerRow);
|
|
154
151
|
e && I(e);
|
|
155
|
-
}, D =
|
|
152
|
+
}, D = J(P, 100);
|
|
156
153
|
Z(() => {
|
|
157
154
|
P();
|
|
158
155
|
const e = () => {
|
|
@@ -161,37 +158,37 @@ const ee = A(() => {
|
|
|
161
158
|
return window.addEventListener("resize", e), () => {
|
|
162
159
|
window.removeEventListener("resize", e);
|
|
163
160
|
};
|
|
164
|
-
}, [
|
|
161
|
+
}, [w]);
|
|
165
162
|
const b = (e) => {
|
|
166
|
-
e.target.src !==
|
|
163
|
+
e.target.src !== L && (e.target.onerror = null, e.target.src = L);
|
|
167
164
|
};
|
|
168
|
-
return /* @__PURE__ */ n
|
|
169
|
-
/* @__PURE__ */ o(
|
|
170
|
-
/* @__PURE__ */ o(
|
|
171
|
-
(e) => e == null ? void 0 : e.map((
|
|
172
|
-
var T,
|
|
173
|
-
const { original_image:
|
|
174
|
-
let C,
|
|
175
|
-
return ((T =
|
|
165
|
+
return /* @__PURE__ */ i(n, { className: `${E.recentCardsWrapper} recentCardsBg`, children: [
|
|
166
|
+
/* @__PURE__ */ o(n, { className: "PX-TopHeading", children: /* @__PURE__ */ o(x, { variant: "h5medium", children: v(r ? "related_videos" : "related_articles") }) }),
|
|
167
|
+
/* @__PURE__ */ o(n, { className: "PX-CardBox", children: /* @__PURE__ */ o(n, { className: "PX-InnerBox", children: _.map(
|
|
168
|
+
(e) => e == null ? void 0 : e.map((a, p) => {
|
|
169
|
+
var T, B;
|
|
170
|
+
const { original_image: u = {}, thumbnail: l } = a, { original_image_relative_path: s, ext: y } = u;
|
|
171
|
+
let C, m;
|
|
172
|
+
return ((T = a == null ? void 0 : a.content_type) == null ? void 0 : T.toLowerCase()) === "vod" ? (C = W(c, h, U(l)), m = W(c, h, l)) : (C = k(
|
|
176
173
|
c,
|
|
177
|
-
|
|
174
|
+
h,
|
|
178
175
|
s,
|
|
179
176
|
"webp"
|
|
180
|
-
),
|
|
177
|
+
), m = k(
|
|
181
178
|
c,
|
|
182
|
-
|
|
179
|
+
h,
|
|
183
180
|
s || l,
|
|
184
181
|
y
|
|
185
|
-
)), /* @__PURE__ */
|
|
186
|
-
|
|
182
|
+
)), /* @__PURE__ */ i(
|
|
183
|
+
n,
|
|
187
184
|
{
|
|
188
|
-
onClick: () => S(
|
|
185
|
+
onClick: () => S(a),
|
|
189
186
|
className: "PX-CardWp",
|
|
190
187
|
"data-testid": "enable-vod-play",
|
|
191
188
|
children: [
|
|
192
|
-
/* @__PURE__ */ n
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
|
|
189
|
+
/* @__PURE__ */ i(n, { className: "PX-MediaWp", children: [
|
|
190
|
+
/* @__PURE__ */ i(j, { component: "picture", children: [
|
|
191
|
+
F.map(({ breakpoint: g }, z) => /* @__PURE__ */ i(K.Fragment, { children: [
|
|
195
192
|
/* @__PURE__ */ o(
|
|
196
193
|
"source",
|
|
197
194
|
{
|
|
@@ -209,7 +206,7 @@ const ee = A(() => {
|
|
|
209
206
|
b(R);
|
|
210
207
|
},
|
|
211
208
|
media: `(min-width:${g}px)`,
|
|
212
|
-
srcSet:
|
|
209
|
+
srcSet: m
|
|
213
210
|
}
|
|
214
211
|
)
|
|
215
212
|
] }, z)),
|
|
@@ -218,7 +215,7 @@ const ee = A(() => {
|
|
|
218
215
|
{
|
|
219
216
|
loading: "lazy",
|
|
220
217
|
alt: "cropped-img",
|
|
221
|
-
src:
|
|
218
|
+
src: m,
|
|
222
219
|
onError: (g) => {
|
|
223
220
|
b(g);
|
|
224
221
|
},
|
|
@@ -226,19 +223,19 @@ const ee = A(() => {
|
|
|
226
223
|
}
|
|
227
224
|
)
|
|
228
225
|
] }),
|
|
229
|
-
((
|
|
226
|
+
((B = a == null ? void 0 : a.content_type) == null ? void 0 : B.toLowerCase()) === "vod" ? /* @__PURE__ */ o(n, { className: "PX-MidIcon", children: /* @__PURE__ */ o("img", { alt: "", src: V }) }) : (
|
|
230
227
|
// <Box className='PX-MidIcon'>
|
|
231
228
|
// <img alt='' src={ArticleIcon} />
|
|
232
229
|
// </Box>
|
|
233
230
|
null
|
|
234
231
|
)
|
|
235
232
|
] }),
|
|
236
|
-
/* @__PURE__ */ n
|
|
237
|
-
/* @__PURE__ */ o(x, { variant: "h7regular", children:
|
|
238
|
-
/* @__PURE__ */ o(x, { variant: "h6medium", className: "title", children:
|
|
239
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ i(n, { className: "PX-CardRightContent", children: [
|
|
234
|
+
/* @__PURE__ */ o(x, { variant: "h7regular", children: q((a == null ? void 0 : a.publishedDate) || (a == null ? void 0 : a.published_date)) }),
|
|
235
|
+
/* @__PURE__ */ o(x, { variant: "h6medium", className: "title", children: a == null ? void 0 : a.title }),
|
|
236
|
+
/* @__PURE__ */ i(O, { href: "", className: "readmoreCta", children: [
|
|
240
237
|
/* @__PURE__ */ o(x, { variant: "h6regular", children: "Read more" }),
|
|
241
|
-
/* @__PURE__ */ o(
|
|
238
|
+
/* @__PURE__ */ o(Y, {})
|
|
242
239
|
] })
|
|
243
240
|
] })
|
|
244
241
|
]
|
|
@@ -250,5 +247,5 @@ const ee = A(() => {
|
|
|
250
247
|
] });
|
|
251
248
|
};
|
|
252
249
|
export {
|
|
253
|
-
|
|
250
|
+
ie as default
|
|
254
251
|
};
|