@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.
Files changed (33) hide show
  1. package/ArticleVodListComponent-YtUMKTV-.mjs +28 -0
  2. package/{ChallengeDetailComponent-OIc_qbQ7.mjs → ChallengeDetailComponent-j278rJJS.mjs} +17 -20
  3. package/{CommonContentComponent-Dw7qN2UY.mjs → CommonContentComponent-_hdjGmme.mjs} +5 -7
  4. package/{DailyMotion-usIiQTBI.mjs → DailyMotion-k0P9b2sC.mjs} +2 -2
  5. package/{EngagementHomeComponent-DlxSKhZn.mjs → EngagementHomeComponent-DQFLt6If.mjs} +26 -29
  6. package/{EventDetailComponent-DyMc9Jpn.mjs → EventDetailComponent-BnDu80CK.mjs} +38 -41
  7. package/EventList-ql-92dgs.mjs +37721 -0
  8. package/{EventListComponent-BeSBR1e4.mjs → EventListComponent-Dy6XnpUL.mjs} +11 -14
  9. package/{Facebook-TD2Ez4MH.mjs → Facebook-VoE7NiL8.mjs} +2 -2
  10. package/{FilePlayer-Cvjl83nF.mjs → FilePlayer-DfU88hmO.mjs} +2 -2
  11. package/{Kaltura-afUVGHPF.mjs → Kaltura-Bu9eMAN_.mjs} +2 -2
  12. package/{Mixcloud-BTCM6aDR.mjs → Mixcloud-Co8pBsFF.mjs} +2 -2
  13. package/{Mux-eEaw5K6o.mjs → Mux-CQDLL49m.mjs} +2 -2
  14. package/{Preview-C7exPUsb.mjs → Preview-BchOEyWT.mjs} +1 -1
  15. package/{RecentCarousel-DQUR6FRm.mjs → RecentCarousel-B2MDJzK3.mjs} +57 -60
  16. package/Share-BQzXwAtU.mjs +1905 -0
  17. package/{SoundCloud-DXK23jJ4.mjs → SoundCloud-D29HmRwe.mjs} +2 -2
  18. package/{Streamable-DnGSi_Rr.mjs → Streamable-QMtcUAgf.mjs} +2 -2
  19. package/{Twitch-DXFvLORO.mjs → Twitch-B4LsE3Lz.mjs} +2 -2
  20. package/{Vidyard-DOxjZyIR.mjs → Vidyard-Cl-t0hI0.mjs} +2 -2
  21. package/{Vimeo-BVqFzd-a.mjs → Vimeo-BqWIdDq5.mjs} +2 -2
  22. package/{Wistia-C5MonHzH.mjs → Wistia-BHdOPrcK.mjs} +2 -2
  23. package/{YouTube-DI16ACXR.mjs → YouTube-Dlusrv1H.mjs} +2 -2
  24. package/index-BNSG2Kzk.mjs +18 -0
  25. package/index-CuGbAy3z.mjs +10360 -0
  26. package/index.mjs +3 -5
  27. package/{mutateApi-DzPMKCtv.mjs → mutateApi-DN4k_whx.mjs} +1 -1
  28. package/package.json +1 -14
  29. package/ArticleVodListComponent-BgaqfZOW.mjs +0 -31
  30. package/EventList-sMbbb46c.mjs +0 -206513
  31. package/Share-CEf4pdOM.mjs +0 -2243
  32. package/index-BF0Ks43y.mjs +0 -7443
  33. 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-sMbbb46c.mjs";
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-BF0Ks43y.mjs";
5
- import { m as b } from "./mutateApi-DzPMKCtv.mjs";
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 J = ({
11
- data: p,
12
- prelemAnalyticsProp: h,
13
- prelemAuthoringHelper: d,
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: p,
71
- analytics: h,
72
- authoringHelper: d,
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
- J as default
78
+ q as default
82
79
  };
@@ -1,6 +1,6 @@
1
- import { g as _ } from "./index-BF0Ks43y.mjs";
1
+ import { g as _ } from "./index-CuGbAy3z.mjs";
2
2
  import g from "react";
3
- import { u as P, p as m } from "./EventList-sMbbb46c.mjs";
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-BF0Ks43y.mjs";
1
+ import { g as b } from "./index-CuGbAy3z.mjs";
2
2
  import _ from "react";
3
- import { u as O, p as A } from "./EventList-sMbbb46c.mjs";
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-BF0Ks43y.mjs";
1
+ import { g as f } from "./index-CuGbAy3z.mjs";
2
2
  import y from "react";
3
- import { u as _, p as m } from "./EventList-sMbbb46c.mjs";
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-BF0Ks43y.mjs";
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-sMbbb46c.mjs";
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-BF0Ks43y.mjs";
1
+ import { g as P } from "./index-CuGbAy3z.mjs";
2
2
  import g from "react";
3
- import { p as E } from "./EventList-sMbbb46c.mjs";
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,4 +1,4 @@
1
- import { g as y } from "./index-BF0Ks43y.mjs";
1
+ import { g as y } from "./index-CuGbAy3z.mjs";
2
2
  import v from "react";
3
3
  function w(r, e) {
4
4
  for (var t = 0; t < e.length; t++) {
@@ -1,26 +1,23 @@
1
- import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import { e as H, g as M, h as k, r as U, i as B, j, k as F, l as V, m as q, n as O, o as X, q as Y } from "./EventList-sMbbb46c.mjs";
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 { makeStyles as A } from "@mui/styles";
6
- import "./index-BF0Ks43y.mjs";
4
+ import { u as A } from "./index-CuGbAy3z.mjs";
7
5
  import "react-dom";
8
- import "@mui/system";
9
- const ee = A(() => {
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
- [a.breakpoints.up("xs")]: {
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: a.borderRadius.value,
23
- borderTopLeftRadius: a.borderRadius.value,
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: a.borderRadius.value,
34
- borderBottomLeftRadius: a.borderRadius.value,
30
+ borderBottomRightRadius: r.borderRadius.value,
31
+ borderBottomLeftRadius: r.borderRadius.value,
35
32
  "& .PX-InnerBox": {
36
33
  padding: "15px",
37
34
  borderTop: "0",
38
- borderBottomRightRadius: a.borderRadius.value,
39
- borderBottomLeftRadius: a.borderRadius.value,
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: a.borderRadius.value,
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
- [a.breakpoints.down("lg")]: {
53
+ [r.breakpoints.down("lg")]: {
57
54
  minWidth: "90px",
58
55
  marginRight: "10px",
59
56
  maxWidth: "90px"
60
57
  },
61
- [a.breakpoints.down("em")]: {
58
+ [r.breakpoints.down("em")]: {
62
59
  minWidth: "150px",
63
60
  marginRight: "10px",
64
61
  maxWidth: "150px"
65
62
  },
66
- [a.breakpoints.down("em")]: {
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: a.palette.prelemType3.CARDS.VARIANT1.TITLE,
107
+ color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
111
108
  textDecoration: "none",
112
109
  "& h6": {
113
- color: a.palette.prelemType3.CARDS.VARIANT1.TITLE,
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
- }), le = ({
130
- isVideoLandingPage: a,
131
- data: f,
126
+ }), ie = ({
127
+ isVideoLandingPage: r,
128
+ data: w,
132
129
  secondaryArgs: t,
133
130
  filters: d,
134
- relativePath: w
131
+ relativePath: f
135
132
  }) => {
136
- const E = t == null ? void 0 : t.platform, L = ee(), { t: v } = M(), { gcpUrl: c, bucketName: m } = t, [_, I] = Q([]), N = (e) => {
137
- var h, l, s;
138
- const r = (e == null ? void 0 : e.CurrentPageURL) || (e == null ? void 0 : e.current_page_url), p = ((h = e == null ? void 0 : e.content_type) == null ? void 0 : h.toLowerCase()) === "vod" ? "video" : "article";
139
- typeof window < "u" && (d != null && d.onCardClick ? d == null || d.onCardClick({ id: r, type: p }) : w !== "" ? window.open(`/${w}/${p}${r}`) : (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}${r}`) : window.open(`/${p}${r}`));
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
- E !== "isAuthoring" && N(e);
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 = O(f, $.itemsPerRow);
150
+ const e = G(w, $.itemsPerRow);
154
151
  e && I(e);
155
- }, D = Y(P, 100);
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
- }, [f]);
161
+ }, [w]);
165
162
  const b = (e) => {
166
- e.target.src !== X && (e.target.onerror = null, e.target.src = X);
163
+ e.target.src !== L && (e.target.onerror = null, e.target.src = L);
167
164
  };
168
- return /* @__PURE__ */ n(i, { className: `${L.recentCardsWrapper} recentCardsBg`, children: [
169
- /* @__PURE__ */ o(i, { className: "PX-TopHeading", children: /* @__PURE__ */ o(x, { variant: "h5medium", children: v(a ? "related_videos" : "related_articles") }) }),
170
- /* @__PURE__ */ o(i, { className: "PX-CardBox", children: /* @__PURE__ */ o(i, { className: "PX-InnerBox", children: _.map(
171
- (e) => e == null ? void 0 : e.map((r, p) => {
172
- var T, W;
173
- const { original_image: h = {}, thumbnail: l } = r, { original_image_relative_path: s, ext: y } = h;
174
- let C, u;
175
- return ((T = r == null ? void 0 : r.content_type) == null ? void 0 : T.toLowerCase()) === "vod" ? (C = k(c, m, U(l)), u = k(c, m, l)) : (C = B(
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
- m,
174
+ h,
178
175
  s,
179
176
  "webp"
180
- ), u = B(
177
+ ), m = k(
181
178
  c,
182
- m,
179
+ h,
183
180
  s || l,
184
181
  y
185
- )), /* @__PURE__ */ n(
186
- i,
182
+ )), /* @__PURE__ */ i(
183
+ n,
187
184
  {
188
- onClick: () => S(r),
185
+ onClick: () => S(a),
189
186
  className: "PX-CardWp",
190
187
  "data-testid": "enable-vod-play",
191
188
  children: [
192
- /* @__PURE__ */ n(i, { className: "PX-MediaWp", children: [
193
- /* @__PURE__ */ n(G, { component: "picture", children: [
194
- j.map(({ breakpoint: g }, z) => /* @__PURE__ */ n(K.Fragment, { children: [
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: u
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: u,
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
- ((W = r == null ? void 0 : r.content_type) == null ? void 0 : W.toLowerCase()) === "vod" ? /* @__PURE__ */ o(i, { className: "PX-MidIcon", children: /* @__PURE__ */ o("img", { alt: "", src: F }) }) : (
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(i, { className: "PX-CardRightContent", children: [
237
- /* @__PURE__ */ o(x, { variant: "h7regular", children: V((r == null ? void 0 : r.publishedDate) || (r == null ? void 0 : r.published_date)) }),
238
- /* @__PURE__ */ o(x, { variant: "h6medium", className: "title", children: r == null ? void 0 : r.title }),
239
- /* @__PURE__ */ n(J, { href: "", className: "readmoreCta", children: [
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(q, {})
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
- le as default
250
+ ie as default
254
251
  };