@platform-x/hcltechx-mfe-wrapper 2.0.6 → 2.0.8
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-BO6fYK6G.mjs → ArticleVodListComponent-BQ4-5d3R.mjs} +2 -2
- package/ChallengeDetailComponent-Cvbs4ESm.mjs +141 -0
- package/{ChallengeSliderComponent-DIf0rc9d.mjs → ChallengeSliderComponent-DRzdfWL_.mjs} +3 -3
- package/{CommonContentComponent-C2vOKVHX.mjs → CommonContentComponent-qzrpY_Vl.mjs} +3 -3
- package/{DailyMotion-DMSbXrjr.mjs → DailyMotion-BDmqmiKF.mjs} +2 -2
- package/{EngagementHomeComponent-CqIxkPw3.mjs → EngagementHomeComponent-Hf5EMhJ1.mjs} +3 -3
- package/{EventDetailComponent-bL2umW47.mjs → EventDetailComponent-BfT5aKKB.mjs} +3 -3
- package/{EventListComponent-DzZYAsnR.mjs → EventListComponent-Bv7_IUOu.mjs} +3 -3
- package/{ExperienceZone-Cu3ac6zL.mjs → ExperienceZone-COEKoTj9.mjs} +1 -1
- package/{ExperienceZoneComponent-CxzxqSLE.mjs → ExperienceZoneComponent-BrZl4X18.mjs} +3 -3
- package/{Facebook-B2nR3282.mjs → Facebook-DRF8IVWw.mjs} +2 -2
- package/{FilePlayer-DkuwigBM.mjs → FilePlayer-DedKJqpZ.mjs} +2 -2
- package/{IndividualChallengeComponent-CVfnktf-.mjs → IndividualChallengeComponent-CzqfmdCA.mjs} +12 -11
- package/{Kaltura-BhIetmvR.mjs → Kaltura-CUa0xc8s.mjs} +2 -2
- package/{Mixcloud-Bbdb4-zO.mjs → Mixcloud-BO4WgOhx.mjs} +2 -2
- package/{Mux-Bg6Q7vCF.mjs → Mux-Be-6AdI1.mjs} +2 -2
- package/{PageComponent-Bclp4upa.mjs → PageComponent-rK6ftzt8.mjs} +2 -2
- package/{Preview-D3KoHyFJ.mjs → Preview-BJZBw-YS.mjs} +1 -1
- package/{RecentCarousel-CN5xE8xA.mjs → RecentCarousel-w1peJJAT.mjs} +2 -2
- package/{Share-BJVZY37j.mjs → Share-DqJha0Vc.mjs} +2 -2
- package/{SoundCloud-mwl1Ab7b.mjs → SoundCloud-mDC2s7Xj.mjs} +2 -2
- package/{Streamable-BLGDWa7y.mjs → Streamable-DVPU_HtM.mjs} +2 -2
- package/{ToggleButton-EkD5p5iz.mjs → ToggleButton-DvmoKbv2.mjs} +5685 -5666
- package/{Twitch-CrVyypWk.mjs → Twitch-Buvx8KeC.mjs} +2 -2
- package/{Vidyard-qD3Srt5f.mjs → Vidyard-Bx7R1SQT.mjs} +2 -2
- package/{Vimeo-D9CrKPV-.mjs → Vimeo-CxQ3mkDw.mjs} +2 -2
- package/{Wistia--XMw5rEo.mjs → Wistia-Cu6BKPvJ.mjs} +2 -2
- package/{YouTube-BszHzurd.mjs → YouTube--yt0ZoOn.mjs} +2 -2
- package/{index-BVpO7HyU.mjs → index-Bp0KqIgF.mjs} +12 -11
- package/{index-C4qENLR0.mjs → index-Cx8EFUCS.mjs} +3 -3
- package/index.mjs +1 -1
- package/lib/services/fetchQueries.d.ts +1 -1
- package/{mutateApi-B9qVMnwc.mjs → mutateApi-C-HI_T5u.mjs} +1 -1
- package/package.json +1 -1
- package/ChallengeDetailComponent-CxpV71lg.mjs +0 -134
|
@@ -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-DvmoKbv2.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-Bp0KqIgF.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const f = ({
|
|
7
7
|
data: t,
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { jsx as V } from "react/jsx-runtime";
|
|
2
|
+
import { b as W } from "./ToggleButton-DvmoKbv2.mjs";
|
|
3
|
+
import { useState as a, useEffect as X } from "react";
|
|
4
|
+
import { s as f, f as _ } from "./index-Bp0KqIgF.mjs";
|
|
5
|
+
import { m as Y } from "./mutateApi-C-HI_T5u.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const oe = (C) => {
|
|
8
|
+
var E;
|
|
9
|
+
const {
|
|
10
|
+
pageData: o = {},
|
|
11
|
+
secondaryArgs: P,
|
|
12
|
+
prelemAnalyticsProp: S,
|
|
13
|
+
prelemAuthoringHelper: w,
|
|
14
|
+
userId: u,
|
|
15
|
+
filters: B
|
|
16
|
+
} = C || {}, {
|
|
17
|
+
prelemBaseEndpoint: { language: g, site_host: h }
|
|
18
|
+
} = P, [T, c] = a(!1), [G, I] = a(!1), [j, D] = a(0), [b, U] = a(0), [k, J] = a([]), [x, A] = a(!1), [H, K] = a({}), [N, O] = a("0"), y = o != null && o.target_type && (o == null ? void 0 : o.target_type) !== "" ? (E = JSON.parse(o == null ? void 0 : o.target_type)[0]) == null ? void 0 : E.label : "steps", d = localStorage.getItem("userId") || u, q = async (i) => {
|
|
19
|
+
var s, n, l, t;
|
|
20
|
+
if (!d) {
|
|
21
|
+
f("User ID is not available. Please log in.");
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
c(!0);
|
|
26
|
+
const r = {
|
|
27
|
+
input: {
|
|
28
|
+
...i,
|
|
29
|
+
userId: d
|
|
30
|
+
}
|
|
31
|
+
}, e = await Y.joinChallenge(r, g, h);
|
|
32
|
+
((s = e == null ? void 0 : e.errors) == null ? void 0 : s.length) > 0 ? f((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message) : (t = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_joinChallenge) != null && t.id ? (I(!0), await L(), await v(), A(!0)) : console.error("Join Challenge API failed");
|
|
33
|
+
} catch (r) {
|
|
34
|
+
console.error("Error in Join Challenge API:", r);
|
|
35
|
+
} finally {
|
|
36
|
+
c(!1);
|
|
37
|
+
}
|
|
38
|
+
}, L = async () => {
|
|
39
|
+
var i, s, n, l;
|
|
40
|
+
if (!d) {
|
|
41
|
+
f("User ID is not available. Please log in.");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
try {
|
|
45
|
+
c(!0);
|
|
46
|
+
let t = {};
|
|
47
|
+
y === "Km" || y === "miles" ? t = {
|
|
48
|
+
challenge_id: o == null ? void 0 : o.page,
|
|
49
|
+
user_id: localStorage.getItem("userId") || u,
|
|
50
|
+
target_type: y
|
|
51
|
+
} : t = {
|
|
52
|
+
challenge_id: o == null ? void 0 : o.page,
|
|
53
|
+
user_id: localStorage.getItem("userId") || u
|
|
54
|
+
};
|
|
55
|
+
const r = await _.getChallengeDetails(t, g, h);
|
|
56
|
+
if (((i = r == null ? void 0 : r.errors) == null ? void 0 : i.length) > 0)
|
|
57
|
+
f((s = r == null ? void 0 : r.errors[0]) == null ? void 0 : s.message);
|
|
58
|
+
else if ((n = r == null ? void 0 : r.data) != null && n.community_challengesDetail) {
|
|
59
|
+
const {
|
|
60
|
+
total_participant: e,
|
|
61
|
+
is_joined: m,
|
|
62
|
+
user_steps: M = 0,
|
|
63
|
+
total_distance_covered: Q = "0"
|
|
64
|
+
} = (l = r == null ? void 0 : r.data) == null ? void 0 : l.community_challengesDetail;
|
|
65
|
+
I(m), D(e), U(M), O(Q);
|
|
66
|
+
} else
|
|
67
|
+
console.error("GetEventDetails API failed");
|
|
68
|
+
} catch (t) {
|
|
69
|
+
console.error("Error in GetEventDetails API:", t);
|
|
70
|
+
} finally {
|
|
71
|
+
c(!1);
|
|
72
|
+
}
|
|
73
|
+
}, v = async () => {
|
|
74
|
+
var i, s, n, l, t;
|
|
75
|
+
try {
|
|
76
|
+
c(!0);
|
|
77
|
+
const r = {
|
|
78
|
+
challenge_id: o == null ? void 0 : o.page,
|
|
79
|
+
user_id: d
|
|
80
|
+
}, e = await _.getLeaderBoardList(r, g, h);
|
|
81
|
+
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
82
|
+
f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
|
|
83
|
+
else if ((l = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_getLeaderBoardList) != null && l.records) {
|
|
84
|
+
const { records: m } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_getLeaderBoardList;
|
|
85
|
+
J(m);
|
|
86
|
+
} else
|
|
87
|
+
console.error("GetLeaderBoardList API failed");
|
|
88
|
+
} catch (r) {
|
|
89
|
+
console.error("Error in GetLeaderBoardList API:", r);
|
|
90
|
+
} finally {
|
|
91
|
+
c(!1);
|
|
92
|
+
}
|
|
93
|
+
}, z = async (i = "") => {
|
|
94
|
+
var s, n, l, t;
|
|
95
|
+
try {
|
|
96
|
+
c(!0);
|
|
97
|
+
const r = {
|
|
98
|
+
date: i,
|
|
99
|
+
user_id: d
|
|
100
|
+
}, e = await _.fetchPersonalTracker(r, g, h);
|
|
101
|
+
if (((s = e == null ? void 0 : e.errors) == null ? void 0 : s.length) > 0)
|
|
102
|
+
f((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
|
|
103
|
+
else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
|
|
104
|
+
const { device_info: m } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_fetchPersonalTracker;
|
|
105
|
+
K(m);
|
|
106
|
+
} else
|
|
107
|
+
console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
|
|
108
|
+
} catch (r) {
|
|
109
|
+
console.error("Error in GetPersonalData API:", r);
|
|
110
|
+
} finally {
|
|
111
|
+
c(!1);
|
|
112
|
+
}
|
|
113
|
+
}, F = {
|
|
114
|
+
joinChallenge: q,
|
|
115
|
+
loading: T,
|
|
116
|
+
isEnrolled: G,
|
|
117
|
+
enrolledParticipants: j,
|
|
118
|
+
userAchieved: b,
|
|
119
|
+
leaderBoardList: k,
|
|
120
|
+
showPopup: x,
|
|
121
|
+
setShowPopup: A,
|
|
122
|
+
deviceInfo: H,
|
|
123
|
+
userAchievedDistance: N
|
|
124
|
+
};
|
|
125
|
+
return X(() => {
|
|
126
|
+
o != null && o.page && (L(), v(), z());
|
|
127
|
+
}, [o]), /* @__PURE__ */ V(
|
|
128
|
+
W,
|
|
129
|
+
{
|
|
130
|
+
content: o,
|
|
131
|
+
analytics: S,
|
|
132
|
+
authoringHelper: w,
|
|
133
|
+
secondaryArgs: P,
|
|
134
|
+
challengeDetails: F,
|
|
135
|
+
filters: B
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
export {
|
|
140
|
+
oe as default
|
|
141
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as W } from "react/jsx-runtime";
|
|
2
|
-
import { f as X, C as Y } from "./ToggleButton-
|
|
2
|
+
import { f as X, C as Y } from "./ToggleButton-DvmoKbv2.mjs";
|
|
3
3
|
import { useState as a, useEffect as Z } from "react";
|
|
4
|
-
import { C as $, f as _, s as c, a as V } from "./index-
|
|
5
|
-
import { m as R } from "./mutateApi-
|
|
4
|
+
import { C as $, f as _, s as c, a as V } from "./index-Bp0KqIgF.mjs";
|
|
5
|
+
import { m as R } from "./mutateApi-C-HI_T5u.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const ae = (T) => {
|
|
8
8
|
var I, 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-Bp0KqIgF.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-C-HI_T5u.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-Cx8EFUCS.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-Bp0KqIgF.mjs";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import { z as D, F as O } from "./ToggleButton-
|
|
3
|
+
import { z as D, F as O } from "./ToggleButton-DvmoKbv2.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 ee } from "react/jsx-runtime";
|
|
2
|
-
import { f as te, a as oe } from "./ToggleButton-
|
|
2
|
+
import { f as te, a as oe } from "./ToggleButton-DvmoKbv2.mjs";
|
|
3
3
|
import { useState as o, useEffect as ae } from "react";
|
|
4
|
-
import { C as ne, f as k, s as i, a as se } from "./index-
|
|
5
|
-
import { m as re } from "./mutateApi-
|
|
4
|
+
import { C as ne, f as k, s as i, a as se } from "./index-Bp0KqIgF.mjs";
|
|
5
|
+
import { m as re } from "./mutateApi-C-HI_T5u.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const A = async (D, d, I, u = "", t = "wellnessevent") => {
|
|
8
8
|
var g, h, n, s;
|
|
@@ -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-DvmoKbv2.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-Bp0KqIgF.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-C-HI_T5u.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 N } from "./ToggleButton-
|
|
2
|
+
import { E as M, f as N } from "./ToggleButton-DvmoKbv2.mjs";
|
|
3
3
|
import { useState as c, useEffect as U } from "react";
|
|
4
|
-
import { C as j, s as n, f as B, a as H } from "./index-
|
|
5
|
-
import { m as O } from "./mutateApi-
|
|
4
|
+
import { C as j, s as n, f as B, a as H } from "./index-Bp0KqIgF.mjs";
|
|
5
|
+
import { m as O } from "./mutateApi-C-HI_T5u.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const V = ({
|
|
8
8
|
data: h,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { a7 as m, a8 as u, a9 as C, B as l, T, k as f, aa as k, ab as v, ac as x, v as b, ad as B } from "./ToggleButton-
|
|
2
|
+
import { a7 as m, a8 as u, a9 as C, B as l, T, k as f, aa as k, ab as v, ac as x, v as b, ad as B } from "./ToggleButton-DvmoKbv2.mjs";
|
|
3
3
|
const E = ({
|
|
4
4
|
content: r,
|
|
5
5
|
analytics: c,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as S } from "react/jsx-runtime";
|
|
2
|
-
import "./ToggleButton-
|
|
3
|
-
import { E as l } from "./ExperienceZone-
|
|
2
|
+
import "./ToggleButton-DvmoKbv2.mjs";
|
|
3
|
+
import { E as l } from "./ExperienceZone-COEKoTj9.mjs";
|
|
4
4
|
import { useState as T, useEffect as j } from "react";
|
|
5
|
-
import { f as k } from "./index-
|
|
5
|
+
import { f as k } from "./index-Bp0KqIgF.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const z = (h) => {
|
|
8
8
|
var t, c, r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as _ } from "./index-
|
|
1
|
+
import { n as _ } from "./index-Bp0KqIgF.mjs";
|
|
2
2
|
import P from "react";
|
|
3
|
-
import { z as g, F as m } from "./ToggleButton-
|
|
3
|
+
import { z as g, F as m } from "./ToggleButton-DvmoKbv2.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-Bp0KqIgF.mjs";
|
|
2
2
|
import _ from "react";
|
|
3
|
-
import { z as O, F as A } from "./ToggleButton-
|
|
3
|
+
import { z as O, F as A } from "./ToggleButton-DvmoKbv2.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-CVfnktf-.mjs → IndividualChallengeComponent-CzqfmdCA.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as ne } from "react/jsx-runtime";
|
|
2
|
-
import { I as oe } from "./ToggleButton-
|
|
2
|
+
import { I as oe } from "./ToggleButton-DvmoKbv2.mjs";
|
|
3
3
|
import { useState as u, useEffect as le } from "react";
|
|
4
|
-
import { C as ie, f as L, s as d, a as T } from "./index-
|
|
5
|
-
import { m as w } from "./mutateApi-
|
|
4
|
+
import { C as ie, f as L, s as d, a as T } from "./index-Bp0KqIgF.mjs";
|
|
5
|
+
import { m as w } from "./mutateApi-C-HI_T5u.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const he = (G) => {
|
|
8
8
|
const {
|
|
@@ -15,7 +15,7 @@ const he = (G) => {
|
|
|
15
15
|
filters: U
|
|
16
16
|
} = G || {}, {
|
|
17
17
|
prelemBaseEndpoint: { site_host: f, language: h }
|
|
18
|
-
} = P, m = localStorage.getItem("userId") || C, [k, g] = u(!1), [b, A] = u(!1), [x, H] = u(0), [J, N] = u(0), [O, z] = u([]), [F, v] = u([]), [K, M] = u([]), [Q, S] = u({}), [V, W] = u({}), [X, Y] = u([]), [Z,
|
|
18
|
+
} = P, m = localStorage.getItem("userId") || C, [k, g] = u(!1), [b, A] = u(!1), [x, H] = u(0), [J, N] = u(0), [O, z] = u([]), [F, v] = u([]), [K, M] = u([]), [Q, S] = u({}), [V, W] = u({}), [X, Y] = u([]), [Z, _] = u(!1), [$, p] = u({}), R = async (a) => {
|
|
19
19
|
var i, c, o, n, t, e;
|
|
20
20
|
try {
|
|
21
21
|
g(!0);
|
|
@@ -25,16 +25,16 @@ const he = (G) => {
|
|
|
25
25
|
userId: m
|
|
26
26
|
}
|
|
27
27
|
}, r = await w.joinChallenge(s, h, f);
|
|
28
|
-
((i = r == null ? void 0 : r.errors) == null ? void 0 : i.length) > 0 ? d((c = r == null ? void 0 : r.errors[0]) == null ? void 0 : c.message) : (n = (o = r == null ? void 0 : r.data) == null ? void 0 : o.community_joinChallenge) != null && n.id ? (T((e = (t = r == null ? void 0 : r.data) == null ? void 0 : t.community_joinChallenge) == null ? void 0 : e.message), A(!0),
|
|
28
|
+
((i = r == null ? void 0 : r.errors) == null ? void 0 : i.length) > 0 ? d((c = r == null ? void 0 : r.errors[0]) == null ? void 0 : c.message) : (n = (o = r == null ? void 0 : r.data) == null ? void 0 : o.community_joinChallenge) != null && n.id ? (T((e = (t = r == null ? void 0 : r.data) == null ? void 0 : t.community_joinChallenge) == null ? void 0 : e.message), A(!0), I()) : console.error("Join Challenge API failed");
|
|
29
29
|
} catch (s) {
|
|
30
30
|
console.error("Error in Join Challenge API:", s);
|
|
31
31
|
} finally {
|
|
32
32
|
g(!1);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, I = async () => {
|
|
35
35
|
var a, i, c, o;
|
|
36
36
|
try {
|
|
37
|
-
g(!0),
|
|
37
|
+
g(!0), _(!0);
|
|
38
38
|
const n = {
|
|
39
39
|
challenge_id: l == null ? void 0 : l.page,
|
|
40
40
|
user_id: m,
|
|
@@ -53,9 +53,9 @@ const he = (G) => {
|
|
|
53
53
|
} else
|
|
54
54
|
console.error("GetChallengeDetails API failed");
|
|
55
55
|
} catch (n) {
|
|
56
|
-
console.error("Error in GetChallengeDetails API:", n),
|
|
56
|
+
console.error("Error in GetChallengeDetails API:", n), _(!1);
|
|
57
57
|
} finally {
|
|
58
|
-
g(!1),
|
|
58
|
+
g(!1), _(!1);
|
|
59
59
|
}
|
|
60
60
|
}, q = async (a = "") => {
|
|
61
61
|
var i, c, o, n;
|
|
@@ -105,7 +105,7 @@ const he = (G) => {
|
|
|
105
105
|
const o = {
|
|
106
106
|
input: a
|
|
107
107
|
}, n = await w.setUpChallenge(o, h, f);
|
|
108
|
-
((c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.community_setupChallenge) == null ? void 0 : c.message) === "challenge has been setUp successfully" ? (T("Challenge has been setup successfully!"),
|
|
108
|
+
((c = (i = n == null ? void 0 : n.data) == null ? void 0 : i.community_setupChallenge) == null ? void 0 : c.message) === "challenge has been setUp successfully" ? (T("Challenge has been setup successfully!"), I()) : console.error("Something went wrong !");
|
|
109
109
|
} catch (o) {
|
|
110
110
|
console.error("Error in update goal API:", o), d("Something went wrong, please try after sometime !");
|
|
111
111
|
}
|
|
@@ -170,6 +170,7 @@ const he = (G) => {
|
|
|
170
170
|
receivedRequestList: K,
|
|
171
171
|
getSentRequestList: te,
|
|
172
172
|
getReceivedRequestList: E,
|
|
173
|
+
getChallengeDetails: I,
|
|
173
174
|
derivedChallenge: X,
|
|
174
175
|
deviceInfo: V,
|
|
175
176
|
pageLoader: Z,
|
|
@@ -178,7 +179,7 @@ const he = (G) => {
|
|
|
178
179
|
getLeaderBoardList: ee
|
|
179
180
|
};
|
|
180
181
|
return le(() => {
|
|
181
|
-
l != null && l.page && (
|
|
182
|
+
l != null && l.page && (I(), q(), E());
|
|
182
183
|
}, [l]), /* @__PURE__ */ ne(
|
|
183
184
|
oe,
|
|
184
185
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as f } from "./index-
|
|
1
|
+
import { n as f } from "./index-Bp0KqIgF.mjs";
|
|
2
2
|
import y from "react";
|
|
3
|
-
import { z as _, F as m } from "./ToggleButton-
|
|
3
|
+
import { z as _, F as m } from "./ToggleButton-DvmoKbv2.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 f } from "./index-
|
|
1
|
+
import { n as f } from "./index-Bp0KqIgF.mjs";
|
|
2
2
|
import y from "react";
|
|
3
|
-
import { z as m, F as g } from "./ToggleButton-
|
|
3
|
+
import { z as m, F as g } from "./ToggleButton-DvmoKbv2.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-Bp0KqIgF.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { F as E } from "./ToggleButton-
|
|
3
|
+
import { F as E } from "./ToggleButton-DvmoKbv2.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 I } from "react/jsx-runtime";
|
|
2
|
-
import { c as S } from "./index-
|
|
2
|
+
import { c as S } from "./index-Bp0KqIgF.mjs";
|
|
3
3
|
import B from "react";
|
|
4
4
|
import { M as b } from "./Mapping-jqmNMEpL.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const P = {};
|
|
7
7
|
Object.keys(b).forEach((o) => (P[o] = B.lazy(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-Cx8EFUCS.mjs").then((n) => ({
|
|
9
9
|
default: n[b[o]]
|
|
10
10
|
}))
|
|
11
11
|
), P));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { m as D, B as o, T as c, o as w, p as V, q as T, g as z, t as F, V as H, P as M, u as U, v as j, w as $, x as P, y as q } from "./ToggleButton-
|
|
2
|
+
import { m as D, B as o, T as c, o as w, p as V, q as T, g as z, t as F, V as H, P as M, u as U, v as j, w as $, x as P, y as q } from "./ToggleButton-DvmoKbv2.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-Bp0KqIgF.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const K = D(() => {
|
|
7
7
|
const r = 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-DvmoKbv2.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-Bp0KqIgF.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-Bp0KqIgF.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { z as b, F as v } from "./ToggleButton-
|
|
3
|
+
import { z as b, F as v } from "./ToggleButton-DvmoKbv2.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-Bp0KqIgF.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { z as _, F as b } from "./ToggleButton-
|
|
3
|
+
import { z as _, F as b } from "./ToggleButton-DvmoKbv2.mjs";
|
|
4
4
|
function P(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|