@platform-x/hcltechx-mfe-wrapper 1.0.35 → 2.0.1

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 (37) hide show
  1. package/{ArticleVodListComponent-CMEie9a_.mjs → ArticleVodListComponent-DEJRy793.mjs} +2 -2
  2. package/{ChallengeDetailComponent-CuwjZMPf.mjs → ChallengeDetailComponent-CWUvI8nB.mjs} +31 -29
  3. package/{ChallengeSliderComponent-6JvFKito.mjs → ChallengeSliderComponent-CGu4rmAx.mjs} +44 -43
  4. package/{CommonContentComponent-DRJ5iDKk.mjs → CommonContentComponent-DYnoHKWn.mjs} +3 -3
  5. package/{DailyMotion-D1Gzjs6b.mjs → DailyMotion-DmQzzhHZ.mjs} +2 -2
  6. package/{EngagementHomeComponent-DXSsi6al.mjs → EngagementHomeComponent-DbaefrWP.mjs} +35 -34
  7. package/{EventDetailComponent-C7Gm4HK4.mjs → EventDetailComponent-YtRrtOJY.mjs} +3 -3
  8. package/{EventListComponent-B2i90d0d.mjs → EventListComponent-8-lU6GjQ.mjs} +35 -34
  9. package/{ExperienceZone-BthN8l6e.mjs → ExperienceZone-DezSv2C6.mjs} +1 -1
  10. package/{ExperienceZoneComponent-B3XLXdgz.mjs → ExperienceZoneComponent-DRZp_FYW.mjs} +3 -3
  11. package/{Facebook-C2Q7fzor.mjs → Facebook-BxNq6oE0.mjs} +2 -2
  12. package/{FilePlayer-DsljmHEG.mjs → FilePlayer-Bo633856.mjs} +2 -2
  13. package/{IndividualChallengeComponent-zcLcep5M.mjs → IndividualChallengeComponent-BFrxL770.mjs} +47 -44
  14. package/{Kaltura-DOjmzCCF.mjs → Kaltura-CbNFCqWb.mjs} +2 -2
  15. package/{Mixcloud-B0VsdJHn.mjs → Mixcloud-C8sYwmiY.mjs} +2 -2
  16. package/{Mux-Cfyj7TvM.mjs → Mux-D7tMso4y.mjs} +2 -2
  17. package/{PageComponent-DALylcTo.mjs → PageComponent-DWQDAqFB.mjs} +2 -2
  18. package/{Preview-jio1mn2o.mjs → Preview-4fiGLpAu.mjs} +1 -1
  19. package/{RecentCarousel-Ch4RVb0P.mjs → RecentCarousel-CZ-cSQu9.mjs} +2 -2
  20. package/{Share-BDSlb37Z.mjs → Share-qwqzeEcJ.mjs} +2 -2
  21. package/{SoundCloud-Cr9HgRwr.mjs → SoundCloud-BAXEPTjE.mjs} +2 -2
  22. package/{Streamable-BZnPiOgH.mjs → Streamable-DdwJy9E-.mjs} +2 -2
  23. package/{ToggleButton-gVhwVScB.mjs → ToggleButton-BsGYwVY2.mjs} +81228 -82891
  24. package/{Twitch-C50LModg.mjs → Twitch-zIfplNae.mjs} +2 -2
  25. package/{Vidyard-BJhZeW5Y.mjs → Vidyard-CSrddgke.mjs} +2 -2
  26. package/{Vimeo-Bl0wDJTK.mjs → Vimeo-Cz1Yy-ju.mjs} +2 -2
  27. package/{Wistia-BruGOWkp.mjs → Wistia-BVsvQ_2f.mjs} +2 -2
  28. package/{YouTube-BgK1Fcr9.mjs → YouTube-CkkDjZVK.mjs} +2 -2
  29. package/{index-DWVcGAGd.mjs → index-BBLW_T02.mjs} +1731 -1691
  30. package/{index-DzxRwN3t.mjs → index-L9tb360O.mjs} +3 -3
  31. package/index.mjs +1 -1
  32. package/lib/utils/constants.d.ts +6 -1
  33. package/lib/utils/helper.d.ts +1 -0
  34. package/lib/utils/types.d.ts +2 -0
  35. package/{mutateApi-DUkScX9H.mjs → mutateApi-NyVieJuU.mjs} +1 -1
  36. package/package.json +1 -1
  37. package/style.css +1 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { A as p } from "./ToggleButton-gVhwVScB.mjs";
2
+ import { A as p } from "./ToggleButton-BsGYwVY2.mjs";
3
3
  import "react";
4
- import "./index-DWVcGAGd.mjs";
4
+ import "./index-BBLW_T02.mjs";
5
5
  import "react-dom";
6
6
  const f = ({
7
7
  data: t,
@@ -1,19 +1,20 @@
1
- import { jsx as F } from "react/jsx-runtime";
2
- import { b as K } from "./ToggleButton-gVhwVScB.mjs";
3
- import { useState as c, useEffect as M } from "react";
4
- import { s as f, f as u } from "./index-DWVcGAGd.mjs";
5
- import { m as N } from "./mutateApi-DUkScX9H.mjs";
1
+ import { jsx as K } from "react/jsx-runtime";
2
+ import { b as M } from "./ToggleButton-BsGYwVY2.mjs";
3
+ import { useState as c, useEffect as N } from "react";
4
+ import { s as f, f as u } from "./index-BBLW_T02.mjs";
5
+ import { m as O } from "./mutateApi-NyVieJuU.mjs";
6
6
  import "react-dom";
7
- const Z = (E) => {
7
+ const $ = (E) => {
8
8
  const {
9
9
  pageData: t = {},
10
10
  secondaryArgs: P,
11
11
  prelemAnalyticsProp: D,
12
12
  prelemAuthoringHelper: C,
13
- userId: y
13
+ userId: y,
14
+ filters: v
14
15
  } = E || {}, {
15
16
  prelemBaseEndpoint: { language: h, site_host: d }
16
- } = P, [v, a] = c(!1), [w, I] = c(!1), [B, T] = c(0), [G, S] = c(0), [j, b] = c([]), [k, A] = c(!1), [U, x] = c({}), g = localStorage.getItem("userId") || y, H = async (i) => {
17
+ } = P, [w, a] = c(!1), [B, I] = c(!1), [T, G] = c(0), [S, j] = c(0), [b, k] = c([]), [U, A] = c(!1), [x, H] = c({}), g = localStorage.getItem("userId") || y, J = async (i) => {
17
18
  var n, s, l, o;
18
19
  if (!g) {
19
20
  f("User ID is not available. Please log in.");
@@ -26,7 +27,7 @@ const Z = (E) => {
26
27
  ...i,
27
28
  userId: g
28
29
  }
29
- }, e = await N.joinChallenge(r, h, d);
30
+ }, e = await O.joinChallenge(r, h, d);
30
31
  ((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), await L(), await _(), A(!0)) : console.error("Join Challenge API failed");
31
32
  } catch (r) {
32
33
  console.error("Error in Join Challenge API:", r);
@@ -51,9 +52,9 @@ const Z = (E) => {
51
52
  const {
52
53
  total_participant: e,
53
54
  is_joined: m,
54
- user_steps: z = 0
55
+ user_steps: F = 0
55
56
  } = (l = r == null ? void 0 : r.data) == null ? void 0 : l.community_challengesDetail;
56
- I(m), T(e), S(z);
57
+ I(m), G(e), j(F);
57
58
  } else
58
59
  console.error("GetEventDetails API failed");
59
60
  } catch (o) {
@@ -73,7 +74,7 @@ const Z = (E) => {
73
74
  f((n = e == null ? void 0 : e.errors[0]) == null ? void 0 : n.message);
74
75
  else if ((l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.community_getLeaderBoardList) != null && l.records) {
75
76
  const { records: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_getLeaderBoardList;
76
- b(m);
77
+ k(m);
77
78
  } else
78
79
  console.error("GetLeaderBoardList API failed");
79
80
  } catch (r) {
@@ -81,7 +82,7 @@ const Z = (E) => {
81
82
  } finally {
82
83
  a(!1);
83
84
  }
84
- }, J = async (i = "") => {
85
+ }, q = async (i = "") => {
85
86
  var n, s, l, o;
86
87
  try {
87
88
  a(!0);
@@ -93,7 +94,7 @@ const Z = (E) => {
93
94
  f((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
94
95
  else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
95
96
  const { device_info: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
96
- x(m);
97
+ H(m);
97
98
  } else
98
99
  console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
99
100
  } catch (r) {
@@ -101,30 +102,31 @@ const Z = (E) => {
101
102
  } finally {
102
103
  a(!1);
103
104
  }
104
- }, q = {
105
- joinChallenge: H,
106
- loading: v,
107
- isEnrolled: w,
108
- enrolledParticipants: B,
109
- userAchieved: G,
110
- leaderBoardList: j,
111
- showPopup: k,
105
+ }, z = {
106
+ joinChallenge: J,
107
+ loading: w,
108
+ isEnrolled: B,
109
+ enrolledParticipants: T,
110
+ userAchieved: S,
111
+ leaderBoardList: b,
112
+ showPopup: U,
112
113
  setShowPopup: A,
113
- deviceInfo: U
114
+ deviceInfo: x
114
115
  };
115
- return M(() => {
116
- t != null && t.page && (L(), _(), J());
117
- }, [t]), /* @__PURE__ */ F(
118
- K,
116
+ return N(() => {
117
+ t != null && t.page && (L(), _(), q());
118
+ }, [t]), /* @__PURE__ */ K(
119
+ M,
119
120
  {
120
121
  content: t,
121
122
  analytics: D,
122
123
  authoringHelper: C,
123
124
  secondaryArgs: P,
124
- challengeDetails: q
125
+ challengeDetails: z,
126
+ filters: v
125
127
  }
126
128
  );
127
129
  };
128
130
  export {
129
- Z as default
131
+ $ as default
130
132
  };
@@ -1,26 +1,26 @@
1
1
  import { jsx as W } from "react/jsx-runtime";
2
- import { f as X, C as Y } from "./ToggleButton-gVhwVScB.mjs";
2
+ import { f as X, C as Y } from "./ToggleButton-BsGYwVY2.mjs";
3
3
  import { useState as a, useEffect as Z } from "react";
4
- import { f as A, s as c, a as $ } from "./index-DWVcGAGd.mjs";
5
- import { m as V } from "./mutateApi-DUkScX9H.mjs";
4
+ import { C as $, f as _, s as c, a as V } from "./index-BBLW_T02.mjs";
5
+ import { m as R } from "./mutateApi-NyVieJuU.mjs";
6
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, {
7
+ const ae = (T) => {
8
+ var I, P, A;
9
+ const { pageData: s = {}, secondaryArgs: u, userId: y, filters: p } = T || {}, [v, C] = a(!1), [k, S] = a({}), [E, G] = a(0), [b, L] = a([]), [x, j] = a({}), [D, H] = a({}), [M, N] = a({}), w = localStorage.getItem("userId") || y, {
10
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(", "),
11
+ } = u, B = {
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 = (I = s == null ? void 0 : s.settings) == null ? void 0 : I.keywords) == null ? void 0 : P.join(", "),
16
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 = {
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
+ }, O = {
20
20
  isAuthoring: !1
21
- }, F = async (i, n, l, r = "", t = "wellnessevent") => {
21
+ }, q = async (i, n, l, r = "", t = "wellnessevent") => {
22
22
  var e, d, m, g;
23
- const s = await A.getContentSchemaList(
23
+ const o = await _.getContentSchemaList(
24
24
  {
25
25
  searchTerm: r,
26
26
  filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase()
@@ -28,26 +28,26 @@ const re = (p) => {
28
28
  i || "en",
29
29
  n
30
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) => {
31
+ (d = (e = o == null ? void 0 : o.data) == null ? void 0 : e.publish_getContents) != null && d.records ? l((g = (m = o == null ? void 0 : o.data) == null ? void 0 : m.publish_getContents) == null ? void 0 : g.records) : console.error("Something went wrong !");
32
+ }, z = async (i, n, l) => {
33
33
  var r, t;
34
34
  try {
35
- const s = {
35
+ const o = {
36
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 !");
37
+ user_id: w
38
+ }, e = await R.setPersonalGoal(o, 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" ? V("Goal updated successfully!") : n !== "entry" && console.error("Something went wrong !");
40
+ } catch (o) {
41
+ console.error("Error in update goal API:", o), c("Something went wrong, please try after sometime !");
42
42
  }
43
- }, K = async (i = "") => {
43
+ }, F = async (i = "") => {
44
44
  var n, l, r, t;
45
45
  try {
46
- w(!0);
47
- const s = {
46
+ C(!0);
47
+ const o = {
48
48
  date: i,
49
- user_id: S
50
- }, e = await A.fetchPersonalTracker(s, f, h);
49
+ user_id: w
50
+ }, e = await _.fetchPersonalTracker(o, f, h);
51
51
  if (((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0)
52
52
  c((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message);
53
53
  else if ((r = e == null ? void 0 : e.data) != null && r.community_fetchPersonalTracker) {
@@ -55,42 +55,43 @@ const re = (p) => {
55
55
  steps: d,
56
56
  streak_count: m,
57
57
  calories: g,
58
- distance: O,
58
+ distance: K,
59
59
  individual_challenge_detail: Q,
60
60
  individual_challenge_info: U
61
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);
62
+ S(d), G(m), j({ calories: g, distance: K }), H(Q), N(U);
63
63
  } else
64
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({});
65
+ } catch (o) {
66
+ c("Something went wrong !"), console.error("Error in GetPersonalData API:", o), c("Error in GetPersonalData API"), S({});
67
67
  } finally {
68
- w(!1);
68
+ C(!1);
69
69
  }
70
- }, N = {
70
+ }, J = {
71
71
  stepsData: k,
72
72
  loading: v,
73
- updateGoals: J
73
+ updateGoals: z
74
74
  };
75
75
  return Z(() => {
76
- K(X(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), F(f, h, L, "", "challenges");
76
+ F(X(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), q(f, h, L, "", "challenges");
77
77
  }, []), /* @__PURE__ */ W(
78
78
  Y,
79
79
  {
80
- analytics: q,
81
- authoringHelper: z,
80
+ analytics: B,
81
+ authoringHelper: O,
82
82
  secondaryArgs: u,
83
- stepsDetails: N,
83
+ stepsDetails: J,
84
84
  streaksCount: E,
85
85
  data: b,
86
- filters: T,
86
+ filters: p,
87
87
  commonInfo: x,
88
88
  individualChallengeDetail: D,
89
89
  individualChallengeInfo: M,
90
- userId: y
90
+ userId: y,
91
+ constants: $
91
92
  }
92
93
  );
93
94
  };
94
95
  export {
95
- re as default
96
+ ae as default
96
97
  };
@@ -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-DWVcGAGd.mjs";
4
- import { m as $ } from "./mutateApi-DUkScX9H.mjs";
3
+ import { F as M, f as N, s as w } from "./index-BBLW_T02.mjs";
4
+ import { m as $ } from "./mutateApi-NyVieJuU.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-DzxRwN3t.mjs").then((t) => ({
9
+ () => import("./index-L9tb360O.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-DWVcGAGd.mjs";
1
+ import { n as P } from "./index-BBLW_T02.mjs";
2
2
  import v from "react";
3
- import { z as D, F as O } from "./ToggleButton-gVhwVScB.mjs";
3
+ import { z as D, F as O } from "./ToggleButton-BsGYwVY2.mjs";
4
4
  function b(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const o = e[r];
@@ -1,12 +1,12 @@
1
1
  import { jsx as ee } from "react/jsx-runtime";
2
- import { f as te, a as oe } from "./ToggleButton-gVhwVScB.mjs";
2
+ import { f as te, a as oe } from "./ToggleButton-BsGYwVY2.mjs";
3
3
  import { useState as o, useEffect as ae } from "react";
4
- import { f as A, s as i, a as ne } from "./index-DWVcGAGd.mjs";
5
- import { m as se } from "./mutateApi-DUkScX9H.mjs";
4
+ import { C as ne, f as k, s as i, a as se } from "./index-BBLW_T02.mjs";
5
+ import { m as re } from "./mutateApi-NyVieJuU.mjs";
6
6
  import "react-dom";
7
- const k = async (D, d, I, u = "", t = "wellnessevent") => {
7
+ const A = async (D, d, I, u = "", t = "wellnessevent") => {
8
8
  var g, h, n, s;
9
- const a = await A.getContentSchemaList(
9
+ const a = await k.getContentSchemaList(
10
10
  {
11
11
  searchTerm: u,
12
12
  filter: (t == null ? void 0 : t.toLocaleLowerCase()) === "events" ? "wellnessevent" : t == null ? void 0 : t.toLocaleLowerCase(),
@@ -16,7 +16,7 @@ const k = async (D, d, I, u = "", t = "wellnessevent") => {
16
16
  d
17
17
  );
18
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
- }, ge = (D) => {
19
+ }, he = (D) => {
20
20
  const {
21
21
  secondaryArgs: d,
22
22
  prelemAnalyticsProp: I,
@@ -27,7 +27,7 @@ const k = async (D, d, I, u = "", t = "wellnessevent") => {
27
27
  articleData: h
28
28
  } = D || {}, {
29
29
  prelemBaseEndpoint: { language: n, site_host: s }
30
- } = d, [P, y] = o(!1), [L, p] = o({}), [E, C] = o({}), [G, T] = o(0), f = localStorage.getItem("userId") || t, [b, H] = o([]), [x, M] = o([]), [U, j] = o({}), [B, W] = o({}), [q, z] = o({}), [F, J] = o({}), _ = async (v, c, w) => {
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
31
  var l, m;
32
32
  if (!f) {
33
33
  i("User ID is not available. Please log in.");
@@ -37,28 +37,28 @@ const k = async (D, d, I, u = "", t = "wellnessevent") => {
37
37
  const r = {
38
38
  input: { activity_type: w, target: v.toString(), action: c },
39
39
  user_id: f
40
- }, e = await se.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" ? ne("Goal updated successfully!") : c !== "entry" && console.error("Something went wrong !");
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
42
  } catch (r) {
43
43
  console.error("Error in update goal API:", r), i("Something went wrong, please try after sometime !");
44
44
  }
45
- }, S = async (v = "") => {
45
+ }, _ = async (v = "") => {
46
46
  var c, w, l, m;
47
47
  if (!f) {
48
48
  i("User ID is not available. Please log in.");
49
49
  return;
50
50
  }
51
51
  try {
52
- y(!0);
52
+ P(!0);
53
53
  const r = {
54
54
  date: v,
55
55
  user_id: f
56
- }, e = await A.fetchPersonalTracker(r, n, s);
56
+ }, e = await k.fetchPersonalTracker(r, n, s);
57
57
  if (((c = e == null ? void 0 : e.errors) == null ? void 0 : c.length) > 0)
58
58
  i((w = e == null ? void 0 : e.errors[0]) == null ? void 0 : w.message);
59
59
  else if ((l = e == null ? void 0 : e.data) != null && l.community_fetchPersonalTracker) {
60
60
  const {
61
- water_intake: O,
61
+ water_intake: K,
62
62
  steps: Q,
63
63
  streak_count: X,
64
64
  individual_challenge_info: Y,
@@ -67,49 +67,50 @@ const k = async (D, d, I, u = "", t = "wellnessevent") => {
67
67
  device_info: R,
68
68
  individual_challenge_detail: V
69
69
  } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
70
- p(O), C(Q), T(X), j(Y), W({ calories: Z, distance: $ }), z(R), J(V);
70
+ y(K), p(Q), G(X), U(Y), B({ calories: Z, distance: $ }), W(R), z(V);
71
71
  } else
72
72
  console.error("GetPersonalData API failed"), i("GetPersonalData API failed");
73
73
  } catch (r) {
74
- console.error("Error in GetPersonalData API:", r), i("Error in GetPersonalData API"), p({}), C({});
74
+ console.error("Error in GetPersonalData API:", r), i("Error in GetPersonalData API"), y({}), p({});
75
75
  } finally {
76
- y(!1);
76
+ P(!1);
77
77
  }
78
- }, K = {
78
+ }, F = {
79
79
  waterIntakeData: L,
80
- loading: P,
81
- fetchPersonalData: S,
82
- updateGoals: _
83
- }, N = {
84
- stepsData: E,
85
- loading: P,
86
- updateGoals: _
80
+ loading: C,
81
+ fetchPersonalData: _,
82
+ updateGoals: S
83
+ }, J = {
84
+ stepsData: T,
85
+ loading: C,
86
+ updateGoals: S
87
87
  };
88
88
  return ae(() => {
89
- S(te(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), k(n, s, H, "", "challenges"), k(n, s, M, "", "wellnessevent");
89
+ _(te(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), A(n, s, H, "", "challenges"), A(n, s, M, "", "wellnessevent");
90
90
  }, []), /* @__PURE__ */ ee(
91
91
  oe,
92
92
  {
93
93
  analytics: I,
94
94
  authoringHelper: u,
95
95
  secondaryArgs: d,
96
- waterIntakeDetails: K,
97
- stepsDetails: N,
98
- streaksCount: G,
96
+ waterIntakeDetails: F,
97
+ stepsDetails: J,
98
+ streaksCount: E,
99
99
  data: b,
100
100
  eventData: x,
101
101
  articleVodData: h,
102
102
  filters: a,
103
103
  relativePath: g,
104
104
  userId: t,
105
- deviceInfo: q,
106
- individualChallengeInfo: U,
107
- commonInfo: B,
108
- individualChallengeDetail: F
105
+ deviceInfo: O,
106
+ individualChallengeInfo: N,
107
+ commonInfo: j,
108
+ individualChallengeDetail: q,
109
+ constants: ne
109
110
  }
110
111
  );
111
112
  };
112
113
  export {
113
- ge as EngagementHomeComponent,
114
- ge as default
114
+ he as EngagementHomeComponent,
115
+ he as default
115
116
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as U } from "react/jsx-runtime";
2
- import { c as V } from "./ToggleButton-gVhwVScB.mjs";
2
+ import { c as V } from "./ToggleButton-BsGYwVY2.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-DWVcGAGd.mjs";
5
- import { m as z } from "./mutateApi-DUkScX9H.mjs";
4
+ import { f as q, s as d, a as I } from "./index-BBLW_T02.mjs";
5
+ import { m as z } from "./mutateApi-NyVieJuU.mjs";
6
6
  import "react-dom";
7
7
  const Z = (h) => {
8
8
  const {
@@ -1,66 +1,66 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
- import { E as M, f as U } from "./ToggleButton-gVhwVScB.mjs";
3
- import { useState as c, useEffect as j } from "react";
4
- import { s as r, f as B, a as H } from "./index-DWVcGAGd.mjs";
5
- import { m as q } from "./mutateApi-DUkScX9H.mjs";
2
+ import { E as M, f as N } from "./ToggleButton-BsGYwVY2.mjs";
3
+ import { useState as c, useEffect as U } from "react";
4
+ import { C as j, s as n, f as B, a as H } from "./index-BBLW_T02.mjs";
5
+ import { m as O } from "./mutateApi-NyVieJuU.mjs";
6
6
  import "react-dom";
7
- const Q = ({
7
+ const V = ({
8
8
  data: h,
9
9
  prelemAnalyticsProp: y,
10
10
  prelemAuthoringHelper: P,
11
11
  secondaryArgs: f,
12
12
  userId: m,
13
- filters: p,
14
- relativePath: w
13
+ filters: S,
14
+ relativePath: p
15
15
  }) => {
16
- const [I, S] = c({}), [D, E] = c({}), [v, T] = c({}), [_, u] = c(!1), {
16
+ const [w, I] = c({}), [D, T] = c({}), [E, v] = c({}), [C, u] = c(!1), {
17
17
  prelemBaseEndpoint: { language: g, site_host: d }
18
- } = f, s = localStorage.getItem("userId") || m, G = async (l, t, i) => {
18
+ } = f, r = localStorage.getItem("userId") || m, _ = async (l, t, i) => {
19
19
  var a, o;
20
- if (!s) {
21
- r("User ID is not available. Please log in.");
20
+ if (!r) {
21
+ n("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: s
28
- }, n = await q.setPersonalGoal(e, g, d);
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 !");
27
+ user_id: r
28
+ }, s = await O.setPersonalGoal(e, g, d);
29
+ ((o = (a = s == null ? void 0 : s.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), r("Something went wrong, please try after sometime !");
31
+ console.error("Error in update goal API:", e), n("Something went wrong, please try after sometime !");
32
32
  }
33
- }, C = async () => {
33
+ }, G = async () => {
34
34
  var l, t, i, a;
35
- if (!s) {
36
- r("User ID is not available. Please log in.");
35
+ if (!r) {
36
+ n("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
- date: U(/* @__PURE__ */ new Date(), "yyyy-MM-dd"),
43
- user_id: s
42
+ date: N(/* @__PURE__ */ new Date(), "yyyy-MM-dd"),
43
+ user_id: r
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
- r((t = e == null ? void 0 : e.errors[0]) == null ? void 0 : t.message);
46
+ n((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 } = (a = e == null ? void 0 : e.data) == null ? void 0 : a.community_fetchPersonalTracker;
49
- T(n), S(b), E({ calories: k, distance: L });
48
+ const { steps: s, calories: k, distance: L, individual_challenge_info: b } = (a = e == null ? void 0 : e.data) == null ? void 0 : a.community_fetchPersonalTracker;
49
+ v(s), I(b), T({ calories: k, distance: L });
50
50
  } else
51
51
  console.error("GetPersonalData API failed");
52
52
  } catch (o) {
53
- r("Something went wrong !"), console.error("Error in GetPersonalData API:", o);
53
+ n("Something went wrong !"), console.error("Error in GetPersonalData API:", o);
54
54
  } finally {
55
55
  u(!1);
56
56
  }
57
57
  }, A = {
58
- stepsData: v,
59
- loading: _,
60
- updateGoals: G
58
+ stepsData: E,
59
+ loading: C,
60
+ updateGoals: _
61
61
  };
62
- return j(() => {
63
- C();
62
+ return U(() => {
63
+ G();
64
64
  }, []), /* @__PURE__ */ x(
65
65
  M,
66
66
  {
@@ -69,14 +69,15 @@ const Q = ({
69
69
  authoringHelper: P,
70
70
  secondaryArgs: f,
71
71
  stepsDetails: A,
72
- filters: p,
73
- relativePath: w,
74
- individualChallengeInfo: I,
72
+ filters: S,
73
+ relativePath: p,
74
+ individualChallengeInfo: w,
75
75
  commonInfo: D,
76
- userId: m
76
+ userId: m,
77
+ constants: j
77
78
  }
78
79
  );
79
80
  };
80
81
  export {
81
- Q as default
82
+ V as default
82
83
  };
@@ -1,5 +1,5 @@
1
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-gVhwVScB.mjs";
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-BsGYwVY2.mjs";
3
3
  const X = ({
4
4
  content: r,
5
5
  analytics: c,
@@ -1,8 +1,8 @@
1
1
  import { jsx as S } from "react/jsx-runtime";
2
- import "./ToggleButton-gVhwVScB.mjs";
3
- import { E as l } from "./ExperienceZone-BthN8l6e.mjs";
2
+ import "./ToggleButton-BsGYwVY2.mjs";
3
+ import { E as l } from "./ExperienceZone-DezSv2C6.mjs";
4
4
  import { useState as T, useEffect as j } from "react";
5
- import { f as k } from "./index-DWVcGAGd.mjs";
5
+ import { f as k } from "./index-BBLW_T02.mjs";
6
6
  import "react-dom";
7
7
  const z = (h) => {
8
8
  var t, c, r;
@@ -1,6 +1,6 @@
1
- import { n as _ } from "./index-DWVcGAGd.mjs";
1
+ import { n as _ } from "./index-BBLW_T02.mjs";
2
2
  import P from "react";
3
- import { z as g, F as m } from "./ToggleButton-gVhwVScB.mjs";
3
+ import { z as g, F as m } from "./ToggleButton-BsGYwVY2.mjs";
4
4
  function v(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const o = e[r];
@@ -1,6 +1,6 @@
1
- import { n as b } from "./index-DWVcGAGd.mjs";
1
+ import { n as b } from "./index-BBLW_T02.mjs";
2
2
  import _ from "react";
3
- import { z as O, F as A } from "./ToggleButton-gVhwVScB.mjs";
3
+ import { z as O, F as A } from "./ToggleButton-BsGYwVY2.mjs";
4
4
  function R(s, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const i = e[t];