@platform-x/hcltechx-mfe-wrapper 1.0.21 → 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-BQoHiiKQ.mjs → ArticleVodListComponent-DnI80nGq.mjs} +2 -2
- package/{ChallengeDetailComponent-CTXOkTDi.mjs → ChallengeDetailComponent-BQOqyQe4.mjs} +3 -3
- package/{ChallengeSliderComponent-CAcMNlqM.mjs → ChallengeSliderComponent-DVyhqNVQ.mjs} +3 -3
- package/{CommonContentComponent-GDoe3quI.mjs → CommonContentComponent-Hnb8Xr5I.mjs} +3 -3
- package/{DailyMotion-DooEv23f.mjs → DailyMotion-BttO0I0C.mjs} +2 -2
- package/EngagementHomeComponent-LYRrGICV.mjs +112 -0
- package/{EventDetailComponent-B2ce5Inr.mjs → EventDetailComponent-BlbyfC5O.mjs} +3 -3
- package/{EventListComponent-B9ESwYEK.mjs → EventListComponent-B39xrxgu.mjs} +17 -17
- package/ExperienceZone-Bhkjbth9.mjs +89 -0
- package/ExperienceZoneComponent-F16DcM9H.mjs +48 -0
- package/{Facebook-Ddts7n8c.mjs → Facebook-BhbZsSMB.mjs} +2 -2
- package/{FilePlayer-N6K4OsOh.mjs → FilePlayer-DBOphwby.mjs} +2 -2
- package/{IndividualChallengeComponent-o7jJX3FB.mjs → IndividualChallengeComponent-BJ5RfzMH.mjs} +3 -3
- package/{Kaltura-DGdbSKVx.mjs → Kaltura-DkAlATL_.mjs} +2 -2
- package/{Mixcloud-MVWAMQDg.mjs → Mixcloud-CguOqMm8.mjs} +2 -2
- package/{Mux-BnTfpN-K.mjs → Mux-D6PeF7j6.mjs} +2 -2
- package/{PageComponent-CKrjcuSx.mjs → PageComponent-CLrj-Wc_.mjs} +2 -2
- package/{Preview-DzLPSp_r.mjs → Preview-9xbWxXDK.mjs} +1 -1
- package/{RecentCarousel-Cl86PKoA.mjs → RecentCarousel-D6dx6TIr.mjs} +23 -23
- package/{Share-D0aSQ9zk.mjs → Share-DQnAo1oF.mjs} +2 -2
- package/{SoundCloud-CyoxvKoN.mjs → SoundCloud-CZ-yrJeU.mjs} +2 -2
- package/{Streamable-mIh-PEmg.mjs → Streamable-CnJYyZu0.mjs} +2 -2
- package/{ToggleButton-DCe4d9MJ.mjs → ToggleButton-8IOlYjrU.mjs} +12367 -12145
- package/{Twitch-BOWa3Tr1.mjs → Twitch-DvDm30_Y.mjs} +2 -2
- package/{Vidyard-qNmM07ku.mjs → Vidyard-CxuW7iGh.mjs} +2 -2
- package/{Vimeo-CCvDAdIG.mjs → Vimeo-BkQKIRE4.mjs} +2 -2
- package/{Wistia-shaJ3dVi.mjs → Wistia-CQeoZyhr.mjs} +2 -2
- package/{YouTube-B-4Esa0L.mjs → YouTube-DOOQlFVu.mjs} +2 -2
- package/{index-CeTmWGyC.mjs → index-BPqB2yy1.mjs} +686 -683
- package/{index-Di95Ywjp.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/{mutateApi-CRYclteK.mjs → mutateApi-BcmEMqEd.mjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/EngagementHomeComponent-0FR59glv.mjs +0 -101
|
@@ -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 { n as P } from "./index-
|
|
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 { n as _ } from "./index-
|
|
1
|
+
import { n as _ } from "./index-BPqB2yy1.mjs";
|
|
2
2
|
import P from "react";
|
|
3
|
-
import { y as g, z as m } from "./ToggleButton-
|
|
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];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as b } from "./index-
|
|
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];
|
package/{IndividualChallengeComponent-o7jJX3FB.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 { n as y } from "./index-
|
|
1
|
+
import { n as y } from "./index-BPqB2yy1.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as _, z as m } from "./ToggleButton-
|
|
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];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as y } from "./index-
|
|
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 { n as P } from "./index-
|
|
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];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { c as I } from "./index-
|
|
2
|
+
import { c as I } from "./index-BPqB2yy1.mjs";
|
|
3
3
|
import S from "react";
|
|
4
4
|
import { M as f } from "./Mapping-jqmNMEpL.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const p = {};
|
|
7
7
|
Object.keys(f).forEach((o) => (p[o] = S.lazy(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-BQE4JEea.mjs").then((n) => ({
|
|
9
9
|
default: n[f[o]]
|
|
10
10
|
}))
|
|
11
11
|
), p));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { m as y, B as i, T as x, o as
|
|
3
|
-
import
|
|
4
|
-
import { o as
|
|
2
|
+
import { m as y, B as i, T as x, o as P, p as V, q as B, g as z, t as H, V as M, P as U, L as F, u as j, v as A, w as W, x as q } from "./ToggleButton-8IOlYjrU.mjs";
|
|
3
|
+
import O, { useState as Y, useEffect as G } from "react";
|
|
4
|
+
import { o as J } from "./index-BPqB2yy1.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
7
|
-
const r =
|
|
6
|
+
const K = y(() => {
|
|
7
|
+
const r = J();
|
|
8
8
|
return {
|
|
9
9
|
recentCardsWrapper: {
|
|
10
10
|
"&.recentCardsBg": {
|
|
@@ -15,7 +15,7 @@ const Q = y(() => {
|
|
|
15
15
|
},
|
|
16
16
|
"& .PX-TopHeading": {
|
|
17
17
|
padding: "15px",
|
|
18
|
-
background:
|
|
18
|
+
background: r.palette.prelemType2.ACCENTS.VARIANT6.TITLE,
|
|
19
19
|
borderTopRightRadius: r.borderRadius.value,
|
|
20
20
|
borderTopLeftRadius: r.borderRadius.value,
|
|
21
21
|
"& h5": {
|
|
@@ -124,12 +124,12 @@ const Q = y(() => {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}), oe = ({ isVideoLandingPage: r, data: w, secondaryArgs: t, filters: d }) => {
|
|
127
|
-
const k = t == null ? void 0 : t.platform,
|
|
127
|
+
const k = t == null ? void 0 : t.platform, E = K(), { gcpUrl: c, bucketName: m } = t, [L, I] = Y([]), N = (e) => {
|
|
128
128
|
var h, p, s;
|
|
129
129
|
const a = (e == null ? void 0 : e.CurrentPageURL) || e.current_page_url, l = ((h = e == null ? void 0 : e.content_type) == null ? void 0 : h.toLowerCase()) === "vod" ? "video" : "article";
|
|
130
130
|
typeof window < "u" && (d != null && d.onCardClick ? d == null || d.onCardClick({ id: a, type: l }) : (p = t == null ? void 0 : t.prelemBaseEndpoint) != null && p.language ? window.open(`/${(s = t == null ? void 0 : t.prelemBaseEndpoint) == null ? void 0 : s.language}/${l}${a}`) : window.open(`/${l}${a}`));
|
|
131
|
-
},
|
|
132
|
-
k !== "isAuthoring" &&
|
|
131
|
+
}, X = (e) => {
|
|
132
|
+
k !== "isAuthoring" && N(e);
|
|
133
133
|
}, _ = {
|
|
134
134
|
dotPosition: "outside",
|
|
135
135
|
arrows: !1,
|
|
@@ -141,10 +141,10 @@ const Q = y(() => {
|
|
|
141
141
|
xs: 1
|
|
142
142
|
}
|
|
143
143
|
}, f = () => {
|
|
144
|
-
const e =
|
|
145
|
-
e &&
|
|
146
|
-
}, S =
|
|
147
|
-
|
|
144
|
+
const e = A(w, _.itemsPerRow);
|
|
145
|
+
e && I(e);
|
|
146
|
+
}, S = q(f, 100);
|
|
147
|
+
G(() => {
|
|
148
148
|
f();
|
|
149
149
|
const e = () => {
|
|
150
150
|
S();
|
|
@@ -156,19 +156,19 @@ const Q = y(() => {
|
|
|
156
156
|
const b = (e) => {
|
|
157
157
|
e.target.src !== W && (e.target.onerror = null, e.target.src = W);
|
|
158
158
|
};
|
|
159
|
-
return /* @__PURE__ */ n(i, { className: `${
|
|
159
|
+
return /* @__PURE__ */ n(i, { className: `${E.recentCardsWrapper} recentCardsBg`, children: [
|
|
160
160
|
/* @__PURE__ */ o(i, { className: "PX-TopHeading", children: /* @__PURE__ */ o(x, { variant: "h5medium", children: r ? "Related Videos" : "Related Articles" }) }),
|
|
161
|
-
/* @__PURE__ */ o(i, { className: "PX-CardBox", children: /* @__PURE__ */ o(i, { className: "PX-InnerBox", children:
|
|
161
|
+
/* @__PURE__ */ o(i, { className: "PX-CardBox", children: /* @__PURE__ */ o(i, { className: "PX-InnerBox", children: L.map(
|
|
162
162
|
(e) => e == null ? void 0 : e.map((a, l) => {
|
|
163
|
-
var v,
|
|
163
|
+
var v, T;
|
|
164
164
|
const { original_image: h = {}, thumbnail: p } = a, { original_image_relative_path: s, ext: D } = h;
|
|
165
165
|
let R, u;
|
|
166
|
-
return ((v = a == null ? void 0 : a.content_type) == null ? void 0 : v.toLowerCase()) === "vod" ? (R =
|
|
166
|
+
return ((v = a == null ? void 0 : a.content_type) == null ? void 0 : v.toLowerCase()) === "vod" ? (R = P(c, m, V(p)), u = P(c, m, p)) : (R = B(
|
|
167
167
|
c,
|
|
168
168
|
m,
|
|
169
169
|
s,
|
|
170
170
|
"webp"
|
|
171
|
-
), u =
|
|
171
|
+
), u = B(
|
|
172
172
|
c,
|
|
173
173
|
m,
|
|
174
174
|
s || p,
|
|
@@ -176,13 +176,13 @@ const Q = y(() => {
|
|
|
176
176
|
)), /* @__PURE__ */ n(
|
|
177
177
|
i,
|
|
178
178
|
{
|
|
179
|
-
onClick: () =>
|
|
179
|
+
onClick: () => X(a),
|
|
180
180
|
className: "PX-CardWp",
|
|
181
181
|
"data-testid": "enable-vod-play",
|
|
182
182
|
children: [
|
|
183
183
|
/* @__PURE__ */ n(i, { className: "PX-MediaWp", children: [
|
|
184
|
-
/* @__PURE__ */ n(
|
|
185
|
-
|
|
184
|
+
/* @__PURE__ */ n(z, { component: "picture", children: [
|
|
185
|
+
H.map(({ breakpoint: g }, $) => /* @__PURE__ */ n(O.Fragment, { children: [
|
|
186
186
|
/* @__PURE__ */ o(
|
|
187
187
|
"source",
|
|
188
188
|
{
|
|
@@ -217,7 +217,7 @@ const Q = y(() => {
|
|
|
217
217
|
}
|
|
218
218
|
)
|
|
219
219
|
] }),
|
|
220
|
-
((
|
|
220
|
+
((T = a == null ? void 0 : a.content_type) == null ? void 0 : T.toLowerCase()) === "vod" ? /* @__PURE__ */ o(i, { className: "PX-MidIcon", children: /* @__PURE__ */ o("img", { alt: "", src: M }) }) : (
|
|
221
221
|
// <Box className='PX-MidIcon'>
|
|
222
222
|
// <img alt='' src={ArticleIcon} />
|
|
223
223
|
// </Box>
|
|
@@ -225,7 +225,7 @@ const Q = y(() => {
|
|
|
225
225
|
)
|
|
226
226
|
] }),
|
|
227
227
|
/* @__PURE__ */ n(i, { className: "PX-CardRightContent", children: [
|
|
228
|
-
/* @__PURE__ */ o(x, { variant: "h7regular", children:
|
|
228
|
+
/* @__PURE__ */ o(x, { variant: "h7regular", children: U((a == null ? void 0 : a.publishedDate) || (a == null ? void 0 : a.published_date)) }),
|
|
229
229
|
/* @__PURE__ */ o(x, { variant: "h6medium", className: "title", children: a == null ? void 0 : a.title }),
|
|
230
230
|
/* @__PURE__ */ n(F, { href: "", className: "readmoreCta", children: [
|
|
231
231
|
/* @__PURE__ */ o(x, { variant: "h6regular", children: "Read more" }),
|
|
@@ -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-8IOlYjrU.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-BPqB2yy1.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-BPqB2yy1.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { y as b, z as v } from "./ToggleButton-
|
|
3
|
+
import { y as b, z as v } from "./ToggleButton-8IOlYjrU.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-BPqB2yy1.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as _, z as b } from "./ToggleButton-
|
|
3
|
+
import { y as _, z as b } from "./ToggleButton-8IOlYjrU.mjs";
|
|
4
4
|
function P(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|