@platform-x/hcltechx-mfe-wrapper 1.0.20 → 1.0.22
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-CHnqag9b.mjs → ArticleVodListComponent-DnI80nGq.mjs} +2 -2
- package/{ChallengeDetailComponent-BmeP6FZ1.mjs → ChallengeDetailComponent-BQOqyQe4.mjs} +3 -3
- package/{ChallengeSliderComponent-CPdxf7-q.mjs → ChallengeSliderComponent-DVyhqNVQ.mjs} +3 -3
- package/{CommonContentComponent-8JPy8nJ6.mjs → CommonContentComponent-Hnb8Xr5I.mjs} +3 -3
- package/{DailyMotion-D8UIGIEl.mjs → DailyMotion-BttO0I0C.mjs} +2 -2
- package/EngagementHomeComponent-LYRrGICV.mjs +112 -0
- package/{EventDetailComponent-tRaFnwYj.mjs → EventDetailComponent-BlbyfC5O.mjs} +3 -3
- package/{EventListComponent-CKLSWeDv.mjs → EventListComponent-B39xrxgu.mjs} +17 -17
- package/ExperienceZone-Bhkjbth9.mjs +89 -0
- package/ExperienceZoneComponent-F16DcM9H.mjs +48 -0
- package/{Facebook-BLCOUjfZ.mjs → Facebook-BhbZsSMB.mjs} +4 -4
- package/{FilePlayer-D68wVaHK.mjs → FilePlayer-DBOphwby.mjs} +8 -8
- package/{IndividualChallengeComponent-gUfQv-rL.mjs → IndividualChallengeComponent-BJ5RfzMH.mjs} +3 -3
- package/{Kaltura-PX7BhLfz.mjs → Kaltura-DkAlATL_.mjs} +3 -3
- package/{Mixcloud-B7Af0Mn0.mjs → Mixcloud-CguOqMm8.mjs} +2 -2
- package/{Mux-1HZ1W-lE.mjs → Mux-D6PeF7j6.mjs} +7 -7
- package/PageComponent-CLrj-Wc_.mjs +64 -0
- package/{Preview-nCs4zsNM.mjs → Preview-9xbWxXDK.mjs} +6 -6
- package/{RecentCarousel-B42bOjYP.mjs → RecentCarousel-D6dx6TIr.mjs} +23 -23
- package/{Share-B0TMKNSe.mjs → Share-DQnAo1oF.mjs} +2 -2
- package/{SoundCloud-EUx8hlx1.mjs → SoundCloud-CZ-yrJeU.mjs} +10 -10
- package/{Streamable-By-i7qcF.mjs → Streamable-CnJYyZu0.mjs} +2 -2
- package/{ToggleButton--p_geS1j.mjs → ToggleButton-8IOlYjrU.mjs} +12379 -12157
- package/{Twitch-CJ3aP-xV.mjs → Twitch-DvDm30_Y.mjs} +2 -2
- package/{Vidyard-DXacKBYx.mjs → Vidyard-CxuW7iGh.mjs} +7 -7
- package/{Vimeo-B6cLX7vD.mjs → Vimeo-BkQKIRE4.mjs} +2 -2
- package/{Wistia-DtFJL0ep.mjs → Wistia-CQeoZyhr.mjs} +5 -5
- package/{YouTube-i5y4gwEO.mjs → YouTube-DOOQlFVu.mjs} +2 -2
- package/{index-Cs-Nr3u2.mjs → index-BPqB2yy1.mjs} +1860 -1816
- package/{index-CPQ9TrZQ.mjs → index-BQE4JEea.mjs} +17 -15
- package/index.mjs +1 -1
- package/lib/prelems/Components/ExperienceZoneComponent.d.ts +2 -0
- package/lib/utils/componentMapping.d.ts +1 -0
- package/lib/utils/constants.d.ts +1 -0
- package/lib/utils/helper.d.ts +1 -0
- package/{mutateApi-D7sw1yK3.mjs → mutateApi-BcmEMqEd.mjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/EngagementHomeComponent-CVGzWcc7.mjs +0 -101
- package/PageComponent-BSP0QUvr.mjs +0 -97
|
@@ -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-8IOlYjrU.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-BPqB2yy1.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-8IOlYjrU.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-BPqB2yy1.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-BcmEMqEd.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-8IOlYjrU.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-BPqB2yy1.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-BcmEMqEd.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-BPqB2yy1.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-BcmEMqEd.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-BQE4JEea.mjs").then((t) => ({
|
|
10
10
|
default: t[T[l]]
|
|
11
11
|
}))
|
|
12
12
|
), c));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as P } from "./index-BPqB2yy1.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-8IOlYjrU.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,112 @@
|
|
|
1
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
+
import { f as V, a as R } from "./ToggleButton-8IOlYjrU.mjs";
|
|
3
|
+
import { useState as a, useEffect as ee } from "react";
|
|
4
|
+
import { f as A, s, a as te } from "./index-BPqB2yy1.mjs";
|
|
5
|
+
import { m as ae } from "./mutateApi-BcmEMqEd.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const k = async (w, g, D, I = "", t = "wellnessevent") => {
|
|
8
|
+
var f, d, n, r;
|
|
9
|
+
const o = await A.getContentSchemaList(
|
|
10
|
+
{
|
|
11
|
+
searchTerm: I,
|
|
12
|
+
filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase()
|
|
13
|
+
},
|
|
14
|
+
w || "en",
|
|
15
|
+
g
|
|
16
|
+
);
|
|
17
|
+
(d = (f = o == null ? void 0 : o.data) == null ? void 0 : f.publish_getContents) != null && d.records ? D((r = (n = o == null ? void 0 : o.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : r.records) : s("Something went wrong !");
|
|
18
|
+
}, le = (w) => {
|
|
19
|
+
const {
|
|
20
|
+
secondaryArgs: g,
|
|
21
|
+
prelemAnalyticsProp: D,
|
|
22
|
+
prelemAuthoringHelper: I,
|
|
23
|
+
userId: t,
|
|
24
|
+
filters: o,
|
|
25
|
+
relativePath: f = "",
|
|
26
|
+
articleData: d
|
|
27
|
+
} = w || {}, {
|
|
28
|
+
prelemBaseEndpoint: { language: n, site_host: r }
|
|
29
|
+
} = g, [P, p] = a(!1), [E, v] = a({}), [G, S] = a({}), [T, L] = a(0), h = localStorage.getItem("userId") || t, [b, H] = a([]), [x, M] = a([]), [U, j] = a({}), [B, W] = a({}), [q, z] = a({}), C = async (y, i, u) => {
|
|
30
|
+
var l, m;
|
|
31
|
+
if (!h) {
|
|
32
|
+
s("User ID is not available. Please log in.");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
const c = {
|
|
37
|
+
input: { activity_type: u, target: y.toString(), action: i },
|
|
38
|
+
user_id: h
|
|
39
|
+
}, e = await ae.setPersonalGoal(c, n, r);
|
|
40
|
+
((m = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && i === "goal" ? te("Goal updated successfully!") : i !== "entry" && s("Something went wrong, please try after sometime !");
|
|
41
|
+
} catch (c) {
|
|
42
|
+
console.error("Error in update goal API:", c), s("Something went wrong, please try after sometime !");
|
|
43
|
+
}
|
|
44
|
+
}, _ = async (y = "") => {
|
|
45
|
+
var i, u, l, m;
|
|
46
|
+
if (!h) {
|
|
47
|
+
s("User ID is not available. Please log in.");
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
p(!0);
|
|
52
|
+
const c = {
|
|
53
|
+
date: y,
|
|
54
|
+
user_id: h
|
|
55
|
+
}, e = await A.fetchPersonalTracker(c, n, r);
|
|
56
|
+
if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
|
|
57
|
+
s((u = e == null ? void 0 : e.errors[0]) == null ? void 0 : u.message);
|
|
58
|
+
else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
|
|
59
|
+
const {
|
|
60
|
+
water_intake: K,
|
|
61
|
+
steps: N,
|
|
62
|
+
streak_count: O,
|
|
63
|
+
individual_challenge_info: Q,
|
|
64
|
+
calories: X,
|
|
65
|
+
distance: Y,
|
|
66
|
+
device_info: Z
|
|
67
|
+
} = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
|
|
68
|
+
v(K), S(N), L(O), j(Q), W({ calories: X, distance: Y }), z(Z);
|
|
69
|
+
} else
|
|
70
|
+
console.error("GetPersonalData API failed"), s("GetPersonalData API failed");
|
|
71
|
+
} catch (c) {
|
|
72
|
+
console.error("Error in GetPersonalData API:", c), s("Error in GetPersonalData API"), v({}), S({});
|
|
73
|
+
} finally {
|
|
74
|
+
p(!1);
|
|
75
|
+
}
|
|
76
|
+
}, F = {
|
|
77
|
+
waterIntakeData: E,
|
|
78
|
+
loading: P,
|
|
79
|
+
fetchPersonalData: _,
|
|
80
|
+
updateGoals: C
|
|
81
|
+
}, J = {
|
|
82
|
+
stepsData: G,
|
|
83
|
+
loading: P,
|
|
84
|
+
updateGoals: C
|
|
85
|
+
};
|
|
86
|
+
return ee(() => {
|
|
87
|
+
_(V(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), k(n, r, H, "", "challenges"), k(n, r, M, "", "wellnessevent");
|
|
88
|
+
}, []), /* @__PURE__ */ $(
|
|
89
|
+
R,
|
|
90
|
+
{
|
|
91
|
+
analytics: D,
|
|
92
|
+
authoringHelper: I,
|
|
93
|
+
secondaryArgs: g,
|
|
94
|
+
waterIntakeDetails: F,
|
|
95
|
+
stepsDetails: J,
|
|
96
|
+
streaksCount: T,
|
|
97
|
+
data: b,
|
|
98
|
+
eventData: x,
|
|
99
|
+
articleVodData: d,
|
|
100
|
+
filters: o,
|
|
101
|
+
relativePath: f,
|
|
102
|
+
userId: t,
|
|
103
|
+
deviceInfo: q,
|
|
104
|
+
individualChallengeInfo: U,
|
|
105
|
+
commonInfo: B
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
export {
|
|
110
|
+
le as EngagementHomeComponent,
|
|
111
|
+
le as default
|
|
112
|
+
};
|
|
@@ -1,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-8IOlYjrU.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-BPqB2yy1.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-BcmEMqEd.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (h) => {
|
|
8
8
|
const {
|
|
@@ -1,22 +1,22 @@
|
|
|
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-8IOlYjrU.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-BPqB2yy1.mjs";
|
|
5
|
+
import { m as q } from "./mutateApi-BcmEMqEd.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Q = ({
|
|
8
8
|
data: h,
|
|
9
9
|
prelemAnalyticsProp: y,
|
|
10
10
|
prelemAuthoringHelper: p,
|
|
11
|
-
secondaryArgs:
|
|
12
|
-
userId:
|
|
11
|
+
secondaryArgs: m,
|
|
12
|
+
userId: f,
|
|
13
13
|
filters: P,
|
|
14
14
|
relativePath: w
|
|
15
15
|
}) => {
|
|
16
|
-
const [I, S] = c({}), [D,
|
|
16
|
+
const [I, S] = c({}), [D, E] = c({}), [v, T] = c({}), [_, u] = c(!1), {
|
|
17
17
|
prelemBaseEndpoint: { language: g, site_host: d }
|
|
18
|
-
} =
|
|
19
|
-
var
|
|
18
|
+
} = m, r = localStorage.getItem("userId") || f, G = async (l, t, i) => {
|
|
19
|
+
var s, o;
|
|
20
20
|
if (!r) {
|
|
21
21
|
a("User ID is not available. Please log in.");
|
|
22
22
|
return;
|
|
@@ -25,13 +25,13 @@ const Q = ({
|
|
|
25
25
|
const e = {
|
|
26
26
|
input: { activity_type: i, target: l.toString(), action: t },
|
|
27
27
|
user_id: r
|
|
28
|
-
},
|
|
29
|
-
((o = (
|
|
28
|
+
}, n = await q.setPersonalGoal(e, g, d);
|
|
29
|
+
((o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.community_setPersonalGoal) == null ? void 0 : o.message) === "Created Successfully!!!" && t === "goal" ? H("Goal updated successfully!") : t !== "entry" && a("Something went wrong, please try after sometime !");
|
|
30
30
|
} catch (e) {
|
|
31
31
|
console.error("Error in update goal API:", e), a("Something went wrong, please try after sometime !");
|
|
32
32
|
}
|
|
33
33
|
}, C = async () => {
|
|
34
|
-
var l, t, i,
|
|
34
|
+
var l, t, i, s;
|
|
35
35
|
if (!r) {
|
|
36
36
|
a("User ID is not available. Please log in.");
|
|
37
37
|
return;
|
|
@@ -45,8 +45,8 @@ const Q = ({
|
|
|
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
|
-
const { steps:
|
|
49
|
-
|
|
48
|
+
const { steps: n, calories: k, distance: L, individual_challenge_info: b } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_fetchPersonalTracker;
|
|
49
|
+
T(n), S(b), E({ calories: k, distance: L });
|
|
50
50
|
} else
|
|
51
51
|
console.error("GetPersonalData API failed");
|
|
52
52
|
} catch (o) {
|
|
@@ -56,7 +56,7 @@ const Q = ({
|
|
|
56
56
|
}
|
|
57
57
|
}, A = {
|
|
58
58
|
stepsData: v,
|
|
59
|
-
loading:
|
|
59
|
+
loading: _,
|
|
60
60
|
updateGoals: G
|
|
61
61
|
};
|
|
62
62
|
return j(() => {
|
|
@@ -67,13 +67,13 @@ const Q = ({
|
|
|
67
67
|
content: h,
|
|
68
68
|
analytics: y,
|
|
69
69
|
authoringHelper: p,
|
|
70
|
-
secondaryArgs:
|
|
70
|
+
secondaryArgs: m,
|
|
71
71
|
stepsDetails: A,
|
|
72
72
|
filters: P,
|
|
73
73
|
relativePath: w,
|
|
74
|
-
|
|
74
|
+
individualChallengeInfo: I,
|
|
75
75
|
commonInfo: D,
|
|
76
|
-
userId:
|
|
76
|
+
userId: f
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { a7 as $, a8 as r, a9 as v, B as u, T as E, k as m, aa as P, ab as _, ac as b } from "./ToggleButton-8IOlYjrU.mjs";
|
|
3
|
+
const L = ({
|
|
4
|
+
content: C,
|
|
5
|
+
analytics: S,
|
|
6
|
+
authoringHelper: i,
|
|
7
|
+
secondaryArgs: n,
|
|
8
|
+
filters: o,
|
|
9
|
+
eventData: h
|
|
10
|
+
}) => {
|
|
11
|
+
var d;
|
|
12
|
+
$(S, C, n);
|
|
13
|
+
const T = r(), k = (e) => {
|
|
14
|
+
var s, w;
|
|
15
|
+
const a = (e == null ? void 0 : e.CurrentPageURL) || e.current_page_url, p = ((e == null ? void 0 : e.ContentType) || e.content_type).toLowerCase();
|
|
16
|
+
typeof window < "u" && (o != null && o.onCardClick ? o == null || o.onCardClick({ id: a, type: p }) : (s = n == null ? void 0 : n.prelemBaseEndpoint) != null && s.language ? window.open(`/${(w = n == null ? void 0 : n.prelemBaseEndpoint) == null ? void 0 : w.language}/${p}${a}`) : window.open(`/${p}${a}`));
|
|
17
|
+
}, x = (e) => {
|
|
18
|
+
var a, t;
|
|
19
|
+
o != null && o.onViewAllClick ? o == null || o.onViewAllClick(e) : (a = n == null ? void 0 : n.prelemBaseEndpoint) != null && a.language ? window.open(`/${(t = n == null ? void 0 : n.prelemBaseEndpoint) == null ? void 0 : t.language}/${e}`) : window.open(`/${e}`);
|
|
20
|
+
}, B = { ...{
|
|
21
|
+
slidesToShow: 4,
|
|
22
|
+
slidesToScroll: 4,
|
|
23
|
+
autoPlay: !0,
|
|
24
|
+
dots: !1,
|
|
25
|
+
arrow: !0,
|
|
26
|
+
infinite: !1,
|
|
27
|
+
touchMove: !1,
|
|
28
|
+
responsive: [
|
|
29
|
+
{
|
|
30
|
+
breakpoint: 1024,
|
|
31
|
+
settings: {
|
|
32
|
+
slidesToShow: 3,
|
|
33
|
+
slidesToScroll: 3
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
breakpoint: 900,
|
|
38
|
+
settings: {
|
|
39
|
+
slidesToShow: 3,
|
|
40
|
+
slidesToScroll: 3
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
breakpoint: 600,
|
|
45
|
+
settings: {
|
|
46
|
+
slidesToShow: 2,
|
|
47
|
+
slidesToScroll: 2,
|
|
48
|
+
infinite: !0,
|
|
49
|
+
dots: !0,
|
|
50
|
+
arrow: !1,
|
|
51
|
+
touchMove: !0
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
} };
|
|
56
|
+
return /* @__PURE__ */ l(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
ref: i == null ? void 0 : i.innerRef,
|
|
60
|
+
className: `${T.ExperienceZoneWrapper} PX-ExperienceZoneBox`,
|
|
61
|
+
children: /* @__PURE__ */ l(v, { className: "grid_container prelem-py", children: /* @__PURE__ */ c(u, { children: [
|
|
62
|
+
/* @__PURE__ */ c(u, { className: "PX-headerWrapper", children: [
|
|
63
|
+
/* @__PURE__ */ l(E, { variant: "h3bold", children: "Your experience zone" }),
|
|
64
|
+
/* @__PURE__ */ l(
|
|
65
|
+
m,
|
|
66
|
+
{
|
|
67
|
+
variant: "secondaryButton3",
|
|
68
|
+
className: "viewAllCta",
|
|
69
|
+
onClick: () => x("eventList"),
|
|
70
|
+
children: "View All"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] }),
|
|
74
|
+
/* @__PURE__ */ l(P, { ...B, className: "PX-arrowDotSlider", children: (d = _(h, "start_date", "end_date", !1)) == null ? void 0 : d.map((e) => /* @__PURE__ */ l(
|
|
75
|
+
b,
|
|
76
|
+
{
|
|
77
|
+
content: e,
|
|
78
|
+
secondaryArgs: n,
|
|
79
|
+
onCardClick: k
|
|
80
|
+
},
|
|
81
|
+
e
|
|
82
|
+
)) })
|
|
83
|
+
] }) })
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
L as E
|
|
89
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import "./ToggleButton-8IOlYjrU.mjs";
|
|
3
|
+
import { E as L } from "./ExperienceZone-Bhkjbth9.mjs";
|
|
4
|
+
import { useState as S, useEffect as _ } from "react";
|
|
5
|
+
import { f as T, s as j } from "./index-BPqB2yy1.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const P = (h) => {
|
|
8
|
+
var t, r, i;
|
|
9
|
+
const { pageData: e = {}, secondaryArgs: o, filters: p } = h || {}, [g, w] = S([]), {
|
|
10
|
+
prelemBaseEndpoint: { site_host: E, language: y }
|
|
11
|
+
} = o, A = {
|
|
12
|
+
pageId: e == null ? void 0 : e.page,
|
|
13
|
+
pageTitle: e == null ? void 0 : e.title,
|
|
14
|
+
pageDesc: e == null ? void 0 : e.description,
|
|
15
|
+
pageTags: (r = (t = e == null ? void 0 : e.settings) == null ? void 0 : t.keywords) == null ? void 0 : r.join(", "),
|
|
16
|
+
isAuthoring: !1,
|
|
17
|
+
isSeoEnabled: (i = e == null ? void 0 : e.settings) == null ? void 0 : i.seo_blockIndexing,
|
|
18
|
+
isAnalyticsEnabled: e == null ? void 0 : e.analytics_enable
|
|
19
|
+
}, C = {
|
|
20
|
+
isAuthoring: !1
|
|
21
|
+
}, a = async (b, v, f = "", s = "wellnessevent") => {
|
|
22
|
+
var c, m, d, l;
|
|
23
|
+
const n = await T.getContentSchemaList(
|
|
24
|
+
{
|
|
25
|
+
searchTerm: f,
|
|
26
|
+
filter: (s == null ? void 0 : s.toLocaleLowerCase()) === "events" ? "wellnessevent" : s == null ? void 0 : s.toLocaleLowerCase()
|
|
27
|
+
},
|
|
28
|
+
b || "en",
|
|
29
|
+
E
|
|
30
|
+
);
|
|
31
|
+
(m = (c = n == null ? void 0 : n.data) == null ? void 0 : c.publish_getContents) != null && m.records ? v((l = (d = n == null ? void 0 : n.data) == null ? void 0 : d.publish_getContents) == null ? void 0 : l.records) : j("Something went wrong !");
|
|
32
|
+
};
|
|
33
|
+
return _(() => {
|
|
34
|
+
a(y, w, "", "wellnessevent");
|
|
35
|
+
}, []), /* @__PURE__ */ x(
|
|
36
|
+
L,
|
|
37
|
+
{
|
|
38
|
+
analytics: A,
|
|
39
|
+
authoringHelper: C,
|
|
40
|
+
secondaryArgs: o,
|
|
41
|
+
eventData: g,
|
|
42
|
+
filters: p
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
P as default
|
|
48
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { y as
|
|
1
|
+
import { n as _ } from "./index-BPqB2yy1.mjs";
|
|
2
|
+
import P from "react";
|
|
3
|
+
import { y as g, z as m } from "./ToggleButton-8IOlYjrU.mjs";
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -36,7 +36,7 @@ var O = Object.create, i = Object.defineProperty, D = Object.getOwnPropertyDescr
|
|
|
36
36
|
k(b, {
|
|
37
37
|
default: () => l
|
|
38
38
|
});
|
|
39
|
-
var d = F(b), u = w(
|
|
39
|
+
var d = F(b), u = w(P), n = g, L = m;
|
|
40
40
|
const c = "https://connect.facebook.net/en_US/sdk.js", f = "FB", y = "fbAsyncInit", M = "facebook-player-";
|
|
41
41
|
class l extends u.Component {
|
|
42
42
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as b } from "./index-BPqB2yy1.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-8IOlYjrU.mjs";
|
|
4
4
|
function R(s, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -20,24 +20,24 @@ function R(s, e) {
|
|
|
20
20
|
var I = Object.create, u = Object.defineProperty, D = Object.getOwnPropertyDescriptor, w = Object.getOwnPropertyNames, M = Object.getPrototypeOf, k = Object.prototype.hasOwnProperty, U = (s, e, t) => e in s ? u(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, N = (s, e) => {
|
|
21
21
|
for (var t in e)
|
|
22
22
|
u(s, t, { get: e[t], enumerable: !0 });
|
|
23
|
-
},
|
|
23
|
+
}, m = (s, e, t, i) => {
|
|
24
24
|
if (e && typeof e == "object" || typeof e == "function")
|
|
25
25
|
for (let n of w(e))
|
|
26
26
|
!k.call(s, n) && n !== t && u(s, n, { get: () => e[n], enumerable: !(i = D(e, n)) || i.enumerable });
|
|
27
27
|
return s;
|
|
28
|
-
}, j = (s, e, t) => (t = s != null ? I(M(s)) : {},
|
|
28
|
+
}, j = (s, e, t) => (t = s != null ? I(M(s)) : {}, m(
|
|
29
29
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
30
|
// file that has been converted to a CommonJS file using a Babel-
|
|
31
31
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
32
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
33
|
!s || !s.__esModule ? u(t, "default", { value: s, enumerable: !0 }) : t,
|
|
34
34
|
s
|
|
35
|
-
)), H = (s) =>
|
|
35
|
+
)), H = (s) => m(u({}, "__esModule", { value: !0 }), s), r = (s, e, t) => (U(s, typeof e != "symbol" ? e + "" : e, t), t), E = {};
|
|
36
36
|
N(E, {
|
|
37
37
|
default: () => P
|
|
38
38
|
});
|
|
39
39
|
var g = H(E), d = j(_), a = O, c = A;
|
|
40
|
-
const y = typeof navigator < "u", F = y && navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1,
|
|
40
|
+
const y = typeof navigator < "u", F = y && navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1, v = y && (/iPad|iPhone|iPod/.test(navigator.userAgent) || F) && !window.MSStream, V = y && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && !window.MSStream, T = "https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js", C = "Hls", B = "https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js", x = "dashjs", K = "https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js", G = "flvjs", X = /www\.dropbox\.com\/.+/, f = /https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/, z = "https://videodelivery.net/{id}/manifest/video.m3u8";
|
|
41
41
|
class P extends d.Component {
|
|
42
42
|
constructor() {
|
|
43
43
|
super(...arguments), r(this, "onReady", (...e) => this.props.onReady(...e)), r(this, "onPlay", (...e) => this.props.onPlay(...e)), r(this, "onBuffer", (...e) => this.props.onBuffer(...e)), r(this, "onBufferEnd", (...e) => this.props.onBufferEnd(...e)), r(this, "onPause", (...e) => this.props.onPause(...e)), r(this, "onEnded", (...e) => this.props.onEnded(...e)), r(this, "onError", (...e) => this.props.onError(...e)), r(this, "onPlayBackRateChange", (e) => this.props.onPlaybackRateChange(e.target.playbackRate)), r(this, "onEnablePIP", (...e) => this.props.onEnablePIP(...e)), r(this, "onDisablePIP", (e) => {
|
|
@@ -61,7 +61,7 @@ class P extends d.Component {
|
|
|
61
61
|
componentDidMount() {
|
|
62
62
|
this.props.onMount && this.props.onMount(this), this.addListeners(this.player);
|
|
63
63
|
const e = this.getSource(this.props.url);
|
|
64
|
-
e && (this.player.src = e), (
|
|
64
|
+
e && (this.player.src = e), (v || this.props.config.forceDisableHls) && this.player.load();
|
|
65
65
|
}
|
|
66
66
|
componentDidUpdate(e) {
|
|
67
67
|
this.shouldUseAudio(this.props) !== this.shouldUseAudio(e) && (this.removeListeners(this.prevPlayer, e.url), this.addListeners(this.player)), this.props.url !== e.url && !(0, a.isMediaStream)(this.props.url) && !(this.props.url instanceof Array) && (this.player.srcObject = null);
|
|
@@ -80,7 +80,7 @@ class P extends d.Component {
|
|
|
80
80
|
return e.config.forceVideo || e.config.attributes.poster ? !1 : c.AUDIO_EXTENSIONS.test(e.url) || e.config.forceAudio;
|
|
81
81
|
}
|
|
82
82
|
shouldUseHLS(e) {
|
|
83
|
-
return V && this.props.config.forceSafariHLS || this.props.config.forceHLS ? !0 :
|
|
83
|
+
return V && this.props.config.forceSafariHLS || this.props.config.forceHLS ? !0 : v || this.props.config.forceDisableHls ? !1 : c.HLS_EXTENSIONS.test(e) || f.test(e);
|
|
84
84
|
}
|
|
85
85
|
shouldUseDASH(e) {
|
|
86
86
|
return c.DASH_EXTENSIONS.test(e) || this.props.config.forceDASH;
|
package/{IndividualChallengeComponent-gUfQv-rL.mjs → IndividualChallengeComponent-BJ5RfzMH.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as R } from "react/jsx-runtime";
|
|
2
|
-
import { I as ee } from "./ToggleButton
|
|
2
|
+
import { I as ee } from "./ToggleButton-8IOlYjrU.mjs";
|
|
3
3
|
import { useState as m, useEffect as re } from "react";
|
|
4
|
-
import { f as y, s as u, a as q } from "./index-
|
|
5
|
-
import { m as w } from "./mutateApi-
|
|
4
|
+
import { f as y, s as u, a as q } from "./index-BPqB2yy1.mjs";
|
|
5
|
+
import { m as w } from "./mutateApi-BcmEMqEd.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const ce = (E) => {
|
|
8
8
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as y } from "./index-BPqB2yy1.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as
|
|
3
|
+
import { y as _, z as m } from "./ToggleButton-8IOlYjrU.mjs";
|
|
4
4
|
function P(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const o = e[t];
|
|
@@ -36,7 +36,7 @@ var g = Object.create, n = Object.defineProperty, b = Object.getOwnPropertyDescr
|
|
|
36
36
|
L(d, {
|
|
37
37
|
default: () => i
|
|
38
38
|
});
|
|
39
|
-
var h = D(d), u = K(f), p =
|
|
39
|
+
var h = D(d), u = K(f), p = _, M = m;
|
|
40
40
|
const S = "https://cdn.embed.ly/player-0.1.0.min.js", T = "playerjs";
|
|
41
41
|
class i extends u.Component {
|
|
42
42
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as y } from "./index-BPqB2yy1.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-8IOlYjrU.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 {
|
|
1
|
+
import { n as P } from "./index-BPqB2yy1.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { z as E } from "./ToggleButton
|
|
3
|
+
import { z as E } from "./ToggleButton-8IOlYjrU.mjs";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -20,23 +20,23 @@ function b(r, e) {
|
|
|
20
20
|
var _ = Object.create, a = Object.defineProperty, L = Object.getOwnPropertyDescriptor, k = Object.getOwnPropertyNames, I = Object.getPrototypeOf, O = Object.prototype.hasOwnProperty, M = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, x = (r, e) => {
|
|
21
21
|
for (var t in e)
|
|
22
22
|
a(r, t, { get: e[t], enumerable: !0 });
|
|
23
|
-
},
|
|
23
|
+
}, v = (r, e, t, i) => {
|
|
24
24
|
if (e && typeof e == "object" || typeof e == "function")
|
|
25
25
|
for (let s of k(e))
|
|
26
26
|
!O.call(r, s) && s !== t && a(r, s, { get: () => e[s], enumerable: !(i = L(e, s)) || i.enumerable });
|
|
27
27
|
return r;
|
|
28
|
-
}, R = (r, e, t) => (t = r != null ? _(I(r)) : {},
|
|
28
|
+
}, R = (r, e, t) => (t = r != null ? _(I(r)) : {}, v(
|
|
29
29
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
30
|
// file that has been converted to a CommonJS file using a Babel-
|
|
31
31
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
32
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
33
|
!r || !r.__esModule ? a(t, "default", { value: r, enumerable: !0 }) : t,
|
|
34
34
|
r
|
|
35
|
-
)), w = (r) =>
|
|
36
|
-
x(
|
|
35
|
+
)), w = (r) => v(a({}, "__esModule", { value: !0 }), r), n = (r, e, t) => (M(r, typeof e != "symbol" ? e + "" : e, t), t), m = {};
|
|
36
|
+
x(m, {
|
|
37
37
|
default: () => l
|
|
38
38
|
});
|
|
39
|
-
var y = w(
|
|
39
|
+
var y = w(m), f = R(g), p = E;
|
|
40
40
|
const D = "https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";
|
|
41
41
|
class l extends f.Component {
|
|
42
42
|
constructor() {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as s, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { c as I } from "./index-BPqB2yy1.mjs";
|
|
3
|
+
import S from "react";
|
|
4
|
+
import { M as f } from "./Mapping-jqmNMEpL.mjs";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const p = {};
|
|
7
|
+
Object.keys(f).forEach((o) => (p[o] = S.lazy(
|
|
8
|
+
() => import("./index-BQE4JEea.mjs").then((n) => ({
|
|
9
|
+
default: n[f[o]]
|
|
10
|
+
}))
|
|
11
|
+
), p));
|
|
12
|
+
const B = ({ content: o, analytics: n, authoringHelper: t, secondaryArgs: a, prelemId: r }) => {
|
|
13
|
+
const c = p[r];
|
|
14
|
+
return /* @__PURE__ */ s(j, { children: c ? /* @__PURE__ */ s(
|
|
15
|
+
c,
|
|
16
|
+
{
|
|
17
|
+
content: o,
|
|
18
|
+
analytics: n,
|
|
19
|
+
authoringHelper: t,
|
|
20
|
+
secondaryArgs: a
|
|
21
|
+
}
|
|
22
|
+
) : null });
|
|
23
|
+
}, H = (o = {}) => {
|
|
24
|
+
const { pageData: n = {}, instances: t = {}, secondaryArgs: a = {} } = o, { Children: r = [] } = n, {
|
|
25
|
+
prelemBaseEndpoint: { site_host: c }
|
|
26
|
+
} = a, b = (e, l) => l[e], E = () => r == null ? void 0 : r.map((e, l) => {
|
|
27
|
+
var P, u, g, y, h;
|
|
28
|
+
try {
|
|
29
|
+
const d = b(e == null ? void 0 : e.DocumentPath, n == null ? void 0 : n.Content), A = !!(n != null && n.AnalyticsEnable && (e != null && e.AnalyticsEnabled) && ((P = Object.keys(t || {})) != null && P.length)), i = {
|
|
30
|
+
pageId: n == null ? void 0 : n.Page,
|
|
31
|
+
pageTitle: n == null ? void 0 : n.Title,
|
|
32
|
+
pageDesc: ((u = n == null ? void 0 : n.PageSettings) == null ? void 0 : u.PageDescription) || "",
|
|
33
|
+
pageTags: (y = (g = n == null ? void 0 : n.PageSettings) == null ? void 0 : g.PageTags) == null ? void 0 : y.join(", "),
|
|
34
|
+
prelemId: e == null ? void 0 : e.PrelemId,
|
|
35
|
+
prelemTitle: e == null ? void 0 : e.PrelemName,
|
|
36
|
+
prelemTags: (h = e == null ? void 0 : e.PrelemTag) == null ? void 0 : h.join(", "),
|
|
37
|
+
prelemPosition: l + 1,
|
|
38
|
+
isAuthoring: !1,
|
|
39
|
+
isSeoEnabled: e == null ? void 0 : e.SeoEnabled,
|
|
40
|
+
isAnalyticsEnabled: A
|
|
41
|
+
}, T = {
|
|
42
|
+
isEditPage: !1,
|
|
43
|
+
isModalShow: !0
|
|
44
|
+
// innerRef: myRefs.current[key + 1],
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ s("div", { id: `Prelem${l + 1}`, children: d ? /* @__PURE__ */ s(
|
|
47
|
+
B,
|
|
48
|
+
{
|
|
49
|
+
content: d,
|
|
50
|
+
analytics: i,
|
|
51
|
+
authoringHelper: T,
|
|
52
|
+
secondaryArgs: { ...I(c) },
|
|
53
|
+
prelemId: e == null ? void 0 : e.PrelemId
|
|
54
|
+
}
|
|
55
|
+
) : null }, `Prelem-key${l + 1}`);
|
|
56
|
+
} catch {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return /* @__PURE__ */ s("div", { children: (r == null ? void 0 : r.length) > 0 ? E() : null });
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
H as default
|
|
64
|
+
};
|