@platform-x/hcltechx-mfe-wrapper 1.0.13 → 1.0.14
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-BKXBg22Y.mjs +36 -0
- package/ChallengeDetailComponent-Dv_LudnS.mjs +115 -0
- package/ChallengeSliderComponent-yvfp3ehJ.mjs +93 -0
- package/CommonContentComponent-CEHufGoM.mjs +86 -0
- package/{DailyMotion-C2VlhH9Y.mjs → DailyMotion-BVL2PnO4.mjs} +2 -2
- package/EngagementHomeComponent-CsvCgXwx.mjs +108 -0
- package/{EventDetailComponent-C0l-6HlH.mjs → EventDetailComponent-Cvlqw2tH.mjs} +52 -44
- package/{EventList-DgI0_QJW.mjs → EventList-CbAUuRYM.mjs} +106088 -98883
- package/{EventListComponent-DwjVwU3I.mjs → EventListComponent-BI2rzsKd.mjs} +42 -34
- package/{Facebook-DmTKxbCK.mjs → Facebook-CIgIth_K.mjs} +2 -2
- package/{FilePlayer-DiY6_vT0.mjs → FilePlayer-B-uogb5D.mjs} +2 -2
- package/{IndividualChallengeComponent-C-lVfSZv.mjs → IndividualChallengeComponent-Brw0d-4R.mjs} +67 -59
- package/{Kaltura-Bag_Zlwc.mjs → Kaltura-BOsL7fO-.mjs} +2 -2
- package/{Mixcloud-WiZy2FyG.mjs → Mixcloud-DHUTbpw0.mjs} +2 -2
- package/{Mux-DrcS2l-1.mjs → Mux-DK0X2BTT.mjs} +2 -2
- package/{Preview-CoFi5EhX.mjs → Preview-CIJ3xp_6.mjs} +1 -1
- package/RecentCarousel-BrE1qBvp.mjs +340 -0
- package/Share-DEEl5DxK.mjs +2265 -0
- package/{SoundCloud-ByJ8oSnI.mjs → SoundCloud-4PeOIDGR.mjs} +2 -2
- package/{Streamable-C8pAdR5o.mjs → Streamable-Ce9q7xrY.mjs} +2 -2
- package/{Twitch-PMc-awAS.mjs → Twitch-BQxxLIOM.mjs} +2 -2
- package/{Vidyard-0pshrd1n.mjs → Vidyard-smgMZHrX.mjs} +2 -2
- package/{Vimeo-AzJ5YTLV.mjs → Vimeo-Cq5Swu9L.mjs} +2 -2
- package/{Wistia-BuULozMf.mjs → Wistia-BlOpWmsf.mjs} +2 -2
- package/{YouTube-D54qTfpx.mjs → YouTube-CHNRVTxo.mjs} +2 -2
- package/{index-C5YsWuUC.mjs → index-CKbXg2l_.mjs} +4518 -3224
- package/{index-Bt-juHPR.mjs → index-kJrH8shi.mjs} +3 -3
- package/index.mjs +2 -2
- package/lib/utils/constants.d.ts +1 -0
- package/lib/utils/iframeKeycloak.d.ts +1 -2
- package/{mutateApi-D1KlLkuZ.mjs → mutateApi-D6lDkc9e.mjs} +1 -1
- package/package.json +1 -1
- package/ArticleVodListComponent-7KilfZC7.mjs +0 -28
- package/ChallengeDetailComponent-D0NyHxQj.mjs +0 -107
- package/ChallengeSliderComponent-B0aMw9x2.mjs +0 -85
- package/CommonContentComponent-V9GHupDi.mjs +0 -78
- package/EngagementHomeComponent-JYwLV-F5.mjs +0 -100
- package/RecentCarousel-DhbpnjP_.mjs +0 -245
- package/Share-C2mjVquE.mjs +0 -1905
|
@@ -1,245 +0,0 @@
|
|
|
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-DgI0_QJW.mjs";
|
|
3
|
-
import Y, { useState as G, useEffect as J } from "react";
|
|
4
|
-
import { u as K } from "./index-C5YsWuUC.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
|
-
};
|