@platform-x/hcltechx-mfe-wrapper 1.0.18 → 1.0.20
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-BhC9fcBK.mjs → ArticleVodListComponent-CHnqag9b.mjs} +2 -2
- package/{ChallengeDetailComponent-a2-1SXW4.mjs → ChallengeDetailComponent-BmeP6FZ1.mjs} +3 -3
- package/{ChallengeSliderComponent-Rs05SYDh.mjs → ChallengeSliderComponent-CPdxf7-q.mjs} +3 -3
- package/{CommonContentComponent-DMYED0gU.mjs → CommonContentComponent-8JPy8nJ6.mjs} +3 -3
- package/{DailyMotion-_hNQmRIk.mjs → DailyMotion-D8UIGIEl.mjs} +2 -2
- package/{EngagementHomeComponent-BdOJMzso.mjs → EngagementHomeComponent-CVGzWcc7.mjs} +3 -3
- package/{EventDetailComponent-Dv5P99jT.mjs → EventDetailComponent-tRaFnwYj.mjs} +3 -3
- package/{EventListComponent-Dchsfqzz.mjs → EventListComponent-CKLSWeDv.mjs} +25 -25
- package/{Facebook-Brr6zTj8.mjs → Facebook-BLCOUjfZ.mjs} +2 -2
- package/{FilePlayer-hyVP7MCn.mjs → FilePlayer-D68wVaHK.mjs} +2 -2
- package/IndividualChallengeComponent-gUfQv-rL.mjs +190 -0
- package/{Kaltura-Dm0iFq0_.mjs → Kaltura-PX7BhLfz.mjs} +2 -2
- package/{Mixcloud-BxCqkqBI.mjs → Mixcloud-B7Af0Mn0.mjs} +2 -2
- package/{Mux-EuvXxP57.mjs → Mux-1HZ1W-lE.mjs} +2 -2
- package/{PageComponent-rF8u6X9M.mjs → PageComponent-BSP0QUvr.mjs} +2 -2
- package/{Preview-Cn_VJga7.mjs → Preview-nCs4zsNM.mjs} +1 -1
- package/{RecentCarousel-CTKvh3_T.mjs → RecentCarousel-B42bOjYP.mjs} +2 -2
- package/{Share-vHOqy5cA.mjs → Share-B0TMKNSe.mjs} +2 -2
- package/{SoundCloud-BXf1CmYj.mjs → SoundCloud-EUx8hlx1.mjs} +2 -2
- package/{Streamable-CRhFsgCM.mjs → Streamable-By-i7qcF.mjs} +2 -2
- package/ToggleButton--p_geS1j.mjs +231767 -0
- package/{Twitch-C8vuPU3L.mjs → Twitch-CJ3aP-xV.mjs} +2 -2
- package/{Vidyard-BI-z_7aH.mjs → Vidyard-DXacKBYx.mjs} +2 -2
- package/{Vimeo-Cg66sfnT.mjs → Vimeo-B6cLX7vD.mjs} +2 -2
- package/{Wistia-CFM3uvZW.mjs → Wistia-DtFJL0ep.mjs} +2 -2
- package/{YouTube-HRwM8_Rt.mjs → YouTube-i5y4gwEO.mjs} +2 -2
- package/{index-JLQT9i3x.mjs → index-CPQ9TrZQ.mjs} +2 -2
- package/{index-BBX-vK5Q.mjs → index-Cs-Nr3u2.mjs} +813 -765
- package/index.mjs +1 -1
- package/lib/services/fetchQueries.d.ts +1 -1
- package/{mutateApi-C3NgPEmY.mjs → mutateApi-D7sw1yK3.mjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/IndividualChallengeComponent-B_T7b3Ur.mjs +0 -180
- package/ToggleButton-BjTEhXO6.mjs +0 -60508
|
@@ -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--p_geS1j.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-Cs-Nr3u2.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--p_geS1j.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-Cs-Nr3u2.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-D7sw1yK3.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--p_geS1j.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-Cs-Nr3u2.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-D7sw1yK3.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-Cs-Nr3u2.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-D7sw1yK3.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-CPQ9TrZQ.mjs").then((t) => ({
|
|
10
10
|
default: t[T[l]]
|
|
11
11
|
}))
|
|
12
12
|
), c));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as P } from "./index-
|
|
1
|
+
import { m as P } from "./index-Cs-Nr3u2.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--p_geS1j.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 z } from "react/jsx-runtime";
|
|
2
|
-
import { f as F, a as J } from "./ToggleButton
|
|
2
|
+
import { f as F, a as J } from "./ToggleButton--p_geS1j.mjs";
|
|
3
3
|
import { useState as l, useEffect as K } from "react";
|
|
4
|
-
import { f as E, s, a as N } from "./index-
|
|
5
|
-
import { m as O } from "./mutateApi-
|
|
4
|
+
import { f as E, s, a as N } from "./index-Cs-Nr3u2.mjs";
|
|
5
|
+
import { m as O } from "./mutateApi-D7sw1yK3.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const v = async (w, g, y, D = "", t = "wellnessevent") => {
|
|
8
8
|
var f, d, o, 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--p_geS1j.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-Cs-Nr3u2.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-D7sw1yK3.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (h) => {
|
|
8
8
|
const {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import { E as U } from "./ToggleButton
|
|
2
|
+
import { E as M, f as U } from "./ToggleButton--p_geS1j.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-Cs-Nr3u2.mjs";
|
|
5
|
+
import { m as q } from "./mutateApi-D7sw1yK3.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const
|
|
7
|
+
const Q = ({
|
|
8
8
|
data: h,
|
|
9
|
-
prelemAnalyticsProp:
|
|
10
|
-
prelemAuthoringHelper:
|
|
11
|
-
secondaryArgs:
|
|
12
|
-
userId:
|
|
13
|
-
filters:
|
|
14
|
-
relativePath:
|
|
9
|
+
prelemAnalyticsProp: y,
|
|
10
|
+
prelemAuthoringHelper: p,
|
|
11
|
+
secondaryArgs: f,
|
|
12
|
+
userId: m,
|
|
13
|
+
filters: P,
|
|
14
|
+
relativePath: w
|
|
15
15
|
}) => {
|
|
16
|
-
const [
|
|
16
|
+
const [I, S] = c({}), [D, _] = c({}), [v, E] = c({}), [T, u] = c(!1), {
|
|
17
17
|
prelemBaseEndpoint: { language: g, site_host: d }
|
|
18
|
-
} =
|
|
18
|
+
} = f, r = localStorage.getItem("userId") || m, G = async (l, t, i) => {
|
|
19
19
|
var n, o;
|
|
20
20
|
if (!r) {
|
|
21
21
|
a("User ID is not available. Please log in.");
|
|
@@ -39,14 +39,14 @@ const O = ({
|
|
|
39
39
|
try {
|
|
40
40
|
u(!0);
|
|
41
41
|
const o = {
|
|
42
|
-
date: "",
|
|
42
|
+
date: U(/* @__PURE__ */ new Date(), "yyyy-MM-dd"),
|
|
43
43
|
user_id: r
|
|
44
44
|
}, e = await B.fetchPersonalTracker(o, g, d);
|
|
45
45
|
if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
|
|
46
46
|
a((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) {
|
|
48
48
|
const { steps: s, calories: k, distance: L, individual_challenge_info: b } = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_fetchPersonalTracker;
|
|
49
|
-
E(s),
|
|
49
|
+
E(s), S(b), _({ calories: k, distance: L });
|
|
50
50
|
} else
|
|
51
51
|
console.error("GetPersonalData API failed");
|
|
52
52
|
} catch (o) {
|
|
@@ -55,28 +55,28 @@ const O = ({
|
|
|
55
55
|
u(!1);
|
|
56
56
|
}
|
|
57
57
|
}, A = {
|
|
58
|
-
stepsData:
|
|
58
|
+
stepsData: v,
|
|
59
59
|
loading: T,
|
|
60
60
|
updateGoals: G
|
|
61
61
|
};
|
|
62
62
|
return j(() => {
|
|
63
63
|
C();
|
|
64
64
|
}, []), /* @__PURE__ */ x(
|
|
65
|
-
|
|
65
|
+
M,
|
|
66
66
|
{
|
|
67
67
|
content: h,
|
|
68
|
-
analytics:
|
|
69
|
-
authoringHelper:
|
|
70
|
-
secondaryArgs:
|
|
68
|
+
analytics: y,
|
|
69
|
+
authoringHelper: p,
|
|
70
|
+
secondaryArgs: f,
|
|
71
71
|
stepsDetails: A,
|
|
72
|
-
filters:
|
|
73
|
-
relativePath:
|
|
74
|
-
individual_challenge_info:
|
|
75
|
-
commonInfo:
|
|
76
|
-
userId:
|
|
72
|
+
filters: P,
|
|
73
|
+
relativePath: w,
|
|
74
|
+
individual_challenge_info: I,
|
|
75
|
+
commonInfo: D,
|
|
76
|
+
userId: m
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
};
|
|
80
80
|
export {
|
|
81
|
-
|
|
81
|
+
Q as default
|
|
82
82
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as _ } from "./index-
|
|
1
|
+
import { m as _ } from "./index-Cs-Nr3u2.mjs";
|
|
2
2
|
import m from "react";
|
|
3
|
-
import { y as P, z as g } from "./ToggleButton
|
|
3
|
+
import { y as P, z as g } from "./ToggleButton--p_geS1j.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 { m as b } from "./index-
|
|
1
|
+
import { m as b } from "./index-Cs-Nr3u2.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--p_geS1j.mjs";
|
|
4
4
|
function R(s, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { jsx as R } from "react/jsx-runtime";
|
|
2
|
+
import { I as ee } from "./ToggleButton--p_geS1j.mjs";
|
|
3
|
+
import { useState as m, useEffect as re } from "react";
|
|
4
|
+
import { f as y, s as u, a as q } from "./index-Cs-Nr3u2.mjs";
|
|
5
|
+
import { m as w } from "./mutateApi-D7sw1yK3.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const ce = (E) => {
|
|
8
|
+
const {
|
|
9
|
+
pageData: n = {},
|
|
10
|
+
secondaryArgs: I,
|
|
11
|
+
prelemAnalyticsProp: G,
|
|
12
|
+
prelemAuthoringHelper: T,
|
|
13
|
+
userId: P,
|
|
14
|
+
cugId: B
|
|
15
|
+
} = E || {}, {
|
|
16
|
+
prelemBaseEndpoint: { site_host: f, language: h }
|
|
17
|
+
} = I, d = localStorage.getItem("userId") || P, [j, g] = m(!1), [D, _] = m(!1), [U, k] = m(0), [b, x] = m(0), [H, J] = m([]), [z, A] = m([]), [F, K] = m([]), [M, C] = m({}), [N, O] = m({}), [Q, V] = m([]), W = 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 w.joinChallenge(a, h, f);
|
|
27
|
+
((l = t == null ? void 0 : t.errors) == null ? void 0 : l.length) > 0 ? u((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 ? (q((e = (r = t == null ? void 0 : t.data) == null ? void 0 : r.community_joinChallenge) == null ? void 0 : e.message), _(!0), S()) : 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
|
+
}, S = async () => {
|
|
34
|
+
var c, l, i, o;
|
|
35
|
+
try {
|
|
36
|
+
g(!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, f);
|
|
42
|
+
if (((c = r == null ? void 0 : r.errors) == null ? void 0 : c.length) > 0)
|
|
43
|
+
u((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: L
|
|
50
|
+
} = (o = r == null ? void 0 : r.data) == null ? void 0 : o.community_challengesDetail;
|
|
51
|
+
_(a), k(e), x(t), V(L);
|
|
52
|
+
} else
|
|
53
|
+
console.error("GetChallengeDetails API failed");
|
|
54
|
+
} catch (s) {
|
|
55
|
+
console.error("Error in GetChallengeDetails API:", s);
|
|
56
|
+
} finally {
|
|
57
|
+
g(!1);
|
|
58
|
+
}
|
|
59
|
+
}, X = 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, f);
|
|
67
|
+
if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
|
|
68
|
+
u((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
|
+
C(a), O(t);
|
|
72
|
+
} else
|
|
73
|
+
console.error("GetPersonalData API failed"), u("GetPersonalData API failed");
|
|
74
|
+
} catch (r) {
|
|
75
|
+
u("Something went wrong !"), console.error("Error in GetPersonalData API:", r), u("Error in GetPersonalData API"), C({});
|
|
76
|
+
} finally {
|
|
77
|
+
g(!1);
|
|
78
|
+
}
|
|
79
|
+
}, Y = 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, f);
|
|
87
|
+
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
88
|
+
u((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
|
+
J(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
|
+
}, Z = async (c) => {
|
|
100
|
+
var l, i;
|
|
101
|
+
try {
|
|
102
|
+
const o = {
|
|
103
|
+
input: c
|
|
104
|
+
}, s = await w.setUpChallenge(o, h, f);
|
|
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" ? q("Challenge has been setup successfully!") : u("Something went wrong, please try after sometime !");
|
|
106
|
+
} catch (o) {
|
|
107
|
+
console.error("Error in update goal API:", o), u("Something went wrong, please try after sometime !");
|
|
108
|
+
}
|
|
109
|
+
}, $ = 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, f);
|
|
125
|
+
if (((i = t == null ? void 0 : t.errors) == null ? void 0 : i.length) > 0)
|
|
126
|
+
u((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: L } = (e = t == null ? void 0 : t.data) == null ? void 0 : e.community_sentRequests;
|
|
129
|
+
A(L);
|
|
130
|
+
} else
|
|
131
|
+
console.error("GetSentRequestList API failed");
|
|
132
|
+
} catch (a) {
|
|
133
|
+
console.error("Error in GetSentRequestList API:", a), A([]);
|
|
134
|
+
} finally {
|
|
135
|
+
g(!1);
|
|
136
|
+
}
|
|
137
|
+
}, v = 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, f);
|
|
145
|
+
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
146
|
+
u((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
|
+
K(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
|
+
}, p = {
|
|
158
|
+
joinChallenge: W,
|
|
159
|
+
loading: j,
|
|
160
|
+
isEnrolled: D,
|
|
161
|
+
enrolledParticipants: U,
|
|
162
|
+
userAchieved: b,
|
|
163
|
+
leaderBoardList: H,
|
|
164
|
+
stepsData: M,
|
|
165
|
+
setUpChallenge: Z,
|
|
166
|
+
sentRequestList: z,
|
|
167
|
+
receivedRequestList: F,
|
|
168
|
+
getSentRequestList: $,
|
|
169
|
+
getReceivedRequestList: v,
|
|
170
|
+
derivedChallenge: Q,
|
|
171
|
+
deviceInfo: N
|
|
172
|
+
};
|
|
173
|
+
return re(() => {
|
|
174
|
+
n != null && n.page && (S(), Y(), X(), v());
|
|
175
|
+
}, [n]), /* @__PURE__ */ R(
|
|
176
|
+
ee,
|
|
177
|
+
{
|
|
178
|
+
content: n,
|
|
179
|
+
analytics: G,
|
|
180
|
+
authoringHelper: T,
|
|
181
|
+
secondaryArgs: I,
|
|
182
|
+
challengeDetails: p,
|
|
183
|
+
userId: P,
|
|
184
|
+
cugId: B
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
};
|
|
188
|
+
export {
|
|
189
|
+
ce as default
|
|
190
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as y } from "./index-
|
|
1
|
+
import { m as y } from "./index-Cs-Nr3u2.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as m, z as _ } from "./ToggleButton
|
|
3
|
+
import { y as m, z as _ } from "./ToggleButton--p_geS1j.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 { m as y } from "./index-
|
|
1
|
+
import { m as y } from "./index-Cs-Nr3u2.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--p_geS1j.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 { m as P } from "./index-
|
|
1
|
+
import { m as P } from "./index-Cs-Nr3u2.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { z as E } from "./ToggleButton
|
|
3
|
+
import { z as E } from "./ToggleButton--p_geS1j.mjs";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { C as e } from "./index-
|
|
2
|
+
import { C as e } from "./index-Cs-Nr3u2.mjs";
|
|
3
3
|
import T from "react";
|
|
4
4
|
import { M as E } from "./Mapping-jqmNMEpL.mjs";
|
|
5
5
|
import "react-dom";
|
|
@@ -38,7 +38,7 @@ const v = (l) => ({
|
|
|
38
38
|
bucketName: e.bucketName
|
|
39
39
|
}), d = {};
|
|
40
40
|
Object.keys(E).forEach((l) => (d[l] = T.lazy(
|
|
41
|
-
() => import("./index-
|
|
41
|
+
() => import("./index-CPQ9TrZQ.mjs").then((n) => ({
|
|
42
42
|
default: n[E[l]]
|
|
43
43
|
}))
|
|
44
44
|
), d));
|
|
@@ -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 B, p as z, q as T, g as H, t as M, V as U, P as V, L as F, u as j, v as q, w as W, x as O } from "./ToggleButton
|
|
2
|
+
import { m as y, B as i, T as x, o as B, p as z, q as T, g as H, t as M, V as U, P as V, L as F, u as j, v as q, w as W, x as O } from "./ToggleButton--p_geS1j.mjs";
|
|
3
3
|
import Y, { useState as G, useEffect as J } from "react";
|
|
4
|
-
import { n as K } from "./index-
|
|
4
|
+
import { n as K } from "./index-Cs-Nr3u2.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const Q = y(() => {
|
|
7
7
|
const r = K();
|
|
@@ -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, c as pe, d as we, _ as j, u as fe, e as ge, h as me, P as p, i as be, k as ve, j as ze, l as ee, m as Fe, G as P, n 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--p_geS1j.mjs";
|
|
5
|
+
import { g as he, c as pe, d as we, _ as j, u as fe, e as ge, h as me, P as p, i as be, k as ve, j as ze, l as ee, m as Fe, G as P, n as Ke } from "./index-Cs-Nr3u2.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 { m as P } from "./index-
|
|
1
|
+
import { m as P } from "./index-Cs-Nr3u2.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--p_geS1j.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 { m } from "./index-
|
|
1
|
+
import { m } from "./index-Cs-Nr3u2.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--p_geS1j.mjs";
|
|
4
4
|
function P(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|