@platform-x/hcltechx-mfe-wrapper 1.0.9 → 1.0.11
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-Dx9kz089.mjs → ArticleVodListComponent-55Amw117.mjs} +2 -2
- package/{ChallengeDetailComponent-CDYW67Kx.mjs → ChallengeDetailComponent-CFgNIy40.mjs} +5 -5
- package/ChallengeSliderComponent-DxywQ1Yw.mjs +85 -0
- package/{CommonContentComponent-BoHOhCUz.mjs → CommonContentComponent-CZ4R-bl5.mjs} +3 -3
- package/{DailyMotion-BIA7SEEW.mjs → DailyMotion-SSHst39J.mjs} +2 -2
- package/EngagementHomeComponent-DV2T5lXk.mjs +100 -0
- package/{EventDetailComponent-BE6pxr9g.mjs → EventDetailComponent--tfRa3kB.mjs} +5 -5
- package/EventList-BgAnQPsa.mjs +38484 -0
- package/{EventListComponent-COx6Zawh.mjs → EventListComponent-DafPg6Gl.mjs} +11 -11
- package/{Facebook-CqEtMlPA.mjs → Facebook-BW-swjny.mjs} +2 -2
- package/{FilePlayer-CjXiDXa3.mjs → FilePlayer-F1fTGtr4.mjs} +2 -2
- package/{IndividualChallengeComponent-Bfm95wog.mjs → IndividualChallengeComponent-DtonJm0x.mjs} +7 -7
- package/{Kaltura-Cg97C5rG.mjs → Kaltura-DFDmKzKV.mjs} +2 -2
- package/{Mixcloud-DAVEJXxZ.mjs → Mixcloud-C26C0LJN.mjs} +2 -2
- package/{Mux-BiP0byEL.mjs → Mux-D4AN7rCD.mjs} +2 -2
- package/{Preview-I1Ruptf5.mjs → Preview-J16z8kBH.mjs} +1 -1
- package/{RecentCarousel-mJDu3ayE.mjs → RecentCarousel-091dBxgP.mjs} +55 -61
- package/{Share-B5_YqtYZ.mjs → Share-CpUL9IEm.mjs} +484 -484
- package/{SoundCloud-D8kg6Ps6.mjs → SoundCloud-NgtcEElL.mjs} +2 -2
- package/{Streamable-BuTsGK-o.mjs → Streamable-BcHnyLZJ.mjs} +2 -2
- package/{Twitch-BjkSTgPl.mjs → Twitch-9_6JM-Q5.mjs} +2 -2
- package/{Vidyard-DXwWx_I_.mjs → Vidyard-DBy4Ixeu.mjs} +2 -2
- package/{Vimeo-Dwl4LnJ3.mjs → Vimeo-DFCi-vSX.mjs} +2 -2
- package/{Wistia-adA1p0Vn.mjs → Wistia-emX1iUcE.mjs} +2 -2
- package/{YouTube-QRUCVNDZ.mjs → YouTube-DIq2uWeq.mjs} +2 -2
- package/index-AEiKTTFl.mjs +19 -0
- package/{index-D-3VZIx9.mjs → index-CIVj8pjz.mjs} +3435 -5207
- package/index.d.ts +0 -1
- package/index.mjs +2 -3
- package/lib/prelems/Components/ChallengeSliderComponent.d.ts +2 -0
- package/lib/utils/SsoLogin.d.ts +2 -0
- package/lib/utils/componentMapping.d.ts +1 -0
- package/lib/utils/iframeKeycloak.d.ts +5 -0
- package/{mutateApi-xRWUHOcL.mjs → mutateApi-dFWYRnAs.mjs} +18 -12
- package/package.json +1 -1
- package/EngagementHomeComponent-D3hT_Mb4.mjs +0 -97
- package/EventList-D2yqGf8I.mjs +0 -37751
- package/index-CsJ4J_3O.mjs +0 -18
- /package/lib/utils/{MfeLogin.d.ts → old-SsoLogin.d.ts} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { e as v } from "./EventList-BgAnQPsa.mjs";
|
|
3
3
|
import { useState as g, useEffect as A } from "react";
|
|
4
|
-
import { s as r,
|
|
5
|
-
import {
|
|
4
|
+
import { s as r, m as k, a as L } from "./mutateApi-dFWYRnAs.mjs";
|
|
5
|
+
import { f as b } from "./index-CIVj8pjz.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const q = ({
|
|
8
8
|
data: h,
|
|
9
|
-
prelemAnalyticsProp:
|
|
10
|
-
prelemAuthoringHelper:
|
|
9
|
+
prelemAnalyticsProp: p,
|
|
10
|
+
prelemAuthoringHelper: P,
|
|
11
11
|
secondaryArgs: c,
|
|
12
|
-
userId:
|
|
12
|
+
userId: d,
|
|
13
13
|
filters: y,
|
|
14
14
|
relativePath: S
|
|
15
15
|
}) => {
|
|
16
16
|
const [w, D] = g({}), [E, m] = g(!1), {
|
|
17
17
|
prelemBaseEndpoint: { language: f, site_host: u }
|
|
18
|
-
} = c, n = localStorage.getItem("userId") ||
|
|
18
|
+
} = c, n = localStorage.getItem("userId") || d, I = async (l, t, i) => {
|
|
19
19
|
var s, o;
|
|
20
20
|
if (!n) {
|
|
21
21
|
r("User ID is not available. Please log in.");
|
|
@@ -25,7 +25,7 @@ const q = ({
|
|
|
25
25
|
const e = {
|
|
26
26
|
input: { activity_type: i, target: l.toString(), action: t },
|
|
27
27
|
user_id: n
|
|
28
|
-
}, a = await
|
|
28
|
+
}, a = await k.setPersonalGoal(e, f, u);
|
|
29
29
|
((o = (s = a == null ? void 0 : a.data) == null ? void 0 : s.community_setPersonalGoal) == null ? void 0 : o.message) === "Created Successfully!!!" && t === "goal" ? L("Goal updated successfully!") : t !== "entry" && r("Something went wrong, please try after sometime !");
|
|
30
30
|
} catch (e) {
|
|
31
31
|
console.error("Error in update goal API:", e), r("Something went wrong, please try after sometime !");
|
|
@@ -41,7 +41,7 @@ const q = ({
|
|
|
41
41
|
const o = {
|
|
42
42
|
date: "",
|
|
43
43
|
user_id: n
|
|
44
|
-
}, e = await
|
|
44
|
+
}, e = await b.fetchPersonalTracker(o, f, u);
|
|
45
45
|
if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
|
|
46
46
|
r((t = e == null ? void 0 : e.errors[0]) == null ? void 0 : t.message);
|
|
47
47
|
else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
|
|
@@ -65,8 +65,8 @@ const q = ({
|
|
|
65
65
|
v,
|
|
66
66
|
{
|
|
67
67
|
content: h,
|
|
68
|
-
analytics:
|
|
69
|
-
authoringHelper:
|
|
68
|
+
analytics: p,
|
|
69
|
+
authoringHelper: P,
|
|
70
70
|
secondaryArgs: c,
|
|
71
71
|
stepsDetails: G,
|
|
72
72
|
filters: y,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as _ } from "./index-
|
|
1
|
+
import { g as _ } from "./index-CIVj8pjz.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-BgAnQPsa.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-CIVj8pjz.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-BgAnQPsa.mjs";
|
|
4
4
|
function R(s, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
package/{IndividualChallengeComponent-Bfm95wog.mjs → IndividualChallengeComponent-DtonJm0x.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as W } from "react/jsx-runtime";
|
|
2
|
-
import { I as X } from "./EventList-
|
|
2
|
+
import { I as X } from "./EventList-BgAnQPsa.mjs";
|
|
3
3
|
import { useState as m, useEffect as Y } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { s as g, m as S, a as C } from "./mutateApi-dFWYRnAs.mjs";
|
|
5
|
+
import { f as y } from "./index-CIVj8pjz.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const te = (q) => {
|
|
8
8
|
const {
|
|
@@ -22,8 +22,8 @@ const te = (q) => {
|
|
|
22
22
|
...i,
|
|
23
23
|
userId: d
|
|
24
24
|
}
|
|
25
|
-
}, c = await
|
|
26
|
-
((o = c == null ? void 0 : c.errors) == null ? void 0 : o.length) > 0 ? g((n = c == null ? void 0 : c.errors[0]) == null ? void 0 : n.message) : (t = (s = c == null ? void 0 : c.data) == null ? void 0 : s.community_joinChallenge) != null && t.id ? (
|
|
25
|
+
}, c = await S.joinChallenge(a, f, h);
|
|
26
|
+
((o = c == null ? void 0 : c.errors) == null ? void 0 : o.length) > 0 ? g((n = c == null ? void 0 : c.errors[0]) == null ? void 0 : n.message) : (t = (s = c == null ? void 0 : c.data) == null ? void 0 : s.community_joinChallenge) != null && t.id ? (C((e = (r = c == null ? void 0 : c.data) == null ? void 0 : r.community_joinChallenge) == null ? void 0 : e.message), P(!0), A()) : console.error("Join Challenge API failed");
|
|
27
27
|
} catch (a) {
|
|
28
28
|
console.error("Error in Join Challenge API:", a);
|
|
29
29
|
} finally {
|
|
@@ -98,8 +98,8 @@ const te = (q) => {
|
|
|
98
98
|
try {
|
|
99
99
|
const s = {
|
|
100
100
|
input: i
|
|
101
|
-
}, t = await
|
|
102
|
-
((n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.community_setupChallenge) == null ? void 0 : n.message) === "challenge has been setUp successfully" ?
|
|
101
|
+
}, t = await S.setUpChallenge(s, f, h);
|
|
102
|
+
((n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.community_setupChallenge) == null ? void 0 : n.message) === "challenge has been setUp successfully" ? C("Challenge has been setup successfully!") : g("Something went wrong, please try after sometime !");
|
|
103
103
|
} catch (s) {
|
|
104
104
|
console.error("Error in update goal API:", s), g("Something went wrong, please try after sometime !");
|
|
105
105
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as f } from "./index-
|
|
1
|
+
import { g as f } from "./index-CIVj8pjz.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-BgAnQPsa.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-CIVj8pjz.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-BgAnQPsa.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-CIVj8pjz.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { p as E } from "./EventList-
|
|
3
|
+
import { p as E } from "./EventList-BgAnQPsa.mjs";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { m as
|
|
3
|
-
import
|
|
4
|
-
import { u as
|
|
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-BgAnQPsa.mjs";
|
|
3
|
+
import Y, { useState as G, useEffect as J } from "react";
|
|
4
|
+
import { u as K } from "./index-CIVj8pjz.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
7
|
-
const r =
|
|
6
|
+
const Q = y(() => {
|
|
7
|
+
const r = K();
|
|
8
8
|
return {
|
|
9
9
|
recentCardsWrapper: {
|
|
10
10
|
"&.recentCardsBg": {
|
|
@@ -123,20 +123,14 @@ const ee = H(() => {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
|
-
}),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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}`));
|
|
137
|
-
}, S = (e) => {
|
|
138
|
-
X !== "isAuthoring" && N(e);
|
|
139
|
-
}, $ = {
|
|
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
|
+
}, _ = {
|
|
140
134
|
dotPosition: "outside",
|
|
141
135
|
arrows: !1,
|
|
142
136
|
animationType: "slideIn",
|
|
@@ -146,76 +140,76 @@ const ee = H(() => {
|
|
|
146
140
|
sm: 2,
|
|
147
141
|
xs: 1
|
|
148
142
|
}
|
|
149
|
-
},
|
|
150
|
-
const e =
|
|
151
|
-
e &&
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
|
|
143
|
+
}, w = () => {
|
|
144
|
+
const e = q(f, _.itemsPerRow);
|
|
145
|
+
e && E(e);
|
|
146
|
+
}, S = O(w, 100);
|
|
147
|
+
J(() => {
|
|
148
|
+
w();
|
|
155
149
|
const e = () => {
|
|
156
|
-
|
|
150
|
+
S();
|
|
157
151
|
};
|
|
158
152
|
return window.addEventListener("resize", e), () => {
|
|
159
153
|
window.removeEventListener("resize", e);
|
|
160
154
|
};
|
|
161
|
-
}, [
|
|
155
|
+
}, [f]);
|
|
162
156
|
const b = (e) => {
|
|
163
|
-
e.target.src !==
|
|
157
|
+
e.target.src !== W && (e.target.onerror = null, e.target.src = W);
|
|
164
158
|
};
|
|
165
|
-
return /* @__PURE__ */ i
|
|
166
|
-
/* @__PURE__ */ o(
|
|
167
|
-
/* @__PURE__ */ o(
|
|
168
|
-
(e) => e == null ? void 0 : e.map((a,
|
|
169
|
-
var
|
|
170
|
-
const { original_image:
|
|
171
|
-
let
|
|
172
|
-
return ((
|
|
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(
|
|
173
167
|
c,
|
|
174
168
|
h,
|
|
175
169
|
s,
|
|
176
170
|
"webp"
|
|
177
|
-
),
|
|
171
|
+
), u = T(
|
|
178
172
|
c,
|
|
179
173
|
h,
|
|
180
|
-
s ||
|
|
181
|
-
|
|
182
|
-
)), /* @__PURE__ */
|
|
183
|
-
|
|
174
|
+
s || p,
|
|
175
|
+
D
|
|
176
|
+
)), /* @__PURE__ */ n(
|
|
177
|
+
i,
|
|
184
178
|
{
|
|
185
|
-
onClick: () =>
|
|
179
|
+
onClick: () => N(a),
|
|
186
180
|
className: "PX-CardWp",
|
|
187
181
|
"data-testid": "enable-vod-play",
|
|
188
182
|
children: [
|
|
189
|
-
/* @__PURE__ */ i
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
|
|
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: [
|
|
192
186
|
/* @__PURE__ */ o(
|
|
193
187
|
"source",
|
|
194
188
|
{
|
|
195
|
-
onError: (
|
|
196
|
-
b(
|
|
189
|
+
onError: (C) => {
|
|
190
|
+
b(C);
|
|
197
191
|
},
|
|
198
192
|
media: `(min-width:${g}px)`,
|
|
199
|
-
srcSet:
|
|
193
|
+
srcSet: R
|
|
200
194
|
}
|
|
201
195
|
),
|
|
202
196
|
/* @__PURE__ */ o(
|
|
203
197
|
"source",
|
|
204
198
|
{
|
|
205
|
-
onError: (
|
|
206
|
-
b(
|
|
199
|
+
onError: (C) => {
|
|
200
|
+
b(C);
|
|
207
201
|
},
|
|
208
202
|
media: `(min-width:${g}px)`,
|
|
209
|
-
srcSet:
|
|
203
|
+
srcSet: u
|
|
210
204
|
}
|
|
211
205
|
)
|
|
212
|
-
] },
|
|
206
|
+
] }, $)),
|
|
213
207
|
/* @__PURE__ */ o(
|
|
214
208
|
"img",
|
|
215
209
|
{
|
|
216
210
|
loading: "lazy",
|
|
217
211
|
alt: "cropped-img",
|
|
218
|
-
src:
|
|
212
|
+
src: u,
|
|
219
213
|
onError: (g) => {
|
|
220
214
|
b(g);
|
|
221
215
|
},
|
|
@@ -223,29 +217,29 @@ const ee = H(() => {
|
|
|
223
217
|
}
|
|
224
218
|
)
|
|
225
219
|
] }),
|
|
226
|
-
((
|
|
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 }) }) : (
|
|
227
221
|
// <Box className='PX-MidIcon'>
|
|
228
222
|
// <img alt='' src={ArticleIcon} />
|
|
229
223
|
// </Box>
|
|
230
224
|
null
|
|
231
225
|
)
|
|
232
226
|
] }),
|
|
233
|
-
/* @__PURE__ */ i
|
|
234
|
-
/* @__PURE__ */ o(x, { variant: "h7regular", children:
|
|
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)) }),
|
|
235
229
|
/* @__PURE__ */ o(x, { variant: "h6medium", className: "title", children: a == null ? void 0 : a.title }),
|
|
236
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ n(F, { href: "", className: "readmoreCta", children: [
|
|
237
231
|
/* @__PURE__ */ o(x, { variant: "h6regular", children: "Read more" }),
|
|
238
|
-
/* @__PURE__ */ o(
|
|
232
|
+
/* @__PURE__ */ o(V, {})
|
|
239
233
|
] })
|
|
240
234
|
] })
|
|
241
235
|
]
|
|
242
236
|
},
|
|
243
|
-
|
|
237
|
+
l
|
|
244
238
|
);
|
|
245
239
|
})
|
|
246
240
|
) }) })
|
|
247
241
|
] });
|
|
248
242
|
};
|
|
249
243
|
export {
|
|
250
|
-
|
|
244
|
+
oe as default
|
|
251
245
|
};
|