@platform-x/hcltechx-mfe-wrapper 1.0.30 → 1.0.32

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 (42) hide show
  1. package/{ArticleVodListComponent-rfJIaQla.mjs → ArticleVodListComponent-y5ZC-K8N.mjs} +2 -2
  2. package/{ChallengeDetailComponent-DWi4-Vye.mjs → ChallengeDetailComponent-Ccl-yC8I.mjs} +44 -44
  3. package/ChallengeSliderComponent-CZ992dWh.mjs +96 -0
  4. package/{CommonContentComponent-DiH2eh7m.mjs → CommonContentComponent-DC0AqqrX.mjs} +3 -3
  5. package/{DailyMotion-DqVz7WRg.mjs → DailyMotion-Blx1GErT.mjs} +4 -4
  6. package/EngagementHomeComponent-DOX5kur1.mjs +114 -0
  7. package/{EventDetailComponent-Dlv-vajD.mjs → EventDetailComponent-DOh41Jfw.mjs} +3 -3
  8. package/{EventListComponent-Bp-ocQyI.mjs → EventListComponent-DL11Vq8q.mjs} +25 -25
  9. package/ExperienceZone-C4mWycEw.mjs +86 -0
  10. package/{ExperienceZoneComponent-DigfDEcA.mjs → ExperienceZoneComponent-DJRNt2lQ.mjs} +17 -17
  11. package/{Facebook-5NjdZIZS.mjs → Facebook-CpbqLd66.mjs} +7 -7
  12. package/{FilePlayer-1xO7FAWu.mjs → FilePlayer-BGOp0DXQ.mjs} +5 -5
  13. package/IndividualChallengeComponent-CSvwg7u6.mjs +196 -0
  14. package/{Kaltura-Qf00P2Fj.mjs → Kaltura-C8slhZzV.mjs} +5 -5
  15. package/{Mixcloud-BCvfo2lN.mjs → Mixcloud-BOMYfvT_.mjs} +5 -5
  16. package/{Mux-BmAud9P2.mjs → Mux-DB7aeQVl.mjs} +2 -2
  17. package/PageComponent-CKYHKblz.mjs +73 -0
  18. package/{Preview-B69Gep9D.mjs → Preview-1H7JmNVr.mjs} +1 -1
  19. package/RecentCarousel-QbiBRQ_g.mjs +243 -0
  20. package/{Share-DHRrFg9E.mjs → Share-BCO0nej_.mjs} +2 -2
  21. package/{SoundCloud-C6m9N0iT.mjs → SoundCloud-BWt1QfLw.mjs} +4 -4
  22. package/{Streamable-lIw4WFDj.mjs → Streamable-KhANYmoI.mjs} +7 -7
  23. package/{ToggleButton-qqI-N7vl.mjs → ToggleButton-Ckaqkycd.mjs} +82248 -80430
  24. package/{Twitch-D0-ZYeec.mjs → Twitch-D0U9O0cv.mjs} +6 -6
  25. package/{Vidyard-Z5q25F-x.mjs → Vidyard-d7EDUuD8.mjs} +11 -11
  26. package/{Vimeo-Dnhza8bp.mjs → Vimeo-BDMUc8SW.mjs} +2 -2
  27. package/{Wistia-CZueDcOL.mjs → Wistia-D5xJrTK7.mjs} +2 -2
  28. package/{YouTube-C4bqVnwR.mjs → YouTube-oKErF6Ye.mjs} +7 -7
  29. package/{index-D5u1jg6A.mjs → index-CEZYrT6K.mjs} +6 -6
  30. package/{index-nEuOAhnp.mjs → index-KlOvgf9W.mjs} +703 -674
  31. package/index.mjs +1 -1
  32. package/lib/Pages/PrelemBuilder.d.ts +2 -1
  33. package/lib/services/fetchQueries.d.ts +2 -2
  34. package/{mutateApi-BCq97zCv.mjs → mutateApi-COICutgy.mjs} +1 -1
  35. package/package.json +1 -1
  36. package/style.css +1 -1
  37. package/ChallengeSliderComponent-DjxTAW25.mjs +0 -85
  38. package/EngagementHomeComponent-CCQXJTDI.mjs +0 -112
  39. package/ExperienceZone-BvqGBh_n.mjs +0 -89
  40. package/IndividualChallengeComponent-BUKejN6Y.mjs +0 -191
  41. package/PageComponent-CUXkbfOH.mjs +0 -64
  42. package/RecentCarousel-BFwZefp_.mjs +0 -245
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { A as p } from "./ToggleButton-qqI-N7vl.mjs";
2
+ import { A as p } from "./ToggleButton-Ckaqkycd.mjs";
3
3
  import "react";
4
- import "./index-nEuOAhnp.mjs";
4
+ import "./index-KlOvgf9W.mjs";
5
5
  import "react-dom";
6
6
  const f = ({
7
7
  data: t,
@@ -1,119 +1,119 @@
1
1
  import { jsx as F } from "react/jsx-runtime";
2
- import { b as K } from "./ToggleButton-qqI-N7vl.mjs";
3
- import { useState as f, useEffect as M } from "react";
4
- import { s as a, f as u } from "./index-nEuOAhnp.mjs";
5
- import { m as N } from "./mutateApi-BCq97zCv.mjs";
2
+ import { b as K } from "./ToggleButton-Ckaqkycd.mjs";
3
+ import { useState as c, useEffect as M } from "react";
4
+ import { s as f, f as u } from "./index-KlOvgf9W.mjs";
5
+ import { m as N } from "./mutateApi-COICutgy.mjs";
6
6
  import "react-dom";
7
- const Z = (L) => {
7
+ const Z = (_) => {
8
8
  const {
9
9
  pageData: t = {},
10
10
  secondaryArgs: P,
11
11
  prelemAnalyticsProp: E,
12
12
  prelemAuthoringHelper: D,
13
13
  userId: y
14
- } = L || {}, {
15
- prelemBaseEndpoint: { language: m, site_host: d }
16
- } = P, [C, c] = f(!1), [v, I] = f(!1), [w, B] = f(0), [S, G] = f(0), [T, j] = f([]), [b, A] = f(!1), [k, U] = f({}), h = localStorage.getItem("userId") || y, x = async (i) => {
14
+ } = _ || {}, {
15
+ prelemBaseEndpoint: { language: h, site_host: d }
16
+ } = P, [C, a] = c(!1), [v, I] = c(!1), [B, T] = c(0), [w, G] = c(0), [S, j] = c([]), [b, A] = c(!1), [k, U] = c({}), g = localStorage.getItem("userId") || y, x = async (i) => {
17
17
  var n, s, l, o;
18
- if (!h) {
19
- a("User ID is not available. Please log in.");
18
+ if (!g) {
19
+ f("User ID is not available. Please log in.");
20
20
  return;
21
21
  }
22
22
  try {
23
- c(!0);
23
+ a(!0);
24
24
  const r = {
25
25
  input: {
26
26
  ...i,
27
- userId: h
27
+ userId: g
28
28
  }
29
- }, e = await N.joinChallenge(r, m, d);
30
- ((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? a((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_joinChallenge) != null && o.id ? (I(!0), _(), A(!0)) : console.error("Join Challenge API failed");
29
+ }, e = await N.joinChallenge(r, h, d);
30
+ ((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_joinChallenge) != null && o.id ? (I(!0), L(), A(!0)) : console.error("Join Challenge API failed");
31
31
  } catch (r) {
32
32
  console.error("Error in Join Challenge API:", r);
33
33
  } finally {
34
- c(!1);
34
+ a(!1);
35
35
  }
36
- }, _ = async () => {
36
+ }, L = async () => {
37
37
  var i, n, s, l;
38
- if (!h) {
39
- a("User ID is not available. Please log in.");
38
+ if (!g) {
39
+ f("User ID is not available. Please log in.");
40
40
  return;
41
41
  }
42
42
  try {
43
- c(!0);
43
+ a(!0);
44
44
  const o = {
45
45
  challenge_id: t == null ? void 0 : t.page,
46
46
  user_id: y
47
- }, r = await u.getChallengeDetails(o, m, d);
47
+ }, r = await u.getChallengeDetails(o, h, d);
48
48
  if (((i = r == null ? void 0 : r.errors) == null ? void 0 : i.length) > 0)
49
- a((n = r == null ? void 0 : r.errors[0]) == null ? void 0 : n.message);
49
+ f((n = r == null ? void 0 : r.errors[0]) == null ? void 0 : n.message);
50
50
  else if ((s = r == null ? void 0 : r.data) != null && s.community_challengesDetail) {
51
51
  const {
52
52
  total_participant: e,
53
- is_joined: g,
53
+ is_joined: m,
54
54
  user_steps: z = 0
55
55
  } = (l = r == null ? void 0 : r.data) == null ? void 0 : l.community_challengesDetail;
56
- I(g), B(e), G(z);
56
+ I(m), T(e), G(z);
57
57
  } else
58
58
  console.error("GetEventDetails API failed");
59
59
  } catch (o) {
60
60
  console.error("Error in GetEventDetails API:", o);
61
61
  } finally {
62
- c(!1);
62
+ a(!1);
63
63
  }
64
64
  }, H = async () => {
65
65
  var i, n, s, l, o;
66
66
  try {
67
- c(!0);
67
+ a(!0);
68
68
  const r = {
69
69
  challenge_id: t == null ? void 0 : t.page,
70
- user_id: localStorage.getItem("userId")
71
- }, e = await u.getLeaderBoardList(r, m, d);
70
+ user_id: g
71
+ }, e = await u.getLeaderBoardList(r, h, d);
72
72
  if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
73
- a((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
73
+ f((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
74
74
  else if ((l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_getLeaderBoardList) != null && l.records) {
75
- const { records: g } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_getLeaderBoardList;
76
- j(g);
75
+ const { records: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_getLeaderBoardList;
76
+ j(m);
77
77
  } else
78
78
  console.error("GetLeaderBoardList API failed");
79
79
  } catch (r) {
80
80
  console.error("Error in GetLeaderBoardList API:", r);
81
81
  } finally {
82
- c(!1);
82
+ a(!1);
83
83
  }
84
84
  }, J = async (i = "") => {
85
85
  var n, s, l, o;
86
86
  try {
87
- c(!0);
87
+ a(!0);
88
88
  const r = {
89
89
  date: i,
90
- user_id: h
91
- }, e = await u.fetchPersonalTracker(r, m, d);
90
+ user_id: g
91
+ }, e = await u.fetchPersonalTracker(r, h, d);
92
92
  if (((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0)
93
- a((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
93
+ f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
94
94
  else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
95
- const { device_info: g } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
96
- U(g);
95
+ const { device_info: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
96
+ U(m);
97
97
  } else
98
- console.error("GetPersonalData API failed"), a("GetPersonalData API failed");
98
+ console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
99
99
  } catch (r) {
100
- a("Something went wrong !"), console.error("Error in GetPersonalData API:", r), a("Error in GetPersonalData API");
100
+ console.error("Error in GetPersonalData API:", r);
101
101
  } finally {
102
- c(!1);
102
+ a(!1);
103
103
  }
104
104
  }, q = {
105
105
  joinChallenge: x,
106
106
  loading: C,
107
107
  isEnrolled: v,
108
- enrolledParticipants: w,
109
- userAchieved: S,
110
- leaderBoardList: T,
108
+ enrolledParticipants: B,
109
+ userAchieved: w,
110
+ leaderBoardList: S,
111
111
  showPopup: b,
112
112
  setShowPopup: A,
113
113
  deviceInfo: k
114
114
  };
115
115
  return M(() => {
116
- t != null && t.page && (_(), H(), J());
116
+ t != null && t.page && (L(), H(), J());
117
117
  }, [t]), /* @__PURE__ */ F(
118
118
  K,
119
119
  {
@@ -0,0 +1,96 @@
1
+ import { jsx as W } from "react/jsx-runtime";
2
+ import { f as X, C as Y } from "./ToggleButton-Ckaqkycd.mjs";
3
+ import { useState as a, useEffect as Z } from "react";
4
+ import { f as A, s as c, a as $ } from "./index-KlOvgf9W.mjs";
5
+ import { m as V } from "./mutateApi-COICutgy.mjs";
6
+ import "react-dom";
7
+ const re = (p) => {
8
+ var I, P, _;
9
+ const { pageData: o = {}, secondaryArgs: u, userId: y, filters: T } = p || {}, [v, w] = a(!1), [k, C] = a({}), [E, G] = a(0), [b, L] = a([]), [x, j] = a({}), [D, H] = a({}), [M, B] = a({}), S = localStorage.getItem("userId") || y, {
10
+ prelemBaseEndpoint: { site_host: h, language: f }
11
+ } = u, q = {
12
+ pageId: o == null ? void 0 : o.page,
13
+ pageTitle: o == null ? void 0 : o.title,
14
+ pageDesc: o == null ? void 0 : o.description,
15
+ pageTags: (P = (I = o == null ? void 0 : o.settings) == null ? void 0 : I.keywords) == null ? void 0 : P.join(", "),
16
+ isAuthoring: !1,
17
+ isSeoEnabled: (_ = o == null ? void 0 : o.settings) == null ? void 0 : _.seo_blockIndexing,
18
+ isAnalyticsEnabled: o == null ? void 0 : o.analytics_enable
19
+ }, z = {
20
+ isAuthoring: !1
21
+ }, F = async (i, n, l, r = "", t = "wellnessevent") => {
22
+ var e, d, m, g;
23
+ const s = await A.getContentSchemaList(
24
+ {
25
+ searchTerm: r,
26
+ filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase()
27
+ },
28
+ i || "en",
29
+ n
30
+ );
31
+ (d = (e = s == null ? void 0 : s.data) == null ? void 0 : e.publish_getContents) != null && d.records ? l((g = (m = s == null ? void 0 : s.data) == null ? void 0 : m.publish_getContents) == null ? void 0 : g.records) : console.error("Something went wrong !");
32
+ }, J = async (i, n, l) => {
33
+ var r, t;
34
+ try {
35
+ const s = {
36
+ input: { activity_type: l, target: i.toString(), action: n },
37
+ user_id: S
38
+ }, e = await V.setPersonalGoal(s, f, h);
39
+ ((t = (r = e == null ? void 0 : e.data) == null ? void 0 : r.community_setPersonalGoal) == null ? void 0 : t.message) === "Created Successfully!!!" && n === "goal" ? $("Goal updated successfully!") : n !== "entry" && console.error("Something went wrong !");
40
+ } catch (s) {
41
+ console.error("Error in update goal API:", s), c("Something went wrong, please try after sometime !");
42
+ }
43
+ }, K = async (i = "") => {
44
+ var n, l, r, t;
45
+ try {
46
+ w(!0);
47
+ const s = {
48
+ date: i,
49
+ user_id: S
50
+ }, e = await A.fetchPersonalTracker(s, f, h);
51
+ if (((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0)
52
+ c((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message);
53
+ else if ((r = e == null ? void 0 : e.data) != null && r.community_fetchPersonalTracker) {
54
+ const {
55
+ steps: d,
56
+ streak_count: m,
57
+ calories: g,
58
+ distance: O,
59
+ individual_challenge_detail: Q,
60
+ individual_challenge_info: U
61
+ } = (t = e == null ? void 0 : e.data) == null ? void 0 : t.community_fetchPersonalTracker;
62
+ C(d), G(m), j({ calories: g, distance: O }), H(Q), B(U);
63
+ } else
64
+ console.error("GetPersonalData API failed"), c("GetPersonalData API failed");
65
+ } catch (s) {
66
+ c("Something went wrong !"), console.error("Error in GetPersonalData API:", s), c("Error in GetPersonalData API"), C({});
67
+ } finally {
68
+ w(!1);
69
+ }
70
+ }, N = {
71
+ stepsData: k,
72
+ loading: v,
73
+ updateGoals: J
74
+ };
75
+ return Z(() => {
76
+ K(X(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), F(f, h, L, "", "challenges");
77
+ }, []), /* @__PURE__ */ W(
78
+ Y,
79
+ {
80
+ analytics: q,
81
+ authoringHelper: z,
82
+ secondaryArgs: u,
83
+ stepsDetails: N,
84
+ streaksCount: E,
85
+ data: b,
86
+ filters: T,
87
+ commonInfo: x,
88
+ individualChallengeDetail: D,
89
+ individualChallengeInfo: M,
90
+ userId: y
91
+ }
92
+ );
93
+ };
94
+ export {
95
+ re as default
96
+ };
@@ -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-nEuOAhnp.mjs";
4
- import { m as $ } from "./mutateApi-BCq97zCv.mjs";
3
+ import { F as M, f as N, s as w } from "./index-KlOvgf9W.mjs";
4
+ import { m as $ } from "./mutateApi-COICutgy.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-D5u1jg6A.mjs").then((t) => ({
9
+ () => import("./index-CEZYrT6K.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-nEuOAhnp.mjs";
1
+ import { n as P } from "./index-KlOvgf9W.mjs";
2
2
  import v from "react";
3
- import { y as D, z as O } from "./ToggleButton-qqI-N7vl.mjs";
3
+ import { z as D, F as O } from "./ToggleButton-Ckaqkycd.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(_), z = /* @__PURE__ */ b({
130
+ const K = /* @__PURE__ */ P(_), k = /* @__PURE__ */ b({
131
131
  __proto__: null,
132
132
  default: K
133
133
  }, [_]);
134
134
  export {
135
- z as D
135
+ k as D
136
136
  };
@@ -0,0 +1,114 @@
1
+ import { jsx as ee } from "react/jsx-runtime";
2
+ import { f as te, a as ae } from "./ToggleButton-Ckaqkycd.mjs";
3
+ import { useState as t, useEffect as oe } from "react";
4
+ import { f as A, s as c, a as ne } from "./index-KlOvgf9W.mjs";
5
+ import { m as se } from "./mutateApi-COICutgy.mjs";
6
+ import "react-dom";
7
+ const k = async (D, d, I, w = "", a = "wellnessevent") => {
8
+ var g, f, n, s;
9
+ const o = await A.getContentSchemaList(
10
+ {
11
+ searchTerm: w,
12
+ filter: (a == null ? void 0 : a.toLocaleLowerCase()) === "events" ? "wellnessevent" : a == null ? void 0 : a.toLocaleLowerCase()
13
+ },
14
+ D || "en",
15
+ d
16
+ );
17
+ (f = (g = o == null ? void 0 : o.data) == null ? void 0 : g.publish_getContents) != null && f.records ? I((s = (n = o == null ? void 0 : o.data) == null ? void 0 : n.publish_getContents) == null ? void 0 : s.records) : console.error("Something went wrong !");
18
+ }, ge = (D) => {
19
+ const {
20
+ secondaryArgs: d,
21
+ prelemAnalyticsProp: I,
22
+ prelemAuthoringHelper: w,
23
+ userId: a,
24
+ filters: o,
25
+ relativePath: g = "",
26
+ articleData: f
27
+ } = D || {}, {
28
+ prelemBaseEndpoint: { language: n, site_host: s }
29
+ } = d, [v, y] = t(!1), [E, p] = t({}), [G, C] = t({}), [T, L] = t(0), h = localStorage.getItem("userId") || a, [b, H] = t([]), [x, M] = t([]), [U, j] = t({}), [B, W] = t({}), [q, z] = t({}), [F, J] = t({}), S = async (P, l, u) => {
30
+ var i, m;
31
+ if (!h) {
32
+ c("User ID is not available. Please log in.");
33
+ return;
34
+ }
35
+ try {
36
+ const r = {
37
+ input: { activity_type: u, target: P.toString(), action: l },
38
+ user_id: h
39
+ }, e = await se.setPersonalGoal(r, n, s);
40
+ ((m = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && l === "goal" ? ne("Goal updated successfully!") : l !== "entry" && console.error("Something went wrong !");
41
+ } catch (r) {
42
+ console.error("Error in update goal API:", r), c("Something went wrong, please try after sometime !");
43
+ }
44
+ }, _ = async (P = "") => {
45
+ var l, u, i, m;
46
+ if (!h) {
47
+ c("User ID is not available. Please log in.");
48
+ return;
49
+ }
50
+ try {
51
+ y(!0);
52
+ const r = {
53
+ date: P,
54
+ user_id: h
55
+ }, e = await A.fetchPersonalTracker(r, n, s);
56
+ if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
57
+ c((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 {
60
+ water_intake: O,
61
+ steps: Q,
62
+ streak_count: X,
63
+ individual_challenge_info: Y,
64
+ calories: Z,
65
+ distance: $,
66
+ device_info: V,
67
+ individual_challenge_detail: R
68
+ } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
69
+ p(O), C(Q), L(X), j(Y), W({ calories: Z, distance: $ }), z(V), J(R);
70
+ } else
71
+ console.error("GetPersonalData API failed"), c("GetPersonalData API failed");
72
+ } catch (r) {
73
+ console.error("Error in GetPersonalData API:", r), c("Error in GetPersonalData API"), p({}), C({});
74
+ } finally {
75
+ y(!1);
76
+ }
77
+ }, K = {
78
+ waterIntakeData: E,
79
+ loading: v,
80
+ fetchPersonalData: _,
81
+ updateGoals: S
82
+ }, N = {
83
+ stepsData: G,
84
+ loading: v,
85
+ updateGoals: S
86
+ };
87
+ return oe(() => {
88
+ _(te(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), k(n, s, H, "", "challenges"), k(n, s, M, "", "wellnessevent");
89
+ }, []), /* @__PURE__ */ ee(
90
+ ae,
91
+ {
92
+ analytics: I,
93
+ authoringHelper: w,
94
+ secondaryArgs: d,
95
+ waterIntakeDetails: K,
96
+ stepsDetails: N,
97
+ streaksCount: T,
98
+ data: b,
99
+ eventData: x,
100
+ articleVodData: f,
101
+ filters: o,
102
+ relativePath: g,
103
+ userId: a,
104
+ deviceInfo: q,
105
+ individualChallengeInfo: U,
106
+ commonInfo: B,
107
+ individualChallengeDetail: F
108
+ }
109
+ );
110
+ };
111
+ export {
112
+ ge as EngagementHomeComponent,
113
+ ge as default
114
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as U } from "react/jsx-runtime";
2
- import { c as V } from "./ToggleButton-qqI-N7vl.mjs";
2
+ import { c as V } from "./ToggleButton-Ckaqkycd.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-nEuOAhnp.mjs";
5
- import { m as z } from "./mutateApi-BCq97zCv.mjs";
4
+ import { f as q, s as d, a as I } from "./index-KlOvgf9W.mjs";
5
+ import { m as z } from "./mutateApi-COICutgy.mjs";
6
6
  import "react-dom";
7
7
  const Z = (h) => {
8
8
  const {
@@ -1,56 +1,56 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
- import { E as M, f as U } from "./ToggleButton-qqI-N7vl.mjs";
2
+ import { E as M, f as U } from "./ToggleButton-Ckaqkycd.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-nEuOAhnp.mjs";
5
- import { m as q } from "./mutateApi-BCq97zCv.mjs";
4
+ import { s as r, f as B, a as H } from "./index-KlOvgf9W.mjs";
5
+ import { m as q } from "./mutateApi-COICutgy.mjs";
6
6
  import "react-dom";
7
7
  const Q = ({
8
8
  data: h,
9
9
  prelemAnalyticsProp: y,
10
- prelemAuthoringHelper: p,
11
- secondaryArgs: m,
12
- userId: f,
13
- filters: P,
10
+ prelemAuthoringHelper: P,
11
+ secondaryArgs: f,
12
+ userId: m,
13
+ filters: p,
14
14
  relativePath: w
15
15
  }) => {
16
16
  const [I, S] = c({}), [D, E] = c({}), [v, T] = c({}), [_, u] = c(!1), {
17
17
  prelemBaseEndpoint: { language: g, site_host: d }
18
- } = m, r = localStorage.getItem("userId") || f, G = async (l, t, i) => {
19
- var s, o;
20
- if (!r) {
21
- a("User ID is not available. Please log in.");
18
+ } = f, s = localStorage.getItem("userId") || m, G = async (l, t, i) => {
19
+ var a, o;
20
+ if (!s) {
21
+ r("User ID is not available. Please log in.");
22
22
  return;
23
23
  }
24
24
  try {
25
25
  const e = {
26
26
  input: { activity_type: i, target: l.toString(), action: t },
27
- user_id: r
27
+ user_id: s
28
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 !");
29
+ ((o = (a = n == null ? void 0 : n.data) == null ? void 0 : a.community_setPersonalGoal) == null ? void 0 : o.message) === "Created Successfully!!!" && t === "goal" ? H("Goal updated successfully!") : t !== "entry" && console.error("Something went wrong !");
30
30
  } catch (e) {
31
- console.error("Error in update goal API:", e), a("Something went wrong, please try after sometime !");
31
+ console.error("Error in update goal API:", e), r("Something went wrong, please try after sometime !");
32
32
  }
33
33
  }, C = async () => {
34
- var l, t, i, s;
35
- if (!r) {
36
- a("User ID is not available. Please log in.");
34
+ var l, t, i, a;
35
+ if (!s) {
36
+ r("User ID is not available. Please log in.");
37
37
  return;
38
38
  }
39
39
  try {
40
40
  u(!0);
41
41
  const o = {
42
42
  date: U(/* @__PURE__ */ new Date(), "yyyy-MM-dd"),
43
- user_id: r
43
+ user_id: s
44
44
  }, e = await B.fetchPersonalTracker(o, g, d);
45
45
  if (((l = e == null ? void 0 : e.errors) == null ? void 0 : l.length) > 0)
46
- a((t = e == null ? void 0 : e.errors[0]) == null ? void 0 : t.message);
46
+ r((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: n, calories: k, distance: L, individual_challenge_info: b } = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_fetchPersonalTracker;
48
+ const { steps: n, calories: k, distance: L, individual_challenge_info: b } = (a = e == null ? void 0 : e.data) == null ? void 0 : a.community_fetchPersonalTracker;
49
49
  T(n), S(b), E({ calories: k, distance: L });
50
50
  } else
51
51
  console.error("GetPersonalData API failed");
52
52
  } catch (o) {
53
- a("Something went wrong !"), console.error("Error in GetPersonalData API:", o);
53
+ r("Something went wrong !"), console.error("Error in GetPersonalData API:", o);
54
54
  } finally {
55
55
  u(!1);
56
56
  }
@@ -66,14 +66,14 @@ const Q = ({
66
66
  {
67
67
  content: h,
68
68
  analytics: y,
69
- authoringHelper: p,
70
- secondaryArgs: m,
69
+ authoringHelper: P,
70
+ secondaryArgs: f,
71
71
  stepsDetails: A,
72
- filters: P,
72
+ filters: p,
73
73
  relativePath: w,
74
74
  individualChallengeInfo: I,
75
75
  commonInfo: D,
76
- userId: f
76
+ userId: m
77
77
  }
78
78
  );
79
79
  };
@@ -0,0 +1,86 @@
1
+ import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
+ import { a7 as h, a8 as m, a9 as C, B as l, T as f, k as T, aa as k, ab as v, ac as x, v as b, ad as B } from "./ToggleButton-Ckaqkycd.mjs";
3
+ const X = ({
4
+ content: r,
5
+ analytics: c,
6
+ authoringHelper: o,
7
+ secondaryArgs: a,
8
+ filters: n,
9
+ eventData: d
10
+ }) => {
11
+ var t;
12
+ h(c, r, a);
13
+ const p = m(), w = (e) => {
14
+ b(e, n, a);
15
+ }, u = (e) => {
16
+ B(n, e, a);
17
+ }, S = { ...{
18
+ slidesToShow: 4,
19
+ slidesToScroll: 4,
20
+ autoPlay: !0,
21
+ dots: !1,
22
+ arrow: !0,
23
+ infinite: !1,
24
+ touchMove: !1,
25
+ responsive: [
26
+ {
27
+ breakpoint: 1024,
28
+ settings: {
29
+ slidesToShow: 3,
30
+ slidesToScroll: 3
31
+ }
32
+ },
33
+ {
34
+ breakpoint: 900,
35
+ settings: {
36
+ slidesToShow: 3,
37
+ slidesToScroll: 3
38
+ }
39
+ },
40
+ {
41
+ breakpoint: 600,
42
+ settings: {
43
+ slidesToShow: 2,
44
+ slidesToScroll: 2,
45
+ infinite: !0,
46
+ dots: !0,
47
+ arrow: !1,
48
+ touchMove: !0
49
+ }
50
+ }
51
+ ]
52
+ } };
53
+ return /* @__PURE__ */ s(
54
+ "div",
55
+ {
56
+ ref: o == null ? void 0 : o.innerRef,
57
+ className: `${p.ExperienceZoneWrapper} PX-ExperienceZoneBox`,
58
+ children: /* @__PURE__ */ s(C, { className: "prelem-py", children: /* @__PURE__ */ i(l, { children: [
59
+ /* @__PURE__ */ i(l, { className: "PX-headerWrapper", children: [
60
+ /* @__PURE__ */ s(f, { variant: "h3bold", children: "Your experience zone" }),
61
+ /* @__PURE__ */ s(
62
+ T,
63
+ {
64
+ variant: "secondaryButton3",
65
+ className: "viewAllCta",
66
+ onClick: () => u("eventList"),
67
+ children: "View All"
68
+ }
69
+ )
70
+ ] }),
71
+ /* @__PURE__ */ s(k, { ...S, className: "PX-arrowDotSlider", children: (t = v(d, "start_date", "end_date", !1)) == null ? void 0 : t.map((e) => /* @__PURE__ */ s(
72
+ x,
73
+ {
74
+ content: e,
75
+ secondaryArgs: a,
76
+ onCardClick: w
77
+ },
78
+ e
79
+ )) })
80
+ ] }) })
81
+ }
82
+ );
83
+ };
84
+ export {
85
+ X as E
86
+ };