@platform-x/hcltechx-mfe-wrapper 1.0.30 → 1.0.32

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 (42) hide show
  1. package/{ArticleVodListComponent-rfJIaQla.mjs → ArticleVodListComponent-y5ZC-K8N.mjs} +2 -2
  2. package/{ChallengeDetailComponent-DWi4-Vye.mjs → ChallengeDetailComponent-Ccl-yC8I.mjs} +44 -44
  3. package/ChallengeSliderComponent-CZ992dWh.mjs +96 -0
  4. package/{CommonContentComponent-DiH2eh7m.mjs → CommonContentComponent-DC0AqqrX.mjs} +3 -3
  5. package/{DailyMotion-DqVz7WRg.mjs → DailyMotion-Blx1GErT.mjs} +4 -4
  6. package/EngagementHomeComponent-DOX5kur1.mjs +114 -0
  7. package/{EventDetailComponent-Dlv-vajD.mjs → EventDetailComponent-DOh41Jfw.mjs} +3 -3
  8. package/{EventListComponent-Bp-ocQyI.mjs → EventListComponent-DL11Vq8q.mjs} +25 -25
  9. package/ExperienceZone-C4mWycEw.mjs +86 -0
  10. package/{ExperienceZoneComponent-DigfDEcA.mjs → ExperienceZoneComponent-DJRNt2lQ.mjs} +17 -17
  11. package/{Facebook-5NjdZIZS.mjs → Facebook-CpbqLd66.mjs} +7 -7
  12. package/{FilePlayer-1xO7FAWu.mjs → FilePlayer-BGOp0DXQ.mjs} +5 -5
  13. package/IndividualChallengeComponent-CSvwg7u6.mjs +196 -0
  14. package/{Kaltura-Qf00P2Fj.mjs → Kaltura-C8slhZzV.mjs} +5 -5
  15. package/{Mixcloud-BCvfo2lN.mjs → Mixcloud-BOMYfvT_.mjs} +5 -5
  16. package/{Mux-BmAud9P2.mjs → Mux-DB7aeQVl.mjs} +2 -2
  17. package/PageComponent-CKYHKblz.mjs +73 -0
  18. package/{Preview-B69Gep9D.mjs → Preview-1H7JmNVr.mjs} +1 -1
  19. package/RecentCarousel-QbiBRQ_g.mjs +243 -0
  20. package/{Share-DHRrFg9E.mjs → Share-BCO0nej_.mjs} +2 -2
  21. package/{SoundCloud-C6m9N0iT.mjs → SoundCloud-BWt1QfLw.mjs} +4 -4
  22. package/{Streamable-lIw4WFDj.mjs → Streamable-KhANYmoI.mjs} +7 -7
  23. package/{ToggleButton-qqI-N7vl.mjs → ToggleButton-Ckaqkycd.mjs} +82248 -80430
  24. package/{Twitch-D0-ZYeec.mjs → Twitch-D0U9O0cv.mjs} +6 -6
  25. package/{Vidyard-Z5q25F-x.mjs → Vidyard-d7EDUuD8.mjs} +11 -11
  26. package/{Vimeo-Dnhza8bp.mjs → Vimeo-BDMUc8SW.mjs} +2 -2
  27. package/{Wistia-CZueDcOL.mjs → Wistia-D5xJrTK7.mjs} +2 -2
  28. package/{YouTube-C4bqVnwR.mjs → YouTube-oKErF6Ye.mjs} +7 -7
  29. package/{index-D5u1jg6A.mjs → index-CEZYrT6K.mjs} +6 -6
  30. package/{index-nEuOAhnp.mjs → index-KlOvgf9W.mjs} +703 -674
  31. package/index.mjs +1 -1
  32. package/lib/Pages/PrelemBuilder.d.ts +2 -1
  33. package/lib/services/fetchQueries.d.ts +2 -2
  34. package/{mutateApi-BCq97zCv.mjs → mutateApi-COICutgy.mjs} +1 -1
  35. package/package.json +1 -1
  36. package/style.css +1 -1
  37. package/ChallengeSliderComponent-DjxTAW25.mjs +0 -85
  38. package/EngagementHomeComponent-CCQXJTDI.mjs +0 -112
  39. package/ExperienceZone-BvqGBh_n.mjs +0 -89
  40. package/IndividualChallengeComponent-BUKejN6Y.mjs +0 -191
  41. package/PageComponent-CUXkbfOH.mjs +0 -64
  42. package/RecentCarousel-BFwZefp_.mjs +0 -245
@@ -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, 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-qqI-N7vl.mjs";
3
- import q, { useState as O, useEffect as Y } from "react";
4
- import { o as G } from "./index-nEuOAhnp.mjs";
5
- import "react-dom";
6
- const J = y(() => {
7
- const r = G();
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: r.palette.prelemType2.ACCENTS.VARIANT6.TITLE,
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
- }), 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
- 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
- }, L = (e) => {
132
- E !== "isAuthoring" && v(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
- }, f = () => {
144
- const e = j(w, _.itemsPerRow);
145
- e && X(e);
146
- }, S = A(f, 100);
147
- Y(() => {
148
- f();
149
- const e = () => {
150
- S();
151
- };
152
- return window.addEventListener("resize", e), () => {
153
- window.removeEventListener("resize", e);
154
- };
155
- }, [w]);
156
- const b = (e) => {
157
- e.target.src !== k && (e.target.onerror = null, e.target.src = k);
158
- };
159
- return /* @__PURE__ */ n(i, { className: `${I.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: N.map(
162
- (e) => e == null ? void 0 : e.map((a, l) => {
163
- var T, P;
164
- const { original_image: m = {}, thumbnail: p } = a, { original_image_relative_path: s, ext: D } = m;
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
- c,
168
- h,
169
- s,
170
- "webp"
171
- ), u = W(
172
- c,
173
- h,
174
- s || p,
175
- D
176
- )), /* @__PURE__ */ n(
177
- i,
178
- {
179
- onClick: () => L(a),
180
- className: "PX-CardWp",
181
- "data-testid": "enable-vod-play",
182
- children: [
183
- /* @__PURE__ */ n(i, { className: "PX-MediaWp", children: [
184
- /* @__PURE__ */ n(z, { component: "picture", children: [
185
- H.map(({ breakpoint: g }, $) => /* @__PURE__ */ n(q.Fragment, { children: [
186
- /* @__PURE__ */ o(
187
- "source",
188
- {
189
- onError: (R) => {
190
- b(R);
191
- },
192
- media: `(min-width:${g}px)`,
193
- srcSet: C
194
- }
195
- ),
196
- /* @__PURE__ */ o(
197
- "source",
198
- {
199
- onError: (R) => {
200
- b(R);
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: M }) }) : (
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: U((a == null ? void 0 : a.publishedDate) || (a == null ? void 0 : a.published_date)) }),
229
- /* @__PURE__ */ o(x, { variant: "h6bold", className: "title", children: a == null ? void 0 : a.title }),
230
- /* @__PURE__ */ n(i, { onClick: () => v(a), className: "readmoreCta", children: [
231
- /* @__PURE__ */ o(x, { variant: "h6regular", children: "Read more" }),
232
- /* @__PURE__ */ o(F, {})
233
- ] })
234
- ] })
235
- ]
236
- },
237
- l
238
- );
239
- })
240
- ) }) })
241
- ] });
242
- };
243
- export {
244
- re as default
245
- };