@mintplayer/vue-video-player 0.0.0-stage → 3.0.0
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/BehaviorSubject-B43NQ6Ep.js +1 -0
- package/BehaviorSubject-CMEAHufI.mjs +27 -0
- package/README.md +40 -2
- package/api-1vv4CoYw.mjs +201 -0
- package/api-B6qyhEI3.js +1 -0
- package/api-BXwOuGGp.js +9 -0
- package/api-Be3WmSZ1.mjs +140 -0
- package/api-Bqn8VxG0.mjs +103 -0
- package/api-BvYiv0Ae.mjs +79 -0
- package/api-C-ycGc3Y.js +1 -0
- package/api-C2IVrne3.mjs +72 -0
- package/api-C2TK5P8W.js +1 -0
- package/api-C355Aio5.js +1 -0
- package/api-CERg1lOE.js +9 -0
- package/api-CExMX1Pt.js +1 -0
- package/api-CcP3AdSm.mjs +2590 -0
- package/api-CjAlKHz7.js +38 -0
- package/api-CqCOtAUb.mjs +84 -0
- package/api-CqCgSUqk.mjs +87 -0
- package/api-D0zr0PoA.js +1 -0
- package/api-D55GaoJG.js +1 -0
- package/api-D5spnI9J.js +1 -0
- package/api-DcMW2iN2.mjs +90 -0
- package/api-MxZ7gaDR.mjs +118 -0
- package/api-O56wbN98.mjs +91 -0
- package/api-noLuragZ.js +1 -0
- package/api-yj6szShM.mjs +93 -0
- package/debounceTime-B4ed_w3_.js +1 -0
- package/debounceTime-T7webJ8G.mjs +197 -0
- package/executeSchedule-0S0ESNjs.js +1 -0
- package/executeSchedule-CVYaVzo8.mjs +9 -0
- package/filter-Ck2Y29AT.js +1 -0
- package/filter-LJ9oGNCV.mjs +11 -0
- package/fromEvent-CAH0A2rD.js +1 -0
- package/fromEvent-koPx2dM9.mjs +45 -0
- package/index.css +2 -0
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/index.mjs +216 -0
- package/isScheduler-dRIR0jo6.mjs +106 -0
- package/isScheduler-gBWm9tsU.js +1 -0
- package/lib/types.d.ts +12 -0
- package/lib/vue-video-player.vue.d.ts +18 -0
- package/mapOneOrManyArgs-Djtipmha.mjs +22 -0
- package/mapOneOrManyArgs-gqACUB3e.js +1 -0
- package/package.json +23 -4
- package/pairwise-BZ7jlLp1.mjs +12 -0
- package/pairwise-ksRX5aBP.js +1 -0
- package/src-BWj0KcGd.mjs +1043 -0
- package/src-C2Bgj48W.mjs +51 -0
- package/src-CYCud0_r.js +1 -0
- package/src-CluKb0O6.js +3 -0
- package/take-BVSpP1qC.js +1 -0
- package/take-DvAG1RRS.mjs +64 -0
- package/takeUntil-MRP2QN5v.js +1 -0
- package/takeUntil-zxKl50Ag.mjs +172 -0
- package/timer-BOeyNkh5.mjs +20 -0
- package/timer-mrjvJwyN.js +1 -0
package/api-CcP3AdSm.mjs
ADDED
|
@@ -0,0 +1,2590 @@
|
|
|
1
|
+
import { E as e, O as t, i as n, n as r, r as i, t as a } from "./src-BWj0KcGd.mjs";
|
|
2
|
+
import { t as o } from "./BehaviorSubject-CMEAHufI.mjs";
|
|
3
|
+
import { t as s } from "./take-DvAG1RRS.mjs";
|
|
4
|
+
import { t as c } from "./takeUntil-zxKl50Ag.mjs";
|
|
5
|
+
import { n as l } from "./mapOneOrManyArgs-Djtipmha.mjs";
|
|
6
|
+
import { t as u } from "./fromEvent-koPx2dM9.mjs";
|
|
7
|
+
import { t as d } from "./filter-LJ9oGNCV.mjs";
|
|
8
|
+
import { t as f } from "./src-C2Bgj48W.mjs";
|
|
9
|
+
// ../../platforms/vidyard-player/api/src/extensions.ts
|
|
10
|
+
function p(e, t) {
|
|
11
|
+
return u(e, t);
|
|
12
|
+
}
|
|
13
|
+
// ../../../node_modules/@vidyard/embed-code/dist/v4.umd.js
|
|
14
|
+
var m = /* @__PURE__ */ e(((e, t) => {
|
|
15
|
+
(function(n, r) {
|
|
16
|
+
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.vidyardEmbed = r() : n.vidyardEmbed = r();
|
|
17
|
+
})(window, function() {
|
|
18
|
+
return (function(e) {
|
|
19
|
+
var t = {};
|
|
20
|
+
function n(r) {
|
|
21
|
+
if (t[r]) return t[r].exports;
|
|
22
|
+
var i = t[r] = {
|
|
23
|
+
i: r,
|
|
24
|
+
l: !1,
|
|
25
|
+
exports: {}
|
|
26
|
+
};
|
|
27
|
+
return e[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports;
|
|
28
|
+
}
|
|
29
|
+
return n.m = e, n.c = t, n.d = function(e, t, r) {
|
|
30
|
+
n.o(e, t) || Object.defineProperty(e, t, {
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
get: r
|
|
33
|
+
});
|
|
34
|
+
}, n.r = function(e) {
|
|
35
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36
|
+
}, n.t = function(e, t) {
|
|
37
|
+
if (t & 1 && (e = n(e)), t & 8 || t & 4 && typeof e == "object" && e && e.__esModule) return e;
|
|
38
|
+
var r = Object.create(null);
|
|
39
|
+
if (n.r(r), Object.defineProperty(r, "default", {
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
value: e
|
|
42
|
+
}), t & 2 && typeof e != "string") for (var i in e) n.d(r, i, function(t) {
|
|
43
|
+
return e[t];
|
|
44
|
+
}.bind(null, i));
|
|
45
|
+
return r;
|
|
46
|
+
}, n.n = function(e) {
|
|
47
|
+
var t = e && e.__esModule ? function() {
|
|
48
|
+
return e.default;
|
|
49
|
+
} : function() {
|
|
50
|
+
return e;
|
|
51
|
+
};
|
|
52
|
+
return n.d(t, "a", t), t;
|
|
53
|
+
}, n.o = function(e, t) {
|
|
54
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
55
|
+
}, n.p = "", n(n.s = 6);
|
|
56
|
+
})([
|
|
57
|
+
(function(e, t) {
|
|
58
|
+
var n = (function() {
|
|
59
|
+
return this;
|
|
60
|
+
})();
|
|
61
|
+
try {
|
|
62
|
+
n = n || Function("return this")() || (0, eval)("this");
|
|
63
|
+
} catch {
|
|
64
|
+
typeof window == "object" && (n = window);
|
|
65
|
+
}
|
|
66
|
+
e.exports = n;
|
|
67
|
+
}),
|
|
68
|
+
(function(e, t, n) {
|
|
69
|
+
function r() {
|
|
70
|
+
return r = Object.assign || function(e) {
|
|
71
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
72
|
+
var n = arguments[t];
|
|
73
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
74
|
+
}
|
|
75
|
+
return e;
|
|
76
|
+
}, r.apply(this, arguments);
|
|
77
|
+
}
|
|
78
|
+
var i = n(15), a = n(14), o, s, c, l = function(e) {
|
|
79
|
+
return e.tagName.toLowerCase() !== "svg";
|
|
80
|
+
};
|
|
81
|
+
function u(e, t) {
|
|
82
|
+
return t === !1 ? f(e, "aria-hidden", "false") : f(e, "hidden", !1);
|
|
83
|
+
}
|
|
84
|
+
function d(e, t) {
|
|
85
|
+
return t === !1 ? f(e, "aria-hidden", "true") : f(e, "hidden", !0);
|
|
86
|
+
}
|
|
87
|
+
function f(e, t, n) {
|
|
88
|
+
var r = typeof n == "boolean";
|
|
89
|
+
return {
|
|
90
|
+
el: e,
|
|
91
|
+
attributeName: t,
|
|
92
|
+
cleanValue: r ? e[t] : e.getAttribute(t),
|
|
93
|
+
dirtyValue: n,
|
|
94
|
+
isProperty: r
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function p(e) {
|
|
98
|
+
e.isProperty === !0 ? e.el[e.attributeName] = e.dirtyValue : e.el.setAttribute(e.attributeName, e.dirtyValue);
|
|
99
|
+
}
|
|
100
|
+
function m(e) {
|
|
101
|
+
e.cleanValue ? e.isProperty === !0 ? e.el[e.attributeName] = e.cleanValue : e.el.setAttribute(e.attributeName, e.cleanValue) : e.el.removeAttribute(e.attributeName);
|
|
102
|
+
}
|
|
103
|
+
function h() {
|
|
104
|
+
s &&= (c.forEach(function(e) {
|
|
105
|
+
return m(e);
|
|
106
|
+
}), c = [], o && o.setAttribute("role", "main"), s.dispatchEvent(new i("screenreaderUntrap", { bubbles: !0 })), null);
|
|
107
|
+
}
|
|
108
|
+
var g = { useHiddenProperty: !1 };
|
|
109
|
+
function _(e, t) {
|
|
110
|
+
h();
|
|
111
|
+
var n = r({}, g, t);
|
|
112
|
+
s = e, o = document.querySelector("main, [role=\"main\"]"), o && o.setAttribute("role", "presentation");
|
|
113
|
+
var f = a.getAncestors(s), m = a.getSiblings(s), _ = a.getSiblingsOfAncestors(s);
|
|
114
|
+
n.useHiddenProperty === !0 && (m = m.filter(l), _ = _.filter(l)), c = [u(s, n.useHiddenProperty)].concat(f.map(function(e) {
|
|
115
|
+
return u(e, n.useHiddenProperty);
|
|
116
|
+
}), m.map(function(e) {
|
|
117
|
+
return d(e, n.useHiddenProperty);
|
|
118
|
+
}), _.map(function(e) {
|
|
119
|
+
return d(e, n.useHiddenProperty);
|
|
120
|
+
})), c.forEach(function(e) {
|
|
121
|
+
return p(e);
|
|
122
|
+
}), s.dispatchEvent(new i("screenreaderTrap", { bubbles: !0 }));
|
|
123
|
+
}
|
|
124
|
+
e.exports = {
|
|
125
|
+
trap: _,
|
|
126
|
+
untrap: h
|
|
127
|
+
};
|
|
128
|
+
}),
|
|
129
|
+
(function(e, t, n) {
|
|
130
|
+
var r, i, a;
|
|
131
|
+
(function(o, s) {
|
|
132
|
+
i = [n(7)], r = s, a = typeof r == "function" ? r.apply(t, i) : r, a !== void 0 && (e.exports = a);
|
|
133
|
+
})(this, function(e) {
|
|
134
|
+
var t = /(^|@)\S+\:\d+/, n = /^\s*at .*(\S+\:\d+|\(native\))/m, r = /^(eval@)?(\[native code\])?$/;
|
|
135
|
+
return {
|
|
136
|
+
parse: function(e) {
|
|
137
|
+
if (e.stacktrace !== void 0 || e["opera#sourceloc"] !== void 0) return this.parseOpera(e);
|
|
138
|
+
if (e.stack && e.stack.match(n)) return this.parseV8OrIE(e);
|
|
139
|
+
if (e.stack) return this.parseFFOrSafari(e);
|
|
140
|
+
throw Error("Cannot parse given Error object");
|
|
141
|
+
},
|
|
142
|
+
extractLocation: function(e) {
|
|
143
|
+
if (e.indexOf(":") === -1) return [e];
|
|
144
|
+
var t = /(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g, ""));
|
|
145
|
+
return [
|
|
146
|
+
t[1],
|
|
147
|
+
t[2] || void 0,
|
|
148
|
+
t[3] || void 0
|
|
149
|
+
];
|
|
150
|
+
},
|
|
151
|
+
parseV8OrIE: function(t) {
|
|
152
|
+
return t.stack.split("\n").filter(function(e) {
|
|
153
|
+
return !!e.match(n);
|
|
154
|
+
}, this).map(function(t) {
|
|
155
|
+
t.indexOf("(eval ") > -1 && (t = t.replace(/eval code/g, "eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g, ""));
|
|
156
|
+
var n = t.replace(/^\s+/, "").replace(/\(eval code/g, "(").split(/\s+/).slice(1), r = this.extractLocation(n.pop());
|
|
157
|
+
return new e({
|
|
158
|
+
functionName: n.join(" ") || void 0,
|
|
159
|
+
fileName: ["eval", "<anonymous>"].indexOf(r[0]) > -1 ? void 0 : r[0],
|
|
160
|
+
lineNumber: r[1],
|
|
161
|
+
columnNumber: r[2],
|
|
162
|
+
source: t
|
|
163
|
+
});
|
|
164
|
+
}, this);
|
|
165
|
+
},
|
|
166
|
+
parseFFOrSafari: function(t) {
|
|
167
|
+
return t.stack.split("\n").filter(function(e) {
|
|
168
|
+
return !e.match(r);
|
|
169
|
+
}, this).map(function(t) {
|
|
170
|
+
if (t.indexOf(" > eval") > -1 && (t = t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g, ":$1")), t.indexOf("@") === -1 && t.indexOf(":") === -1) return new e({ functionName: t });
|
|
171
|
+
var n = /((.*".+"[^@]*)?[^@]*)(?:@)/, r = t.match(n), i = r && r[1] ? r[1] : void 0, a = this.extractLocation(t.replace(n, ""));
|
|
172
|
+
return new e({
|
|
173
|
+
functionName: i,
|
|
174
|
+
fileName: a[0],
|
|
175
|
+
lineNumber: a[1],
|
|
176
|
+
columnNumber: a[2],
|
|
177
|
+
source: t
|
|
178
|
+
});
|
|
179
|
+
}, this);
|
|
180
|
+
},
|
|
181
|
+
parseOpera: function(e) {
|
|
182
|
+
return !e.stacktrace || e.message.indexOf("\n") > -1 && e.message.split("\n").length > e.stacktrace.split("\n").length ? this.parseOpera9(e) : e.stack ? this.parseOpera11(e) : this.parseOpera10(e);
|
|
183
|
+
},
|
|
184
|
+
parseOpera9: function(t) {
|
|
185
|
+
for (var n = /Line (\d+).*script (?:in )?(\S+)/i, r = t.message.split("\n"), i = [], a = 2, o = r.length; a < o; a += 2) {
|
|
186
|
+
var s = n.exec(r[a]);
|
|
187
|
+
s && i.push(new e({
|
|
188
|
+
fileName: s[2],
|
|
189
|
+
lineNumber: s[1],
|
|
190
|
+
source: r[a]
|
|
191
|
+
}));
|
|
192
|
+
}
|
|
193
|
+
return i;
|
|
194
|
+
},
|
|
195
|
+
parseOpera10: function(t) {
|
|
196
|
+
for (var n = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, r = t.stacktrace.split("\n"), i = [], a = 0, o = r.length; a < o; a += 2) {
|
|
197
|
+
var s = n.exec(r[a]);
|
|
198
|
+
s && i.push(new e({
|
|
199
|
+
functionName: s[3] || void 0,
|
|
200
|
+
fileName: s[2],
|
|
201
|
+
lineNumber: s[1],
|
|
202
|
+
source: r[a]
|
|
203
|
+
}));
|
|
204
|
+
}
|
|
205
|
+
return i;
|
|
206
|
+
},
|
|
207
|
+
parseOpera11: function(n) {
|
|
208
|
+
return n.stack.split("\n").filter(function(e) {
|
|
209
|
+
return !!e.match(t) && !e.match(/^Error created at/);
|
|
210
|
+
}, this).map(function(t) {
|
|
211
|
+
var n = t.split("@"), r = this.extractLocation(n.pop()), i = n.shift() || "", a = i.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^\)]*\)/g, "") || void 0, o;
|
|
212
|
+
return i.match(/\(([^\)]*)\)/) && (o = i.replace(/^[^\(]+\(([^\)]*)\)$/, "$1")), new e({
|
|
213
|
+
functionName: a,
|
|
214
|
+
args: o === void 0 || o === "[arguments not available]" ? void 0 : o.split(","),
|
|
215
|
+
fileName: r[0],
|
|
216
|
+
lineNumber: r[1],
|
|
217
|
+
columnNumber: r[2],
|
|
218
|
+
source: t
|
|
219
|
+
});
|
|
220
|
+
}, this);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
});
|
|
224
|
+
}),
|
|
225
|
+
(function(e, t, n) {
|
|
226
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.default = function() {
|
|
227
|
+
function e(e) {
|
|
228
|
+
var t = e === void 0 ? {
|
|
229
|
+
emit: !1,
|
|
230
|
+
logger: console.log
|
|
231
|
+
} : e, n = t.emit, r = t.logger;
|
|
232
|
+
this.emit = n, this.externalLogger = r, this.buffer = [], this.customLevel = {}, this.error = this.setLevel(1), this.warn = this.setLevel(2), this.info = this.setLevel(3), this.log = this.setLevel(4);
|
|
233
|
+
}
|
|
234
|
+
return e.prototype.getLogs = function(e) {
|
|
235
|
+
return typeof e == "function" ? this.buffer.filter(function(t) {
|
|
236
|
+
return t.level === e.level;
|
|
237
|
+
}) : e ? this.buffer.filter(function(t) {
|
|
238
|
+
return t.level === e;
|
|
239
|
+
}) : this.buffer;
|
|
240
|
+
}, e.prototype.setLevel = function(e) {
|
|
241
|
+
var t = this, n = function() {
|
|
242
|
+
var n = [...arguments], r = {
|
|
243
|
+
level: e,
|
|
244
|
+
time: Date.now(),
|
|
245
|
+
msg: n.join(" ")
|
|
246
|
+
};
|
|
247
|
+
t.buffer.push(r), t.emit && t.externalLogger(r);
|
|
248
|
+
};
|
|
249
|
+
return n.level = e, this.customLevel[e] = n, n;
|
|
250
|
+
}, e;
|
|
251
|
+
}();
|
|
252
|
+
}),
|
|
253
|
+
(function(e, t, n) {
|
|
254
|
+
t.a = (function(e) {
|
|
255
|
+
var t = this.constructor;
|
|
256
|
+
return this.then(function(n) {
|
|
257
|
+
return t.resolve(e()).then(function() {
|
|
258
|
+
return n;
|
|
259
|
+
});
|
|
260
|
+
}, function(n) {
|
|
261
|
+
return t.resolve(e()).then(function() {
|
|
262
|
+
return t.reject(n);
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
}),
|
|
267
|
+
(function(e, t, n) {
|
|
268
|
+
(function(e) {
|
|
269
|
+
var r = n(4), i = setTimeout;
|
|
270
|
+
function a() {}
|
|
271
|
+
function o(e, t) {
|
|
272
|
+
return function() {
|
|
273
|
+
e.apply(t, arguments);
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
function s(e) {
|
|
277
|
+
if (!(this instanceof s)) throw TypeError("Promises must be constructed via new");
|
|
278
|
+
if (typeof e != "function") throw TypeError("not a function");
|
|
279
|
+
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], p(e, this);
|
|
280
|
+
}
|
|
281
|
+
function c(e, t) {
|
|
282
|
+
for (; e._state === 3;) e = e._value;
|
|
283
|
+
e._state === 0 ? e._deferreds.push(t) : (e._handled = !0, s._immediateFn(function() {
|
|
284
|
+
var n = e._state === 1 ? t.onFulfilled : t.onRejected;
|
|
285
|
+
if (n === null) (e._state === 1 ? l : u)(t.promise, e._value);
|
|
286
|
+
else {
|
|
287
|
+
var r;
|
|
288
|
+
try {
|
|
289
|
+
r = n(e._value);
|
|
290
|
+
} catch (e) {
|
|
291
|
+
u(t.promise, e);
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
l(t.promise, r);
|
|
295
|
+
}
|
|
296
|
+
}));
|
|
297
|
+
}
|
|
298
|
+
function l(e, t) {
|
|
299
|
+
try {
|
|
300
|
+
if (t === e) throw TypeError("A promise cannot be resolved with itself.");
|
|
301
|
+
if (t && (typeof t == "object" || typeof t == "function")) {
|
|
302
|
+
var n = t.then;
|
|
303
|
+
if (t instanceof s) {
|
|
304
|
+
e._state = 3, e._value = t, d(e);
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
if (typeof n == "function") {
|
|
308
|
+
p(o(n, t), e);
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
e._state = 1, e._value = t, d(e);
|
|
313
|
+
} catch (t) {
|
|
314
|
+
u(e, t);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
function u(e, t) {
|
|
318
|
+
e._state = 2, e._value = t, d(e);
|
|
319
|
+
}
|
|
320
|
+
function d(e) {
|
|
321
|
+
e._state === 2 && e._deferreds.length === 0 && s._immediateFn(function() {
|
|
322
|
+
e._handled || s._unhandledRejectionFn(e._value);
|
|
323
|
+
});
|
|
324
|
+
for (var t = 0, n = e._deferreds.length; t < n; t++) c(e, e._deferreds[t]);
|
|
325
|
+
e._deferreds = null;
|
|
326
|
+
}
|
|
327
|
+
function f(e, t, n) {
|
|
328
|
+
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
|
|
329
|
+
}
|
|
330
|
+
function p(e, t) {
|
|
331
|
+
var n = !1;
|
|
332
|
+
try {
|
|
333
|
+
e(function(e) {
|
|
334
|
+
n || (n = !0, l(t, e));
|
|
335
|
+
}, function(e) {
|
|
336
|
+
n || (n = !0, u(t, e));
|
|
337
|
+
});
|
|
338
|
+
} catch (e) {
|
|
339
|
+
if (n) return;
|
|
340
|
+
n = !0, u(t, e);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
s.prototype.catch = function(e) {
|
|
344
|
+
return this.then(null, e);
|
|
345
|
+
}, s.prototype.then = function(e, t) {
|
|
346
|
+
var n = new this.constructor(a);
|
|
347
|
+
return c(this, new f(e, t, n)), n;
|
|
348
|
+
}, s.prototype.finally = r.a, s.all = function(e) {
|
|
349
|
+
return new s(function(t, n) {
|
|
350
|
+
if (!e || e.length === void 0) throw TypeError("Promise.all accepts an array");
|
|
351
|
+
var r = Array.prototype.slice.call(e);
|
|
352
|
+
if (r.length === 0) return t([]);
|
|
353
|
+
var i = r.length;
|
|
354
|
+
function a(e, o) {
|
|
355
|
+
try {
|
|
356
|
+
if (o && (typeof o == "object" || typeof o == "function")) {
|
|
357
|
+
var s = o.then;
|
|
358
|
+
if (typeof s == "function") {
|
|
359
|
+
s.call(o, function(t) {
|
|
360
|
+
a(e, t);
|
|
361
|
+
}, n);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
r[e] = o, --i === 0 && t(r);
|
|
366
|
+
} catch (e) {
|
|
367
|
+
n(e);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
for (var o = 0; o < r.length; o++) a(o, r[o]);
|
|
371
|
+
});
|
|
372
|
+
}, s.resolve = function(e) {
|
|
373
|
+
return e && typeof e == "object" && e.constructor === s ? e : new s(function(t) {
|
|
374
|
+
t(e);
|
|
375
|
+
});
|
|
376
|
+
}, s.reject = function(e) {
|
|
377
|
+
return new s(function(t, n) {
|
|
378
|
+
n(e);
|
|
379
|
+
});
|
|
380
|
+
}, s.race = function(e) {
|
|
381
|
+
return new s(function(t, n) {
|
|
382
|
+
for (var r = 0, i = e.length; r < i; r++) e[r].then(t, n);
|
|
383
|
+
});
|
|
384
|
+
}, s._immediateFn = typeof e == "function" && function(t) {
|
|
385
|
+
e(t);
|
|
386
|
+
} || function(e) {
|
|
387
|
+
i(e, 0);
|
|
388
|
+
}, s._unhandledRejectionFn = function(e) {
|
|
389
|
+
typeof console < "u" && console && console.warn("Possible Unhandled Promise Rejection:", e);
|
|
390
|
+
}, t.a = s;
|
|
391
|
+
}).call(this, n(18).setImmediate);
|
|
392
|
+
}),
|
|
393
|
+
(function(e, t, n) {
|
|
394
|
+
n.r(t);
|
|
395
|
+
var r = {};
|
|
396
|
+
n.r(r), n.d(r, "default", function() {
|
|
397
|
+
return Rt;
|
|
398
|
+
});
|
|
399
|
+
var i = n(5), a = function(e) {
|
|
400
|
+
return typeof e == "function";
|
|
401
|
+
}, o = function(e) {
|
|
402
|
+
var t = (e === void 0 ? window : e).Promise;
|
|
403
|
+
return t && t.all && t.race && t.resolve && t.reject && a(t) && a(t.all) && a(t.race) && a(t.resolve) && a(t.reject);
|
|
404
|
+
}() ? window.Promise : i.a, s = function(e, t, n, r) {
|
|
405
|
+
return r === void 0 && (r = window), window.addEventListener ? r.addEventListener(e, n, !1) : window.attachEvent && r.attachEvent(t, n), {
|
|
406
|
+
eventName: e,
|
|
407
|
+
handler: n,
|
|
408
|
+
element: r
|
|
409
|
+
};
|
|
410
|
+
}, c = function(e, t, n) {
|
|
411
|
+
n === void 0 && (n = window), n.removeEventListener ? n.removeEventListener(e, t, !1) : n.detachEvent ? n.detachEvent("on" + e, t) : n["on" + e] = null;
|
|
412
|
+
}, l = function(e, t) {
|
|
413
|
+
if (typeof window.CustomEvent == "function") return new window.CustomEvent(e, { detail: t });
|
|
414
|
+
if (typeof document.createEvent == "function") {
|
|
415
|
+
var n = document.createEvent("CustomEvent");
|
|
416
|
+
return n.initCustomEvent(e, !1, !1, t), n;
|
|
417
|
+
}
|
|
418
|
+
}, u = function(e) {
|
|
419
|
+
for (var t in e) if (e.hasOwnProperty(t)) return !1;
|
|
420
|
+
return JSON.stringify(e) === JSON.stringify({});
|
|
421
|
+
}, d = function(e, t) {
|
|
422
|
+
if (t.indexOf) return t.indexOf(e);
|
|
423
|
+
for (var n = 0; n < t.length; n++) if (t[n] === e) return n;
|
|
424
|
+
return -1;
|
|
425
|
+
}, f = function(e, t) {
|
|
426
|
+
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
427
|
+
return e;
|
|
428
|
+
}, p = function(e, t, n) {
|
|
429
|
+
if (t === void 0 && (t = "*"), n === void 0 && (n = document), typeof document.getElementsByClassName == "function") return n.getElementsByClassName(e);
|
|
430
|
+
for (var r = [], i = RegExp("(^| )" + e + "( |$)"), a = C(n.getElementsByTagName(t)), o = 0, s = a; o < s.length; o++) {
|
|
431
|
+
var c = s[o];
|
|
432
|
+
i.test(c.className) && r.push(c);
|
|
433
|
+
}
|
|
434
|
+
return r;
|
|
435
|
+
}, m = function(e, t) {
|
|
436
|
+
t === void 0 && (t = 0);
|
|
437
|
+
var n = S(e);
|
|
438
|
+
return n.height !== 0 || n.width !== 0 ? (n.height / (n.width + t) * 100).toFixed(2) : 56.25.toFixed(2);
|
|
439
|
+
}, h = function(e, t) {
|
|
440
|
+
t === void 0 && (t = "log"), window.console && typeof window.console[t] == "function" && console[t](e);
|
|
441
|
+
}, g = function(e, t) {
|
|
442
|
+
for (var n = 0, r = e; n < r.length; n++) {
|
|
443
|
+
var i = r[n];
|
|
444
|
+
if (t(i) === !0) return i;
|
|
445
|
+
}
|
|
446
|
+
}, _ = function(e, t) {
|
|
447
|
+
return g(e, function(e) {
|
|
448
|
+
return e === t;
|
|
449
|
+
});
|
|
450
|
+
}, v = function(e) {
|
|
451
|
+
var t = !1;
|
|
452
|
+
return function() {
|
|
453
|
+
var n = [...arguments];
|
|
454
|
+
t ||= (e && e.apply(void 0, n), !0);
|
|
455
|
+
};
|
|
456
|
+
}, y = function(e) {
|
|
457
|
+
return function(t) {
|
|
458
|
+
(t.keyCode === 32 || t.keyCode === 13) && e(t);
|
|
459
|
+
};
|
|
460
|
+
}, b = function(e) {
|
|
461
|
+
return function(t) {
|
|
462
|
+
t.keyCode === 27 && e(t);
|
|
463
|
+
};
|
|
464
|
+
}, x = function() {
|
|
465
|
+
return document.currentScript ? document.currentScript : g(C(document.getElementsByTagName("script")), function(e) {
|
|
466
|
+
return e.src && (e.src.match("vidyard-embed-code.js") !== null || e.src.match(/v4(\.umd)?\.js/) !== null);
|
|
467
|
+
});
|
|
468
|
+
}, S = function(e) {
|
|
469
|
+
if (e.naturalWidth) return {
|
|
470
|
+
width: e.naturalWidth,
|
|
471
|
+
height: e.naturalHeight
|
|
472
|
+
};
|
|
473
|
+
var t = new Image();
|
|
474
|
+
return t.src = e.src, {
|
|
475
|
+
width: t.width,
|
|
476
|
+
height: t.height
|
|
477
|
+
};
|
|
478
|
+
}, C = function(e) {
|
|
479
|
+
return Array.prototype.slice.call(e);
|
|
480
|
+
}, ee = function(e) {
|
|
481
|
+
return new o(function(t, n) {
|
|
482
|
+
try {
|
|
483
|
+
t(JSON.parse(e));
|
|
484
|
+
} catch (e) {
|
|
485
|
+
n(e);
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
}, te = function(e) {
|
|
489
|
+
var t = e.endpoint, n = e.payload, r = n === void 0 ? {} : n, i = e.method, a = i === void 0 ? "GET" : i;
|
|
490
|
+
return new o(function(e, n) {
|
|
491
|
+
var i = new XMLHttpRequest().withCredentials === void 0 && XDomainRequest ? new XDomainRequest() : new XMLHttpRequest();
|
|
492
|
+
i.open(a, t), i instanceof XMLHttpRequest && i.setRequestHeader("Content-Type", "text/plain"), i.onerror = function(e) {
|
|
493
|
+
return n(e);
|
|
494
|
+
}, i.onload = function() {
|
|
495
|
+
i instanceof XMLHttpRequest ? Math.floor(i.status / 100) === 2 ? e(i.responseText) : n() : e(i.responseText);
|
|
496
|
+
}, i.send(JSON.stringify(r));
|
|
497
|
+
});
|
|
498
|
+
}, ne = function() {
|
|
499
|
+
for (var e = [
|
|
500
|
+
[
|
|
501
|
+
"requestFullscreen",
|
|
502
|
+
"exitFullscreen",
|
|
503
|
+
"fullscreenElement",
|
|
504
|
+
"fullscreenchange"
|
|
505
|
+
],
|
|
506
|
+
[
|
|
507
|
+
"webkitRequestFullscreen",
|
|
508
|
+
"webkitExitFullscreen",
|
|
509
|
+
"webkitFullscreenElement",
|
|
510
|
+
"webkitfullscreenchange"
|
|
511
|
+
],
|
|
512
|
+
[
|
|
513
|
+
"mozRequestFullScreen",
|
|
514
|
+
"mozCancelFullScreen",
|
|
515
|
+
"mozFullScreenElement",
|
|
516
|
+
"mozfullscreenchange"
|
|
517
|
+
],
|
|
518
|
+
[
|
|
519
|
+
"msRequestFullscreen",
|
|
520
|
+
"msExitFullscreen",
|
|
521
|
+
"msFullscreenElement",
|
|
522
|
+
"MSFullscreenChange"
|
|
523
|
+
]
|
|
524
|
+
], t = [], n = {}, r = 0, i = e; r < i.length; r++) {
|
|
525
|
+
var a = i[r];
|
|
526
|
+
if (a[1] in document) {
|
|
527
|
+
t = a;
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
if (t && t.length) {
|
|
532
|
+
for (var o = 0; o < t.length; o++) n[e[0][o]] = t[o];
|
|
533
|
+
return n;
|
|
534
|
+
}
|
|
535
|
+
return null;
|
|
536
|
+
}, re = function(e) {
|
|
537
|
+
for (var t = {}, n = function(e) {
|
|
538
|
+
return e.name.replace("data-", "");
|
|
539
|
+
}, r = 0; r < e.attributes.length; r += 1) {
|
|
540
|
+
var i = e.attributes[r];
|
|
541
|
+
i.name.indexOf("data-") < 0 || (t[n(i)] = i.value);
|
|
542
|
+
}
|
|
543
|
+
return t;
|
|
544
|
+
}, w = function(e) {
|
|
545
|
+
e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
|
|
546
|
+
var t = "[\\?&]" + e + "=([^&#]*)", n = new RegExp(t).exec(window.location.search);
|
|
547
|
+
if (n !== null) return n[1];
|
|
548
|
+
}, ie = function(e, t) {
|
|
549
|
+
try {
|
|
550
|
+
var n = JSON.parse(decodeURIComponent(e));
|
|
551
|
+
return Object.keys(n).reduce(function(e, r) {
|
|
552
|
+
return e[t + "[" + r + "]"] = n[r], e;
|
|
553
|
+
}, {});
|
|
554
|
+
} catch {
|
|
555
|
+
return h("Invalid " + t + " payload", "warn"), {};
|
|
556
|
+
}
|
|
557
|
+
}, ae = function(e) {
|
|
558
|
+
return Object.keys(e).reduce(function(t, n) {
|
|
559
|
+
if (n === "vydata") {
|
|
560
|
+
var r = ie(e[n], "vydata");
|
|
561
|
+
Object.keys(r).forEach(function(e) {
|
|
562
|
+
t[e] = r[e];
|
|
563
|
+
});
|
|
564
|
+
} else t[n] = e[n];
|
|
565
|
+
return t;
|
|
566
|
+
}, {});
|
|
567
|
+
}, oe = function(e, t, n) {
|
|
568
|
+
var r = function(e, t) {
|
|
569
|
+
return e.className.indexOf(t) !== -1;
|
|
570
|
+
}, i = function(e, t) {
|
|
571
|
+
r(e, t) || (e.className = e.className.trim() + " " + t);
|
|
572
|
+
};
|
|
573
|
+
n === !0 ? i(e, t) : n === !1 || r(e, t) ? function(e, t) {
|
|
574
|
+
r(e, t) && (e.className = e.className.replace(t, " ").trim());
|
|
575
|
+
}(e, t) : i(e, t);
|
|
576
|
+
}, T = "4.3.26", se = /vidyard\.com\/embed\/v4/, ce = "/integrations.js", le = .5, ue = 319, de = "/details.js", fe = "/style.js", pe = (function() {
|
|
577
|
+
var e;
|
|
578
|
+
return {
|
|
579
|
+
setPlaybackURL: function(t) {
|
|
580
|
+
return e = t, e;
|
|
581
|
+
},
|
|
582
|
+
getPlaybackURL: function() {
|
|
583
|
+
var t = x(), n = t ? t.getAttribute("data-playbackurl") : null;
|
|
584
|
+
return e || window.VIDYARD_PLAYBACK_URL || n || "play.vidyard.com";
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
})(), me = pe.setPlaybackURL, E = pe.getPlaybackURL, D = function() {
|
|
588
|
+
return "https://" + E() + "/v4/";
|
|
589
|
+
}, he = function() {
|
|
590
|
+
return "https://" + E() + "/v4/error";
|
|
591
|
+
}, O = function(e, t, n) {
|
|
592
|
+
if (t && n) {
|
|
593
|
+
if (window.postMessage && n.contentWindow) n.contentWindow.postMessage(JSON.stringify(e), t);
|
|
594
|
+
else {
|
|
595
|
+
if (e.event !== "associateVisitor") return;
|
|
596
|
+
var r = e.event + "," + e.data.type + "," + e.data.value + "|", i = n.src;
|
|
597
|
+
i.indexOf("#") === -1 && (i += "#"), i += r, n.src = i;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}, ge = function(e) {
|
|
601
|
+
return function(t) {
|
|
602
|
+
var n = _e(t);
|
|
603
|
+
n && e(n);
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
function _e(e) {
|
|
607
|
+
if (typeof e.data == "string" && e.data !== "") try {
|
|
608
|
+
var t = JSON.parse(e.data), n = p("vidyard-iframe-" + t.uuid, "iframe")[0], r = (n ? n.contentWindow : null) === e.source, i = typeof t.event == "string";
|
|
609
|
+
return !r || !i ? void 0 : t;
|
|
610
|
+
} catch {
|
|
611
|
+
h("Invalid postMessage received", "warn");
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
var ve = [
|
|
616
|
+
"pardot",
|
|
617
|
+
"hubspotutk",
|
|
618
|
+
"_mkto_trk",
|
|
619
|
+
"vy_dreamforce",
|
|
620
|
+
"eloqua"
|
|
621
|
+
], ye = [
|
|
622
|
+
"pardot",
|
|
623
|
+
"hubspot",
|
|
624
|
+
"marketo",
|
|
625
|
+
"dreamforce",
|
|
626
|
+
"eloqua"
|
|
627
|
+
];
|
|
628
|
+
function be() {
|
|
629
|
+
var e = this, t = !1, n = {};
|
|
630
|
+
this.updatePlayer = function(e) {
|
|
631
|
+
if (e._tmpOrg && e.iframe) {
|
|
632
|
+
var t = e._tmpOrg.orgId;
|
|
633
|
+
n[t] || (n[t] = {
|
|
634
|
+
foundIntegrations: {},
|
|
635
|
+
id: t,
|
|
636
|
+
integrations: e._tmpOrg,
|
|
637
|
+
players: []
|
|
638
|
+
}), e.org = n[t];
|
|
639
|
+
for (var r = 0, i = n[t].players; r < i.length; r++) if (i[r].iframe === e.iframe) return;
|
|
640
|
+
n[t].players.push(e);
|
|
641
|
+
var a = e.org.integrations, o = a.eloqua, s = a.eloquaFirstPartyDomain;
|
|
642
|
+
o && (e.status !== null && e.status.consent ? _(o, s) : e.on("status", function t() {
|
|
643
|
+
e.status.consent && (_(o, s), e.off("status", t));
|
|
644
|
+
})), p();
|
|
645
|
+
}
|
|
646
|
+
}, this.safelyCommunicateIntegration = function(e, t, n) {
|
|
647
|
+
e.org !== void 0 && n != null && !r(e, t) && c(e, t, n) && (e.org = a(e.org, t, e.uuid));
|
|
648
|
+
}, this.addKnownVisitor = function(e, t, n) {
|
|
649
|
+
if (n) for (var r = 0, i = n.players; r < i.length; r++) {
|
|
650
|
+
var a = i[r];
|
|
651
|
+
f(a, e, t);
|
|
652
|
+
}
|
|
653
|
+
}, this.getCookie = function(e, t) {
|
|
654
|
+
var n = document.cookie.split(";");
|
|
655
|
+
if (e === "eloqua" && typeof window.GetElqCustomerGUID == "function") return window.GetElqCustomerGUID();
|
|
656
|
+
for (var r = m(ve[ye.indexOf(e)], t), i = 0, a = n; i < a.length; i++) {
|
|
657
|
+
var o = a[i], s = o.indexOf("="), c = o.substr(0, s).replace(/^\s+|\s+$/g, ""), l = o.substr(s + 1);
|
|
658
|
+
if (c === r) return decodeURIComponent(l);
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
var r = function(e, t) {
|
|
662
|
+
return e.org && e.org.foundIntegrations && e.org.foundIntegrations[t] && e.org.foundIntegrations[t].sentPlayers && d(e.uuid, e.org.foundIntegrations[t].sentPlayers) !== -1;
|
|
663
|
+
}, i = function(e, t) {
|
|
664
|
+
return e.foundIntegrations[t] || (e.foundIntegrations[t] = {
|
|
665
|
+
externalIdentifier: null,
|
|
666
|
+
sentPlayers: []
|
|
667
|
+
}), e;
|
|
668
|
+
}, a = function(e, t, n) {
|
|
669
|
+
return e = i(e, t), e.foundIntegrations[t].sentPlayers.push(n), e;
|
|
670
|
+
}, o = function(e, t, n) {
|
|
671
|
+
return e = i(e, t), e.foundIntegrations[t].externalIdentifier = n, e;
|
|
672
|
+
}, c = function(e, t, n) {
|
|
673
|
+
if (!e.ready()) return !1;
|
|
674
|
+
var r = {
|
|
675
|
+
data: {
|
|
676
|
+
type: t,
|
|
677
|
+
value: n
|
|
678
|
+
},
|
|
679
|
+
event: "associateVisitor",
|
|
680
|
+
uuid: e.uuid
|
|
681
|
+
};
|
|
682
|
+
return h("IntegrationsWatcher.communicateIntegration " + r, "debug"), O(r, "https://" + E(), e.iframe), !0;
|
|
683
|
+
}, l = function(t, n, r) {
|
|
684
|
+
if (t !== void 0 && r != null) for (var i = 0, a = t; i < a.length; i++) {
|
|
685
|
+
var o = a[i];
|
|
686
|
+
e.safelyCommunicateIntegration(o, n, r);
|
|
687
|
+
}
|
|
688
|
+
}, u = function(e, t, n) {
|
|
689
|
+
O({
|
|
690
|
+
data: {
|
|
691
|
+
type: t,
|
|
692
|
+
value: n
|
|
693
|
+
},
|
|
694
|
+
event: "identifyVisitor",
|
|
695
|
+
uuid: e.uuid
|
|
696
|
+
}, "https://" + E(), e.iframe);
|
|
697
|
+
}, f = function(e, t, n) {
|
|
698
|
+
e.ready() ? u(e, t, n) : e.on("ready", function() {
|
|
699
|
+
u(e, t, n);
|
|
700
|
+
});
|
|
701
|
+
}, p = function() {
|
|
702
|
+
for (var t = 0, r = ye; t < r.length; t++) {
|
|
703
|
+
var i = r[t];
|
|
704
|
+
for (var a in n) if (n.hasOwnProperty(a)) {
|
|
705
|
+
var s = n[a];
|
|
706
|
+
if (!s.integrations[i]) continue;
|
|
707
|
+
var c = e.getCookie(i, s);
|
|
708
|
+
if (!c || (c = g(i, c, s), !c)) continue;
|
|
709
|
+
s = o(s, i, c), l(s.players, i, c);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}, m = function(e, t) {
|
|
713
|
+
return e === "pardot" && t && t.integrations.pardot ? "visitor_id" + t.integrations.pardot : e;
|
|
714
|
+
}, g = function(e, t, n) {
|
|
715
|
+
if (e === "marketo") {
|
|
716
|
+
if (!n.integrations.marketo || t.toLowerCase().indexOf(n.integrations.marketo.toLowerCase()) === -1) return null;
|
|
717
|
+
t = encodeURIComponent(t);
|
|
718
|
+
}
|
|
719
|
+
return t;
|
|
720
|
+
}, _ = function(e, n) {
|
|
721
|
+
if (!t) {
|
|
722
|
+
t = !0;
|
|
723
|
+
var r = function() {
|
|
724
|
+
if (!document.getElementById("vidyard-eloqua-include")) {
|
|
725
|
+
window._elqQ = window._elqQ || [], window._elqQ.push(["elqSetSiteId", e]), n && window._elqQ.push(["elqUseFirstPartyCookie", n]), window._elqQ.push(["elqTrackPageView"]), window._elqQ.push(["elqGetCustomerGUID"]);
|
|
726
|
+
var t = document.createElement("script");
|
|
727
|
+
t.id = "vidyard-eloqua-include", t.type = "text/javascript", t.async = !0, t.src = "https://img.en25.com/i/elqCfg.min.js";
|
|
728
|
+
var r = document.getElementsByTagName("script")[0];
|
|
729
|
+
r.parentNode.insertBefore(t, r);
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
document.readyState === "complete" ? r() : s("DOMContentLoaded", "onload", r);
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
setInterval(function() {
|
|
736
|
+
p();
|
|
737
|
+
}, 1e3);
|
|
738
|
+
}
|
|
739
|
+
var xe = function() {
|
|
740
|
+
window.onVidyardAPI && typeof window.onVidyardAPI == "function" && window.onVidyardAPI(window.VidyardV4);
|
|
741
|
+
}, Se = function() {
|
|
742
|
+
document.dispatchEvent(l("onVidyardAPI", window.VidyardV4));
|
|
743
|
+
}, Ce = v(function() {
|
|
744
|
+
xe(), Se();
|
|
745
|
+
}), we = n(3), k = new (/* @__PURE__ */ n.n(we)).a({
|
|
746
|
+
emit: !!window.location.search.match("vydebug=1"),
|
|
747
|
+
logger: function(e) {
|
|
748
|
+
return h(e, "info");
|
|
749
|
+
}
|
|
750
|
+
}), A = x();
|
|
751
|
+
A && (k.info("vidyardEmbed V" + T + " loaded from " + A.src), k.info("data-playbackurl=" + A.getAttribute("data-playbackurl"))), k.info("userAgent " + window.navigator.userAgent), k.info("cookies " + navigator.cookieEnabled), window.performance && window.performance.timing && window.performance.timing.navigationStart && k.info("Script load time " + (Date.now() - window.performance.timing.navigationStart));
|
|
752
|
+
var Te = {
|
|
753
|
+
logger: k,
|
|
754
|
+
getPlaybackURL: E,
|
|
755
|
+
setPlaybackURL: me,
|
|
756
|
+
version: T
|
|
757
|
+
};
|
|
758
|
+
function Ee(e, t) {
|
|
759
|
+
var n = window.VidyardV4.playerReadyListeners;
|
|
760
|
+
n[t] = n[t] || [], n[t].push(e);
|
|
761
|
+
for (var r = 0, i = window.VidyardV4.players; r < i.length; r++) {
|
|
762
|
+
var a = i[r];
|
|
763
|
+
(t === void 0 || a.uuid === t) && a.on("ready", e);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
function De(e) {
|
|
767
|
+
var t = window.VidyardV4.playerReadyListeners, n = e.uuid, r = k.setLevel(e.uuid);
|
|
768
|
+
t[n] = t[n] || [];
|
|
769
|
+
var i = t[n].concat(t[void 0]);
|
|
770
|
+
Object.keys(i).forEach(function(t) {
|
|
771
|
+
var n = i[t];
|
|
772
|
+
e.on("ready", n), r("attaching ready callbacks");
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
var Oe = function() {
|
|
776
|
+
return "autoplay; fullscreen; picture-in-picture; display-capture; clipboard-write";
|
|
777
|
+
}, ke = function(e, t) {
|
|
778
|
+
return "<div class=\"vidyard-div-" + e.uuid + "\" role=\"region\" aria-label=\"Vidyard media player\" style=\"position: absolute; padding-bottom: " + t.ratio + "%; height: 0; overflow: hidden; max-width: 100%; \">" + function(n) {
|
|
779
|
+
return e.type === "inline" ? "<div class=\"vidyard-inner-container-" + e.uuid + "\" style=\"position: absolute;height: 100%; width: 100%; " + (t.maxWidth ? "max-width: " + t.maxWidth + "px; " : "") + (t.maxHeight ? "max-height: " + t.maxHeight + "px; " : "") + "\"> " + n + "</div> " : n;
|
|
780
|
+
}("<iframe allow=\"" + Oe() + "\"allowfullscreen allowtransparency=\"true\" referrerpolicy=\"no-referrer-when-downgrade\" class=\"vidyard-iframe-" + e.uuid + "\" frameborder=0 height=\"100%\" width=\"100%\" scrolling=no src=\"https://" + E() + "/" + e.uuid + e.toQueryString() + "\" title=\"Vidyard video player\" style=\"opacity: 0; background-color: transparent; position: absolute; top: 0; left: 0;\"></iframe>") + "</div>";
|
|
781
|
+
}, Ae = function(e) {
|
|
782
|
+
var t = document.createElement("script");
|
|
783
|
+
return t.type = "application/ld+json", t.text = JSON.stringify(e), t;
|
|
784
|
+
}, je = function(e) {
|
|
785
|
+
return new o(function(t, n) {
|
|
786
|
+
return M({
|
|
787
|
+
error: n,
|
|
788
|
+
success: t,
|
|
789
|
+
url: "" + D() + e + fe,
|
|
790
|
+
uuid: "style_" + e
|
|
791
|
+
});
|
|
792
|
+
});
|
|
793
|
+
}, Me = function(e) {
|
|
794
|
+
return new o(function(t, n) {
|
|
795
|
+
return M({
|
|
796
|
+
error: n,
|
|
797
|
+
success: t,
|
|
798
|
+
url: "" + D() + e + ce,
|
|
799
|
+
uuid: "integrations_" + e
|
|
800
|
+
});
|
|
801
|
+
});
|
|
802
|
+
}, Ne = function(e) {
|
|
803
|
+
return new o(function(t, n) {
|
|
804
|
+
return M({
|
|
805
|
+
error: n,
|
|
806
|
+
success: t,
|
|
807
|
+
url: "" + D() + e + de,
|
|
808
|
+
uuid: "details_" + e
|
|
809
|
+
});
|
|
810
|
+
});
|
|
811
|
+
}, Pe = function(e, t) {
|
|
812
|
+
return new o(function(n, r) {
|
|
813
|
+
var i = encodeURIComponent(t);
|
|
814
|
+
M({
|
|
815
|
+
error: r,
|
|
816
|
+
success: n,
|
|
817
|
+
url: "" + D() + e + "/contact/" + i + "/marketoContact.js",
|
|
818
|
+
uuid: "marketoContact_" + e
|
|
819
|
+
});
|
|
820
|
+
});
|
|
821
|
+
}, Fe = function(e) {
|
|
822
|
+
var t = e.error, n = e.url, r = e.requestUuid, i = document.createElement("script");
|
|
823
|
+
return i.type = "application/javascript", i.onerror = t, i.src = n + "?callback=window.VidyardV4.jsonp." + r + ".done", i.setAttribute("data-playbackurl", E()), document.body.appendChild(i), i;
|
|
824
|
+
}, j = {}, M = function(e) {
|
|
825
|
+
var t = e.url, n = e.uuid, r = e.success, i = e.error, a = n.replace(/-/g, ""), o = Fe({
|
|
826
|
+
error: i,
|
|
827
|
+
url: t,
|
|
828
|
+
requestUuid: a
|
|
829
|
+
}), s = v(function(e) {
|
|
830
|
+
r(e), o.parentNode.removeChild(o);
|
|
831
|
+
});
|
|
832
|
+
j[a] = j[a] || [], j[a].push(s), window.VidyardV4.jsonp[a] = { done: function(e) {
|
|
833
|
+
j[a].forEach(function(t) {
|
|
834
|
+
return t(e);
|
|
835
|
+
});
|
|
836
|
+
} };
|
|
837
|
+
}, N = { errors: { placeholder: "Cannot render the player, check the placeholder Image" } }, Ie = function(e, t) {
|
|
838
|
+
var n = {};
|
|
839
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
840
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
841
|
+
return n;
|
|
842
|
+
}, Le = function(e) {
|
|
843
|
+
if (!e) return o.reject(Error(N.errors.placeholder));
|
|
844
|
+
var t = S(e), n = t.width, r = t.height, i = e.getAttribute("data-uuid");
|
|
845
|
+
return e.src === "" || !i || e.complete && (n === 0 || r === 0) ? o.reject(Error(N.errors.placeholder)) : e.complete ? o.resolve(e) : new o(function(t, n) {
|
|
846
|
+
e.onload = function() {
|
|
847
|
+
return t(e);
|
|
848
|
+
}, e.onerror = function() {
|
|
849
|
+
return n(e);
|
|
850
|
+
};
|
|
851
|
+
});
|
|
852
|
+
}, Re = function(e) {
|
|
853
|
+
e === void 0 && (e = {});
|
|
854
|
+
var t = e.uuid, n = e.container, r = e.type, i = r === void 0 ? "inline" : r;
|
|
855
|
+
e.aspect;
|
|
856
|
+
var a = Ie(e, [
|
|
857
|
+
"uuid",
|
|
858
|
+
"container",
|
|
859
|
+
"type",
|
|
860
|
+
"aspect"
|
|
861
|
+
]);
|
|
862
|
+
if (t && n) {
|
|
863
|
+
k.setLevel("placeholder")("creating placeholder image");
|
|
864
|
+
var o = document.createElement("img"), s = a.width ? a.width + "px" : "100%", c = "\n display: block;\n margin: 0 auto;\n max-height: " + (a.height ? a.height + "px" : "100%") + ";\n max-width: " + s + ";\n opacity: 0;\n ";
|
|
865
|
+
return o.src = "https://" + E() + "/" + t + ".jpg", o.className = "vidyard-player-embed", o.setAttribute("style", c), o.setAttribute("data-uuid", t), o.setAttribute("data-type", i), Object.keys(a).forEach(function(e) {
|
|
866
|
+
return o.setAttribute("data-" + e, a[e]);
|
|
867
|
+
}), n.appendChild(o);
|
|
868
|
+
}
|
|
869
|
+
}, ze = function(e) {
|
|
870
|
+
var t = document.createElement("img");
|
|
871
|
+
return t.setAttribute("data-uuid", e), t.src = "//" + E() + "/" + e + ".jpg", Le(t);
|
|
872
|
+
}, Be = function(e) {
|
|
873
|
+
var t = e.dataParams, n = e.player, r = k.setLevel(t.uuid);
|
|
874
|
+
r("injecting inline embed");
|
|
875
|
+
var i = function() {
|
|
876
|
+
return n.placeholder.src === "//" + E() + "/" + n.uuid + ".jpg" ? o.resolve(!1) : ze(n.uuid).then(m).catch(function() {
|
|
877
|
+
return !1;
|
|
878
|
+
});
|
|
879
|
+
}, a = {
|
|
880
|
+
maxHeight: t.height ? parseInt(t.height, 10).toString() : null,
|
|
881
|
+
maxWidth: t.width ? parseInt(t.width, 10).toString() : null,
|
|
882
|
+
ratio: m(n.placeholder)
|
|
883
|
+
};
|
|
884
|
+
n.container.innerHTML = ke(t, a);
|
|
885
|
+
var c = n.container.getElementsByTagName("iframe")[0];
|
|
886
|
+
n.iframe = c;
|
|
887
|
+
var l = new o(function(e) {
|
|
888
|
+
s("load", "onload", e, c);
|
|
889
|
+
}), u = new o(function(e) {
|
|
890
|
+
n.on("ready", e);
|
|
891
|
+
});
|
|
892
|
+
n.on("sidePlaylistOpen", function() {
|
|
893
|
+
d();
|
|
894
|
+
}), o.race([l, u]).then(function() {
|
|
895
|
+
r("player or iFrame is ready"), i().then(function(e) {
|
|
896
|
+
e && (c.parentElement.parentElement.style.paddingBottom = e + "%");
|
|
897
|
+
});
|
|
898
|
+
var e = n.container.getElementsByClassName("vidyard-inner-container-" + n.uuid)[0];
|
|
899
|
+
n.placeholder.parentElement.removeChild(n.placeholder), oe(n.placeholder, "inserted", !0), e.appendChild(n.placeholder), c.parentElement.parentElement.style.position = "relative", c.style.opacity = "1";
|
|
900
|
+
}), l.then(function() {
|
|
901
|
+
n.placeholder.style.display = "none", c.parentElement.parentElement.style.backgroundColor = "transparent";
|
|
902
|
+
}), n.on("metadata", function e(t) {
|
|
903
|
+
c.title = t[0].name, n.off("metadata", e);
|
|
904
|
+
});
|
|
905
|
+
function d() {
|
|
906
|
+
var e = n.container.clientWidth >= ue * 2;
|
|
907
|
+
oe(n.container, "playlist-open", e);
|
|
908
|
+
}
|
|
909
|
+
r("getStyle sent"), je(n.uuid).then(function(e) {
|
|
910
|
+
r("getStyle received: " + JSON.stringify(e)), e.pl === 1 && t.playlist_always_open !== "0" || t.playlist_always_open === "1" ? (n.iframe.parentElement.setAttribute("data-pl", "true"), s("resize", "onresize", d), d()) : n.iframe.parentElement.setAttribute("data-pl", "false");
|
|
911
|
+
}).catch(function(e) {
|
|
912
|
+
r("getStyle failed, likely a network error");
|
|
913
|
+
});
|
|
914
|
+
}, Ve = function(e) {
|
|
915
|
+
e === void 0 && (e = document.body);
|
|
916
|
+
for (var t = 0, n = Array.from(e.children); t < n.length; t++) {
|
|
917
|
+
var r = n[t];
|
|
918
|
+
r.hasAttribute("aria-hidden") && r.setAttribute("data-vy-keep-hidden", r.getAttribute("aria-hidden")), r.setAttribute("aria-hidden", "true");
|
|
919
|
+
}
|
|
920
|
+
}, He = function(e) {
|
|
921
|
+
e === void 0 && (e = document.body);
|
|
922
|
+
for (var t = 0, n = Array.from(e.children); t < n.length; t++) {
|
|
923
|
+
var r = n[t];
|
|
924
|
+
r.getAttribute("data-vy-keep-hidden") ? r.setAttribute("aria-hidden", r.getAttribute("data-vy-keep-hidden")) : r.removeAttribute("aria-hidden"), r.removeAttribute("data-vy-keep-hidden");
|
|
925
|
+
}
|
|
926
|
+
}, Ue = { ios: function() {
|
|
927
|
+
return /ipad|iphone|ipod/i.test(navigator.userAgent);
|
|
928
|
+
} }, We = n(1), P = function(e) {
|
|
929
|
+
for (var t = Array(e.length), n = 0; n < e.length; ++n) t[n] = e[n];
|
|
930
|
+
return t;
|
|
931
|
+
}, Ge = function(e, t) {
|
|
932
|
+
return e.filter(function(e) {
|
|
933
|
+
return e === t;
|
|
934
|
+
})[0];
|
|
935
|
+
}, F = function(e) {
|
|
936
|
+
return Array.isArray(e) ? e : [e];
|
|
937
|
+
}, Ke = "data-focus-lock", qe = "data-focus-lock-disabled", Je = "data-no-focus-lock", Ye = "data-autofocus-inside", Xe = function() {
|
|
938
|
+
return document && P(document.querySelectorAll("[" + Je + "]")).some(function(e) {
|
|
939
|
+
return e.contains(document.activeElement);
|
|
940
|
+
});
|
|
941
|
+
}, Ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
942
|
+
return typeof e;
|
|
943
|
+
} : function(e) {
|
|
944
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
945
|
+
}, Qe = function e(t) {
|
|
946
|
+
for (var n = t.length, r = 0; r < n; r += 1) for (var i = function(n) {
|
|
947
|
+
if (r !== n && t[r].contains(t[n])) return { v: e(t.filter(function(e) {
|
|
948
|
+
return e !== t[n];
|
|
949
|
+
})) };
|
|
950
|
+
}, a = 0; a < n; a += 1) {
|
|
951
|
+
var o = i(a);
|
|
952
|
+
if ((o === void 0 ? "undefined" : Ze(o)) === "object") return o.v;
|
|
953
|
+
}
|
|
954
|
+
return t;
|
|
955
|
+
}, $e = function e(t) {
|
|
956
|
+
return t.parentNode ? e(t.parentNode) : t;
|
|
957
|
+
}, et = function(e) {
|
|
958
|
+
return F(e).filter(Boolean).reduce(function(e, t) {
|
|
959
|
+
var n = t.getAttribute(Ke);
|
|
960
|
+
return e.push.apply(e, n ? Qe(P($e(t).querySelectorAll("[" + Ke + "=\"" + n + "\"]:not([" + qe + "=\"disabled\"])"))) : [t]), e;
|
|
961
|
+
}, []);
|
|
962
|
+
}, tt = function(e) {
|
|
963
|
+
return e === document.activeElement;
|
|
964
|
+
}, nt = function(e) {
|
|
965
|
+
return !!Ge(P(e.querySelectorAll("iframe")), tt);
|
|
966
|
+
}, rt = function(e) {
|
|
967
|
+
var t = document && document.activeElement;
|
|
968
|
+
return !t || t.dataset && t.dataset.focusGuard ? !1 : et(e).reduce(function(e, n) {
|
|
969
|
+
return e || n.contains(t) || nt(n);
|
|
970
|
+
}, !1);
|
|
971
|
+
}, it = function(e, t) {
|
|
972
|
+
var n = e.tabIndex - t.tabIndex, r = e.index - t.index;
|
|
973
|
+
if (n) {
|
|
974
|
+
if (!e.tabIndex) return 1;
|
|
975
|
+
if (!t.tabIndex) return -1;
|
|
976
|
+
}
|
|
977
|
+
return n || r;
|
|
978
|
+
}, at = function(e, t, n) {
|
|
979
|
+
return P(e).map(function(e, t) {
|
|
980
|
+
return {
|
|
981
|
+
node: e,
|
|
982
|
+
index: t,
|
|
983
|
+
tabIndex: n && e.tabIndex === -1 ? (e.dataset || {}).focusGuard ? 0 : -1 : e.tabIndex
|
|
984
|
+
};
|
|
985
|
+
}).filter(function(e) {
|
|
986
|
+
return !t || e.tabIndex >= 0;
|
|
987
|
+
}).sort(it);
|
|
988
|
+
}, ot = [
|
|
989
|
+
"button:enabled:not([readonly])",
|
|
990
|
+
"select:enabled:not([readonly])",
|
|
991
|
+
"textarea:enabled:not([readonly])",
|
|
992
|
+
"input:enabled:not([readonly])",
|
|
993
|
+
"a[href]",
|
|
994
|
+
"area[href]",
|
|
995
|
+
"iframe",
|
|
996
|
+
"object",
|
|
997
|
+
"embed",
|
|
998
|
+
"[tabindex]",
|
|
999
|
+
"[contenteditable]",
|
|
1000
|
+
"[autofocus]"
|
|
1001
|
+
], st = ot.join(","), ct = st + ", [data-focus-guard]", I = function(e, t) {
|
|
1002
|
+
return e.reduce(function(e, n) {
|
|
1003
|
+
return e.concat(P(n.querySelectorAll(t ? ct : st)), n.parentNode ? P(n.parentNode.querySelectorAll(ot.join(","))).filter(function(e) {
|
|
1004
|
+
return e === n;
|
|
1005
|
+
}) : []);
|
|
1006
|
+
}, []);
|
|
1007
|
+
}, lt = function(e) {
|
|
1008
|
+
return P(e.querySelectorAll("[" + Ye + "]")).map(function(e) {
|
|
1009
|
+
return I([e]);
|
|
1010
|
+
}).reduce(function(e, t) {
|
|
1011
|
+
return e.concat(t);
|
|
1012
|
+
}, []);
|
|
1013
|
+
}, ut = function(e) {
|
|
1014
|
+
return !e || !e.getPropertyValue ? !1 : e.getPropertyValue("display") === "none" || e.getPropertyValue("visibility") === "hidden";
|
|
1015
|
+
}, dt = function e(t) {
|
|
1016
|
+
return !t || t === document || t.nodeType === Node.DOCUMENT_NODE || !ut(window.getComputedStyle(t, null)) && e(t.parentNode);
|
|
1017
|
+
}, ft = function(e) {
|
|
1018
|
+
return e.tagName !== "INPUT" && e.tagName !== "BUTTON" || e.type !== "hidden" && !e.disabled;
|
|
1019
|
+
}, pt = function e(t) {
|
|
1020
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1021
|
+
return n.push(t), t.parentNode && e(t.parentNode, n), n;
|
|
1022
|
+
}, L = function(e, t) {
|
|
1023
|
+
for (var n = pt(e), r = pt(t), i = 0; i < n.length; i += 1) {
|
|
1024
|
+
var a = n[i];
|
|
1025
|
+
if (r.indexOf(a) >= 0) return a;
|
|
1026
|
+
}
|
|
1027
|
+
return !1;
|
|
1028
|
+
}, R = function(e) {
|
|
1029
|
+
return P(e).filter(function(e) {
|
|
1030
|
+
return dt(e);
|
|
1031
|
+
}).filter(function(e) {
|
|
1032
|
+
return ft(e);
|
|
1033
|
+
});
|
|
1034
|
+
}, mt = function(e, t) {
|
|
1035
|
+
return at(R(I(e, t)), !0, t);
|
|
1036
|
+
}, ht = function(e) {
|
|
1037
|
+
return at(R(I(e)), !1);
|
|
1038
|
+
}, gt = function(e) {
|
|
1039
|
+
return R(lt(e));
|
|
1040
|
+
}, z = function(e) {
|
|
1041
|
+
return e.tagName === "INPUT" && e.type === "radio";
|
|
1042
|
+
}, _t = function(e, t) {
|
|
1043
|
+
return t.filter(z).filter(function(t) {
|
|
1044
|
+
return t.name === e.name;
|
|
1045
|
+
}).filter(function(e) {
|
|
1046
|
+
return e.checked;
|
|
1047
|
+
})[0] || e;
|
|
1048
|
+
}, vt = function(e) {
|
|
1049
|
+
return e[0] && e.length > 1 && z(e[0]) && e[0].name ? _t(e[0], e) : e[0];
|
|
1050
|
+
}, yt = function(e, t) {
|
|
1051
|
+
return e.length > 1 && z(e[t]) && e[t].name ? e.indexOf(_t(e[t], e)) : t;
|
|
1052
|
+
}, bt = vt, xt = function(e) {
|
|
1053
|
+
return function(t) {
|
|
1054
|
+
return !!t.autofocus || t.dataset && !!t.dataset.autofocus || e.indexOf(t) >= 0;
|
|
1055
|
+
};
|
|
1056
|
+
}, St = function(e) {
|
|
1057
|
+
return e && e.dataset && e.dataset.focusGuard;
|
|
1058
|
+
}, B = function(e) {
|
|
1059
|
+
return !St(e);
|
|
1060
|
+
}, Ct = function(e, t, n, r, i) {
|
|
1061
|
+
var a = e.length, o = e[0], s = e[a - 1], c = St(n);
|
|
1062
|
+
if (!(e.indexOf(n) >= 0)) {
|
|
1063
|
+
var l = t.indexOf(n), u = t.indexOf(r || l), d = e.indexOf(r), f = l - u, p = t.indexOf(o), m = t.indexOf(s), h = yt(e, 0), g = yt(e, a - 1);
|
|
1064
|
+
if (l === -1 || d === -1) return e.indexOf(i && i.length ? bt(i) : bt(e));
|
|
1065
|
+
if (!f && d >= 0) return d;
|
|
1066
|
+
if (l <= p && c && Math.abs(f) > 1) return g;
|
|
1067
|
+
if (l >= p && c && Math.abs(f) > 1) return h;
|
|
1068
|
+
if (f && Math.abs(f) > 1) return d;
|
|
1069
|
+
if (l <= p) return g;
|
|
1070
|
+
if (l > m) return h;
|
|
1071
|
+
if (f) return Math.abs(f) > 1 ? d : (a + d + f) % a;
|
|
1072
|
+
}
|
|
1073
|
+
}, wt = function(e, t, n) {
|
|
1074
|
+
var r = F(e), i = F(t), a = r[0], o = null;
|
|
1075
|
+
return i.filter(Boolean).forEach(function(e) {
|
|
1076
|
+
o = L(o || e, e) || o, n.filter(Boolean).forEach(function(e) {
|
|
1077
|
+
var t = L(a, e);
|
|
1078
|
+
t && (o = !o || t.contains(o) ? t : L(t, o));
|
|
1079
|
+
});
|
|
1080
|
+
}), o;
|
|
1081
|
+
}, Tt = function(e) {
|
|
1082
|
+
return e.reduce(function(e, t) {
|
|
1083
|
+
return e.concat(gt(t));
|
|
1084
|
+
}, []);
|
|
1085
|
+
}, Et = function(e, t) {
|
|
1086
|
+
var n = /* @__PURE__ */ new Map();
|
|
1087
|
+
return t.forEach(function(e) {
|
|
1088
|
+
return n.set(e.node, e);
|
|
1089
|
+
}), e.map(function(e) {
|
|
1090
|
+
return n.get(e);
|
|
1091
|
+
}).filter(Boolean);
|
|
1092
|
+
}, Dt = function(e, t) {
|
|
1093
|
+
var n = document && document.activeElement, r = et(e).filter(B), i = wt(n || e, e, r), a = mt(r).filter(function(e) {
|
|
1094
|
+
var t = e.node;
|
|
1095
|
+
return B(t);
|
|
1096
|
+
});
|
|
1097
|
+
if (!(!a[0] && (a = ht(r).filter(function(e) {
|
|
1098
|
+
var t = e.node;
|
|
1099
|
+
return B(t);
|
|
1100
|
+
}), !a[0]))) {
|
|
1101
|
+
var o = mt([i]).map(function(e) {
|
|
1102
|
+
return e.node;
|
|
1103
|
+
}), s = Et(o, a), c = s.map(function(e) {
|
|
1104
|
+
return e.node;
|
|
1105
|
+
}), l = Ct(c, o, n, t, c.filter(xt(Tt(r))));
|
|
1106
|
+
return l === void 0 ? l : s[l];
|
|
1107
|
+
}
|
|
1108
|
+
}, Ot = function(e) {
|
|
1109
|
+
e.focus(), e.contentWindow && e.contentWindow.focus();
|
|
1110
|
+
}, V = 0, H = !1, kt = (function(e, t) {
|
|
1111
|
+
var n = Dt(e, t);
|
|
1112
|
+
if (!H && n) {
|
|
1113
|
+
if (V > 2) {
|
|
1114
|
+
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), H = !0, setTimeout(function() {
|
|
1115
|
+
H = !1;
|
|
1116
|
+
}, 1);
|
|
1117
|
+
return;
|
|
1118
|
+
}
|
|
1119
|
+
V++, Ot(n.node), V--;
|
|
1120
|
+
}
|
|
1121
|
+
}), U = 0, At = null, jt = function() {
|
|
1122
|
+
return document && document.activeElement === document.body;
|
|
1123
|
+
}, Mt = function() {
|
|
1124
|
+
return jt() || Xe();
|
|
1125
|
+
}, Nt = function() {
|
|
1126
|
+
var e = !1;
|
|
1127
|
+
if (U) {
|
|
1128
|
+
var t = U;
|
|
1129
|
+
Mt() || (t && !rt(t) && (e = kt(t, At)), At = document.activeElement);
|
|
1130
|
+
}
|
|
1131
|
+
return e;
|
|
1132
|
+
}, Pt = function(e) {
|
|
1133
|
+
return e.filter(function(e) {
|
|
1134
|
+
return e;
|
|
1135
|
+
}).slice(-1)[0];
|
|
1136
|
+
}, Ft = function(e) {
|
|
1137
|
+
U = e, e && Nt();
|
|
1138
|
+
}, W = [], G = function(e) {
|
|
1139
|
+
return Ft(Pt(W)) ? (e && e.preventDefault(), !0) : !1;
|
|
1140
|
+
}, It = function() {
|
|
1141
|
+
document.addEventListener("focusin", G);
|
|
1142
|
+
}, Lt = function() {
|
|
1143
|
+
document.removeEventListener("focusin", G);
|
|
1144
|
+
}, Rt = {
|
|
1145
|
+
on: function(e) {
|
|
1146
|
+
W.length === 0 && It(), W.indexOf(e) < 0 && (W.push(e), G());
|
|
1147
|
+
},
|
|
1148
|
+
off: function(e) {
|
|
1149
|
+
W = W.filter(function(t) {
|
|
1150
|
+
return t !== e;
|
|
1151
|
+
}), G(), W.length === 0 && Lt();
|
|
1152
|
+
}
|
|
1153
|
+
}, zt = Rt || r;
|
|
1154
|
+
function Bt(e, t, n) {
|
|
1155
|
+
var r = Gt(e), i = Ut(n), a = Kt(t), o = document.createElement("div");
|
|
1156
|
+
return o.id = "vidyard-focusable-element", o.tabIndex = 0, i.popbox.appendChild(r.backerElement), i.popbox.appendChild(r.containingDiv), i.popbox.appendChild(a), Ue.ios() && Ve(), document.body.appendChild(i.overlayWrapper), document.body.appendChild(o), i.closeContainer.focus(), zt.on(i.overlayWrapper), We.trap(i.overlayWrapper), setTimeout(function() {
|
|
1157
|
+
i.overlayWrapper.style.opacity = "1", i.overlayWrapper.style.filter = "alpha(opacity=100)";
|
|
1158
|
+
}, 0), {
|
|
1159
|
+
container: r,
|
|
1160
|
+
lightbox: i
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
function Vt(e) {
|
|
1164
|
+
var t = document.getElementById("vidyard-content-fixed"), n = document.getElementById("vidyard-focusable-element"), r = document.getElementById("vidyard-overlay"), i = document.getElementById("vidyard-overlay-wrapper"), a = document.getElementById("vidyard-popbox");
|
|
1165
|
+
t && r && i && a && (e && Object.keys(e).forEach(function(t) {
|
|
1166
|
+
var n = e[t];
|
|
1167
|
+
n();
|
|
1168
|
+
}), n && n.parentNode.removeChild(n), zt.off(i), We.untrap(i), i.style.opacity = "0", i.style.filter = "alpha(opacity=0)", Ue.ios() && He(), setTimeout(function() {
|
|
1169
|
+
i.parentNode.removeChild(i);
|
|
1170
|
+
}, le * 1e3));
|
|
1171
|
+
}
|
|
1172
|
+
function Ht(e) {
|
|
1173
|
+
e.style.opacity = "1";
|
|
1174
|
+
}
|
|
1175
|
+
function Ut(e) {
|
|
1176
|
+
var t = document.createElement("div"), n = document.createElement("div"), r = document.createElement("div"), i = document.createElement("div"), a = Wt().closeContainer;
|
|
1177
|
+
return t.id = "vidyard-overlay", t.setAttribute("aria-hidden", "true"), t.style.display = "block", n.id = "vidyard-content-fixed", n.setAttribute("aria-label", "media player lightbox"), n.setAttribute("role", "dialog"), n.style.display = "block", r.id = "vidyard-popbox", i.id = "vidyard-overlay-wrapper", i.style.display = "block", n.appendChild(r), i.appendChild(t), i.appendChild(a), i.appendChild(n), e && (t.style.zIndex = "" + e, n.style.zIndex = "" + (e + 2), a.style.zIndex = "" + (e + 1)), {
|
|
1178
|
+
closeContainer: a,
|
|
1179
|
+
contentFixed: n,
|
|
1180
|
+
overlay: t,
|
|
1181
|
+
overlayWrapper: i,
|
|
1182
|
+
popbox: r
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
function Wt() {
|
|
1186
|
+
var e = document.createElement("div"), t = document.createElement("div");
|
|
1187
|
+
return e.className = "vidyard-close-container", e.setAttribute("aria-label", "Close Player"), e.setAttribute("role", "button"), e.setAttribute("tabindex", "0"), t.className = "vidyard-close-x", document.documentMode < 9 && (t.className += " simple-close", t.innerHTML = "×"), e.appendChild(t), {
|
|
1188
|
+
closeButton: t,
|
|
1189
|
+
closeContainer: e
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
function Gt(e) {
|
|
1193
|
+
var t = document.createElement("div");
|
|
1194
|
+
t.className = "vidyard-lightbox-content-backer";
|
|
1195
|
+
var n = document.createElement("div");
|
|
1196
|
+
n.innerHTML = e;
|
|
1197
|
+
var r = n.getElementsByTagName("div")[0];
|
|
1198
|
+
r.style.position = "absolute", r.style.height = "100%", r.style.width = "100%", r.style.zIndex = "2";
|
|
1199
|
+
var i = n.getElementsByTagName("iframe")[0], a = i.parentNode;
|
|
1200
|
+
return a.style.position = "static", a.style.paddingBottom = "0", i.style.opacity = "1", setTimeout(function() {
|
|
1201
|
+
t.style.opacity = "1", t.style.filter = "alpha(opacity=100)";
|
|
1202
|
+
}, 0), {
|
|
1203
|
+
backerElement: t,
|
|
1204
|
+
containerElement: n,
|
|
1205
|
+
containingDiv: r,
|
|
1206
|
+
iframe: i
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
function Kt(e) {
|
|
1210
|
+
var t = p("vidyard-lightbox-image", "img", e)[0].cloneNode();
|
|
1211
|
+
return t.className = "", t.id = "vidyard-popbox-constraint", t.alt = "", t.setAttribute("aria-hidden", "true"), t;
|
|
1212
|
+
}
|
|
1213
|
+
var K, q = {};
|
|
1214
|
+
function qt(e) {
|
|
1215
|
+
var t = p("vidyard-lightbox-centering", "div", e.container)[0];
|
|
1216
|
+
e.player.showLightbox = function() {
|
|
1217
|
+
k.setLevel(e.player.uuid)("show lightbox"), Jt({
|
|
1218
|
+
container: e.container,
|
|
1219
|
+
iframe: e.iframe,
|
|
1220
|
+
overlayZindex: e.overlayZindex,
|
|
1221
|
+
player: e.player
|
|
1222
|
+
});
|
|
1223
|
+
}, e.player.hideLightbox = function() {
|
|
1224
|
+
return J(e.player);
|
|
1225
|
+
}, s("click", "onclick", e.player.showLightbox, t), s("keydown", "onkeydown", y(function(t) {
|
|
1226
|
+
t.preventDefault(), e.player.showLightbox(t);
|
|
1227
|
+
}), t);
|
|
1228
|
+
}
|
|
1229
|
+
function Jt(e) {
|
|
1230
|
+
if (e.iframe && !document.getElementById("vidyard-overlay")) {
|
|
1231
|
+
K = document.activeElement;
|
|
1232
|
+
var t = Bt(e.iframe, e.container, e.overlayZindex);
|
|
1233
|
+
e.player.iframe = t.container.iframe, e.player.on("metadata", function t(n) {
|
|
1234
|
+
var r = n[0];
|
|
1235
|
+
e.player.iframe.title = r.name, e.player.off("metadata", t);
|
|
1236
|
+
});
|
|
1237
|
+
var n = e.player.uuid, r = t.container.iframe, i = Zt(r, n, e.player), a = Qt(r, n);
|
|
1238
|
+
q.iframeLoaded = s("load", "onload", i, t.container.iframe), q.messageHandler = s("message", "onmessage", ge(function(t) {
|
|
1239
|
+
i(), a(), Xt(t, e.player);
|
|
1240
|
+
}), window), q.overlayClick = s("click", "onclick", function() {
|
|
1241
|
+
return J(e.player);
|
|
1242
|
+
}, t.lightbox.overlayWrapper), q.fixedClick = s("click", "onclick", function() {
|
|
1243
|
+
return J(e.player);
|
|
1244
|
+
}, t.lightbox.contentFixed), q.closeKeyPress = s("keydown", "onkeydown", y(function() {
|
|
1245
|
+
return J(e.player);
|
|
1246
|
+
}), t.lightbox.closeContainer), q.responsivePlayerSize = s("resize", "onresize", Yt, window);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
function Yt() {
|
|
1250
|
+
var e = document.getElementById("vidyard-popbox-constraint"), t = parseFloat((window.innerHeight / window.innerWidth * 100).toFixed(2)) < parseFloat(m(e)) ? "landscape" : "portrait";
|
|
1251
|
+
e.className !== t && (e.className = t);
|
|
1252
|
+
}
|
|
1253
|
+
function J(e) {
|
|
1254
|
+
Vt(), K && K.focus(), Object.keys(q).forEach(function(e) {
|
|
1255
|
+
var t = q[e], n = t.eventName, r = t.handler, i = t.element;
|
|
1256
|
+
c(n, r, i);
|
|
1257
|
+
}), e && e.trigger("lightboxClose");
|
|
1258
|
+
}
|
|
1259
|
+
function Xt(e, t) {
|
|
1260
|
+
e.event === "keyPressed" && e.params === 27 && J(t);
|
|
1261
|
+
}
|
|
1262
|
+
function Zt(e, t, n) {
|
|
1263
|
+
return v(function() {
|
|
1264
|
+
Ht(e), Yt(), q.parentEsc = s("keydown", "onkeydown", b(function() {
|
|
1265
|
+
return J(n);
|
|
1266
|
+
}), document);
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
function Qt(e, t) {
|
|
1270
|
+
return v(function() {
|
|
1271
|
+
O({
|
|
1272
|
+
uuid: t,
|
|
1273
|
+
event: "listenForKeyPress",
|
|
1274
|
+
keyCode: "27"
|
|
1275
|
+
}, "https://" + E(), e);
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
var Y = function() {
|
|
1279
|
+
return Y = Object.assign || function(e) {
|
|
1280
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
1281
|
+
return e;
|
|
1282
|
+
}, Y.apply(this, arguments);
|
|
1283
|
+
};
|
|
1284
|
+
function $t(e) {
|
|
1285
|
+
if (!e || typeof e != "string" || e.length < 20) throw Error("Invalid UUID given");
|
|
1286
|
+
var t = k.setLevel(e), n = "https://" + E() + "/player/" + e + ".json?pomo=0&pomo_reason=fetchMetaData";
|
|
1287
|
+
return t("fetching metadata"), te({ endpoint: n }).then(JSON.parse).then(function(n) {
|
|
1288
|
+
return t("metadata successfully fetched"), Y({ uuid: e }, n.payload.vyContext.metadata);
|
|
1289
|
+
}).catch(function(e) {
|
|
1290
|
+
throw t("failed to fetch metadata, " + e), Error("Error parsing player metadata, make sure the UUID is correct");
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
function en(e, t, n) {
|
|
1294
|
+
var r = nn("https://" + E() + "/" + t.uuid + ".jpg", t, n);
|
|
1295
|
+
e.insertAdjacentHTML("afterbegin", r), $t(t.uuid).then(function(t) {
|
|
1296
|
+
var n = p("play-button", "button", e);
|
|
1297
|
+
n.length === 1 && n[0].setAttribute("aria-label", "Play video " + t.name + ". Opens in a modal");
|
|
1298
|
+
}, function() {});
|
|
1299
|
+
}
|
|
1300
|
+
function tn(e, t) {
|
|
1301
|
+
if (e.pb === 1) {
|
|
1302
|
+
var n = p("play-button", "button", t);
|
|
1303
|
+
n.length === 1 && (n[0].style.display = "block", n[0].style.backgroundColor = "#" + e.pbc);
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
function nn(e, t, n) {
|
|
1307
|
+
var r = t.alt || "", i = n.maxWidth ? "style=\"max-width: " + n.maxWidth + "px;\"" : "";
|
|
1308
|
+
return "<div class=\"vidyard-lightbox-thumbnail vidyard-lightbox-" + t.uuid + "\" " + i + ">\n <div class=\"vidyard-lightbox-centering\" style=\"padding-bottom: " + n.ratio + "%;\">\n <img class=\"vidyard-lightbox-image\" src=\"" + e + "\" alt=\"" + r + "\" />\n <div type=\"button\" role=\"button\" class=\"play-button\" title=\"Play video\" data-version=\"1\" tabindex=\"0\">\n <div class=\"play-button-size\"></div>\n <div class=\"arrow-size\">\n <div class=\"arrow-size-ratio\"></div>\n <div class=\"arrow\"></div>\n </div>\n </div>\n </div>\n</div>";
|
|
1309
|
+
}
|
|
1310
|
+
var rn = function(e) {
|
|
1311
|
+
var t = e.dataParams, n = e.player, r = k.setLevel(t.uuid);
|
|
1312
|
+
r("injecting lighbox embed"), n.placeholder.style.display = "none";
|
|
1313
|
+
var i = ke(t, { ratio: m(n.placeholder) }), a = {
|
|
1314
|
+
maxHeight: t.height ? parseInt(t.height, 10) : null,
|
|
1315
|
+
maxWidth: t.width ? parseInt(t.width, 10) : null,
|
|
1316
|
+
ratio: m(n.placeholder)
|
|
1317
|
+
};
|
|
1318
|
+
en(n.container, t, a), qt({
|
|
1319
|
+
container: n.container,
|
|
1320
|
+
iframe: i,
|
|
1321
|
+
overlayZindex: t.overlayZindex,
|
|
1322
|
+
player: n
|
|
1323
|
+
}), r("getStyle sent"), je(n.uuid).then(function(e) {
|
|
1324
|
+
r("getStyle received: " + JSON.stringify(e)), tn(e, n.container);
|
|
1325
|
+
}).catch(function(e) {
|
|
1326
|
+
r("getStyle failed, likely a network error");
|
|
1327
|
+
});
|
|
1328
|
+
}, an = /(vidyard|vystaging|hubspot)\.com$/, on = function(e, t, n) {
|
|
1329
|
+
if (n === void 0 && (n = !1), n || t && t.hasBacklink && !an.test(document.location.host)) {
|
|
1330
|
+
var r = document.createElement("a"), i = document.createElement("span"), a = document.createElement("img");
|
|
1331
|
+
a.src = "https://cdn.vidyard.com/client-logos/vidyard.png", a.id = "backlink-icon", a.alt = "Vidyard Logo", i.id = "backlink-text", i.textContent = "Powered by Vidyard", r.id = "backlink", r.appendChild(a), r.appendChild(i), r.href = t.backlinkURL, r.rel = "nofollow", r.target = "_blank", r.setAttribute("aria-label", "Link to Vidyard"), r.dataset.testid = "backlink", s("click", "onclick", function() {
|
|
1332
|
+
O({
|
|
1333
|
+
data: { event: "Acquisition - Clicked the Backlink" },
|
|
1334
|
+
event: "sendMetricsEvent",
|
|
1335
|
+
uuid: e.uuid
|
|
1336
|
+
}, "https://" + E(), e.iframe);
|
|
1337
|
+
}, r), e.container.appendChild(r);
|
|
1338
|
+
}
|
|
1339
|
+
};
|
|
1340
|
+
function sn(e) {
|
|
1341
|
+
var t = window.VidyardV4.integrations, n = k.setLevel(e.uuid), r = t.getCookie("marketo");
|
|
1342
|
+
if (r) {
|
|
1343
|
+
var i = function() {
|
|
1344
|
+
e.off("play", i), n("getMarketoLead sent"), Pe(e.uuid, r).then(ee).then(function(r) {
|
|
1345
|
+
n("getMarketoLead received: " + r), t.addKnownVisitor("marketo", r, e.org);
|
|
1346
|
+
}).catch(function() {
|
|
1347
|
+
k.warn("Invalid Marketo cookie");
|
|
1348
|
+
});
|
|
1349
|
+
};
|
|
1350
|
+
e.on("play", i);
|
|
1351
|
+
}
|
|
1352
|
+
n("getIntegrations"), Me(e.uuid).then(function(r) {
|
|
1353
|
+
n("getIntegrations received: " + JSON.stringify(r)), e.on("ready", function() {
|
|
1354
|
+
e._tmpOrg = r, t.updatePlayer(e);
|
|
1355
|
+
});
|
|
1356
|
+
}).catch(function(e) {
|
|
1357
|
+
n("getIntegrations failed, likely a network error");
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
function cn(e) {
|
|
1361
|
+
var t = k.setLevel(e);
|
|
1362
|
+
return t("getSEO sent"), Ne(e).then(function(e) {
|
|
1363
|
+
if (t("getSEO: " + JSON.stringify(e)), !u(e)) {
|
|
1364
|
+
var n = Ae(e);
|
|
1365
|
+
document.getElementsByTagName("head")[0].appendChild(n);
|
|
1366
|
+
}
|
|
1367
|
+
return e;
|
|
1368
|
+
}).catch(function(e) {
|
|
1369
|
+
t("getSEO failed, likely a network error");
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
var ln = function(e, t) {
|
|
1373
|
+
var n = document.createElement("div");
|
|
1374
|
+
n.className = "vidyard-player-container", n.setAttribute("uuid", e);
|
|
1375
|
+
var r = n.style;
|
|
1376
|
+
return r.margin = "auto", r.width = "100%", r.height = "auto", r.overflow = "hidden", r.display = "block", t.type === "inline" && (r.maxWidth = t.width ? t.width + "px" : "", r.maxHeight = t.height ? t.height + "px" : ""), n;
|
|
1377
|
+
}, un = function() {
|
|
1378
|
+
function e(e) {
|
|
1379
|
+
var t = this;
|
|
1380
|
+
this.disable_popouts = 1;
|
|
1381
|
+
var n = ae(re(e));
|
|
1382
|
+
Object.keys(n).forEach(function(e) {
|
|
1383
|
+
t[e] = n[e];
|
|
1384
|
+
}), this.alt = e.alt || null, this.type !== "inline" && this.type !== "lightbox" && (h("Invalid Vidyard player embed type, defaulting to inline.", "warn"), this.type = "inline"), this.v = T, this.disable_popouts = 1, this.custom_id = this.custom_id || w("vycustom_id"), this.vyemail = this.vyemail || w("vyemail"), this.vysfid = this.vysfid || w("vysfid"), this.vyetoken = this.vyetoken || w("vyetoken");
|
|
1385
|
+
}
|
|
1386
|
+
return e.prototype.toQueryString = function() {
|
|
1387
|
+
var e = "?", t;
|
|
1388
|
+
for (t in this) this.hasOwnProperty(t) && t !== "height" && t !== "uuid" && t !== "width" && t !== "alt" && this[t] !== void 0 && (e += e === "?" ? "" : "&", e += encodeURIComponent(t) + "=" + encodeURIComponent(this[t]));
|
|
1389
|
+
return e === "?" ? "" : e;
|
|
1390
|
+
}, e;
|
|
1391
|
+
}();
|
|
1392
|
+
function dn(e) {
|
|
1393
|
+
e === void 0 && (e = p("vidyard-player-embed", "img"));
|
|
1394
|
+
for (var t = 0, n = e; t < n.length; t++) {
|
|
1395
|
+
var r = n[t], i = new un(r), a = i.uuid, o = "https://" + E() + "/" + a + i.toQueryString();
|
|
1396
|
+
a && d(o, window.VidyardV4.preloadLinks) === -1 && (fn(a, o), window.VidyardV4.preloadLinks.push(o));
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
function fn(e, t) {
|
|
1400
|
+
var n = document.createElement("link");
|
|
1401
|
+
return n.rel = "prefetch", n.crossOrigin = "anonymous", n.href = t, document.body.appendChild(n), t;
|
|
1402
|
+
}
|
|
1403
|
+
var X = function() {
|
|
1404
|
+
return X = Object.assign || function(e) {
|
|
1405
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
1406
|
+
return e;
|
|
1407
|
+
}, X.apply(this, arguments);
|
|
1408
|
+
}, pn = function() {
|
|
1409
|
+
function e(e, t, n) {
|
|
1410
|
+
var r = this;
|
|
1411
|
+
this._ready = !1, this._previousTime = null, this._onMessageEventHandler = function(e) {
|
|
1412
|
+
if (e.origin === "https://" + E()) {
|
|
1413
|
+
var t;
|
|
1414
|
+
try {
|
|
1415
|
+
t = JSON.parse(e.data);
|
|
1416
|
+
} catch {
|
|
1417
|
+
return;
|
|
1418
|
+
}
|
|
1419
|
+
if (!(r.iframe && e.source && r.iframe.contentWindow !== e.source) && !(r.uuid && t.uuid !== r.uuid) && typeof t.event == "string") {
|
|
1420
|
+
r._updateStatus(t), t.event === "ready" && (r._ready = !0, window.VidyardV4.integrations.updatePlayer(r));
|
|
1421
|
+
var n = r._callbackStore[t.event];
|
|
1422
|
+
if (n) for (var i = 0, a = n; i < a.length; i++) a[i].call(r, t.params, r);
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}, this._callbackStore = n || {
|
|
1426
|
+
beforeSeek: [],
|
|
1427
|
+
chapterComplete: [],
|
|
1428
|
+
createCta: [],
|
|
1429
|
+
fullScreenChange: [],
|
|
1430
|
+
lightboxClose: [],
|
|
1431
|
+
metadata: [],
|
|
1432
|
+
pause: [],
|
|
1433
|
+
play: [],
|
|
1434
|
+
playerComplete: [],
|
|
1435
|
+
ready: [],
|
|
1436
|
+
seek: [],
|
|
1437
|
+
sidePlaylistOpen: [],
|
|
1438
|
+
status: [],
|
|
1439
|
+
timeupdate: [],
|
|
1440
|
+
videoComplete: [],
|
|
1441
|
+
volumeChange: []
|
|
1442
|
+
}, this.element = e, this.uuid = t, this.status = null, this.metadata = null, this.progressEventsUnsubscribe = [], s("message", "onmessage", this._onMessageEventHandler);
|
|
1443
|
+
}
|
|
1444
|
+
return e.prototype.on = function(e, t) {
|
|
1445
|
+
var n = this;
|
|
1446
|
+
e === "ready" && this.ready() ? setTimeout(function() {
|
|
1447
|
+
return t.call(n, void 0, n);
|
|
1448
|
+
}, 0) : this._callbackStore[e] === void 0 ? (this._callbackStore[e] = [t], h("The event name: " + e + " is not supported, your handler was setup regardless", "warn")) : this._callbackStore[e].push(t);
|
|
1449
|
+
}, e.prototype.trigger = function(e) {
|
|
1450
|
+
for (var t = this, n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
|
|
1451
|
+
for (var i = function(r) {
|
|
1452
|
+
e === "ready" && a.ready() ? setTimeout(function() {
|
|
1453
|
+
return r.call(t, n, t);
|
|
1454
|
+
}, 0) : r.call(a, n, a);
|
|
1455
|
+
}, a = this, o = 0, s = this._callbackStore[e]; o < s.length; o++) {
|
|
1456
|
+
var c = s[o];
|
|
1457
|
+
i(c);
|
|
1458
|
+
}
|
|
1459
|
+
}, e.prototype.off = function(e, t) {
|
|
1460
|
+
if (e === void 0) for (var n in this._callbackStore) this._callbackStore.hasOwnProperty(n) && (this._callbackStore[n] = []);
|
|
1461
|
+
else if (this._callbackStore[e]) {
|
|
1462
|
+
if (t) {
|
|
1463
|
+
var r = d(t, this._callbackStore[e]);
|
|
1464
|
+
r > -1 && this._callbackStore[e].splice(r, 1);
|
|
1465
|
+
} else this._callbackStore[e] = [];
|
|
1466
|
+
}
|
|
1467
|
+
}, e.prototype.ready = function() {
|
|
1468
|
+
return this._ready;
|
|
1469
|
+
}, e.prototype.play = function(e) {
|
|
1470
|
+
this._message({
|
|
1471
|
+
event: "play",
|
|
1472
|
+
inputType: e instanceof KeyboardEvent ? "keyboard" : void 0
|
|
1473
|
+
});
|
|
1474
|
+
}, e.prototype.pause = function() {
|
|
1475
|
+
this._message({ event: "pause" });
|
|
1476
|
+
}, e.prototype.resume = function() {
|
|
1477
|
+
this._message({ event: "resume" });
|
|
1478
|
+
}, e.prototype.seek = function(e) {
|
|
1479
|
+
this._message({
|
|
1480
|
+
event: "seek",
|
|
1481
|
+
position: e
|
|
1482
|
+
});
|
|
1483
|
+
}, e.prototype.setVolume = function(e) {
|
|
1484
|
+
this._message({
|
|
1485
|
+
event: "setVolume",
|
|
1486
|
+
newVolume: e
|
|
1487
|
+
});
|
|
1488
|
+
}, e.prototype.setPlaybackSpeed = function(e) {
|
|
1489
|
+
this._message({
|
|
1490
|
+
event: "setPlaybackSpeed",
|
|
1491
|
+
speed: e
|
|
1492
|
+
});
|
|
1493
|
+
}, e.prototype.playChapter = function(e) {
|
|
1494
|
+
h("playChapter() is deprecated. We recommend to use playVideoAtIndex() instead."), this.playVideoAtIndex(e);
|
|
1495
|
+
}, e.prototype.playVideoAtIndex = function(e) {
|
|
1496
|
+
this._message({
|
|
1497
|
+
chapter_index: e,
|
|
1498
|
+
event: "playChapter"
|
|
1499
|
+
});
|
|
1500
|
+
}, e.prototype.setAudioTrack = function(e) {
|
|
1501
|
+
this._message({
|
|
1502
|
+
audioTrackId: e,
|
|
1503
|
+
event: "setAudioTrack"
|
|
1504
|
+
});
|
|
1505
|
+
}, e.prototype.enableCaption = function(e, t) {
|
|
1506
|
+
this._message({
|
|
1507
|
+
event: "enableCaption",
|
|
1508
|
+
label: e,
|
|
1509
|
+
language: t
|
|
1510
|
+
});
|
|
1511
|
+
}, e.prototype.disableCaption = function(e, t) {
|
|
1512
|
+
this._message({
|
|
1513
|
+
event: "disableCaption",
|
|
1514
|
+
label: e,
|
|
1515
|
+
language: t
|
|
1516
|
+
});
|
|
1517
|
+
}, e.prototype.consentToGDPR = function(e) {
|
|
1518
|
+
this._message({
|
|
1519
|
+
consent: e,
|
|
1520
|
+
event: "consentToGDPR"
|
|
1521
|
+
});
|
|
1522
|
+
}, e.prototype.createCta = function(e) {
|
|
1523
|
+
this._message({
|
|
1524
|
+
attributes: f({
|
|
1525
|
+
display_once: !1,
|
|
1526
|
+
duration: 10,
|
|
1527
|
+
fullscreen: !1,
|
|
1528
|
+
html: "",
|
|
1529
|
+
opacity: 1,
|
|
1530
|
+
start: 0,
|
|
1531
|
+
width: 300
|
|
1532
|
+
}, e),
|
|
1533
|
+
event: "createCta"
|
|
1534
|
+
});
|
|
1535
|
+
}, e.prototype.updateCta = function(e, t) {
|
|
1536
|
+
this._message({
|
|
1537
|
+
attributes: t,
|
|
1538
|
+
event: "updateCta",
|
|
1539
|
+
id: e
|
|
1540
|
+
});
|
|
1541
|
+
}, e.prototype.createVideoSection = function(e, t) {
|
|
1542
|
+
this._message({
|
|
1543
|
+
event: "createVideoSection",
|
|
1544
|
+
title: e,
|
|
1545
|
+
milliseconds: t
|
|
1546
|
+
});
|
|
1547
|
+
}, e.prototype.updateVideoSection = function(e, t, n) {
|
|
1548
|
+
this._message({
|
|
1549
|
+
event: "updateVideoSection",
|
|
1550
|
+
index: e,
|
|
1551
|
+
title: t,
|
|
1552
|
+
milliseconds: n
|
|
1553
|
+
});
|
|
1554
|
+
}, e.prototype.deleteVideoSection = function(e) {
|
|
1555
|
+
this._message({
|
|
1556
|
+
event: "deleteVideoSection",
|
|
1557
|
+
index: e
|
|
1558
|
+
});
|
|
1559
|
+
}, e.prototype.setCutRanges = function(e) {
|
|
1560
|
+
this._message({
|
|
1561
|
+
event: "setCutRanges",
|
|
1562
|
+
cutRanges: e
|
|
1563
|
+
});
|
|
1564
|
+
}, e.prototype.addEvent = function(e) {
|
|
1565
|
+
var t = e.start, n = t === void 0 ? 0 : t, r = e.duration, i = r === void 0 ? 1 : r, a = e.videoIndex, o = e.chapterIndex, s = e.eventId;
|
|
1566
|
+
if (!s) h("Missing arguments. Need eventId");
|
|
1567
|
+
else {
|
|
1568
|
+
o >= 0 && h("Parameter chapterIndex is deprecated. We recommend to use videoIndex instead.");
|
|
1569
|
+
var c = 0;
|
|
1570
|
+
c = o || c, c = a || c, this._message({
|
|
1571
|
+
chapterIndex: c,
|
|
1572
|
+
duration: i,
|
|
1573
|
+
event: "addEvent",
|
|
1574
|
+
id: s,
|
|
1575
|
+
start: n
|
|
1576
|
+
});
|
|
1577
|
+
}
|
|
1578
|
+
}, e.prototype.getCurrentChapter = function() {
|
|
1579
|
+
return h("getCurrentChapter() is deprecated. We recommend to use getCurrentVideoIndex() instead."), this.getCurrentVideoIndex();
|
|
1580
|
+
}, e.prototype.getCurrentVideoIndex = function() {
|
|
1581
|
+
return this.status === null ? null : this.status.chapterIndex;
|
|
1582
|
+
}, e.prototype.currentTime = function() {
|
|
1583
|
+
return this.status === null ? null : this.status.currentTime;
|
|
1584
|
+
}, e.prototype.scrubbing = function() {
|
|
1585
|
+
return this.status === null ? null : this.status.scrubbing;
|
|
1586
|
+
}, e.prototype.toggleFullscreen = function() {
|
|
1587
|
+
var e = this, t = ne();
|
|
1588
|
+
if (t) {
|
|
1589
|
+
var n = this.iframe[t.requestFullscreen]();
|
|
1590
|
+
n ? n.then(function() {
|
|
1591
|
+
e._message({ event: "toggleFullscreen" });
|
|
1592
|
+
}) : this._message({ event: "toggleFullscreen" }), s(t.fullscreenchange, "MSFullscreenChange", function() {
|
|
1593
|
+
document[t.fullscreenElement] || e._message({ event: "exitFullscreen" });
|
|
1594
|
+
}), s("message", "onmessage", ge(function(e) {
|
|
1595
|
+
e.event === "fullScreenChange" && e.params === !1 && document[t.fullscreenElement] && document[t.exitFullscreen]();
|
|
1596
|
+
}));
|
|
1597
|
+
} else this._message({ event: "toggleFullscreen" });
|
|
1598
|
+
}, e.prototype.resetPlayer = function() {
|
|
1599
|
+
this._message({ event: "resetPlayer" });
|
|
1600
|
+
}, e.prototype._message = function(e) {
|
|
1601
|
+
this.ready() === !0 ? O(X(X({}, e), { uuid: this.uuid }), "https://" + E(), this.iframe) : h("Player is not ready yet! No messages can be recieved.", "error");
|
|
1602
|
+
}, e.prototype._updateStatus = function(e) {
|
|
1603
|
+
if (typeof e.status == "object" && (this.status = e.status), typeof e.metadata == "object" && (this.metadata = e.metadata, this.trigger("metadata", e.metadata)), this.status) {
|
|
1604
|
+
if (this.status.currentTime !== this._previousTime && this._callbackStore.timeupdate) for (var t = 0, n = this._callbackStore.timeupdate; t < n.length; t++) n[t].call(this, this.status.currentTime, this);
|
|
1605
|
+
this._previousTime = this.status.currentTime;
|
|
1606
|
+
}
|
|
1607
|
+
}, e;
|
|
1608
|
+
}(), mn = function(e) {
|
|
1609
|
+
e === void 0 && (e = document);
|
|
1610
|
+
var t = p("vidyard-player-embed", "img", e);
|
|
1611
|
+
dn(t), C(t).forEach(hn), Ce();
|
|
1612
|
+
}, hn = function(e) {
|
|
1613
|
+
var t = window.VidyardV4;
|
|
1614
|
+
t.integrations, t.api;
|
|
1615
|
+
var n = t.players;
|
|
1616
|
+
t.playerReadyListeners;
|
|
1617
|
+
var r = new un(e), i = r.uuid, a = k.setLevel(i);
|
|
1618
|
+
if (a("rendering"), i === void 0) h("Embed without a UUID detected, it is impossible to insert a player without a UUID. Add \"data-uuid=some_uuid\" to the offending element." + e);
|
|
1619
|
+
else {
|
|
1620
|
+
if (r.rendered === "true") return a("Already rendered"), g(n, function(t) {
|
|
1621
|
+
return t.placeholder === e;
|
|
1622
|
+
});
|
|
1623
|
+
var o = ln(i, r), s = new pn(o, i);
|
|
1624
|
+
return e.setAttribute("data-rendered", "true"), e.parentNode.insertBefore(o, e), s.placeholder = e, s.container = o, n.push(s), De(s), r.type === "inline" ? Be({
|
|
1625
|
+
dataParams: r,
|
|
1626
|
+
player: s
|
|
1627
|
+
}) : r.type === "lightbox" && rn({
|
|
1628
|
+
dataParams: r,
|
|
1629
|
+
player: s
|
|
1630
|
+
}), sn(s), cn(s.uuid).then(function(e) {
|
|
1631
|
+
r.type === "inline" && on(s, e, r.backlink && r.backlink === 1);
|
|
1632
|
+
}), window.Vidyard._players[s.uuid] = s, s;
|
|
1633
|
+
}
|
|
1634
|
+
};
|
|
1635
|
+
function gn(e) {
|
|
1636
|
+
e.progressEventsUnsubscribe.forEach(function(e) {
|
|
1637
|
+
return e();
|
|
1638
|
+
}), e.progressEventsUnsubscribe = [];
|
|
1639
|
+
}
|
|
1640
|
+
function _n(e) {
|
|
1641
|
+
var t = window.VidyardV4.players;
|
|
1642
|
+
_(t, e) ? (gn(e), e.off(), e.container.parentNode.removeChild(e.container), e.placeholder.parentNode.removeChild(e.placeholder), t.splice(d(e, t))) : h("Cannot destroy an unknown player", "warn");
|
|
1643
|
+
}
|
|
1644
|
+
function vn(e) {
|
|
1645
|
+
if (e !== void 0) for (var t = window.VidyardV4.players, n = function(t) {
|
|
1646
|
+
t.on("ready", function() {
|
|
1647
|
+
t.consentToGDPR(e);
|
|
1648
|
+
});
|
|
1649
|
+
}, r = 0, i = t; r < i.length; r++) {
|
|
1650
|
+
var a = i[r];
|
|
1651
|
+
n(a);
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
function yn(e) {
|
|
1655
|
+
var t = 0, n = window.VidyardV4.api.GDPR, r = window.VidyardV4.players;
|
|
1656
|
+
if (r.length === 0) return e(!1);
|
|
1657
|
+
if (n._readyConsent !== void 0) return e(n._readyConsent);
|
|
1658
|
+
for (var i = 0, a = r; i < a.length; i++) a[i].on("ready", function() {
|
|
1659
|
+
if (t !== r.length && (t += 1), t === r.length) return n._readyConsent = r.reduce(function(e, t) {
|
|
1660
|
+
return t.status.consent && e;
|
|
1661
|
+
}, !0), e(n._readyConsent);
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
function bn(e) {
|
|
1665
|
+
return window.VidyardV4.players.filter(function(t) {
|
|
1666
|
+
return t.uuid === e;
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
var xn = bn, Sn = function(e) {
|
|
1670
|
+
e.sort(function(e, t) {
|
|
1671
|
+
return e < t ? -1 : +(e > t);
|
|
1672
|
+
});
|
|
1673
|
+
for (var t = 0; t < e.length;) e[t] === e[t + 1] ? e.splice(t + 1, 1) : t += 1;
|
|
1674
|
+
return e;
|
|
1675
|
+
}, Cn = function() {
|
|
1676
|
+
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
1677
|
+
for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
|
|
1678
|
+
return r;
|
|
1679
|
+
}, Z = {}, Q = {};
|
|
1680
|
+
function wn(e, t, n) {
|
|
1681
|
+
typeof Q[e.uuid] != "object" && (Q[e.uuid] = {}), Z[e.uuid] = {
|
|
1682
|
+
callback: t,
|
|
1683
|
+
thresholds: Cn(n).sort(function(e, t) {
|
|
1684
|
+
return t - e;
|
|
1685
|
+
})
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
function Tn(e, t) {
|
|
1689
|
+
Dn(e, t, Z[e.uuid].callback, Cn(Z[e.uuid].thresholds));
|
|
1690
|
+
}
|
|
1691
|
+
function En(e, t) {
|
|
1692
|
+
if (typeof Z[e.uuid] == "object") return typeof Q[e.uuid][t] != "object" && Tn(e, t), Q[e.uuid][t];
|
|
1693
|
+
}
|
|
1694
|
+
function Dn(e, t, n, r) {
|
|
1695
|
+
Q[e.uuid][t] = {
|
|
1696
|
+
callback: n,
|
|
1697
|
+
lastTimeUpdate: e.currentTime(),
|
|
1698
|
+
partOfVideoWatched: {},
|
|
1699
|
+
player: e,
|
|
1700
|
+
thresholds: r,
|
|
1701
|
+
timeWatched: 0
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
function On(e) {
|
|
1705
|
+
Z[e.uuid] = void 0, Q[e.uuid] = void 0;
|
|
1706
|
+
}
|
|
1707
|
+
function kn(e, t) {
|
|
1708
|
+
var n = e.getCurrentVideoIndex(), r = En(e, n);
|
|
1709
|
+
if (r !== void 0 && typeof r.player.metadata == "object" && r.thresholds.length !== 0) {
|
|
1710
|
+
var i = t - r.lastTimeUpdate;
|
|
1711
|
+
if (r.lastTimeUpdate = t, !(i <= 0 || i > 1)) {
|
|
1712
|
+
if (t >= 1) {
|
|
1713
|
+
var a = Math.floor(Number(t.toFixed(1)));
|
|
1714
|
+
r.partOfVideoWatched[a] = 1;
|
|
1715
|
+
}
|
|
1716
|
+
r.timeWatched = Object.keys(r.partOfVideoWatched).length;
|
|
1717
|
+
for (var o = r.player.metadata.chapters_attributes[n].video_attributes.length_in_milliseconds, s = Math.floor(o / 1e3), c = r.timeWatched / s * 100; c >= r.thresholds[r.thresholds.length - 1];) r.callback({
|
|
1718
|
+
chapter: n,
|
|
1719
|
+
event: r.thresholds.pop(),
|
|
1720
|
+
player: e,
|
|
1721
|
+
videoIndex: n
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
function An(e, t, n) {
|
|
1727
|
+
wn(e, t, n);
|
|
1728
|
+
var r = function(t) {
|
|
1729
|
+
return kn(e, t);
|
|
1730
|
+
};
|
|
1731
|
+
return e.on("timeupdate", r), {
|
|
1732
|
+
player: e,
|
|
1733
|
+
removeEventListeners: function() {
|
|
1734
|
+
e.off("timeupdate", r), On(e);
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
function jn(e, t, n) {
|
|
1739
|
+
var r;
|
|
1740
|
+
t === void 0 && (t = [
|
|
1741
|
+
1,
|
|
1742
|
+
25,
|
|
1743
|
+
50,
|
|
1744
|
+
75,
|
|
1745
|
+
90
|
|
1746
|
+
]);
|
|
1747
|
+
var i = [], a = n ? (r = {}, r[n.uuid] = n, r) : Mn(), o = Sn(t), s = function(t) {
|
|
1748
|
+
if (a.hasOwnProperty(t) && t.length > 0 && a[t] !== "") {
|
|
1749
|
+
var n = An(a[t], e, o);
|
|
1750
|
+
i.push(n);
|
|
1751
|
+
} else h(function() {
|
|
1752
|
+
return console.error("Could not attach Progress Events to player " + t + ", make sure to load the Vidyard Player API");
|
|
1753
|
+
});
|
|
1754
|
+
};
|
|
1755
|
+
for (var c in a) s(c);
|
|
1756
|
+
return i.length === 0 && h(function() {
|
|
1757
|
+
return console.warn("No Vidyard Players found. (include this script below player embed codes)");
|
|
1758
|
+
}), i;
|
|
1759
|
+
}
|
|
1760
|
+
function Mn() {
|
|
1761
|
+
try {
|
|
1762
|
+
return window.Vidyard.players();
|
|
1763
|
+
} catch {
|
|
1764
|
+
return h(function() {
|
|
1765
|
+
return console.error("The Vidyard Player API must be loaded before this script can execute");
|
|
1766
|
+
}), {};
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
function Nn() {
|
|
1770
|
+
var e = [...arguments], t = jn.apply(void 0, e);
|
|
1771
|
+
Object.keys(t).forEach(function(e) {
|
|
1772
|
+
var n = t[e], r = n.player, i = n.removeEventListeners;
|
|
1773
|
+
r.progressEventsUnsubscribe && r.progressEventsUnsubscribe.push(i);
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
var Pn = function(e) {
|
|
1777
|
+
k.setLevel("placeholder")("rendering player from placeholder image");
|
|
1778
|
+
var t = hn(e);
|
|
1779
|
+
return new o(function(e) {
|
|
1780
|
+
t.showLightbox ? e(t) : t.on("ready", function() {
|
|
1781
|
+
return e(t);
|
|
1782
|
+
});
|
|
1783
|
+
});
|
|
1784
|
+
};
|
|
1785
|
+
function Fn(e) {
|
|
1786
|
+
return Le(e instanceof HTMLImageElement ? e : Re(e)).then(Pn).catch(function(e) {
|
|
1787
|
+
return h(N.errors.placeholder, "warn");
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
var $ = {
|
|
1791
|
+
_debug: Te,
|
|
1792
|
+
api: {
|
|
1793
|
+
GDPR: {
|
|
1794
|
+
consent: vn,
|
|
1795
|
+
hasConsentOnReady: yn
|
|
1796
|
+
},
|
|
1797
|
+
addReadyListener: Ee,
|
|
1798
|
+
destroyPlayer: _n,
|
|
1799
|
+
getPlayerMetadata: $t,
|
|
1800
|
+
getPlayersByUUID: xn,
|
|
1801
|
+
progressEvents: Nn,
|
|
1802
|
+
renderDOMPlayers: mn,
|
|
1803
|
+
renderPlayer: Fn
|
|
1804
|
+
},
|
|
1805
|
+
integrations: new be(),
|
|
1806
|
+
jsonp: {},
|
|
1807
|
+
playerReadyListeners: { undefined: [] },
|
|
1808
|
+
players: [],
|
|
1809
|
+
preloadLinks: []
|
|
1810
|
+
}, In = {
|
|
1811
|
+
_players: {},
|
|
1812
|
+
players: function() {
|
|
1813
|
+
return window.VidyardV4.players.reduce(function(e, t) {
|
|
1814
|
+
return e[t.uuid] = t, e;
|
|
1815
|
+
}, {});
|
|
1816
|
+
}
|
|
1817
|
+
};
|
|
1818
|
+
n(12);
|
|
1819
|
+
var Ln = n(2);
|
|
1820
|
+
function Rn(e) {
|
|
1821
|
+
var t = e.error, n = e.location, r = e.message, i = e.navigator, a = e.timeStamp, o = e.type, s = e.vyGlobal;
|
|
1822
|
+
return { data: {
|
|
1823
|
+
body: { trace: {
|
|
1824
|
+
exception: {
|
|
1825
|
+
class: t.name,
|
|
1826
|
+
message: r
|
|
1827
|
+
},
|
|
1828
|
+
frames: Ln.parse(t).map(function(e) {
|
|
1829
|
+
return {
|
|
1830
|
+
code: e.source,
|
|
1831
|
+
colno: e.columnNumber,
|
|
1832
|
+
filename: e.fileName,
|
|
1833
|
+
lineno: e.lineNumber,
|
|
1834
|
+
method: e.functionName
|
|
1835
|
+
};
|
|
1836
|
+
})
|
|
1837
|
+
} },
|
|
1838
|
+
client: {
|
|
1839
|
+
cpu: i.platform,
|
|
1840
|
+
javascript: {
|
|
1841
|
+
browser: i.userAgent,
|
|
1842
|
+
guess_uncaught_frames: !0,
|
|
1843
|
+
source_map_enabled: !0
|
|
1844
|
+
}
|
|
1845
|
+
},
|
|
1846
|
+
code_version: T,
|
|
1847
|
+
custom: {
|
|
1848
|
+
jsonpRequests: Object.keys(s.jsonp),
|
|
1849
|
+
playbackUrlOverride: window.VIDYARD_PLAYBACK_URL,
|
|
1850
|
+
players: s.players.map(function(e) {
|
|
1851
|
+
return {
|
|
1852
|
+
iframe: e.iframe ? { src: e.iframe.src } : {},
|
|
1853
|
+
metadata: e.metadata,
|
|
1854
|
+
org: e.org ? {
|
|
1855
|
+
id: e.org.id,
|
|
1856
|
+
foundIntegrations: e.org.foundIntegrations
|
|
1857
|
+
} : {},
|
|
1858
|
+
uuid: e.uuid
|
|
1859
|
+
};
|
|
1860
|
+
}),
|
|
1861
|
+
preloadLinks: s.preloadLinks
|
|
1862
|
+
},
|
|
1863
|
+
environment: E(),
|
|
1864
|
+
fingerprint: t.name,
|
|
1865
|
+
language: "javascript",
|
|
1866
|
+
level: o,
|
|
1867
|
+
platform: "browser",
|
|
1868
|
+
request: {
|
|
1869
|
+
query_string: n.search,
|
|
1870
|
+
url: n.href
|
|
1871
|
+
},
|
|
1872
|
+
timestamp: a
|
|
1873
|
+
} };
|
|
1874
|
+
}
|
|
1875
|
+
var zn = function(e) {
|
|
1876
|
+
return e === void 0 && (e = ""), e.match(se);
|
|
1877
|
+
}, Bn = function(e) {
|
|
1878
|
+
var t = e.error, n = e.filename, r = e.message, i = e.timeStamp, a = e.type;
|
|
1879
|
+
if (zn(n)) {
|
|
1880
|
+
var o = window.location, s = window.navigator, c = window.VidyardV4, l = Rn({
|
|
1881
|
+
error: t,
|
|
1882
|
+
location: o,
|
|
1883
|
+
message: r,
|
|
1884
|
+
navigator: s,
|
|
1885
|
+
timeStamp: i,
|
|
1886
|
+
type: a,
|
|
1887
|
+
vyGlobal: c
|
|
1888
|
+
});
|
|
1889
|
+
te({
|
|
1890
|
+
endpoint: he(),
|
|
1891
|
+
method: "POST",
|
|
1892
|
+
payload: l
|
|
1893
|
+
}).then(function(e) {
|
|
1894
|
+
return h("Error logged " + e);
|
|
1895
|
+
}, function(e) {
|
|
1896
|
+
return h("Error log failed " + e);
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
};
|
|
1900
|
+
function Vn() {
|
|
1901
|
+
s("error", "onerror", Bn, window), s("unhandledrejection", "", function(e) {
|
|
1902
|
+
var t = e.reason, n = e.timeStamp, r = e.type;
|
|
1903
|
+
e.reason instanceof Error && zn(t.stack) && (e.preventDefault(), Bn({
|
|
1904
|
+
error: t,
|
|
1905
|
+
filename: t.stack,
|
|
1906
|
+
message: t.message,
|
|
1907
|
+
timeStamp: n,
|
|
1908
|
+
type: r
|
|
1909
|
+
}));
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
var Hn = function(e) {
|
|
1913
|
+
if (e.origin === "https://" + E() && e.source && typeof e.data == "string" && e.data !== "") {
|
|
1914
|
+
var t;
|
|
1915
|
+
try {
|
|
1916
|
+
t = JSON.parse(e.data);
|
|
1917
|
+
} catch {
|
|
1918
|
+
return;
|
|
1919
|
+
}
|
|
1920
|
+
t && t.event === "requestParentOrigin" && typeof t.uuid == "string" && t.uuid.length !== 0 && e.source.postMessage(JSON.stringify({
|
|
1921
|
+
event: "captureParentOrigin",
|
|
1922
|
+
uuid: t.uuid
|
|
1923
|
+
}), e.origin);
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
n.d(t, "_debug", function() {
|
|
1927
|
+
return Un;
|
|
1928
|
+
}), n.d(t, "api", function() {
|
|
1929
|
+
return Wn;
|
|
1930
|
+
}), n.d(t, "players", function() {
|
|
1931
|
+
return Gn;
|
|
1932
|
+
}), Vn(), function() {
|
|
1933
|
+
window.__vidyardParentOriginListening || (window.__vidyardParentOriginListening = !0, s("message", "onmessage", Hn, window));
|
|
1934
|
+
}(), window.VidyardV4 = window.VidyardV4 || $, window.Vidyard = window.Vidyard || In, Ce();
|
|
1935
|
+
var Un = $._debug, Wn = $.api, Gn = $.players;
|
|
1936
|
+
t.default = $;
|
|
1937
|
+
}),
|
|
1938
|
+
(function(e, t, n) {
|
|
1939
|
+
var r, i, a;
|
|
1940
|
+
(function(n, o) {
|
|
1941
|
+
i = [], r = o, a = typeof r == "function" ? r.apply(t, i) : r, a !== void 0 && (e.exports = a);
|
|
1942
|
+
})(this, function() {
|
|
1943
|
+
function e(e) {
|
|
1944
|
+
return !isNaN(parseFloat(e)) && isFinite(e);
|
|
1945
|
+
}
|
|
1946
|
+
function t(e) {
|
|
1947
|
+
return e.charAt(0).toUpperCase() + e.substring(1);
|
|
1948
|
+
}
|
|
1949
|
+
function n(e) {
|
|
1950
|
+
return function() {
|
|
1951
|
+
return this[e];
|
|
1952
|
+
};
|
|
1953
|
+
}
|
|
1954
|
+
var r = [
|
|
1955
|
+
"isConstructor",
|
|
1956
|
+
"isEval",
|
|
1957
|
+
"isNative",
|
|
1958
|
+
"isToplevel"
|
|
1959
|
+
], i = ["columnNumber", "lineNumber"], a = [
|
|
1960
|
+
"fileName",
|
|
1961
|
+
"functionName",
|
|
1962
|
+
"source"
|
|
1963
|
+
], o = r.concat(i, a, ["args"]);
|
|
1964
|
+
function s(e) {
|
|
1965
|
+
if (e instanceof Object) for (var n = 0; n < o.length; n++) e.hasOwnProperty(o[n]) && e[o[n]] !== void 0 && this["set" + t(o[n])](e[o[n]]);
|
|
1966
|
+
}
|
|
1967
|
+
s.prototype = {
|
|
1968
|
+
getArgs: function() {
|
|
1969
|
+
return this.args;
|
|
1970
|
+
},
|
|
1971
|
+
setArgs: function(e) {
|
|
1972
|
+
if (Object.prototype.toString.call(e) !== "[object Array]") throw TypeError("Args must be an Array");
|
|
1973
|
+
this.args = e;
|
|
1974
|
+
},
|
|
1975
|
+
getEvalOrigin: function() {
|
|
1976
|
+
return this.evalOrigin;
|
|
1977
|
+
},
|
|
1978
|
+
setEvalOrigin: function(e) {
|
|
1979
|
+
if (e instanceof s) this.evalOrigin = e;
|
|
1980
|
+
else if (e instanceof Object) this.evalOrigin = new s(e);
|
|
1981
|
+
else throw TypeError("Eval Origin must be an Object or StackFrame");
|
|
1982
|
+
},
|
|
1983
|
+
toString: function() {
|
|
1984
|
+
var t = this.getFunctionName() || "{anonymous}", n = "(" + (this.getArgs() || []).join(",") + ")", r = this.getFileName() ? "@" + this.getFileName() : "", i = e(this.getLineNumber()) ? ":" + this.getLineNumber() : "", a = e(this.getColumnNumber()) ? ":" + this.getColumnNumber() : "";
|
|
1985
|
+
return t + n + r + i + a;
|
|
1986
|
+
}
|
|
1987
|
+
};
|
|
1988
|
+
for (var c = 0; c < r.length; c++) s.prototype["get" + t(r[c])] = n(r[c]), s.prototype["set" + t(r[c])] = (function(e) {
|
|
1989
|
+
return function(t) {
|
|
1990
|
+
this[e] = !!t;
|
|
1991
|
+
};
|
|
1992
|
+
})(r[c]);
|
|
1993
|
+
for (var l = 0; l < i.length; l++) s.prototype["get" + t(i[l])] = n(i[l]), s.prototype["set" + t(i[l])] = (function(t) {
|
|
1994
|
+
return function(n) {
|
|
1995
|
+
if (!e(n)) throw TypeError(t + " must be a Number");
|
|
1996
|
+
this[t] = Number(n);
|
|
1997
|
+
};
|
|
1998
|
+
})(i[l]);
|
|
1999
|
+
for (var u = 0; u < a.length; u++) s.prototype["get" + t(a[u])] = n(a[u]), s.prototype["set" + t(a[u])] = (function(e) {
|
|
2000
|
+
return function(t) {
|
|
2001
|
+
this[e] = String(t);
|
|
2002
|
+
};
|
|
2003
|
+
})(a[u]);
|
|
2004
|
+
return s;
|
|
2005
|
+
});
|
|
2006
|
+
}),
|
|
2007
|
+
(function(e, t) {
|
|
2008
|
+
e.exports = function(e) {
|
|
2009
|
+
var t = typeof window < "u" && window.location;
|
|
2010
|
+
if (!t) throw Error("fixUrls requires window.location");
|
|
2011
|
+
if (!e || typeof e != "string") return e;
|
|
2012
|
+
var n = t.protocol + "//" + t.host, r = n + t.pathname.replace(/\/[^\/]*$/, "/");
|
|
2013
|
+
return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(e, t) {
|
|
2014
|
+
var i = t.trim().replace(/^"(.*)"$/, function(e, t) {
|
|
2015
|
+
return t;
|
|
2016
|
+
}).replace(/^'(.*)'$/, function(e, t) {
|
|
2017
|
+
return t;
|
|
2018
|
+
});
|
|
2019
|
+
if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)) return e;
|
|
2020
|
+
var a = i.indexOf("//") === 0 ? i : i.indexOf("/") === 0 ? n + i : r + i.replace(/^\.\//, "");
|
|
2021
|
+
return "url(" + JSON.stringify(a) + ")";
|
|
2022
|
+
});
|
|
2023
|
+
};
|
|
2024
|
+
}),
|
|
2025
|
+
(function(e, t, n) {
|
|
2026
|
+
var r = {}, i = function(e) {
|
|
2027
|
+
var t;
|
|
2028
|
+
return function() {
|
|
2029
|
+
return t === void 0 && (t = e.apply(this, arguments)), t;
|
|
2030
|
+
};
|
|
2031
|
+
}(function() {
|
|
2032
|
+
return window && document && document.all && !window.atob;
|
|
2033
|
+
}), a = function(e) {
|
|
2034
|
+
return document.querySelector(e);
|
|
2035
|
+
}, o = (function(e) {
|
|
2036
|
+
var t = {};
|
|
2037
|
+
return function(e) {
|
|
2038
|
+
if (typeof e == "function") return e();
|
|
2039
|
+
if (t[e] === void 0) {
|
|
2040
|
+
var n = a.call(this, e);
|
|
2041
|
+
if (window.HTMLIFrameElement && n instanceof window.HTMLIFrameElement) try {
|
|
2042
|
+
n = n.contentDocument.head;
|
|
2043
|
+
} catch {
|
|
2044
|
+
n = null;
|
|
2045
|
+
}
|
|
2046
|
+
t[e] = n;
|
|
2047
|
+
}
|
|
2048
|
+
return t[e];
|
|
2049
|
+
};
|
|
2050
|
+
})(), s = null, c = 0, l = [], u = n(8);
|
|
2051
|
+
e.exports = function(e, t) {
|
|
2052
|
+
if (typeof DEBUG < "u" && DEBUG && typeof document != "object") throw Error("The style-loader cannot be used in a non-browser environment");
|
|
2053
|
+
t ||= {}, t.attrs = typeof t.attrs == "object" ? t.attrs : {}, !t.singleton && typeof t.singleton != "boolean" && (t.singleton = i()), t.insertInto || (t.insertInto = "head"), t.insertAt || (t.insertAt = "bottom");
|
|
2054
|
+
var n = f(e, t);
|
|
2055
|
+
return d(n, t), function(e) {
|
|
2056
|
+
for (var i = [], a = 0; a < n.length; a++) {
|
|
2057
|
+
var o = r[n[a].id];
|
|
2058
|
+
o.refs--, i.push(o);
|
|
2059
|
+
}
|
|
2060
|
+
e && d(f(e, t), t);
|
|
2061
|
+
for (var a = 0; a < i.length; a++) {
|
|
2062
|
+
var o = i[a];
|
|
2063
|
+
if (o.refs === 0) {
|
|
2064
|
+
for (var s = 0; s < o.parts.length; s++) o.parts[s]();
|
|
2065
|
+
delete r[o.id];
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
};
|
|
2070
|
+
function d(e, t) {
|
|
2071
|
+
for (var n = 0; n < e.length; n++) {
|
|
2072
|
+
var i = e[n], a = r[i.id];
|
|
2073
|
+
if (a) {
|
|
2074
|
+
a.refs++;
|
|
2075
|
+
for (var o = 0; o < a.parts.length; o++) a.parts[o](i.parts[o]);
|
|
2076
|
+
for (; o < i.parts.length; o++) a.parts.push(v(i.parts[o], t));
|
|
2077
|
+
} else {
|
|
2078
|
+
for (var s = [], o = 0; o < i.parts.length; o++) s.push(v(i.parts[o], t));
|
|
2079
|
+
r[i.id] = {
|
|
2080
|
+
id: i.id,
|
|
2081
|
+
refs: 1,
|
|
2082
|
+
parts: s
|
|
2083
|
+
};
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
function f(e, t) {
|
|
2088
|
+
for (var n = [], r = {}, i = 0; i < e.length; i++) {
|
|
2089
|
+
var a = e[i], o = t.base ? a[0] + t.base : a[0], s = {
|
|
2090
|
+
css: a[1],
|
|
2091
|
+
media: a[2],
|
|
2092
|
+
sourceMap: a[3]
|
|
2093
|
+
};
|
|
2094
|
+
r[o] ? r[o].parts.push(s) : n.push(r[o] = {
|
|
2095
|
+
id: o,
|
|
2096
|
+
parts: [s]
|
|
2097
|
+
});
|
|
2098
|
+
}
|
|
2099
|
+
return n;
|
|
2100
|
+
}
|
|
2101
|
+
function p(e, t) {
|
|
2102
|
+
var n = o(e.insertInto);
|
|
2103
|
+
if (!n) throw Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
|
|
2104
|
+
var r = l[l.length - 1];
|
|
2105
|
+
if (e.insertAt === "top") r ? r.nextSibling ? n.insertBefore(t, r.nextSibling) : n.appendChild(t) : n.insertBefore(t, n.firstChild), l.push(t);
|
|
2106
|
+
else if (e.insertAt === "bottom") n.appendChild(t);
|
|
2107
|
+
else if (typeof e.insertAt == "object" && e.insertAt.before) {
|
|
2108
|
+
var i = o(e.insertInto + " " + e.insertAt.before);
|
|
2109
|
+
n.insertBefore(t, i);
|
|
2110
|
+
} else throw Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
|
|
2111
|
+
}
|
|
2112
|
+
function m(e) {
|
|
2113
|
+
if (e.parentNode === null) return !1;
|
|
2114
|
+
e.parentNode.removeChild(e);
|
|
2115
|
+
var t = l.indexOf(e);
|
|
2116
|
+
t >= 0 && l.splice(t, 1);
|
|
2117
|
+
}
|
|
2118
|
+
function h(e) {
|
|
2119
|
+
var t = document.createElement("style");
|
|
2120
|
+
return e.attrs.type === void 0 && (e.attrs.type = "text/css"), _(t, e.attrs), p(e, t), t;
|
|
2121
|
+
}
|
|
2122
|
+
function g(e) {
|
|
2123
|
+
var t = document.createElement("link");
|
|
2124
|
+
return e.attrs.type === void 0 && (e.attrs.type = "text/css"), e.attrs.rel = "stylesheet", _(t, e.attrs), p(e, t), t;
|
|
2125
|
+
}
|
|
2126
|
+
function _(e, t) {
|
|
2127
|
+
Object.keys(t).forEach(function(n) {
|
|
2128
|
+
e.setAttribute(n, t[n]);
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
function v(e, t) {
|
|
2132
|
+
var n, r, i, a;
|
|
2133
|
+
if (t.transform && e.css) {
|
|
2134
|
+
if (a = t.transform(e.css), a) e.css = a;
|
|
2135
|
+
else return function() {};
|
|
2136
|
+
}
|
|
2137
|
+
if (t.singleton) {
|
|
2138
|
+
var o = c++;
|
|
2139
|
+
n = s ||= h(t), r = b.bind(null, n, o, !1), i = b.bind(null, n, o, !0);
|
|
2140
|
+
} else e.sourceMap && typeof URL == "function" && typeof URL.createObjectURL == "function" && typeof URL.revokeObjectURL == "function" && typeof Blob == "function" && typeof btoa == "function" ? (n = g(t), r = S.bind(null, n, t), i = function() {
|
|
2141
|
+
m(n), n.href && URL.revokeObjectURL(n.href);
|
|
2142
|
+
}) : (n = h(t), r = x.bind(null, n), i = function() {
|
|
2143
|
+
m(n);
|
|
2144
|
+
});
|
|
2145
|
+
return r(e), function(t) {
|
|
2146
|
+
if (t) {
|
|
2147
|
+
if (t.css === e.css && t.media === e.media && t.sourceMap === e.sourceMap) return;
|
|
2148
|
+
r(e = t);
|
|
2149
|
+
} else i();
|
|
2150
|
+
};
|
|
2151
|
+
}
|
|
2152
|
+
var y = (function() {
|
|
2153
|
+
var e = [];
|
|
2154
|
+
return function(t, n) {
|
|
2155
|
+
return e[t] = n, e.filter(Boolean).join("\n");
|
|
2156
|
+
};
|
|
2157
|
+
})();
|
|
2158
|
+
function b(e, t, n, r) {
|
|
2159
|
+
var i = n ? "" : r.css;
|
|
2160
|
+
if (e.styleSheet) e.styleSheet.cssText = y(t, i);
|
|
2161
|
+
else {
|
|
2162
|
+
var a = document.createTextNode(i), o = e.childNodes;
|
|
2163
|
+
o[t] && e.removeChild(o[t]), o.length ? e.insertBefore(a, o[t]) : e.appendChild(a);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
function x(e, t) {
|
|
2167
|
+
var n = t.css, r = t.media;
|
|
2168
|
+
if (r && e.setAttribute("media", r), e.styleSheet) e.styleSheet.cssText = n;
|
|
2169
|
+
else {
|
|
2170
|
+
for (; e.firstChild;) e.removeChild(e.firstChild);
|
|
2171
|
+
e.appendChild(document.createTextNode(n));
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
function S(e, t, n) {
|
|
2175
|
+
var r = n.css, i = n.sourceMap, a = t.convertToAbsoluteUrls === void 0 && i;
|
|
2176
|
+
(t.convertToAbsoluteUrls || a) && (r = u(r)), i && (r += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */");
|
|
2177
|
+
var o = new Blob([r], { type: "text/css" }), s = e.href;
|
|
2178
|
+
e.href = URL.createObjectURL(o), s && URL.revokeObjectURL(s);
|
|
2179
|
+
}
|
|
2180
|
+
}),
|
|
2181
|
+
(function(e, t) {
|
|
2182
|
+
e.exports = function(e) {
|
|
2183
|
+
var t = [];
|
|
2184
|
+
return t.toString = function() {
|
|
2185
|
+
return this.map(function(t) {
|
|
2186
|
+
var r = n(t, e);
|
|
2187
|
+
return t[2] ? "@media " + t[2] + "{" + r + "}" : r;
|
|
2188
|
+
}).join("");
|
|
2189
|
+
}, t.i = function(e, n) {
|
|
2190
|
+
typeof e == "string" && (e = [[
|
|
2191
|
+
null,
|
|
2192
|
+
e,
|
|
2193
|
+
""
|
|
2194
|
+
]]);
|
|
2195
|
+
for (var r = {}, i = 0; i < this.length; i++) {
|
|
2196
|
+
var a = this[i][0];
|
|
2197
|
+
typeof a == "number" && (r[a] = !0);
|
|
2198
|
+
}
|
|
2199
|
+
for (i = 0; i < e.length; i++) {
|
|
2200
|
+
var o = e[i];
|
|
2201
|
+
typeof o[0] == "number" && r[o[0]] || (n && !o[2] ? o[2] = n : n && (o[2] = "(" + o[2] + ") and (" + n + ")"), t.push(o));
|
|
2202
|
+
}
|
|
2203
|
+
}, t;
|
|
2204
|
+
};
|
|
2205
|
+
function n(e, t) {
|
|
2206
|
+
var n = e[1] || "", i = e[3];
|
|
2207
|
+
if (!i) return n;
|
|
2208
|
+
if (t && typeof btoa == "function") {
|
|
2209
|
+
var a = r(i), o = i.sources.map(function(e) {
|
|
2210
|
+
return "/*# sourceURL=" + i.sourceRoot + e + " */";
|
|
2211
|
+
});
|
|
2212
|
+
return [n].concat(o, [a]).join("\n");
|
|
2213
|
+
}
|
|
2214
|
+
return [n].join("\n");
|
|
2215
|
+
}
|
|
2216
|
+
function r(e) {
|
|
2217
|
+
return "/*# " + ("sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(e))))) + " */";
|
|
2218
|
+
}
|
|
2219
|
+
}),
|
|
2220
|
+
(function(e, t, n) {
|
|
2221
|
+
t = e.exports = n(10)(!1), t.push([
|
|
2222
|
+
e.i,
|
|
2223
|
+
".vidyard-player-container .play-button{position:absolute;width:16%;height:auto;border-radius:50%;border:none;cursor:pointer;opacity:.65;filter:alpha(opacity = 65);transition:opacity .2s linear;overflow:hidden;font-size:0;padding:0;min-width:20px;top:50%;left:50%;transform:translate(-50%,-50%);-webkit-appearance:initial!important;-moz-appearance:initial!important;appearance:initial!important}.vidyard-player-container .play-button .play-button-size{padding-top:100%;width:100%}.vidyard-player-container .play-button .arrow-size{position:absolute;top:50%;left:50%;width:35%;height:auto;margin:-25% 0 0 -12%;overflow:hidden}.vidyard-player-container .play-button .arrow-size-ratio{padding-top:150%;width:100%}.vidyard-player-container .play-button .arrow{position:absolute;top:50%;left:auto;right:0;bottom:auto;width:0;height:0;margin:-200px 0 -200px -300px;border:200px solid transparent;border-left:300px solid #fff;border-right:none}.vidyard-lightbox-thumbnail:hover .play-button{opacity:1;filter:alpha(opacity = 100);zoom:1}.vidyard-player-container{position:relative;height:100%;text-align:center}.vidyard-player-container img{height:100%}.vidyard-player-container .play-button{display:none}.vidyard-close-container{position:fixed;right:20px;top:20px;height:34px;width:34px;cursor:pointer;z-index:1000}.vidyard-close-container:focus{outline:1px dotted grey}.vidyard-close-x{position:absolute;height:100%;width:100%;color:#fff;font-size:2em;text-align:center;line-height:34px}.vidyard-close-x:hover{color:#ddd}.vidyard-close-x:hover:after,.vidyard-close-x:hover:before{background:#ddd}.vidyard-close-x:after,.vidyard-close-x:before{content:\"\";position:absolute;background:#fff;display:block;left:50%;top:50%;height:65%;width:2px;transition:all .2s;-ms-high-contrast-adjust:none}.vidyard-close-x:before{transform:translate(-50%,-50%) rotate(45deg);-ms-transform:translate(-50%,-50%) rotate(45deg)}.vidyard-close-x:after{transform:translate(-50%,-50%) rotate(-45deg);-ms-transform:translate(-50%,-50%) rotate(-45deg)}.vidyard-close-x.simple-close:after,.vidyard-close-x.simple-close:before{display:none}.vidyard-lightbox-thumbnail{width:100%;height:100%;margin:auto}.vidyard-lightbox-image{height:100%;left:0;position:absolute;top:0;width:100%}.vidyard-lightbox-centering{cursor:pointer;height:0;max-width:100%;overflow:hidden;padding-bottom:56.25%;position:relative}.vidyard-lightbox-content-backer{-webkit-transform:opacity 1s,filter 1s;-ms-transform:opacity 1s,filter 1s;transition:opacity 1s,filter 1s;background-color:#000;height:100%;width:100%;position:absolute}#vidyard-overlay-wrapper,.vidyard-lightbox-content-backer{filter:alpha(opacity = 0);opacity:0;top:0;right:0;bottom:0;left:0}#vidyard-overlay-wrapper{position:relative;box-sizing:border-box;display:none;transition:opacity .5s,filter .5s}#vidyard-overlay{top:0;right:0;bottom:0;left:0;opacity:.9;filter:alpha(opacity = 90);width:100%;height:100%;background-color:#000;z-index:800}#vidyard-content-fixed,#vidyard-overlay{position:fixed;box-sizing:border-box;display:none}#vidyard-content-fixed{opacity:1;z-index:900;text-align:center;top:5%;right:5%;bottom:5%;left:5%;width:90%}#vidyard-popbox{display:inline-block;position:absolute;left:50%;top:50%;-webit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#vidyard-popbox-constraint{opacity:0;filter:alpha(opacity = 0);display:block;visibility:hidden}#vidyard-popbox-constraint.landscape{height:90vh}#vidyard-popbox-constraint.portrait{width:90vw}.vidyard-player-container div[class^=vidyard-iframe-]{z-index:1}.vidyard-player-container div[class^=vidyard-div-]{background-repeat:no-repeat;background-position:0 50%;background-size:100%}img.vidyard-player-embed{width:100%}img.vidyard-player-embed.inserted{position:absolute;top:0;left:0;z-index:0;max-width:100%!important}.vidyard-player-container.playlist-open{padding-right:319px;width:auto!important}.vidyard-player-container.playlist-open div[class^=vidyard-div-]{width:calc(100% + 319px);max-width:calc(100% + 319px)!important;background-size:calc(100% - 319px);background-color:#f5f9ff}.vidyard-player-container.playlist-open div[class^=vidyard-div-] img.vidyard-player-embed{width:calc(100% - 319px)!important}#backlink-icon{height:15px;width:15px;margin-right:6px;transition:.3s}#backlink{align-items:center;border-radius:4px;border:3px solid #ebeeff;display:inline-block;float:left;line-height:18px;margin:8px 0 0;outline:none;padding:1px 8px 1px 5px;position:relative;*zoom:1;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-style:normal;font-weight:400;font-size:12px;text-decoration:none}#backlink:after,#backlink:before{content:\" \";display:table}#backlink:after{clear:both}#backlink:link,#backlink:visited{background:#ebeeff;border-color:#ebeeff;color:#414dd4}#backlink:hover{background:#bfc2ff;color:#1b1a82;cursor:pointer}#backlink:focus,#backlink:hover{border-color:#bfc2ff}#backlink:active{background:#8f97ff;border-color:#8f97ff;color:#0c084d}#backlink-icon{float:left;height:18px;margin-right:5px;position:relative;width:18px}#backlink-text{float:left}",
|
|
2224
|
+
""
|
|
2225
|
+
]);
|
|
2226
|
+
}),
|
|
2227
|
+
(function(e, t, n) {
|
|
2228
|
+
var r = n(11);
|
|
2229
|
+
typeof r == "string" && (r = [[
|
|
2230
|
+
e.i,
|
|
2231
|
+
r,
|
|
2232
|
+
""
|
|
2233
|
+
]]);
|
|
2234
|
+
var i, a = { hmr: !0 };
|
|
2235
|
+
a.transform = i, a.insertInto = void 0, n(9)(r, a), r.locals && (e.exports = r.locals);
|
|
2236
|
+
}),
|
|
2237
|
+
,
|
|
2238
|
+
(function(e, t, n) {
|
|
2239
|
+
var r = function(e) {
|
|
2240
|
+
return e.nodeType === 1 && e.tagName.toLowerCase() !== "body" && e.tagName.toLowerCase() !== "html";
|
|
2241
|
+
}, i = function(e) {
|
|
2242
|
+
return e.nodeType === 1 && e.tagName.toLowerCase() !== "script";
|
|
2243
|
+
}, a = function(e, t) {
|
|
2244
|
+
return e.concat(t);
|
|
2245
|
+
};
|
|
2246
|
+
function o(e) {
|
|
2247
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = e.previousSibling;
|
|
2248
|
+
return n ? (t.push(n), o(n, t)) : t;
|
|
2249
|
+
}
|
|
2250
|
+
function s(e) {
|
|
2251
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = e.nextSibling;
|
|
2252
|
+
return n ? (t.push(n), s(n, t)) : t;
|
|
2253
|
+
}
|
|
2254
|
+
function c(e) {
|
|
2255
|
+
return o(e).concat(s(e)).filter(i);
|
|
2256
|
+
}
|
|
2257
|
+
function l(e) {
|
|
2258
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = e.parentNode;
|
|
2259
|
+
return n ? (t.push(n), l(n, t)) : t;
|
|
2260
|
+
}
|
|
2261
|
+
function u(e) {
|
|
2262
|
+
return l(e).filter(r);
|
|
2263
|
+
}
|
|
2264
|
+
function d(e) {
|
|
2265
|
+
return u(e).map(function(e) {
|
|
2266
|
+
return c(e);
|
|
2267
|
+
}).reduce(a, []);
|
|
2268
|
+
}
|
|
2269
|
+
e.exports = {
|
|
2270
|
+
getSiblings: c,
|
|
2271
|
+
getAncestors: u,
|
|
2272
|
+
getSiblingsOfAncestors: d
|
|
2273
|
+
};
|
|
2274
|
+
}),
|
|
2275
|
+
(function(e, t, n) {
|
|
2276
|
+
(function(t) {
|
|
2277
|
+
var n = t.CustomEvent;
|
|
2278
|
+
function r() {
|
|
2279
|
+
try {
|
|
2280
|
+
var e = new n("cat", { detail: { foo: "bar" } });
|
|
2281
|
+
return e.type === "cat" && e.detail.foo === "bar";
|
|
2282
|
+
} catch {}
|
|
2283
|
+
return !1;
|
|
2284
|
+
}
|
|
2285
|
+
e.exports = r() ? n : typeof document < "u" && typeof document.createEvent == "function" ? function(e, t) {
|
|
2286
|
+
var n = document.createEvent("CustomEvent");
|
|
2287
|
+
return t ? n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail) : n.initCustomEvent(e, !1, !1, void 0), n;
|
|
2288
|
+
} : function(e, t) {
|
|
2289
|
+
var n = document.createEventObject();
|
|
2290
|
+
return n.type = e, t ? (n.bubbles = !!t.bubbles, n.cancelable = !!t.cancelable, n.detail = t.detail) : (n.bubbles = !1, n.cancelable = !1, n.detail = void 0), n;
|
|
2291
|
+
};
|
|
2292
|
+
}).call(this, n(0));
|
|
2293
|
+
}),
|
|
2294
|
+
(function(e, t) {
|
|
2295
|
+
var n = e.exports = {}, r, i;
|
|
2296
|
+
function a() {
|
|
2297
|
+
throw Error("setTimeout has not been defined");
|
|
2298
|
+
}
|
|
2299
|
+
function o() {
|
|
2300
|
+
throw Error("clearTimeout has not been defined");
|
|
2301
|
+
}
|
|
2302
|
+
(function() {
|
|
2303
|
+
try {
|
|
2304
|
+
r = typeof setTimeout == "function" ? setTimeout : a;
|
|
2305
|
+
} catch {
|
|
2306
|
+
r = a;
|
|
2307
|
+
}
|
|
2308
|
+
try {
|
|
2309
|
+
i = typeof clearTimeout == "function" ? clearTimeout : o;
|
|
2310
|
+
} catch {
|
|
2311
|
+
i = o;
|
|
2312
|
+
}
|
|
2313
|
+
})();
|
|
2314
|
+
function s(e) {
|
|
2315
|
+
if (r === setTimeout) return setTimeout(e, 0);
|
|
2316
|
+
if ((r === a || !r) && setTimeout) return r = setTimeout, setTimeout(e, 0);
|
|
2317
|
+
try {
|
|
2318
|
+
return r(e, 0);
|
|
2319
|
+
} catch {
|
|
2320
|
+
try {
|
|
2321
|
+
return r.call(null, e, 0);
|
|
2322
|
+
} catch {
|
|
2323
|
+
return r.call(this, e, 0);
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
function c(e) {
|
|
2328
|
+
if (i === clearTimeout) return clearTimeout(e);
|
|
2329
|
+
if ((i === o || !i) && clearTimeout) return i = clearTimeout, clearTimeout(e);
|
|
2330
|
+
try {
|
|
2331
|
+
return i(e);
|
|
2332
|
+
} catch {
|
|
2333
|
+
try {
|
|
2334
|
+
return i.call(null, e);
|
|
2335
|
+
} catch {
|
|
2336
|
+
return i.call(this, e);
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
var l = [], u = !1, d, f = -1;
|
|
2341
|
+
function p() {
|
|
2342
|
+
u && d && (u = !1, d.length ? l = d.concat(l) : f = -1, l.length && m());
|
|
2343
|
+
}
|
|
2344
|
+
function m() {
|
|
2345
|
+
if (!u) {
|
|
2346
|
+
var e = s(p);
|
|
2347
|
+
u = !0;
|
|
2348
|
+
for (var t = l.length; t;) {
|
|
2349
|
+
for (d = l, l = []; ++f < t;) d && d[f].run();
|
|
2350
|
+
f = -1, t = l.length;
|
|
2351
|
+
}
|
|
2352
|
+
d = null, u = !1, c(e);
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
n.nextTick = function(e) {
|
|
2356
|
+
var t = Array(arguments.length - 1);
|
|
2357
|
+
if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2358
|
+
l.push(new h(e, t)), l.length === 1 && !u && s(m);
|
|
2359
|
+
};
|
|
2360
|
+
function h(e, t) {
|
|
2361
|
+
this.fun = e, this.array = t;
|
|
2362
|
+
}
|
|
2363
|
+
h.prototype.run = function() {
|
|
2364
|
+
this.fun.apply(null, this.array);
|
|
2365
|
+
}, n.title = "browser", n.browser = !0, n.env = {}, n.argv = [], n.version = "", n.versions = {};
|
|
2366
|
+
function g() {}
|
|
2367
|
+
n.on = g, n.addListener = g, n.once = g, n.off = g, n.removeListener = g, n.removeAllListeners = g, n.emit = g, n.prependListener = g, n.prependOnceListener = g, n.listeners = function(e) {
|
|
2368
|
+
return [];
|
|
2369
|
+
}, n.binding = function(e) {
|
|
2370
|
+
throw Error("process.binding is not supported");
|
|
2371
|
+
}, n.cwd = function() {
|
|
2372
|
+
return "/";
|
|
2373
|
+
}, n.chdir = function(e) {
|
|
2374
|
+
throw Error("process.chdir is not supported");
|
|
2375
|
+
}, n.umask = function() {
|
|
2376
|
+
return 0;
|
|
2377
|
+
};
|
|
2378
|
+
}),
|
|
2379
|
+
(function(e, t, n) {
|
|
2380
|
+
(function(e, t) {
|
|
2381
|
+
(function(e, n) {
|
|
2382
|
+
if (e.setImmediate) return;
|
|
2383
|
+
var r = 1, i = {}, a = !1, o = e.document, s;
|
|
2384
|
+
function c(e) {
|
|
2385
|
+
typeof e != "function" && (e = Function("" + e));
|
|
2386
|
+
for (var t = Array(arguments.length - 1), n = 0; n < t.length; n++) t[n] = arguments[n + 1];
|
|
2387
|
+
return i[r] = {
|
|
2388
|
+
callback: e,
|
|
2389
|
+
args: t
|
|
2390
|
+
}, s(r), r++;
|
|
2391
|
+
}
|
|
2392
|
+
function l(e) {
|
|
2393
|
+
delete i[e];
|
|
2394
|
+
}
|
|
2395
|
+
function u(e) {
|
|
2396
|
+
var t = e.callback, r = e.args;
|
|
2397
|
+
switch (r.length) {
|
|
2398
|
+
case 0:
|
|
2399
|
+
t();
|
|
2400
|
+
break;
|
|
2401
|
+
case 1:
|
|
2402
|
+
t(r[0]);
|
|
2403
|
+
break;
|
|
2404
|
+
case 2:
|
|
2405
|
+
t(r[0], r[1]);
|
|
2406
|
+
break;
|
|
2407
|
+
case 3:
|
|
2408
|
+
t(r[0], r[1], r[2]);
|
|
2409
|
+
break;
|
|
2410
|
+
default: t.apply(n, r);
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
function d(e) {
|
|
2414
|
+
if (a) setTimeout(d, 0, e);
|
|
2415
|
+
else {
|
|
2416
|
+
var t = i[e];
|
|
2417
|
+
if (t) {
|
|
2418
|
+
a = !0;
|
|
2419
|
+
try {
|
|
2420
|
+
u(t);
|
|
2421
|
+
} finally {
|
|
2422
|
+
l(e), a = !1;
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
function f() {
|
|
2428
|
+
s = function(e) {
|
|
2429
|
+
t.nextTick(function() {
|
|
2430
|
+
d(e);
|
|
2431
|
+
});
|
|
2432
|
+
};
|
|
2433
|
+
}
|
|
2434
|
+
function p() {
|
|
2435
|
+
if (e.postMessage && !e.importScripts) {
|
|
2436
|
+
var t = !0, n = e.onmessage;
|
|
2437
|
+
return e.onmessage = function() {
|
|
2438
|
+
t = !1;
|
|
2439
|
+
}, e.postMessage("", "*"), e.onmessage = n, t;
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
function m() {
|
|
2443
|
+
var t = "setImmediate$" + Math.random() + "$", n = function(n) {
|
|
2444
|
+
n.source === e && typeof n.data == "string" && n.data.indexOf(t) === 0 && d(+n.data.slice(t.length));
|
|
2445
|
+
};
|
|
2446
|
+
e.addEventListener ? e.addEventListener("message", n, !1) : e.attachEvent("onmessage", n), s = function(n) {
|
|
2447
|
+
e.postMessage(t + n, "*");
|
|
2448
|
+
};
|
|
2449
|
+
}
|
|
2450
|
+
function h() {
|
|
2451
|
+
var e = new MessageChannel();
|
|
2452
|
+
e.port1.onmessage = function(e) {
|
|
2453
|
+
var t = e.data;
|
|
2454
|
+
d(t);
|
|
2455
|
+
}, s = function(t) {
|
|
2456
|
+
e.port2.postMessage(t);
|
|
2457
|
+
};
|
|
2458
|
+
}
|
|
2459
|
+
function g() {
|
|
2460
|
+
var e = o.documentElement;
|
|
2461
|
+
s = function(t) {
|
|
2462
|
+
var n = o.createElement("script");
|
|
2463
|
+
n.onreadystatechange = function() {
|
|
2464
|
+
d(t), n.onreadystatechange = null, e.removeChild(n), n = null;
|
|
2465
|
+
}, e.appendChild(n);
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
function _() {
|
|
2469
|
+
s = function(e) {
|
|
2470
|
+
setTimeout(d, 0, e);
|
|
2471
|
+
};
|
|
2472
|
+
}
|
|
2473
|
+
var v = Object.getPrototypeOf && Object.getPrototypeOf(e);
|
|
2474
|
+
v = v && v.setTimeout ? v : e, {}.toString.call(e.process) === "[object process]" ? f() : p() ? m() : e.MessageChannel ? h() : o && "onreadystatechange" in o.createElement("script") ? g() : _(), v.setImmediate = c, v.clearImmediate = l;
|
|
2475
|
+
})(typeof self > "u" ? e === void 0 ? this : e : self);
|
|
2476
|
+
}).call(this, n(0), n(16));
|
|
2477
|
+
}),
|
|
2478
|
+
(function(e, t, n) {
|
|
2479
|
+
(function(e) {
|
|
2480
|
+
var r = e !== void 0 && e || typeof self < "u" && self || window, i = Function.prototype.apply;
|
|
2481
|
+
t.setTimeout = function() {
|
|
2482
|
+
return new a(i.call(setTimeout, r, arguments), clearTimeout);
|
|
2483
|
+
}, t.setInterval = function() {
|
|
2484
|
+
return new a(i.call(setInterval, r, arguments), clearInterval);
|
|
2485
|
+
}, t.clearTimeout = t.clearInterval = function(e) {
|
|
2486
|
+
e && e.close();
|
|
2487
|
+
};
|
|
2488
|
+
function a(e, t) {
|
|
2489
|
+
this._id = e, this._clearFn = t;
|
|
2490
|
+
}
|
|
2491
|
+
a.prototype.unref = a.prototype.ref = function() {}, a.prototype.close = function() {
|
|
2492
|
+
this._clearFn.call(r, this._id);
|
|
2493
|
+
}, t.enroll = function(e, t) {
|
|
2494
|
+
clearTimeout(e._idleTimeoutId), e._idleTimeout = t;
|
|
2495
|
+
}, t.unenroll = function(e) {
|
|
2496
|
+
clearTimeout(e._idleTimeoutId), e._idleTimeout = -1;
|
|
2497
|
+
}, t._unrefActive = t.active = function(e) {
|
|
2498
|
+
clearTimeout(e._idleTimeoutId);
|
|
2499
|
+
var t = e._idleTimeout;
|
|
2500
|
+
t >= 0 && (e._idleTimeoutId = setTimeout(function() {
|
|
2501
|
+
e._onTimeout && e._onTimeout();
|
|
2502
|
+
}, t));
|
|
2503
|
+
}, n(17), t.setImmediate = typeof self < "u" && self.setImmediate || e !== void 0 && e.setImmediate || this && this.setImmediate, t.clearImmediate = typeof self < "u" && self.clearImmediate || e !== void 0 && e.clearImmediate || this && this.clearImmediate;
|
|
2504
|
+
}).call(this, n(0));
|
|
2505
|
+
})
|
|
2506
|
+
]);
|
|
2507
|
+
});
|
|
2508
|
+
})), h = f(), g = /* @__PURE__ */ t(m()), _ = class {
|
|
2509
|
+
get id() {
|
|
2510
|
+
return "vidyard";
|
|
2511
|
+
}
|
|
2512
|
+
get canReusePlayer() {
|
|
2513
|
+
return !1;
|
|
2514
|
+
}
|
|
2515
|
+
urlRegexes = [/* @__PURE__ */ new RegExp(/https?:\/\/video\.vidyard\.com\/watch\/(?<id>[0-9A-Za-z]{5,})/), /* @__PURE__ */ new RegExp(/https?:\/\/play\.vidyard\.com\/(?<id>[0-9A-Za-z]{5,})\.jpg/)];
|
|
2516
|
+
loadApi() {
|
|
2517
|
+
return (0, h.loadScript)("https://play.vidyard.com/embed/v4.js", { windowCallback: "onVidyardAPI" });
|
|
2518
|
+
}
|
|
2519
|
+
prepareHtml(e) {
|
|
2520
|
+
if (!e.initialVideoId) throw "Vidyard player requires an initial video to be set";
|
|
2521
|
+
return `
|
|
2522
|
+
<div style="width: ${e.width ? `${e.width}px` : "100%"}; margin: auto; display: block; max-width: 100%" class="vidyard-player-embed" data-uuid="${e.initialVideoId}" data-v="4" data-type="lightbox">
|
|
2523
|
+
<img src="https://play.vidyard.com/${e.initialVideoId}.jpg">
|
|
2524
|
+
</div>`;
|
|
2525
|
+
}
|
|
2526
|
+
createPlayer(e, t) {
|
|
2527
|
+
return new Promise((u, f) => {
|
|
2528
|
+
if (!e.element) return f("The Vidyard api requires the options.element to be set");
|
|
2529
|
+
let m = e.element.querySelector("div.vidyard-player-embed");
|
|
2530
|
+
if (!m) return f("Something went wrong");
|
|
2531
|
+
if (!e.initialVideoId) return f("The Vidyard implementation requires an initial video. Vidyard itself allows creation of a player without, but this wasn't implemented here.");
|
|
2532
|
+
let h = new n(), _ = new o([!1, void 0]), v = new o(null);
|
|
2533
|
+
v.pipe(d((e) => !!e), l((e) => e), s(1), c(h), c(t)).subscribe(([n, i]) => {
|
|
2534
|
+
let a = g.default.api.getPlayerMetadata(e.initialVideoId);
|
|
2535
|
+
p(i, "play").pipe(c(h), c(t)).subscribe(([e, t]) => n.onStateChange(r.playing)), p(i, "pause").pipe(c(h), c(t)).subscribe(([e, t]) => n.onStateChange(r.paused)), p(i, "seek").pipe(c(h), c(t)).subscribe(([[e, t], r]) => n.onCurrentTimeChange(t)), p(i, "volumeChange").pipe(c(h), c(t)).subscribe(([e, t]) => n.onVolumeChange(e * 100)), p(i, "timeupdate").pipe(c(h), c(t)).subscribe(([e, t]) => {
|
|
2536
|
+
n.onCurrentTimeChange(e);
|
|
2537
|
+
let i = t.metadata.chapters_attributes, a = i[i.length - 1].video_attributes.length_in_seconds;
|
|
2538
|
+
(e >= a || Math.abs(e - a) < .2) && n.onStateChange(r.ended);
|
|
2539
|
+
}), p(i, "metadata").pipe(c(h), c(t)).subscribe(([e, t]) => console.log("metadata", e)), u(n), a.then((e) => n.onDurationChange(e.length_in_seconds));
|
|
2540
|
+
}), _.pipe(d(([e]) => e), s(1), c(h), c(t)).subscribe(([e, t]) => {
|
|
2541
|
+
let n = t, o = i({
|
|
2542
|
+
capabilities: [a.volume],
|
|
2543
|
+
loadVideoById: (e) => {
|
|
2544
|
+
throw "The Vidyard player cannot be reused";
|
|
2545
|
+
},
|
|
2546
|
+
setPlayerState: (e) => {
|
|
2547
|
+
switch (e) {
|
|
2548
|
+
case r.playing:
|
|
2549
|
+
n.play();
|
|
2550
|
+
break;
|
|
2551
|
+
case r.paused: n.pause();
|
|
2552
|
+
}
|
|
2553
|
+
},
|
|
2554
|
+
setMute: (e) => {
|
|
2555
|
+
throw "The Vidyard player doesn't support mute";
|
|
2556
|
+
},
|
|
2557
|
+
setVolume: (e) => n.setVolume(e / 100),
|
|
2558
|
+
setProgress: (e) => n.seek(e),
|
|
2559
|
+
setSize: (e, t) => {
|
|
2560
|
+
n.iframe.width = `${e}px`, n.iframe.height = `${t}px`;
|
|
2561
|
+
},
|
|
2562
|
+
getTitle: () => new Promise((e) => {
|
|
2563
|
+
e(n.metadata.name ?? n.metadata.description);
|
|
2564
|
+
}),
|
|
2565
|
+
setFullscreen: (e) => {
|
|
2566
|
+
throw "The Vidyard player doesn't support fullscreen";
|
|
2567
|
+
},
|
|
2568
|
+
getFullscreen: () => new Promise((e) => e(!1)),
|
|
2569
|
+
setPip: (e) => {
|
|
2570
|
+
throw "The Vidyard player doesn't support PiP";
|
|
2571
|
+
},
|
|
2572
|
+
getPip: () => new Promise((e) => e(!1)),
|
|
2573
|
+
destroy: () => {
|
|
2574
|
+
g.default.api.destroyPlayer(n), h.next(!0);
|
|
2575
|
+
}
|
|
2576
|
+
});
|
|
2577
|
+
v.next([o, n]);
|
|
2578
|
+
}), g.default.api.addReadyListener((t, n) => {
|
|
2579
|
+
n.on("ready", (t, r) => {
|
|
2580
|
+
_.next([!0, n]), e.element.querySelector(":scope > div > img")?.remove();
|
|
2581
|
+
});
|
|
2582
|
+
}), g.default.api.renderPlayer({
|
|
2583
|
+
container: m,
|
|
2584
|
+
uuid: e.initialVideoId,
|
|
2585
|
+
autoplay: +!!e.autoplay
|
|
2586
|
+
});
|
|
2587
|
+
});
|
|
2588
|
+
}
|
|
2589
|
+
};
|
|
2590
|
+
export { _ as VidyardService };
|