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

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-CqQsDAeB.mjs → ArticleVodListComponent-CMEie9a_.mjs} +2 -2
  2. package/{ChallengeDetailComponent-CdzrfzMT.mjs → ChallengeDetailComponent-CuwjZMPf.mjs} +23 -23
  3. package/{ChallengeSliderComponent-B4xfxTHD.mjs → ChallengeSliderComponent-6JvFKito.mjs} +3 -3
  4. package/{CommonContentComponent-CYrypJzo.mjs → CommonContentComponent-DRJ5iDKk.mjs} +3 -3
  5. package/{DailyMotion-BgUgc-uC.mjs → DailyMotion-D1Gzjs6b.mjs} +2 -2
  6. package/EngagementHomeComponent-DXSsi6al.mjs +115 -0
  7. package/{EventDetailComponent-cP1ocbbz.mjs → EventDetailComponent-C7Gm4HK4.mjs} +3 -3
  8. package/{EventListComponent-CFkB92kq.mjs → EventListComponent-B2i90d0d.mjs} +3 -3
  9. package/{ExperienceZone-nB2GYDKU.mjs → ExperienceZone-BthN8l6e.mjs} +1 -1
  10. package/ExperienceZoneComponent-B3XLXdgz.mjs +49 -0
  11. package/{Facebook-DbGKo3Xs.mjs → Facebook-C2Q7fzor.mjs} +2 -2
  12. package/{FilePlayer-C1Z3KFfo.mjs → FilePlayer-DsljmHEG.mjs} +2 -2
  13. package/{IndividualChallengeComponent-ozvpsaGX.mjs → IndividualChallengeComponent-zcLcep5M.mjs} +3 -3
  14. package/{Kaltura-BrbWvIAE.mjs → Kaltura-DOjmzCCF.mjs} +2 -2
  15. package/{Mixcloud-B-pI6TMk.mjs → Mixcloud-B0VsdJHn.mjs} +2 -2
  16. package/{Mux-D8w5PpGs.mjs → Mux-Cfyj7TvM.mjs} +2 -2
  17. package/{PageComponent-DAtZxXGd.mjs → PageComponent-DALylcTo.mjs} +2 -2
  18. package/{Preview-G2O2o9Zu.mjs → Preview-jio1mn2o.mjs} +1 -1
  19. package/{RecentCarousel-CeXyec_d.mjs → RecentCarousel-Ch4RVb0P.mjs} +37 -32
  20. package/{Share-ZXoBoOaE.mjs → Share-BDSlb37Z.mjs} +2 -2
  21. package/{SoundCloud--jwG7GcC.mjs → SoundCloud-Cr9HgRwr.mjs} +2 -2
  22. package/{Streamable-K-Bxu1f0.mjs → Streamable-BZnPiOgH.mjs} +2 -2
  23. package/{ToggleButton-SofBX2SF.mjs → ToggleButton-gVhwVScB.mjs} +10684 -10630
  24. package/{Twitch-gqHapzR7.mjs → Twitch-C50LModg.mjs} +2 -2
  25. package/{Vidyard-DFl0dZN8.mjs → Vidyard-BJhZeW5Y.mjs} +2 -2
  26. package/{Vimeo-sjf6JizB.mjs → Vimeo-Bl0wDJTK.mjs} +2 -2
  27. package/{Wistia-Dpseemrn.mjs → Wistia-BruGOWkp.mjs} +2 -2
  28. package/{YouTube-ClVj4Mya.mjs → YouTube-BgK1Fcr9.mjs} +2 -2
  29. package/{index-DwB299XC.mjs → index-DWVcGAGd.mjs} +171 -169
  30. package/{index-CyeNNRJS.mjs → index-DzxRwN3t.mjs} +3 -3
  31. package/index.mjs +1 -1
  32. package/lib/services/fetchQueries.d.ts +1 -1
  33. package/{mutateApi-skbGlOVi.mjs → mutateApi-DUkScX9H.mjs} +1 -1
  34. package/package.json +1 -1
  35. package/style.css +1 -1
  36. package/EngagementHomeComponent-JknT0GlC.mjs +0 -114
  37. package/ExperienceZoneComponent-DGJtMIS4.mjs +0 -48
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { A as p } from "./ToggleButton-SofBX2SF.mjs";
2
+ import { A as p } from "./ToggleButton-gVhwVScB.mjs";
3
3
  import "react";
4
- import "./index-DwB299XC.mjs";
4
+ import "./index-DWVcGAGd.mjs";
5
5
  import "react-dom";
6
6
  const f = ({
7
7
  data: t,
@@ -1,19 +1,19 @@
1
1
  import { jsx as F } from "react/jsx-runtime";
2
- import { b as K } from "./ToggleButton-SofBX2SF.mjs";
2
+ import { b as K } from "./ToggleButton-gVhwVScB.mjs";
3
3
  import { useState as c, useEffect as M } from "react";
4
- import { s as f, f as u } from "./index-DwB299XC.mjs";
5
- import { m as N } from "./mutateApi-skbGlOVi.mjs";
4
+ import { s as f, f as u } from "./index-DWVcGAGd.mjs";
5
+ import { m as N } from "./mutateApi-DUkScX9H.mjs";
6
6
  import "react-dom";
7
- const Z = (_) => {
7
+ const Z = (E) => {
8
8
  const {
9
9
  pageData: t = {},
10
10
  secondaryArgs: P,
11
- prelemAnalyticsProp: E,
12
- prelemAuthoringHelper: D,
11
+ prelemAnalyticsProp: D,
12
+ prelemAuthoringHelper: C,
13
13
  userId: y
14
- } = _ || {}, {
14
+ } = E || {}, {
15
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) => {
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
17
  var n, s, l, o;
18
18
  if (!g) {
19
19
  f("User ID is not available. Please log in.");
@@ -27,7 +27,7 @@ const Z = (_) => {
27
27
  userId: g
28
28
  }
29
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");
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), await L(), await _(), 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 {
@@ -53,7 +53,7 @@ const Z = (_) => {
53
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(m), T(e), G(z);
56
+ I(m), T(e), S(z);
57
57
  } else
58
58
  console.error("GetEventDetails API failed");
59
59
  } catch (o) {
@@ -61,7 +61,7 @@ const Z = (_) => {
61
61
  } finally {
62
62
  a(!1);
63
63
  }
64
- }, H = async () => {
64
+ }, _ = async () => {
65
65
  var i, n, s, l, o;
66
66
  try {
67
67
  a(!0);
@@ -73,7 +73,7 @@ const Z = (_) => {
73
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
75
  const { records: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_getLeaderBoardList;
76
- j(m);
76
+ b(m);
77
77
  } else
78
78
  console.error("GetLeaderBoardList API failed");
79
79
  } catch (r) {
@@ -93,7 +93,7 @@ const Z = (_) => {
93
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
95
  const { device_info: m } = (o = e == null ? void 0 : e.data) == null ? void 0 : o.community_fetchPersonalTracker;
96
- U(m);
96
+ x(m);
97
97
  } else
98
98
  console.error("GetPersonalData API failed"), f("GetPersonalData API failed");
99
99
  } catch (r) {
@@ -102,24 +102,24 @@ const Z = (_) => {
102
102
  a(!1);
103
103
  }
104
104
  }, q = {
105
- joinChallenge: x,
106
- loading: C,
107
- isEnrolled: v,
105
+ joinChallenge: H,
106
+ loading: v,
107
+ isEnrolled: w,
108
108
  enrolledParticipants: B,
109
- userAchieved: w,
110
- leaderBoardList: S,
111
- showPopup: b,
109
+ userAchieved: G,
110
+ leaderBoardList: j,
111
+ showPopup: k,
112
112
  setShowPopup: A,
113
- deviceInfo: k
113
+ deviceInfo: U
114
114
  };
115
115
  return M(() => {
116
- t != null && t.page && (L(), H(), J());
116
+ t != null && t.page && (L(), _(), J());
117
117
  }, [t]), /* @__PURE__ */ F(
118
118
  K,
119
119
  {
120
120
  content: t,
121
- analytics: E,
122
- authoringHelper: D,
121
+ analytics: D,
122
+ authoringHelper: C,
123
123
  secondaryArgs: P,
124
124
  challengeDetails: q
125
125
  }
@@ -1,8 +1,8 @@
1
1
  import { jsx as W } from "react/jsx-runtime";
2
- import { f as X, C as Y } from "./ToggleButton-SofBX2SF.mjs";
2
+ import { f as X, C as Y } from "./ToggleButton-gVhwVScB.mjs";
3
3
  import { useState as a, useEffect as Z } from "react";
4
- import { f as A, s as c, a as $ } from "./index-DwB299XC.mjs";
5
- import { m as V } from "./mutateApi-skbGlOVi.mjs";
4
+ import { f as A, s as c, a as $ } from "./index-DWVcGAGd.mjs";
5
+ import { m as V } from "./mutateApi-DUkScX9H.mjs";
6
6
  import "react-dom";
7
7
  const re = (p) => {
8
8
  var I, P, _;
@@ -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-DwB299XC.mjs";
4
- import { m as $ } from "./mutateApi-skbGlOVi.mjs";
3
+ import { F as M, f as N, s as w } from "./index-DWVcGAGd.mjs";
4
+ import { m as $ } from "./mutateApi-DUkScX9H.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-CyeNNRJS.mjs").then((t) => ({
9
+ () => import("./index-DzxRwN3t.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-DwB299XC.mjs";
1
+ import { n as P } from "./index-DWVcGAGd.mjs";
2
2
  import v from "react";
3
- import { z as D, F as O } from "./ToggleButton-SofBX2SF.mjs";
3
+ import { z as D, F as O } from "./ToggleButton-gVhwVScB.mjs";
4
4
  function b(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const o = e[r];
@@ -0,0 +1,115 @@
1
+ import { jsx as ee } from "react/jsx-runtime";
2
+ import { f as te, a as oe } from "./ToggleButton-gVhwVScB.mjs";
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";
6
+ import "react-dom";
7
+ const k = async (D, d, I, u = "", t = "wellnessevent") => {
8
+ var g, h, n, s;
9
+ const a = await A.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
+ }, ge = (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, [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) => {
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 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 !");
42
+ } catch (r) {
43
+ console.error("Error in update goal API:", r), i("Something went wrong, please try after sometime !");
44
+ }
45
+ }, S = 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
+ y(!0);
53
+ const r = {
54
+ date: v,
55
+ user_id: f
56
+ }, e = await A.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: O,
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
+ p(O), C(Q), T(X), j(Y), W({ calories: Z, distance: $ }), z(R), J(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"), p({}), C({});
75
+ } finally {
76
+ y(!1);
77
+ }
78
+ }, K = {
79
+ waterIntakeData: L,
80
+ loading: P,
81
+ fetchPersonalData: S,
82
+ updateGoals: _
83
+ }, N = {
84
+ stepsData: E,
85
+ loading: P,
86
+ updateGoals: _
87
+ };
88
+ return ae(() => {
89
+ S(te(/* @__PURE__ */ new Date(), "yyyy-MM-dd")), k(n, s, H, "", "challenges"), k(n, s, M, "", "wellnessevent");
90
+ }, []), /* @__PURE__ */ ee(
91
+ oe,
92
+ {
93
+ analytics: I,
94
+ authoringHelper: u,
95
+ secondaryArgs: d,
96
+ waterIntakeDetails: K,
97
+ stepsDetails: N,
98
+ streaksCount: G,
99
+ data: b,
100
+ eventData: x,
101
+ articleVodData: h,
102
+ filters: a,
103
+ relativePath: g,
104
+ userId: t,
105
+ deviceInfo: q,
106
+ individualChallengeInfo: U,
107
+ commonInfo: B,
108
+ individualChallengeDetail: F
109
+ }
110
+ );
111
+ };
112
+ export {
113
+ ge as EngagementHomeComponent,
114
+ ge as default
115
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as U } from "react/jsx-runtime";
2
- import { c as V } from "./ToggleButton-SofBX2SF.mjs";
2
+ import { c as V } from "./ToggleButton-gVhwVScB.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-DwB299XC.mjs";
5
- import { m as z } from "./mutateApi-skbGlOVi.mjs";
4
+ import { f as q, s as d, a as I } from "./index-DWVcGAGd.mjs";
5
+ import { m as z } from "./mutateApi-DUkScX9H.mjs";
6
6
  import "react-dom";
7
7
  const Z = (h) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
- import { E as M, f as U } from "./ToggleButton-SofBX2SF.mjs";
2
+ import { E as M, f as U } from "./ToggleButton-gVhwVScB.mjs";
3
3
  import { useState as c, useEffect as j } from "react";
4
- import { s as r, f as B, a as H } from "./index-DwB299XC.mjs";
5
- import { m as q } from "./mutateApi-skbGlOVi.mjs";
4
+ import { s as r, f as B, a as H } from "./index-DWVcGAGd.mjs";
5
+ import { m as q } from "./mutateApi-DUkScX9H.mjs";
6
6
  import "react-dom";
7
7
  const Q = ({
8
8
  data: h,
@@ -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-SofBX2SF.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-gVhwVScB.mjs";
3
3
  const X = ({
4
4
  content: r,
5
5
  analytics: c,
@@ -0,0 +1,49 @@
1
+ import { jsx as S } from "react/jsx-runtime";
2
+ import "./ToggleButton-gVhwVScB.mjs";
3
+ import { E as l } from "./ExperienceZone-BthN8l6e.mjs";
4
+ import { useState as T, useEffect as j } from "react";
5
+ import { f as k } from "./index-DWVcGAGd.mjs";
6
+ import "react-dom";
7
+ const z = (h) => {
8
+ var t, c, r;
9
+ const { pageData: s = {}, secondaryArgs: e, filters: g } = h || {}, [w, C] = T([]), {
10
+ prelemBaseEndpoint: { site_host: L, language: v }
11
+ } = e, E = {
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: (c = (t = s == null ? void 0 : s.settings) == null ? void 0 : t.keywords) == null ? void 0 : c.join(", "),
16
+ isAuthoring: !1,
17
+ isSeoEnabled: (r = s == null ? void 0 : s.settings) == null ? void 0 : r.seo_blockIndexing,
18
+ isAnalyticsEnabled: s == null ? void 0 : s.analytics_enable
19
+ }, b = {
20
+ isAuthoring: !1
21
+ }, y = async (A, _, x = "", n = "wellnessevent") => {
22
+ var i, m, d, p;
23
+ const o = await k.getContentSchemaList(
24
+ {
25
+ searchTerm: x,
26
+ filter: (n == null ? void 0 : n.toLocaleLowerCase()) === "events" ? "wellnessevent" : n == null ? void 0 : n.toLocaleLowerCase(),
27
+ conditionString: (n == null ? void 0 : n.toLocaleLowerCase()) === "wellnessevent" || (n == null ? void 0 : n.toLocaleLowerCase()) === "events" ? "hclplatformx_public_listing:true" : ""
28
+ },
29
+ A || "en",
30
+ L
31
+ );
32
+ (m = (i = o == null ? void 0 : o.data) == null ? void 0 : i.publish_getContents) != null && m.records ? _((p = (d = o == null ? void 0 : o.data) == null ? void 0 : d.publish_getContents) == null ? void 0 : p.records) : console.error("Something went wrong !");
33
+ };
34
+ return j(() => {
35
+ y(v, C, "", "wellnessevent");
36
+ }, []), /* @__PURE__ */ S(
37
+ l,
38
+ {
39
+ analytics: E,
40
+ authoringHelper: b,
41
+ secondaryArgs: e,
42
+ eventData: w,
43
+ filters: g
44
+ }
45
+ );
46
+ };
47
+ export {
48
+ z as default
49
+ };
@@ -1,6 +1,6 @@
1
- import { n as _ } from "./index-DwB299XC.mjs";
1
+ import { n as _ } from "./index-DWVcGAGd.mjs";
2
2
  import P from "react";
3
- import { z as g, F as m } from "./ToggleButton-SofBX2SF.mjs";
3
+ import { z as g, F as m } from "./ToggleButton-gVhwVScB.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-DwB299XC.mjs";
1
+ import { n as b } from "./index-DWVcGAGd.mjs";
2
2
  import _ from "react";
3
- import { z as O, F as A } from "./ToggleButton-SofBX2SF.mjs";
3
+ import { z as O, F as A } from "./ToggleButton-gVhwVScB.mjs";
4
4
  function R(s, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const i = e[t];
@@ -1,8 +1,8 @@
1
1
  import { jsx as se } from "react/jsx-runtime";
2
- import { I as ne } from "./ToggleButton-SofBX2SF.mjs";
2
+ import { I as ne } from "./ToggleButton-gVhwVScB.mjs";
3
3
  import { useState as u, useEffect as oe } from "react";
4
- import { f as L, s as d, a as w } from "./index-DwB299XC.mjs";
5
- import { m as G } from "./mutateApi-skbGlOVi.mjs";
4
+ import { f as L, s as d, a as w } from "./index-DWVcGAGd.mjs";
5
+ import { m as G } from "./mutateApi-DUkScX9H.mjs";
6
6
  import "react-dom";
7
7
  const de = (T) => {
8
8
  const {
@@ -1,6 +1,6 @@
1
- import { n as f } from "./index-DwB299XC.mjs";
1
+ import { n as f } from "./index-DWVcGAGd.mjs";
2
2
  import y from "react";
3
- import { z as _, F as m } from "./ToggleButton-SofBX2SF.mjs";
3
+ import { z as _, F as m } from "./ToggleButton-gVhwVScB.mjs";
4
4
  function P(r, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const o = e[t];
@@ -1,6 +1,6 @@
1
- import { n as f } from "./index-DwB299XC.mjs";
1
+ import { n as f } from "./index-DWVcGAGd.mjs";
2
2
  import y from "react";
3
- import { z as m, F as g } from "./ToggleButton-SofBX2SF.mjs";
3
+ import { z as m, F as g } from "./ToggleButton-gVhwVScB.mjs";
4
4
  function v(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const s = e[r];
@@ -1,6 +1,6 @@
1
- import { n as P } from "./index-DwB299XC.mjs";
1
+ import { n as P } from "./index-DWVcGAGd.mjs";
2
2
  import g from "react";
3
- import { F as E } from "./ToggleButton-SofBX2SF.mjs";
3
+ import { F as E } from "./ToggleButton-gVhwVScB.mjs";
4
4
  function b(r, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const i = e[t];
@@ -1,11 +1,11 @@
1
1
  import { jsx as s, Fragment as I } from "react/jsx-runtime";
2
- import { c as S } from "./index-DwB299XC.mjs";
2
+ import { c as S } from "./index-DWVcGAGd.mjs";
3
3
  import B from "react";
4
4
  import { M as b } from "./Mapping-jqmNMEpL.mjs";
5
5
  import "react-dom";
6
6
  const P = {};
7
7
  Object.keys(b).forEach((o) => (P[o] = B.lazy(
8
- () => import("./index-CyeNNRJS.mjs").then((n) => ({
8
+ () => import("./index-DzxRwN3t.mjs").then((n) => ({
9
9
  default: n[b[o]]
10
10
  }))
11
11
  ), P));
@@ -1,4 +1,4 @@
1
- import { n as y } from "./index-DwB299XC.mjs";
1
+ import { n as y } from "./index-DWVcGAGd.mjs";
2
2
  import v from "react";
3
3
  function w(r, e) {
4
4
  for (var t = 0; t < e.length; t++) {
@@ -1,23 +1,23 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { m as D, B as o, T as c, o as w, p as V, q as T, g as z, t as F, V as H, P as M, u as U, v as j, w as $, x as P, y as q } from "./ToggleButton-SofBX2SF.mjs";
2
+ import { m as D, B as o, T as c, o as w, p as V, q as T, g as z, t as F, V as H, P as M, u as U, v as j, w as $, x as P, y as q } from "./ToggleButton-gVhwVScB.mjs";
3
3
  import O, { useState as Y, useEffect as G } from "react";
4
- import { o as J } from "./index-DwB299XC.mjs";
4
+ import { o as J } from "./index-DWVcGAGd.mjs";
5
5
  import "react-dom";
6
6
  const K = D(() => {
7
- const a = J();
7
+ const r = J();
8
8
  return {
9
9
  recentCardsWrapper: {
10
10
  "&.recentCardsBg": {
11
11
  width: "100%",
12
12
  overflow: "hidden",
13
- [a.breakpoints.up("xs")]: {
13
+ [r.breakpoints.up("xs")]: {
14
14
  marginBottom: 0
15
15
  },
16
16
  "& .PX-TopHeading": {
17
17
  padding: "15px",
18
- background: a.palette.prelemType2.ACCENTS.VARIANT6.TITLE,
19
- borderTopRightRadius: a.borderRadius.value,
20
- borderTopLeftRadius: a.borderRadius.value,
18
+ background: r.palette.prelemType2.ACCENTS.VARIANT6.TITLE,
19
+ borderTopRightRadius: r.borderRadius.value,
20
+ borderTopLeftRadius: r.borderRadius.value,
21
21
  "& h5": {
22
22
  margin: 0,
23
23
  color: "#fff"
@@ -27,20 +27,20 @@ const K = D(() => {
27
27
  border: "1px solid #D1D1D1",
28
28
  paddingBottom: "15px",
29
29
  borderTop: "0",
30
- borderBottomRightRadius: a.borderRadius.value,
31
- borderBottomLeftRadius: a.borderRadius.value,
30
+ borderBottomRightRadius: r.borderRadius.value,
31
+ borderBottomLeftRadius: r.borderRadius.value,
32
32
  "& .PX-InnerBox": {
33
33
  padding: "15px",
34
34
  borderTop: "0",
35
- borderBottomRightRadius: a.borderRadius.value,
36
- borderBottomLeftRadius: a.borderRadius.value,
35
+ borderBottomRightRadius: r.borderRadius.value,
36
+ borderBottomLeftRadius: r.borderRadius.value,
37
37
  overflowY: "auto",
38
38
  maxHeight: "700px",
39
39
  "& .PX-CardWp": {
40
40
  display: "flex",
41
41
  border: "1px solid #E8E8E8",
42
42
  padding: "10px",
43
- borderRadius: a.borderRadius.value,
43
+ borderRadius: r.borderRadius.value,
44
44
  marginBottom: "10px",
45
45
  cursor: "pointer",
46
46
  "& .PX-MediaWp": {
@@ -50,17 +50,22 @@ const K = D(() => {
50
50
  maxWidth: "160px",
51
51
  maxHeight: "108px",
52
52
  position: "relative",
53
- [a.breakpoints.down("lg")]: {
53
+ [r.breakpoints.down("xl")]: {
54
54
  minWidth: "90px",
55
55
  marginRight: "10px",
56
56
  maxWidth: "90px"
57
57
  },
58
- [a.breakpoints.down("em")]: {
58
+ [r.breakpoints.down("lg")]: {
59
+ minWidth: "90px",
60
+ marginRight: "10px",
61
+ maxWidth: "90px"
62
+ },
63
+ [r.breakpoints.down("em")]: {
59
64
  minWidth: "150px",
60
65
  marginRight: "10px",
61
66
  maxWidth: "150px"
62
67
  },
63
- [a.breakpoints.down("em")]: {
68
+ [r.breakpoints.down("em")]: {
64
69
  minWidth: "90px",
65
70
  marginRight: "10px",
66
71
  maxWidth: "90px"
@@ -104,10 +109,10 @@ const K = D(() => {
104
109
  "& .readmoreCta": {
105
110
  display: "inline-flex",
106
111
  alignItems: "center",
107
- color: a.palette.prelemType3.CARDS.VARIANT1.TITLE,
112
+ color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
108
113
  textDecoration: "none",
109
114
  "& h6": {
110
- color: a.palette.prelemType3.CARDS.VARIANT1.TITLE,
115
+ color: r.palette.prelemType3.CARDS.VARIANT1.TITLE,
111
116
  display: "inline-block",
112
117
  margin: 0
113
118
  },
@@ -123,11 +128,11 @@ const K = D(() => {
123
128
  }
124
129
  }
125
130
  };
126
- }), te = ({ isVideoLandingPage: a, data: x, secondaryArgs: n, filters: W }) => {
127
- const B = n == null ? void 0 : n.platform, k = K(), { gcpUrl: d, bucketName: s } = n, [I, N] = Y([]), b = (r) => {
128
- j(r, W, n);
129
- }, X = (r) => {
130
- B !== "isAuthoring" && b(r);
131
+ }), te = ({ isVideoLandingPage: r, data: x, secondaryArgs: n, filters: W }) => {
132
+ const k = n == null ? void 0 : n.platform, B = K(), { gcpUrl: d, bucketName: s } = n, [I, N] = Y([]), b = (a) => {
133
+ j(a, W, n);
134
+ }, X = (a) => {
135
+ k !== "isAuthoring" && b(a);
131
136
  }, E = {
132
137
  dotPosition: "outside",
133
138
  arrows: !1,
@@ -139,25 +144,25 @@ const K = D(() => {
139
144
  xs: 1
140
145
  }
141
146
  }, R = () => {
142
- const r = $(x, E.itemsPerRow);
143
- r && N(r);
147
+ const a = $(x, E.itemsPerRow);
148
+ a && N(a);
144
149
  }, y = q(R, 100);
145
150
  G(() => {
146
151
  R();
147
- const r = () => {
152
+ const a = () => {
148
153
  y();
149
154
  };
150
- return window.addEventListener("resize", r), () => {
151
- window.removeEventListener("resize", r);
155
+ return window.addEventListener("resize", a), () => {
156
+ window.removeEventListener("resize", a);
152
157
  };
153
158
  }, [x]);
154
- const m = (r) => {
155
- r.target.src !== P && (r.target.onerror = null, r.target.src = P);
159
+ const m = (a) => {
160
+ a.target.src !== P && (a.target.onerror = null, a.target.src = P);
156
161
  };
157
- return /* @__PURE__ */ i(o, { className: `${k.recentCardsWrapper} recentCardsBg`, children: [
158
- /* @__PURE__ */ t(o, { className: "PX-TopHeading", children: /* @__PURE__ */ t(c, { variant: "h5medium", children: a ? "Related Videos" : "Related Articles" }) }),
162
+ return /* @__PURE__ */ i(o, { className: `${B.recentCardsWrapper} recentCardsBg`, children: [
163
+ /* @__PURE__ */ t(o, { className: "PX-TopHeading", children: /* @__PURE__ */ t(c, { variant: "h5medium", children: r ? "Related Videos" : "Related Articles" }) }),
159
164
  /* @__PURE__ */ t(o, { className: "PX-CardBox", children: /* @__PURE__ */ t(o, { className: "PX-InnerBox", children: I.map(
160
- (r) => r == null ? void 0 : r.map((e, L) => {
165
+ (a) => a == null ? void 0 : a.map((e, L) => {
161
166
  var f, v;
162
167
  const { original_image: S = {}, thumbnail: h } = e, { original_image_relative_path: C, ext: A } = S;
163
168
  let g, l;
@@ -1,8 +1,8 @@
1
1
  import Le, { jsx as a, jsxs as k, Fragment as je } from "react/jsx-runtime";
2
2
  import * as le from "react";
3
3
  import Te, { forwardRef as Ne, useState as $, useEffect as de, useRef as Oe, useCallback as Pe } from "react";
4
- import { d as ce, r as Ee, i as Re, m as We, h as Be, e as ue, B as b, g as De, j as He, T as L, P as Me, k as I, D as $e, l as Ue, s as Ve, n as J } from "./ToggleButton-SofBX2SF.mjs";
5
- import { g as he, d as pe, e as we, _ as j, u as fe, h as ge, i as me, P as p, j as be, k as ve, l as ze, m as ee, n as Fe, G as P, o as Ke } from "./index-DwB299XC.mjs";
4
+ import { d as ce, r as Ee, i as Re, m as We, h as Be, e as ue, B as b, g as De, j as He, T as L, P as Me, k as I, D as $e, l as Ue, s as Ve, n as J } from "./ToggleButton-gVhwVScB.mjs";
5
+ import { g as he, d as pe, e as we, _ as j, u as fe, h as ge, i as me, P as p, j as be, k as ve, l as ze, m as ee, n as Fe, G as P, o as Ke } from "./index-DWVcGAGd.mjs";
6
6
  import "react-dom";
7
7
  function Ge(e) {
8
8
  return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
@@ -1,6 +1,6 @@
1
- import { n as P } from "./index-DwB299XC.mjs";
1
+ import { n as P } from "./index-DWVcGAGd.mjs";
2
2
  import g from "react";
3
- import { z as b, F as v } from "./ToggleButton-SofBX2SF.mjs";
3
+ import { z as b, F as v } from "./ToggleButton-gVhwVScB.mjs";
4
4
  function O(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const s = e[r];
@@ -1,6 +1,6 @@
1
- import { n as m } from "./index-DwB299XC.mjs";
1
+ import { n as m } from "./index-DWVcGAGd.mjs";
2
2
  import f from "react";
3
- import { z as _, F as b } from "./ToggleButton-SofBX2SF.mjs";
3
+ import { z as _, F as b } from "./ToggleButton-gVhwVScB.mjs";
4
4
  function P(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const s = e[r];