@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.
Files changed (39) hide show
  1. package/ArticleVodListComponent-BKXBg22Y.mjs +36 -0
  2. package/ChallengeDetailComponent-Dv_LudnS.mjs +115 -0
  3. package/ChallengeSliderComponent-yvfp3ehJ.mjs +93 -0
  4. package/CommonContentComponent-CEHufGoM.mjs +86 -0
  5. package/{DailyMotion-C2VlhH9Y.mjs → DailyMotion-BVL2PnO4.mjs} +2 -2
  6. package/EngagementHomeComponent-CsvCgXwx.mjs +108 -0
  7. package/{EventDetailComponent-C0l-6HlH.mjs → EventDetailComponent-Cvlqw2tH.mjs} +52 -44
  8. package/{EventList-DgI0_QJW.mjs → EventList-CbAUuRYM.mjs} +106088 -98883
  9. package/{EventListComponent-DwjVwU3I.mjs → EventListComponent-BI2rzsKd.mjs} +42 -34
  10. package/{Facebook-DmTKxbCK.mjs → Facebook-CIgIth_K.mjs} +2 -2
  11. package/{FilePlayer-DiY6_vT0.mjs → FilePlayer-B-uogb5D.mjs} +2 -2
  12. package/{IndividualChallengeComponent-C-lVfSZv.mjs → IndividualChallengeComponent-Brw0d-4R.mjs} +67 -59
  13. package/{Kaltura-Bag_Zlwc.mjs → Kaltura-BOsL7fO-.mjs} +2 -2
  14. package/{Mixcloud-WiZy2FyG.mjs → Mixcloud-DHUTbpw0.mjs} +2 -2
  15. package/{Mux-DrcS2l-1.mjs → Mux-DK0X2BTT.mjs} +2 -2
  16. package/{Preview-CoFi5EhX.mjs → Preview-CIJ3xp_6.mjs} +1 -1
  17. package/RecentCarousel-BrE1qBvp.mjs +340 -0
  18. package/Share-DEEl5DxK.mjs +2265 -0
  19. package/{SoundCloud-ByJ8oSnI.mjs → SoundCloud-4PeOIDGR.mjs} +2 -2
  20. package/{Streamable-C8pAdR5o.mjs → Streamable-Ce9q7xrY.mjs} +2 -2
  21. package/{Twitch-PMc-awAS.mjs → Twitch-BQxxLIOM.mjs} +2 -2
  22. package/{Vidyard-0pshrd1n.mjs → Vidyard-smgMZHrX.mjs} +2 -2
  23. package/{Vimeo-AzJ5YTLV.mjs → Vimeo-Cq5Swu9L.mjs} +2 -2
  24. package/{Wistia-BuULozMf.mjs → Wistia-BlOpWmsf.mjs} +2 -2
  25. package/{YouTube-D54qTfpx.mjs → YouTube-CHNRVTxo.mjs} +2 -2
  26. package/{index-C5YsWuUC.mjs → index-CKbXg2l_.mjs} +4518 -3224
  27. package/{index-Bt-juHPR.mjs → index-kJrH8shi.mjs} +3 -3
  28. package/index.mjs +2 -2
  29. package/lib/utils/constants.d.ts +1 -0
  30. package/lib/utils/iframeKeycloak.d.ts +1 -2
  31. package/{mutateApi-D1KlLkuZ.mjs → mutateApi-D6lDkc9e.mjs} +1 -1
  32. package/package.json +1 -1
  33. package/ArticleVodListComponent-7KilfZC7.mjs +0 -28
  34. package/ChallengeDetailComponent-D0NyHxQj.mjs +0 -107
  35. package/ChallengeSliderComponent-B0aMw9x2.mjs +0 -85
  36. package/CommonContentComponent-V9GHupDi.mjs +0 -78
  37. package/EngagementHomeComponent-JYwLV-F5.mjs +0 -100
  38. package/RecentCarousel-DhbpnjP_.mjs +0 -245
  39. package/Share-C2mjVquE.mjs +0 -1905
@@ -0,0 +1,340 @@
1
+ import { u as I, j as o } from "./index-CKbXg2l_.mjs";
2
+ import { m as _, B as s, T as b, g as D, r as S, h as v, i as $, j as y, k as z, l as H, L as M, n as F, o as q, q as P, s as O } from "./EventList-CbAUuRYM.mjs";
3
+ import Y, { useState as G, useEffect as J } from "react";
4
+ import "react-dom";
5
+ import "react/jsx-runtime";
6
+ const K = _(() => {
7
+ const a = I();
8
+ return {
9
+ recentCardsWrapper: {
10
+ "&.recentCardsBg": {
11
+ width: "100%",
12
+ overflow: "hidden",
13
+ [a.breakpoints.up("xs")]: {
14
+ marginBottom: 0
15
+ },
16
+ "& .PX-TopHeading": {
17
+ padding: "15px",
18
+ background: "#9964DD",
19
+ borderTopRightRadius: a.borderRadius.value,
20
+ borderTopLeftRadius: a.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: a.borderRadius.value,
31
+ borderBottomLeftRadius: a.borderRadius.value,
32
+ "& .PX-InnerBox": {
33
+ padding: "15px",
34
+ borderTop: "0",
35
+ borderBottomRightRadius: a.borderRadius.value,
36
+ borderBottomLeftRadius: a.borderRadius.value,
37
+ overflowY: "auto",
38
+ maxHeight: "700px",
39
+ "& .PX-CardWp": {
40
+ display: "flex",
41
+ border: "1px solid #E8E8E8",
42
+ padding: "10px",
43
+ borderRadius: a.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
+ [a.breakpoints.down("lg")]: {
54
+ minWidth: "90px",
55
+ marginRight: "10px",
56
+ maxWidth: "90px"
57
+ },
58
+ [a.breakpoints.down("em")]: {
59
+ minWidth: "150px",
60
+ marginRight: "10px",
61
+ maxWidth: "150px"
62
+ },
63
+ [a.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: a.palette.prelemType3.CARDS.VARIANT1.TITLE,
108
+ textDecoration: "none",
109
+ "& h6": {
110
+ color: a.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: a, data: k, secondaryArgs: r, filters: l }) => {
127
+ const E = r == null ? void 0 : r.platform, X = K(), { gcpUrl: d, bucketName: p } = r, [w, U] = G([]), j = (e) => {
128
+ var c, t, m;
129
+ const n = (e == null ? void 0 : e.CurrentPageURL) || e.current_page_url, i = ((c = e == null ? void 0 : e.content_type) == null ? void 0 : c.toLowerCase()) === "vod" ? "video" : "article";
130
+ typeof window < "u" && (l != null && l.onCardClick ? l == null || l.onCardClick({ id: n, type: i }) : (t = r == null ? void 0 : r.prelemBaseEndpoint) != null && t.language ? window.open(`/${(m = r == null ? void 0 : r.prelemBaseEndpoint) == null ? void 0 : m.language}/${i}${n}`) : window.open(`/${i}${n}`));
131
+ }, V = (e) => {
132
+ E !== "isAuthoring" && j(e);
133
+ }, B = {
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
+ }, C = () => {
144
+ const e = q(k, B.itemsPerRow);
145
+ e && U(e);
146
+ }, T = O(C, 100);
147
+ J(() => {
148
+ C();
149
+ const e = () => {
150
+ T();
151
+ };
152
+ return window.addEventListener("resize", e), () => {
153
+ window.removeEventListener("resize", e);
154
+ };
155
+ }, [k]);
156
+ const f = (e) => {
157
+ e.target.src !== P && (e.target.onerror = null, e.target.src = P);
158
+ };
159
+ return /* @__PURE__ */ o.jsxDEV(s, { className: `${X.recentCardsWrapper} recentCardsBg`, children: [
160
+ /* @__PURE__ */ o.jsxDEV(s, { className: "PX-TopHeading", children: /* @__PURE__ */ o.jsxDEV(b, { variant: "h5medium", children: a ? "Related Videos" : "Related Articles" }, void 0, !1, {
161
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
162
+ lineNumber: 89,
163
+ columnNumber: 9
164
+ }, void 0) }, void 0, !1, {
165
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
166
+ lineNumber: 88,
167
+ columnNumber: 7
168
+ }, void 0),
169
+ /* @__PURE__ */ o.jsxDEV(s, { className: "PX-CardBox", children: /* @__PURE__ */ o.jsxDEV(s, { className: "PX-InnerBox", children: w.map(
170
+ (e) => e == null ? void 0 : e.map((n, i) => {
171
+ var N, g;
172
+ const { original_image: c = {}, thumbnail: t } = n, { original_image_relative_path: m, ext: W } = c;
173
+ let h, u;
174
+ return ((N = n == null ? void 0 : n.content_type) == null ? void 0 : N.toLowerCase()) === "vod" ? (h = D(d, p, S(t)), u = D(d, p, t)) : (h = v(
175
+ d,
176
+ p,
177
+ m,
178
+ "webp"
179
+ ), u = v(
180
+ d,
181
+ p,
182
+ m || t,
183
+ W
184
+ )), /* @__PURE__ */ o.jsxDEV(
185
+ s,
186
+ {
187
+ onClick: () => V(n),
188
+ className: "PX-CardWp",
189
+ "data-testid": "enable-vod-play",
190
+ children: [
191
+ /* @__PURE__ */ o.jsxDEV(s, { className: "PX-MediaWp", children: [
192
+ /* @__PURE__ */ o.jsxDEV($, { component: "picture", children: [
193
+ y.map(({ breakpoint: x }, L) => /* @__PURE__ */ o.jsxDEV(Y.Fragment, { children: [
194
+ /* @__PURE__ */ o.jsxDEV(
195
+ "source",
196
+ {
197
+ onError: (R) => {
198
+ f(R);
199
+ },
200
+ media: `(min-width:${x}px)`,
201
+ srcSet: h
202
+ },
203
+ void 0,
204
+ !1,
205
+ {
206
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
207
+ lineNumber: 128,
208
+ columnNumber: 29
209
+ },
210
+ void 0
211
+ ),
212
+ /* @__PURE__ */ o.jsxDEV(
213
+ "source",
214
+ {
215
+ onError: (R) => {
216
+ f(R);
217
+ },
218
+ media: `(min-width:${x}px)`,
219
+ srcSet: u
220
+ },
221
+ void 0,
222
+ !1,
223
+ {
224
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
225
+ lineNumber: 135,
226
+ columnNumber: 29
227
+ },
228
+ void 0
229
+ )
230
+ ] }, L, !0, {
231
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
232
+ lineNumber: 127,
233
+ columnNumber: 27
234
+ }, void 0)),
235
+ /* @__PURE__ */ o.jsxDEV(
236
+ "img",
237
+ {
238
+ loading: "lazy",
239
+ alt: "cropped-img",
240
+ src: u,
241
+ onError: (x) => {
242
+ f(x);
243
+ },
244
+ className: "PX-CardImage"
245
+ },
246
+ void 0,
247
+ !1,
248
+ {
249
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
250
+ lineNumber: 145,
251
+ columnNumber: 23
252
+ },
253
+ void 0
254
+ )
255
+ ] }, void 0, !0, {
256
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
257
+ lineNumber: 124,
258
+ columnNumber: 21
259
+ }, void 0),
260
+ ((g = n == null ? void 0 : n.content_type) == null ? void 0 : g.toLowerCase()) === "vod" ? /* @__PURE__ */ o.jsxDEV(s, { className: "PX-MidIcon", children: /* @__PURE__ */ o.jsxDEV("img", { alt: "", src: z }, void 0, !1, {
261
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
262
+ lineNumber: 157,
263
+ columnNumber: 25
264
+ }, void 0) }, void 0, !1, {
265
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
266
+ lineNumber: 156,
267
+ columnNumber: 23
268
+ }, void 0) : (
269
+ // <Box className='PX-MidIcon'>
270
+ // <img alt='' src={ArticleIcon} />
271
+ // </Box>
272
+ null
273
+ )
274
+ ] }, void 0, !0, {
275
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
276
+ lineNumber: 123,
277
+ columnNumber: 19
278
+ }, void 0),
279
+ /* @__PURE__ */ o.jsxDEV(s, { className: "PX-CardRightContent", children: [
280
+ /* @__PURE__ */ o.jsxDEV(b, { variant: "h7regular", children: H((n == null ? void 0 : n.publishedDate) || (n == null ? void 0 : n.published_date)) }, void 0, !1, {
281
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
282
+ lineNumber: 165,
283
+ columnNumber: 21
284
+ }, void 0),
285
+ /* @__PURE__ */ o.jsxDEV(b, { variant: "h6medium", className: "title", children: n == null ? void 0 : n.title }, void 0, !1, {
286
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
287
+ lineNumber: 168,
288
+ columnNumber: 21
289
+ }, void 0),
290
+ /* @__PURE__ */ o.jsxDEV(M, { href: "", className: "readmoreCta", children: [
291
+ /* @__PURE__ */ o.jsxDEV(b, { variant: "h6regular", children: "Read more" }, void 0, !1, {
292
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
293
+ lineNumber: 172,
294
+ columnNumber: 23
295
+ }, void 0),
296
+ /* @__PURE__ */ o.jsxDEV(F, {}, void 0, !1, {
297
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
298
+ lineNumber: 173,
299
+ columnNumber: 23
300
+ }, void 0)
301
+ ] }, void 0, !0, {
302
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
303
+ lineNumber: 171,
304
+ columnNumber: 21
305
+ }, void 0)
306
+ ] }, void 0, !0, {
307
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
308
+ lineNumber: 164,
309
+ columnNumber: 19
310
+ }, void 0)
311
+ ]
312
+ },
313
+ i,
314
+ !0,
315
+ {
316
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
317
+ lineNumber: 118,
318
+ columnNumber: 17
319
+ },
320
+ void 0
321
+ );
322
+ })
323
+ ) }, void 0, !1, {
324
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
325
+ lineNumber: 94,
326
+ columnNumber: 9
327
+ }, void 0) }, void 0, !1, {
328
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
329
+ lineNumber: 93,
330
+ columnNumber: 7
331
+ }, void 0)
332
+ ] }, void 0, !0, {
333
+ fileName: "/Users/manikandan.kanna/Desktop/PlatformX/platformx-mono-repo-nx/libs/hc-prelems/src/lib/components/RecentCarousel/RecentCarousel.tsx",
334
+ lineNumber: 87,
335
+ columnNumber: 5
336
+ }, void 0);
337
+ };
338
+ export {
339
+ oe as default
340
+ };