@platform-x/hcltechx-mfe-wrapper 2.0.50 → 2.0.52

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 (38) hide show
  1. package/{ArticleVodList-Bqxg7IhU.mjs → ArticleVodList-Cj_nAPnG.mjs} +380 -138
  2. package/ArticleVodListComponent-COHApmSr.mjs +37 -0
  3. package/{ChallengeDetailComponent-DqAtkTfr.mjs → ChallengeDetailComponent-kF-tb095.mjs} +52 -44
  4. package/CommonContentComponent-F8B9Upz1.mjs +80 -0
  5. package/{DailyMotion-CXUu6PG2.mjs → DailyMotion-0-c2CjmZ.mjs} +3 -3
  6. package/{EngagementHomeComponent-38V_tA69.mjs → EngagementHomeComponent-B6LFyKjA.mjs} +60 -52
  7. package/{EventDetailComponent-BIP4ORuv.mjs → EventDetailComponent-Cl8k2wJl.mjs} +42 -34
  8. package/{EventList-Dl3X73Bh.mjs → EventList-CxFoCi9G.mjs} +1282 -470
  9. package/EventListComponent-C3kGym6X.mjs +93 -0
  10. package/{Facebook-CqkX0iWt.mjs → Facebook-D3mBmxJ4.mjs} +1 -1
  11. package/{FilePlayer-DnO2C4yT.mjs → FilePlayer-ChxlE7Mq.mjs} +3 -3
  12. package/{FilterModal-CcBUM-si.mjs → FilterModal-Co-pXytt.mjs} +211 -82
  13. package/{IndividualChallengeComponent-C7V3IIXr.mjs → IndividualChallengeComponent-lcfNvAG2.mjs} +48 -40
  14. package/{Kaltura-Cv56BaXW.mjs → Kaltura-CVM_RV_2.mjs} +1 -1
  15. package/{Mixcloud-Dl4FADxu.mjs → Mixcloud-CrAs0_VC.mjs} +1 -1
  16. package/{Mux-BOhOsoTR.mjs → Mux-DUOqA2mZ.mjs} +1 -1
  17. package/PageComponent-C1KnYfvg.mjs +101 -0
  18. package/{Preview-DWu7kh4u.mjs → Preview-BAaYuYFo.mjs} +1 -1
  19. package/RecentCarousel-Ijkg2aEl.mjs +342 -0
  20. package/Share-DxWLmWXU.mjs +1938 -0
  21. package/{SoundCloud-Cwhb-VLv.mjs → SoundCloud-CJSQ2ZP7.mjs} +3 -3
  22. package/{Streamable-fhJbKu3n.mjs → Streamable-CcMyPRKJ.mjs} +1 -1
  23. package/{Twitch-Cgt9Rrqo.mjs → Twitch-zIalaDyC.mjs} +4 -4
  24. package/{Vidyard-Zto8uUsP.mjs → Vidyard-DYZnDhS1.mjs} +3 -3
  25. package/{Vimeo-CrH4DAeh.mjs → Vimeo-B9h2Hwv0.mjs} +1 -1
  26. package/{Wistia-BUEAgZNS.mjs → Wistia-iTgHdNz1.mjs} +1 -1
  27. package/{YouTube-CFwrK-Ik.mjs → YouTube-jcHqrx6u.mjs} +15 -15
  28. package/{index-B-14G1yk.mjs → index-CFrb1iB4.mjs} +113475 -102227
  29. package/index-DpnyhOiJ.mjs +1235 -0
  30. package/index.mjs +2 -2
  31. package/package.json +2 -2
  32. package/ArticleVodListComponent-CTkahLKx.mjs +0 -29
  33. package/CommonContentComponent-D-4qdsGD.mjs +0 -72
  34. package/EventListComponent-BtfiiaEJ.mjs +0 -85
  35. package/PageComponent-CoPpBb5X.mjs +0 -73
  36. package/RecentCarousel--5EYC5V8.mjs +0 -247
  37. package/Share-BGwFzMRX.mjs +0 -1578
  38. package/index-AGK0xX7s.mjs +0 -704
@@ -0,0 +1,37 @@
1
+ import { j as s } from "./index-CFrb1iB4.mjs";
2
+ import { A as n } from "./ArticleVodList-Cj_nAPnG.mjs";
3
+ import "react";
4
+ import "react/jsx-runtime";
5
+ import "react-dom";
6
+ import "./FilterModal-Co-pXytt.mjs";
7
+ const x = ({
8
+ data: o,
9
+ prelemAnalyticsProp: r,
10
+ prelemAuthoringHelper: e,
11
+ secondaryArgs: t,
12
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13
+ userId: p,
14
+ filters: i,
15
+ relativePath: m
16
+ }) => /* @__PURE__ */ s.jsxDEV(
17
+ n,
18
+ {
19
+ content: o,
20
+ analytics: r,
21
+ authoringHelper: e,
22
+ secondaryArgs: t,
23
+ filters: i,
24
+ relativePath: m
25
+ },
26
+ void 0,
27
+ !1,
28
+ {
29
+ fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/prelems/Components/ArticleVodListComponent.tsx",
30
+ lineNumber: 14,
31
+ columnNumber: 5
32
+ },
33
+ void 0
34
+ );
35
+ export {
36
+ x as default
37
+ };
@@ -1,19 +1,19 @@
1
- import { jsx as Z } from "react/jsx-runtime";
2
- import { c as $, s as f, a as C, m as R } from "./index-B-14G1yk.mjs";
3
- import { useState as a, useEffect as ee } from "react";
1
+ import { j as Z, c as $, s as f, a as I, m as R } from "./index-CFrb1iB4.mjs";
2
+ import { useState as c, useEffect as ee } from "react";
3
+ import "react/jsx-runtime";
4
4
  import "react-dom";
5
5
  const ne = (T) => {
6
- var B;
6
+ var S;
7
7
  const {
8
8
  pageData: r = {},
9
9
  secondaryArgs: A,
10
- prelemAnalyticsProp: G,
11
- prelemAuthoringHelper: j,
10
+ prelemAnalyticsProp: B,
11
+ prelemAuthoringHelper: D,
12
12
  userId: P,
13
- filters: D
13
+ filters: b
14
14
  } = T || {}, {
15
- prelemBaseEndpoint: { language: h, site_host: m }
16
- } = A, [U, u] = a(!1), [b, w] = a(!1), [k, J] = a(0), [p, x] = a(0), [L, H] = a([]), [K, v] = a(!1), [N, O] = a({}), [q, z] = a("0"), [E, F] = a(0), [M, Q] = a(0), _ = r != null && r.target_type && (r == null ? void 0 : r.target_type) !== "" ? (B = JSON.parse(r == null ? void 0 : r.target_type)[0]) == null ? void 0 : B.label : "steps", d = localStorage.getItem("userId") || P, V = async (c) => {
15
+ prelemBaseEndpoint: { language: g, site_host: h }
16
+ } = A, [j, u] = c(!1), [x, w] = c(!1), [G, k] = c(0), [U, N] = c(0), [L, J] = c([]), [H, v] = c(!1), [K, O] = c({}), [V, q] = c("0"), [E, z] = c(0), [F, M] = c(0), _ = r != null && r.target_type && (r == null ? void 0 : r.target_type) !== "" ? (S = JSON.parse(r == null ? void 0 : r.target_type)[0]) == null ? void 0 : S.label : "steps", d = localStorage.getItem("userId") || P, Q = async (a) => {
17
17
  var n, l, i, o;
18
18
  if (!d) {
19
19
  f("User ID is not available. Please log in.");
@@ -23,18 +23,18 @@ const ne = (T) => {
23
23
  u(!0);
24
24
  const t = {
25
25
  input: {
26
- ...c,
26
+ ...a,
27
27
  userId: d
28
28
  }
29
- }, e = await R.joinChallenge(t, h, m);
30
- ((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message) : (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_joinChallenge) != null && o.id ? (w(!0), await S(), await I(!0), v(!0)) : console.error("Join Challenge API failed");
29
+ }, e = await R.joinChallenge(t, g, h);
30
+ ((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0 ? f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message) : (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_joinChallenge) != null && o.id ? (w(!0), await p(), await C(!0), v(!0)) : console.error("Join Challenge API failed");
31
31
  } catch (t) {
32
32
  console.error("Error in Join Challenge API:", t);
33
33
  } finally {
34
34
  u(!1);
35
35
  }
36
- }, S = async () => {
37
- var c, n, l, i;
36
+ }, p = async () => {
37
+ var a, n, l, i;
38
38
  if (!d) {
39
39
  f("User ID is not available. Please log in.");
40
40
  return;
@@ -50,17 +50,17 @@ const ne = (T) => {
50
50
  challenge_id: r == null ? void 0 : r.page,
51
51
  user_id: localStorage.getItem("userId") || P
52
52
  };
53
- const t = await C.getChallengeDetails(o, h, m);
54
- if (((c = t == null ? void 0 : t.errors) == null ? void 0 : c.length) > 0)
53
+ const t = await I.getChallengeDetails(o, g, h);
54
+ if (((a = t == null ? void 0 : t.errors) == null ? void 0 : a.length) > 0)
55
55
  f((n = t == null ? void 0 : t.errors[0]) == null ? void 0 : n.message);
56
56
  else if ((l = t == null ? void 0 : t.data) != null && l.community_challengesDetail) {
57
57
  const {
58
58
  total_participant: e,
59
- is_joined: g,
59
+ is_joined: m,
60
60
  user_steps: s = 0,
61
61
  total_distance_covered: y = "0"
62
62
  } = (i = t == null ? void 0 : t.data) == null ? void 0 : i.community_challengesDetail;
63
- w(g), J(e), x(s), z(y);
63
+ w(m), k(e), N(s), q(y);
64
64
  } else
65
65
  console.error("GetEventDetails API failed");
66
66
  } catch (o) {
@@ -68,20 +68,20 @@ const ne = (T) => {
68
68
  } finally {
69
69
  u(!1);
70
70
  }
71
- }, I = async (c = !1) => {
71
+ }, C = async (a = !1) => {
72
72
  var n, l, i, o, t;
73
73
  try {
74
74
  u(!0);
75
- const g = {
75
+ const m = {
76
76
  challenge_id: r == null ? void 0 : r.page,
77
77
  user_id: d,
78
- pagination: c ? { start: 0, rows: 10 } : { start: E, rows: 10 }
79
- }, s = await C.getLeaderBoardList(g, h, m);
78
+ pagination: a ? { start: 0, rows: 10 } : { start: E, rows: 10 }
79
+ }, s = await I.getLeaderBoardList(m, g, h);
80
80
  if (((n = s == null ? void 0 : s.errors) == null ? void 0 : n.length) > 0)
81
81
  f((l = s == null ? void 0 : s.errors[0]) == null ? void 0 : l.message);
82
82
  else if ((o = (i = s == null ? void 0 : s.data) == null ? void 0 : i.community_getLeaderBoardList) != null && o.records) {
83
83
  const { records: y, total_count: Y } = (t = s == null ? void 0 : s.data) == null ? void 0 : t.community_getLeaderBoardList;
84
- H(c ? y : [...L, ...y]), F(c ? 10 : E + 10), Q(Y);
84
+ J(a ? y : [...L, ...y]), z(a ? 10 : E + 10), M(Y);
85
85
  } else
86
86
  console.error("GetLeaderBoardList API failed");
87
87
  } catch (e) {
@@ -89,19 +89,19 @@ const ne = (T) => {
89
89
  } finally {
90
90
  u(!1);
91
91
  }
92
- }, W = async (c = "") => {
92
+ }, W = async (a = "") => {
93
93
  var n, l, i, o;
94
94
  try {
95
95
  u(!0);
96
96
  const t = {
97
- date: c,
97
+ date: a,
98
98
  user_id: d
99
- }, e = await C.fetchPersonalTracker(t, h, m);
99
+ }, e = await I.fetchPersonalTracker(t, g, h);
100
100
  if (((n = e == null ? void 0 : e.errors) == null ? void 0 : n.length) > 0)
101
101
  f((l = e == null ? void 0 : e.errors[0]) == null ? void 0 : l.message);
102
102
  else if ((i = e == null ? void 0 : e.data) != null && i.community_fetchPersonalTracker) {
103
- const { device_info: g } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
104
- O(g);
103
+ const { device_info: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
104
+ O(m);
105
105
  } else
106
106
  console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
107
107
  } catch (t) {
@@ -110,31 +110,39 @@ const ne = (T) => {
110
110
  u(!1);
111
111
  }
112
112
  }, X = {
113
- joinChallenge: V,
114
- loading: U,
115
- isEnrolled: b,
116
- enrolledParticipants: k,
117
- userAchieved: p,
113
+ joinChallenge: Q,
114
+ loading: j,
115
+ isEnrolled: x,
116
+ enrolledParticipants: G,
117
+ userAchieved: U,
118
118
  leaderBoardList: L,
119
- showPopup: K,
119
+ showPopup: H,
120
120
  setShowPopup: v,
121
- deviceInfo: N,
122
- userAchievedDistance: q,
123
- totalParticipateCount: M
121
+ deviceInfo: K,
122
+ userAchievedDistance: V,
123
+ totalParticipateCount: F
124
124
  };
125
125
  return ee(() => {
126
- r != null && r.page && (S(), I(), W());
127
- }, [r]), /* @__PURE__ */ Z(
126
+ r != null && r.page && (p(), C(), W());
127
+ }, [r]), /* @__PURE__ */ Z.jsxDEV(
128
128
  $,
129
129
  {
130
130
  content: r,
131
- analytics: G,
132
- authoringHelper: j,
131
+ analytics: B,
132
+ authoringHelper: D,
133
133
  secondaryArgs: A,
134
134
  challengeDetails: X,
135
- filters: D,
136
- getLeaderBoardList: I
137
- }
135
+ filters: b,
136
+ getLeaderBoardList: C
137
+ },
138
+ void 0,
139
+ !1,
140
+ {
141
+ fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/contentTypes/Components/ChallengeDetailComponent.tsx",
142
+ lineNumber: 192,
143
+ columnNumber: 5
144
+ },
145
+ void 0
138
146
  );
139
147
  };
140
148
  export {
@@ -0,0 +1,80 @@
1
+ import { F as N, j, a as L, s as b, m as O } from "./index-CFrb1iB4.mjs";
2
+ import J, { memo as M, useState as g, useEffect as $ } from "react";
3
+ import { M as w } from "./Mapping-DicSeRn3.mjs";
4
+ import "react/jsx-runtime";
5
+ import "react-dom";
6
+ const c = {};
7
+ Object.keys(w).forEach((l) => (c[l] = J.lazy(
8
+ () => import("./index-DpnyhOiJ.mjs").then((o) => ({
9
+ default: o[w[l]]
10
+ }))
11
+ ), c));
12
+ const B = (l) => {
13
+ var d, y, C, h, _, S;
14
+ const { pageData: o = {}, secondaryArgs: m = {}, filters: T, relativePath: v = "" } = l || {}, x = c[(o == null ? void 0 : o.content_type) || (o == null ? void 0 : o.tag_name)] || N, E = {
15
+ pageId: o == null ? void 0 : o.page,
16
+ pageTitle: o == null ? void 0 : o.title,
17
+ pageDesc: o == null ? void 0 : o.description,
18
+ pageTags: (y = (d = o == null ? void 0 : o.settings) == null ? void 0 : d.keywords) == null ? void 0 : y.join(", "),
19
+ isAuthoring: !1,
20
+ isSeoEnabled: (C = o == null ? void 0 : o.settings) == null ? void 0 : C.seo_blockIndexing,
21
+ isAnalyticsEnabled: o == null ? void 0 : o.analytics_enable
22
+ }, k = {
23
+ isModalShow: !0
24
+ }, [p, n] = g(!1), [A, I] = g([]), {
25
+ prelemBaseEndpoint: { site_host: u, language: a }
26
+ } = m, f = async () => {
27
+ var e, s;
28
+ try {
29
+ p || n(!0);
30
+ const t = await L.fetchPoll({ title: o.document_path }, a, u);
31
+ I((s = (e = t.data) == null ? void 0 : e.users_fetchContent) == null ? void 0 : s.options), n(!1);
32
+ } catch (t) {
33
+ n(!1), b(`${t}`);
34
+ }
35
+ }, P = async (e) => {
36
+ var s;
37
+ try {
38
+ n(!0);
39
+ const t = {
40
+ input: {
41
+ pollInfo: { ...e, start_date: "" }
42
+ }
43
+ }, i = await O.savePoll(t, a, u);
44
+ if (n(!1), (s = i == null ? void 0 : i.data) != null && s.users_saveContent) {
45
+ const r = JSON.parse(localStorage.getItem("TakenPoles") || "[]");
46
+ r != null && r.includes(o.page) || localStorage.setItem("TakenPoles", JSON.stringify([...r, o.page])), f();
47
+ }
48
+ } catch (t) {
49
+ n(!1), b(`${t}`);
50
+ }
51
+ };
52
+ return $(() => {
53
+ const e = JSON.parse(localStorage.getItem("TakenPoles") || "[]");
54
+ e != null && e.includes(o == null ? void 0 : o.page) && f();
55
+ }, []), /* @__PURE__ */ j.jsxDEV(
56
+ x,
57
+ {
58
+ content: o,
59
+ analytics: E,
60
+ authoringHelper: k,
61
+ secondaryArgs: m,
62
+ results: ((h = o == null ? void 0 : o.content_type) == null ? void 0 : h.toLowerCase()) === "poll" ? A : void 0,
63
+ onSubmit: ((_ = o == null ? void 0 : o.content_type) == null ? void 0 : _.toLowerCase()) === "poll" ? (e) => P(e) : void 0,
64
+ showLoading: ((S = o == null ? void 0 : o.content_type) == null ? void 0 : S.toLowerCase()) === "poll" ? p : void 0,
65
+ filters: T,
66
+ relativePath: v
67
+ },
68
+ void 0,
69
+ !1,
70
+ {
71
+ fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/contentTypes/Components/CommonContentComponent.tsx",
72
+ lineNumber: 89,
73
+ columnNumber: 5
74
+ },
75
+ void 0
76
+ );
77
+ }, V = M(B);
78
+ export {
79
+ V as default
80
+ };
@@ -1,4 +1,4 @@
1
- import { p as P, $ as v, a0 as D } from "./index-B-14G1yk.mjs";
1
+ import { q as P, a0 as v, a1 as D } from "./index-CFrb1iB4.mjs";
2
2
  import O from "react";
3
3
  function b(t, e) {
4
4
  for (var r = 0; r < e.length; r++) {
@@ -126,10 +126,10 @@ class p extends c.Component {
126
126
  n(p, "displayName", "DailyMotion");
127
127
  n(p, "canPlay", f.canPlay.dailymotion);
128
128
  n(p, "loopOnEnded", !0);
129
- const K = /* @__PURE__ */ P(_), $ = /* @__PURE__ */ b({
129
+ const K = /* @__PURE__ */ P(_), k = /* @__PURE__ */ b({
130
130
  __proto__: null,
131
131
  default: K
132
132
  }, [_]);
133
133
  export {
134
- $ as D
134
+ k as D
135
135
  };
@@ -1,55 +1,55 @@
1
- import { jsx as re } from "react/jsx-runtime";
2
- import { f as le, g as ie, E as ce, C as de, a as E, s as c, m as ge, b as me } from "./index-B-14G1yk.mjs";
1
+ import { f as re, g as le, j as ie, E as ce, C as de, a as k, s as c, m as me, b as ge } from "./index-CFrb1iB4.mjs";
3
2
  import { useState as a, useEffect as ue } from "react";
3
+ import "react/jsx-runtime";
4
4
  import "react-dom";
5
- const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10 }, p = "", l = []) => {
5
+ const C = async (_, u, D, w = "", n = "wellnessevent", P = { start: 0, rows: 10 }, I = "", l = []) => {
6
6
  var s, d, o, f;
7
- const t = await E.getContentSchemaListPagination(
7
+ const t = await k.getContentSchemaListPagination(
8
8
  {
9
9
  searchTerm: w,
10
10
  filter: (n == null ? void 0 : n.toLocaleLowerCase()) === "events" ? "wellnessevent" : n,
11
- conditionString: p,
11
+ conditionString: I,
12
12
  // filterValue?.toLocaleLowerCase() === "wellnessevent" ||
13
13
  // filterValue?.toLocaleLowerCase() === "events"
14
14
  // ? `hclplatformx_public_listing:true` //AND hclplatformx_end_date_time:[${currentDate} TO *]`
15
15
  // : "",
16
16
  exclude: l != null && l.includes("Vod") ? ["Pre Recorded"] : [],
17
- pagination: I,
17
+ pagination: P,
18
18
  contentTypes: l
19
19
  },
20
- D || "en",
20
+ _ || "en",
21
21
  u
22
22
  );
23
- (d = (s = t == null ? void 0 : t.data) == null ? void 0 : s.publish_getContents) != null && d.records ? P((f = (o = t == null ? void 0 : t.data) == null ? void 0 : o.publish_getContents) == null ? void 0 : f.records) : console.error("Something went wrong !");
24
- }, Pe = (D) => {
23
+ (d = (s = t == null ? void 0 : t.data) == null ? void 0 : s.publish_getContents) != null && d.records ? D((f = (o = t == null ? void 0 : t.data) == null ? void 0 : o.publish_getContents) == null ? void 0 : f.records) : console.error("Something went wrong !");
24
+ }, De = (_) => {
25
25
  const {
26
26
  secondaryArgs: u,
27
- prelemAnalyticsProp: P,
27
+ prelemAnalyticsProp: D,
28
28
  prelemAuthoringHelper: w,
29
29
  userId: n,
30
- filters: I,
31
- relativePath: p = "",
30
+ filters: P,
31
+ relativePath: I = "",
32
32
  // articleData,
33
33
  loader: l
34
- } = D || {}, {
34
+ } = _ || {}, {
35
35
  prelemBaseEndpoint: { language: t, site_host: s }
36
- } = u, [d, o] = a(l), [f, C] = a({}), [T, S] = a({}), [G, x] = a(0), h = localStorage.getItem("userId") || n, [b, L] = a([]), [O, H] = a([]), [N, q] = a({}), [M, U] = a({}), [W, j] = a({}), [B, $] = a({}), [z, F] = a({}), [J, K] = a([]), y = async (v, i, _) => {
37
- var g, m;
36
+ } = u, [d, o] = a(l), [f, A] = a({}), [x, S] = a({}), [b, T] = a(0), h = localStorage.getItem("userId") || n, [G, N] = a([]), [L, O] = a([]), [H, j] = a({}), [U, q] = a({}), [M, W] = a({}), [B, $] = a({}), [z, F] = a({}), [J, K] = a([]), y = async (v, i, p) => {
37
+ var m, g;
38
38
  if (!h) {
39
39
  c("User ID is not available. Please log in.");
40
40
  return;
41
41
  }
42
42
  try {
43
43
  const r = {
44
- input: { activity_type: _, target: v.toString(), action: i },
44
+ input: { activity_type: p, target: v.toString(), action: i },
45
45
  user_id: h
46
- }, e = await ge.setPersonalGoal(r, t, s);
47
- ((m = (g = e == null ? void 0 : e.data) == null ? void 0 : g.community_setPersonalGoal) == null ? void 0 : m.message) === "Created Successfully!!!" && i === "goal" ? me("Goal updated successfully!") : i !== "entry" && console.error("Something went wrong !");
46
+ }, e = await me.setPersonalGoal(r, t, s);
47
+ ((g = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_setPersonalGoal) == null ? void 0 : g.message) === "Created Successfully!!!" && i === "goal" ? ge("Goal updated successfully!") : i !== "entry" && console.error("Something went wrong !");
48
48
  } catch (r) {
49
49
  console.error("Error in update goal API:", r), c("Something went wrong, please try after sometime !");
50
50
  }
51
- }, k = async (v = "") => {
52
- var i, _, g, m;
51
+ }, E = async (v = "") => {
52
+ var i, p, m, g;
53
53
  if (!h) {
54
54
  c("User ID is not available. Please log in.");
55
55
  return;
@@ -59,14 +59,14 @@ const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10
59
59
  const r = {
60
60
  date: v,
61
61
  user_id: h
62
- }, e = await E.fetchPersonalTracker(r, t, s);
62
+ }, e = await k.fetchPersonalTracker(r, t, s);
63
63
  if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
64
- c((_ = e == null ? void 0 : e.errors[0]) == null ? void 0 : _.message);
65
- else if ((g = e == null ? void 0 : e.data) != null && g.community_fetchPersonalTracker) {
64
+ c((p = e == null ? void 0 : e.errors[0]) == null ? void 0 : p.message);
65
+ else if ((m = e == null ? void 0 : e.data) != null && m.community_fetchPersonalTracker) {
66
66
  const {
67
- water_intake: Y,
68
- steps: Z,
69
- streak_count: V,
67
+ water_intake: X,
68
+ steps: Y,
69
+ streak_count: Z,
70
70
  individual_challenge_info: R,
71
71
  calories: ee,
72
72
  distance: te,
@@ -74,36 +74,36 @@ const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10
74
74
  individual_challenge_detail: se,
75
75
  past_challenges: ne,
76
76
  pending_request: oe
77
- } = (m = e == null ? void 0 : e.data) == null ? void 0 : m.community_fetchPersonalTracker;
78
- C(Y), S(Z), x(V), q(R), F({ pastChallenges: ne, pendingRequest: oe }), U({ calories: ee, distance: te }), j(ae), $(se), o(!1);
77
+ } = (g = e == null ? void 0 : e.data) == null ? void 0 : g.community_fetchPersonalTracker;
78
+ A(X), S(Y), T(Z), j(R), F({ pastChallenges: ne, pendingRequest: oe }), q({ calories: ee, distance: te }), W(ae), $(se), o(!1);
79
79
  } else
80
80
  console.error("GetPersonalData API failed"), c("GetPersonalData API failed");
81
81
  } catch (r) {
82
- console.error("Error in GetPersonalData API:", r), c("Error in GetPersonalData API"), C({}), S({}), o(!1);
82
+ console.error("Error in GetPersonalData API:", r), c("Error in GetPersonalData API"), A({}), S({}), o(!1);
83
83
  }
84
84
  }, Q = {
85
85
  waterIntakeData: f,
86
86
  loading: d,
87
- fetchPersonalData: k,
87
+ fetchPersonalData: E,
88
88
  updateGoals: y
89
- }, X = {
90
- stepsData: T,
89
+ }, V = {
90
+ stepsData: x,
91
91
  loading: d,
92
92
  updateGoals: y
93
93
  };
94
94
  return ue(() => {
95
- k(le(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), A(
95
+ E(re(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), C(
96
96
  t,
97
97
  s,
98
- L,
98
+ N,
99
99
  "",
100
100
  "challenges",
101
101
  { start: 0, rows: 6 },
102
- `hclplatformx_end_date_time:[${ie()} TO *]`
103
- ), A(
102
+ `hclplatformx_end_date_time:[${le()} TO *]`
103
+ ), C(
104
104
  t,
105
105
  s,
106
- H,
106
+ O,
107
107
  "",
108
108
  "wellnessevent",
109
109
  {
@@ -111,7 +111,7 @@ const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10
111
111
  rows: 12
112
112
  },
113
113
  "hclplatformx_public_listing:true AND ((*:* -hclplatformx_end_date_time: [* TO *]) OR hclplatformx_end_date_time: [NOW TO *])"
114
- ), A(
114
+ ), C(
115
115
  t,
116
116
  s,
117
117
  K,
@@ -121,31 +121,39 @@ const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10
121
121
  "",
122
122
  ["Vod", "Article"]
123
123
  ), o(!0);
124
- }, []), /* @__PURE__ */ re(
124
+ }, []), /* @__PURE__ */ ie.jsxDEV(
125
125
  ce,
126
126
  {
127
- analytics: P,
127
+ analytics: D,
128
128
  authoringHelper: w,
129
129
  secondaryArgs: u,
130
130
  waterIntakeDetails: Q,
131
- stepsDetails: X,
132
- streaksCount: G,
133
- data: b,
134
- eventData: O,
131
+ stepsDetails: V,
132
+ streaksCount: b,
133
+ data: G,
134
+ eventData: L,
135
135
  articleVodData: J,
136
- filters: I,
137
- relativePath: p,
136
+ filters: P,
137
+ relativePath: I,
138
138
  userId: n,
139
- deviceInfo: W,
140
- individualChallengeInfo: N,
141
- commonInfo: M,
139
+ deviceInfo: M,
140
+ individualChallengeInfo: H,
141
+ commonInfo: U,
142
142
  individualChallengeDetail: B,
143
143
  constants: de,
144
144
  pastAndPendingInfo: z
145
- }
145
+ },
146
+ void 0,
147
+ !1,
148
+ {
149
+ fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/prelems/Components/EngagementHomeComponent.tsx",
150
+ lineNumber: 206,
151
+ columnNumber: 5
152
+ },
153
+ void 0
146
154
  );
147
155
  };
148
156
  export {
149
- Pe as EngagementHomeComponent,
150
- Pe as default
157
+ De as EngagementHomeComponent,
158
+ De as default
151
159
  };
@@ -1,21 +1,21 @@
1
- import { jsx as U } from "react/jsx-runtime";
2
- import { d as V, a as q, s as d, b as I, m as z } from "./index-B-14G1yk.mjs";
3
- import { useState as a, useEffect as F } from "react";
1
+ import { j as U, d as V, a as B, s as d, b as I, m as M } from "./index-CFrb1iB4.mjs";
2
+ import { useState as a, useEffect as q } from "react";
3
+ import "react/jsx-runtime";
4
4
  import "react-dom";
5
- const Y = (h) => {
5
+ const X = (h) => {
6
6
  const {
7
7
  pageData: t = {},
8
- secondaryArgs: g,
8
+ secondaryArgs: v,
9
9
  prelemAnalyticsProp: S,
10
10
  prelemAuthoringHelper: A,
11
11
  userId: P,
12
12
  filters: w,
13
- relativePath: j = ""
13
+ relativePath: b = ""
14
14
  } = h || {}, {
15
- prelemBaseEndpoint: { language: v, site_host: _ }
16
- } = g, [T, m] = a(!1), [b, y] = a(!1), [k, L] = a(0), u = localStorage.getItem("userId") || P, [x, D] = a(""), [G, H] = a(!1), J = {
15
+ prelemBaseEndpoint: { language: g, site_host: _ }
16
+ } = v, [j, m] = a(!1), [p, E] = a(!1), [x, k] = a(0), u = localStorage.getItem("userId") || P, [D, T] = a(""), [C, L] = a(!1), N = {
17
17
  joinEvent: async (f) => {
18
- var r, s, i, o, l, c;
18
+ var s, r, i, o, l, c;
19
19
  if (!u) {
20
20
  d("User ID is not available. Please log in.");
21
21
  return;
@@ -27,21 +27,21 @@ const Y = (h) => {
27
27
  ...f,
28
28
  userId: u
29
29
  }
30
- }, e = await z.joinEvent(n, v, _);
31
- ((r = e == null ? void 0 : e.errors) == null ? void 0 : r.length) > 0 ? d((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message) : (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_userRegistration) != null && o.id ? (I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_userRegistration) == null ? void 0 : c.message), y(!0), E()) : console.error("Join Event API failed");
30
+ }, e = await M.joinEvent(n, g, _);
31
+ ((s = e == null ? void 0 : e.errors) == null ? void 0 : s.length) > 0 ? d((r = e == null ? void 0 : e.errors[0]) == null ? void 0 : r.message) : (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.community_userRegistration) != null && o.id ? (I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_userRegistration) == null ? void 0 : c.message), E(!0), y()) : console.error("Join Event API failed");
32
32
  } catch (n) {
33
33
  console.error("Error in Join Event API:", n);
34
34
  } finally {
35
35
  m(!1);
36
36
  }
37
37
  },
38
- loading: T,
39
- isRegistered: b,
40
- registeredParticipants: k,
41
- meetingLink: x,
42
- isStarted: G
43
- }, E = async () => {
44
- var f, r, s, i, o, l, c;
38
+ loading: j,
39
+ isRegistered: p,
40
+ registeredParticipants: x,
41
+ meetingLink: D,
42
+ isStarted: C
43
+ }, y = async () => {
44
+ var f, s, r, i, o, l, c;
45
45
  try {
46
46
  m(!0);
47
47
  const n = (f = t == null ? void 0 : t.event_type) != null && f.includes("Virtual") ? {
@@ -55,17 +55,17 @@ const Y = (h) => {
55
55
  } : {
56
56
  event_id: t == null ? void 0 : t.page,
57
57
  user_id: u
58
- }, e = await q.getEventDetails(n, v, _);
59
- if (((r = e == null ? void 0 : e.errors) == null ? void 0 : r.length) > 0)
60
- d((s = e == null ? void 0 : e.errors[0]) == null ? void 0 : s.message);
58
+ }, e = await B.getEventDetails(n, g, _);
59
+ if (((s = e == null ? void 0 : e.errors) == null ? void 0 : s.length) > 0)
60
+ d((r = e == null ? void 0 : e.errors[0]) == null ? void 0 : r.message);
61
61
  else if ((i = e == null ? void 0 : e.data) != null && i.community_eventDetails) {
62
62
  const {
63
- total_participant: O,
64
- is_joined: B,
65
- meeting_link: C = "",
66
- is_started: M = !1
63
+ total_participant: G,
64
+ is_joined: H,
65
+ meeting_link: J = "",
66
+ is_started: O = !1
67
67
  } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_eventDetails;
68
- I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails) == null ? void 0 : c.message), y(B), L(O), D(C), H(M);
68
+ I((c = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails) == null ? void 0 : c.message), E(H), k(G), T(J), L(O);
69
69
  } else
70
70
  console.error("GetEventDetails API failed");
71
71
  } catch (n) {
@@ -74,21 +74,29 @@ const Y = (h) => {
74
74
  m(!1);
75
75
  }
76
76
  };
77
- return F(() => {
78
- t != null && t.page && E();
79
- }, [t]), /* @__PURE__ */ U(
77
+ return q(() => {
78
+ t != null && t.page && y();
79
+ }, [t]), /* @__PURE__ */ U.jsxDEV(
80
80
  V,
81
81
  {
82
82
  content: t,
83
83
  analytics: S,
84
84
  authoringHelper: A,
85
- secondaryArgs: g,
86
- eventDetails: J,
85
+ secondaryArgs: v,
86
+ eventDetails: N,
87
87
  filters: w,
88
- relativePath: j
89
- }
88
+ relativePath: b
89
+ },
90
+ void 0,
91
+ !1,
92
+ {
93
+ fileName: "C:/Users/kollatimurali.k/agora-poc/platformx-mono-repo-nx/libs/hc-wrapper/src/lib/contentTypes/Components/EventDetailComponent.tsx",
94
+ lineNumber: 119,
95
+ columnNumber: 5
96
+ },
97
+ void 0
90
98
  );
91
99
  };
92
100
  export {
93
- Y as default
101
+ X as default
94
102
  };