@platform-x/hcltechx-mfe-wrapper 2.0.44 → 2.0.46
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-2p9HM32C.mjs → ArticleVodList-Bs9ijpwB.mjs} +2 -2
- package/{ArticleVodListComponent-U9Tzjqdt.mjs → ArticleVodListComponent-BnjLfLwm.mjs} +3 -3
- package/{ChallengeDetailComponent-RUjU2x7h.mjs → ChallengeDetailComponent-C3lBSiCO.mjs} +1 -1
- package/{CommonContentComponent-CElcpDdF.mjs → CommonContentComponent-CCv-d_M-.mjs} +2 -2
- package/{DailyMotion-BFrKE1bl.mjs → DailyMotion-RWjKjDHD.mjs} +1 -1
- package/EngagementHomeComponent-BYXxfmv7.mjs +151 -0
- package/{EventDetailComponent-B-ZHp13u.mjs → EventDetailComponent-VTEJrJu_.mjs} +1 -1
- package/{EventList-cAhSdBeC.mjs → EventList-BW-wA_44.mjs} +22 -22
- package/{EventListComponent-CIc1I0oE.mjs → EventListComponent-Ci8elP-X.mjs} +3 -3
- package/{Facebook-B8bFTrSC.mjs → Facebook-CPk2h2rP.mjs} +1 -1
- package/{FilePlayer-Wup3WRTq.mjs → FilePlayer-BBLDd1Pr.mjs} +3 -3
- package/{FilterModal-CtZulUL1.mjs → FilterModal-CGDgmks0.mjs} +7 -7
- package/{IndividualChallengeComponent-BCNdBGBG.mjs → IndividualChallengeComponent-C7Sc5k9-.mjs} +1 -1
- package/{Kaltura-CqdE999v.mjs → Kaltura-CScHcaqP.mjs} +1 -1
- package/{Mixcloud-5wfOmsOj.mjs → Mixcloud-BHnMcAod.mjs} +1 -1
- package/{Mux-BS0de87b.mjs → Mux-BEC3XCxD.mjs} +1 -1
- package/{PageComponent-C-lP5AsI.mjs → PageComponent-DnBJmV4O.mjs} +5 -5
- package/{Preview-BMvlx4Hl.mjs → Preview-B__S16QX.mjs} +1 -1
- package/{RecentCarousel-dQVzNlxx.mjs → RecentCarousel-Dk_l1ZBL.mjs} +12 -12
- package/{Share-TNrgFhyo.mjs → Share-B8wQKnI3.mjs} +1 -1
- package/{SoundCloud-CCQ9LeSQ.mjs → SoundCloud-B0ANpIrS.mjs} +1 -1
- package/{Streamable-9hOLp0Jw.mjs → Streamable-CrKX1vP_.mjs} +1 -1
- package/{Twitch-BT_fVvXN.mjs → Twitch-6GuT__Mp.mjs} +1 -1
- package/{Vidyard-B7eSTnAc.mjs → Vidyard-Bk3xdNGL.mjs} +1 -1
- package/{Vimeo-1UtR9DmP.mjs → Vimeo-Wyktj5ez.mjs} +1 -1
- package/{Wistia-CMbK2_qg.mjs → Wistia-B9hGPB7U.mjs} +1 -1
- package/{YouTube-jI_rjt1p.mjs → YouTube-BlQMxUTQ.mjs} +15 -15
- package/{index-A2Z50QJA.mjs → index-8HpItIRw.mjs} +1243 -610
- package/{index-DjURWjrG.mjs → index-9mZ3GTm1.mjs} +27 -25
- package/index.mjs +1 -1
- package/lib/prelems/Components/PollZoneComponent.d.ts +2 -0
- package/lib/prelems/Components/QuizZoneComponent.d.ts +2 -0
- package/lib/utils/componentMapping.d.ts +2 -0
- package/lib/utils/helper.d.ts +1 -0
- package/package.json +1 -1
- package/EngagementHomeComponent-pOHOWdbH.mjs +0 -125
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
4
|
-
import { E as
|
|
1
|
+
import { a1 as K, a2 as g, a3 as E, a4 as W, a5 as y, a6 as R, T as n, G as w, B as d, a7 as M, a8 as U, a9 as L, aa as G, ab as P, ac as V, ad as F, ae as X, af as j, ag as Y, ah as v, x as I, y as O, ai as z, aj as u, z as Q, ak as A, al as H, D as ii, am as ei } from "./index-8HpItIRw.mjs";
|
|
2
|
+
import { ar as xi, an as _i, as as Ci, at as ki, au as bi, c as Si, av as Bi, aw as wi, ax as Ni, ay as Ti, E as Pi, d as gi, az as Ei, aA as Wi, aB as yi, aC as Ri, I as Vi, aD as Li, ao as Fi, aE as ji, aF as zi, ap as Di, aG as $i, aH as qi, aI as Mi, aJ as Ui, aK as Gi, aL as Ii, aq as Oi } from "./index-8HpItIRw.mjs";
|
|
3
|
+
import { A as Zi } from "./ArticleVodList-Bs9ijpwB.mjs";
|
|
4
|
+
import { E as Ki } from "./EventList-BW-wA_44.mjs";
|
|
5
5
|
import { jsx as i, jsxs as m, Fragment as Z } from "react/jsx-runtime";
|
|
6
6
|
import { useState as J } from "react";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import "./FilterModal-
|
|
8
|
+
import "./FilterModal-CGDgmks0.mjs";
|
|
9
9
|
const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l }) => {
|
|
10
10
|
var p;
|
|
11
11
|
const [h, k] = J(!1), b = K(), _ = g(), { ref: C, inView: S } = E({
|
|
@@ -56,7 +56,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
56
56
|
U,
|
|
57
57
|
{
|
|
58
58
|
className: "accordiansummary",
|
|
59
|
-
expandIcon: h === c ? /* @__PURE__ */ i(
|
|
59
|
+
expandIcon: h === c ? /* @__PURE__ */ i(L, {}) : /* @__PURE__ */ i(L, {}),
|
|
60
60
|
children: /* @__PURE__ */ i(n, { variant: "h6medium", children: t == null ? void 0 : t.title })
|
|
61
61
|
}
|
|
62
62
|
),
|
|
@@ -85,7 +85,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
85
85
|
children: ((p = e == null ? void 0 : e.selected_items) == null ? void 0 : p.length) === 0 ? /* @__PURE__ */ i(n, { variant: "p3regular", children: "Choose FAQs to view it here." }) : null
|
|
86
86
|
}
|
|
87
87
|
) }),
|
|
88
|
-
/* @__PURE__ */ i(
|
|
88
|
+
/* @__PURE__ */ i(F, { onReplaceClick: B })
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
) })
|
|
@@ -142,7 +142,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
142
142
|
U,
|
|
143
143
|
{
|
|
144
144
|
className: "accordiansummary",
|
|
145
|
-
expandIcon: h === c ? /* @__PURE__ */ i(
|
|
145
|
+
expandIcon: h === c ? /* @__PURE__ */ i(L, {}) : /* @__PURE__ */ i(L, {}),
|
|
146
146
|
children: /* @__PURE__ */ i(n, { variant: "h6medium", children: t == null ? void 0 : t.title })
|
|
147
147
|
}
|
|
148
148
|
),
|
|
@@ -171,7 +171,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
171
171
|
children: ((p = e == null ? void 0 : e.selected_items) == null ? void 0 : p.length) === 0 ? /* @__PURE__ */ i(n, { variant: "p3regular", children: "Choose FAQs to view it here." }) : null
|
|
172
172
|
}
|
|
173
173
|
) }),
|
|
174
|
-
/* @__PURE__ */ i(
|
|
174
|
+
/* @__PURE__ */ i(F, { onReplaceClick: B })
|
|
175
175
|
]
|
|
176
176
|
}
|
|
177
177
|
) })
|
|
@@ -300,7 +300,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
300
300
|
O,
|
|
301
301
|
{
|
|
302
302
|
component: "img",
|
|
303
|
-
image:
|
|
303
|
+
image: z(
|
|
304
304
|
l == null ? void 0 : l.gcpUrl,
|
|
305
305
|
l == null ? void 0 : l.bucketName,
|
|
306
306
|
(c = (t = r == null ? void 0 : r.serviceicon) == null ? void 0 : t.original_image) == null ? void 0 : c.original_image_relative_path,
|
|
@@ -323,7 +323,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
323
323
|
);
|
|
324
324
|
}) }) }),
|
|
325
325
|
/* @__PURE__ */ i(
|
|
326
|
-
|
|
326
|
+
F,
|
|
327
327
|
{
|
|
328
328
|
onReplaceClick: () => {
|
|
329
329
|
var a;
|
|
@@ -419,7 +419,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
419
419
|
O,
|
|
420
420
|
{
|
|
421
421
|
component: "img",
|
|
422
|
-
image:
|
|
422
|
+
image: z(
|
|
423
423
|
l == null ? void 0 : l.gcpUrl,
|
|
424
424
|
l == null ? void 0 : l.bucketName,
|
|
425
425
|
(t = (p = a == null ? void 0 : a.serviceicon) == null ? void 0 : p.original_image) == null ? void 0 : t.original_image_relative_path,
|
|
@@ -442,7 +442,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
442
442
|
);
|
|
443
443
|
}) }),
|
|
444
444
|
/* @__PURE__ */ i(
|
|
445
|
-
|
|
445
|
+
F,
|
|
446
446
|
{
|
|
447
447
|
onReplaceClick: () => {
|
|
448
448
|
var f;
|
|
@@ -539,7 +539,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
539
539
|
children: /* @__PURE__ */ i(V, {})
|
|
540
540
|
}
|
|
541
541
|
) : /* @__PURE__ */ i(w, { container: !0, children: a && Object.entries(a).map(([p, t], c) => {
|
|
542
|
-
var x, N, T, D, q
|
|
542
|
+
var x, N, T, D, $, q;
|
|
543
543
|
return /* @__PURE__ */ i(
|
|
544
544
|
w,
|
|
545
545
|
{
|
|
@@ -597,13 +597,13 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
597
597
|
/* @__PURE__ */ i(d, { className: "cardItemImage", children: /* @__PURE__ */ i(
|
|
598
598
|
"img",
|
|
599
599
|
{
|
|
600
|
-
src:
|
|
600
|
+
src: z(
|
|
601
601
|
l == null ? void 0 : l.gcpUrl,
|
|
602
602
|
l == null ? void 0 : l.bucketName,
|
|
603
603
|
(N = (x = t == null ? void 0 : t.banner) == null ? void 0 : x.original_image) == null ? void 0 : N.original_image_relative_path,
|
|
604
604
|
(D = (T = t == null ? void 0 : t.banner) == null ? void 0 : T.original_image) == null ? void 0 : D.ext
|
|
605
605
|
).src,
|
|
606
|
-
alt: (
|
|
606
|
+
alt: (q = ($ = t == null ? void 0 : t.banner) == null ? void 0 : $.original_image) == null ? void 0 : q.Title
|
|
607
607
|
}
|
|
608
608
|
) })
|
|
609
609
|
] }) })
|
|
@@ -665,7 +665,7 @@ const di = ({ content: e, analytics: o, authoringHelper: s, secondaryArgs: l })
|
|
|
665
665
|
export {
|
|
666
666
|
xi as AllEvent,
|
|
667
667
|
_i as Article,
|
|
668
|
-
|
|
668
|
+
Zi as ArticleVodList,
|
|
669
669
|
Ci as Banner3,
|
|
670
670
|
ki as Banner4,
|
|
671
671
|
bi as BlogTiles,
|
|
@@ -676,7 +676,7 @@ export {
|
|
|
676
676
|
Ti as DynamicVideo,
|
|
677
677
|
Pi as EngagementHome,
|
|
678
678
|
gi as EventDetail,
|
|
679
|
-
|
|
679
|
+
Ki as EventList,
|
|
680
680
|
Ei as ExperienceZone,
|
|
681
681
|
di as Faq1,
|
|
682
682
|
oi as Faq2,
|
|
@@ -684,18 +684,20 @@ export {
|
|
|
684
684
|
yi as FullWidthVideo,
|
|
685
685
|
Ri as ImageCrousel1,
|
|
686
686
|
Vi as IndividualChallenge,
|
|
687
|
-
|
|
687
|
+
Li as LeftAlignParagraphWithHeadline,
|
|
688
688
|
pi as Mapping,
|
|
689
|
-
|
|
689
|
+
Fi as Poll,
|
|
690
690
|
ji as ProductSummary3,
|
|
691
|
-
|
|
691
|
+
zi as ProductSummaryViaVideo2,
|
|
692
692
|
Di as Quiz,
|
|
693
693
|
ci as ServiceCard1,
|
|
694
|
-
|
|
694
|
+
$i as ServiceCard2,
|
|
695
695
|
mi as ServiceCard3,
|
|
696
696
|
ni as ServiceCard6,
|
|
697
|
-
|
|
697
|
+
qi as ServiceCardActivity,
|
|
698
698
|
Mi as ServiceShowcase,
|
|
699
|
-
Ui as
|
|
700
|
-
Gi as
|
|
699
|
+
Ui as ThePollZone,
|
|
700
|
+
Gi as TheQuizZone,
|
|
701
|
+
Ii as ToggleButton,
|
|
702
|
+
Oi as Vod
|
|
701
703
|
};
|
package/index.mjs
CHANGED
|
@@ -3,6 +3,8 @@ declare const Components: {
|
|
|
3
3
|
engagementHome: any;
|
|
4
4
|
dashboard: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
expzone: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
quizzone: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
pollzone: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
challenges: any;
|
|
7
9
|
wellnessevent: any;
|
|
8
10
|
quiz: any;
|
package/lib/utils/helper.d.ts
CHANGED
|
@@ -35,3 +35,4 @@ export declare const secondaryPropsObj: (host: any) => {
|
|
|
35
35
|
export declare const getUserInfo: (key: any) => any;
|
|
36
36
|
export declare const apiConfig: (variables: any) => Promise<any>;
|
|
37
37
|
export declare function getSecureLocalStorageData(id: string): any;
|
|
38
|
+
export declare const getThreeDaysAgo: () => string;
|
package/package.json
CHANGED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { jsx as re } from "react/jsx-runtime";
|
|
2
|
-
import { f as ce, E as ie, C as le, a as k, s as d, m as de, b as ge } from "./index-A2Z50QJA.mjs";
|
|
3
|
-
import { useState as a, useEffect as me } from "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
const _ = async (P, u, I, D = "", t = "wellnessevent", v = { start: 0, rows: 10 }, i = []) => {
|
|
6
|
-
var n, o, g, r;
|
|
7
|
-
const s = await k.getContentSchemaListPagination(
|
|
8
|
-
{
|
|
9
|
-
searchTerm: D,
|
|
10
|
-
filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t,
|
|
11
|
-
conditionString: (t == null ? void 0 : t.toLocaleLowerCase()) === "wellnessevent" || (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "hclplatformx_public_listing:true" : "",
|
|
12
|
-
exclude: i != null && i.includes("Vod") ? ["Pre Recorded"] : [],
|
|
13
|
-
pagination: v,
|
|
14
|
-
contentTypes: i
|
|
15
|
-
},
|
|
16
|
-
P || "en",
|
|
17
|
-
u
|
|
18
|
-
);
|
|
19
|
-
(o = (n = s == null ? void 0 : s.data) == null ? void 0 : n.publish_getContents) != null && o.records ? I((r = (g = s == null ? void 0 : s.data) == null ? void 0 : g.publish_getContents) == null ? void 0 : r.records) : console.error("Something went wrong !");
|
|
20
|
-
}, Pe = (P) => {
|
|
21
|
-
const {
|
|
22
|
-
secondaryArgs: u,
|
|
23
|
-
prelemAnalyticsProp: I,
|
|
24
|
-
prelemAuthoringHelper: D,
|
|
25
|
-
userId: t,
|
|
26
|
-
filters: v,
|
|
27
|
-
relativePath: i = "",
|
|
28
|
-
// articleData,
|
|
29
|
-
loader: s
|
|
30
|
-
} = P || {}, {
|
|
31
|
-
prelemBaseEndpoint: { language: n, site_host: o }
|
|
32
|
-
} = u, [g, r] = a(s), [E, S] = a({}), [L, A] = a({}), [G, b] = a(0), w = localStorage.getItem("userId") || t, [T, x] = a([]), [H, q] = a([]), [M, N] = a({}), [U, j] = a({}), [B, O] = a({}), [W, z] = a({}), [F, J] = a({}), [K, Q] = a([]), p = async (C, l, f) => {
|
|
33
|
-
var m, h;
|
|
34
|
-
if (!w) {
|
|
35
|
-
d("User ID is not available. Please log in.");
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
try {
|
|
39
|
-
const c = {
|
|
40
|
-
input: { activity_type: f, target: C.toString(), action: l },
|
|
41
|
-
user_id: w
|
|
42
|
-
}, e = await de.setPersonalGoal(c, n, o);
|
|
43
|
-
((h = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_setPersonalGoal) == null ? void 0 : h.message) === "Created Successfully!!!" && l === "goal" ? ge("Goal updated successfully!") : l !== "entry" && console.error("Something went wrong !");
|
|
44
|
-
} catch (c) {
|
|
45
|
-
console.error("Error in update goal API:", c), d("Something went wrong, please try after sometime !");
|
|
46
|
-
}
|
|
47
|
-
}, y = async (C = "") => {
|
|
48
|
-
var l, f, m, h;
|
|
49
|
-
if (!w) {
|
|
50
|
-
d("User ID is not available. Please log in.");
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
try {
|
|
54
|
-
r(!0);
|
|
55
|
-
const c = {
|
|
56
|
-
date: C,
|
|
57
|
-
user_id: w
|
|
58
|
-
}, e = await k.fetchPersonalTracker(c, n, o);
|
|
59
|
-
if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
|
|
60
|
-
d((f = e == null ? void 0 : e.errors[0]) == null ? void 0 : f.message);
|
|
61
|
-
else if ((m = e == null ? void 0 : e.data) != null && m.community_fetchPersonalTracker) {
|
|
62
|
-
const {
|
|
63
|
-
water_intake: Z,
|
|
64
|
-
steps: $,
|
|
65
|
-
streak_count: R,
|
|
66
|
-
individual_challenge_info: V,
|
|
67
|
-
calories: ee,
|
|
68
|
-
distance: te,
|
|
69
|
-
device_info: ae,
|
|
70
|
-
individual_challenge_detail: se,
|
|
71
|
-
past_challenges: ne,
|
|
72
|
-
pending_request: oe
|
|
73
|
-
} = (h = e == null ? void 0 : e.data) == null ? void 0 : h.community_fetchPersonalTracker;
|
|
74
|
-
S(Z), A($), b(R), N(V), J({ pastChallenges: ne, pendingRequest: oe }), j({ calories: ee, distance: te }), O(ae), z(se), r(!1);
|
|
75
|
-
} else
|
|
76
|
-
console.error("GetPersonalData API failed"), d("GetPersonalData API failed");
|
|
77
|
-
} catch (c) {
|
|
78
|
-
console.error("Error in GetPersonalData API:", c), d("Error in GetPersonalData API"), S({}), A({}), r(!1);
|
|
79
|
-
}
|
|
80
|
-
}, X = {
|
|
81
|
-
waterIntakeData: E,
|
|
82
|
-
loading: g,
|
|
83
|
-
fetchPersonalData: y,
|
|
84
|
-
updateGoals: p
|
|
85
|
-
}, Y = {
|
|
86
|
-
stepsData: L,
|
|
87
|
-
loading: g,
|
|
88
|
-
updateGoals: p
|
|
89
|
-
};
|
|
90
|
-
return me(() => {
|
|
91
|
-
y(ce(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), _(n, o, x, "", "challenges", { start: 0, rows: 6 }), _(n, o, q, "", "wellnessevent", {
|
|
92
|
-
start: 0,
|
|
93
|
-
rows: 12
|
|
94
|
-
}), _(n, o, Q, "", "ALL", { start: 0, rows: 9 }, [
|
|
95
|
-
"Vod",
|
|
96
|
-
"Article"
|
|
97
|
-
]), r(!0);
|
|
98
|
-
}, []), /* @__PURE__ */ re(
|
|
99
|
-
ie,
|
|
100
|
-
{
|
|
101
|
-
analytics: I,
|
|
102
|
-
authoringHelper: D,
|
|
103
|
-
secondaryArgs: u,
|
|
104
|
-
waterIntakeDetails: X,
|
|
105
|
-
stepsDetails: Y,
|
|
106
|
-
streaksCount: G,
|
|
107
|
-
data: T,
|
|
108
|
-
eventData: H,
|
|
109
|
-
articleVodData: K,
|
|
110
|
-
filters: v,
|
|
111
|
-
relativePath: i,
|
|
112
|
-
userId: t,
|
|
113
|
-
deviceInfo: B,
|
|
114
|
-
individualChallengeInfo: M,
|
|
115
|
-
commonInfo: U,
|
|
116
|
-
individualChallengeDetail: W,
|
|
117
|
-
constants: le,
|
|
118
|
-
pastAndPendingInfo: F
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
};
|
|
122
|
-
export {
|
|
123
|
-
Pe as EngagementHomeComponent,
|
|
124
|
-
Pe as default
|
|
125
|
-
};
|