trimble-terra 0.0.457 → 0.0.458
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/dist/{DailyMotion-zoc83hhu.js → DailyMotion-DgZjTf1R.js} +3 -3
- package/dist/{Facebook-B7o3R-XP.js → Facebook-B91lSwez.js} +19 -19
- package/dist/{FilePlayer-C-hPhqDq.js → FilePlayer-DCRR_ZbM.js} +3 -3
- package/dist/{Kaltura-C2zmrCAw.js → Kaltura-CWiT8O9l.js} +1 -1
- package/dist/{Mixcloud-DPr5NnTs.js → Mixcloud-Dq0gJ_rK.js} +12 -12
- package/dist/{Mux-CupMlyix.js → Mux-DJ8vtlgU.js} +1 -1
- package/dist/{Preview-7dBwqY3-.js → Preview-Bfi0fjOR.js} +1 -1
- package/dist/{SoundCloud-DesLaWWW.js → SoundCloud-BDRjWrEV.js} +4 -4
- package/dist/{Streamable-t3vj2PL-.js → Streamable-ogAO1vM4.js} +6 -6
- package/dist/{Twitch-CDw4BDTA.js → Twitch-CNMIpt1B.js} +8 -8
- package/dist/{Vidyard-BL6jlqgT.js → Vidyard-CML0H92L.js} +8 -8
- package/dist/{Vimeo-C7RCGSw4.js → Vimeo-CIjrRuS7.js} +1 -1
- package/dist/{Wistia-KdJ2kabV.js → Wistia-CHjndMsR.js} +1 -1
- package/dist/{YouTube-CLRFFQ3r.js → YouTube-3B0QZAmA.js} +11 -11
- package/dist/{main-K96TPhQq.js → main-Mdnd8JtT.js} +7257 -6897
- package/dist/main.css +1 -1
- package/dist/trimble-terra.js +1 -1
- package/dist/{v4.umd-BbUehtdi.js → v4.umd-DClpSRbD.js} +58 -55
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as P, u as v, p as D } from "./main-
|
|
1
|
+
import { g as P, u as v, p as D } from "./main-Mdnd8JtT.js";
|
|
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 R = /* @__PURE__ */ P(_),
|
|
129
|
+
const R = /* @__PURE__ */ P(_), $ = /* @__PURE__ */ b({
|
|
130
130
|
__proto__: null,
|
|
131
131
|
default: R
|
|
132
132
|
}, [_]);
|
|
133
133
|
export {
|
|
134
|
-
|
|
134
|
+
$ as D
|
|
135
135
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { g as _, u as g, p as P } from "./main-
|
|
1
|
+
import { g as _, u as g, p as P } from "./main-Mdnd8JtT.js";
|
|
2
2
|
import m from "react";
|
|
3
3
|
function v(t, e) {
|
|
4
4
|
for (var r = 0; r < e.length; r++) {
|
|
5
|
-
const
|
|
6
|
-
if (typeof
|
|
7
|
-
for (const s in
|
|
5
|
+
const a = e[r];
|
|
6
|
+
if (typeof a != "string" && !Array.isArray(a)) {
|
|
7
|
+
for (const s in a)
|
|
8
8
|
if (s !== "default" && !(s in t)) {
|
|
9
|
-
const p = Object.getOwnPropertyDescriptor(
|
|
9
|
+
const p = Object.getOwnPropertyDescriptor(a, s);
|
|
10
10
|
p && Object.defineProperty(t, s, p.get ? p : {
|
|
11
11
|
enumerable: !0,
|
|
12
|
-
get: () =>
|
|
12
|
+
get: () => a[s]
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -19,10 +19,10 @@ function v(t, e) {
|
|
|
19
19
|
var O = Object.create, i = Object.defineProperty, D = Object.getOwnPropertyDescriptor, E = Object.getOwnPropertyNames, S = Object.getPrototypeOf, j = Object.prototype.hasOwnProperty, I = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, k = (t, e) => {
|
|
20
20
|
for (var r in e)
|
|
21
21
|
i(t, r, { get: e[r], enumerable: !0 });
|
|
22
|
-
}, h = (t, e, r,
|
|
22
|
+
}, h = (t, e, r, a) => {
|
|
23
23
|
if (e && typeof e == "object" || typeof e == "function")
|
|
24
24
|
for (let s of E(e))
|
|
25
|
-
!j.call(t, s) && s !== r && i(t, s, { get: () => e[s], enumerable: !(
|
|
25
|
+
!j.call(t, s) && s !== r && i(t, s, { get: () => e[s], enumerable: !(a = D(e, s)) || a.enumerable });
|
|
26
26
|
return t;
|
|
27
27
|
}, w = (t, e, r) => (r = t != null ? O(S(t)) : {}, h(
|
|
28
28
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
@@ -31,7 +31,7 @@ var O = Object.create, i = Object.defineProperty, D = Object.getOwnPropertyDescr
|
|
|
31
31
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
32
|
!t || !t.__esModule ? i(r, "default", { value: t, enumerable: !0 }) : r,
|
|
33
33
|
t
|
|
34
|
-
)), F = (t) => h(i({}, "__esModule", { value: !0 }), t),
|
|
34
|
+
)), F = (t) => h(i({}, "__esModule", { value: !0 }), t), o = (t, e, r) => (I(t, typeof e != "symbol" ? e + "" : e, r), r), b = {};
|
|
35
35
|
k(b, {
|
|
36
36
|
default: () => l
|
|
37
37
|
});
|
|
@@ -39,9 +39,9 @@ var d = F(b), u = w(m), n = g, L = P;
|
|
|
39
39
|
const c = "https://connect.facebook.net/en_US/sdk.js", f = "FB", y = "fbAsyncInit", M = "facebook-player-";
|
|
40
40
|
class l extends u.Component {
|
|
41
41
|
constructor() {
|
|
42
|
-
super(...arguments),
|
|
42
|
+
super(...arguments), o(this, "callPlayer", n.callPlayer), o(this, "playerID", this.props.config.playerId || `${M}${(0, n.randomString)()}`), o(this, "mute", () => {
|
|
43
43
|
this.callPlayer("mute");
|
|
44
|
-
}),
|
|
44
|
+
}), o(this, "unmute", () => {
|
|
45
45
|
this.callPlayer("unmute");
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -50,17 +50,17 @@ class l extends u.Component {
|
|
|
50
50
|
}
|
|
51
51
|
load(e, r) {
|
|
52
52
|
if (r) {
|
|
53
|
-
(0, n.getSDK)(c, f, y).then((
|
|
53
|
+
(0, n.getSDK)(c, f, y).then((a) => a.XFBML.parse());
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
(0, n.getSDK)(c, f, y).then((
|
|
57
|
-
|
|
56
|
+
(0, n.getSDK)(c, f, y).then((a) => {
|
|
57
|
+
a.init({
|
|
58
58
|
appId: this.props.config.appId,
|
|
59
59
|
xfbml: !0,
|
|
60
60
|
version: this.props.config.version
|
|
61
|
-
}),
|
|
61
|
+
}), a.Event.subscribe("xfbml.render", (s) => {
|
|
62
62
|
this.props.onLoaded();
|
|
63
|
-
}),
|
|
63
|
+
}), a.Event.subscribe("xfbml.ready", (s) => {
|
|
64
64
|
s.type === "video" && s.id === this.playerID && (this.player = s.instance, this.player.subscribe("startedPlaying", this.props.onPlay), this.player.subscribe("paused", this.props.onPause), this.player.subscribe("finishedPlaying", this.props.onEnded), this.player.subscribe("startedBuffering", this.props.onBuffer), this.player.subscribe("finishedBuffering", this.props.onBufferEnd), this.player.subscribe("error", this.props.onError), this.props.muted ? this.callPlayer("mute") : this.callPlayer("unmute"), this.props.onReady(), document.getElementById(this.playerID).querySelector("iframe").style.visibility = "visible");
|
|
65
65
|
});
|
|
66
66
|
});
|
|
@@ -108,9 +108,9 @@ class l extends u.Component {
|
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
o(l, "displayName", "Facebook");
|
|
112
|
+
o(l, "canPlay", L.canPlay.facebook);
|
|
113
|
+
o(l, "loopOnEnded", !0);
|
|
114
114
|
const x = /* @__PURE__ */ _(d), N = /* @__PURE__ */ v({
|
|
115
115
|
__proto__: null,
|
|
116
116
|
default: x
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as b, u as _, p as O } from "./main-
|
|
1
|
+
import { g as b, u as _, p as O } from "./main-Mdnd8JtT.js";
|
|
2
2
|
import A from "react";
|
|
3
3
|
function R(s, e) {
|
|
4
4
|
for (var t = 0; t < e.length; t++) {
|
|
@@ -192,9 +192,9 @@ class P extends d.Component {
|
|
|
192
192
|
}
|
|
193
193
|
r(P, "displayName", "FilePlayer");
|
|
194
194
|
r(P, "canPlay", c.canPlay.file);
|
|
195
|
-
const
|
|
195
|
+
const q = /* @__PURE__ */ b(g), Q = /* @__PURE__ */ R({
|
|
196
196
|
__proto__: null,
|
|
197
|
-
default:
|
|
197
|
+
default: q
|
|
198
198
|
}, [g]);
|
|
199
199
|
export {
|
|
200
200
|
Q as F
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as _, u as f, p as m } from "./main-
|
|
1
|
+
import { g as _, u as f, p as m } from "./main-Mdnd8JtT.js";
|
|
2
2
|
import g from "react";
|
|
3
3
|
function v(t, e) {
|
|
4
4
|
for (var r = 0; r < e.length; r++) {
|
|
@@ -6,8 +6,8 @@ function v(t, e) {
|
|
|
6
6
|
if (typeof s != "string" && !Array.isArray(s)) {
|
|
7
7
|
for (const o in s)
|
|
8
8
|
if (o !== "default" && !(o in t)) {
|
|
9
|
-
const
|
|
10
|
-
|
|
9
|
+
const i = Object.getOwnPropertyDescriptor(s, o);
|
|
10
|
+
i && Object.defineProperty(t, o, i.get ? i : {
|
|
11
11
|
enumerable: !0,
|
|
12
12
|
get: () => s[o]
|
|
13
13
|
});
|
|
@@ -16,22 +16,22 @@ function v(t, e) {
|
|
|
16
16
|
}
|
|
17
17
|
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
18
|
}
|
|
19
|
-
var P = Object.create,
|
|
19
|
+
var P = Object.create, n = Object.defineProperty, O = Object.getOwnPropertyDescriptor, b = Object.getOwnPropertyNames, M = Object.getPrototypeOf, x = Object.prototype.hasOwnProperty, w = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, j = (t, e) => {
|
|
20
20
|
for (var r in e)
|
|
21
|
-
|
|
21
|
+
n(t, r, { get: e[r], enumerable: !0 });
|
|
22
22
|
}, c = (t, e, r, s) => {
|
|
23
23
|
if (e && typeof e == "object" || typeof e == "function")
|
|
24
24
|
for (let o of b(e))
|
|
25
|
-
!
|
|
25
|
+
!x.call(t, o) && o !== r && n(t, o, { get: () => e[o], enumerable: !(s = O(e, o)) || s.enumerable });
|
|
26
26
|
return t;
|
|
27
27
|
}, D = (t, e, r) => (r = t != null ? P(M(t)) : {}, c(
|
|
28
28
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
29
|
// file that has been converted to a CommonJS file using a Babel-
|
|
30
30
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
31
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
-
!t || !t.__esModule ?
|
|
32
|
+
!t || !t.__esModule ? n(r, "default", { value: t, enumerable: !0 }) : r,
|
|
33
33
|
t
|
|
34
|
-
)), S = (t) => c(
|
|
34
|
+
)), S = (t) => c(n({}, "__esModule", { value: !0 }), t), a = (t, e, r) => (w(t, typeof e != "symbol" ? e + "" : e, r), r), d = {};
|
|
35
35
|
j(d, {
|
|
36
36
|
default: () => l
|
|
37
37
|
});
|
|
@@ -83,7 +83,7 @@ class l extends p.Component {
|
|
|
83
83
|
const { url: e, config: r } = this.props, s = e.match(y.MATCH_URL_MIXCLOUD)[1], o = {
|
|
84
84
|
width: "100%",
|
|
85
85
|
height: "100%"
|
|
86
|
-
},
|
|
86
|
+
}, i = (0, u.queryString)({
|
|
87
87
|
...r.options,
|
|
88
88
|
feed: `/${s}/`
|
|
89
89
|
});
|
|
@@ -93,7 +93,7 @@ class l extends p.Component {
|
|
|
93
93
|
key: s,
|
|
94
94
|
ref: this.ref,
|
|
95
95
|
style: o,
|
|
96
|
-
src: `https://
|
|
96
|
+
src: `https://player-widget.mixcloud.com/widget/iframe/?${i}`,
|
|
97
97
|
frameBorder: "0",
|
|
98
98
|
allow: "autoplay"
|
|
99
99
|
}
|
|
@@ -103,10 +103,10 @@ class l extends p.Component {
|
|
|
103
103
|
a(l, "displayName", "Mixcloud");
|
|
104
104
|
a(l, "canPlay", y.canPlay.mixcloud);
|
|
105
105
|
a(l, "loopOnEnded", !0);
|
|
106
|
-
const C = /* @__PURE__ */ _(h),
|
|
106
|
+
const C = /* @__PURE__ */ _(h), A = /* @__PURE__ */ v({
|
|
107
107
|
__proto__: null,
|
|
108
108
|
default: C
|
|
109
109
|
}, [h]);
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
A as M
|
|
112
112
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as P, u as g, p as b } from "./main-
|
|
1
|
+
import { g as P, u as g, p as b } from "./main-Mdnd8JtT.js";
|
|
2
2
|
import v from "react";
|
|
3
3
|
function O(t, e) {
|
|
4
4
|
for (var r = 0; r < e.length; r++) {
|
|
@@ -54,12 +54,12 @@ class u extends p.Component {
|
|
|
54
54
|
(0, d.getSDK)(N, A).then((s) => {
|
|
55
55
|
if (!this.iframe)
|
|
56
56
|
return;
|
|
57
|
-
const { PLAY: o, PLAY_PROGRESS: a, PAUSE:
|
|
58
|
-
r || (this.player = s.Widget(this.iframe), this.player.bind(o, this.props.onPlay), this.player.bind(
|
|
57
|
+
const { PLAY: o, PLAY_PROGRESS: a, PAUSE: _, FINISH: y, ERROR: m } = s.Widget.Events;
|
|
58
|
+
r || (this.player = s.Widget(this.iframe), this.player.bind(o, this.props.onPlay), this.player.bind(_, () => {
|
|
59
59
|
this.duration - this.currentTime < 0.05 || this.props.onPause();
|
|
60
60
|
}), this.player.bind(a, (n) => {
|
|
61
61
|
this.currentTime = n.currentPosition / 1e3, this.fractionLoaded = n.loadedProgress;
|
|
62
|
-
}), this.player.bind(
|
|
62
|
+
}), this.player.bind(y, () => this.props.onEnded()), this.player.bind(m, (n) => this.props.onError(n))), this.player.load(e, {
|
|
63
63
|
...this.props.config.options,
|
|
64
64
|
callback: () => {
|
|
65
65
|
this.player.getDuration((n) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as m, u as f, p as _ } from "./main-
|
|
1
|
+
import { g as m, u as f, p as _ } from "./main-Mdnd8JtT.js";
|
|
2
2
|
import b from "react";
|
|
3
3
|
function P(t, e) {
|
|
4
4
|
for (var r = 0; r < e.length; r++) {
|
|
@@ -35,7 +35,7 @@ var g = Object.create, l = Object.defineProperty, v = Object.getOwnPropertyDescr
|
|
|
35
35
|
w(h, {
|
|
36
36
|
default: () => n
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var d = D(h), p = M(b), u = f, y = _;
|
|
39
39
|
const T = "https://cdn.embed.ly/player-0.1.0.min.js", E = "playerjs";
|
|
40
40
|
class n extends p.Component {
|
|
41
41
|
constructor() {
|
|
@@ -86,7 +86,7 @@ class n extends p.Component {
|
|
|
86
86
|
return this.secondsLoaded;
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
const e = this.props.url.match(
|
|
89
|
+
const e = this.props.url.match(y.MATCH_URL_STREAMABLE)[1], r = {
|
|
90
90
|
width: "100%",
|
|
91
91
|
height: "100%"
|
|
92
92
|
};
|
|
@@ -104,11 +104,11 @@ class n extends p.Component {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
o(n, "displayName", "Streamable");
|
|
107
|
-
o(n, "canPlay",
|
|
108
|
-
const A = /* @__PURE__ */ m(
|
|
107
|
+
o(n, "canPlay", y.canPlay.streamable);
|
|
108
|
+
const A = /* @__PURE__ */ m(d), x = /* @__PURE__ */ P({
|
|
109
109
|
__proto__: null,
|
|
110
110
|
default: A
|
|
111
|
-
}, [
|
|
111
|
+
}, [d]);
|
|
112
112
|
export {
|
|
113
113
|
x as S
|
|
114
114
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as w, u as D, p as C } from "./main-
|
|
1
|
+
import { g as w, u as D, p as C } from "./main-Mdnd8JtT.js";
|
|
2
2
|
import N from "react";
|
|
3
3
|
function I(t, e) {
|
|
4
4
|
for (var r = 0; r < e.length; r++) {
|
|
@@ -16,7 +16,7 @@ function I(t, e) {
|
|
|
16
16
|
}
|
|
17
17
|
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
18
|
}
|
|
19
|
-
var M = Object.create, l = Object.defineProperty, S = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, A = Object.getPrototypeOf, H = Object.prototype.hasOwnProperty, R = (t, e, r) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r,
|
|
19
|
+
var M = Object.create, l = Object.defineProperty, S = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, A = Object.getPrototypeOf, H = Object.prototype.hasOwnProperty, R = (t, e, r) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, x = (t, e) => {
|
|
20
20
|
for (var r in e)
|
|
21
21
|
l(t, r, { get: e[r], enumerable: !0 });
|
|
22
22
|
}, _ = (t, e, r, s) => {
|
|
@@ -24,19 +24,19 @@ var M = Object.create, l = Object.defineProperty, S = Object.getOwnPropertyDescr
|
|
|
24
24
|
for (let a of j(e))
|
|
25
25
|
!H.call(t, a) && a !== r && l(t, a, { get: () => e[a], enumerable: !(s = S(e, a)) || s.enumerable });
|
|
26
26
|
return t;
|
|
27
|
-
},
|
|
27
|
+
}, F = (t, e, r) => (r = t != null ? M(A(t)) : {}, _(
|
|
28
28
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
29
|
// file that has been converted to a CommonJS file using a Babel-
|
|
30
30
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
31
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
32
|
!t || !t.__esModule ? l(r, "default", { value: t, enumerable: !0 }) : r,
|
|
33
33
|
t
|
|
34
|
-
)),
|
|
35
|
-
|
|
34
|
+
)), U = (t) => _(l({}, "__esModule", { value: !0 }), t), o = (t, e, r) => (R(t, typeof e != "symbol" ? e + "" : e, r), r), P = {};
|
|
35
|
+
x(P, {
|
|
36
36
|
default: () => h
|
|
37
37
|
});
|
|
38
|
-
var f =
|
|
39
|
-
const
|
|
38
|
+
var f = U(P), y = F(N), c = D, u = C;
|
|
39
|
+
const $ = "https://player.twitch.tv/js/embed/v1.js", K = "Twitch", V = "twitch-player-";
|
|
40
40
|
class h extends y.Component {
|
|
41
41
|
constructor() {
|
|
42
42
|
super(...arguments), o(this, "callPlayer", c.callPlayer), o(this, "playerID", this.props.config.playerId || `${V}${(0, c.randomString)()}`), o(this, "mute", () => {
|
|
@@ -54,7 +54,7 @@ class h extends y.Component {
|
|
|
54
54
|
i ? this.player.setChannel(p) : this.player.setVideo("v" + p);
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
(0, c.getSDK)(
|
|
57
|
+
(0, c.getSDK)($, K).then((d) => {
|
|
58
58
|
this.player = new d.Player(this.playerID, {
|
|
59
59
|
video: i ? "" : p,
|
|
60
60
|
channel: i ? p : "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g, u as v, p as b } from "./main-
|
|
1
|
+
import { g, u as v, p as b } from "./main-Mdnd8JtT.js";
|
|
2
2
|
import O from "react";
|
|
3
3
|
function V(t, e) {
|
|
4
4
|
for (var r = 0; r < e.length; r++) {
|
|
@@ -33,13 +33,13 @@ var D = Object.create, n = Object.defineProperty, j = Object.getOwnPropertyDescr
|
|
|
33
33
|
t
|
|
34
34
|
)), R = (t) => h(n({}, "__esModule", { value: !0 }), t), s = (t, e, r) => (A(t, typeof e != "symbol" ? e + "" : e, r), r), _ = {};
|
|
35
35
|
L(_, {
|
|
36
|
-
default: () =>
|
|
36
|
+
default: () => d
|
|
37
37
|
});
|
|
38
|
-
var f = R(_), c = E(O),
|
|
38
|
+
var f = R(_), c = E(O), y = v, P = b;
|
|
39
39
|
const C = "https://play.vidyard.com/embed/v4.js", N = "VidyardV4", x = "onVidyardAPI";
|
|
40
|
-
class
|
|
40
|
+
class d extends c.Component {
|
|
41
41
|
constructor() {
|
|
42
|
-
super(...arguments), s(this, "callPlayer",
|
|
42
|
+
super(...arguments), s(this, "callPlayer", y.callPlayer), s(this, "mute", () => {
|
|
43
43
|
this.setVolume(0);
|
|
44
44
|
}), s(this, "unmute", () => {
|
|
45
45
|
this.props.volume !== null && this.setVolume(this.props.volume);
|
|
@@ -52,7 +52,7 @@ class y extends c.Component {
|
|
|
52
52
|
}
|
|
53
53
|
load(e) {
|
|
54
54
|
const { playing: r, config: o, onError: a, onDuration: i } = this.props, l = e && e.match(P.MATCH_URL_VIDYARD)[1];
|
|
55
|
-
this.player && this.stop(), (0,
|
|
55
|
+
this.player && this.stop(), (0, y.getSDK)(C, N, x).then((p) => {
|
|
56
56
|
this.container && (p.api.addReadyListener((u, m) => {
|
|
57
57
|
this.player || (this.player = m, this.player.on("ready", this.props.onReady), this.player.on("play", this.props.onPlay), this.player.on("pause", this.props.onPause), this.player.on("seek", this.props.onSeek), this.player.on("playerComplete", this.props.onEnded));
|
|
58
58
|
}, l), p.api.renderPlayer({
|
|
@@ -101,8 +101,8 @@ class y extends c.Component {
|
|
|
101
101
|
return /* @__PURE__ */ c.default.createElement("div", { style: r }, /* @__PURE__ */ c.default.createElement("div", { ref: this.ref }));
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
s(
|
|
105
|
-
s(
|
|
104
|
+
s(d, "displayName", "Vidyard");
|
|
105
|
+
s(d, "canPlay", P.canPlay.vidyard);
|
|
106
106
|
const T = /* @__PURE__ */ g(f), $ = /* @__PURE__ */ V({
|
|
107
107
|
__proto__: null,
|
|
108
108
|
default: T
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as U, u as I, p as L } from "./main-
|
|
1
|
+
import { g as U, u as I, p as L } from "./main-Mdnd8JtT.js";
|
|
2
2
|
import M from "react";
|
|
3
3
|
function Y(a, e) {
|
|
4
4
|
for (var t = 0; t < e.length; t++) {
|
|
@@ -36,7 +36,7 @@ x(w, {
|
|
|
36
36
|
default: () => O
|
|
37
37
|
});
|
|
38
38
|
var S = H(w), m = F(M), p = I, D = L;
|
|
39
|
-
const G = "https://www.youtube.com/iframe_api", T = "YT",
|
|
39
|
+
const G = "https://www.youtube.com/iframe_api", T = "YT", z = "onYouTubeIframeAPIReady", f = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/, b = /user\/([a-zA-Z0-9_-]+)\/?/, $ = /youtube-nocookie\.com/, Q = "https://www.youtube-nocookie.com";
|
|
40
40
|
class O extends m.Component {
|
|
41
41
|
constructor() {
|
|
42
42
|
super(...arguments), s(this, "callPlayer", p.callPlayer), s(this, "parsePlaylist", (e) => {
|
|
@@ -61,8 +61,8 @@ class O extends m.Component {
|
|
|
61
61
|
}
|
|
62
62
|
return {};
|
|
63
63
|
}), s(this, "onStateChange", (e) => {
|
|
64
|
-
const { data: t } = e, { onPlay: o, onPause: r, onBuffer: n, onBufferEnd: P, onEnded: _, onReady: g, loop: y, config: { playerVars: l, onUnstarted:
|
|
65
|
-
if (t ===
|
|
64
|
+
const { data: t } = e, { onPlay: o, onPause: r, onBuffer: n, onBufferEnd: P, onEnded: _, onReady: g, loop: y, config: { playerVars: l, onUnstarted: d } } = this.props, { UNSTARTED: h, PLAYING: c, PAUSED: i, BUFFERING: E, ENDED: A, CUED: C } = window[T].PlayerState;
|
|
65
|
+
if (t === h && d(), t === c && (o(), P()), t === i && r(), t === E && n(), t === A) {
|
|
66
66
|
const R = !!this.callPlayer("getPlaylist");
|
|
67
67
|
y && !R && (l.start ? this.seekTo(l.start) : this.play()), _();
|
|
68
68
|
}
|
|
@@ -82,24 +82,24 @@ class O extends m.Component {
|
|
|
82
82
|
return !e || e instanceof Array || f.test(e) ? null : e.match(D.MATCH_URL_YOUTUBE)[1];
|
|
83
83
|
}
|
|
84
84
|
load(e, t) {
|
|
85
|
-
const { playing: o, muted: r, playsinline: n, controls: P, loop: _, config: g, onError: y } = this.props, { playerVars: l, embedOptions:
|
|
85
|
+
const { playing: o, muted: r, playsinline: n, controls: P, loop: _, config: g, onError: y } = this.props, { playerVars: l, embedOptions: d } = g, h = this.getID(e);
|
|
86
86
|
if (t) {
|
|
87
87
|
if (f.test(e) || b.test(e) || e instanceof Array) {
|
|
88
88
|
this.player.loadPlaylist(this.parsePlaylist(e));
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
this.player.cueVideoById({
|
|
92
|
-
videoId:
|
|
92
|
+
videoId: h,
|
|
93
93
|
startSeconds: (0, p.parseStartTime)(e) || l.start,
|
|
94
94
|
endSeconds: (0, p.parseEndTime)(e) || l.end
|
|
95
95
|
});
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
(0, p.getSDK)(G, T,
|
|
98
|
+
(0, p.getSDK)(G, T, z, (c) => c.loaded).then((c) => {
|
|
99
99
|
this.container && (this.player = new c.Player(this.container, {
|
|
100
100
|
width: "100%",
|
|
101
101
|
height: "100%",
|
|
102
|
-
videoId:
|
|
102
|
+
videoId: h,
|
|
103
103
|
playerVars: {
|
|
104
104
|
autoplay: o ? 1 : 0,
|
|
105
105
|
mute: r ? 1 : 0,
|
|
@@ -120,10 +120,10 @@ class O extends m.Component {
|
|
|
120
120
|
onStateChange: this.onStateChange,
|
|
121
121
|
onError: (i) => y(i.data)
|
|
122
122
|
},
|
|
123
|
-
host:
|
|
124
|
-
...
|
|
123
|
+
host: $.test(e) ? Q : void 0,
|
|
124
|
+
...d
|
|
125
125
|
}));
|
|
126
|
-
}, y),
|
|
126
|
+
}, y), d.events && console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause");
|
|
127
127
|
}
|
|
128
128
|
play() {
|
|
129
129
|
this.callPlayer("playVideo");
|