@platform-x/hcltechx-mfe-wrapper 2.0.25 → 2.0.26

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.
Files changed (39) hide show
  1. package/ArticleVodList-5gQ7rM06.mjs +232 -0
  2. package/{ArticleVodListComponent-CcOG897w.mjs → ArticleVodListComponent-HdtTTveS.mjs} +9 -7
  3. package/{ChallengeDetailComponent-C47aLFFT.mjs → ChallengeDetailComponent-C8SVL59u.mjs} +7 -7
  4. package/{ChallengeSliderComponent-DF1u4Nng.mjs → ChallengeSliderComponent-CpVJwnQB.mjs} +3 -3
  5. package/{CommonContentComponent-CioTPoV-.mjs → CommonContentComponent-Bc_dndZE.mjs} +3 -3
  6. package/{DailyMotion-CuJbJ57X.mjs → DailyMotion-B_p-K_pC.mjs} +4 -4
  7. package/EngagementHomeComponent-BYn8j9dV.mjs +115 -0
  8. package/{EventDetailComponent-CNpsWEK_.mjs → EventDetailComponent-wH8YolRp.mjs} +7 -7
  9. package/EventList-XrEw9vjE.mjs +798 -0
  10. package/{EventListComponent-CZZ4sHGi.mjs → EventListComponent-RquJUzmf.mjs} +41 -38
  11. package/{ExperienceZone-DOnREA3B.mjs → ExperienceZone-DL66953J.mjs} +4 -4
  12. package/{ExperienceZoneComponent-CAhg-HP_.mjs → ExperienceZoneComponent-BpMPaCen.mjs} +8 -8
  13. package/{Facebook-LZzQQBwB.mjs → Facebook-pGR2O4G4.mjs} +7 -7
  14. package/{FilePlayer-PSjdtDS2.mjs → FilePlayer-m37GIuz9.mjs} +5 -5
  15. package/FilterModal-OlKd6xsx.mjs +175 -0
  16. package/{IndividualChallengeComponent-CKknZrM-.mjs → IndividualChallengeComponent-CjuYQx9h.mjs} +3 -3
  17. package/{Kaltura-VYeCOVrq.mjs → Kaltura--1WMSsQ4.mjs} +5 -5
  18. package/{Mixcloud-Dx6nltY4.mjs → Mixcloud-BDSHFA2c.mjs} +5 -5
  19. package/{Mux-DSf8-Tk4.mjs → Mux-C1zNcmt4.mjs} +2 -2
  20. package/{PageComponent-At1hcA2N.mjs → PageComponent-c9sz3vWl.mjs} +2 -2
  21. package/{Preview-Dz7WFqwK.mjs → Preview-CFUgwSmK.mjs} +1 -1
  22. package/{RecentCarousel-DKsUX4Ie.mjs → RecentCarousel-BnlqAIIf.mjs} +2 -2
  23. package/{Share-B7M0YRGF.mjs → Share-Bt-ieU7W.mjs} +2 -2
  24. package/{SoundCloud-NszztQrZ.mjs → SoundCloud-BdDrCmjd.mjs} +4 -4
  25. package/{Streamable-CfvzfJlj.mjs → Streamable-BRjdv982.mjs} +7 -7
  26. package/{ToggleButton-CWZQywKU.mjs → ToggleButton-mnzNUTXI.mjs} +67421 -68282
  27. package/{Twitch-DSHakBLK.mjs → Twitch-Bp8_il-u.mjs} +6 -6
  28. package/{Vidyard-Dgqt_3_q.mjs → Vidyard-1Y7pF_Hp.mjs} +11 -11
  29. package/{Vimeo-CFOJzWk4.mjs → Vimeo-BHrwk_Is.mjs} +2 -2
  30. package/{Wistia-Ca2t-R17.mjs → Wistia-BV0cywtK.mjs} +2 -2
  31. package/{YouTube-Bxi1pwEc.mjs → YouTube-DSwL7w6j.mjs} +7 -7
  32. package/{index-DcJjqQjm.mjs → index-Cuv-gW_C.mjs} +38 -35
  33. package/{index-BtvW_l5Z.mjs → index-DkY5Qyna.mjs} +70 -74
  34. package/index.mjs +1 -1
  35. package/lib/prelems/Components/EventListComponent.d.ts +2 -1
  36. package/lib/prelems-wrapper.d.ts +0 -5
  37. package/{mutateApi-Yg7CgHvo.mjs → mutateApi-OqLf0bkL.mjs} +1 -1
  38. package/package.json +1 -1
  39. package/EngagementHomeComponent-C4kpEtQ-.mjs +0 -116
@@ -1,116 +0,0 @@
1
- import { jsx as ee } from "react/jsx-runtime";
2
- import { f as te, a as oe } from "./ToggleButton-CWZQywKU.mjs";
3
- import { useState as o, useEffect as ae } from "react";
4
- import { C as ne, f as k, s as i, a as se } from "./index-BtvW_l5Z.mjs";
5
- import { m as re } from "./mutateApi-Yg7CgHvo.mjs";
6
- import "react-dom";
7
- const A = async (D, d, I, u = "", t = "wellnessevent") => {
8
- var g, h, n, s;
9
- const a = await k.getContentSchemaList(
10
- {
11
- searchTerm: u,
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
- D || "en",
16
- d
17
- );
18
- (h = (g = a == null ? void 0 : a.data) == null ? void 0 : g.publish_getContents) != null && h.records ? I((s = (n = a == null ? void 0 : a.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : s.records) : console.error("Something went wrong !");
19
- }, he = (D) => {
20
- const {
21
- secondaryArgs: d,
22
- prelemAnalyticsProp: I,
23
- prelemAuthoringHelper: u,
24
- userId: t,
25
- filters: a,
26
- relativePath: g = "",
27
- articleData: h
28
- } = D || {}, {
29
- prelemBaseEndpoint: { language: n, site_host: s }
30
- } = d, [C, P] = o(!1), [L, y] = o({}), [T, p] = o({}), [E, G] = o(0), f = localStorage.getItem("userId") || t, [b, H] = o([]), [x, M] = o([]), [N, U] = o({}), [j, B] = o({}), [O, W] = o({}), [q, z] = o({}), S = async (v, c, w) => {
31
- var l, m;
32
- if (!f) {
33
- i("User ID is not available. Please log in.");
34
- return;
35
- }
36
- try {
37
- const r = {
38
- input: { activity_type: w, target: v.toString(), action: c },
39
- user_id: f
40
- }, e = await re.setPersonalGoal(r, n, s);
41
- ((m = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && c === "goal" ? se("Goal updated successfully!") : c !== "entry" && console.error("Something went wrong !");
42
- } catch (r) {
43
- console.error("Error in update goal API:", r), i("Something went wrong, please try after sometime !");
44
- }
45
- }, _ = async (v = "") => {
46
- var c, w, l, m;
47
- if (!f) {
48
- i("User ID is not available. Please log in.");
49
- return;
50
- }
51
- try {
52
- P(!0);
53
- const r = {
54
- date: v,
55
- user_id: f
56
- }, e = await k.fetchPersonalTracker(r, n, s);
57
- if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
58
- i((w = e == null ? void 0 : e.errors[0]) == null ? void 0 : w.message);
59
- else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
60
- const {
61
- water_intake: K,
62
- steps: Q,
63
- streak_count: X,
64
- individual_challenge_info: Y,
65
- calories: Z,
66
- distance: $,
67
- device_info: R,
68
- individual_challenge_detail: V
69
- } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
70
- y(K), p(Q), G(X), U(Y), B({ calories: Z, distance: $ }), W(R), z(V);
71
- } else
72
- console.error("GetPersonalData API failed"), i("GetPersonalData API failed");
73
- } catch (r) {
74
- console.error("Error in GetPersonalData API:", r), i("Error in GetPersonalData API"), y({}), p({});
75
- } finally {
76
- P(!1);
77
- }
78
- }, F = {
79
- waterIntakeData: L,
80
- loading: C,
81
- fetchPersonalData: _,
82
- updateGoals: S
83
- }, J = {
84
- stepsData: T,
85
- loading: C,
86
- updateGoals: S
87
- };
88
- return ae(() => {
89
- _(te(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), A(n, s, H, "", "challenges"), A(n, s, M, "", "wellnessevent");
90
- }, []), /* @__PURE__ */ ee(
91
- oe,
92
- {
93
- analytics: I,
94
- authoringHelper: u,
95
- secondaryArgs: d,
96
- waterIntakeDetails: F,
97
- stepsDetails: J,
98
- streaksCount: E,
99
- data: b,
100
- eventData: x,
101
- articleVodData: h,
102
- filters: a,
103
- relativePath: g,
104
- userId: t,
105
- deviceInfo: O,
106
- individualChallengeInfo: N,
107
- commonInfo: j,
108
- individualChallengeDetail: q,
109
- constants: ne
110
- }
111
- );
112
- };
113
- export {
114
- he as EngagementHomeComponent,
115
- he as default
116
- };