@platform-x/hcltechx-mfe-wrapper 2.0.50 → 2.0.52
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/{ArticleVodList-Bqxg7IhU.mjs → ArticleVodList-Cj_nAPnG.mjs} +380 -138
- package/ArticleVodListComponent-COHApmSr.mjs +37 -0
- package/{ChallengeDetailComponent-DqAtkTfr.mjs → ChallengeDetailComponent-kF-tb095.mjs} +52 -44
- package/CommonContentComponent-F8B9Upz1.mjs +80 -0
- package/{DailyMotion-CXUu6PG2.mjs → DailyMotion-0-c2CjmZ.mjs} +3 -3
- package/{EngagementHomeComponent-38V_tA69.mjs → EngagementHomeComponent-B6LFyKjA.mjs} +60 -52
- package/{EventDetailComponent-BIP4ORuv.mjs → EventDetailComponent-Cl8k2wJl.mjs} +42 -34
- package/{EventList-Dl3X73Bh.mjs → EventList-CxFoCi9G.mjs} +1282 -470
- package/EventListComponent-C3kGym6X.mjs +93 -0
- package/{Facebook-CqkX0iWt.mjs → Facebook-D3mBmxJ4.mjs} +1 -1
- package/{FilePlayer-DnO2C4yT.mjs → FilePlayer-ChxlE7Mq.mjs} +3 -3
- package/{FilterModal-CcBUM-si.mjs → FilterModal-Co-pXytt.mjs} +211 -82
- package/{IndividualChallengeComponent-C7V3IIXr.mjs → IndividualChallengeComponent-lcfNvAG2.mjs} +48 -40
- package/{Kaltura-Cv56BaXW.mjs → Kaltura-CVM_RV_2.mjs} +1 -1
- package/{Mixcloud-Dl4FADxu.mjs → Mixcloud-CrAs0_VC.mjs} +1 -1
- package/{Mux-BOhOsoTR.mjs → Mux-DUOqA2mZ.mjs} +1 -1
- package/PageComponent-C1KnYfvg.mjs +101 -0
- package/{Preview-DWu7kh4u.mjs → Preview-BAaYuYFo.mjs} +1 -1
- package/RecentCarousel-Ijkg2aEl.mjs +342 -0
- package/Share-DxWLmWXU.mjs +1938 -0
- package/{SoundCloud-Cwhb-VLv.mjs → SoundCloud-CJSQ2ZP7.mjs} +3 -3
- package/{Streamable-fhJbKu3n.mjs → Streamable-CcMyPRKJ.mjs} +1 -1
- package/{Twitch-Cgt9Rrqo.mjs → Twitch-zIalaDyC.mjs} +4 -4
- package/{Vidyard-Zto8uUsP.mjs → Vidyard-DYZnDhS1.mjs} +3 -3
- package/{Vimeo-CrH4DAeh.mjs → Vimeo-B9h2Hwv0.mjs} +1 -1
- package/{Wistia-BUEAgZNS.mjs → Wistia-iTgHdNz1.mjs} +1 -1
- package/{YouTube-CFwrK-Ik.mjs → YouTube-jcHqrx6u.mjs} +15 -15
- package/{index-B-14G1yk.mjs → index-CFrb1iB4.mjs} +113475 -102227
- package/index-DpnyhOiJ.mjs +1235 -0
- package/index.mjs +2 -2
- package/package.json +2 -2
- package/ArticleVodListComponent-CTkahLKx.mjs +0 -29
- package/CommonContentComponent-D-4qdsGD.mjs +0 -72
- package/EventListComponent-BtfiiaEJ.mjs +0 -85
- package/PageComponent-CoPpBb5X.mjs +0 -73
- package/RecentCarousel--5EYC5V8.mjs +0 -247
- package/Share-BGwFzMRX.mjs +0 -1578
- package/index-AGK0xX7s.mjs +0 -704
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { j as s } from "./index-CFrb1iB4.mjs";
|
|
2
|
+
import { A as n } from "./ArticleVodList-Cj_nAPnG.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "./FilterModal-Co-pXytt.mjs";
|
|
7
|
+
const x = ({
|
|
8
|
+
data: o,
|
|
9
|
+
prelemAnalyticsProp: r,
|
|
10
|
+
prelemAuthoringHelper: e,
|
|
11
|
+
secondaryArgs: t,
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13
|
+
userId: p,
|
|
14
|
+
filters: i,
|
|
15
|
+
relativePath: m
|
|
16
|
+
}) => /* @__PURE__ */ s.jsxDEV(
|
|
17
|
+
n,
|
|
18
|
+
{
|
|
19
|
+
content: o,
|
|
20
|
+
analytics: r,
|
|
21
|
+
authoringHelper: e,
|
|
22
|
+
secondaryArgs: t,
|
|
23
|
+
filters: i,
|
|
24
|
+
relativePath: m
|
|
25
|
+
},
|
|
26
|
+
void 0,
|
|
27
|
+
!1,
|
|
28
|
+
{
|
|
29
|
+
fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/prelems/Components/ArticleVodListComponent.tsx",
|
|
30
|
+
lineNumber: 14,
|
|
31
|
+
columnNumber: 5
|
|
32
|
+
},
|
|
33
|
+
void 0
|
|
34
|
+
);
|
|
35
|
+
export {
|
|
36
|
+
x as default
|
|
37
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { j as Z, c as $, s as f, a as I, m as R } from "./index-CFrb1iB4.mjs";
|
|
2
|
+
import { useState as c, useEffect as ee } from "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const ne = (T) => {
|
|
6
|
-
var
|
|
6
|
+
var S;
|
|
7
7
|
const {
|
|
8
8
|
pageData: r = {},
|
|
9
9
|
secondaryArgs: A,
|
|
10
|
-
prelemAnalyticsProp:
|
|
11
|
-
prelemAuthoringHelper:
|
|
10
|
+
prelemAnalyticsProp: B,
|
|
11
|
+
prelemAuthoringHelper: D,
|
|
12
12
|
userId: P,
|
|
13
|
-
filters:
|
|
13
|
+
filters: b
|
|
14
14
|
} = T || {}, {
|
|
15
|
-
prelemBaseEndpoint: { language:
|
|
16
|
-
} = A, [
|
|
15
|
+
prelemBaseEndpoint: { language: g, site_host: h }
|
|
16
|
+
} = A, [j, u] = c(!1), [x, w] = c(!1), [G, k] = c(0), [U, N] = c(0), [L, J] = c([]), [H, v] = c(!1), [K, O] = c({}), [V, q] = c("0"), [E, z] = c(0), [F, M] = c(0), _ = r != null && r.target_type && (r == null ? void 0 : r.target_type) !== "" ? (S = JSON.parse(r == null ? void 0 : r.target_type)[0]) == null ? void 0 : S.label : "steps", d = localStorage.getItem("userId") || P, Q = async (a) => {
|
|
17
17
|
var n, l, i, o;
|
|
18
18
|
if (!d) {
|
|
19
19
|
f("User ID is not available. Please log in.");
|
|
@@ -23,18 +23,18 @@ const ne = (T) => {
|
|
|
23
23
|
u(!0);
|
|
24
24
|
const t = {
|
|
25
25
|
input: {
|
|
26
|
-
...
|
|
26
|
+
...a,
|
|
27
27
|
userId: d
|
|
28
28
|
}
|
|
29
|
-
}, e = await R.joinChallenge(t,
|
|
30
|
-
((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message) : (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_joinChallenge) != null && o.id ? (w(!0), await
|
|
29
|
+
}, e = await R.joinChallenge(t, g, h);
|
|
30
|
+
((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message) : (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_joinChallenge) != null && o.id ? (w(!0), await p(), await C(!0), v(!0)) : console.error("Join Challenge API failed");
|
|
31
31
|
} catch (t) {
|
|
32
32
|
console.error("Error in Join Challenge API:", t);
|
|
33
33
|
} finally {
|
|
34
34
|
u(!1);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
var
|
|
36
|
+
}, p = async () => {
|
|
37
|
+
var a, n, l, i;
|
|
38
38
|
if (!d) {
|
|
39
39
|
f("User ID is not available. Please log in.");
|
|
40
40
|
return;
|
|
@@ -50,17 +50,17 @@ const ne = (T) => {
|
|
|
50
50
|
challenge_id: r == null ? void 0 : r.page,
|
|
51
51
|
user_id: localStorage.getItem("userId") || P
|
|
52
52
|
};
|
|
53
|
-
const t = await
|
|
54
|
-
if (((
|
|
53
|
+
const t = await I.getChallengeDetails(o, g, h);
|
|
54
|
+
if (((a = t == null ? void 0 : t.errors) == null ? void 0 : a.length) > 0)
|
|
55
55
|
f((n = t == null ? void 0 : t.errors[0]) == null ? void 0 : n.message);
|
|
56
56
|
else if ((l = t == null ? void 0 : t.data) != null && l.community_challengesDetail) {
|
|
57
57
|
const {
|
|
58
58
|
total_participant: e,
|
|
59
|
-
is_joined:
|
|
59
|
+
is_joined: m,
|
|
60
60
|
user_steps: s = 0,
|
|
61
61
|
total_distance_covered: y = "0"
|
|
62
62
|
} = (i = t == null ? void 0 : t.data) == null ? void 0 : i.community_challengesDetail;
|
|
63
|
-
w(
|
|
63
|
+
w(m), k(e), N(s), q(y);
|
|
64
64
|
} else
|
|
65
65
|
console.error("GetEventDetails API failed");
|
|
66
66
|
} catch (o) {
|
|
@@ -68,20 +68,20 @@ const ne = (T) => {
|
|
|
68
68
|
} finally {
|
|
69
69
|
u(!1);
|
|
70
70
|
}
|
|
71
|
-
},
|
|
71
|
+
}, C = async (a = !1) => {
|
|
72
72
|
var n, l, i, o, t;
|
|
73
73
|
try {
|
|
74
74
|
u(!0);
|
|
75
|
-
const
|
|
75
|
+
const m = {
|
|
76
76
|
challenge_id: r == null ? void 0 : r.page,
|
|
77
77
|
user_id: d,
|
|
78
|
-
pagination:
|
|
79
|
-
}, s = await
|
|
78
|
+
pagination: a ? { start: 0, rows: 10 } : { start: E, rows: 10 }
|
|
79
|
+
}, s = await I.getLeaderBoardList(m, g, h);
|
|
80
80
|
if (((n = s == null ? void 0 : s.errors) == null ? void 0 : n.length) > 0)
|
|
81
81
|
f((l = s == null ? void 0 : s.errors[0]) == null ? void 0 : l.message);
|
|
82
82
|
else if ((o = (i = s == null ? void 0 : s.data) == null ? void 0 : i.community_getLeaderBoardList) != null && o.records) {
|
|
83
83
|
const { records: y, total_count: Y } = (t = s == null ? void 0 : s.data) == null ? void 0 : t.community_getLeaderBoardList;
|
|
84
|
-
|
|
84
|
+
J(a ? y : [...L, ...y]), z(a ? 10 : E + 10), M(Y);
|
|
85
85
|
} else
|
|
86
86
|
console.error("GetLeaderBoardList API failed");
|
|
87
87
|
} catch (e) {
|
|
@@ -89,19 +89,19 @@ const ne = (T) => {
|
|
|
89
89
|
} finally {
|
|
90
90
|
u(!1);
|
|
91
91
|
}
|
|
92
|
-
}, W = async (
|
|
92
|
+
}, W = async (a = "") => {
|
|
93
93
|
var n, l, i, o;
|
|
94
94
|
try {
|
|
95
95
|
u(!0);
|
|
96
96
|
const t = {
|
|
97
|
-
date:
|
|
97
|
+
date: a,
|
|
98
98
|
user_id: d
|
|
99
|
-
}, e = await
|
|
99
|
+
}, e = await I.fetchPersonalTracker(t, g, h);
|
|
100
100
|
if (((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0)
|
|
101
101
|
f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message);
|
|
102
102
|
else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
|
|
103
|
-
const { device_info:
|
|
104
|
-
O(
|
|
103
|
+
const { device_info: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
|
|
104
|
+
O(m);
|
|
105
105
|
} else
|
|
106
106
|
console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
|
|
107
107
|
} catch (t) {
|
|
@@ -110,31 +110,39 @@ const ne = (T) => {
|
|
|
110
110
|
u(!1);
|
|
111
111
|
}
|
|
112
112
|
}, X = {
|
|
113
|
-
joinChallenge:
|
|
114
|
-
loading:
|
|
115
|
-
isEnrolled:
|
|
116
|
-
enrolledParticipants:
|
|
117
|
-
userAchieved:
|
|
113
|
+
joinChallenge: Q,
|
|
114
|
+
loading: j,
|
|
115
|
+
isEnrolled: x,
|
|
116
|
+
enrolledParticipants: G,
|
|
117
|
+
userAchieved: U,
|
|
118
118
|
leaderBoardList: L,
|
|
119
|
-
showPopup:
|
|
119
|
+
showPopup: H,
|
|
120
120
|
setShowPopup: v,
|
|
121
|
-
deviceInfo:
|
|
122
|
-
userAchievedDistance:
|
|
123
|
-
totalParticipateCount:
|
|
121
|
+
deviceInfo: K,
|
|
122
|
+
userAchievedDistance: V,
|
|
123
|
+
totalParticipateCount: F
|
|
124
124
|
};
|
|
125
125
|
return ee(() => {
|
|
126
|
-
r != null && r.page && (
|
|
127
|
-
}, [r]), /* @__PURE__ */ Z(
|
|
126
|
+
r != null && r.page && (p(), C(), W());
|
|
127
|
+
}, [r]), /* @__PURE__ */ Z.jsxDEV(
|
|
128
128
|
$,
|
|
129
129
|
{
|
|
130
130
|
content: r,
|
|
131
|
-
analytics:
|
|
132
|
-
authoringHelper:
|
|
131
|
+
analytics: B,
|
|
132
|
+
authoringHelper: D,
|
|
133
133
|
secondaryArgs: A,
|
|
134
134
|
challengeDetails: X,
|
|
135
|
-
filters:
|
|
136
|
-
getLeaderBoardList:
|
|
137
|
-
}
|
|
135
|
+
filters: b,
|
|
136
|
+
getLeaderBoardList: C
|
|
137
|
+
},
|
|
138
|
+
void 0,
|
|
139
|
+
!1,
|
|
140
|
+
{
|
|
141
|
+
fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/contentTypes/Components/ChallengeDetailComponent.tsx",
|
|
142
|
+
lineNumber: 192,
|
|
143
|
+
columnNumber: 5
|
|
144
|
+
},
|
|
145
|
+
void 0
|
|
138
146
|
);
|
|
139
147
|
};
|
|
140
148
|
export {
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { F as N, j, a as L, s as b, m as O } from "./index-CFrb1iB4.mjs";
|
|
2
|
+
import J, { memo as M, useState as g, useEffect as $ } from "react";
|
|
3
|
+
import { M as w } from "./Mapping-DicSeRn3.mjs";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const c = {};
|
|
7
|
+
Object.keys(w).forEach((l) => (c[l] = J.lazy(
|
|
8
|
+
() => import("./index-DpnyhOiJ.mjs").then((o) => ({
|
|
9
|
+
default: o[w[l]]
|
|
10
|
+
}))
|
|
11
|
+
), c));
|
|
12
|
+
const B = (l) => {
|
|
13
|
+
var d, y, C, h, _, S;
|
|
14
|
+
const { pageData: o = {}, secondaryArgs: m = {}, filters: T, relativePath: v = "" } = l || {}, x = c[(o == null ? void 0 : o.content_type) || (o == null ? void 0 : o.tag_name)] || N, E = {
|
|
15
|
+
pageId: o == null ? void 0 : o.page,
|
|
16
|
+
pageTitle: o == null ? void 0 : o.title,
|
|
17
|
+
pageDesc: o == null ? void 0 : o.description,
|
|
18
|
+
pageTags: (y = (d = o == null ? void 0 : o.settings) == null ? void 0 : d.keywords) == null ? void 0 : y.join(", "),
|
|
19
|
+
isAuthoring: !1,
|
|
20
|
+
isSeoEnabled: (C = o == null ? void 0 : o.settings) == null ? void 0 : C.seo_blockIndexing,
|
|
21
|
+
isAnalyticsEnabled: o == null ? void 0 : o.analytics_enable
|
|
22
|
+
}, k = {
|
|
23
|
+
isModalShow: !0
|
|
24
|
+
}, [p, n] = g(!1), [A, I] = g([]), {
|
|
25
|
+
prelemBaseEndpoint: { site_host: u, language: a }
|
|
26
|
+
} = m, f = async () => {
|
|
27
|
+
var e, s;
|
|
28
|
+
try {
|
|
29
|
+
p || n(!0);
|
|
30
|
+
const t = await L.fetchPoll({ title: o.document_path }, a, u);
|
|
31
|
+
I((s = (e = t.data) == null ? void 0 : e.users_fetchContent) == null ? void 0 : s.options), n(!1);
|
|
32
|
+
} catch (t) {
|
|
33
|
+
n(!1), b(`${t}`);
|
|
34
|
+
}
|
|
35
|
+
}, P = async (e) => {
|
|
36
|
+
var s;
|
|
37
|
+
try {
|
|
38
|
+
n(!0);
|
|
39
|
+
const t = {
|
|
40
|
+
input: {
|
|
41
|
+
pollInfo: { ...e, start_date: "" }
|
|
42
|
+
}
|
|
43
|
+
}, i = await O.savePoll(t, a, u);
|
|
44
|
+
if (n(!1), (s = i == null ? void 0 : i.data) != null && s.users_saveContent) {
|
|
45
|
+
const r = JSON.parse(localStorage.getItem("TakenPoles") || "[]");
|
|
46
|
+
r != null && r.includes(o.page) || localStorage.setItem("TakenPoles", JSON.stringify([...r, o.page])), f();
|
|
47
|
+
}
|
|
48
|
+
} catch (t) {
|
|
49
|
+
n(!1), b(`${t}`);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return $(() => {
|
|
53
|
+
const e = JSON.parse(localStorage.getItem("TakenPoles") || "[]");
|
|
54
|
+
e != null && e.includes(o == null ? void 0 : o.page) && f();
|
|
55
|
+
}, []), /* @__PURE__ */ j.jsxDEV(
|
|
56
|
+
x,
|
|
57
|
+
{
|
|
58
|
+
content: o,
|
|
59
|
+
analytics: E,
|
|
60
|
+
authoringHelper: k,
|
|
61
|
+
secondaryArgs: m,
|
|
62
|
+
results: ((h = o == null ? void 0 : o.content_type) == null ? void 0 : h.toLowerCase()) === "poll" ? A : void 0,
|
|
63
|
+
onSubmit: ((_ = o == null ? void 0 : o.content_type) == null ? void 0 : _.toLowerCase()) === "poll" ? (e) => P(e) : void 0,
|
|
64
|
+
showLoading: ((S = o == null ? void 0 : o.content_type) == null ? void 0 : S.toLowerCase()) === "poll" ? p : void 0,
|
|
65
|
+
filters: T,
|
|
66
|
+
relativePath: v
|
|
67
|
+
},
|
|
68
|
+
void 0,
|
|
69
|
+
!1,
|
|
70
|
+
{
|
|
71
|
+
fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/contentTypes/Components/CommonContentComponent.tsx",
|
|
72
|
+
lineNumber: 89,
|
|
73
|
+
columnNumber: 5
|
|
74
|
+
},
|
|
75
|
+
void 0
|
|
76
|
+
);
|
|
77
|
+
}, V = M(B);
|
|
78
|
+
export {
|
|
79
|
+
V as default
|
|
80
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as P, a0 as v, a1 as D } from "./index-CFrb1iB4.mjs";
|
|
2
2
|
import O from "react";
|
|
3
3
|
function b(t, e) {
|
|
4
4
|
for (var r = 0; r < e.length; r++) {
|
|
@@ -126,10 +126,10 @@ class p extends c.Component {
|
|
|
126
126
|
n(p, "displayName", "DailyMotion");
|
|
127
127
|
n(p, "canPlay", f.canPlay.dailymotion);
|
|
128
128
|
n(p, "loopOnEnded", !0);
|
|
129
|
-
const K = /* @__PURE__ */ P(_),
|
|
129
|
+
const K = /* @__PURE__ */ P(_), k = /* @__PURE__ */ b({
|
|
130
130
|
__proto__: null,
|
|
131
131
|
default: K
|
|
132
132
|
}, [_]);
|
|
133
133
|
export {
|
|
134
|
-
|
|
134
|
+
k as D
|
|
135
135
|
};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as le, g as ie, E as ce, C as de, a as E, s as c, m as ge, b as me } from "./index-B-14G1yk.mjs";
|
|
1
|
+
import { f as re, g as le, j as ie, E as ce, C as de, a as k, s as c, m as me, b as ge } from "./index-CFrb1iB4.mjs";
|
|
3
2
|
import { useState as a, useEffect as ue } from "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const C = async (_, u, D, w = "", n = "wellnessevent", P = { start: 0, rows: 10 }, I = "", l = []) => {
|
|
6
6
|
var s, d, o, f;
|
|
7
|
-
const t = await
|
|
7
|
+
const t = await k.getContentSchemaListPagination(
|
|
8
8
|
{
|
|
9
9
|
searchTerm: w,
|
|
10
10
|
filter: (n == null ? void 0 : n.toLocaleLowerCase()) === "events" ? "wellnessevent" : n,
|
|
11
|
-
conditionString:
|
|
11
|
+
conditionString: I,
|
|
12
12
|
// filterValue?.toLocaleLowerCase() === "wellnessevent" ||
|
|
13
13
|
// filterValue?.toLocaleLowerCase() === "events"
|
|
14
14
|
// ? `hclplatformx_public_listing:true` //AND hclplatformx_end_date_time:[${currentDate} TO *]`
|
|
15
15
|
// : "",
|
|
16
16
|
exclude: l != null && l.includes("Vod") ? ["Pre Recorded"] : [],
|
|
17
|
-
pagination:
|
|
17
|
+
pagination: P,
|
|
18
18
|
contentTypes: l
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
_ || "en",
|
|
21
21
|
u
|
|
22
22
|
);
|
|
23
|
-
(d = (s = t == null ? void 0 : t.data) == null ? void 0 : s.publish_getContents) != null && d.records ?
|
|
24
|
-
},
|
|
23
|
+
(d = (s = t == null ? void 0 : t.data) == null ? void 0 : s.publish_getContents) != null && d.records ? D((f = (o = t == null ? void 0 : t.data) == null ? void 0 : o.publish_getContents) == null ? void 0 : f.records) : console.error("Something went wrong !");
|
|
24
|
+
}, De = (_) => {
|
|
25
25
|
const {
|
|
26
26
|
secondaryArgs: u,
|
|
27
|
-
prelemAnalyticsProp:
|
|
27
|
+
prelemAnalyticsProp: D,
|
|
28
28
|
prelemAuthoringHelper: w,
|
|
29
29
|
userId: n,
|
|
30
|
-
filters:
|
|
31
|
-
relativePath:
|
|
30
|
+
filters: P,
|
|
31
|
+
relativePath: I = "",
|
|
32
32
|
// articleData,
|
|
33
33
|
loader: l
|
|
34
|
-
} =
|
|
34
|
+
} = _ || {}, {
|
|
35
35
|
prelemBaseEndpoint: { language: t, site_host: s }
|
|
36
|
-
} = u, [d, o] = a(l), [f,
|
|
37
|
-
var
|
|
36
|
+
} = u, [d, o] = a(l), [f, A] = a({}), [x, S] = a({}), [b, T] = a(0), h = localStorage.getItem("userId") || n, [G, N] = a([]), [L, O] = a([]), [H, j] = a({}), [U, q] = a({}), [M, W] = a({}), [B, $] = a({}), [z, F] = a({}), [J, K] = a([]), y = async (v, i, p) => {
|
|
37
|
+
var m, g;
|
|
38
38
|
if (!h) {
|
|
39
39
|
c("User ID is not available. Please log in.");
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
try {
|
|
43
43
|
const r = {
|
|
44
|
-
input: { activity_type:
|
|
44
|
+
input: { activity_type: p, target: v.toString(), action: i },
|
|
45
45
|
user_id: h
|
|
46
|
-
}, e = await
|
|
47
|
-
((
|
|
46
|
+
}, e = await me.setPersonalGoal(r, t, s);
|
|
47
|
+
((g = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_setPersonalGoal) == null ? void 0 : g.message) === "Created Successfully!!!" && i === "goal" ? ge("Goal updated successfully!") : i !== "entry" && console.error("Something went wrong !");
|
|
48
48
|
} catch (r) {
|
|
49
49
|
console.error("Error in update goal API:", r), c("Something went wrong, please try after sometime !");
|
|
50
50
|
}
|
|
51
|
-
},
|
|
52
|
-
var i,
|
|
51
|
+
}, E = async (v = "") => {
|
|
52
|
+
var i, p, m, g;
|
|
53
53
|
if (!h) {
|
|
54
54
|
c("User ID is not available. Please log in.");
|
|
55
55
|
return;
|
|
@@ -59,14 +59,14 @@ const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10
|
|
|
59
59
|
const r = {
|
|
60
60
|
date: v,
|
|
61
61
|
user_id: h
|
|
62
|
-
}, e = await
|
|
62
|
+
}, e = await k.fetchPersonalTracker(r, t, s);
|
|
63
63
|
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
64
|
-
c((
|
|
65
|
-
else if ((
|
|
64
|
+
c((p = e == null ? void 0 : e.errors[0]) == null ? void 0 : p.message);
|
|
65
|
+
else if ((m = e == null ? void 0 : e.data) != null && m.community_fetchPersonalTracker) {
|
|
66
66
|
const {
|
|
67
|
-
water_intake:
|
|
68
|
-
steps:
|
|
69
|
-
streak_count:
|
|
67
|
+
water_intake: X,
|
|
68
|
+
steps: Y,
|
|
69
|
+
streak_count: Z,
|
|
70
70
|
individual_challenge_info: R,
|
|
71
71
|
calories: ee,
|
|
72
72
|
distance: te,
|
|
@@ -74,36 +74,36 @@ const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10
|
|
|
74
74
|
individual_challenge_detail: se,
|
|
75
75
|
past_challenges: ne,
|
|
76
76
|
pending_request: oe
|
|
77
|
-
} = (
|
|
78
|
-
|
|
77
|
+
} = (g = e == null ? void 0 : e.data) == null ? void 0 : g.community_fetchPersonalTracker;
|
|
78
|
+
A(X), S(Y), T(Z), j(R), F({ pastChallenges: ne, pendingRequest: oe }), q({ calories: ee, distance: te }), W(ae), $(se), o(!1);
|
|
79
79
|
} else
|
|
80
80
|
console.error("GetPersonalData API failed"), c("GetPersonalData API failed");
|
|
81
81
|
} catch (r) {
|
|
82
|
-
console.error("Error in GetPersonalData API:", r), c("Error in GetPersonalData API"),
|
|
82
|
+
console.error("Error in GetPersonalData API:", r), c("Error in GetPersonalData API"), A({}), S({}), o(!1);
|
|
83
83
|
}
|
|
84
84
|
}, Q = {
|
|
85
85
|
waterIntakeData: f,
|
|
86
86
|
loading: d,
|
|
87
|
-
fetchPersonalData:
|
|
87
|
+
fetchPersonalData: E,
|
|
88
88
|
updateGoals: y
|
|
89
|
-
},
|
|
90
|
-
stepsData:
|
|
89
|
+
}, V = {
|
|
90
|
+
stepsData: x,
|
|
91
91
|
loading: d,
|
|
92
92
|
updateGoals: y
|
|
93
93
|
};
|
|
94
94
|
return ue(() => {
|
|
95
|
-
|
|
95
|
+
E(re(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), C(
|
|
96
96
|
t,
|
|
97
97
|
s,
|
|
98
|
-
|
|
98
|
+
N,
|
|
99
99
|
"",
|
|
100
100
|
"challenges",
|
|
101
101
|
{ start: 0, rows: 6 },
|
|
102
|
-
`hclplatformx_end_date_time:[${
|
|
103
|
-
),
|
|
102
|
+
`hclplatformx_end_date_time:[${le()} TO *]`
|
|
103
|
+
), C(
|
|
104
104
|
t,
|
|
105
105
|
s,
|
|
106
|
-
|
|
106
|
+
O,
|
|
107
107
|
"",
|
|
108
108
|
"wellnessevent",
|
|
109
109
|
{
|
|
@@ -111,7 +111,7 @@ const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10
|
|
|
111
111
|
rows: 12
|
|
112
112
|
},
|
|
113
113
|
"hclplatformx_public_listing:true AND ((*:* -hclplatformx_end_date_time: [* TO *]) OR hclplatformx_end_date_time: [NOW TO *])"
|
|
114
|
-
),
|
|
114
|
+
), C(
|
|
115
115
|
t,
|
|
116
116
|
s,
|
|
117
117
|
K,
|
|
@@ -121,31 +121,39 @@ const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10
|
|
|
121
121
|
"",
|
|
122
122
|
["Vod", "Article"]
|
|
123
123
|
), o(!0);
|
|
124
|
-
}, []), /* @__PURE__ */
|
|
124
|
+
}, []), /* @__PURE__ */ ie.jsxDEV(
|
|
125
125
|
ce,
|
|
126
126
|
{
|
|
127
|
-
analytics:
|
|
127
|
+
analytics: D,
|
|
128
128
|
authoringHelper: w,
|
|
129
129
|
secondaryArgs: u,
|
|
130
130
|
waterIntakeDetails: Q,
|
|
131
|
-
stepsDetails:
|
|
132
|
-
streaksCount:
|
|
133
|
-
data:
|
|
134
|
-
eventData:
|
|
131
|
+
stepsDetails: V,
|
|
132
|
+
streaksCount: b,
|
|
133
|
+
data: G,
|
|
134
|
+
eventData: L,
|
|
135
135
|
articleVodData: J,
|
|
136
|
-
filters:
|
|
137
|
-
relativePath:
|
|
136
|
+
filters: P,
|
|
137
|
+
relativePath: I,
|
|
138
138
|
userId: n,
|
|
139
|
-
deviceInfo:
|
|
140
|
-
individualChallengeInfo:
|
|
141
|
-
commonInfo:
|
|
139
|
+
deviceInfo: M,
|
|
140
|
+
individualChallengeInfo: H,
|
|
141
|
+
commonInfo: U,
|
|
142
142
|
individualChallengeDetail: B,
|
|
143
143
|
constants: de,
|
|
144
144
|
pastAndPendingInfo: z
|
|
145
|
-
}
|
|
145
|
+
},
|
|
146
|
+
void 0,
|
|
147
|
+
!1,
|
|
148
|
+
{
|
|
149
|
+
fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/prelems/Components/EngagementHomeComponent.tsx",
|
|
150
|
+
lineNumber: 206,
|
|
151
|
+
columnNumber: 5
|
|
152
|
+
},
|
|
153
|
+
void 0
|
|
146
154
|
);
|
|
147
155
|
};
|
|
148
156
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
157
|
+
De as EngagementHomeComponent,
|
|
158
|
+
De as default
|
|
151
159
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { j as U, d as V, a as B, s as d, b as I, m as M } from "./index-CFrb1iB4.mjs";
|
|
2
|
+
import { useState as a, useEffect as q } from "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const X = (h) => {
|
|
6
6
|
const {
|
|
7
7
|
pageData: t = {},
|
|
8
|
-
secondaryArgs:
|
|
8
|
+
secondaryArgs: v,
|
|
9
9
|
prelemAnalyticsProp: S,
|
|
10
10
|
prelemAuthoringHelper: A,
|
|
11
11
|
userId: P,
|
|
12
12
|
filters: w,
|
|
13
|
-
relativePath:
|
|
13
|
+
relativePath: b = ""
|
|
14
14
|
} = h || {}, {
|
|
15
|
-
prelemBaseEndpoint: { language:
|
|
16
|
-
} =
|
|
15
|
+
prelemBaseEndpoint: { language: g, site_host: _ }
|
|
16
|
+
} = v, [j, m] = a(!1), [p, E] = a(!1), [x, k] = a(0), u = localStorage.getItem("userId") || P, [D, T] = a(""), [C, L] = a(!1), N = {
|
|
17
17
|
joinEvent: async (f) => {
|
|
18
|
-
var
|
|
18
|
+
var s, r, i, o, l, c;
|
|
19
19
|
if (!u) {
|
|
20
20
|
d("User ID is not available. Please log in.");
|
|
21
21
|
return;
|
|
@@ -27,21 +27,21 @@ const Y = (h) => {
|
|
|
27
27
|
...f,
|
|
28
28
|
userId: u
|
|
29
29
|
}
|
|
30
|
-
}, e = await
|
|
31
|
-
((
|
|
30
|
+
}, e = await M.joinEvent(n, g, _);
|
|
31
|
+
((s = e == null ? void 0 : e.errors) == null ? void 0 : s.length) > 0 ? d((r = e == null ? void 0 : e.errors[0]) == null ? void 0 : r.message) : (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_userRegistration) != null && o.id ? (I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_userRegistration) == null ? void 0 : c.message), E(!0), y()) : console.error("Join Event API failed");
|
|
32
32
|
} catch (n) {
|
|
33
33
|
console.error("Error in Join Event API:", n);
|
|
34
34
|
} finally {
|
|
35
35
|
m(!1);
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
loading:
|
|
39
|
-
isRegistered:
|
|
40
|
-
registeredParticipants:
|
|
41
|
-
meetingLink:
|
|
42
|
-
isStarted:
|
|
43
|
-
},
|
|
44
|
-
var f,
|
|
38
|
+
loading: j,
|
|
39
|
+
isRegistered: p,
|
|
40
|
+
registeredParticipants: x,
|
|
41
|
+
meetingLink: D,
|
|
42
|
+
isStarted: C
|
|
43
|
+
}, y = async () => {
|
|
44
|
+
var f, s, r, i, o, l, c;
|
|
45
45
|
try {
|
|
46
46
|
m(!0);
|
|
47
47
|
const n = (f = t == null ? void 0 : t.event_type) != null && f.includes("Virtual") ? {
|
|
@@ -55,17 +55,17 @@ const Y = (h) => {
|
|
|
55
55
|
} : {
|
|
56
56
|
event_id: t == null ? void 0 : t.page,
|
|
57
57
|
user_id: u
|
|
58
|
-
}, e = await
|
|
59
|
-
if (((
|
|
60
|
-
d((
|
|
58
|
+
}, e = await B.getEventDetails(n, g, _);
|
|
59
|
+
if (((s = e == null ? void 0 : e.errors) == null ? void 0 : s.length) > 0)
|
|
60
|
+
d((r = e == null ? void 0 : e.errors[0]) == null ? void 0 : r.message);
|
|
61
61
|
else if ((i = e == null ? void 0 : e.data) != null && i.community_eventDetails) {
|
|
62
62
|
const {
|
|
63
|
-
total_participant:
|
|
64
|
-
is_joined:
|
|
65
|
-
meeting_link:
|
|
66
|
-
is_started:
|
|
63
|
+
total_participant: G,
|
|
64
|
+
is_joined: H,
|
|
65
|
+
meeting_link: J = "",
|
|
66
|
+
is_started: O = !1
|
|
67
67
|
} = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_eventDetails;
|
|
68
|
-
I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails) == null ? void 0 : c.message),
|
|
68
|
+
I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails) == null ? void 0 : c.message), E(H), k(G), T(J), L(O);
|
|
69
69
|
} else
|
|
70
70
|
console.error("GetEventDetails API failed");
|
|
71
71
|
} catch (n) {
|
|
@@ -74,21 +74,29 @@ const Y = (h) => {
|
|
|
74
74
|
m(!1);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
return
|
|
78
|
-
t != null && t.page &&
|
|
79
|
-
}, [t]), /* @__PURE__ */ U(
|
|
77
|
+
return q(() => {
|
|
78
|
+
t != null && t.page && y();
|
|
79
|
+
}, [t]), /* @__PURE__ */ U.jsxDEV(
|
|
80
80
|
V,
|
|
81
81
|
{
|
|
82
82
|
content: t,
|
|
83
83
|
analytics: S,
|
|
84
84
|
authoringHelper: A,
|
|
85
|
-
secondaryArgs:
|
|
86
|
-
eventDetails:
|
|
85
|
+
secondaryArgs: v,
|
|
86
|
+
eventDetails: N,
|
|
87
87
|
filters: w,
|
|
88
|
-
relativePath:
|
|
89
|
-
}
|
|
88
|
+
relativePath: b
|
|
89
|
+
},
|
|
90
|
+
void 0,
|
|
91
|
+
!1,
|
|
92
|
+
{
|
|
93
|
+
fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/contentTypes/Components/EventDetailComponent.tsx",
|
|
94
|
+
lineNumber: 119,
|
|
95
|
+
columnNumber: 5
|
|
96
|
+
},
|
|
97
|
+
void 0
|
|
90
98
|
);
|
|
91
99
|
};
|
|
92
100
|
export {
|
|
93
|
-
|
|
101
|
+
X as default
|
|
94
102
|
};
|