@platform-x/hcltechx-mfe-wrapper 2.0.25 → 2.0.27
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-B1wPLpOm.mjs +232 -0
- package/{ArticleVodListComponent-CcOG897w.mjs → ArticleVodListComponent-BSCdKaBx.mjs} +9 -7
- package/{ChallengeDetailComponent-C47aLFFT.mjs → ChallengeDetailComponent-Dc16k8CL.mjs} +7 -7
- package/{ChallengeSliderComponent-DF1u4Nng.mjs → ChallengeSliderComponent-LSqhGchY.mjs} +3 -3
- package/{CommonContentComponent-CioTPoV-.mjs → CommonContentComponent-PqQSVXvH.mjs} +3 -3
- package/{DailyMotion-CuJbJ57X.mjs → DailyMotion-BImjfUKH.mjs} +4 -4
- package/EngagementHomeComponent-D64LUaEe.mjs +115 -0
- package/{EventDetailComponent-CNpsWEK_.mjs → EventDetailComponent-BcXtjiWP.mjs} +7 -7
- package/EventList-D5JMWL_A.mjs +798 -0
- package/{EventListComponent-CZZ4sHGi.mjs → EventListComponent-DS4UzV2u.mjs} +41 -38
- package/{ExperienceZone-DOnREA3B.mjs → ExperienceZone-Dja3P2rA.mjs} +4 -4
- package/{ExperienceZoneComponent-CAhg-HP_.mjs → ExperienceZoneComponent-7aRvmsFj.mjs} +8 -8
- package/{Facebook-LZzQQBwB.mjs → Facebook-BEyOERxl.mjs} +7 -7
- package/{FilePlayer-PSjdtDS2.mjs → FilePlayer-CfOaEb8b.mjs} +5 -5
- package/FilterModal-Dy9URxAu.mjs +175 -0
- package/{IndividualChallengeComponent-CKknZrM-.mjs → IndividualChallengeComponent-B3Ll6nRm.mjs} +3 -3
- package/{Kaltura-VYeCOVrq.mjs → Kaltura-EfzaJ06f.mjs} +5 -5
- package/{Mixcloud-Dx6nltY4.mjs → Mixcloud-DBFdrwUt.mjs} +5 -5
- package/{Mux-DSf8-Tk4.mjs → Mux-7GpdLvqh.mjs} +2 -2
- package/{PageComponent-At1hcA2N.mjs → PageComponent-BOjOl4f4.mjs} +2 -2
- package/{Preview-Dz7WFqwK.mjs → Preview-D2gGdyHS.mjs} +1 -1
- package/{RecentCarousel-DKsUX4Ie.mjs → RecentCarousel-BbYJg84z.mjs} +2 -2
- package/{Share-B7M0YRGF.mjs → Share-CYP0C6AX.mjs} +2 -2
- package/{SoundCloud-NszztQrZ.mjs → SoundCloud-GYfruIK6.mjs} +4 -4
- package/{Streamable-CfvzfJlj.mjs → Streamable-mWiELVXq.mjs} +7 -7
- package/{ToggleButton-CWZQywKU.mjs → ToggleButton-BGGSbdwG.mjs} +67421 -68282
- package/{Twitch-DSHakBLK.mjs → Twitch-Bx1ZLCBF.mjs} +6 -6
- package/{Vidyard-Dgqt_3_q.mjs → Vidyard-BOXj4yjs.mjs} +11 -11
- package/{Vimeo-CFOJzWk4.mjs → Vimeo-BJ0oEQdN.mjs} +2 -2
- package/{Wistia-Ca2t-R17.mjs → Wistia-BAmwBaPh.mjs} +2 -2
- package/{YouTube-Bxi1pwEc.mjs → YouTube-lbJBHWr2.mjs} +7 -7
- package/{index-BtvW_l5Z.mjs → index-CFaxa0Mq.mjs} +487 -490
- package/{index-DcJjqQjm.mjs → index-D_yuRHmU.mjs} +38 -35
- package/index.mjs +1 -1
- package/lib/prelems/Components/EventListComponent.d.ts +2 -1
- package/lib/prelems-wrapper.d.ts +0 -5
- package/{mutateApi-Yg7CgHvo.mjs → mutateApi-BgyTvTL1.mjs} +1 -1
- package/package.json +1 -1
- package/EngagementHomeComponent-C4kpEtQ-.mjs +0 -116
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import "./ToggleButton-BGGSbdwG.mjs";
|
|
3
|
+
import { A as n } from "./ArticleVodList-B1wPLpOm.mjs";
|
|
3
4
|
import "react";
|
|
4
|
-
import "./index-
|
|
5
|
+
import "./index-CFaxa0Mq.mjs";
|
|
5
6
|
import "react-dom";
|
|
6
|
-
|
|
7
|
+
import "./FilterModal-Dy9URxAu.mjs";
|
|
8
|
+
const x = ({
|
|
7
9
|
data: t,
|
|
8
10
|
prelemAnalyticsProp: o,
|
|
9
11
|
prelemAuthoringHelper: r,
|
|
@@ -12,8 +14,8 @@ const f = ({
|
|
|
12
14
|
userId: s,
|
|
13
15
|
filters: e,
|
|
14
16
|
relativePath: m
|
|
15
|
-
}) => /* @__PURE__ */
|
|
16
|
-
|
|
17
|
+
}) => /* @__PURE__ */ p(
|
|
18
|
+
n,
|
|
17
19
|
{
|
|
18
20
|
content: t,
|
|
19
21
|
analytics: o,
|
|
@@ -24,5 +26,5 @@ const f = ({
|
|
|
24
26
|
}
|
|
25
27
|
);
|
|
26
28
|
export {
|
|
27
|
-
|
|
29
|
+
x as default
|
|
28
30
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as Z } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as $ } from "./ToggleButton-BGGSbdwG.mjs";
|
|
3
3
|
import { useState as a, useEffect as R } from "react";
|
|
4
|
-
import { s as f, f as C } from "./index-
|
|
5
|
-
import { m as ee } from "./mutateApi-
|
|
4
|
+
import { s as f, f as C } from "./index-CFaxa0Mq.mjs";
|
|
5
|
+
import { m as ee } from "./mutateApi-BgyTvTL1.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const ie = (T) => {
|
|
8
8
|
var B;
|
|
@@ -15,7 +15,7 @@ const ie = (T) => {
|
|
|
15
15
|
filters: D
|
|
16
16
|
} = T || {}, {
|
|
17
17
|
prelemBaseEndpoint: { language: m, site_host: h }
|
|
18
|
-
} = A, [
|
|
18
|
+
} = A, [p, u] = a(!1), [U, w] = a(!1), [b, k] = a(0), [J, x] = a(0), [L, H] = a([]), [K, v] = a(!1), [N, O] = a({}), [q, z] = a("0"), [E, F] = a(0), [M, Q] = a(0), _ = r != null && r.target_type && (r == null ? void 0 : r.target_type) !== "" ? (B = JSON.parse(r == null ? void 0 : r.target_type)[0]) == null ? void 0 : B.label : "steps", d = localStorage.getItem("userId") || P, V = async (c) => {
|
|
19
19
|
var n, l, i, o;
|
|
20
20
|
if (!d) {
|
|
21
21
|
f("User ID is not available. Please log in.");
|
|
@@ -113,9 +113,9 @@ const ie = (T) => {
|
|
|
113
113
|
}
|
|
114
114
|
}, X = {
|
|
115
115
|
joinChallenge: V,
|
|
116
|
-
loading:
|
|
117
|
-
isEnrolled:
|
|
118
|
-
enrolledParticipants:
|
|
116
|
+
loading: p,
|
|
117
|
+
isEnrolled: U,
|
|
118
|
+
enrolledParticipants: b,
|
|
119
119
|
userAchieved: J,
|
|
120
120
|
leaderBoardList: L,
|
|
121
121
|
showPopup: K,
|
|
@@ -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-BGGSbdwG.mjs";
|
|
3
3
|
import { useState as a, useEffect as Z } from "react";
|
|
4
|
-
import { C as $, f as _, s as c, a as V } from "./index-
|
|
5
|
-
import { m as R } from "./mutateApi-
|
|
4
|
+
import { C as $, f as _, s as c, a as V } from "./index-CFaxa0Mq.mjs";
|
|
5
|
+
import { m as R } from "./mutateApi-BgyTvTL1.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const ae = (T) => {
|
|
8
8
|
var I, P, A;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as O } from "react/jsx-runtime";
|
|
2
2
|
import j, { memo as x, useState as g, useEffect as J } from "react";
|
|
3
|
-
import { F as M, f as N, s as w } from "./index-
|
|
4
|
-
import { m as $ } from "./mutateApi-
|
|
3
|
+
import { F as M, f as N, s as w } from "./index-CFaxa0Mq.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-BgyTvTL1.mjs";
|
|
5
5
|
import { M as T } from "./Mapping-DicSeRn3.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-D_yuRHmU.mjs").then((t) => ({
|
|
10
10
|
default: t[T[l]]
|
|
11
11
|
}))
|
|
12
12
|
), c));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as P } from "./index-
|
|
1
|
+
import { l as P } from "./index-CFaxa0Mq.mjs";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { y as D, z as O } from "./ToggleButton-BGGSbdwG.mjs";
|
|
4
4
|
function b(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -127,10 +127,10 @@ class p extends c.Component {
|
|
|
127
127
|
n(p, "displayName", "DailyMotion");
|
|
128
128
|
n(p, "canPlay", f.canPlay.dailymotion);
|
|
129
129
|
n(p, "loopOnEnded", !0);
|
|
130
|
-
const K = /* @__PURE__ */ P(_),
|
|
130
|
+
const K = /* @__PURE__ */ P(_), z = /* @__PURE__ */ b({
|
|
131
131
|
__proto__: null,
|
|
132
132
|
default: K
|
|
133
133
|
}, [_]);
|
|
134
134
|
export {
|
|
135
|
-
|
|
135
|
+
z as D
|
|
136
136
|
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsx as te } from "react/jsx-runtime";
|
|
2
|
+
import { f as oe, E as ae } from "./ToggleButton-BGGSbdwG.mjs";
|
|
3
|
+
import { useState as o, useEffect as ne } from "react";
|
|
4
|
+
import { C as se, f as E, s as c, a as re } from "./index-CFaxa0Mq.mjs";
|
|
5
|
+
import { m as ce } from "./mutateApi-BgyTvTL1.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const k = async (I, m, v, C = "", t = "wellnessevent") => {
|
|
8
|
+
var d, g, h, n;
|
|
9
|
+
const a = await E.getContentSchemaList(
|
|
10
|
+
{
|
|
11
|
+
searchTerm: C,
|
|
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
|
+
I || "en",
|
|
16
|
+
m
|
|
17
|
+
);
|
|
18
|
+
(g = (d = a == null ? void 0 : a.data) == null ? void 0 : d.publish_getContents) != null && g.records ? v((n = (h = a == null ? void 0 : a.data) == null ? void 0 : h.publish_getContents) == null ? void 0 : n.records) : console.error("Something went wrong !");
|
|
19
|
+
}, we = (I) => {
|
|
20
|
+
const {
|
|
21
|
+
secondaryArgs: m,
|
|
22
|
+
prelemAnalyticsProp: v,
|
|
23
|
+
prelemAuthoringHelper: C,
|
|
24
|
+
userId: t,
|
|
25
|
+
filters: a,
|
|
26
|
+
relativePath: d = "",
|
|
27
|
+
articleData: g,
|
|
28
|
+
loader: h
|
|
29
|
+
} = I || {}, {
|
|
30
|
+
prelemBaseEndpoint: { language: n, site_host: w }
|
|
31
|
+
} = m, [p, f] = o(h), [L, y] = o({}), [T, S] = o({}), [G, b] = o(0), D = localStorage.getItem("userId") || t, [H, x] = o([]), [M, N] = o([]), [U, j] = o({}), [B, O] = o({}), [W, q] = o({}), [z, F] = o({}), _ = async (P, r, u) => {
|
|
32
|
+
var i, l;
|
|
33
|
+
if (!D) {
|
|
34
|
+
c("User ID is not available. Please log in.");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
try {
|
|
38
|
+
const s = {
|
|
39
|
+
input: { activity_type: u, target: P.toString(), action: r },
|
|
40
|
+
user_id: D
|
|
41
|
+
}, e = await ce.setPersonalGoal(s, n, w);
|
|
42
|
+
((l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_setPersonalGoal) == null ? void 0 : l.message) === "Created Successfully!!!" && r === "goal" ? re("Goal updated successfully!") : r !== "entry" && console.error("Something went wrong !");
|
|
43
|
+
} catch (s) {
|
|
44
|
+
console.error("Error in update goal API:", s), c("Something went wrong, please try after sometime !");
|
|
45
|
+
}
|
|
46
|
+
}, A = async (P = "") => {
|
|
47
|
+
var r, u, i, l;
|
|
48
|
+
if (!D) {
|
|
49
|
+
c("User ID is not available. Please log in.");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
f(!0);
|
|
54
|
+
const s = {
|
|
55
|
+
date: P,
|
|
56
|
+
user_id: D
|
|
57
|
+
}, e = await E.fetchPersonalTracker(s, n, w);
|
|
58
|
+
if (((r = e == null ? void 0 : e.errors) == null ? void 0 : r.length) > 0)
|
|
59
|
+
c((u = e == null ? void 0 : e.errors[0]) == null ? void 0 : u.message);
|
|
60
|
+
else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
|
|
61
|
+
const {
|
|
62
|
+
water_intake: Q,
|
|
63
|
+
steps: X,
|
|
64
|
+
streak_count: Y,
|
|
65
|
+
individual_challenge_info: Z,
|
|
66
|
+
calories: $,
|
|
67
|
+
distance: R,
|
|
68
|
+
device_info: V,
|
|
69
|
+
individual_challenge_detail: ee
|
|
70
|
+
} = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_fetchPersonalTracker;
|
|
71
|
+
y(Q), S(X), b(Y), j(Z), O({ calories: $, distance: R }), q(V), F(ee), f(!1);
|
|
72
|
+
} else
|
|
73
|
+
console.error("GetPersonalData API failed"), c("GetPersonalData API failed");
|
|
74
|
+
} catch (s) {
|
|
75
|
+
console.error("Error in GetPersonalData API:", s), c("Error in GetPersonalData API"), y({}), S({}), f(!1);
|
|
76
|
+
}
|
|
77
|
+
}, J = {
|
|
78
|
+
waterIntakeData: L,
|
|
79
|
+
loading: p,
|
|
80
|
+
fetchPersonalData: A,
|
|
81
|
+
updateGoals: _
|
|
82
|
+
}, K = {
|
|
83
|
+
stepsData: T,
|
|
84
|
+
loading: p,
|
|
85
|
+
updateGoals: _
|
|
86
|
+
};
|
|
87
|
+
return ne(() => {
|
|
88
|
+
A(oe(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), k(n, w, x, "", "challenges"), k(n, w, N, "", "wellnessevent"), f(!0);
|
|
89
|
+
}, []), /* @__PURE__ */ te(
|
|
90
|
+
ae,
|
|
91
|
+
{
|
|
92
|
+
analytics: v,
|
|
93
|
+
authoringHelper: C,
|
|
94
|
+
secondaryArgs: m,
|
|
95
|
+
waterIntakeDetails: J,
|
|
96
|
+
stepsDetails: K,
|
|
97
|
+
streaksCount: G,
|
|
98
|
+
data: H,
|
|
99
|
+
eventData: M,
|
|
100
|
+
articleVodData: g,
|
|
101
|
+
filters: a,
|
|
102
|
+
relativePath: d,
|
|
103
|
+
userId: t,
|
|
104
|
+
deviceInfo: W,
|
|
105
|
+
individualChallengeInfo: U,
|
|
106
|
+
commonInfo: B,
|
|
107
|
+
individualChallengeDetail: z,
|
|
108
|
+
constants: se
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
we as EngagementHomeComponent,
|
|
114
|
+
we as default
|
|
115
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as U } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as V } from "./ToggleButton-BGGSbdwG.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-CFaxa0Mq.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-BgyTvTL1.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (h) => {
|
|
8
8
|
const {
|
|
@@ -15,7 +15,7 @@ const Z = (h) => {
|
|
|
15
15
|
relativePath: j = ""
|
|
16
16
|
} = h || {}, {
|
|
17
17
|
prelemBaseEndpoint: { language: v, site_host: _ }
|
|
18
|
-
} = g, [T, m] = a(!1), [
|
|
18
|
+
} = g, [T, m] = a(!1), [b, y] = a(!1), [k, L] = a(0), f = localStorage.getItem("userId") || P, [x, D] = a(""), [G, H] = a(!1), J = {
|
|
19
19
|
joinEvent: async (u) => {
|
|
20
20
|
var r, s, i, o, l, c;
|
|
21
21
|
if (!f) {
|
|
@@ -38,8 +38,8 @@ const Z = (h) => {
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
loading: T,
|
|
41
|
-
isRegistered:
|
|
42
|
-
registeredParticipants:
|
|
41
|
+
isRegistered: b,
|
|
42
|
+
registeredParticipants: k,
|
|
43
43
|
meetingLink: x,
|
|
44
44
|
isStarted: G
|
|
45
45
|
}, E = async () => {
|
|
@@ -67,7 +67,7 @@ const Z = (h) => {
|
|
|
67
67
|
meeting_link: C = "",
|
|
68
68
|
is_started: M = !1
|
|
69
69
|
} = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_eventDetails;
|
|
70
|
-
I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails) == null ? void 0 : c.message), y(B),
|
|
70
|
+
I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails) == null ? void 0 : c.message), y(B), L(O), D(C), H(M);
|
|
71
71
|
} else
|
|
72
72
|
console.error("GetEventDetails API failed");
|
|
73
73
|
} catch (n) {
|