@platform-x/hcltechx-mfe-wrapper 1.0.19 → 1.0.21
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.
- package/{ArticleVodListComponent-DBWWz2Hs.mjs → ArticleVodListComponent-BQoHiiKQ.mjs} +2 -2
- package/{ChallengeDetailComponent-CG1RCzE8.mjs → ChallengeDetailComponent-CTXOkTDi.mjs} +3 -3
- package/{ChallengeSliderComponent-CWMXRKq0.mjs → ChallengeSliderComponent-CAcMNlqM.mjs} +3 -3
- package/{CommonContentComponent-Qqc5N-Az.mjs → CommonContentComponent-GDoe3quI.mjs} +3 -3
- package/{DailyMotion-DFR0gSds.mjs → DailyMotion-DooEv23f.mjs} +2 -2
- package/{EngagementHomeComponent-6HpQlMcy.mjs → EngagementHomeComponent-0FR59glv.mjs} +3 -3
- package/{EventDetailComponent-C4UcNsiV.mjs → EventDetailComponent-B2ce5Inr.mjs} +3 -3
- package/{EventListComponent-CxLQt26p.mjs → EventListComponent-B9ESwYEK.mjs} +25 -25
- package/{Facebook-VVjco9FH.mjs → Facebook-Ddts7n8c.mjs} +4 -4
- package/{FilePlayer-BDeGYR2Q.mjs → FilePlayer-N6K4OsOh.mjs} +8 -8
- package/{IndividualChallengeComponent-C1sGK49q.mjs → IndividualChallengeComponent-o7jJX3FB.mjs} +3 -3
- package/{Kaltura-BFst5TiU.mjs → Kaltura-DGdbSKVx.mjs} +3 -3
- package/{Mixcloud-Cpa7j5gA.mjs → Mixcloud-MVWAMQDg.mjs} +2 -2
- package/{Mux-DK0DbgQd.mjs → Mux-BnTfpN-K.mjs} +7 -7
- package/PageComponent-CKrjcuSx.mjs +64 -0
- package/{Preview-BXbJWXWn.mjs → Preview-DzLPSp_r.mjs} +6 -6
- package/{RecentCarousel-DawjIVr1.mjs → RecentCarousel-Cl86PKoA.mjs} +2 -2
- package/{Share-Dby-Dvcf.mjs → Share-D0aSQ9zk.mjs} +2 -2
- package/{SoundCloud-DzWRor2L.mjs → SoundCloud-CyoxvKoN.mjs} +10 -10
- package/{Streamable-CXOJ7VLs.mjs → Streamable-mIh-PEmg.mjs} +2 -2
- package/{ToggleButton-BDZUn9dD.mjs → ToggleButton-DCe4d9MJ.mjs} +34512 -34055
- package/{Twitch-BK7cwvnu.mjs → Twitch-BOWa3Tr1.mjs} +2 -2
- package/{Vidyard-Bi7qNzGk.mjs → Vidyard-qNmM07ku.mjs} +7 -7
- package/{Vimeo-Bgg5KRYj.mjs → Vimeo-CCvDAdIG.mjs} +2 -2
- package/{Wistia-nSChaKhF.mjs → Wistia-shaJ3dVi.mjs} +5 -5
- package/{YouTube-djKcxXS_.mjs → YouTube-B-4Esa0L.mjs} +2 -2
- package/{index-kq1lszid.mjs → index-CeTmWGyC.mjs} +1630 -1596
- package/{index-DScfDnB2.mjs → index-Di95Ywjp.mjs} +2 -2
- package/index.mjs +1 -1
- package/lib/utils/helper.d.ts +1 -0
- package/{mutateApi-DNRcNgo1.mjs → mutateApi-CRYclteK.mjs} +1 -1
- package/package.json +1 -1
- package/PageComponent-C6ibBxcU.mjs +0 -97
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { A as p } from "./ToggleButton-
|
|
2
|
+
import { A as p } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-CeTmWGyC.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const f = ({
|
|
7
7
|
data: t,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
|
-
import { b as K } from "./ToggleButton-
|
|
2
|
+
import { b as K } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
3
3
|
import { useState as f, useEffect as M } from "react";
|
|
4
|
-
import { s as a, f as u } from "./index-
|
|
5
|
-
import { m as N } from "./mutateApi-
|
|
4
|
+
import { s as a, f as u } from "./index-CeTmWGyC.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-CRYclteK.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (L) => {
|
|
8
8
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
-
import { f as D, C as F } from "./ToggleButton-
|
|
2
|
+
import { f as D, C as F } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
3
3
|
import { useState as d, useEffect as J } from "react";
|
|
4
|
-
import { f as p, s as a, a as K } from "./index-
|
|
5
|
-
import { m as N } from "./mutateApi-
|
|
4
|
+
import { f as p, s as a, a as K } from "./index-CeTmWGyC.mjs";
|
|
5
|
+
import { m as N } from "./mutateApi-CRYclteK.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (I) => {
|
|
8
8
|
var S, P, A;
|
|
@@ -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-
|
|
4
|
-
import { m as $ } from "./mutateApi-
|
|
3
|
+
import { F as M, f as N, s as w } from "./index-CeTmWGyC.mjs";
|
|
4
|
+
import { m as $ } from "./mutateApi-CRYclteK.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-
|
|
9
|
+
() => import("./index-Di95Ywjp.mjs").then((t) => ({
|
|
10
10
|
default: t[T[l]]
|
|
11
11
|
}))
|
|
12
12
|
), c));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as P } from "./index-CeTmWGyC.mjs";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import { y as D, z as O } from "./ToggleButton-
|
|
3
|
+
import { y as D, z as O } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
4
4
|
function b(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as z } from "react/jsx-runtime";
|
|
2
|
-
import { f as F, a as J } from "./ToggleButton-
|
|
2
|
+
import { f as F, a as J } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
3
3
|
import { useState as l, useEffect as K } from "react";
|
|
4
|
-
import { f as E, s, a as N } from "./index-
|
|
5
|
-
import { m as O } from "./mutateApi-
|
|
4
|
+
import { f as E, s, a as N } from "./index-CeTmWGyC.mjs";
|
|
5
|
+
import { m as O } from "./mutateApi-CRYclteK.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const v = async (w, g, y, D = "", t = "wellnessevent") => {
|
|
8
8
|
var f, d, o, r;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as U } from "react/jsx-runtime";
|
|
2
|
-
import { c as V } from "./ToggleButton-
|
|
2
|
+
import { c as V } from "./ToggleButton-DCe4d9MJ.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-
|
|
5
|
-
import { m as z } from "./mutateApi-
|
|
4
|
+
import { f as q, s as d, a as I } from "./index-CeTmWGyC.mjs";
|
|
5
|
+
import { m as z } from "./mutateApi-CRYclteK.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const Z = (h) => {
|
|
8
8
|
const {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import { E as U } from "./ToggleButton-
|
|
2
|
+
import { E as M, f as U } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
3
3
|
import { useState as c, useEffect as j } from "react";
|
|
4
|
-
import { s as a, f as B, a as H } from "./index-
|
|
5
|
-
import { m as q } from "./mutateApi-
|
|
4
|
+
import { s as a, f as B, a as H } from "./index-CeTmWGyC.mjs";
|
|
5
|
+
import { m as q } from "./mutateApi-CRYclteK.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const
|
|
7
|
+
const Q = ({
|
|
8
8
|
data: h,
|
|
9
|
-
prelemAnalyticsProp:
|
|
10
|
-
prelemAuthoringHelper:
|
|
11
|
-
secondaryArgs:
|
|
12
|
-
userId:
|
|
13
|
-
filters:
|
|
14
|
-
relativePath:
|
|
9
|
+
prelemAnalyticsProp: y,
|
|
10
|
+
prelemAuthoringHelper: p,
|
|
11
|
+
secondaryArgs: f,
|
|
12
|
+
userId: m,
|
|
13
|
+
filters: P,
|
|
14
|
+
relativePath: w
|
|
15
15
|
}) => {
|
|
16
|
-
const [
|
|
16
|
+
const [I, S] = c({}), [D, _] = c({}), [v, E] = c({}), [T, u] = c(!1), {
|
|
17
17
|
prelemBaseEndpoint: { language: g, site_host: d }
|
|
18
|
-
} =
|
|
18
|
+
} = f, r = localStorage.getItem("userId") || m, G = async (l, t, i) => {
|
|
19
19
|
var n, o;
|
|
20
20
|
if (!r) {
|
|
21
21
|
a("User ID is not available. Please log in.");
|
|
@@ -39,14 +39,14 @@ const O = ({
|
|
|
39
39
|
try {
|
|
40
40
|
u(!0);
|
|
41
41
|
const o = {
|
|
42
|
-
date: "",
|
|
42
|
+
date: U(/* @__PURE__ */ new Date(), "yyyy-MM-dd"),
|
|
43
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
46
|
a((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
48
|
const { steps: s, calories: k, distance: L, individual_challenge_info: b } = (n = e == null ? void 0 : e.data) == null ? void 0 : n.community_fetchPersonalTracker;
|
|
49
|
-
E(s),
|
|
49
|
+
E(s), S(b), _({ calories: k, distance: L });
|
|
50
50
|
} else
|
|
51
51
|
console.error("GetPersonalData API failed");
|
|
52
52
|
} catch (o) {
|
|
@@ -55,28 +55,28 @@ const O = ({
|
|
|
55
55
|
u(!1);
|
|
56
56
|
}
|
|
57
57
|
}, A = {
|
|
58
|
-
stepsData:
|
|
58
|
+
stepsData: v,
|
|
59
59
|
loading: T,
|
|
60
60
|
updateGoals: G
|
|
61
61
|
};
|
|
62
62
|
return j(() => {
|
|
63
63
|
C();
|
|
64
64
|
}, []), /* @__PURE__ */ x(
|
|
65
|
-
|
|
65
|
+
M,
|
|
66
66
|
{
|
|
67
67
|
content: h,
|
|
68
|
-
analytics:
|
|
69
|
-
authoringHelper:
|
|
70
|
-
secondaryArgs:
|
|
68
|
+
analytics: y,
|
|
69
|
+
authoringHelper: p,
|
|
70
|
+
secondaryArgs: f,
|
|
71
71
|
stepsDetails: A,
|
|
72
|
-
filters:
|
|
73
|
-
relativePath:
|
|
74
|
-
individual_challenge_info:
|
|
75
|
-
commonInfo:
|
|
76
|
-
userId:
|
|
72
|
+
filters: P,
|
|
73
|
+
relativePath: w,
|
|
74
|
+
individual_challenge_info: I,
|
|
75
|
+
commonInfo: D,
|
|
76
|
+
userId: m
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
};
|
|
80
80
|
export {
|
|
81
|
-
|
|
81
|
+
Q as default
|
|
82
82
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { y as
|
|
1
|
+
import { n as _ } from "./index-CeTmWGyC.mjs";
|
|
2
|
+
import P from "react";
|
|
3
|
+
import { y as g, z as m } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
4
4
|
function v(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -36,7 +36,7 @@ var O = Object.create, i = Object.defineProperty, D = Object.getOwnPropertyDescr
|
|
|
36
36
|
k(b, {
|
|
37
37
|
default: () => l
|
|
38
38
|
});
|
|
39
|
-
var d = F(b), u = w(
|
|
39
|
+
var d = F(b), u = w(P), n = g, L = m;
|
|
40
40
|
const c = "https://connect.facebook.net/en_US/sdk.js", f = "FB", y = "fbAsyncInit", M = "facebook-player-";
|
|
41
41
|
class l extends u.Component {
|
|
42
42
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as b } from "./index-CeTmWGyC.mjs";
|
|
2
2
|
import _ from "react";
|
|
3
|
-
import { y as O, z as A } from "./ToggleButton-
|
|
3
|
+
import { y as O, z as A } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
4
4
|
function R(s, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -20,24 +20,24 @@ function R(s, e) {
|
|
|
20
20
|
var I = Object.create, u = Object.defineProperty, D = Object.getOwnPropertyDescriptor, w = Object.getOwnPropertyNames, M = Object.getPrototypeOf, k = Object.prototype.hasOwnProperty, U = (s, e, t) => e in s ? u(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, N = (s, e) => {
|
|
21
21
|
for (var t in e)
|
|
22
22
|
u(s, t, { get: e[t], enumerable: !0 });
|
|
23
|
-
},
|
|
23
|
+
}, m = (s, e, t, i) => {
|
|
24
24
|
if (e && typeof e == "object" || typeof e == "function")
|
|
25
25
|
for (let n of w(e))
|
|
26
26
|
!k.call(s, n) && n !== t && u(s, n, { get: () => e[n], enumerable: !(i = D(e, n)) || i.enumerable });
|
|
27
27
|
return s;
|
|
28
|
-
}, j = (s, e, t) => (t = s != null ? I(M(s)) : {},
|
|
28
|
+
}, j = (s, e, t) => (t = s != null ? I(M(s)) : {}, m(
|
|
29
29
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
30
|
// file that has been converted to a CommonJS file using a Babel-
|
|
31
31
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
32
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
33
|
!s || !s.__esModule ? u(t, "default", { value: s, enumerable: !0 }) : t,
|
|
34
34
|
s
|
|
35
|
-
)), H = (s) =>
|
|
35
|
+
)), H = (s) => m(u({}, "__esModule", { value: !0 }), s), r = (s, e, t) => (U(s, typeof e != "symbol" ? e + "" : e, t), t), E = {};
|
|
36
36
|
N(E, {
|
|
37
37
|
default: () => P
|
|
38
38
|
});
|
|
39
39
|
var g = H(E), d = j(_), a = O, c = A;
|
|
40
|
-
const y = typeof navigator < "u", F = y && navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1,
|
|
40
|
+
const y = typeof navigator < "u", F = y && navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1, v = y && (/iPad|iPhone|iPod/.test(navigator.userAgent) || F) && !window.MSStream, V = y && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && !window.MSStream, T = "https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js", C = "Hls", B = "https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js", x = "dashjs", K = "https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js", G = "flvjs", X = /www\.dropbox\.com\/.+/, f = /https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/, z = "https://videodelivery.net/{id}/manifest/video.m3u8";
|
|
41
41
|
class P extends d.Component {
|
|
42
42
|
constructor() {
|
|
43
43
|
super(...arguments), r(this, "onReady", (...e) => this.props.onReady(...e)), r(this, "onPlay", (...e) => this.props.onPlay(...e)), r(this, "onBuffer", (...e) => this.props.onBuffer(...e)), r(this, "onBufferEnd", (...e) => this.props.onBufferEnd(...e)), r(this, "onPause", (...e) => this.props.onPause(...e)), r(this, "onEnded", (...e) => this.props.onEnded(...e)), r(this, "onError", (...e) => this.props.onError(...e)), r(this, "onPlayBackRateChange", (e) => this.props.onPlaybackRateChange(e.target.playbackRate)), r(this, "onEnablePIP", (...e) => this.props.onEnablePIP(...e)), r(this, "onDisablePIP", (e) => {
|
|
@@ -61,7 +61,7 @@ class P extends d.Component {
|
|
|
61
61
|
componentDidMount() {
|
|
62
62
|
this.props.onMount && this.props.onMount(this), this.addListeners(this.player);
|
|
63
63
|
const e = this.getSource(this.props.url);
|
|
64
|
-
e && (this.player.src = e), (
|
|
64
|
+
e && (this.player.src = e), (v || this.props.config.forceDisableHls) && this.player.load();
|
|
65
65
|
}
|
|
66
66
|
componentDidUpdate(e) {
|
|
67
67
|
this.shouldUseAudio(this.props) !== this.shouldUseAudio(e) && (this.removeListeners(this.prevPlayer, e.url), this.addListeners(this.player)), this.props.url !== e.url && !(0, a.isMediaStream)(this.props.url) && !(this.props.url instanceof Array) && (this.player.srcObject = null);
|
|
@@ -80,7 +80,7 @@ class P extends d.Component {
|
|
|
80
80
|
return e.config.forceVideo || e.config.attributes.poster ? !1 : c.AUDIO_EXTENSIONS.test(e.url) || e.config.forceAudio;
|
|
81
81
|
}
|
|
82
82
|
shouldUseHLS(e) {
|
|
83
|
-
return V && this.props.config.forceSafariHLS || this.props.config.forceHLS ? !0 :
|
|
83
|
+
return V && this.props.config.forceSafariHLS || this.props.config.forceHLS ? !0 : v || this.props.config.forceDisableHls ? !1 : c.HLS_EXTENSIONS.test(e) || f.test(e);
|
|
84
84
|
}
|
|
85
85
|
shouldUseDASH(e) {
|
|
86
86
|
return c.DASH_EXTENSIONS.test(e) || this.props.config.forceDASH;
|
package/{IndividualChallengeComponent-C1sGK49q.mjs → IndividualChallengeComponent-o7jJX3FB.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as R } from "react/jsx-runtime";
|
|
2
|
-
import { I as ee } from "./ToggleButton-
|
|
2
|
+
import { I as ee } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
3
3
|
import { useState as m, useEffect as re } from "react";
|
|
4
|
-
import { f as y, s as u, a as q } from "./index-
|
|
5
|
-
import { m as w } from "./mutateApi-
|
|
4
|
+
import { f as y, s as u, a as q } from "./index-CeTmWGyC.mjs";
|
|
5
|
+
import { m as w } from "./mutateApi-CRYclteK.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
const ce = (E) => {
|
|
8
8
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as y } from "./index-CeTmWGyC.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as
|
|
3
|
+
import { y as _, z as m } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
4
4
|
function P(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const o = e[t];
|
|
@@ -36,7 +36,7 @@ var g = Object.create, n = Object.defineProperty, b = Object.getOwnPropertyDescr
|
|
|
36
36
|
L(d, {
|
|
37
37
|
default: () => i
|
|
38
38
|
});
|
|
39
|
-
var h = D(d), u = K(f), p =
|
|
39
|
+
var h = D(d), u = K(f), p = _, M = m;
|
|
40
40
|
const S = "https://cdn.embed.ly/player-0.1.0.min.js", T = "playerjs";
|
|
41
41
|
class i extends u.Component {
|
|
42
42
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as y } from "./index-CeTmWGyC.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as m, z as g } from "./ToggleButton-
|
|
3
|
+
import { y as m, z as g } from "./ToggleButton-DCe4d9MJ.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 {
|
|
1
|
+
import { n as P } from "./index-CeTmWGyC.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { z as E } from "./ToggleButton-
|
|
3
|
+
import { z as E } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -20,23 +20,23 @@ function b(r, e) {
|
|
|
20
20
|
var _ = Object.create, a = Object.defineProperty, L = Object.getOwnPropertyDescriptor, k = Object.getOwnPropertyNames, I = Object.getPrototypeOf, O = Object.prototype.hasOwnProperty, M = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, x = (r, e) => {
|
|
21
21
|
for (var t in e)
|
|
22
22
|
a(r, t, { get: e[t], enumerable: !0 });
|
|
23
|
-
},
|
|
23
|
+
}, v = (r, e, t, i) => {
|
|
24
24
|
if (e && typeof e == "object" || typeof e == "function")
|
|
25
25
|
for (let s of k(e))
|
|
26
26
|
!O.call(r, s) && s !== t && a(r, s, { get: () => e[s], enumerable: !(i = L(e, s)) || i.enumerable });
|
|
27
27
|
return r;
|
|
28
|
-
}, R = (r, e, t) => (t = r != null ? _(I(r)) : {},
|
|
28
|
+
}, R = (r, e, t) => (t = r != null ? _(I(r)) : {}, v(
|
|
29
29
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
30
|
// file that has been converted to a CommonJS file using a Babel-
|
|
31
31
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
32
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
33
|
!r || !r.__esModule ? a(t, "default", { value: r, enumerable: !0 }) : t,
|
|
34
34
|
r
|
|
35
|
-
)), w = (r) =>
|
|
36
|
-
x(
|
|
35
|
+
)), w = (r) => v(a({}, "__esModule", { value: !0 }), r), n = (r, e, t) => (M(r, typeof e != "symbol" ? e + "" : e, t), t), m = {};
|
|
36
|
+
x(m, {
|
|
37
37
|
default: () => l
|
|
38
38
|
});
|
|
39
|
-
var y = w(
|
|
39
|
+
var y = w(m), f = R(g), p = E;
|
|
40
40
|
const D = "https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";
|
|
41
41
|
class l extends f.Component {
|
|
42
42
|
constructor() {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as s, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { c as I } from "./index-CeTmWGyC.mjs";
|
|
3
|
+
import S from "react";
|
|
4
|
+
import { M as f } from "./Mapping-jqmNMEpL.mjs";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const p = {};
|
|
7
|
+
Object.keys(f).forEach((o) => (p[o] = S.lazy(
|
|
8
|
+
() => import("./index-Di95Ywjp.mjs").then((n) => ({
|
|
9
|
+
default: n[f[o]]
|
|
10
|
+
}))
|
|
11
|
+
), p));
|
|
12
|
+
const B = ({ content: o, analytics: n, authoringHelper: t, secondaryArgs: a, prelemId: r }) => {
|
|
13
|
+
const c = p[r];
|
|
14
|
+
return /* @__PURE__ */ s(j, { children: c ? /* @__PURE__ */ s(
|
|
15
|
+
c,
|
|
16
|
+
{
|
|
17
|
+
content: o,
|
|
18
|
+
analytics: n,
|
|
19
|
+
authoringHelper: t,
|
|
20
|
+
secondaryArgs: a
|
|
21
|
+
}
|
|
22
|
+
) : null });
|
|
23
|
+
}, H = (o = {}) => {
|
|
24
|
+
const { pageData: n = {}, instances: t = {}, secondaryArgs: a = {} } = o, { Children: r = [] } = n, {
|
|
25
|
+
prelemBaseEndpoint: { site_host: c }
|
|
26
|
+
} = a, b = (e, l) => l[e], E = () => r == null ? void 0 : r.map((e, l) => {
|
|
27
|
+
var P, u, g, y, h;
|
|
28
|
+
try {
|
|
29
|
+
const d = b(e == null ? void 0 : e.DocumentPath, n == null ? void 0 : n.Content), A = !!(n != null && n.AnalyticsEnable && (e != null && e.AnalyticsEnabled) && ((P = Object.keys(t || {})) != null && P.length)), i = {
|
|
30
|
+
pageId: n == null ? void 0 : n.Page,
|
|
31
|
+
pageTitle: n == null ? void 0 : n.Title,
|
|
32
|
+
pageDesc: ((u = n == null ? void 0 : n.PageSettings) == null ? void 0 : u.PageDescription) || "",
|
|
33
|
+
pageTags: (y = (g = n == null ? void 0 : n.PageSettings) == null ? void 0 : g.PageTags) == null ? void 0 : y.join(", "),
|
|
34
|
+
prelemId: e == null ? void 0 : e.PrelemId,
|
|
35
|
+
prelemTitle: e == null ? void 0 : e.PrelemName,
|
|
36
|
+
prelemTags: (h = e == null ? void 0 : e.PrelemTag) == null ? void 0 : h.join(", "),
|
|
37
|
+
prelemPosition: l + 1,
|
|
38
|
+
isAuthoring: !1,
|
|
39
|
+
isSeoEnabled: e == null ? void 0 : e.SeoEnabled,
|
|
40
|
+
isAnalyticsEnabled: A
|
|
41
|
+
}, T = {
|
|
42
|
+
isEditPage: !1,
|
|
43
|
+
isModalShow: !0
|
|
44
|
+
// innerRef: myRefs.current[key + 1],
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ s("div", { id: `Prelem${l + 1}`, children: d ? /* @__PURE__ */ s(
|
|
47
|
+
B,
|
|
48
|
+
{
|
|
49
|
+
content: d,
|
|
50
|
+
analytics: i,
|
|
51
|
+
authoringHelper: T,
|
|
52
|
+
secondaryArgs: { ...I(c) },
|
|
53
|
+
prelemId: e == null ? void 0 : e.PrelemId
|
|
54
|
+
}
|
|
55
|
+
) : null }, `Prelem-key${l + 1}`);
|
|
56
|
+
} catch {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return /* @__PURE__ */ s("div", { children: (r == null ? void 0 : r.length) > 0 ? E() : null });
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
H as default
|
|
64
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as y } from "./index-CeTmWGyC.mjs";
|
|
2
2
|
import v from "react";
|
|
3
3
|
function w(r, e) {
|
|
4
4
|
for (var t = 0; t < e.length; t++) {
|
|
@@ -31,11 +31,11 @@ var P = Object.create, s = Object.defineProperty, O = Object.getOwnPropertyDescr
|
|
|
31
31
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
32
|
!r || !r.__esModule ? s(t, "default", { value: r, enumerable: !0 }) : t,
|
|
33
33
|
r
|
|
34
|
-
)), N = (r) => _(s({}, "__esModule", { value: !0 }), r), p = (r, e, t) => (S(r, typeof e != "symbol" ? e + "" : e, t), t),
|
|
35
|
-
E(
|
|
34
|
+
)), N = (r) => _(s({}, "__esModule", { value: !0 }), r), p = (r, e, t) => (S(r, typeof e != "symbol" ? e + "" : e, t), t), g = {};
|
|
35
|
+
E(g, {
|
|
36
36
|
default: () => k
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var m = N(g), i = C(v);
|
|
39
39
|
const u = "64px", d = {};
|
|
40
40
|
class k extends i.Component {
|
|
41
41
|
constructor() {
|
|
@@ -118,10 +118,10 @@ class k extends i.Component {
|
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
const D = /* @__PURE__ */ y(
|
|
121
|
+
const D = /* @__PURE__ */ y(m), K = /* @__PURE__ */ w({
|
|
122
122
|
__proto__: null,
|
|
123
123
|
default: D
|
|
124
|
-
}, [
|
|
124
|
+
}, [m]);
|
|
125
125
|
export {
|
|
126
126
|
K as P
|
|
127
127
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { m as y, B as i, T as x, o as B, p as z, q as T, g as H, t as M, V as U, P as V, L as F, u as j, v as q, w as W, x as O } from "./ToggleButton-
|
|
2
|
+
import { m as y, B as i, T as x, o as B, p as z, q as T, g as H, t as M, V as U, P as V, L as F, u as j, v as q, w as W, x as O } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
3
3
|
import Y, { useState as G, useEffect as J } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { o as K } from "./index-CeTmWGyC.mjs";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const Q = y(() => {
|
|
7
7
|
const r = K();
|
|
@@ -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-
|
|
5
|
-
import { g as he,
|
|
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-DCe4d9MJ.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-CeTmWGyC.mjs";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
function Ge(e) {
|
|
8
8
|
return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as P } from "./index-CeTmWGyC.mjs";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { y as b, z as v } from "./ToggleButton-
|
|
3
|
+
import { y as b, z as v } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
4
4
|
function O(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|
|
7
7
|
if (typeof s != "string" && !Array.isArray(s)) {
|
|
8
8
|
for (const o in s)
|
|
9
9
|
if (o !== "default" && !(o in t)) {
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const a = Object.getOwnPropertyDescriptor(s, o);
|
|
11
|
+
a && Object.defineProperty(t, o, a.get ? a : {
|
|
12
12
|
enumerable: !0,
|
|
13
13
|
get: () => s[o]
|
|
14
14
|
});
|
|
@@ -55,16 +55,16 @@ class u extends p.Component {
|
|
|
55
55
|
(0, d.getSDK)(N, A).then((s) => {
|
|
56
56
|
if (!this.iframe)
|
|
57
57
|
return;
|
|
58
|
-
const { PLAY: o, PLAY_PROGRESS:
|
|
58
|
+
const { PLAY: o, PLAY_PROGRESS: a, PAUSE: _, FINISH: y, ERROR: m } = s.Widget.Events;
|
|
59
59
|
r || (this.player = s.Widget(this.iframe), this.player.bind(o, this.props.onPlay), this.player.bind(_, () => {
|
|
60
60
|
this.duration - this.currentTime < 0.05 || this.props.onPause();
|
|
61
|
-
}), this.player.bind(
|
|
62
|
-
this.currentTime =
|
|
63
|
-
}), this.player.bind(
|
|
61
|
+
}), this.player.bind(a, (n) => {
|
|
62
|
+
this.currentTime = n.currentPosition / 1e3, this.fractionLoaded = n.loadedProgress;
|
|
63
|
+
}), this.player.bind(y, () => this.props.onEnded()), this.player.bind(m, (n) => this.props.onError(n))), this.player.load(e, {
|
|
64
64
|
...this.props.config.options,
|
|
65
65
|
callback: () => {
|
|
66
|
-
this.player.getDuration((
|
|
67
|
-
this.duration =
|
|
66
|
+
this.player.getDuration((n) => {
|
|
67
|
+
this.duration = n / 1e3, this.props.onReady();
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m } from "./index-
|
|
1
|
+
import { n as m } from "./index-CeTmWGyC.mjs";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { y as _, z as b } from "./ToggleButton-
|
|
3
|
+
import { y as _, z as b } from "./ToggleButton-DCe4d9MJ.mjs";
|
|
4
4
|
function P(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|