@platform-x/hcltechx-mfe-wrapper 2.0.53 → 2.0.56

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 (34) hide show
  1. package/{ArticleVodList-Dsyyfp6e.mjs → ArticleVodList-NgYYyYjO.mjs} +2 -2
  2. package/{ArticleVodListComponent-PlsH-f5h.mjs → ArticleVodListComponent-gcqlFlAZ.mjs} +3 -3
  3. package/{ChallengeDetailComponent-BVQEIRup.mjs → ChallengeDetailComponent--BUK9xJZ.mjs} +1 -1
  4. package/{CommonContentComponent-H-QExV88.mjs → CommonContentComponent-CA_iT88B.mjs} +2 -2
  5. package/{DailyMotion-DdNE34qp.mjs → DailyMotion-00j5nTSF.mjs} +1 -1
  6. package/{EngagementHomeComponent-DCX0si1h.mjs → EngagementHomeComponent-D66_XLkr.mjs} +1 -1
  7. package/EventDetailComponent-CWZ3l1Ag.mjs +100 -0
  8. package/{EventList-339OFsl3.mjs → EventList-DkyJeORL.mjs} +69 -55
  9. package/{EventListComponent-DtIBqM0T.mjs → EventListComponent-Qxduz5-p.mjs} +3 -3
  10. package/{Facebook-DhQeIyvB.mjs → Facebook-BLYCoPeW.mjs} +1 -1
  11. package/{FilePlayer-BsJrOpAP.mjs → FilePlayer-CJZzsgvi.mjs} +1 -1
  12. package/{FilterModal-CF2QgDkk.mjs → FilterModal-DmpktkeC.mjs} +1 -1
  13. package/{IndividualChallengeComponent-ZMWhw023.mjs → IndividualChallengeComponent-DHsoZtVQ.mjs} +1 -1
  14. package/{Kaltura-CGVRq0mj.mjs → Kaltura-CXSqQzaA.mjs} +1 -1
  15. package/{Mixcloud-Dhs4QuRX.mjs → Mixcloud-BifMxaAw.mjs} +1 -1
  16. package/{Mux-DwiqqZNF.mjs → Mux-BmfQwN4j.mjs} +1 -1
  17. package/{PageComponent-BRn03517.mjs → PageComponent-CWKMUPr3.mjs} +2 -2
  18. package/{Preview-Ctmbj649.mjs → Preview-AI3eVYoR.mjs} +1 -1
  19. package/{RecentCarousel-DucxR0dk.mjs → RecentCarousel-C74yX8FT.mjs} +1 -1
  20. package/{Share-BpDSCb81.mjs → Share-Mr5sfRNt.mjs} +1 -1
  21. package/{SoundCloud-CHShAvYz.mjs → SoundCloud-Dfm8vk3R.mjs} +1 -1
  22. package/{Streamable-pFKgEoyk.mjs → Streamable-BJjOs-Aq.mjs} +1 -1
  23. package/{Twitch-G3mDoLJD.mjs → Twitch-BDjT7chH.mjs} +1 -1
  24. package/{Vidyard-CoJmezRy.mjs → Vidyard-BkkhSnfB.mjs} +1 -1
  25. package/{Vimeo-DY3pPtZi.mjs → Vimeo-Ba4-tUqG.mjs} +1 -1
  26. package/{Wistia-Cs2ATiGV.mjs → Wistia-B4maox6-.mjs} +1 -1
  27. package/{YouTube-DqH8hN56.mjs → YouTube-DXA8XMZe.mjs} +1 -1
  28. package/{index-DILUBQmh.mjs → index-CuOEcbOz.mjs} +30390 -30044
  29. package/{index-DVpfQAPU.mjs → index-CzTAUM_h.mjs} +5 -5
  30. package/index.mjs +1 -1
  31. package/lib/services/fetchQueries.d.ts +1 -1
  32. package/package.json +1 -1
  33. package/style.css +1 -1
  34. package/EventDetailComponent-D9w_19gt.mjs +0 -94
@@ -1,9 +1,9 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import "./index-DILUBQmh.mjs";
3
- import { A as n } from "./ArticleVodList-Dsyyfp6e.mjs";
2
+ import "./index-CuOEcbOz.mjs";
3
+ import { A as n } from "./ArticleVodList-NgYYyYjO.mjs";
4
4
  import "react";
5
5
  import "react-dom";
6
- import "./FilterModal-CF2QgDkk.mjs";
6
+ import "./FilterModal-DmpktkeC.mjs";
7
7
  const A = ({
8
8
  data: t,
9
9
  prelemAnalyticsProp: o,
@@ -1,5 +1,5 @@
1
1
  import { jsx as Z } from "react/jsx-runtime";
2
- import { c as $, s as f, a as C, m as R } from "./index-DILUBQmh.mjs";
2
+ import { c as $, s as f, a as C, m as R } from "./index-CuOEcbOz.mjs";
3
3
  import { useState as a, useEffect as ee } from "react";
4
4
  import "react-dom";
5
5
  const ne = (T) => {
@@ -1,11 +1,11 @@
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, a as N, s as w, m as $ } from "./index-DILUBQmh.mjs";
3
+ import { F as M, a as N, s as w, m as $ } from "./index-CuOEcbOz.mjs";
4
4
  import { M as T } from "./Mapping-DicSeRn3.mjs";
5
5
  import "react-dom";
6
6
  const c = {};
7
7
  Object.keys(T).forEach((l) => (c[l] = j.lazy(
8
- () => import("./index-DVpfQAPU.mjs").then((t) => ({
8
+ () => import("./index-CzTAUM_h.mjs").then((t) => ({
9
9
  default: t[T[l]]
10
10
  }))
11
11
  ), c));
@@ -1,4 +1,4 @@
1
- import { p as P, $ as v, a0 as D } from "./index-DILUBQmh.mjs";
1
+ import { p as P, $ as v, a0 as D } from "./index-CuOEcbOz.mjs";
2
2
  import O from "react";
3
3
  function b(t, e) {
4
4
  for (var r = 0; r < e.length; r++) {
@@ -1,5 +1,5 @@
1
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-DILUBQmh.mjs";
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-CuOEcbOz.mjs";
3
3
  import { useState as a, useEffect as ue } from "react";
4
4
  import "react-dom";
5
5
  const A = async (D, u, P, w = "", n = "wellnessevent", I = { start: 0, rows: 10 }, p = "", l = []) => {
@@ -0,0 +1,100 @@
1
+ import { jsx as K } from "react/jsx-runtime";
2
+ import { d as N, a as Q, s as u, b as I, m as W } from "./index-CuOEcbOz.mjs";
3
+ import { useState as n, useEffect as X } from "react";
4
+ import "react-dom";
5
+ const ee = (S) => {
6
+ const {
7
+ pageData: t = {},
8
+ secondaryArgs: f,
9
+ prelemAnalyticsProp: h,
10
+ prelemAuthoringHelper: A,
11
+ userId: P,
12
+ filters: b,
13
+ relativePath: w = ""
14
+ } = S || {}, {
15
+ prelemBaseEndpoint: { language: v, site_host: g }
16
+ } = f, [j, a] = n(!1), [k, y] = n(!1), [T, L] = n(0), d = localStorage.getItem("userId") || P, [x, G] = n(""), [H, J] = n(!1), [O, B] = n({}), C = {
17
+ joinEvent: async (_) => {
18
+ var i, o, r, l, c, m;
19
+ if (!d) {
20
+ u("User ID is not available. Please log in.");
21
+ return;
22
+ }
23
+ try {
24
+ a(!0);
25
+ const s = {
26
+ input: {
27
+ ..._,
28
+ userId: d
29
+ }
30
+ }, e = await W.joinEvent(s, v, g);
31
+ ((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0 ? u((o = e == null ? void 0 : e.errors[0]) == null ? void 0 : o.message) : (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.community_userRegistration) != null && l.id ? (I((m = (c = e == null ? void 0 : e.data) == null ? void 0 : c.community_userRegistration) == null ? void 0 : m.message), y(!0), E()) : console.error("Join Event API failed");
32
+ } catch (s) {
33
+ console.error("Error in Join Event API:", s);
34
+ } finally {
35
+ a(!1);
36
+ }
37
+ },
38
+ loading: j,
39
+ isRegistered: k,
40
+ registeredParticipants: T,
41
+ meetingLink: x,
42
+ isStarted: H
43
+ }, E = async () => {
44
+ var _, i, o, r, l, c, m;
45
+ try {
46
+ a(!0);
47
+ const s = (_ = t == null ? void 0 : t.event_type) != null && _.includes("Virtual") ? {
48
+ event_id: t == null ? void 0 : t.page,
49
+ user_id: d,
50
+ type: "webinar",
51
+ start_date: new Date(t == null ? void 0 : t.start_date_time).toISOString(),
52
+ end_date: new Date(t == null ? void 0 : t.end_date_time).toISOString()
53
+ // start_date: pageData?.start_date_time, //format(new Date(pageData?.start_date_time), "YYY-MM-dd"),
54
+ // end_date: pageData?.end_date_time, //format(new Date(pageData?.end_date_time), "YYY-MM-dd"),
55
+ } : {
56
+ event_id: t == null ? void 0 : t.page,
57
+ user_id: d,
58
+ slot_based_event: t == null ? void 0 : t.slot_based_event,
59
+ event_title: t == null ? void 0 : t.title
60
+ }, e = await Q.getEventDetails(s, v, g);
61
+ if (((i = e == null ? void 0 : e.errors) == null ? void 0 : i.length) > 0)
62
+ u((o = e == null ? void 0 : e.errors[0]) == null ? void 0 : o.message);
63
+ else if ((r = e == null ? void 0 : e.data) != null && r.community_eventDetails) {
64
+ const {
65
+ total_participant: M,
66
+ is_joined: U,
67
+ meeting_link: V = "",
68
+ is_started: q = !1,
69
+ slot_details: z = [],
70
+ booked_slot_date: D,
71
+ booked_slot: F
72
+ } = (l = e == null ? void 0 : e.data) == null ? void 0 : l.community_eventDetails;
73
+ I((m = (c = e == null ? void 0 : e.data) == null ? void 0 : c.community_eventDetails) == null ? void 0 : m.message), y(U), L(M), G(V), J(q), B({ slot_details: z, booked_slot_date: D, booked_slot: F });
74
+ } else
75
+ console.error("GetEventDetails API failed");
76
+ } catch (s) {
77
+ console.error("Error in GetEventDetails API:", s);
78
+ } finally {
79
+ a(!1);
80
+ }
81
+ };
82
+ return X(() => {
83
+ t != null && t.page && E();
84
+ }, [t]), /* @__PURE__ */ K(
85
+ N,
86
+ {
87
+ content: t,
88
+ analytics: h,
89
+ authoringHelper: A,
90
+ secondaryArgs: f,
91
+ eventDetails: C,
92
+ filters: b,
93
+ relativePath: w,
94
+ slotDetails: O
95
+ }
96
+ );
97
+ };
98
+ export {
99
+ ee as default
100
+ };