@platform-x/hcltechx-mfe-wrapper 1.0.22 → 1.0.24
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-DnI80nGq.mjs → ArticleVodListComponent-DkbGy3Wc.mjs} +2 -2
- package/{ChallengeDetailComponent-BQOqyQe4.mjs → ChallengeDetailComponent-Pc2_Aw9I.mjs} +3 -3
- package/{ChallengeSliderComponent-DVyhqNVQ.mjs → ChallengeSliderComponent-BjxrdqBd.mjs} +3 -3
- package/{CommonContentComponent-Hnb8Xr5I.mjs → CommonContentComponent-DNQI6NJF.mjs} +3 -3
- package/{DailyMotion-BttO0I0C.mjs → DailyMotion-8B4cvcVv.mjs} +2 -2
- package/{EngagementHomeComponent-LYRrGICV.mjs → EngagementHomeComponent-Qb3waGpQ.mjs} +3 -3
- package/{EventDetailComponent-BlbyfC5O.mjs → EventDetailComponent-DTW7unP8.mjs} +3 -3
- package/{EventListComponent-B39xrxgu.mjs → EventListComponent-C6NFNOze.mjs} +3 -3
- package/{ExperienceZone-Bhkjbth9.mjs → ExperienceZone-Bp-Xon24.mjs} +1 -1
- package/{ExperienceZoneComponent-F16DcM9H.mjs → ExperienceZoneComponent-CxKSdzrH.mjs} +3 -3
- package/{Facebook-BhbZsSMB.mjs → Facebook-BdIZXGWl.mjs} +2 -2
- package/{FilePlayer-DBOphwby.mjs → FilePlayer-BHwe7FZg.mjs} +2 -2
- package/{IndividualChallengeComponent-BJ5RfzMH.mjs → IndividualChallengeComponent-CVsFnQPq.mjs} +75 -74
- package/{Kaltura-DkAlATL_.mjs → Kaltura-Bk1XDyXw.mjs} +2 -2
- package/{Mixcloud-CguOqMm8.mjs → Mixcloud-Kph0QnWe.mjs} +2 -2
- package/{Mux-D6PeF7j6.mjs → Mux-B-Nj4IFf.mjs} +2 -2
- package/{PageComponent-CLrj-Wc_.mjs → PageComponent-DTsnVPaa.mjs} +2 -2
- package/{Preview-9xbWxXDK.mjs → Preview-DwRKEzNK.mjs} +1 -1
- package/{RecentCarousel-D6dx6TIr.mjs → RecentCarousel-BPxYxo09.mjs} +10 -10
- package/{Share-DQnAo1oF.mjs → Share-0yC9e6ib.mjs} +2 -2
- package/{SoundCloud-CZ-yrJeU.mjs → SoundCloud-ABFukQCT.mjs} +2 -2
- package/{Streamable-CnJYyZu0.mjs → Streamable-5hqRaqh1.mjs} +2 -2
- package/{ToggleButton-8IOlYjrU.mjs → ToggleButton-6CARfcVK.mjs} +27077 -26512
- package/{Twitch-DvDm30_Y.mjs → Twitch-CdClhhHz.mjs} +2 -2
- package/{Vidyard-CxuW7iGh.mjs → Vidyard-B4MhDkIe.mjs} +2 -2
- package/{Vimeo-BkQKIRE4.mjs → Vimeo-DUSHSoU8.mjs} +2 -2
- package/{Wistia-CQeoZyhr.mjs → Wistia-zJSeJQn1.mjs} +2 -2
- package/{YouTube-DOOQlFVu.mjs → YouTube-BT-8zpKI.mjs} +2 -2
- package/{index-BPqB2yy1.mjs → index-D2KybMHq.mjs} +12 -10
- package/{index-BQE4JEea.mjs → index-DuNiGygF.mjs} +3 -3
- package/index.mjs +1 -1
- package/lib/services/fetchQueries.d.ts +1 -1
- package/{mutateApi-BcmEMqEd.mjs → mutateApi-BR6xF6-j.mjs} +1 -1
- package/package.json +5 -1
- package/style.css +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { A as p } from "./ToggleButton-
|
|
2
|
+
import { A as p } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-D2KybMHq.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const f = ({
|
|
7
7
|
data: t,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
|
-
import { b as K } from "./ToggleButton-
|
|
2
|
+
import { b as K } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
3
|
import { useState as f, useEffect as M } from "react";
|
|
4
|
-
import { s as a, f as u } from "./index-
|
|
5
|
-
import { m as N } from "./mutateApi-
|
|
4
|
+
import { s as a, f as u } from "./index-D2KybMHq.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-BR6xF6-j.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (L) => {
|
|
8
8
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
-
import { f as D, C as F } from "./ToggleButton-
|
|
2
|
+
import { f as D, C as F } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
3
|
import { useState as d, useEffect as J } from "react";
|
|
4
|
-
import { f as p, s as a, a as K } from "./index-
|
|
5
|
-
import { m as N } from "./mutateApi-
|
|
4
|
+
import { f as p, s as a, a as K } from "./index-D2KybMHq.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-BR6xF6-j.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (I) => {
|
|
8
8
|
var S, P, A;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as O } from "react/jsx-runtime";
|
|
2
2
|
import j, { memo as x, useState as g, useEffect as J } from "react";
|
|
3
|
-
import { F as M, f as N, s as w } from "./index-
|
|
4
|
-
import { m as $ } from "./mutateApi-
|
|
3
|
+
import { F as M, f as N, s as w } from "./index-D2KybMHq.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-BR6xF6-j.mjs";
|
|
5
5
|
import { M as T } from "./Mapping-jqmNMEpL.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const c = {};
|
|
8
8
|
Object.keys(T).forEach((l) => (c[l] = j.lazy(
|
|
9
|
-
() => import("./index-
|
|
9
|
+
() => import("./index-DuNiGygF.mjs").then((t) => ({
|
|
10
10
|
default: t[T[l]]
|
|
11
11
|
}))
|
|
12
12
|
), c));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as P } from "./index-
|
|
1
|
+
import { n as P } from "./index-D2KybMHq.mjs";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import { y as D, z as O } from "./ToggleButton-
|
|
3
|
+
import { y as D, z as O } from "./ToggleButton-6CARfcVK.mjs";
|
|
4
4
|
function b(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
-
import { f as V, a as R } from "./ToggleButton-
|
|
2
|
+
import { f as V, a as R } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
3
|
import { useState as a, useEffect as ee } from "react";
|
|
4
|
-
import { f as A, s, a as te } from "./index-
|
|
5
|
-
import { m as ae } from "./mutateApi-
|
|
4
|
+
import { f as A, s, a as te } from "./index-D2KybMHq.mjs";
|
|
5
|
+
import { m as ae } from "./mutateApi-BR6xF6-j.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const k = async (w, g, D, I = "", t = "wellnessevent") => {
|
|
8
8
|
var f, d, n, r;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as U } from "react/jsx-runtime";
|
|
2
|
-
import { c as V } from "./ToggleButton-
|
|
2
|
+
import { c as V } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
3
|
import { useState as a, useEffect as p } from "react";
|
|
4
|
-
import { f as q, s as d, a as I } from "./index-
|
|
5
|
-
import { m as z } from "./mutateApi-
|
|
4
|
+
import { f as q, s as d, a as I } from "./index-D2KybMHq.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-BR6xF6-j.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (h) => {
|
|
8
8
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import { E as M, f as U } from "./ToggleButton-
|
|
2
|
+
import { E as M, f as U } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
3
|
import { useState as c, useEffect as j } from "react";
|
|
4
|
-
import { s as a, f as B, a as H } from "./index-
|
|
5
|
-
import { m as q } from "./mutateApi-
|
|
4
|
+
import { s as a, f as B, a as H } from "./index-D2KybMHq.mjs";
|
|
5
|
+
import { m as q } from "./mutateApi-BR6xF6-j.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Q = ({
|
|
8
8
|
data: h,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { a7 as $, a8 as r, a9 as v, B as u, T as E, k as m, aa as P, ab as _, ac as b } from "./ToggleButton-
|
|
2
|
+
import { a7 as $, a8 as r, a9 as v, B as u, T as E, k as m, aa as P, ab as _, ac as b } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
3
|
const L = ({
|
|
4
4
|
content: C,
|
|
5
5
|
analytics: S,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import "./ToggleButton-
|
|
3
|
-
import { E as L } from "./ExperienceZone-
|
|
2
|
+
import "./ToggleButton-6CARfcVK.mjs";
|
|
3
|
+
import { E as L } from "./ExperienceZone-Bp-Xon24.mjs";
|
|
4
4
|
import { useState as S, useEffect as _ } from "react";
|
|
5
|
-
import { f as T, s as j } from "./index-
|
|
5
|
+
import { f as T, s as j } from "./index-D2KybMHq.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const P = (h) => {
|
|
8
8
|
var t, r, i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as _ } from "./index-
|
|
1
|
+
import { n as _ } from "./index-D2KybMHq.mjs";
|
|
2
2
|
import P from "react";
|
|
3
|
-
import { y as g, z as m } from "./ToggleButton-
|
|
3
|
+
import { y as g, z as m } from "./ToggleButton-6CARfcVK.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 { n as b } from "./index-
|
|
1
|
+
import { n as b } from "./index-D2KybMHq.mjs";
|
|
2
2
|
import _ from "react";
|
|
3
|
-
import { y as O, z as A } from "./ToggleButton-
|
|
3
|
+
import { y as O, z as A } from "./ToggleButton-6CARfcVK.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-BJ5RfzMH.mjs → IndividualChallengeComponent-CVsFnQPq.mjs}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { I as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { f as y, s as
|
|
5
|
-
import { m as
|
|
1
|
+
import { jsx as re } from "react/jsx-runtime";
|
|
2
|
+
import { I as te } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
|
+
import { useState as u, useEffect as se } from "react";
|
|
4
|
+
import { f as y, s as f, a as w } from "./index-D2KybMHq.mjs";
|
|
5
|
+
import { m as E } from "./mutateApi-BR6xF6-j.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const
|
|
7
|
+
const ge = (G) => {
|
|
8
8
|
const {
|
|
9
9
|
pageData: n = {},
|
|
10
|
-
secondaryArgs:
|
|
11
|
-
prelemAnalyticsProp:
|
|
12
|
-
prelemAuthoringHelper:
|
|
13
|
-
userId:
|
|
14
|
-
cugId:
|
|
15
|
-
} =
|
|
16
|
-
prelemBaseEndpoint: { site_host:
|
|
17
|
-
} =
|
|
10
|
+
secondaryArgs: P,
|
|
11
|
+
prelemAnalyticsProp: T,
|
|
12
|
+
prelemAuthoringHelper: B,
|
|
13
|
+
userId: _,
|
|
14
|
+
cugId: j
|
|
15
|
+
} = G || {}, {
|
|
16
|
+
prelemBaseEndpoint: { site_host: m, language: h }
|
|
17
|
+
} = P, d = localStorage.getItem("userId") || _, [D, g] = u(!1), [U, A] = u(!1), [k, b] = u(0), [x, H] = u(0), [J, z] = u([]), [F, C] = u([]), [K, M] = u([]), [N, S] = u({}), [O, Q] = u({}), [V, W] = u([]), [X, L] = u(!1), Y = async (c) => {
|
|
18
18
|
var l, i, o, s, r, e;
|
|
19
19
|
try {
|
|
20
20
|
g(!0);
|
|
@@ -23,72 +23,72 @@ const ce = (E) => {
|
|
|
23
23
|
...c,
|
|
24
24
|
userId: d
|
|
25
25
|
}
|
|
26
|
-
}, t = await
|
|
27
|
-
((l = t == null ? void 0 : t.errors) == null ? void 0 : l.length) > 0 ?
|
|
26
|
+
}, t = await E.joinChallenge(a, h, m);
|
|
27
|
+
((l = t == null ? void 0 : t.errors) == null ? void 0 : l.length) > 0 ? f((i = t == null ? void 0 : t.errors[0]) == null ? void 0 : i.message) : (s = (o = t == null ? void 0 : t.data) == null ? void 0 : o.community_joinChallenge) != null && s.id ? (w((e = (r = t == null ? void 0 : t.data) == null ? void 0 : r.community_joinChallenge) == null ? void 0 : e.message), A(!0), v()) : console.error("Join Challenge API failed");
|
|
28
28
|
} catch (a) {
|
|
29
29
|
console.error("Error in Join Challenge API:", a);
|
|
30
30
|
} finally {
|
|
31
31
|
g(!1);
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, v = async () => {
|
|
34
34
|
var c, l, i, o;
|
|
35
35
|
try {
|
|
36
|
-
g(!0);
|
|
36
|
+
g(!0), L(!0);
|
|
37
37
|
const s = {
|
|
38
38
|
challenge_id: n == null ? void 0 : n.page,
|
|
39
39
|
user_id: d,
|
|
40
40
|
challenge_type: "individual"
|
|
41
|
-
}, r = await y.getChallengeDetails(s, h,
|
|
41
|
+
}, r = await y.getChallengeDetails(s, h, m);
|
|
42
42
|
if (((c = r == null ? void 0 : r.errors) == null ? void 0 : c.length) > 0)
|
|
43
|
-
|
|
43
|
+
f((l = r == null ? void 0 : r.errors[0]) == null ? void 0 : l.message);
|
|
44
44
|
else if ((i = r == null ? void 0 : r.data) != null && i.community_challengesDetail) {
|
|
45
45
|
const {
|
|
46
46
|
total_participant: e,
|
|
47
47
|
is_joined: a,
|
|
48
48
|
user_steps: t = 0,
|
|
49
|
-
derivedChallenges:
|
|
49
|
+
derivedChallenges: I
|
|
50
50
|
} = (o = r == null ? void 0 : r.data) == null ? void 0 : o.community_challengesDetail;
|
|
51
|
-
|
|
51
|
+
A(a), b(e), H(t), W(I);
|
|
52
52
|
} else
|
|
53
53
|
console.error("GetChallengeDetails API failed");
|
|
54
54
|
} catch (s) {
|
|
55
|
-
console.error("Error in GetChallengeDetails API:", s);
|
|
55
|
+
console.error("Error in GetChallengeDetails API:", s), L(!1);
|
|
56
56
|
} finally {
|
|
57
|
-
g(!1);
|
|
57
|
+
g(!1), L(!1);
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, Z = async (c = "") => {
|
|
60
60
|
var l, i, o, s;
|
|
61
61
|
try {
|
|
62
62
|
g(!0);
|
|
63
63
|
const r = {
|
|
64
64
|
date: c,
|
|
65
65
|
user_id: d
|
|
66
|
-
}, e = await y.fetchPersonalTracker(r, h,
|
|
66
|
+
}, e = await y.fetchPersonalTracker(r, h, m);
|
|
67
67
|
if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
|
|
68
|
-
|
|
68
|
+
f((i = e == null ? void 0 : e.errors[0]) == null ? void 0 : i.message);
|
|
69
69
|
else if ((o = e == null ? void 0 : e.data) != null && o.community_fetchPersonalTracker) {
|
|
70
70
|
const { steps: a, device_info: t } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_fetchPersonalTracker;
|
|
71
|
-
|
|
71
|
+
S(a), Q(t);
|
|
72
72
|
} else
|
|
73
|
-
console.error("GetPersonalData API failed"),
|
|
73
|
+
console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
|
|
74
74
|
} catch (r) {
|
|
75
|
-
|
|
75
|
+
f("Something went wrong !"), console.error("Error in GetPersonalData API:", r), f("Error in GetPersonalData API"), S({});
|
|
76
76
|
} finally {
|
|
77
77
|
g(!1);
|
|
78
78
|
}
|
|
79
|
-
},
|
|
79
|
+
}, $ = async () => {
|
|
80
80
|
var c, l, i, o, s;
|
|
81
81
|
try {
|
|
82
82
|
g(!0);
|
|
83
83
|
const r = {
|
|
84
84
|
challenge_id: n == null ? void 0 : n.page,
|
|
85
85
|
user_id: d
|
|
86
|
-
}, e = await y.getLeaderBoardList(r, h,
|
|
86
|
+
}, e = await y.getLeaderBoardList(r, h, m);
|
|
87
87
|
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
88
|
-
|
|
88
|
+
f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message);
|
|
89
89
|
else if ((o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_getLeaderBoardList) != null && o.records) {
|
|
90
90
|
const { records: a } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_getLeaderBoardList;
|
|
91
|
-
|
|
91
|
+
z(a);
|
|
92
92
|
} else
|
|
93
93
|
console.error("GetLeaderBoardList API failed");
|
|
94
94
|
} catch (r) {
|
|
@@ -96,17 +96,17 @@ const ce = (E) => {
|
|
|
96
96
|
} finally {
|
|
97
97
|
g(!1);
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, p = async (c) => {
|
|
100
100
|
var l, i;
|
|
101
101
|
try {
|
|
102
102
|
const o = {
|
|
103
103
|
input: c
|
|
104
|
-
}, s = await
|
|
105
|
-
((i = (l = s == null ? void 0 : s.data) == null ? void 0 : l.community_setupChallenge) == null ? void 0 : i.message) === "challenge has been setUp successfully" ?
|
|
104
|
+
}, s = await E.setUpChallenge(o, h, m);
|
|
105
|
+
((i = (l = s == null ? void 0 : s.data) == null ? void 0 : l.community_setupChallenge) == null ? void 0 : i.message) === "challenge has been setUp successfully" ? w("Challenge has been setup successfully!") : f("Something went wrong, please try after sometime !");
|
|
106
106
|
} catch (o) {
|
|
107
|
-
console.error("Error in update goal API:", o),
|
|
107
|
+
console.error("Error in update goal API:", o), f("Something went wrong, please try after sometime !");
|
|
108
108
|
}
|
|
109
|
-
},
|
|
109
|
+
}, R = async (c = "", l = !1) => {
|
|
110
110
|
var i, o, s, r, e;
|
|
111
111
|
try {
|
|
112
112
|
g(!0);
|
|
@@ -121,32 +121,32 @@ const ce = (E) => {
|
|
|
121
121
|
user_id: d,
|
|
122
122
|
viewParticipants: l
|
|
123
123
|
};
|
|
124
|
-
const t = await y.getSentRequestList(a, h,
|
|
124
|
+
const t = await y.getSentRequestList(a, h, m);
|
|
125
125
|
if (((i = t == null ? void 0 : t.errors) == null ? void 0 : i.length) > 0)
|
|
126
|
-
|
|
126
|
+
f((o = t == null ? void 0 : t.errors[0]) == null ? void 0 : o.message);
|
|
127
127
|
else if ((r = (s = t == null ? void 0 : t.data) == null ? void 0 : s.community_sentRequests) != null && r.records) {
|
|
128
|
-
const { records:
|
|
129
|
-
|
|
128
|
+
const { records: I } = (e = t == null ? void 0 : t.data) == null ? void 0 : e.community_sentRequests;
|
|
129
|
+
C(I);
|
|
130
130
|
} else
|
|
131
131
|
console.error("GetSentRequestList API failed");
|
|
132
132
|
} catch (a) {
|
|
133
|
-
console.error("Error in GetSentRequestList API:", a),
|
|
133
|
+
console.error("Error in GetSentRequestList API:", a), C([]);
|
|
134
134
|
} finally {
|
|
135
135
|
g(!1);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, q = async () => {
|
|
138
138
|
var c, l, i, o, s;
|
|
139
139
|
try {
|
|
140
140
|
g(!0);
|
|
141
141
|
const r = {
|
|
142
142
|
challenge_id: n == null ? void 0 : n.page,
|
|
143
143
|
user_id: d
|
|
144
|
-
}, e = await y.getReceivedRequestList(r, h,
|
|
144
|
+
}, e = await y.getReceivedRequestList(r, h, m);
|
|
145
145
|
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
146
|
-
|
|
146
|
+
f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message);
|
|
147
147
|
else if ((o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_receivedRequests) != null && o.records) {
|
|
148
148
|
const { records: a } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_receivedRequests;
|
|
149
|
-
|
|
149
|
+
M(a);
|
|
150
150
|
} else
|
|
151
151
|
console.error("GetReceivedRequestList API failed");
|
|
152
152
|
} catch (r) {
|
|
@@ -154,37 +154,38 @@ const ce = (E) => {
|
|
|
154
154
|
} finally {
|
|
155
155
|
g(!1);
|
|
156
156
|
}
|
|
157
|
-
},
|
|
158
|
-
joinChallenge:
|
|
159
|
-
loading:
|
|
160
|
-
isEnrolled:
|
|
161
|
-
enrolledParticipants:
|
|
162
|
-
userAchieved:
|
|
163
|
-
leaderBoardList:
|
|
164
|
-
stepsData:
|
|
165
|
-
setUpChallenge:
|
|
166
|
-
sentRequestList:
|
|
167
|
-
receivedRequestList:
|
|
168
|
-
getSentRequestList:
|
|
169
|
-
getReceivedRequestList:
|
|
170
|
-
derivedChallenge:
|
|
171
|
-
deviceInfo:
|
|
157
|
+
}, ee = {
|
|
158
|
+
joinChallenge: Y,
|
|
159
|
+
loading: D,
|
|
160
|
+
isEnrolled: U,
|
|
161
|
+
enrolledParticipants: k,
|
|
162
|
+
userAchieved: x,
|
|
163
|
+
leaderBoardList: J,
|
|
164
|
+
stepsData: N,
|
|
165
|
+
setUpChallenge: p,
|
|
166
|
+
sentRequestList: F,
|
|
167
|
+
receivedRequestList: K,
|
|
168
|
+
getSentRequestList: R,
|
|
169
|
+
getReceivedRequestList: q,
|
|
170
|
+
derivedChallenge: V,
|
|
171
|
+
deviceInfo: O,
|
|
172
|
+
pageLoader: X
|
|
172
173
|
};
|
|
173
|
-
return
|
|
174
|
-
n != null && n.page && (
|
|
175
|
-
}, [n]), /* @__PURE__ */
|
|
176
|
-
|
|
174
|
+
return se(() => {
|
|
175
|
+
n != null && n.page && (v(), $(), Z(), q());
|
|
176
|
+
}, [n]), /* @__PURE__ */ re(
|
|
177
|
+
te,
|
|
177
178
|
{
|
|
178
179
|
content: n,
|
|
179
|
-
analytics:
|
|
180
|
-
authoringHelper:
|
|
181
|
-
secondaryArgs:
|
|
182
|
-
challengeDetails:
|
|
183
|
-
userId:
|
|
184
|
-
cugId:
|
|
180
|
+
analytics: T,
|
|
181
|
+
authoringHelper: B,
|
|
182
|
+
secondaryArgs: P,
|
|
183
|
+
challengeDetails: ee,
|
|
184
|
+
userId: _,
|
|
185
|
+
cugId: j
|
|
185
186
|
}
|
|
186
187
|
);
|
|
187
188
|
};
|
|
188
189
|
export {
|
|
189
|
-
|
|
190
|
+
ge as default
|
|
190
191
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as y } from "./index-
|
|
1
|
+
import { n as y } from "./index-D2KybMHq.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as _, z as m } from "./ToggleButton-
|
|
3
|
+
import { y as _, z as m } from "./ToggleButton-6CARfcVK.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 { n as y } from "./index-
|
|
1
|
+
import { n as y } from "./index-D2KybMHq.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as m, z as g } from "./ToggleButton-
|
|
3
|
+
import { y as m, z as g } from "./ToggleButton-6CARfcVK.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 { n as P } from "./index-
|
|
1
|
+
import { n as P } from "./index-D2KybMHq.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { z as E } from "./ToggleButton-
|
|
3
|
+
import { z as E } from "./ToggleButton-6CARfcVK.mjs";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { c as I } from "./index-
|
|
2
|
+
import { c as I } from "./index-D2KybMHq.mjs";
|
|
3
3
|
import S from "react";
|
|
4
4
|
import { M as f } from "./Mapping-jqmNMEpL.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const p = {};
|
|
7
7
|
Object.keys(f).forEach((o) => (p[o] = S.lazy(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-DuNiGygF.mjs").then((n) => ({
|
|
9
9
|
default: n[f[o]]
|
|
10
10
|
}))
|
|
11
11
|
), p));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 P, p as V, q as B, g as z, t as H, V as M, P as U, L as F, u as j, v as A, w as W, x as q } from "./ToggleButton-
|
|
2
|
+
import { m as y, B as i, T as x, o as P, p as V, q as B, g as z, t as H, V as M, P as U, L as F, u as j, v as A, w as W, x as q } from "./ToggleButton-6CARfcVK.mjs";
|
|
3
3
|
import O, { useState as Y, useEffect as G } from "react";
|
|
4
|
-
import { o as J } from "./index-
|
|
4
|
+
import { o as J } from "./index-D2KybMHq.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const K = y(() => {
|
|
7
7
|
const r = J();
|
|
@@ -124,9 +124,9 @@ const K = y(() => {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}), oe = ({ isVideoLandingPage: r, data: w, secondaryArgs: t, filters: d }) => {
|
|
127
|
-
const k = t == null ? void 0 : t.platform, E = K(), { gcpUrl: c, bucketName:
|
|
128
|
-
var
|
|
129
|
-
const a = (e == null ? void 0 : e.CurrentPageURL) || e.current_page_url, l = ((
|
|
127
|
+
const k = t == null ? void 0 : t.platform, E = K(), { gcpUrl: c, bucketName: h } = t, [L, I] = Y([]), N = (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
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
131
|
}, X = (e) => {
|
|
132
132
|
k !== "isAuthoring" && N(e);
|
|
@@ -161,16 +161,16 @@ const K = y(() => {
|
|
|
161
161
|
/* @__PURE__ */ o(i, { className: "PX-CardBox", children: /* @__PURE__ */ o(i, { className: "PX-InnerBox", children: L.map(
|
|
162
162
|
(e) => e == null ? void 0 : e.map((a, l) => {
|
|
163
163
|
var v, T;
|
|
164
|
-
const { original_image:
|
|
164
|
+
const { original_image: m = {}, thumbnail: p } = a, { original_image_relative_path: s, ext: D } = m;
|
|
165
165
|
let R, u;
|
|
166
|
-
return ((v = a == null ? void 0 : a.content_type) == null ? void 0 : v.toLowerCase()) === "vod" ? (R = P(c,
|
|
166
|
+
return ((v = a == null ? void 0 : a.content_type) == null ? void 0 : v.toLowerCase()) === "vod" ? (R = P(c, h, V(p)), u = P(c, h, p)) : (R = B(
|
|
167
167
|
c,
|
|
168
|
-
|
|
168
|
+
h,
|
|
169
169
|
s,
|
|
170
170
|
"webp"
|
|
171
171
|
), u = B(
|
|
172
172
|
c,
|
|
173
|
-
|
|
173
|
+
h,
|
|
174
174
|
s || p,
|
|
175
175
|
D
|
|
176
176
|
)), /* @__PURE__ */ n(
|
|
@@ -226,7 +226,7 @@ const K = y(() => {
|
|
|
226
226
|
] }),
|
|
227
227
|
/* @__PURE__ */ n(i, { className: "PX-CardRightContent", children: [
|
|
228
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: "
|
|
229
|
+
/* @__PURE__ */ o(x, { variant: "h6bold", className: "title", children: a == null ? void 0 : a.title }),
|
|
230
230
|
/* @__PURE__ */ n(F, { href: "", className: "readmoreCta", children: [
|
|
231
231
|
/* @__PURE__ */ o(x, { variant: "h6regular", children: "Read more" }),
|
|
232
232
|
/* @__PURE__ */ o(j, {})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Le, { jsx as a, jsxs as k, Fragment as je } from "react/jsx-runtime";
|
|
2
2
|
import * as le from "react";
|
|
3
3
|
import Te, { forwardRef as Ne, useState as $, useEffect as de, useRef as Oe, useCallback as Pe } from "react";
|
|
4
|
-
import { d as ce, r as Ee, i as Re, m as We, h as Be, e as ue, B as b, g as De, j as He, T as L, P as Me, k as I, D as $e, l as Ue, s as Ve, n as J } from "./ToggleButton-
|
|
5
|
-
import { g as he, d as pe, e as we, _ as j, u as fe, h as ge, i as me, P as p, j as be, k as ve, l as ze, m as ee, n as Fe, G as P, o as Ke } from "./index-
|
|
4
|
+
import { d as ce, r as Ee, i as Re, m as We, h as Be, e as ue, B as b, g as De, j as He, T as L, P as Me, k as I, D as $e, l as Ue, s as Ve, n as J } from "./ToggleButton-6CARfcVK.mjs";
|
|
5
|
+
import { g as he, d as pe, e as we, _ as j, u as fe, h as ge, i as me, P as p, j as be, k as ve, l as ze, m as ee, n as Fe, G as P, o as Ke } from "./index-D2KybMHq.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
function Ge(e) {
|
|
8
8
|
return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as P } from "./index-
|
|
1
|
+
import { n as P } from "./index-D2KybMHq.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { y as b, z as v } from "./ToggleButton-
|
|
3
|
+
import { y as b, z as v } from "./ToggleButton-6CARfcVK.mjs";
|
|
4
4
|
function O(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as m } from "./index-
|
|
1
|
+
import { n as m } from "./index-D2KybMHq.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as _, z as b } from "./ToggleButton-
|
|
3
|
+
import { y as _, z as b } from "./ToggleButton-6CARfcVK.mjs";
|
|
4
4
|
function P(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|