@platform-x/hcltechx-mfe-wrapper 1.0.8 → 1.0.10
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-BvG7HDYH.mjs → ArticleVodListComponent-CGYPjtbz.mjs} +2 -2
- package/{ChallengeDetailComponent-CPLD6qTT.mjs → ChallengeDetailComponent-wFgexfRN.mjs} +3 -3
- package/ChallengeSliderComponent-DlJLxu-W.mjs +85 -0
- package/{CommonContentComponent-Dkc8ecm8.mjs → CommonContentComponent-D0ibizlD.mjs} +3 -3
- package/{DailyMotion-6zDhMMgD.mjs → DailyMotion-BymA5jjr.mjs} +2 -2
- package/EngagementHomeComponent-BBfNZ_oS.mjs +100 -0
- package/{EventDetailComponent-Dsadtp-3.mjs → EventDetailComponent-BJZsXaXF.mjs} +3 -3
- package/EventList-hs_1aiMc.mjs +219733 -0
- package/{EventListComponent-Cvz8RtZS.mjs → EventListComponent-CgBi-ggY.mjs} +9 -9
- package/{Facebook-DKoF29ND.mjs → Facebook-CRS16Qk1.mjs} +2 -2
- package/{FilePlayer-Fjd_Z9UU.mjs → FilePlayer-DboirD-Q.mjs} +2 -2
- package/{IndividualChallengeComponent-fIqwP2bn.mjs → IndividualChallengeComponent-DdVYn_-J.mjs} +3 -3
- package/{Kaltura-DuyO59Kb.mjs → Kaltura-D7rHQXnb.mjs} +2 -2
- package/{Mixcloud-9i-39rwx.mjs → Mixcloud-Ex-zINDP.mjs} +2 -2
- package/{Mux-DsGaA37I.mjs → Mux-CYUdZreh.mjs} +2 -2
- package/{Preview-CiGhPvfR.mjs → Preview-Cd53GjOM.mjs} +1 -1
- package/{RecentCarousel-BBMHRLyu.mjs → RecentCarousel-Fhcmu629.mjs} +48 -48
- package/{Share-CDrNLk2X.mjs → Share-D2-0qFxQ.mjs} +78 -82
- package/{SoundCloud-BbfWgBQ5.mjs → SoundCloud-1dVdVRXj.mjs} +2 -2
- package/{Streamable-CqfHazZq.mjs → Streamable-CJdBYsFW.mjs} +2 -2
- package/{Twitch-BtOGB2Im.mjs → Twitch-B29GH4XF.mjs} +2 -2
- package/{Vidyard-D4jNAL5v.mjs → Vidyard-DcVp_Ejt.mjs} +2 -2
- package/{Vimeo-WzocafKt.mjs → Vimeo-CAhSSPHl.mjs} +2 -2
- package/{Wistia-Ba5fmEM7.mjs → Wistia-cBv27QfD.mjs} +2 -2
- package/{YouTube-DOp63wrf.mjs → YouTube-pCMBQQyx.mjs} +2 -2
- package/{index-CsZlaFxy.mjs → index-Bv4QVvQA.mjs} +1773 -1719
- package/index-CXyS7w1_.mjs +19 -0
- package/index.mjs +1 -1
- package/lib/prelems/Components/ChallengeSliderComponent.d.ts +2 -0
- package/lib/utils/componentMapping.d.ts +1 -0
- package/{mutateApi-BQthCwMO.mjs → mutateApi-PTHF0lvY.mjs} +1 -1
- package/package.json +1 -1
- package/EngagementHomeComponent-DxQ50FY8.mjs +0 -97
- package/EventList-DlHDYUR5.mjs +0 -37751
- package/index-DeykmZCh.mjs +0 -18
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { b as p } from "./EventList-
|
|
2
|
+
import { b as p } from "./EventList-hs_1aiMc.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-Bv4QVvQA.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const f = ({
|
|
7
7
|
data: t,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as H } from "react/jsx-runtime";
|
|
2
|
-
import { C as J } from "./EventList-
|
|
2
|
+
import { C as J } from "./EventList-hs_1aiMc.mjs";
|
|
3
3
|
import { useState as m, useEffect as k } from "react";
|
|
4
|
-
import { s as d, f as A, a as p } from "./index-
|
|
5
|
-
import { m as q } from "./mutateApi-
|
|
4
|
+
import { s as d, f as A, a as p } from "./index-Bv4QVvQA.mjs";
|
|
5
|
+
import { m as q } from "./mutateApi-PTHF0lvY.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Q = (C) => {
|
|
8
8
|
const {
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
+
import { f as D, c as F } from "./EventList-hs_1aiMc.mjs";
|
|
3
|
+
import { useState as d, useEffect as J } from "react";
|
|
4
|
+
import { f as p, s as a, a as K } from "./index-Bv4QVvQA.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-PTHF0lvY.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const Z = (I) => {
|
|
8
|
+
var S, P, A;
|
|
9
|
+
const { pageData: s = {}, secondaryArgs: f, userId: T, filters: _ } = I || {}, [k, u] = d(!1), [E, y] = d({}), [G, b] = d(0), [L, v] = d([]), w = localStorage.getItem("userId") || T, {
|
|
10
|
+
prelemBaseEndpoint: { site_host: g, language: h }
|
|
11
|
+
} = f, x = {
|
|
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: (P = (S = s == null ? void 0 : s.settings) == null ? void 0 : S.keywords) == null ? void 0 : P.join(", "),
|
|
16
|
+
isAuthoring: !1,
|
|
17
|
+
isSeoEnabled: (A = s == null ? void 0 : s.settings) == null ? void 0 : A.seo_blockIndexing,
|
|
18
|
+
isAnalyticsEnabled: s == null ? void 0 : s.analytics_enable
|
|
19
|
+
}, j = {
|
|
20
|
+
isAuthoring: !1
|
|
21
|
+
}, H = async (l, r, c, n = "", o = "wellnessevent") => {
|
|
22
|
+
var e, i, m, C;
|
|
23
|
+
const t = await p.getContentSchemaList(
|
|
24
|
+
{
|
|
25
|
+
searchTerm: n,
|
|
26
|
+
filter: (o == null ? void 0 : o.toLocaleLowerCase()) === "events" ? "wellnessevent" : o == null ? void 0 : o.toLocaleLowerCase()
|
|
27
|
+
},
|
|
28
|
+
l || "en",
|
|
29
|
+
r
|
|
30
|
+
);
|
|
31
|
+
(i = (e = t == null ? void 0 : t.data) == null ? void 0 : e.publish_getContents) != null && i.records ? c((C = (m = t == null ? void 0 : t.data) == null ? void 0 : m.publish_getContents) == null ? void 0 : C.records) : a("Something went wrong !");
|
|
32
|
+
}, M = async (l, r, c) => {
|
|
33
|
+
var n, o;
|
|
34
|
+
try {
|
|
35
|
+
const t = {
|
|
36
|
+
input: { activity_type: c, target: l.toString(), action: r },
|
|
37
|
+
user_id: w
|
|
38
|
+
}, e = await N.setPersonalGoal(t, h, g);
|
|
39
|
+
((o = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_setPersonalGoal) == null ? void 0 : o.message) === "Created Successfully!!!" && r === "goal" ? K("Goal updated successfully!") : r !== "entry" && a("Something went wrong, please try after sometime !");
|
|
40
|
+
} catch (t) {
|
|
41
|
+
console.error("Error in update goal API:", t), a("Something went wrong, please try after sometime !");
|
|
42
|
+
}
|
|
43
|
+
}, B = async (l = "") => {
|
|
44
|
+
var r, c, n, o;
|
|
45
|
+
try {
|
|
46
|
+
u(!0);
|
|
47
|
+
const t = {
|
|
48
|
+
date: l,
|
|
49
|
+
user_id: w
|
|
50
|
+
}, e = await p.fetchPersonalTracker(t, h, g);
|
|
51
|
+
if (((r = e == null ? void 0 : e.errors) == null ? void 0 : r.length) > 0)
|
|
52
|
+
a((c = e == null ? void 0 : e.errors[0]) == null ? void 0 : c.message);
|
|
53
|
+
else if ((n = e == null ? void 0 : e.data) != null && n.community_fetchPersonalTracker) {
|
|
54
|
+
const { steps: i, streak_count: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
|
|
55
|
+
y(i), b(m);
|
|
56
|
+
} else
|
|
57
|
+
console.error("GetPersonalData API failed"), a("GetPersonalData API failed");
|
|
58
|
+
} catch (t) {
|
|
59
|
+
a("Something went wrong !"), console.error("Error in GetPersonalData API:", t), a("Error in GetPersonalData API"), y({});
|
|
60
|
+
} finally {
|
|
61
|
+
u(!1);
|
|
62
|
+
}
|
|
63
|
+
}, q = {
|
|
64
|
+
stepsData: E,
|
|
65
|
+
loading: k,
|
|
66
|
+
updateGoals: M
|
|
67
|
+
};
|
|
68
|
+
return J(() => {
|
|
69
|
+
B(D(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), H(h, g, v, "", "challenges");
|
|
70
|
+
}, []), /* @__PURE__ */ z(
|
|
71
|
+
F,
|
|
72
|
+
{
|
|
73
|
+
analytics: x,
|
|
74
|
+
authoringHelper: j,
|
|
75
|
+
secondaryArgs: f,
|
|
76
|
+
stepsDetails: q,
|
|
77
|
+
streaksCount: G,
|
|
78
|
+
data: L,
|
|
79
|
+
filters: _
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
Z as default
|
|
85
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as O } from "react/jsx-runtime";
|
|
2
2
|
import j, { memo as x, useState as g, useEffect as z } from "react";
|
|
3
|
-
import { F as J, f as N, s as w } from "./index-
|
|
4
|
-
import { m as $ } from "./mutateApi-
|
|
3
|
+
import { F as J, f as N, s as w } from "./index-Bv4QVvQA.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-PTHF0lvY.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const A = {
|
|
7
7
|
Article: "Article",
|
|
@@ -11,7 +11,7 @@ const A = {
|
|
|
11
11
|
Vod: "Vod"
|
|
12
12
|
}, c = {};
|
|
13
13
|
Object.keys(A).forEach((l) => (c[l] = j.lazy(
|
|
14
|
-
() => import("./index-
|
|
14
|
+
() => import("./index-CXyS7w1_.mjs").then((t) => ({
|
|
15
15
|
default: t[A[l]]
|
|
16
16
|
}))
|
|
17
17
|
), c));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as P } from "./index-
|
|
1
|
+
import { g as P } from "./index-Bv4QVvQA.mjs";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import { u as D, p as O } from "./EventList-
|
|
3
|
+
import { u as D, p as O } from "./EventList-hs_1aiMc.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,100 @@
|
|
|
1
|
+
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
+
import { f as F, d as J } from "./EventList-hs_1aiMc.mjs";
|
|
3
|
+
import { useState as l, useEffect as K } from "react";
|
|
4
|
+
import { f as E, s, a as N } from "./index-Bv4QVvQA.mjs";
|
|
5
|
+
import { m as O } from "./mutateApi-PTHF0lvY.mjs";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const v = async (w, g, y, D = "", t = "wellnessevent") => {
|
|
8
|
+
var f, d, o, r;
|
|
9
|
+
const a = await E.getContentSchemaList(
|
|
10
|
+
{
|
|
11
|
+
searchTerm: D,
|
|
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 = a == null ? void 0 : a.data) == null ? void 0 : f.publish_getContents) != null && d.records ? y((r = (o = a == null ? void 0 : a.data) == null ? void 0 : o.publish_getContents) == null ? void 0 : r.records) : s("Something went wrong !");
|
|
18
|
+
}, R = (w) => {
|
|
19
|
+
const {
|
|
20
|
+
secondaryArgs: g,
|
|
21
|
+
prelemAnalyticsProp: y,
|
|
22
|
+
prelemAuthoringHelper: D,
|
|
23
|
+
userId: t,
|
|
24
|
+
filters: a,
|
|
25
|
+
relativePath: f = "",
|
|
26
|
+
articleData: d
|
|
27
|
+
} = w || {}, {
|
|
28
|
+
prelemBaseEndpoint: { language: o, site_host: r }
|
|
29
|
+
} = g, [p, S] = l(!1), [_, I] = l({}), [G, k] = l({}), [T, L] = l(0), h = localStorage.getItem("userId") || t, [b, H] = l([]), [x, M] = l([]), A = async (P, c, u) => {
|
|
30
|
+
var i, m;
|
|
31
|
+
if (!h) {
|
|
32
|
+
s("User ID is not available. Please log in.");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
const n = {
|
|
37
|
+
input: { activity_type: u, target: P.toString(), action: c },
|
|
38
|
+
user_id: h
|
|
39
|
+
}, e = await O.setPersonalGoal(n, o, r);
|
|
40
|
+
((m = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && c === "goal" ? N("Goal updated successfully!") : c !== "entry" && s("Something went wrong, please try after sometime !");
|
|
41
|
+
} catch (n) {
|
|
42
|
+
console.error("Error in update goal API:", n), s("Something went wrong, please try after sometime !");
|
|
43
|
+
}
|
|
44
|
+
}, C = async (P = "") => {
|
|
45
|
+
var c, u, i, m;
|
|
46
|
+
if (!h) {
|
|
47
|
+
s("User ID is not available. Please log in.");
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
S(!0);
|
|
52
|
+
const n = {
|
|
53
|
+
date: P,
|
|
54
|
+
user_id: h
|
|
55
|
+
}, e = await E.fetchPersonalTracker(n, o, r);
|
|
56
|
+
if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
|
|
57
|
+
s((u = e == null ? void 0 : e.errors[0]) == null ? void 0 : u.message);
|
|
58
|
+
else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
|
|
59
|
+
const { water_intake: B, steps: W, streak_count: q } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
|
|
60
|
+
I(B), k(W), L(q);
|
|
61
|
+
} else
|
|
62
|
+
console.error("GetPersonalData API failed"), s("GetPersonalData API failed");
|
|
63
|
+
} catch (n) {
|
|
64
|
+
console.error("Error in GetPersonalData API:", n), s("Error in GetPersonalData API"), I({}), k({});
|
|
65
|
+
} finally {
|
|
66
|
+
S(!1);
|
|
67
|
+
}
|
|
68
|
+
}, U = {
|
|
69
|
+
waterIntakeData: _,
|
|
70
|
+
loading: p,
|
|
71
|
+
fetchPersonalData: C,
|
|
72
|
+
updateGoals: A
|
|
73
|
+
}, j = {
|
|
74
|
+
stepsData: G,
|
|
75
|
+
loading: p,
|
|
76
|
+
updateGoals: A
|
|
77
|
+
};
|
|
78
|
+
return K(() => {
|
|
79
|
+
C(F(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), v(o, r, H, "", "challenges"), v(o, r, M, "", "wellnessevent");
|
|
80
|
+
}, []), /* @__PURE__ */ z(
|
|
81
|
+
J,
|
|
82
|
+
{
|
|
83
|
+
analytics: y,
|
|
84
|
+
authoringHelper: D,
|
|
85
|
+
secondaryArgs: g,
|
|
86
|
+
waterIntakeDetails: U,
|
|
87
|
+
stepsDetails: j,
|
|
88
|
+
streaksCount: T,
|
|
89
|
+
data: b,
|
|
90
|
+
eventData: x,
|
|
91
|
+
articleVodData: d,
|
|
92
|
+
filters: a,
|
|
93
|
+
relativePath: f
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
R as EngagementHomeComponent,
|
|
99
|
+
R as default
|
|
100
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as U } from "react/jsx-runtime";
|
|
2
|
-
import { E as V } from "./EventList-
|
|
2
|
+
import { E as V } from "./EventList-hs_1aiMc.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-Bv4QVvQA.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-PTHF0lvY.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (h) => {
|
|
8
8
|
const {
|