@platform-x/hcltechx-mfe-wrapper 1.0.30 → 1.0.31
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-rfJIaQla.mjs → ArticleVodListComponent-BdsdBJZg.mjs} +2 -2
- package/{ChallengeDetailComponent-DWi4-Vye.mjs → ChallengeDetailComponent-nag-UUGh.mjs} +44 -44
- package/{ChallengeSliderComponent-DjxTAW25.mjs → ChallengeSliderComponent-CSGqxje-.mjs} +16 -16
- package/{CommonContentComponent-DiH2eh7m.mjs → CommonContentComponent-K4oWU5f9.mjs} +3 -3
- package/{DailyMotion-DqVz7WRg.mjs → DailyMotion-wtXtFeuh.mjs} +4 -4
- package/EngagementHomeComponent-BdEoZbi8.mjs +114 -0
- package/{EventDetailComponent-Dlv-vajD.mjs → EventDetailComponent-B2X9tTQb.mjs} +3 -3
- package/{EventListComponent-Bp-ocQyI.mjs → EventListComponent-DO8pbMGC.mjs} +25 -25
- package/ExperienceZone-CDn2CT6n.mjs +86 -0
- package/{ExperienceZoneComponent-DigfDEcA.mjs → ExperienceZoneComponent-CZAzrxV2.mjs} +17 -17
- package/{Facebook-5NjdZIZS.mjs → Facebook-Dn8GPyI6.mjs} +7 -7
- package/{FilePlayer-1xO7FAWu.mjs → FilePlayer-CPdcL8iZ.mjs} +5 -5
- package/IndividualChallengeComponent-Ck-LrQGM.mjs +196 -0
- package/{Kaltura-Qf00P2Fj.mjs → Kaltura-DngkKLJA.mjs} +5 -5
- package/{Mixcloud-BCvfo2lN.mjs → Mixcloud-Bh51-GGV.mjs} +5 -5
- package/{Mux-BmAud9P2.mjs → Mux-TmuQow4X.mjs} +2 -2
- package/PageComponent-DOJ0s9qx.mjs +73 -0
- package/{Preview-B69Gep9D.mjs → Preview-Be9YGdv6.mjs} +1 -1
- package/RecentCarousel-Vr9dX9UA.mjs +243 -0
- package/{Share-DHRrFg9E.mjs → Share-jA8mNlB7.mjs} +2 -2
- package/{SoundCloud-C6m9N0iT.mjs → SoundCloud-BpXdvxDN.mjs} +4 -4
- package/{Streamable-lIw4WFDj.mjs → Streamable-BBRWRnR4.mjs} +7 -7
- package/{ToggleButton-qqI-N7vl.mjs → ToggleButton-DLdOYWHV.mjs} +80835 -78693
- package/{Twitch-D0-ZYeec.mjs → Twitch-IiHBuRmY.mjs} +6 -6
- package/{Vidyard-Z5q25F-x.mjs → Vidyard-BjPL8-75.mjs} +11 -11
- package/{Vimeo-Dnhza8bp.mjs → Vimeo-BN2eVm_H.mjs} +2 -2
- package/{Wistia-CZueDcOL.mjs → Wistia-BL1IQZeu.mjs} +2 -2
- package/{YouTube-C4bqVnwR.mjs → YouTube-BdYTt5JS.mjs} +7 -7
- package/{index-D5u1jg6A.mjs → index-BJp2rRr8.mjs} +6 -6
- package/{index-nEuOAhnp.mjs → index-D9AkzmlZ.mjs} +703 -674
- package/index.mjs +1 -1
- package/lib/Pages/PrelemBuilder.d.ts +2 -1
- package/lib/services/fetchQueries.d.ts +2 -2
- package/{mutateApi-BCq97zCv.mjs → mutateApi-BX_cOEZ_.mjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/EngagementHomeComponent-CCQXJTDI.mjs +0 -112
- package/ExperienceZone-BvqGBh_n.mjs +0 -89
- package/IndividualChallengeComponent-BUKejN6Y.mjs +0 -191
- package/PageComponent-CUXkbfOH.mjs +0 -64
- package/RecentCarousel-BFwZefp_.mjs +0 -245
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
-
import { f as V, a as R } from "./ToggleButton-qqI-N7vl.mjs";
|
|
3
|
-
import { useState as a, useEffect as ee } from "react";
|
|
4
|
-
import { f as A, s, a as te } from "./index-nEuOAhnp.mjs";
|
|
5
|
-
import { m as ae } from "./mutateApi-BCq97zCv.mjs";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const k = async (w, g, D, I = "", t = "wellnessevent") => {
|
|
8
|
-
var f, d, n, r;
|
|
9
|
-
const o = await A.getContentSchemaList(
|
|
10
|
-
{
|
|
11
|
-
searchTerm: I,
|
|
12
|
-
filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase()
|
|
13
|
-
},
|
|
14
|
-
w || "en",
|
|
15
|
-
g
|
|
16
|
-
);
|
|
17
|
-
(d = (f = o == null ? void 0 : o.data) == null ? void 0 : f.publish_getContents) != null && d.records ? D((r = (n = o == null ? void 0 : o.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : r.records) : s("Something went wrong !");
|
|
18
|
-
}, le = (w) => {
|
|
19
|
-
const {
|
|
20
|
-
secondaryArgs: g,
|
|
21
|
-
prelemAnalyticsProp: D,
|
|
22
|
-
prelemAuthoringHelper: I,
|
|
23
|
-
userId: t,
|
|
24
|
-
filters: o,
|
|
25
|
-
relativePath: f = "",
|
|
26
|
-
articleData: d
|
|
27
|
-
} = w || {}, {
|
|
28
|
-
prelemBaseEndpoint: { language: n, site_host: r }
|
|
29
|
-
} = g, [P, p] = a(!1), [E, v] = a({}), [G, S] = a({}), [T, L] = a(0), h = localStorage.getItem("userId") || t, [b, H] = a([]), [x, M] = a([]), [U, j] = a({}), [B, W] = a({}), [q, z] = a({}), C = async (y, i, u) => {
|
|
30
|
-
var l, m;
|
|
31
|
-
if (!h) {
|
|
32
|
-
s("User ID is not available. Please log in.");
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
const c = {
|
|
37
|
-
input: { activity_type: u, target: y.toString(), action: i },
|
|
38
|
-
user_id: h
|
|
39
|
-
}, e = await ae.setPersonalGoal(c, n, r);
|
|
40
|
-
((m = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && i === "goal" ? te("Goal updated successfully!") : i !== "entry" && s("Something went wrong, please try after sometime !");
|
|
41
|
-
} catch (c) {
|
|
42
|
-
console.error("Error in update goal API:", c), s("Something went wrong, please try after sometime !");
|
|
43
|
-
}
|
|
44
|
-
}, _ = async (y = "") => {
|
|
45
|
-
var i, u, l, m;
|
|
46
|
-
if (!h) {
|
|
47
|
-
s("User ID is not available. Please log in.");
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
try {
|
|
51
|
-
p(!0);
|
|
52
|
-
const c = {
|
|
53
|
-
date: y,
|
|
54
|
-
user_id: h
|
|
55
|
-
}, e = await A.fetchPersonalTracker(c, n, r);
|
|
56
|
-
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
57
|
-
s((u = e == null ? void 0 : e.errors[0]) == null ? void 0 : u.message);
|
|
58
|
-
else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
|
|
59
|
-
const {
|
|
60
|
-
water_intake: K,
|
|
61
|
-
steps: N,
|
|
62
|
-
streak_count: O,
|
|
63
|
-
individual_challenge_info: Q,
|
|
64
|
-
calories: X,
|
|
65
|
-
distance: Y,
|
|
66
|
-
device_info: Z
|
|
67
|
-
} = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
|
|
68
|
-
v(K), S(N), L(O), j(Q), W({ calories: X, distance: Y }), z(Z);
|
|
69
|
-
} else
|
|
70
|
-
console.error("GetPersonalData API failed"), s("GetPersonalData API failed");
|
|
71
|
-
} catch (c) {
|
|
72
|
-
console.error("Error in GetPersonalData API:", c), s("Error in GetPersonalData API"), v({}), S({});
|
|
73
|
-
} finally {
|
|
74
|
-
p(!1);
|
|
75
|
-
}
|
|
76
|
-
}, F = {
|
|
77
|
-
waterIntakeData: E,
|
|
78
|
-
loading: P,
|
|
79
|
-
fetchPersonalData: _,
|
|
80
|
-
updateGoals: C
|
|
81
|
-
}, J = {
|
|
82
|
-
stepsData: G,
|
|
83
|
-
loading: P,
|
|
84
|
-
updateGoals: C
|
|
85
|
-
};
|
|
86
|
-
return ee(() => {
|
|
87
|
-
_(V(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), k(n, r, H, "", "challenges"), k(n, r, M, "", "wellnessevent");
|
|
88
|
-
}, []), /* @__PURE__ */ $(
|
|
89
|
-
R,
|
|
90
|
-
{
|
|
91
|
-
analytics: D,
|
|
92
|
-
authoringHelper: I,
|
|
93
|
-
secondaryArgs: g,
|
|
94
|
-
waterIntakeDetails: F,
|
|
95
|
-
stepsDetails: J,
|
|
96
|
-
streaksCount: T,
|
|
97
|
-
data: b,
|
|
98
|
-
eventData: x,
|
|
99
|
-
articleVodData: d,
|
|
100
|
-
filters: o,
|
|
101
|
-
relativePath: f,
|
|
102
|
-
userId: t,
|
|
103
|
-
deviceInfo: q,
|
|
104
|
-
individualChallengeInfo: U,
|
|
105
|
-
commonInfo: B
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
};
|
|
109
|
-
export {
|
|
110
|
-
le as EngagementHomeComponent,
|
|
111
|
-
le as default
|
|
112
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { a6 as $, a7 as r, a8 as v, B as u, T as E, k as m, a9 as P, aa as _, ab as b } from "./ToggleButton-qqI-N7vl.mjs";
|
|
3
|
-
const L = ({
|
|
4
|
-
content: C,
|
|
5
|
-
analytics: S,
|
|
6
|
-
authoringHelper: i,
|
|
7
|
-
secondaryArgs: n,
|
|
8
|
-
filters: o,
|
|
9
|
-
eventData: h
|
|
10
|
-
}) => {
|
|
11
|
-
var d;
|
|
12
|
-
$(S, C, n);
|
|
13
|
-
const T = r(), k = (e) => {
|
|
14
|
-
var s, w;
|
|
15
|
-
const a = (e == null ? void 0 : e.CurrentPageURL) || e.current_page_url, p = ((e == null ? void 0 : e.ContentType) || e.content_type).toLowerCase();
|
|
16
|
-
typeof window < "u" && (o != null && o.onCardClick ? o == null || o.onCardClick({ id: a, type: p }) : (s = n == null ? void 0 : n.prelemBaseEndpoint) != null && s.language ? window.open(`/${(w = n == null ? void 0 : n.prelemBaseEndpoint) == null ? void 0 : w.language}/${p}${a}`) : window.open(`/${p}${a}`));
|
|
17
|
-
}, x = (e) => {
|
|
18
|
-
var a, t;
|
|
19
|
-
o != null && o.onViewAllClick ? o == null || o.onViewAllClick(e) : (a = n == null ? void 0 : n.prelemBaseEndpoint) != null && a.language ? window.open(`/${(t = n == null ? void 0 : n.prelemBaseEndpoint) == null ? void 0 : t.language}/${e}`) : window.open(`/${e}`);
|
|
20
|
-
}, B = { ...{
|
|
21
|
-
slidesToShow: 4,
|
|
22
|
-
slidesToScroll: 4,
|
|
23
|
-
autoPlay: !0,
|
|
24
|
-
dots: !1,
|
|
25
|
-
arrow: !0,
|
|
26
|
-
infinite: !1,
|
|
27
|
-
touchMove: !1,
|
|
28
|
-
responsive: [
|
|
29
|
-
{
|
|
30
|
-
breakpoint: 1024,
|
|
31
|
-
settings: {
|
|
32
|
-
slidesToShow: 3,
|
|
33
|
-
slidesToScroll: 3
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
breakpoint: 900,
|
|
38
|
-
settings: {
|
|
39
|
-
slidesToShow: 3,
|
|
40
|
-
slidesToScroll: 3
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
breakpoint: 600,
|
|
45
|
-
settings: {
|
|
46
|
-
slidesToShow: 2,
|
|
47
|
-
slidesToScroll: 2,
|
|
48
|
-
infinite: !0,
|
|
49
|
-
dots: !0,
|
|
50
|
-
arrow: !1,
|
|
51
|
-
touchMove: !0
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
} };
|
|
56
|
-
return /* @__PURE__ */ l(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
ref: i == null ? void 0 : i.innerRef,
|
|
60
|
-
className: `${T.ExperienceZoneWrapper} PX-ExperienceZoneBox`,
|
|
61
|
-
children: /* @__PURE__ */ l(v, { className: "grid_container prelem-py", children: /* @__PURE__ */ c(u, { children: [
|
|
62
|
-
/* @__PURE__ */ c(u, { className: "PX-headerWrapper", children: [
|
|
63
|
-
/* @__PURE__ */ l(E, { variant: "h3bold", children: "Your experience zone" }),
|
|
64
|
-
/* @__PURE__ */ l(
|
|
65
|
-
m,
|
|
66
|
-
{
|
|
67
|
-
variant: "secondaryButton3",
|
|
68
|
-
className: "viewAllCta",
|
|
69
|
-
onClick: () => x("eventList"),
|
|
70
|
-
children: "View All"
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ l(P, { ...B, className: "PX-arrowDotSlider", children: (d = _(h, "start_date", "end_date", !1)) == null ? void 0 : d.map((e) => /* @__PURE__ */ l(
|
|
75
|
-
b,
|
|
76
|
-
{
|
|
77
|
-
content: e,
|
|
78
|
-
secondaryArgs: n,
|
|
79
|
-
onCardClick: k
|
|
80
|
-
},
|
|
81
|
-
e
|
|
82
|
-
)) })
|
|
83
|
-
] }) })
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
export {
|
|
88
|
-
L as E
|
|
89
|
-
};
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { jsx as re } from "react/jsx-runtime";
|
|
2
|
-
import { I as te } from "./ToggleButton-qqI-N7vl.mjs";
|
|
3
|
-
import { useState as u, useEffect as se } from "react";
|
|
4
|
-
import { f as y, s as f, a as w } from "./index-nEuOAhnp.mjs";
|
|
5
|
-
import { m as E } from "./mutateApi-BCq97zCv.mjs";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const ge = (G) => {
|
|
8
|
-
const {
|
|
9
|
-
pageData: n = {},
|
|
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
|
-
var l, i, o, s, r, e;
|
|
19
|
-
try {
|
|
20
|
-
g(!0);
|
|
21
|
-
const a = {
|
|
22
|
-
input: {
|
|
23
|
-
...c,
|
|
24
|
-
userId: d
|
|
25
|
-
}
|
|
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
|
-
} catch (a) {
|
|
29
|
-
console.error("Error in Join Challenge API:", a);
|
|
30
|
-
} finally {
|
|
31
|
-
g(!1);
|
|
32
|
-
}
|
|
33
|
-
}, v = async () => {
|
|
34
|
-
var c, l, i, o;
|
|
35
|
-
try {
|
|
36
|
-
g(!0), L(!0);
|
|
37
|
-
const s = {
|
|
38
|
-
challenge_id: n == null ? void 0 : n.page,
|
|
39
|
-
user_id: d,
|
|
40
|
-
challenge_type: "individual"
|
|
41
|
-
}, r = await y.getChallengeDetails(s, h, m);
|
|
42
|
-
if (((c = r == null ? void 0 : r.errors) == null ? void 0 : c.length) > 0)
|
|
43
|
-
f((l = r == null ? void 0 : r.errors[0]) == null ? void 0 : l.message);
|
|
44
|
-
else if ((i = r == null ? void 0 : r.data) != null && i.community_challengesDetail) {
|
|
45
|
-
const {
|
|
46
|
-
total_participant: e,
|
|
47
|
-
is_joined: a,
|
|
48
|
-
user_steps: t = 0,
|
|
49
|
-
derivedChallenges: I
|
|
50
|
-
} = (o = r == null ? void 0 : r.data) == null ? void 0 : o.community_challengesDetail;
|
|
51
|
-
A(a), b(e), H(t), W(I);
|
|
52
|
-
} else
|
|
53
|
-
console.error("GetChallengeDetails API failed");
|
|
54
|
-
} catch (s) {
|
|
55
|
-
console.error("Error in GetChallengeDetails API:", s), L(!1);
|
|
56
|
-
} finally {
|
|
57
|
-
g(!1), L(!1);
|
|
58
|
-
}
|
|
59
|
-
}, Z = async (c = "") => {
|
|
60
|
-
var l, i, o, s;
|
|
61
|
-
try {
|
|
62
|
-
g(!0);
|
|
63
|
-
const r = {
|
|
64
|
-
date: c,
|
|
65
|
-
user_id: d
|
|
66
|
-
}, e = await y.fetchPersonalTracker(r, h, m);
|
|
67
|
-
if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
|
|
68
|
-
f((i = e == null ? void 0 : e.errors[0]) == null ? void 0 : i.message);
|
|
69
|
-
else if ((o = e == null ? void 0 : e.data) != null && o.community_fetchPersonalTracker) {
|
|
70
|
-
const { steps: a, device_info: t } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_fetchPersonalTracker;
|
|
71
|
-
S(a), Q(t);
|
|
72
|
-
} else
|
|
73
|
-
console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
|
|
74
|
-
} catch (r) {
|
|
75
|
-
f("Something went wrong !"), console.error("Error in GetPersonalData API:", r), f("Error in GetPersonalData API"), S({});
|
|
76
|
-
} finally {
|
|
77
|
-
g(!1);
|
|
78
|
-
}
|
|
79
|
-
}, $ = async () => {
|
|
80
|
-
var c, l, i, o, s;
|
|
81
|
-
try {
|
|
82
|
-
g(!0);
|
|
83
|
-
const r = {
|
|
84
|
-
challenge_id: n == null ? void 0 : n.page,
|
|
85
|
-
user_id: d
|
|
86
|
-
}, e = await y.getLeaderBoardList(r, h, m);
|
|
87
|
-
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
88
|
-
f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message);
|
|
89
|
-
else if ((o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_getLeaderBoardList) != null && o.records) {
|
|
90
|
-
const { records: a } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_getLeaderBoardList;
|
|
91
|
-
z(a);
|
|
92
|
-
} else
|
|
93
|
-
console.error("GetLeaderBoardList API failed");
|
|
94
|
-
} catch (r) {
|
|
95
|
-
console.error("Error in GetLeaderBoardList API:", r);
|
|
96
|
-
} finally {
|
|
97
|
-
g(!1);
|
|
98
|
-
}
|
|
99
|
-
}, p = async (c) => {
|
|
100
|
-
var l, i;
|
|
101
|
-
try {
|
|
102
|
-
const o = {
|
|
103
|
-
input: c
|
|
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
|
-
} catch (o) {
|
|
107
|
-
console.error("Error in update goal API:", o), f("Something went wrong, please try after sometime !");
|
|
108
|
-
}
|
|
109
|
-
}, R = async (c = "", l = !1) => {
|
|
110
|
-
var i, o, s, r, e;
|
|
111
|
-
try {
|
|
112
|
-
g(!0);
|
|
113
|
-
let a = {};
|
|
114
|
-
c !== "" ? a = {
|
|
115
|
-
challenge_id: n == null ? void 0 : n.page,
|
|
116
|
-
user_id: d,
|
|
117
|
-
derived_challenge_id: c,
|
|
118
|
-
viewParticipants: l
|
|
119
|
-
} : a = {
|
|
120
|
-
challenge_id: n == null ? void 0 : n.page,
|
|
121
|
-
user_id: d,
|
|
122
|
-
viewParticipants: l
|
|
123
|
-
};
|
|
124
|
-
const t = await y.getSentRequestList(a, h, m);
|
|
125
|
-
if (((i = t == null ? void 0 : t.errors) == null ? void 0 : i.length) > 0)
|
|
126
|
-
f((o = t == null ? void 0 : t.errors[0]) == null ? void 0 : o.message);
|
|
127
|
-
else if ((r = (s = t == null ? void 0 : t.data) == null ? void 0 : s.community_sentRequests) != null && r.records) {
|
|
128
|
-
const { records: I } = (e = t == null ? void 0 : t.data) == null ? void 0 : e.community_sentRequests;
|
|
129
|
-
C(I);
|
|
130
|
-
} else
|
|
131
|
-
console.error("GetSentRequestList API failed");
|
|
132
|
-
} catch (a) {
|
|
133
|
-
console.error("Error in GetSentRequestList API:", a), C([]);
|
|
134
|
-
} finally {
|
|
135
|
-
g(!1);
|
|
136
|
-
}
|
|
137
|
-
}, q = async () => {
|
|
138
|
-
var c, l, i, o, s;
|
|
139
|
-
try {
|
|
140
|
-
g(!0);
|
|
141
|
-
const r = {
|
|
142
|
-
challenge_id: n == null ? void 0 : n.page,
|
|
143
|
-
user_id: d
|
|
144
|
-
}, e = await y.getReceivedRequestList(r, h, m);
|
|
145
|
-
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
146
|
-
f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message);
|
|
147
|
-
else if ((o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_receivedRequests) != null && o.records) {
|
|
148
|
-
const { records: a } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_receivedRequests;
|
|
149
|
-
M(a);
|
|
150
|
-
} else
|
|
151
|
-
console.error("GetReceivedRequestList API failed");
|
|
152
|
-
} catch (r) {
|
|
153
|
-
console.error("Error in GetReceivedRequestList API:", r);
|
|
154
|
-
} finally {
|
|
155
|
-
g(!1);
|
|
156
|
-
}
|
|
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
|
|
173
|
-
};
|
|
174
|
-
return se(() => {
|
|
175
|
-
n != null && n.page && (v(), $(), Z(), q());
|
|
176
|
-
}, [n]), /* @__PURE__ */ re(
|
|
177
|
-
te,
|
|
178
|
-
{
|
|
179
|
-
content: n,
|
|
180
|
-
analytics: T,
|
|
181
|
-
authoringHelper: B,
|
|
182
|
-
secondaryArgs: P,
|
|
183
|
-
challengeDetails: ee,
|
|
184
|
-
userId: _,
|
|
185
|
-
cugId: j
|
|
186
|
-
}
|
|
187
|
-
);
|
|
188
|
-
};
|
|
189
|
-
export {
|
|
190
|
-
ge as default
|
|
191
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsx as s, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { c as I } from "./index-nEuOAhnp.mjs";
|
|
3
|
-
import S from "react";
|
|
4
|
-
import { M as f } from "./Mapping-jqmNMEpL.mjs";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
const p = {};
|
|
7
|
-
Object.keys(f).forEach((o) => (p[o] = S.lazy(
|
|
8
|
-
() => import("./index-D5u1jg6A.mjs").then((n) => ({
|
|
9
|
-
default: n[f[o]]
|
|
10
|
-
}))
|
|
11
|
-
), p));
|
|
12
|
-
const B = ({ content: o, analytics: n, authoringHelper: t, secondaryArgs: a, prelemId: r }) => {
|
|
13
|
-
const c = p[r];
|
|
14
|
-
return /* @__PURE__ */ s(j, { children: c ? /* @__PURE__ */ s(
|
|
15
|
-
c,
|
|
16
|
-
{
|
|
17
|
-
content: o,
|
|
18
|
-
analytics: n,
|
|
19
|
-
authoringHelper: t,
|
|
20
|
-
secondaryArgs: a
|
|
21
|
-
}
|
|
22
|
-
) : null });
|
|
23
|
-
}, H = (o = {}) => {
|
|
24
|
-
const { pageData: n = {}, instances: t = {}, secondaryArgs: a = {} } = o, { Children: r = [] } = n, {
|
|
25
|
-
prelemBaseEndpoint: { site_host: c }
|
|
26
|
-
} = a, b = (e, l) => l[e], E = () => r == null ? void 0 : r.map((e, l) => {
|
|
27
|
-
var P, u, g, y, h;
|
|
28
|
-
try {
|
|
29
|
-
const d = b(e == null ? void 0 : e.DocumentPath, n == null ? void 0 : n.Content), A = !!(n != null && n.AnalyticsEnable && (e != null && e.AnalyticsEnabled) && ((P = Object.keys(t || {})) != null && P.length)), i = {
|
|
30
|
-
pageId: n == null ? void 0 : n.Page,
|
|
31
|
-
pageTitle: n == null ? void 0 : n.Title,
|
|
32
|
-
pageDesc: ((u = n == null ? void 0 : n.PageSettings) == null ? void 0 : u.PageDescription) || "",
|
|
33
|
-
pageTags: (y = (g = n == null ? void 0 : n.PageSettings) == null ? void 0 : g.PageTags) == null ? void 0 : y.join(", "),
|
|
34
|
-
prelemId: e == null ? void 0 : e.PrelemId,
|
|
35
|
-
prelemTitle: e == null ? void 0 : e.PrelemName,
|
|
36
|
-
prelemTags: (h = e == null ? void 0 : e.PrelemTag) == null ? void 0 : h.join(", "),
|
|
37
|
-
prelemPosition: l + 1,
|
|
38
|
-
isAuthoring: !1,
|
|
39
|
-
isSeoEnabled: e == null ? void 0 : e.SeoEnabled,
|
|
40
|
-
isAnalyticsEnabled: A
|
|
41
|
-
}, T = {
|
|
42
|
-
isEditPage: !1,
|
|
43
|
-
isModalShow: !0
|
|
44
|
-
// innerRef: myRefs.current[key + 1],
|
|
45
|
-
};
|
|
46
|
-
return /* @__PURE__ */ s("div", { id: `Prelem${l + 1}`, children: d ? /* @__PURE__ */ s(
|
|
47
|
-
B,
|
|
48
|
-
{
|
|
49
|
-
content: d,
|
|
50
|
-
analytics: i,
|
|
51
|
-
authoringHelper: T,
|
|
52
|
-
secondaryArgs: { ...I(c) },
|
|
53
|
-
prelemId: e == null ? void 0 : e.PrelemId
|
|
54
|
-
}
|
|
55
|
-
) : null }, `Prelem-key${l + 1}`);
|
|
56
|
-
} catch {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
return /* @__PURE__ */ s("div", { children: (r == null ? void 0 : r.length) > 0 ? E() : null });
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
H as default
|
|
64
|
-
};
|