@platform-x/hcltechx-mfe-wrapper 1.0.34 → 1.0.35
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-CqQsDAeB.mjs → ArticleVodListComponent-CMEie9a_.mjs} +2 -2
- package/{ChallengeDetailComponent-CdzrfzMT.mjs → ChallengeDetailComponent-CuwjZMPf.mjs} +23 -23
- package/{ChallengeSliderComponent-B4xfxTHD.mjs → ChallengeSliderComponent-6JvFKito.mjs} +3 -3
- package/{CommonContentComponent-CYrypJzo.mjs → CommonContentComponent-DRJ5iDKk.mjs} +3 -3
- package/{DailyMotion-BgUgc-uC.mjs → DailyMotion-D1Gzjs6b.mjs} +2 -2
- package/EngagementHomeComponent-DXSsi6al.mjs +115 -0
- package/{EventDetailComponent-cP1ocbbz.mjs → EventDetailComponent-C7Gm4HK4.mjs} +3 -3
- package/{EventListComponent-CFkB92kq.mjs → EventListComponent-B2i90d0d.mjs} +3 -3
- package/{ExperienceZone-nB2GYDKU.mjs → ExperienceZone-BthN8l6e.mjs} +1 -1
- package/ExperienceZoneComponent-B3XLXdgz.mjs +49 -0
- package/{Facebook-DbGKo3Xs.mjs → Facebook-C2Q7fzor.mjs} +2 -2
- package/{FilePlayer-C1Z3KFfo.mjs → FilePlayer-DsljmHEG.mjs} +2 -2
- package/{IndividualChallengeComponent-ozvpsaGX.mjs → IndividualChallengeComponent-zcLcep5M.mjs} +3 -3
- package/{Kaltura-BrbWvIAE.mjs → Kaltura-DOjmzCCF.mjs} +2 -2
- package/{Mixcloud-B-pI6TMk.mjs → Mixcloud-B0VsdJHn.mjs} +2 -2
- package/{Mux-D8w5PpGs.mjs → Mux-Cfyj7TvM.mjs} +2 -2
- package/{PageComponent-DAtZxXGd.mjs → PageComponent-DALylcTo.mjs} +2 -2
- package/{Preview-G2O2o9Zu.mjs → Preview-jio1mn2o.mjs} +1 -1
- package/{RecentCarousel-CeXyec_d.mjs → RecentCarousel-Ch4RVb0P.mjs} +37 -32
- package/{Share-ZXoBoOaE.mjs → Share-BDSlb37Z.mjs} +2 -2
- package/{SoundCloud--jwG7GcC.mjs → SoundCloud-Cr9HgRwr.mjs} +2 -2
- package/{Streamable-K-Bxu1f0.mjs → Streamable-BZnPiOgH.mjs} +2 -2
- package/{ToggleButton-SofBX2SF.mjs → ToggleButton-gVhwVScB.mjs} +10684 -10630
- package/{Twitch-gqHapzR7.mjs → Twitch-C50LModg.mjs} +2 -2
- package/{Vidyard-DFl0dZN8.mjs → Vidyard-BJhZeW5Y.mjs} +2 -2
- package/{Vimeo-sjf6JizB.mjs → Vimeo-Bl0wDJTK.mjs} +2 -2
- package/{Wistia-Dpseemrn.mjs → Wistia-BruGOWkp.mjs} +2 -2
- package/{YouTube-ClVj4Mya.mjs → YouTube-BgK1Fcr9.mjs} +2 -2
- package/{index-DwB299XC.mjs → index-DWVcGAGd.mjs} +171 -169
- package/{index-CyeNNRJS.mjs → index-DzxRwN3t.mjs} +3 -3
- package/index.mjs +1 -1
- package/lib/services/fetchQueries.d.ts +1 -1
- package/{mutateApi-skbGlOVi.mjs → mutateApi-DUkScX9H.mjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/EngagementHomeComponent-JknT0GlC.mjs +0 -114
- package/ExperienceZoneComponent-DGJtMIS4.mjs +0 -48
|
@@ -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-gVhwVScB.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-DWVcGAGd.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const f = ({
|
|
7
7
|
data: t,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
|
-
import { b as K } from "./ToggleButton-
|
|
2
|
+
import { b as K } from "./ToggleButton-gVhwVScB.mjs";
|
|
3
3
|
import { useState as c, useEffect as M } from "react";
|
|
4
|
-
import { s as f, f as u } from "./index-
|
|
5
|
-
import { m as N } from "./mutateApi-
|
|
4
|
+
import { s as f, f as u } from "./index-DWVcGAGd.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-DUkScX9H.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const Z = (
|
|
7
|
+
const Z = (E) => {
|
|
8
8
|
const {
|
|
9
9
|
pageData: t = {},
|
|
10
10
|
secondaryArgs: P,
|
|
11
|
-
prelemAnalyticsProp:
|
|
12
|
-
prelemAuthoringHelper:
|
|
11
|
+
prelemAnalyticsProp: D,
|
|
12
|
+
prelemAuthoringHelper: C,
|
|
13
13
|
userId: y
|
|
14
|
-
} =
|
|
14
|
+
} = E || {}, {
|
|
15
15
|
prelemBaseEndpoint: { language: h, site_host: d }
|
|
16
|
-
} = P, [
|
|
16
|
+
} = P, [v, a] = c(!1), [w, I] = c(!1), [B, T] = c(0), [G, S] = c(0), [j, b] = c([]), [k, A] = c(!1), [U, x] = c({}), g = localStorage.getItem("userId") || y, H = async (i) => {
|
|
17
17
|
var n, s, l, o;
|
|
18
18
|
if (!g) {
|
|
19
19
|
f("User ID is not available. Please log in.");
|
|
@@ -27,7 +27,7 @@ const Z = (_) => {
|
|
|
27
27
|
userId: g
|
|
28
28
|
}
|
|
29
29
|
}, e = await N.joinChallenge(r, h, d);
|
|
30
|
-
((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_joinChallenge) != null && o.id ? (I(!0), L(), A(!0)) : console.error("Join Challenge API failed");
|
|
30
|
+
((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_joinChallenge) != null && o.id ? (I(!0), await L(), await _(), A(!0)) : console.error("Join Challenge API failed");
|
|
31
31
|
} catch (r) {
|
|
32
32
|
console.error("Error in Join Challenge API:", r);
|
|
33
33
|
} finally {
|
|
@@ -53,7 +53,7 @@ const Z = (_) => {
|
|
|
53
53
|
is_joined: m,
|
|
54
54
|
user_steps: z = 0
|
|
55
55
|
} = (l = r == null ? void 0 : r.data) == null ? void 0 : l.community_challengesDetail;
|
|
56
|
-
I(m), T(e),
|
|
56
|
+
I(m), T(e), S(z);
|
|
57
57
|
} else
|
|
58
58
|
console.error("GetEventDetails API failed");
|
|
59
59
|
} catch (o) {
|
|
@@ -61,7 +61,7 @@ const Z = (_) => {
|
|
|
61
61
|
} finally {
|
|
62
62
|
a(!1);
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, _ = async () => {
|
|
65
65
|
var i, n, s, l, o;
|
|
66
66
|
try {
|
|
67
67
|
a(!0);
|
|
@@ -73,7 +73,7 @@ const Z = (_) => {
|
|
|
73
73
|
f((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
|
|
74
74
|
else if ((l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_getLeaderBoardList) != null && l.records) {
|
|
75
75
|
const { records: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_getLeaderBoardList;
|
|
76
|
-
|
|
76
|
+
b(m);
|
|
77
77
|
} else
|
|
78
78
|
console.error("GetLeaderBoardList API failed");
|
|
79
79
|
} catch (r) {
|
|
@@ -93,7 +93,7 @@ const Z = (_) => {
|
|
|
93
93
|
f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
|
|
94
94
|
else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
|
|
95
95
|
const { device_info: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
|
|
96
|
-
|
|
96
|
+
x(m);
|
|
97
97
|
} else
|
|
98
98
|
console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
|
|
99
99
|
} catch (r) {
|
|
@@ -102,24 +102,24 @@ const Z = (_) => {
|
|
|
102
102
|
a(!1);
|
|
103
103
|
}
|
|
104
104
|
}, q = {
|
|
105
|
-
joinChallenge:
|
|
106
|
-
loading:
|
|
107
|
-
isEnrolled:
|
|
105
|
+
joinChallenge: H,
|
|
106
|
+
loading: v,
|
|
107
|
+
isEnrolled: w,
|
|
108
108
|
enrolledParticipants: B,
|
|
109
|
-
userAchieved:
|
|
110
|
-
leaderBoardList:
|
|
111
|
-
showPopup:
|
|
109
|
+
userAchieved: G,
|
|
110
|
+
leaderBoardList: j,
|
|
111
|
+
showPopup: k,
|
|
112
112
|
setShowPopup: A,
|
|
113
|
-
deviceInfo:
|
|
113
|
+
deviceInfo: U
|
|
114
114
|
};
|
|
115
115
|
return M(() => {
|
|
116
|
-
t != null && t.page && (L(),
|
|
116
|
+
t != null && t.page && (L(), _(), J());
|
|
117
117
|
}, [t]), /* @__PURE__ */ F(
|
|
118
118
|
K,
|
|
119
119
|
{
|
|
120
120
|
content: t,
|
|
121
|
-
analytics:
|
|
122
|
-
authoringHelper:
|
|
121
|
+
analytics: D,
|
|
122
|
+
authoringHelper: C,
|
|
123
123
|
secondaryArgs: P,
|
|
124
124
|
challengeDetails: q
|
|
125
125
|
}
|
|
@@ -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-gVhwVScB.mjs";
|
|
3
3
|
import { useState as a, useEffect as Z } from "react";
|
|
4
|
-
import { f as A, s as c, a as $ } from "./index-
|
|
5
|
-
import { m as V } from "./mutateApi-
|
|
4
|
+
import { f as A, s as c, a as $ } from "./index-DWVcGAGd.mjs";
|
|
5
|
+
import { m as V } from "./mutateApi-DUkScX9H.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const re = (p) => {
|
|
8
8
|
var I, P, _;
|
|
@@ -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-DWVcGAGd.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-DUkScX9H.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-DzxRwN3t.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-DWVcGAGd.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-gVhwVScB.mjs";
|
|
4
4
|
function b(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsx as ee } from "react/jsx-runtime";
|
|
2
|
+
import { f as te, a as oe } from "./ToggleButton-gVhwVScB.mjs";
|
|
3
|
+
import { useState as o, useEffect as ae } from "react";
|
|
4
|
+
import { f as A, s as i, a as ne } from "./index-DWVcGAGd.mjs";
|
|
5
|
+
import { m as se } from "./mutateApi-DUkScX9H.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const k = async (D, d, I, u = "", t = "wellnessevent") => {
|
|
8
|
+
var g, h, n, s;
|
|
9
|
+
const a = await A.getContentSchemaList(
|
|
10
|
+
{
|
|
11
|
+
searchTerm: u,
|
|
12
|
+
filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase(),
|
|
13
|
+
conditionString: (t == null ? void 0 : t.toLocaleLowerCase()) === "wellnessevent" || (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "hclplatformx_public_listing:true" : ""
|
|
14
|
+
},
|
|
15
|
+
D || "en",
|
|
16
|
+
d
|
|
17
|
+
);
|
|
18
|
+
(h = (g = a == null ? void 0 : a.data) == null ? void 0 : g.publish_getContents) != null && h.records ? I((s = (n = a == null ? void 0 : a.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : s.records) : console.error("Something went wrong !");
|
|
19
|
+
}, ge = (D) => {
|
|
20
|
+
const {
|
|
21
|
+
secondaryArgs: d,
|
|
22
|
+
prelemAnalyticsProp: I,
|
|
23
|
+
prelemAuthoringHelper: u,
|
|
24
|
+
userId: t,
|
|
25
|
+
filters: a,
|
|
26
|
+
relativePath: g = "",
|
|
27
|
+
articleData: h
|
|
28
|
+
} = D || {}, {
|
|
29
|
+
prelemBaseEndpoint: { language: n, site_host: s }
|
|
30
|
+
} = d, [P, y] = o(!1), [L, p] = o({}), [E, C] = o({}), [G, T] = o(0), f = localStorage.getItem("userId") || t, [b, H] = o([]), [x, M] = o([]), [U, j] = o({}), [B, W] = o({}), [q, z] = o({}), [F, J] = o({}), _ = async (v, c, w) => {
|
|
31
|
+
var l, m;
|
|
32
|
+
if (!f) {
|
|
33
|
+
i("User ID is not available. Please log in.");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
try {
|
|
37
|
+
const r = {
|
|
38
|
+
input: { activity_type: w, target: v.toString(), action: c },
|
|
39
|
+
user_id: f
|
|
40
|
+
}, e = await se.setPersonalGoal(r, n, s);
|
|
41
|
+
((m = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && c === "goal" ? ne("Goal updated successfully!") : c !== "entry" && console.error("Something went wrong !");
|
|
42
|
+
} catch (r) {
|
|
43
|
+
console.error("Error in update goal API:", r), i("Something went wrong, please try after sometime !");
|
|
44
|
+
}
|
|
45
|
+
}, S = async (v = "") => {
|
|
46
|
+
var c, w, l, m;
|
|
47
|
+
if (!f) {
|
|
48
|
+
i("User ID is not available. Please log in.");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
try {
|
|
52
|
+
y(!0);
|
|
53
|
+
const r = {
|
|
54
|
+
date: v,
|
|
55
|
+
user_id: f
|
|
56
|
+
}, e = await A.fetchPersonalTracker(r, n, s);
|
|
57
|
+
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
58
|
+
i((w = e == null ? void 0 : e.errors[0]) == null ? void 0 : w.message);
|
|
59
|
+
else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
|
|
60
|
+
const {
|
|
61
|
+
water_intake: O,
|
|
62
|
+
steps: Q,
|
|
63
|
+
streak_count: X,
|
|
64
|
+
individual_challenge_info: Y,
|
|
65
|
+
calories: Z,
|
|
66
|
+
distance: $,
|
|
67
|
+
device_info: R,
|
|
68
|
+
individual_challenge_detail: V
|
|
69
|
+
} = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
|
|
70
|
+
p(O), C(Q), T(X), j(Y), W({ calories: Z, distance: $ }), z(R), J(V);
|
|
71
|
+
} else
|
|
72
|
+
console.error("GetPersonalData API failed"), i("GetPersonalData API failed");
|
|
73
|
+
} catch (r) {
|
|
74
|
+
console.error("Error in GetPersonalData API:", r), i("Error in GetPersonalData API"), p({}), C({});
|
|
75
|
+
} finally {
|
|
76
|
+
y(!1);
|
|
77
|
+
}
|
|
78
|
+
}, K = {
|
|
79
|
+
waterIntakeData: L,
|
|
80
|
+
loading: P,
|
|
81
|
+
fetchPersonalData: S,
|
|
82
|
+
updateGoals: _
|
|
83
|
+
}, N = {
|
|
84
|
+
stepsData: E,
|
|
85
|
+
loading: P,
|
|
86
|
+
updateGoals: _
|
|
87
|
+
};
|
|
88
|
+
return ae(() => {
|
|
89
|
+
S(te(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), k(n, s, H, "", "challenges"), k(n, s, M, "", "wellnessevent");
|
|
90
|
+
}, []), /* @__PURE__ */ ee(
|
|
91
|
+
oe,
|
|
92
|
+
{
|
|
93
|
+
analytics: I,
|
|
94
|
+
authoringHelper: u,
|
|
95
|
+
secondaryArgs: d,
|
|
96
|
+
waterIntakeDetails: K,
|
|
97
|
+
stepsDetails: N,
|
|
98
|
+
streaksCount: G,
|
|
99
|
+
data: b,
|
|
100
|
+
eventData: x,
|
|
101
|
+
articleVodData: h,
|
|
102
|
+
filters: a,
|
|
103
|
+
relativePath: g,
|
|
104
|
+
userId: t,
|
|
105
|
+
deviceInfo: q,
|
|
106
|
+
individualChallengeInfo: U,
|
|
107
|
+
commonInfo: B,
|
|
108
|
+
individualChallengeDetail: F
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
ge as EngagementHomeComponent,
|
|
114
|
+
ge as default
|
|
115
|
+
};
|
|
@@ -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-gVhwVScB.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-DWVcGAGd.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-DUkScX9H.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (h) => {
|
|
8
8
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import { E as M, f as U } from "./ToggleButton-
|
|
2
|
+
import { E as M, f as U } from "./ToggleButton-gVhwVScB.mjs";
|
|
3
3
|
import { useState as c, useEffect as j } from "react";
|
|
4
|
-
import { s as r, f as B, a as H } from "./index-
|
|
5
|
-
import { m as q } from "./mutateApi-
|
|
4
|
+
import { s as r, f as B, a as H } from "./index-DWVcGAGd.mjs";
|
|
5
|
+
import { m as q } from "./mutateApi-DUkScX9H.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Q = ({
|
|
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 h, a8 as m, a9 as C, B as l, T as f, k as T, aa as k, ab as v, ac as x, v as b, ad as B } from "./ToggleButton-
|
|
2
|
+
import { a7 as h, a8 as m, a9 as C, B as l, T as f, k as T, aa as k, ab as v, ac as x, v as b, ad as B } from "./ToggleButton-gVhwVScB.mjs";
|
|
3
3
|
const X = ({
|
|
4
4
|
content: r,
|
|
5
5
|
analytics: c,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import "./ToggleButton-gVhwVScB.mjs";
|
|
3
|
+
import { E as l } from "./ExperienceZone-BthN8l6e.mjs";
|
|
4
|
+
import { useState as T, useEffect as j } from "react";
|
|
5
|
+
import { f as k } from "./index-DWVcGAGd.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const z = (h) => {
|
|
8
|
+
var t, c, r;
|
|
9
|
+
const { pageData: s = {}, secondaryArgs: e, filters: g } = h || {}, [w, C] = T([]), {
|
|
10
|
+
prelemBaseEndpoint: { site_host: L, language: v }
|
|
11
|
+
} = e, E = {
|
|
12
|
+
pageId: s == null ? void 0 : s.page,
|
|
13
|
+
pageTitle: s == null ? void 0 : s.title,
|
|
14
|
+
pageDesc: s == null ? void 0 : s.description,
|
|
15
|
+
pageTags: (c = (t = s == null ? void 0 : s.settings) == null ? void 0 : t.keywords) == null ? void 0 : c.join(", "),
|
|
16
|
+
isAuthoring: !1,
|
|
17
|
+
isSeoEnabled: (r = s == null ? void 0 : s.settings) == null ? void 0 : r.seo_blockIndexing,
|
|
18
|
+
isAnalyticsEnabled: s == null ? void 0 : s.analytics_enable
|
|
19
|
+
}, b = {
|
|
20
|
+
isAuthoring: !1
|
|
21
|
+
}, y = async (A, _, x = "", n = "wellnessevent") => {
|
|
22
|
+
var i, m, d, p;
|
|
23
|
+
const o = await k.getContentSchemaList(
|
|
24
|
+
{
|
|
25
|
+
searchTerm: x,
|
|
26
|
+
filter: (n == null ? void 0 : n.toLocaleLowerCase()) === "events" ? "wellnessevent" : n == null ? void 0 : n.toLocaleLowerCase(),
|
|
27
|
+
conditionString: (n == null ? void 0 : n.toLocaleLowerCase()) === "wellnessevent" || (n == null ? void 0 : n.toLocaleLowerCase()) === "events" ? "hclplatformx_public_listing:true" : ""
|
|
28
|
+
},
|
|
29
|
+
A || "en",
|
|
30
|
+
L
|
|
31
|
+
);
|
|
32
|
+
(m = (i = o == null ? void 0 : o.data) == null ? void 0 : i.publish_getContents) != null && m.records ? _((p = (d = o == null ? void 0 : o.data) == null ? void 0 : d.publish_getContents) == null ? void 0 : p.records) : console.error("Something went wrong !");
|
|
33
|
+
};
|
|
34
|
+
return j(() => {
|
|
35
|
+
y(v, C, "", "wellnessevent");
|
|
36
|
+
}, []), /* @__PURE__ */ S(
|
|
37
|
+
l,
|
|
38
|
+
{
|
|
39
|
+
analytics: E,
|
|
40
|
+
authoringHelper: b,
|
|
41
|
+
secondaryArgs: e,
|
|
42
|
+
eventData: w,
|
|
43
|
+
filters: g
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
z as default
|
|
49
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as _ } from "./index-
|
|
1
|
+
import { n as _ } from "./index-DWVcGAGd.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-gVhwVScB.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-DWVcGAGd.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-gVhwVScB.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-ozvpsaGX.mjs → IndividualChallengeComponent-zcLcep5M.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as se } from "react/jsx-runtime";
|
|
2
|
-
import { I as ne } from "./ToggleButton-
|
|
2
|
+
import { I as ne } from "./ToggleButton-gVhwVScB.mjs";
|
|
3
3
|
import { useState as u, useEffect as oe } from "react";
|
|
4
|
-
import { f as L, s as d, a as w } from "./index-
|
|
5
|
-
import { m as G } from "./mutateApi-
|
|
4
|
+
import { f as L, s as d, a as w } from "./index-DWVcGAGd.mjs";
|
|
5
|
+
import { m as G } from "./mutateApi-DUkScX9H.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const de = (T) => {
|
|
8
8
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as f } from "./index-
|
|
1
|
+
import { n as f } from "./index-DWVcGAGd.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-gVhwVScB.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-DWVcGAGd.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-gVhwVScB.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-DWVcGAGd.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { F as E } from "./ToggleButton-
|
|
3
|
+
import { F as E } from "./ToggleButton-gVhwVScB.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-DWVcGAGd.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-DzxRwN3t.mjs").then((n) => ({
|
|
9
9
|
default: n[b[o]]
|
|
10
10
|
}))
|
|
11
11
|
), P));
|
|
@@ -1,23 +1,23 @@
|
|
|
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-gVhwVScB.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-DWVcGAGd.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const K = D(() => {
|
|
7
|
-
const
|
|
7
|
+
const r = J();
|
|
8
8
|
return {
|
|
9
9
|
recentCardsWrapper: {
|
|
10
10
|
"&.recentCardsBg": {
|
|
11
11
|
width: "100%",
|
|
12
12
|
overflow: "hidden",
|
|
13
|
-
[
|
|
13
|
+
[r.breakpoints.up("xs")]: {
|
|
14
14
|
marginBottom: 0
|
|
15
15
|
},
|
|
16
16
|
"& .PX-TopHeading": {
|
|
17
17
|
padding: "15px",
|
|
18
|
-
background:
|
|
19
|
-
borderTopRightRadius:
|
|
20
|
-
borderTopLeftRadius:
|
|
18
|
+
background: r.palette.prelemType2.ACCENTS.VARIANT6.TITLE,
|
|
19
|
+
borderTopRightRadius: r.borderRadius.value,
|
|
20
|
+
borderTopLeftRadius: r.borderRadius.value,
|
|
21
21
|
"& h5": {
|
|
22
22
|
margin: 0,
|
|
23
23
|
color: "#fff"
|
|
@@ -27,20 +27,20 @@ const K = D(() => {
|
|
|
27
27
|
border: "1px solid #D1D1D1",
|
|
28
28
|
paddingBottom: "15px",
|
|
29
29
|
borderTop: "0",
|
|
30
|
-
borderBottomRightRadius:
|
|
31
|
-
borderBottomLeftRadius:
|
|
30
|
+
borderBottomRightRadius: r.borderRadius.value,
|
|
31
|
+
borderBottomLeftRadius: r.borderRadius.value,
|
|
32
32
|
"& .PX-InnerBox": {
|
|
33
33
|
padding: "15px",
|
|
34
34
|
borderTop: "0",
|
|
35
|
-
borderBottomRightRadius:
|
|
36
|
-
borderBottomLeftRadius:
|
|
35
|
+
borderBottomRightRadius: r.borderRadius.value,
|
|
36
|
+
borderBottomLeftRadius: r.borderRadius.value,
|
|
37
37
|
overflowY: "auto",
|
|
38
38
|
maxHeight: "700px",
|
|
39
39
|
"& .PX-CardWp": {
|
|
40
40
|
display: "flex",
|
|
41
41
|
border: "1px solid #E8E8E8",
|
|
42
42
|
padding: "10px",
|
|
43
|
-
borderRadius:
|
|
43
|
+
borderRadius: r.borderRadius.value,
|
|
44
44
|
marginBottom: "10px",
|
|
45
45
|
cursor: "pointer",
|
|
46
46
|
"& .PX-MediaWp": {
|
|
@@ -50,17 +50,22 @@ const K = D(() => {
|
|
|
50
50
|
maxWidth: "160px",
|
|
51
51
|
maxHeight: "108px",
|
|
52
52
|
position: "relative",
|
|
53
|
-
[
|
|
53
|
+
[r.breakpoints.down("xl")]: {
|
|
54
54
|
minWidth: "90px",
|
|
55
55
|
marginRight: "10px",
|
|
56
56
|
maxWidth: "90px"
|
|
57
57
|
},
|
|
58
|
-
[
|
|
58
|
+
[r.breakpoints.down("lg")]: {
|
|
59
|
+
minWidth: "90px",
|
|
60
|
+
marginRight: "10px",
|
|
61
|
+
maxWidth: "90px"
|
|
62
|
+
},
|
|
63
|
+
[r.breakpoints.down("em")]: {
|
|
59
64
|
minWidth: "150px",
|
|
60
65
|
marginRight: "10px",
|
|
61
66
|
maxWidth: "150px"
|
|
62
67
|
},
|
|
63
|
-
[
|
|
68
|
+
[r.breakpoints.down("em")]: {
|
|
64
69
|
minWidth: "90px",
|
|
65
70
|
marginRight: "10px",
|
|
66
71
|
maxWidth: "90px"
|
|
@@ -104,10 +109,10 @@ const K = D(() => {
|
|
|
104
109
|
"& .readmoreCta": {
|
|
105
110
|
display: "inline-flex",
|
|
106
111
|
alignItems: "center",
|
|
107
|
-
color:
|
|
112
|
+
color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
|
|
108
113
|
textDecoration: "none",
|
|
109
114
|
"& h6": {
|
|
110
|
-
color:
|
|
115
|
+
color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
|
|
111
116
|
display: "inline-block",
|
|
112
117
|
margin: 0
|
|
113
118
|
},
|
|
@@ -123,11 +128,11 @@ const K = D(() => {
|
|
|
123
128
|
}
|
|
124
129
|
}
|
|
125
130
|
};
|
|
126
|
-
}), te = ({ isVideoLandingPage:
|
|
127
|
-
const
|
|
128
|
-
j(
|
|
129
|
-
}, X = (
|
|
130
|
-
|
|
131
|
+
}), te = ({ isVideoLandingPage: r, data: x, secondaryArgs: n, filters: W }) => {
|
|
132
|
+
const k = n == null ? void 0 : n.platform, B = K(), { gcpUrl: d, bucketName: s } = n, [I, N] = Y([]), b = (a) => {
|
|
133
|
+
j(a, W, n);
|
|
134
|
+
}, X = (a) => {
|
|
135
|
+
k !== "isAuthoring" && b(a);
|
|
131
136
|
}, E = {
|
|
132
137
|
dotPosition: "outside",
|
|
133
138
|
arrows: !1,
|
|
@@ -139,25 +144,25 @@ const K = D(() => {
|
|
|
139
144
|
xs: 1
|
|
140
145
|
}
|
|
141
146
|
}, R = () => {
|
|
142
|
-
const
|
|
143
|
-
|
|
147
|
+
const a = $(x, E.itemsPerRow);
|
|
148
|
+
a && N(a);
|
|
144
149
|
}, y = q(R, 100);
|
|
145
150
|
G(() => {
|
|
146
151
|
R();
|
|
147
|
-
const
|
|
152
|
+
const a = () => {
|
|
148
153
|
y();
|
|
149
154
|
};
|
|
150
|
-
return window.addEventListener("resize",
|
|
151
|
-
window.removeEventListener("resize",
|
|
155
|
+
return window.addEventListener("resize", a), () => {
|
|
156
|
+
window.removeEventListener("resize", a);
|
|
152
157
|
};
|
|
153
158
|
}, [x]);
|
|
154
|
-
const m = (
|
|
155
|
-
|
|
159
|
+
const m = (a) => {
|
|
160
|
+
a.target.src !== P && (a.target.onerror = null, a.target.src = P);
|
|
156
161
|
};
|
|
157
|
-
return /* @__PURE__ */ i(o, { className: `${
|
|
158
|
-
/* @__PURE__ */ t(o, { className: "PX-TopHeading", children: /* @__PURE__ */ t(c, { variant: "h5medium", children:
|
|
162
|
+
return /* @__PURE__ */ i(o, { className: `${B.recentCardsWrapper} recentCardsBg`, children: [
|
|
163
|
+
/* @__PURE__ */ t(o, { className: "PX-TopHeading", children: /* @__PURE__ */ t(c, { variant: "h5medium", children: r ? "Related Videos" : "Related Articles" }) }),
|
|
159
164
|
/* @__PURE__ */ t(o, { className: "PX-CardBox", children: /* @__PURE__ */ t(o, { className: "PX-InnerBox", children: I.map(
|
|
160
|
-
(
|
|
165
|
+
(a) => a == null ? void 0 : a.map((e, L) => {
|
|
161
166
|
var f, v;
|
|
162
167
|
const { original_image: S = {}, thumbnail: h } = e, { original_image_relative_path: C, ext: A } = S;
|
|
163
168
|
let g, l;
|
|
@@ -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-gVhwVScB.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-DWVcGAGd.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-DWVcGAGd.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-gVhwVScB.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-DWVcGAGd.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-gVhwVScB.mjs";
|
|
4
4
|
function P(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|