@wistia/wistia-player 0.7.2 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/embeds/carousel/CarouselApi.d.ts.map +1 -1
- package/dist/types/embeds/carousel/utils/carouselColors.d.ts.map +1 -1
- package/dist/types/embeds/carousel/webComponents/WistiaChannelCarousel.d.ts.map +1 -1
- package/dist/types/embeds/forms/types.d.ts +3 -1
- package/dist/types/embeds/forms/types.d.ts.map +1 -1
- package/dist/types/embeds/playlist/WistiaPlaylist.d.ts +4 -0
- package/dist/types/embeds/playlist/WistiaPlaylist.d.ts.map +1 -1
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts +6 -1
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts.map +1 -1
- package/dist/types/embeds/wistiaPlayer/utilities/getInitialMediaData.d.ts.map +1 -1
- package/dist/types/external/form/utils.d.ts +0 -18
- package/dist/types/external/form/utils.d.ts.map +1 -1
- package/dist/types/types/carousel.d.ts +6 -0
- package/dist/types/types/carousel.d.ts.map +1 -1
- package/dist/types/types/plugins.d.ts +2 -0
- package/dist/types/types/plugins.d.ts.map +1 -1
- package/dist/types/utilities/color-utils.d.ts +6 -0
- package/dist/types/utilities/color-utils.d.ts.map +1 -1
- package/dist/types/utilities/duration.d.ts +1 -0
- package/dist/types/utilities/duration.d.ts.map +1 -1
- package/dist/types/utilities/gradients.d.ts +1 -0
- package/dist/types/utilities/gradients.d.ts.map +1 -1
- package/dist/types/utilities/sentryUtils.d.ts +5 -1
- package/dist/types/utilities/sentryUtils.d.ts.map +1 -1
- package/dist/types/utilities/shouldEnableMux.d.ts.map +1 -1
- package/dist/wistia-player.js +356 -240
- package/dist/wistia-player.js.map +1 -1
- package/package.json +2 -2
package/dist/wistia-player.js
CHANGED
|
@@ -1641,11 +1641,12 @@ var isMediaDataError = function isMediaDataError(mediaData) {
|
|
|
1641
1641
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1642
1642
|
/* harmony export */ K6: () => (/* binding */ rgbToHsl),
|
|
1643
1643
|
/* harmony export */ bJ: () => (/* binding */ getContrast),
|
|
1644
|
+
/* harmony export */ cO: () => (/* binding */ DEFAULT_PLAYER_COLOR),
|
|
1644
1645
|
/* harmony export */ hu: () => (/* binding */ getVideoPlayerIconColor),
|
|
1645
1646
|
/* harmony export */ s1: () => (/* binding */ colorContrastRatiosByShape),
|
|
1646
1647
|
/* harmony export */ ui: () => (/* binding */ adjustColorForProperContrast)
|
|
1647
1648
|
/* harmony export */ });
|
|
1648
|
-
/* unused harmony exports generateColorPalette, getBestColorForShape, getHexWithoutHash, getAudioPlayerIconColor */
|
|
1649
|
+
/* unused harmony exports generateColorPalette, getBestColorForShape, getHexWithoutHash, getAudioPlayerIconColor, getBackgroundColorFromPlayerColor, isDarkColor, isVeryDarkColor, isLightColor, isMidToneColor */
|
|
1649
1650
|
/* harmony import */ var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9814);
|
|
1650
1651
|
/* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5417);
|
|
1651
1652
|
/* harmony import */ var _sentryUtils_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2621);
|
|
@@ -1655,11 +1656,11 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
1655
1656
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
1656
1657
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
1657
1658
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1659
|
+
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1658
1660
|
|
|
1659
1661
|
|
|
1660
1662
|
|
|
1661
|
-
|
|
1662
|
-
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1663
|
+
var DEFAULT_PLAYER_COLOR = '#2949E5';
|
|
1663
1664
|
var colorContrastRatiosByShape = {
|
|
1664
1665
|
nonText: 3,
|
|
1665
1666
|
// 3:1 - https://www.w3.org/TR/WCAG21/#non-text-contrast
|
|
@@ -1747,8 +1748,6 @@ var adjustColorForProperContrast = function adjustColorForProperContrast(foregro
|
|
|
1747
1748
|
if ((0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__/* .isNil */ .gD)(foregroundColor.r) || (0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__/* .isNil */ .gD)(foregroundColor.g) || (0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__/* .isNil */ .gD)(foregroundColor.b)) {
|
|
1748
1749
|
throw new Error('Color does not contain required RGB values');
|
|
1749
1750
|
}
|
|
1750
|
-
|
|
1751
|
-
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1752
1751
|
var initialContrastRatio = getContrast(foregroundColor.toHexWithHash(), backgroundColor.toHexWithHash());
|
|
1753
1752
|
if (foregroundColor.hasAccessibleContrast(backgroundColor, shape)) {
|
|
1754
1753
|
return foregroundColor.toHexWithHash();
|
|
@@ -1801,8 +1800,6 @@ var adjustColorForProperContrast = function adjustColorForProperContrast(foregro
|
|
|
1801
1800
|
} else {
|
|
1802
1801
|
adjustedForegroundColor.darken(1);
|
|
1803
1802
|
}
|
|
1804
|
-
|
|
1805
|
-
/* eslint-enable @typescript-eslint/no-magic-numbers */
|
|
1806
1803
|
}
|
|
1807
1804
|
return adjustedForegroundColor.toHexWithHash();
|
|
1808
1805
|
};
|
|
@@ -1920,6 +1917,24 @@ var getAudioPlayerIconColor = function getAudioPlayerIconColor(_playerColor, sho
|
|
|
1920
1917
|
}
|
|
1921
1918
|
return adjustColorForProperContrast(_playerColor, _playerColor, 'paragraphText');
|
|
1922
1919
|
};
|
|
1920
|
+
var SHADE = 0.8;
|
|
1921
|
+
var getBackgroundColorFromPlayerColor = function getBackgroundColorFromPlayerColor() {
|
|
1922
|
+
var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_PLAYER_COLOR;
|
|
1923
|
+
return new Color(color).shade(SHADE).toHexWithHash();
|
|
1924
|
+
};
|
|
1925
|
+
var isDarkColor = function isDarkColor(color) {
|
|
1926
|
+
return new Color(color).getRelativeLuminance() < 0.15;
|
|
1927
|
+
};
|
|
1928
|
+
var isVeryDarkColor = function isVeryDarkColor(color) {
|
|
1929
|
+
return new Color(color).getRelativeLuminance() < 0.05;
|
|
1930
|
+
};
|
|
1931
|
+
var isLightColor = function isLightColor(color) {
|
|
1932
|
+
return new Color(color).getRelativeLuminance() >= 0.8;
|
|
1933
|
+
};
|
|
1934
|
+
var isMidToneColor = function isMidToneColor(color) {
|
|
1935
|
+
var relativeLuminance = new Color(color).getRelativeLuminance();
|
|
1936
|
+
return relativeLuminance > 0.13 && relativeLuminance < 0.75;
|
|
1937
|
+
};
|
|
1923
1938
|
|
|
1924
1939
|
/***/ },
|
|
1925
1940
|
|
|
@@ -2130,13 +2145,14 @@ var runScript = function runScript(src, timeout) {
|
|
|
2130
2145
|
/* harmony export */ G5: () => (/* binding */ flexibleDuration),
|
|
2131
2146
|
/* harmony export */ ab: () => (/* binding */ secondsConverter)
|
|
2132
2147
|
/* harmony export */ });
|
|
2133
|
-
/* unused harmony exports formattedDurationToSeconds, accessibilityDuration, humanReadableDuration, getSecondsRemaining, secondsToMilliseconds */
|
|
2148
|
+
/* unused harmony exports formattedDurationToSeconds, accessibilityDuration, humanReadableDuration, getSecondsRemaining, secondsToMilliseconds, formatDuration */
|
|
2134
2149
|
/* harmony import */ var iso8601_duration__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6633);
|
|
2135
2150
|
|
|
2136
2151
|
|
|
2137
2152
|
var SECONDS_IN_HOUR = 3600;
|
|
2138
2153
|
var MINUTES_IN_HOUR = 60;
|
|
2139
2154
|
var SECONDS_IN_MINUTE = 60;
|
|
2155
|
+
var SECONDS_CUTTOFF = 45;
|
|
2140
2156
|
var padNumber = function padNumber(num) {
|
|
2141
2157
|
var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
2142
2158
|
var result = "".concat(num);
|
|
@@ -2242,6 +2258,18 @@ var getSecondsRemaining = function getSecondsRemaining(start, end) {
|
|
|
2242
2258
|
var secondsToMilliseconds = function secondsToMilliseconds(seconds) {
|
|
2243
2259
|
return seconds * 1000;
|
|
2244
2260
|
};
|
|
2261
|
+
var formatDuration = function formatDuration(totalSeconds) {
|
|
2262
|
+
var _secondsConverter4 = secondsConverter(totalSeconds, 'hms'),
|
|
2263
|
+
hours = _secondsConverter4.hours,
|
|
2264
|
+
minutes = _secondsConverter4.minutes;
|
|
2265
|
+
if (totalSeconds < SECONDS_CUTTOFF) {
|
|
2266
|
+
return "".concat(Math.round(totalSeconds), " SEC");
|
|
2267
|
+
}
|
|
2268
|
+
if (hours) {
|
|
2269
|
+
return "".concat(hours, " HR ").concat(minutes, " MIN");
|
|
2270
|
+
}
|
|
2271
|
+
return "".concat(Math.round(totalSeconds / SECONDS_IN_MINUTE), " MIN");
|
|
2272
|
+
};
|
|
2245
2273
|
|
|
2246
2274
|
/***/ },
|
|
2247
2275
|
|
|
@@ -2945,10 +2973,10 @@ var reportError = function reportError(product, error, details) {
|
|
|
2945
2973
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__/* .Wistia */ .s._sentryScope.clear();
|
|
2946
2974
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__/* .Wistia */ .s._sentryScope.setTag('pillar', 'publish');
|
|
2947
2975
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__/* .Wistia */ .s._sentryScope.setTag('product', product);
|
|
2948
|
-
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__/* .Wistia */ .s._sentryScope.setTag('url', window.location.href);
|
|
2949
2976
|
if ((0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__/* .isNonEmptyRecord */ .uu)(details)) {
|
|
2950
2977
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__/* .Wistia */ .s._sentryScope.setTags(details);
|
|
2951
2978
|
}
|
|
2979
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__/* .Wistia */ .s._sentryScope.setTag('url', window.location.href);
|
|
2952
2980
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__/* .Wistia */ .s._sentryScope.captureException(error);
|
|
2953
2981
|
}
|
|
2954
2982
|
} catch (err) {
|
|
@@ -3534,18 +3562,26 @@ var throwAsync = function throwAsync(e) {
|
|
|
3534
3562
|
var OBJ_PROP = '_namespacedLocalStorage';
|
|
3535
3563
|
var localStorageWorks = function localStorageWorks() {
|
|
3536
3564
|
var ns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'wistia-test-localstorage';
|
|
3537
|
-
// Check the global on every call — don't rely solely on the cached result.
|
|
3538
|
-
// In test environments (Vitest with jsdom), a previous test can warm the
|
|
3539
|
-
// cache to `true` and then have the global torn down between files, leaving
|
|
3540
|
-
// pending timers/intervals to dereference a missing `localStorage` and
|
|
3541
|
-
// crash with a ReferenceError.
|
|
3542
|
-
if (typeof localStorage === 'undefined') {
|
|
3543
|
-
return false;
|
|
3544
|
-
}
|
|
3545
|
-
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__/* .Wistia */ .s._localStorageWorks != null) {
|
|
3546
|
-
return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__/* .Wistia */ .s._localStorageWorks;
|
|
3547
|
-
}
|
|
3548
3565
|
try {
|
|
3566
|
+
// Check the global on every call — don't rely solely on the cached result.
|
|
3567
|
+
// In test environments (Vitest with jsdom), a previous test can warm the
|
|
3568
|
+
// cache to `true` and then have the global torn down between files, leaving
|
|
3569
|
+
// pending timers/intervals to dereference a missing `localStorage` and
|
|
3570
|
+
// crash with a ReferenceError.
|
|
3571
|
+
//
|
|
3572
|
+
// This access must live inside the try/catch: simply *reading* the global
|
|
3573
|
+
// can throw, not just be undefined. In a sandboxed iframe without
|
|
3574
|
+
// `allow-same-origin`, the `localStorage` getter throws a SecurityError —
|
|
3575
|
+
// and `typeof` does NOT suppress it (it only suppresses ReferenceError for
|
|
3576
|
+
// truly undeclared identifiers, and `localStorage` is a declared property
|
|
3577
|
+
// on `window`). We must never recommend adding `allow-same-origin` to fix
|
|
3578
|
+
// this, so the code has to tolerate the throw.
|
|
3579
|
+
if (typeof localStorage === 'undefined') {
|
|
3580
|
+
return false;
|
|
3581
|
+
}
|
|
3582
|
+
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__/* .Wistia */ .s._localStorageWorks != null) {
|
|
3583
|
+
return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__/* .Wistia */ .s._localStorageWorks;
|
|
3584
|
+
}
|
|
3549
3585
|
// no-ops that test get, set, and remove. These may throw an exception
|
|
3550
3586
|
// in Private Browsing mode on iOS and Safari.
|
|
3551
3587
|
var currentVal = localStorage.getItem(ns);
|
|
@@ -5133,10 +5169,11 @@ var controlMultiplierEstimatedByWidth = function controlMultiplierEstimatedByWid
|
|
|
5133
5169
|
/* harmony export */ qN: () => (/* binding */ getCssGradient),
|
|
5134
5170
|
/* harmony export */ yz: () => (/* binding */ getGradientColor)
|
|
5135
5171
|
/* harmony export */ });
|
|
5136
|
-
/* unused harmony exports DEFAULT_GRADIENT, hexToRGBA, cleanGradient */
|
|
5172
|
+
/* unused harmony exports DEFAULT_GRADIENT, hexToRGBA, cleanGradient, getPlayerColorOrFirstGradientStop */
|
|
5137
5173
|
/* harmony import */ var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7350);
|
|
5138
|
-
/* harmony import */ var
|
|
5139
|
-
/* harmony import */ var
|
|
5174
|
+
/* harmony import */ var _color_utils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(998);
|
|
5175
|
+
/* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5417);
|
|
5176
|
+
/* harmony import */ var _obj_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(731);
|
|
5140
5177
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
5141
5178
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5142
5179
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -5146,16 +5183,18 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
5146
5183
|
|
|
5147
5184
|
|
|
5148
5185
|
|
|
5186
|
+
|
|
5187
|
+
|
|
5149
5188
|
var DEFAULT_ALPHA = 0.9;
|
|
5150
5189
|
var GRADIENT_COLOR_INDEX = 0;
|
|
5151
5190
|
var GRADIENT_PERCENTAGE_INDEX = 1;
|
|
5152
5191
|
var DEFAULT_GRADIENT = {
|
|
5153
|
-
colors: [[
|
|
5192
|
+
colors: [[_color_utils_ts__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_PLAYER_COLOR */ .cO, 0], ['#6A84FF', 1]],
|
|
5154
5193
|
on: true
|
|
5155
5194
|
};
|
|
5156
5195
|
var hexToRGBA = function hexToRGBA(hex) {
|
|
5157
5196
|
var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_ALPHA;
|
|
5158
|
-
var color = new
|
|
5197
|
+
var color = new _color_js__WEBPACK_IMPORTED_MODULE_2__/* .Color */ .Q1(hex);
|
|
5159
5198
|
|
|
5160
5199
|
// the "as Color" here is because the implicit types are not quite right... because we're passing a value to the
|
|
5161
5200
|
// alpha function and using it as a setter it returns the new color as a Color object, not a number or undefined
|
|
@@ -5201,6 +5240,23 @@ var cleanGradient = function cleanGradient(gradient) {
|
|
|
5201
5240
|
};
|
|
5202
5241
|
return result;
|
|
5203
5242
|
};
|
|
5243
|
+
var getPlayerColorOrFirstGradientStop = function getPlayerColorOrFirstGradientStop(playerColor, gradient) {
|
|
5244
|
+
var _addHashToHex;
|
|
5245
|
+
if (!isGradient(gradient) || !gradient.on) {
|
|
5246
|
+
return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
|
|
5247
|
+
}
|
|
5248
|
+
var firstGradientColorStop = getGradientColor(gradient);
|
|
5249
|
+
|
|
5250
|
+
// This should not be possible because we verified that the gradient passes isGradient above.
|
|
5251
|
+
// However, since getGradietnColor's return type is string | null,
|
|
5252
|
+
// we need to add this logic to appease TS.
|
|
5253
|
+
if (isNil(firstGradientColorStop)) {
|
|
5254
|
+
return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
|
|
5255
|
+
}
|
|
5256
|
+
|
|
5257
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
5258
|
+
return (_addHashToHex = addHashToHex(firstGradientColorStop)) !== null && _addHashToHex !== void 0 ? _addHashToHex : DEFAULT_PLAYER_COLOR;
|
|
5259
|
+
};
|
|
5204
5260
|
|
|
5205
5261
|
/***/ },
|
|
5206
5262
|
|
|
@@ -6371,11 +6427,16 @@ var addHashToHex = function addHashToHex(hex) {
|
|
|
6371
6427
|
return;
|
|
6372
6428
|
}
|
|
6373
6429
|
|
|
6430
|
+
// A valid hex color might be composed of all numbers
|
|
6431
|
+
// so we need to ensure that the hex is actually a string
|
|
6432
|
+
// before we try to examine its contents.
|
|
6433
|
+
var hexGuaranteedToBeString = String(hex);
|
|
6434
|
+
|
|
6374
6435
|
// return if already has hash
|
|
6375
|
-
if (
|
|
6376
|
-
return
|
|
6436
|
+
if (hexGuaranteedToBeString.charAt(0) === '#') {
|
|
6437
|
+
return hexGuaranteedToBeString;
|
|
6377
6438
|
}
|
|
6378
|
-
return "#".concat(
|
|
6439
|
+
return "#".concat(hexGuaranteedToBeString);
|
|
6379
6440
|
};
|
|
6380
6441
|
var colorWithAlpha = function colorWithAlpha(color, alpha) {
|
|
6381
6442
|
return new Color(color).alpha(alpha).toRgba();
|
|
@@ -7037,7 +7098,16 @@ var pollForJsonp = /*#__PURE__*/function () {
|
|
|
7037
7098
|
while (1) switch (_context.n) {
|
|
7038
7099
|
case 0:
|
|
7039
7100
|
return _context.a(2, new Promise(function (resolve, reject) {
|
|
7040
|
-
var
|
|
7101
|
+
var pollState = {
|
|
7102
|
+
isSettled: false,
|
|
7103
|
+
intervalId: -1,
|
|
7104
|
+
timeoutId: -1
|
|
7105
|
+
};
|
|
7106
|
+
var cleanup = function cleanup() {
|
|
7107
|
+
pollState.isSettled = true;
|
|
7108
|
+
clearInterval(pollState.intervalId);
|
|
7109
|
+
clearTimeout(pollState.timeoutId);
|
|
7110
|
+
};
|
|
7041
7111
|
|
|
7042
7112
|
// try looking once before the interval. This is especially useful for tests
|
|
7043
7113
|
// since using vi.useFakeTimers() doesn't work with this function
|
|
@@ -7045,7 +7115,7 @@ var pollForJsonp = /*#__PURE__*/function () {
|
|
|
7045
7115
|
var jsonp = window["wistiajsonp-/embed/medias/".concat(mediaId, ".jsonp")];
|
|
7046
7116
|
if (jsonp) {
|
|
7047
7117
|
if (jsonp.media) {
|
|
7048
|
-
|
|
7118
|
+
cleanup();
|
|
7049
7119
|
|
|
7050
7120
|
// Any data from speed demon scripts we know won't be localized, so we can
|
|
7051
7121
|
// cache it.
|
|
@@ -7058,15 +7128,16 @@ var pollForJsonp = /*#__PURE__*/function () {
|
|
|
7058
7128
|
return;
|
|
7059
7129
|
}
|
|
7060
7130
|
if ((0,_utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_6__/* .isMediaDataError */ .V)(jsonp)) {
|
|
7061
|
-
|
|
7131
|
+
cleanup();
|
|
7062
7132
|
resolve(jsonp);
|
|
7063
7133
|
}
|
|
7064
7134
|
}
|
|
7065
7135
|
};
|
|
7066
7136
|
checkForJsonp();
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7137
|
+
if (pollState.isSettled) return;
|
|
7138
|
+
pollState.intervalId = window.setInterval(checkForJsonp, INTERVAL_TIME);
|
|
7139
|
+
pollState.timeoutId = window.setTimeout(function () {
|
|
7140
|
+
cleanup();
|
|
7070
7141
|
reject(new Error('Timeout loading jsonp media data'));
|
|
7071
7142
|
}, JS_LOAD_TIMEOUT);
|
|
7072
7143
|
}));
|
|
@@ -7247,8 +7318,8 @@ var PROD_EMBED_HOST = 'embed.wistia.com';
|
|
|
7247
7318
|
var PROD_SSL_EMBED_HOST = 'embed-ssl.wistia.com';
|
|
7248
7319
|
var PROD_FASTLY_SSL_HOST = 'embed-fastly.wistia.com';
|
|
7249
7320
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7250
|
-
var TAGGED_VERSION = "0.7.
|
|
7251
|
-
var CURRENT_SHA = "
|
|
7321
|
+
var TAGGED_VERSION = "0.7.5" || 0;
|
|
7322
|
+
var CURRENT_SHA = "7f1f10ca8b9bae893fd757afbd3ce777956c2099" || 0;
|
|
7252
7323
|
var DEFAULT_PROTOCOL = function () {
|
|
7253
7324
|
if (typeof window !== 'undefined' && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location) {
|
|
7254
7325
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location.protocol;
|
|
@@ -8465,7 +8536,7 @@ var dynamicImport = /*#__PURE__*/function () {
|
|
|
8465
8536
|
_t2 = _context2.v;
|
|
8466
8537
|
reportedError = _t2 instanceof Error ? _t2 : new Error(String(_t2));
|
|
8467
8538
|
(0,_sentryUtils_ts__WEBPACK_IMPORTED_MODULE_1__/* .reportError */ .N7)('dynamicImport', reportedError, {
|
|
8468
|
-
|
|
8539
|
+
importUrl: url
|
|
8469
8540
|
});
|
|
8470
8541
|
(0,_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_2__/* .countMetric */ .WO)('dynamic-import/failure-after-retry', 1, {
|
|
8471
8542
|
attempt: String(MAX_RETRIES),
|
|
@@ -9074,6 +9145,26 @@ var moveToFront = function moveToFront(assets, toFront) {
|
|
|
9074
9145
|
/* harmony export */ });
|
|
9075
9146
|
var MUX_PERCENTAGE_TO_ENABLE = 0.1;
|
|
9076
9147
|
|
|
9148
|
+
/**
|
|
9149
|
+
* Whether the current environment provides the `console` methods that mux-embed
|
|
9150
|
+
* relies on at module-evaluation time.
|
|
9151
|
+
*
|
|
9152
|
+
* mux-embed sets up its logger via `console.trace`/`console.info`/`console.debug`
|
|
9153
|
+
* as soon as the module is imported (`var q = kt("[mux]")`). In restricted
|
|
9154
|
+
* WebKit environments such as Apple Mail's email preview, those methods are
|
|
9155
|
+
* undefined, so simply importing wistia-mux.js throws an error
|
|
9156
|
+
* @returns {boolean} True if the console methods mux-embed needs are available.
|
|
9157
|
+
*/
|
|
9158
|
+
var isMuxEnvironmentSupported = function isMuxEnvironmentSupported() {
|
|
9159
|
+
return typeof console !== 'undefined' &&
|
|
9160
|
+
// eslint-disable-next-line no-console
|
|
9161
|
+
typeof console.trace === 'function' &&
|
|
9162
|
+
// eslint-disable-next-line no-console
|
|
9163
|
+
typeof console.info === 'function' &&
|
|
9164
|
+
// eslint-disable-next-line no-console
|
|
9165
|
+
typeof console.debug === 'function';
|
|
9166
|
+
};
|
|
9167
|
+
|
|
9077
9168
|
/**
|
|
9078
9169
|
* Determines if Mux should be enabled for an embed based on various conditions.
|
|
9079
9170
|
* @param {PublicApi} video The embed mux should be enabled for.
|
|
@@ -9082,6 +9173,7 @@ var MUX_PERCENTAGE_TO_ENABLE = 0.1;
|
|
|
9082
9173
|
*/
|
|
9083
9174
|
var shouldEnableMux = function shouldEnableMux(video, didWinCoinFlip) {
|
|
9084
9175
|
var _video$_opts, _video$_mediaData;
|
|
9176
|
+
var isMuxEnabledInEnvironment = isMuxEnvironmentSupported();
|
|
9085
9177
|
var isMuxEnabledOnWindow = window.wistiaDisableMux !== true;
|
|
9086
9178
|
var isMuxEnabledFromOpts = ((_video$_opts = video._opts) === null || _video$_opts === void 0 ? void 0 : _video$_opts.mux) !== false;
|
|
9087
9179
|
var isMuxEnabledFromStandardEmbed = video.iframe == null;
|
|
@@ -9089,12 +9181,12 @@ var shouldEnableMux = function shouldEnableMux(video, didWinCoinFlip) {
|
|
|
9089
9181
|
var isMuxEnabledFromLiveStream = ((_video$_mediaData = video._mediaData) === null || _video$_mediaData === void 0 ? void 0 : _video$_mediaData.type) === 'LiveStream';
|
|
9090
9182
|
|
|
9091
9183
|
// Mux should be enabled if all of the following are true:
|
|
9092
|
-
// 1.
|
|
9093
|
-
//
|
|
9094
|
-
//
|
|
9095
|
-
//
|
|
9184
|
+
// 1. The environment provides the console methods mux-embed needs
|
|
9185
|
+
// 3. Mux is not disabled from the embed options
|
|
9186
|
+
// 4. Mux is not disabled from the video being an iframe embed
|
|
9187
|
+
// 5. Mux is not disabled from the coin flip OR the video is a live stream
|
|
9096
9188
|
// (Live streams should always have Mux enabled, regardless of the coin flip result)
|
|
9097
|
-
return isMuxEnabledOnWindow && isMuxEnabledFromOpts && isMuxEnabledFromStandardEmbed && (isMuxEnabledFromCoinFlip || isMuxEnabledFromLiveStream);
|
|
9189
|
+
return isMuxEnabledInEnvironment && isMuxEnabledOnWindow && isMuxEnabledFromOpts && isMuxEnabledFromStandardEmbed && (isMuxEnabledFromCoinFlip || isMuxEnabledFromLiveStream);
|
|
9098
9190
|
};
|
|
9099
9191
|
|
|
9100
9192
|
/***/ },
|
|
@@ -10137,7 +10229,15 @@ var elemInDom = function elemInDom(elem) {
|
|
|
10137
10229
|
if (elem === document) {
|
|
10138
10230
|
return true;
|
|
10139
10231
|
}
|
|
10140
|
-
|
|
10232
|
+
var parent = elem.parentNode;
|
|
10233
|
+
if (parent != null) {
|
|
10234
|
+
elem = parent;
|
|
10235
|
+
} else if (typeof elem.getRootNode === 'function') {
|
|
10236
|
+
var _elem$getRootNode;
|
|
10237
|
+
elem = (_elem$getRootNode = elem.getRootNode()) === null || _elem$getRootNode === void 0 ? void 0 : _elem$getRootNode.host;
|
|
10238
|
+
} else {
|
|
10239
|
+
return false;
|
|
10240
|
+
}
|
|
10141
10241
|
}
|
|
10142
10242
|
return false;
|
|
10143
10243
|
};
|
|
@@ -10376,6 +10476,11 @@ var elemRequestFullscreen = function elemRequestFullscreen(elem) {
|
|
|
10376
10476
|
});
|
|
10377
10477
|
}
|
|
10378
10478
|
if (elem.webkitEnterFullscreen) {
|
|
10479
|
+
if (elem.readyState !== undefined && elem.readyState < HTMLMediaElement.HAVE_METADATA) {
|
|
10480
|
+
var errorMessage = 'webkitEnterFullscreen requires at least HAVE_METADATA readyState';
|
|
10481
|
+
wlog.notice(errorMessage);
|
|
10482
|
+
return Promise.reject(new Error(errorMessage));
|
|
10483
|
+
}
|
|
10379
10484
|
elem.webkitEnterFullscreen();
|
|
10380
10485
|
return Promise.resolve();
|
|
10381
10486
|
}
|
|
@@ -15887,6 +15992,17 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15887
15992
|
return _classPrivateFieldGet(_api, this);
|
|
15888
15993
|
}
|
|
15889
15994
|
|
|
15995
|
+
/**
|
|
15996
|
+
* Returns the description of the video, as used in the JSON-LD schema
|
|
15997
|
+
* @returns {string}
|
|
15998
|
+
*/
|
|
15999
|
+
}, {
|
|
16000
|
+
key: "description",
|
|
16001
|
+
get: function get() {
|
|
16002
|
+
var _ref5, _classPrivateFieldGet24, _classPrivateFieldGet25, _classPrivateFieldGet26;
|
|
16003
|
+
return (_ref5 = (_classPrivateFieldGet24 = _classPrivateFieldGet(_playerData, this).mediaData.seoDescription) !== null && _classPrivateFieldGet24 !== void 0 ? _classPrivateFieldGet24 : (_classPrivateFieldGet25 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : (_classPrivateFieldGet26 = _classPrivateFieldGet25._mediaData) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.seoDescription) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
16004
|
+
}
|
|
16005
|
+
|
|
15890
16006
|
/**
|
|
15891
16007
|
* Returns the status of the do not track embed option that controls whether the player
|
|
15892
16008
|
* sends tracking pings.
|
|
@@ -15915,8 +16031,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15915
16031
|
}, {
|
|
15916
16032
|
key: "duration",
|
|
15917
16033
|
get: function get() {
|
|
15918
|
-
var
|
|
15919
|
-
return (
|
|
16034
|
+
var _classPrivateFieldGet27, _classPrivateFieldGet28;
|
|
16035
|
+
return (_classPrivateFieldGet27 = (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.duration()) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : 0;
|
|
15920
16036
|
}
|
|
15921
16037
|
|
|
15922
16038
|
/**
|
|
@@ -15930,8 +16046,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15930
16046
|
}, {
|
|
15931
16047
|
key: "email",
|
|
15932
16048
|
get: function get() {
|
|
15933
|
-
var
|
|
15934
|
-
return (
|
|
16049
|
+
var _ref6, _ref7, _extractEmailFromPara, _classPrivateGetter2;
|
|
16050
|
+
return (_ref6 = (_ref7 = (_extractEmailFromPara = (0,_utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_16__/* .extractEmailFromParams */ .i)(_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl))) !== null && _extractEmailFromPara !== void 0 ? _extractEmailFromPara : (_classPrivateGetter2 = (0,_utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_27__/* .getWistiaLocalStorage */ .y1)()[_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl)]) === null || _classPrivateGetter2 === void 0 ? void 0 : _classPrivateGetter2.trackEmail) !== null && _ref7 !== void 0 ? _ref7 : this.embedOptions.email) !== null && _ref6 !== void 0 ? _ref6 : undefined;
|
|
15935
16051
|
}
|
|
15936
16052
|
|
|
15937
16053
|
/**
|
|
@@ -15989,8 +16105,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15989
16105
|
}, {
|
|
15990
16106
|
key: "ended",
|
|
15991
16107
|
get: function get() {
|
|
15992
|
-
var
|
|
15993
|
-
return ((
|
|
16108
|
+
var _classPrivateFieldGet29;
|
|
16109
|
+
return ((_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === 'ended';
|
|
15994
16110
|
}
|
|
15995
16111
|
|
|
15996
16112
|
/**
|
|
@@ -16013,11 +16129,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16013
16129
|
// underlying <video /> element. So we must do more than just change the _impl._attrs
|
|
16014
16130
|
// for it to be updated.
|
|
16015
16131
|
if (behavior === 'loop') {
|
|
16016
|
-
var
|
|
16017
|
-
(
|
|
16132
|
+
var _classPrivateFieldGet30;
|
|
16133
|
+
(_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.addLoopBehavior();
|
|
16018
16134
|
} else {
|
|
16019
|
-
var
|
|
16020
|
-
(
|
|
16135
|
+
var _classPrivateFieldGet31;
|
|
16136
|
+
(_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.removeLoopBehavior();
|
|
16021
16137
|
}
|
|
16022
16138
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'endVideoBehavior', behavior);
|
|
16023
16139
|
}
|
|
@@ -16029,8 +16145,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16029
16145
|
}, {
|
|
16030
16146
|
key: "eventKey",
|
|
16031
16147
|
get: function get() {
|
|
16032
|
-
var
|
|
16033
|
-
return (
|
|
16148
|
+
var _classPrivateFieldGet32;
|
|
16149
|
+
return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.eventKey();
|
|
16034
16150
|
}
|
|
16035
16151
|
|
|
16036
16152
|
/**
|
|
@@ -16068,8 +16184,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16068
16184
|
* @returns {void}
|
|
16069
16185
|
*/,
|
|
16070
16186
|
set: function set(shouldDisplay) {
|
|
16071
|
-
var
|
|
16072
|
-
(
|
|
16187
|
+
var _classPrivateFieldGet33;
|
|
16188
|
+
(_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.fullscreenControlEnabled(shouldDisplay);
|
|
16073
16189
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'fullscreenControl', shouldDisplay);
|
|
16074
16190
|
}
|
|
16075
16191
|
|
|
@@ -16101,14 +16217,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16101
16217
|
}, {
|
|
16102
16218
|
key: "inFullscreen",
|
|
16103
16219
|
get: function get() {
|
|
16104
|
-
var
|
|
16105
|
-
return (
|
|
16220
|
+
var _classPrivateFieldGet34, _classPrivateFieldGet35;
|
|
16221
|
+
return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.inFullscreen()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
|
|
16106
16222
|
}
|
|
16107
16223
|
}, {
|
|
16108
16224
|
key: "inputContext",
|
|
16109
16225
|
get: function get() {
|
|
16110
|
-
var
|
|
16111
|
-
return (
|
|
16226
|
+
var _classPrivateFieldGet36;
|
|
16227
|
+
return (_classPrivateFieldGet36 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.getInputContext();
|
|
16112
16228
|
}
|
|
16113
16229
|
|
|
16114
16230
|
/**
|
|
@@ -16118,8 +16234,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16118
16234
|
}, {
|
|
16119
16235
|
key: "instantHls",
|
|
16120
16236
|
get: function get() {
|
|
16121
|
-
var
|
|
16122
|
-
return (
|
|
16237
|
+
var _classPrivateFieldGet37, _classPrivateFieldGet38;
|
|
16238
|
+
return (_classPrivateFieldGet37 = (_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.isInstantHls()) !== null && _classPrivateFieldGet37 !== void 0 ? _classPrivateFieldGet37 : false;
|
|
16123
16239
|
}
|
|
16124
16240
|
|
|
16125
16241
|
// the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
|
|
@@ -16127,18 +16243,18 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16127
16243
|
}, {
|
|
16128
16244
|
key: "language",
|
|
16129
16245
|
get: function get() {
|
|
16130
|
-
var
|
|
16131
|
-
return (
|
|
16246
|
+
var _classPrivateFieldGet39, _classPrivateFieldGet40;
|
|
16247
|
+
return (_classPrivateFieldGet39 = (_classPrivateFieldGet40 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet40 === void 0 ? void 0 : _classPrivateFieldGet40.language()) !== null && _classPrivateFieldGet39 !== void 0 ? _classPrivateFieldGet39 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
16132
16248
|
},
|
|
16133
16249
|
set: function set(language) {
|
|
16134
|
-
var
|
|
16135
|
-
(
|
|
16250
|
+
var _classPrivateFieldGet41;
|
|
16251
|
+
(_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.language(language);
|
|
16136
16252
|
}
|
|
16137
16253
|
}, {
|
|
16138
16254
|
key: "languages",
|
|
16139
16255
|
get: function get() {
|
|
16140
|
-
var
|
|
16141
|
-
return (
|
|
16256
|
+
var _classPrivateFieldGet42, _classPrivateFieldGet43;
|
|
16257
|
+
return (_classPrivateFieldGet42 = (_classPrivateFieldGet43 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.languages()) !== null && _classPrivateFieldGet42 !== void 0 ? _classPrivateFieldGet42 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
|
|
16142
16258
|
}
|
|
16143
16259
|
|
|
16144
16260
|
/**
|
|
@@ -16187,8 +16303,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16187
16303
|
}, {
|
|
16188
16304
|
key: "mediaLanguage",
|
|
16189
16305
|
get: function get() {
|
|
16190
|
-
var
|
|
16191
|
-
return (
|
|
16306
|
+
var _classPrivateFieldGet44, _classPrivateFieldGet45;
|
|
16307
|
+
return (_classPrivateFieldGet44 = (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.mediaLanguage()) !== null && _classPrivateFieldGet44 !== void 0 ? _classPrivateFieldGet44 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
16192
16308
|
}
|
|
16193
16309
|
|
|
16194
16310
|
/**
|
|
@@ -16199,8 +16315,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16199
16315
|
}, {
|
|
16200
16316
|
key: "mediaLanguageCode",
|
|
16201
16317
|
get: function get() {
|
|
16202
|
-
var
|
|
16203
|
-
return (
|
|
16318
|
+
var _classPrivateFieldGet46, _classPrivateFieldGet47;
|
|
16319
|
+
return (_classPrivateFieldGet46 = (_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.mediaLanguageCode()) !== null && _classPrivateFieldGet46 !== void 0 ? _classPrivateFieldGet46 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this).wistiaLanguageCode;
|
|
16204
16320
|
}
|
|
16205
16321
|
|
|
16206
16322
|
/**
|
|
@@ -16208,14 +16324,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16208
16324
|
* @returns {Localization[]}
|
|
16209
16325
|
*/,
|
|
16210
16326
|
set: function set(languageCode) {
|
|
16211
|
-
var
|
|
16212
|
-
(
|
|
16327
|
+
var _classPrivateFieldGet48;
|
|
16328
|
+
(_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.mediaLanguageCode(languageCode);
|
|
16213
16329
|
}
|
|
16214
16330
|
}, {
|
|
16215
16331
|
key: "mediaLanguages",
|
|
16216
16332
|
get: function get() {
|
|
16217
|
-
var
|
|
16218
|
-
return (
|
|
16333
|
+
var _classPrivateFieldGet49, _classPrivateFieldGet50;
|
|
16334
|
+
return (_classPrivateFieldGet49 = (_classPrivateFieldGet50 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet50 === void 0 ? void 0 : _classPrivateFieldGet50.mediaLanguages()) !== null && _classPrivateFieldGet49 !== void 0 ? _classPrivateFieldGet49 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
|
|
16219
16335
|
}
|
|
16220
16336
|
|
|
16221
16337
|
/**
|
|
@@ -16225,8 +16341,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16225
16341
|
}, {
|
|
16226
16342
|
key: "muted",
|
|
16227
16343
|
get: function get() {
|
|
16228
|
-
var
|
|
16229
|
-
return (
|
|
16344
|
+
var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52;
|
|
16345
|
+
return (_ref8 = (_classPrivateFieldGet51 = (_classPrivateFieldGet52 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : _classPrivateFieldGet52.isMuted()) !== null && _classPrivateFieldGet51 !== void 0 ? _classPrivateFieldGet51 : this.embedOptions.muted) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
16230
16346
|
}
|
|
16231
16347
|
|
|
16232
16348
|
/**
|
|
@@ -16252,8 +16368,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16252
16368
|
}, {
|
|
16253
16369
|
key: "name",
|
|
16254
16370
|
get: function get() {
|
|
16255
|
-
var
|
|
16256
|
-
return (
|
|
16371
|
+
var _ref9, _classPrivateFieldGet53, _classPrivateFieldGet54, _classPrivateFieldGet55;
|
|
16372
|
+
return (_ref9 = (_classPrivateFieldGet53 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet53 !== void 0 ? _classPrivateFieldGet53 : (_classPrivateFieldGet54 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : (_classPrivateFieldGet55 = _classPrivateFieldGet54._mediaData) === null || _classPrivateFieldGet55 === void 0 ? void 0 : _classPrivateFieldGet55.name) !== null && _ref9 !== void 0 ? _ref9 : undefined;
|
|
16257
16373
|
}
|
|
16258
16374
|
|
|
16259
16375
|
/**
|
|
@@ -16274,9 +16390,9 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16274
16390
|
* @returns {void}
|
|
16275
16391
|
*/,
|
|
16276
16392
|
set: function set(opaqueControls) {
|
|
16277
|
-
var
|
|
16393
|
+
var _classPrivateFieldGet56;
|
|
16278
16394
|
var valueAsBoolean = Boolean(opaqueControls);
|
|
16279
|
-
(
|
|
16395
|
+
(_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.opaqueControls(valueAsBoolean);
|
|
16280
16396
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'opaqueControls', valueAsBoolean);
|
|
16281
16397
|
}
|
|
16282
16398
|
}, {
|
|
@@ -16295,8 +16411,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16295
16411
|
}, {
|
|
16296
16412
|
key: "paused",
|
|
16297
16413
|
get: function get() {
|
|
16298
|
-
var
|
|
16299
|
-
return ((
|
|
16414
|
+
var _classPrivateFieldGet57;
|
|
16415
|
+
return ((_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.state()) === 'paused';
|
|
16300
16416
|
}
|
|
16301
16417
|
|
|
16302
16418
|
/**
|
|
@@ -16306,8 +16422,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16306
16422
|
}, {
|
|
16307
16423
|
key: "percentWatched",
|
|
16308
16424
|
get: function get() {
|
|
16309
|
-
var
|
|
16310
|
-
return (
|
|
16425
|
+
var _classPrivateFieldGet58, _classPrivateFieldGet59;
|
|
16426
|
+
return (_classPrivateFieldGet58 = (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.percentWatched()) !== null && _classPrivateFieldGet58 !== void 0 ? _classPrivateFieldGet58 : 0;
|
|
16311
16427
|
}
|
|
16312
16428
|
|
|
16313
16429
|
/**
|
|
@@ -16317,8 +16433,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16317
16433
|
}, {
|
|
16318
16434
|
key: "playbackRate",
|
|
16319
16435
|
get: function get() {
|
|
16320
|
-
var
|
|
16321
|
-
return (
|
|
16436
|
+
var _ref0, _classPrivateFieldGet60, _classPrivateFieldGet61;
|
|
16437
|
+
return (_ref0 = (_classPrivateFieldGet60 = (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbackRate()) !== null && _classPrivateFieldGet60 !== void 0 ? _classPrivateFieldGet60 : this.embedOptions.playbackRate) !== null && _ref0 !== void 0 ? _ref0 : 1;
|
|
16322
16438
|
}
|
|
16323
16439
|
|
|
16324
16440
|
/**
|
|
@@ -16327,8 +16443,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16327
16443
|
* @returns {void}
|
|
16328
16444
|
*/,
|
|
16329
16445
|
set: function set(rate) {
|
|
16330
|
-
var
|
|
16331
|
-
(
|
|
16446
|
+
var _classPrivateFieldGet62;
|
|
16447
|
+
(_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbackRate(rate);
|
|
16332
16448
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playbackRate', rate);
|
|
16333
16449
|
}
|
|
16334
16450
|
|
|
@@ -16348,8 +16464,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16348
16464
|
* @returns {void}
|
|
16349
16465
|
*/,
|
|
16350
16466
|
set: function set(shouldDisplay) {
|
|
16351
|
-
var
|
|
16352
|
-
(
|
|
16467
|
+
var _classPrivateFieldGet63;
|
|
16468
|
+
(_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
|
|
16353
16469
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playbackRateControl', shouldDisplay);
|
|
16354
16470
|
}
|
|
16355
16471
|
|
|
@@ -16369,8 +16485,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16369
16485
|
* @returns {void}
|
|
16370
16486
|
*/,
|
|
16371
16487
|
set: function set(shouldDisplay) {
|
|
16372
|
-
var
|
|
16373
|
-
(
|
|
16488
|
+
var _classPrivateFieldGet64;
|
|
16489
|
+
(_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playbarControlEnabled(shouldDisplay);
|
|
16374
16490
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playBarControl', shouldDisplay);
|
|
16375
16491
|
}
|
|
16376
16492
|
|
|
@@ -16390,11 +16506,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16390
16506
|
* @returns {void}
|
|
16391
16507
|
*/,
|
|
16392
16508
|
set: function set(radius) {
|
|
16393
|
-
var
|
|
16509
|
+
var _classPrivateFieldGet65;
|
|
16394
16510
|
// ensure the value is a number, since this is potentially coming from outside the player,
|
|
16395
16511
|
// we can't guarantee they have given us the right type
|
|
16396
16512
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
16397
|
-
(
|
|
16513
|
+
(_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setPlayerBorderRadius(Number(radius));
|
|
16398
16514
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
16399
16515
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerBorderRadius', Number(radius));
|
|
16400
16516
|
}
|
|
@@ -16421,8 +16537,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16421
16537
|
* @returns {void}
|
|
16422
16538
|
*/,
|
|
16423
16539
|
set: function set(newColor) {
|
|
16424
|
-
var
|
|
16425
|
-
(
|
|
16540
|
+
var _classPrivateFieldGet66;
|
|
16541
|
+
(_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
|
|
16426
16542
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerColor', newColor);
|
|
16427
16543
|
}
|
|
16428
16544
|
|
|
@@ -16446,11 +16562,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16446
16562
|
* @returns {void}
|
|
16447
16563
|
*/,
|
|
16448
16564
|
set: function set(gradient) {
|
|
16449
|
-
var
|
|
16565
|
+
var _classPrivateFieldGet67;
|
|
16450
16566
|
if (!(0,_types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__/* .isGradient */ .b)(gradient)) {
|
|
16451
16567
|
throw new Error('playerColorGradient must be a valid gradient object');
|
|
16452
16568
|
}
|
|
16453
|
-
(
|
|
16569
|
+
(_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playerColorGradient(gradient);
|
|
16454
16570
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerColorGradient', gradient);
|
|
16455
16571
|
}
|
|
16456
16572
|
|
|
@@ -16464,8 +16580,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16464
16580
|
}, {
|
|
16465
16581
|
key: "playerForce",
|
|
16466
16582
|
get: function get() {
|
|
16467
|
-
var
|
|
16468
|
-
return (
|
|
16583
|
+
var _ref1;
|
|
16584
|
+
return (_ref1 = this.getAttribute('player-force')) !== null && _ref1 !== void 0 ? _ref1 : undefined;
|
|
16469
16585
|
}
|
|
16470
16586
|
|
|
16471
16587
|
/**
|
|
@@ -16538,8 +16654,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16538
16654
|
* @returns {void}
|
|
16539
16655
|
*/,
|
|
16540
16656
|
set: function set(shouldDisplay) {
|
|
16541
|
-
var
|
|
16542
|
-
(
|
|
16657
|
+
var _classPrivateFieldGet68;
|
|
16658
|
+
(_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
|
|
16543
16659
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playPauseControl', shouldDisplay);
|
|
16544
16660
|
}
|
|
16545
16661
|
|
|
@@ -16563,8 +16679,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16563
16679
|
* @returns {void}
|
|
16564
16680
|
*/,
|
|
16565
16681
|
set: function set(shouldDisplay) {
|
|
16566
|
-
var
|
|
16567
|
-
(
|
|
16682
|
+
var _classPrivateFieldGet69;
|
|
16683
|
+
(_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playPauseNotifierEnabled(shouldDisplay);
|
|
16568
16684
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playPauseNotifier', shouldDisplay);
|
|
16569
16685
|
}
|
|
16570
16686
|
|
|
@@ -16903,8 +17019,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16903
17019
|
}, {
|
|
16904
17020
|
key: "preload",
|
|
16905
17021
|
get: function get() {
|
|
16906
|
-
var
|
|
16907
|
-
return (
|
|
17022
|
+
var _ref10, _classPrivateFieldGet70, _classPrivateFieldGet71;
|
|
17023
|
+
return (_ref10 = (_classPrivateFieldGet70 = (_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.preloadValue()) !== null && _classPrivateFieldGet70 !== void 0 ? _classPrivateFieldGet70 : this.embedOptions.preload) !== null && _ref10 !== void 0 ? _ref10 : 'metadata';
|
|
16908
17024
|
}
|
|
16909
17025
|
|
|
16910
17026
|
/**
|
|
@@ -16944,8 +17060,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16944
17060
|
* @returns {void}
|
|
16945
17061
|
*/,
|
|
16946
17062
|
set: function set(shouldDisplay) {
|
|
16947
|
-
var
|
|
16948
|
-
(
|
|
17063
|
+
var _classPrivateFieldGet72;
|
|
17064
|
+
(_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.qualityControlEnabled(shouldDisplay);
|
|
16949
17065
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityControl', shouldDisplay);
|
|
16950
17066
|
}
|
|
16951
17067
|
|
|
@@ -16965,8 +17081,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16965
17081
|
* @returns {void}
|
|
16966
17082
|
*/,
|
|
16967
17083
|
set: function set(quality) {
|
|
16968
|
-
var
|
|
16969
|
-
(
|
|
17084
|
+
var _classPrivateFieldGet73;
|
|
17085
|
+
(_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.qualityMax(quality);
|
|
16970
17086
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityMax', quality);
|
|
16971
17087
|
}
|
|
16972
17088
|
|
|
@@ -16986,8 +17102,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16986
17102
|
* @returns {void}
|
|
16987
17103
|
*/,
|
|
16988
17104
|
set: function set(quality) {
|
|
16989
|
-
var
|
|
16990
|
-
(
|
|
17105
|
+
var _classPrivateFieldGet74;
|
|
17106
|
+
(_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.qualityMin(quality);
|
|
16991
17107
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityMin', quality);
|
|
16992
17108
|
}
|
|
16993
17109
|
|
|
@@ -16998,8 +17114,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16998
17114
|
}, {
|
|
16999
17115
|
key: "readyState",
|
|
17000
17116
|
get: function get() {
|
|
17001
|
-
var
|
|
17002
|
-
return (
|
|
17117
|
+
var _classPrivateFieldGet75, _classPrivateFieldGet76;
|
|
17118
|
+
return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.getReadyState()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
|
|
17003
17119
|
}
|
|
17004
17120
|
|
|
17005
17121
|
/**
|
|
@@ -17021,8 +17137,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17021
17137
|
* @returns {void}
|
|
17022
17138
|
*/,
|
|
17023
17139
|
set: function set(resumableState) {
|
|
17024
|
-
var
|
|
17025
|
-
(
|
|
17140
|
+
var _classPrivateFieldGet77;
|
|
17141
|
+
(_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
|
|
17026
17142
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'resumable', resumableState);
|
|
17027
17143
|
}
|
|
17028
17144
|
|
|
@@ -17042,11 +17158,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17042
17158
|
* @returns {void}
|
|
17043
17159
|
*/,
|
|
17044
17160
|
set: function set(radius) {
|
|
17045
|
-
var
|
|
17161
|
+
var _classPrivateFieldGet78;
|
|
17046
17162
|
// ensure the value is a number, since this is potentially coming from outside the player,
|
|
17047
17163
|
// we can't guarantee they have given us the right type
|
|
17048
17164
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
17049
|
-
(
|
|
17165
|
+
(_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
|
|
17050
17166
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
17051
17167
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'roundedPlayer', Number(radius));
|
|
17052
17168
|
}
|
|
@@ -17059,8 +17175,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17059
17175
|
}, {
|
|
17060
17176
|
key: "secondsWatched",
|
|
17061
17177
|
get: function get() {
|
|
17062
|
-
var
|
|
17063
|
-
return (
|
|
17178
|
+
var _classPrivateFieldGet79, _classPrivateFieldGet80;
|
|
17179
|
+
return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
|
|
17064
17180
|
}
|
|
17065
17181
|
|
|
17066
17182
|
/**
|
|
@@ -17070,8 +17186,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17070
17186
|
}, {
|
|
17071
17187
|
key: "secondsWatchedVector",
|
|
17072
17188
|
get: function get() {
|
|
17073
|
-
var
|
|
17074
|
-
return (
|
|
17189
|
+
var _classPrivateFieldGet81, _classPrivateFieldGet82;
|
|
17190
|
+
return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
|
|
17075
17191
|
}
|
|
17076
17192
|
|
|
17077
17193
|
/**
|
|
@@ -17111,8 +17227,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17111
17227
|
* @returns {void}
|
|
17112
17228
|
*/,
|
|
17113
17229
|
set: function set(shouldDisplay) {
|
|
17114
|
-
var
|
|
17115
|
-
(
|
|
17230
|
+
var _classPrivateFieldGet83;
|
|
17231
|
+
(_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
|
|
17116
17232
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'settingsControl', shouldDisplay);
|
|
17117
17233
|
}
|
|
17118
17234
|
|
|
@@ -17142,10 +17258,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17142
17258
|
}, {
|
|
17143
17259
|
key: "sourceLanguage",
|
|
17144
17260
|
get: function get() {
|
|
17145
|
-
var
|
|
17146
|
-
return (
|
|
17261
|
+
var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
|
|
17262
|
+
return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function (loc) {
|
|
17147
17263
|
return loc.isOriginal;
|
|
17148
|
-
})) !== null &&
|
|
17264
|
+
})) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
|
|
17149
17265
|
}
|
|
17150
17266
|
|
|
17151
17267
|
/**
|
|
@@ -17167,8 +17283,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17167
17283
|
}, {
|
|
17168
17284
|
key: "state",
|
|
17169
17285
|
get: function get() {
|
|
17170
|
-
var
|
|
17171
|
-
return (
|
|
17286
|
+
var _classPrivateFieldGet87, _classPrivateFieldGet88;
|
|
17287
|
+
return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
|
|
17172
17288
|
}
|
|
17173
17289
|
|
|
17174
17290
|
/**
|
|
@@ -17288,8 +17404,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17288
17404
|
}, {
|
|
17289
17405
|
key: "videoQuality",
|
|
17290
17406
|
get: function get() {
|
|
17291
|
-
var
|
|
17292
|
-
return (
|
|
17407
|
+
var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
|
|
17408
|
+
return (_ref11 = (_classPrivateFieldGet89 = (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.getVideoQuality()) !== null && _classPrivateFieldGet89 !== void 0 ? _classPrivateFieldGet89 : this.embedOptions.videoQuality) !== null && _ref11 !== void 0 ? _ref11 : 'auto';
|
|
17293
17409
|
}
|
|
17294
17410
|
|
|
17295
17411
|
/**
|
|
@@ -17298,8 +17414,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17298
17414
|
* @returns {void}
|
|
17299
17415
|
*/,
|
|
17300
17416
|
set: function set(quality) {
|
|
17301
|
-
var
|
|
17302
|
-
(
|
|
17417
|
+
var _classPrivateFieldGet91;
|
|
17418
|
+
(_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
|
|
17303
17419
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'videoQuality', quality);
|
|
17304
17420
|
}
|
|
17305
17421
|
|
|
@@ -17330,8 +17446,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17330
17446
|
* @returns {void}
|
|
17331
17447
|
*/,
|
|
17332
17448
|
set: function set(level) {
|
|
17333
|
-
var
|
|
17334
|
-
(
|
|
17449
|
+
var _classPrivateFieldGet92;
|
|
17450
|
+
(_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
|
|
17335
17451
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'volume', level);
|
|
17336
17452
|
}
|
|
17337
17453
|
|
|
@@ -17353,8 +17469,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17353
17469
|
* @returns {void}
|
|
17354
17470
|
*/,
|
|
17355
17471
|
set: function set(shouldDisplay) {
|
|
17356
|
-
var
|
|
17357
|
-
(
|
|
17472
|
+
var _classPrivateFieldGet93;
|
|
17473
|
+
(_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
|
|
17358
17474
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'volumeControl', shouldDisplay);
|
|
17359
17475
|
}
|
|
17360
17476
|
|
|
@@ -17408,12 +17524,12 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17408
17524
|
key: "cancelFullscreen",
|
|
17409
17525
|
value: (function () {
|
|
17410
17526
|
var _cancelFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
17411
|
-
var
|
|
17527
|
+
var _classPrivateFieldGet94,
|
|
17412
17528
|
_this3 = this;
|
|
17413
17529
|
return _regenerator().w(function (_context) {
|
|
17414
17530
|
while (1) switch (_context.n) {
|
|
17415
17531
|
case 0:
|
|
17416
|
-
return _context.a(2, (
|
|
17532
|
+
return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function () {
|
|
17417
17533
|
_this3._fullscreenState.heightBeforeFullscreen = undefined;
|
|
17418
17534
|
_this3._fullscreenState.widthBeforeFullscreen = undefined;
|
|
17419
17535
|
}));
|
|
@@ -17436,11 +17552,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17436
17552
|
key: "createOverlay",
|
|
17437
17553
|
value: (function () {
|
|
17438
17554
|
var _createOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(name, options) {
|
|
17439
|
-
var
|
|
17555
|
+
var _classPrivateFieldGet95;
|
|
17440
17556
|
return _regenerator().w(function (_context2) {
|
|
17441
17557
|
while (1) switch (_context2.n) {
|
|
17442
17558
|
case 0:
|
|
17443
|
-
if (!((
|
|
17559
|
+
if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
|
|
17444
17560
|
_context2.n = 1;
|
|
17445
17561
|
break;
|
|
17446
17562
|
}
|
|
@@ -17472,17 +17588,17 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17472
17588
|
while (1) switch (_context5.n) {
|
|
17473
17589
|
case 0:
|
|
17474
17590
|
addPlugin = /*#__PURE__*/function () {
|
|
17475
|
-
var
|
|
17476
|
-
var
|
|
17591
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
17592
|
+
var _classPrivateFieldGet96, _classPrivateFieldGet97;
|
|
17477
17593
|
return _regenerator().w(function (_context3) {
|
|
17478
17594
|
while (1) switch (_context3.n) {
|
|
17479
17595
|
case 0:
|
|
17480
|
-
return _context3.a(2, (
|
|
17596
|
+
return _context3.a(2, (_classPrivateFieldGet96 = (_classPrivateFieldGet97 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.addPlugin(name, options)) !== null && _classPrivateFieldGet96 !== void 0 ? _classPrivateFieldGet96 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
|
|
17481
17597
|
}
|
|
17482
17598
|
}, _callee3);
|
|
17483
17599
|
}));
|
|
17484
17600
|
return function addPlugin() {
|
|
17485
|
-
return
|
|
17601
|
+
return _ref12.apply(this, arguments);
|
|
17486
17602
|
};
|
|
17487
17603
|
}();
|
|
17488
17604
|
if (!_classPrivateFieldGet(_api, this)) {
|
|
@@ -17529,11 +17645,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17529
17645
|
key: "deleteOverlay",
|
|
17530
17646
|
value: (function () {
|
|
17531
17647
|
var _deleteOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(name) {
|
|
17532
|
-
var
|
|
17648
|
+
var _classPrivateFieldGet98;
|
|
17533
17649
|
return _regenerator().w(function (_context6) {
|
|
17534
17650
|
while (1) switch (_context6.n) {
|
|
17535
17651
|
case 0:
|
|
17536
|
-
if (!((
|
|
17652
|
+
if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
|
|
17537
17653
|
_context6.n = 1;
|
|
17538
17654
|
break;
|
|
17539
17655
|
}
|
|
@@ -17558,11 +17674,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17558
17674
|
key: "disableControl",
|
|
17559
17675
|
value: (function () {
|
|
17560
17676
|
var _disableControl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(name) {
|
|
17561
|
-
var
|
|
17677
|
+
var _classPrivateFieldGet99;
|
|
17562
17678
|
return _regenerator().w(function (_context7) {
|
|
17563
17679
|
while (1) switch (_context7.n) {
|
|
17564
17680
|
case 0:
|
|
17565
|
-
if (!((
|
|
17681
|
+
if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
|
|
17566
17682
|
_context7.n = 1;
|
|
17567
17683
|
break;
|
|
17568
17684
|
}
|
|
@@ -17587,11 +17703,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17587
17703
|
key: "enableControl",
|
|
17588
17704
|
value: (function () {
|
|
17589
17705
|
var _enableControl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(name) {
|
|
17590
|
-
var
|
|
17706
|
+
var _classPrivateFieldGet100;
|
|
17591
17707
|
return _regenerator().w(function (_context8) {
|
|
17592
17708
|
while (1) switch (_context8.n) {
|
|
17593
17709
|
case 0:
|
|
17594
|
-
if (!((
|
|
17710
|
+
if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
|
|
17595
17711
|
_context8.n = 1;
|
|
17596
17712
|
break;
|
|
17597
17713
|
}
|
|
@@ -17610,17 +17726,17 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17610
17726
|
key: "enterInputContext",
|
|
17611
17727
|
value: function () {
|
|
17612
17728
|
var _enterInputContext = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(context) {
|
|
17613
|
-
var
|
|
17729
|
+
var _classPrivateFieldGet101,
|
|
17614
17730
|
_this5 = this;
|
|
17615
17731
|
return _regenerator().w(function (_context9) {
|
|
17616
17732
|
while (1) switch (_context9.n) {
|
|
17617
17733
|
case 0:
|
|
17618
|
-
if (!((
|
|
17734
|
+
if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
|
|
17619
17735
|
_context9.n = 1;
|
|
17620
17736
|
break;
|
|
17621
17737
|
}
|
|
17622
17738
|
return _context9.a(2, new Promise(function (resolve) {
|
|
17623
|
-
var
|
|
17739
|
+
var _classPrivateFieldGet102;
|
|
17624
17740
|
var _handler = function handler(event) {
|
|
17625
17741
|
var detail = event.detail;
|
|
17626
17742
|
if (detail.context === context) {
|
|
@@ -17629,7 +17745,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17629
17745
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .INPUT_CONTEXT_CHANGE_EVENT */ .ve, _handler);
|
|
17630
17746
|
};
|
|
17631
17747
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .INPUT_CONTEXT_CHANGE_EVENT */ .ve, _handler);
|
|
17632
|
-
(
|
|
17748
|
+
(_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
|
|
17633
17749
|
}));
|
|
17634
17750
|
case 1:
|
|
17635
17751
|
return _context9.a(2, Promise.reject(new Error("input context of name \"".concat(context, "\" cannot be enabled at this time"))));
|
|
@@ -17645,11 +17761,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17645
17761
|
key: "exitInputContext",
|
|
17646
17762
|
value: function () {
|
|
17647
17763
|
var _exitInputContext = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(context) {
|
|
17648
|
-
var
|
|
17764
|
+
var _classPrivateFieldGet103;
|
|
17649
17765
|
return _regenerator().w(function (_context0) {
|
|
17650
17766
|
while (1) switch (_context0.n) {
|
|
17651
17767
|
case 0:
|
|
17652
|
-
if (!((
|
|
17768
|
+
if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
|
|
17653
17769
|
_context0.n = 1;
|
|
17654
17770
|
break;
|
|
17655
17771
|
}
|
|
@@ -17702,8 +17818,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17702
17818
|
while (1) switch (_context10.n) {
|
|
17703
17819
|
case 0:
|
|
17704
17820
|
return _context10.a(2, new Promise(function (resolve, reject) {
|
|
17705
|
-
var
|
|
17706
|
-
if ((
|
|
17821
|
+
var _classPrivateFieldGet104;
|
|
17822
|
+
if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
|
|
17707
17823
|
resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
|
|
17708
17824
|
}
|
|
17709
17825
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -17727,7 +17843,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17727
17843
|
key: "getRemapTime",
|
|
17728
17844
|
value: (function () {
|
|
17729
17845
|
var _getRemapTime = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
17730
|
-
var
|
|
17846
|
+
var _classPrivateFieldGet105,
|
|
17731
17847
|
_this7 = this;
|
|
17732
17848
|
var _t, _t2, _t3;
|
|
17733
17849
|
return _regenerator().w(function (_context11) {
|
|
@@ -17748,11 +17864,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17748
17864
|
});
|
|
17749
17865
|
return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
|
|
17750
17866
|
case 2:
|
|
17751
|
-
if (!((
|
|
17867
|
+
if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
|
|
17752
17868
|
_context11.n = 3;
|
|
17753
17869
|
break;
|
|
17754
17870
|
}
|
|
17755
|
-
|
|
17871
|
+
_classPrivateFieldGet105;
|
|
17756
17872
|
_context11.n = 5;
|
|
17757
17873
|
break;
|
|
17758
17874
|
case 3:
|
|
@@ -17760,8 +17876,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17760
17876
|
_t2 = _cachedRemapTime;
|
|
17761
17877
|
_t3 = this;
|
|
17762
17878
|
_context11.n = 4;
|
|
17763
|
-
return (0,_utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__/* .dynamicImport */ .$)('assets/external/timeMapping.js').then(function (
|
|
17764
|
-
var remapTime =
|
|
17879
|
+
return (0,_utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__/* .dynamicImport */ .$)('assets/external/timeMapping.js').then(function (_ref14) {
|
|
17880
|
+
var remapTime = _ref14.remapTime;
|
|
17765
17881
|
return function (fromLanguage, toLanguage, fromTime) {
|
|
17766
17882
|
var fromTimeInMilliseconds = fromTime * 1000;
|
|
17767
17883
|
var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
|
|
@@ -17795,11 +17911,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17795
17911
|
key: "hideOverlay",
|
|
17796
17912
|
value: (function () {
|
|
17797
17913
|
var _hideOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(name) {
|
|
17798
|
-
var
|
|
17914
|
+
var _classPrivateFieldGet106;
|
|
17799
17915
|
return _regenerator().w(function (_context12) {
|
|
17800
17916
|
while (1) switch (_context12.n) {
|
|
17801
17917
|
case 0:
|
|
17802
|
-
if (!((
|
|
17918
|
+
if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
|
|
17803
17919
|
_context12.n = 1;
|
|
17804
17920
|
break;
|
|
17805
17921
|
}
|
|
@@ -17829,8 +17945,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17829
17945
|
while (1) switch (_context13.n) {
|
|
17830
17946
|
case 0:
|
|
17831
17947
|
return _context13.a(2, new Promise(function (resolve, reject) {
|
|
17832
|
-
var
|
|
17833
|
-
if ((
|
|
17948
|
+
var _classPrivateFieldGet107;
|
|
17949
|
+
if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
|
|
17834
17950
|
_classPrivateFieldGet(_api, _this8).popover.hide();
|
|
17835
17951
|
resolve();
|
|
17836
17952
|
}
|
|
@@ -17847,14 +17963,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17847
17963
|
}, {
|
|
17848
17964
|
key: "languagesToLocalizations",
|
|
17849
17965
|
value: function languagesToLocalizations(languages) {
|
|
17850
|
-
var
|
|
17851
|
-
return (
|
|
17966
|
+
var _classPrivateFieldGet108, _classPrivateFieldGet109;
|
|
17967
|
+
return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
|
|
17852
17968
|
}
|
|
17853
17969
|
}, {
|
|
17854
17970
|
key: "languageToLocalization",
|
|
17855
17971
|
value: function languageToLocalization(language) {
|
|
17856
|
-
var
|
|
17857
|
-
return (
|
|
17972
|
+
var _classPrivateFieldGet110, _classPrivateFieldGet111;
|
|
17973
|
+
return (_classPrivateFieldGet110 = (_classPrivateFieldGet111 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.languageToLocalization(language)) !== null && _classPrivateFieldGet110 !== void 0 ? _classPrivateFieldGet110 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
17858
17974
|
}
|
|
17859
17975
|
|
|
17860
17976
|
/**
|
|
@@ -17867,11 +17983,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17867
17983
|
key: "pause",
|
|
17868
17984
|
value: (function () {
|
|
17869
17985
|
var _pause = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
|
|
17870
|
-
var
|
|
17986
|
+
var _classPrivateFieldGet112;
|
|
17871
17987
|
return _regenerator().w(function (_context14) {
|
|
17872
17988
|
while (1) switch (_context14.n) {
|
|
17873
17989
|
case 0:
|
|
17874
|
-
return _context14.a(2, (
|
|
17990
|
+
return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
|
|
17875
17991
|
}
|
|
17876
17992
|
}, _callee14, this);
|
|
17877
17993
|
}));
|
|
@@ -17890,11 +18006,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17890
18006
|
key: "play",
|
|
17891
18007
|
value: (function () {
|
|
17892
18008
|
var _play = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15() {
|
|
17893
|
-
var
|
|
18009
|
+
var _classPrivateFieldGet113;
|
|
17894
18010
|
return _regenerator().w(function (_context15) {
|
|
17895
18011
|
while (1) switch (_context15.n) {
|
|
17896
18012
|
case 0:
|
|
17897
|
-
return _context15.a(2, (
|
|
18013
|
+
return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
|
|
17898
18014
|
}
|
|
17899
18015
|
}, _callee15, this);
|
|
17900
18016
|
}));
|
|
@@ -17912,11 +18028,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17912
18028
|
key: "releaseControls",
|
|
17913
18029
|
value: (function () {
|
|
17914
18030
|
var _releaseControls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(name) {
|
|
17915
|
-
var
|
|
18031
|
+
var _classPrivateFieldGet114;
|
|
17916
18032
|
return _regenerator().w(function (_context16) {
|
|
17917
18033
|
while (1) switch (_context16.n) {
|
|
17918
18034
|
case 0:
|
|
17919
|
-
return _context16.a(2, (
|
|
18035
|
+
return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
|
|
17920
18036
|
}
|
|
17921
18037
|
}, _callee16, this);
|
|
17922
18038
|
}));
|
|
@@ -17934,13 +18050,13 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17934
18050
|
key: "removeAllEventListeners",
|
|
17935
18051
|
value: function removeAllEventListeners() {
|
|
17936
18052
|
var _this9 = this;
|
|
17937
|
-
Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function (
|
|
17938
|
-
var
|
|
17939
|
-
type =
|
|
17940
|
-
listeners =
|
|
17941
|
-
listeners.forEach(function (
|
|
17942
|
-
var listener =
|
|
17943
|
-
options =
|
|
18053
|
+
Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function (_ref15) {
|
|
18054
|
+
var _ref16 = _slicedToArray(_ref15, 2),
|
|
18055
|
+
type = _ref16[0],
|
|
18056
|
+
listeners = _ref16[1];
|
|
18057
|
+
listeners.forEach(function (_ref17) {
|
|
18058
|
+
var listener = _ref17.listener,
|
|
18059
|
+
options = _ref17.options;
|
|
17944
18060
|
_this9.removeEventListener(type, listener, options);
|
|
17945
18061
|
});
|
|
17946
18062
|
});
|
|
@@ -17995,7 +18111,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17995
18111
|
case 0:
|
|
17996
18112
|
options = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : {};
|
|
17997
18113
|
return _context17.a(2, new Promise(function (resolve, reject) {
|
|
17998
|
-
var
|
|
18114
|
+
var _classPrivateFieldGet115;
|
|
17999
18115
|
if (!_classPrivateFieldGet(_api, _this0)) {
|
|
18000
18116
|
reject(new Error('api not ready to replace'));
|
|
18001
18117
|
}
|
|
@@ -18005,7 +18121,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18005
18121
|
resolve();
|
|
18006
18122
|
};
|
|
18007
18123
|
_this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .AFTER_REPLACE_EVENT */ .$1, _handleAfterReplace2);
|
|
18008
|
-
(
|
|
18124
|
+
(_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
|
|
18009
18125
|
}));
|
|
18010
18126
|
}
|
|
18011
18127
|
}, _callee17);
|
|
@@ -18024,11 +18140,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18024
18140
|
key: "requestControls",
|
|
18025
18141
|
value: (function () {
|
|
18026
18142
|
var _requestControls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(name) {
|
|
18027
|
-
var
|
|
18143
|
+
var _classPrivateFieldGet116;
|
|
18028
18144
|
return _regenerator().w(function (_context18) {
|
|
18029
18145
|
while (1) switch (_context18.n) {
|
|
18030
18146
|
case 0:
|
|
18031
|
-
return _context18.a(2, (
|
|
18147
|
+
return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
|
|
18032
18148
|
}
|
|
18033
18149
|
}, _callee18, this);
|
|
18034
18150
|
}));
|
|
@@ -18046,11 +18162,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18046
18162
|
key: "requestFullscreen",
|
|
18047
18163
|
value: (function () {
|
|
18048
18164
|
var _requestFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19() {
|
|
18049
|
-
var
|
|
18165
|
+
var _classPrivateFieldGet117;
|
|
18050
18166
|
return _regenerator().w(function (_context19) {
|
|
18051
18167
|
while (1) switch (_context19.n) {
|
|
18052
18168
|
case 0:
|
|
18053
|
-
if (!((
|
|
18169
|
+
if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
|
|
18054
18170
|
_context19.n = 1;
|
|
18055
18171
|
break;
|
|
18056
18172
|
}
|
|
@@ -18075,11 +18191,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18075
18191
|
key: "showOverlay",
|
|
18076
18192
|
value: (function () {
|
|
18077
18193
|
var _showOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(name) {
|
|
18078
|
-
var
|
|
18194
|
+
var _classPrivateFieldGet118;
|
|
18079
18195
|
return _regenerator().w(function (_context20) {
|
|
18080
18196
|
while (1) switch (_context20.n) {
|
|
18081
18197
|
case 0:
|
|
18082
|
-
if (!((
|
|
18198
|
+
if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
|
|
18083
18199
|
_context20.n = 1;
|
|
18084
18200
|
break;
|
|
18085
18201
|
}
|
|
@@ -18109,8 +18225,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18109
18225
|
while (1) switch (_context21.n) {
|
|
18110
18226
|
case 0:
|
|
18111
18227
|
return _context21.a(2, new Promise(function (resolve, reject) {
|
|
18112
|
-
var
|
|
18113
|
-
if ((
|
|
18228
|
+
var _classPrivateFieldGet119;
|
|
18229
|
+
if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
|
|
18114
18230
|
_classPrivateFieldGet(_api, _this1).popover.show();
|
|
18115
18231
|
resolve();
|
|
18116
18232
|
}
|
|
@@ -18374,7 +18490,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18374
18490
|
}, {
|
|
18375
18491
|
key: "disconnectedCallback",
|
|
18376
18492
|
value: function disconnectedCallback() {
|
|
18377
|
-
var
|
|
18493
|
+
var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
|
|
18378
18494
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function (removeListener) {
|
|
18379
18495
|
return removeListener();
|
|
18380
18496
|
});
|
|
@@ -18382,10 +18498,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18382
18498
|
_classPrivateFieldSet(_eventListeners, this, {});
|
|
18383
18499
|
(0,_utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__/* .removeInjectedJsonLd */ .Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
18384
18500
|
(0,_utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__/* .uncacheMediaData */ .s3)(this.mediaId);
|
|
18385
|
-
(
|
|
18501
|
+
(_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
|
|
18386
18502
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
18387
18503
|
(0,_utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__/* .removeEmbedOptionStore */ .iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
18388
|
-
(
|
|
18504
|
+
(_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
|
|
18389
18505
|
_classPrivateFieldSet(_api, this, null);
|
|
18390
18506
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
18391
18507
|
_classPrivateFieldSet(_preactRoot, this, null);
|
|
@@ -18445,11 +18561,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
|
|
|
18445
18561
|
return !!document.querySelector("wistia-channel-carousel[player-dom-id=\"".concat(this.id, "\"]:not([is-inside-playlist-embed=\"true\"][channel-id])"));
|
|
18446
18562
|
}
|
|
18447
18563
|
function _findLocalizationByLanguage(language) {
|
|
18448
|
-
var
|
|
18564
|
+
var _classPrivateFieldGet122;
|
|
18449
18565
|
if (language == null) {
|
|
18450
18566
|
return undefined;
|
|
18451
18567
|
}
|
|
18452
|
-
return (
|
|
18568
|
+
return (_classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.find(function (localization) {
|
|
18453
18569
|
return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
|
|
18454
18570
|
});
|
|
18455
18571
|
}
|
|
@@ -18474,7 +18590,7 @@ function _generateUniqueId(mediaId) {
|
|
|
18474
18590
|
* @returns {boolean | number | string | null}
|
|
18475
18591
|
*/
|
|
18476
18592
|
function _getSyncedEmbedOption(key) {
|
|
18477
|
-
var
|
|
18593
|
+
var _ref20, _ref21;
|
|
18478
18594
|
// If the public api is ready, use it as the source of truth
|
|
18479
18595
|
if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
|
|
18480
18596
|
return _classPrivateFieldGet(_impl, this)._attrs[key];
|
|
@@ -18482,7 +18598,7 @@ function _getSyncedEmbedOption(key) {
|
|
|
18482
18598
|
|
|
18483
18599
|
// Otherwise check this element's embed config for a value and fallback
|
|
18484
18600
|
// to the default embed options as a last resort
|
|
18485
|
-
return (
|
|
18601
|
+
return (_ref20 = (_ref21 = this.embedOptions[key]) !== null && _ref21 !== void 0 ? _ref21 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0,_utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__/* .camelCaseToKebabCase */ .$)(key))) !== null && _ref20 !== void 0 ? _ref20 : defaultEmbedOptions[key];
|
|
18486
18602
|
}
|
|
18487
18603
|
/**
|
|
18488
18604
|
* Gets the value of an attribute if it exists, returns null if not
|
|
@@ -18513,9 +18629,9 @@ function _getValueFromAttribute(name) {
|
|
|
18513
18629
|
* Handles initialization of the player for fresh Aurora embeds
|
|
18514
18630
|
* @returns {void}
|
|
18515
18631
|
*/
|
|
18516
|
-
function _initPlayerEmbed(
|
|
18517
|
-
var container =
|
|
18518
|
-
mediaData =
|
|
18632
|
+
function _initPlayerEmbed(_ref22) {
|
|
18633
|
+
var container = _ref22.container,
|
|
18634
|
+
mediaData = _ref22.mediaData;
|
|
18519
18635
|
if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
|
|
18520
18636
|
return;
|
|
18521
18637
|
}
|
|
@@ -18528,8 +18644,8 @@ function _initPlayerEmbed(_ref21) {
|
|
|
18528
18644
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
18529
18645
|
}
|
|
18530
18646
|
if ('attachInternals' in HTMLElement.prototype && 'states' in ElementInternals.prototype) {
|
|
18531
|
-
var
|
|
18532
|
-
(
|
|
18647
|
+
var _classPrivateFieldGet123;
|
|
18648
|
+
(_classPrivateFieldGet123 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.states.delete('--initializing');
|
|
18533
18649
|
}
|
|
18534
18650
|
|
|
18535
18651
|
// Create and save the public api instance
|
|
@@ -18585,10 +18701,10 @@ function _initPublicApi2() {
|
|
|
18585
18701
|
_this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .AFTER_REPLACE_EVENT */ .$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
|
|
18586
18702
|
});
|
|
18587
18703
|
_classPrivateFieldGet(_api, this).ready(function () {
|
|
18588
|
-
var
|
|
18589
|
-
(
|
|
18704
|
+
var _classPrivateFieldGet130, _classPrivateFieldGet131;
|
|
18705
|
+
(_classPrivateFieldGet130 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.disconnect();
|
|
18590
18706
|
_classPrivateFieldSet(_resizeObserver, _this19, null);
|
|
18591
|
-
(
|
|
18707
|
+
(_classPrivateFieldGet131 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.remove();
|
|
18592
18708
|
_this19.removeEventListener('click', _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
|
|
18593
18709
|
// event for public consumption, exposed on our event types
|
|
18594
18710
|
_this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .API_READY_EVENT */ .c5, {
|
|
@@ -18608,10 +18724,10 @@ function _initPublicApi2() {
|
|
|
18608
18724
|
|
|
18609
18725
|
// Sync embed options from the public api back to the embed config
|
|
18610
18726
|
if (_classPrivateFieldGet(_impl, _this19)) {
|
|
18611
|
-
Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function (
|
|
18612
|
-
var
|
|
18613
|
-
key =
|
|
18614
|
-
value =
|
|
18727
|
+
Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function (_ref27) {
|
|
18728
|
+
var _ref28 = _slicedToArray(_ref27, 2),
|
|
18729
|
+
key = _ref28[0],
|
|
18730
|
+
value = _ref28[1];
|
|
18615
18731
|
_classPrivateFieldGet(_playerData, _this19).updateEmbedOptionOverrides(_defineProperty({}, key, value));
|
|
18616
18732
|
});
|
|
18617
18733
|
}
|
|
@@ -18679,8 +18795,8 @@ function _maybeInitializeMux2() {
|
|
|
18679
18795
|
this.addEventListener('visitor-tracking-change', function (event) {
|
|
18680
18796
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
18681
18797
|
if (!isTrackingEnabled) {
|
|
18682
|
-
var
|
|
18683
|
-
(
|
|
18798
|
+
var _classPrivateFieldGet133, _classPrivateFieldGet134;
|
|
18799
|
+
(_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133.mux) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.destroy();
|
|
18684
18800
|
}
|
|
18685
18801
|
});
|
|
18686
18802
|
case 6:
|
|
@@ -18784,8 +18900,8 @@ function _renderEmbedTemplate() {
|
|
|
18784
18900
|
alt: "",
|
|
18785
18901
|
"aria-hidden": "true"
|
|
18786
18902
|
})))), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
18787
|
-
ref: function ref(
|
|
18788
|
-
_classPrivateFieldSet(_preloadThumbnailRoot, _this13,
|
|
18903
|
+
ref: function ref(_ref23) {
|
|
18904
|
+
_classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref23);
|
|
18789
18905
|
}
|
|
18790
18906
|
})), _classPrivateFieldGet(_preactRoot, this));
|
|
18791
18907
|
}
|
|
@@ -18799,13 +18915,13 @@ function _renderPreloadThumbnail() {
|
|
|
18799
18915
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
18800
18916
|
return;
|
|
18801
18917
|
}
|
|
18802
|
-
var
|
|
18803
|
-
assets =
|
|
18804
|
-
mediaType =
|
|
18805
|
-
carouselHardWall =
|
|
18806
|
-
var
|
|
18807
|
-
autoPlay =
|
|
18808
|
-
plugin =
|
|
18918
|
+
var _classPrivateFieldGet124 = _classPrivateFieldGet(_playerData, this).mediaData,
|
|
18919
|
+
assets = _classPrivateFieldGet124.assets,
|
|
18920
|
+
mediaType = _classPrivateFieldGet124.mediaType,
|
|
18921
|
+
carouselHardWall = _classPrivateFieldGet124.carouselHardWall;
|
|
18922
|
+
var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).embedOptions,
|
|
18923
|
+
autoPlay = _classPrivateFieldGet125.autoPlay,
|
|
18924
|
+
plugin = _classPrivateFieldGet125.plugin;
|
|
18809
18925
|
|
|
18810
18926
|
// Don't render the preload thumbnail if we're going to show a carousel hard wall player.
|
|
18811
18927
|
if (carouselHardWall) {
|
|
@@ -18852,12 +18968,12 @@ function _runMethodsFromAttributes() {
|
|
|
18852
18968
|
// We have to wait until the api is ready to set the current time
|
|
18853
18969
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'current-time') !== null) {
|
|
18854
18970
|
this.whenApiReady().then(function () {
|
|
18855
|
-
var
|
|
18971
|
+
var _ref24, _classPrivateFieldGet126, _classPrivateFieldGet127;
|
|
18856
18972
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, 'current-time'));
|
|
18857
|
-
var isClosedPopover = (
|
|
18973
|
+
var isClosedPopover = (_ref24 = ((_classPrivateFieldGet126 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : _classPrivateFieldGet126.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref24 !== void 0 ? _ref24 : false;
|
|
18858
18974
|
var isMobile = (0,_utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__/* .detectIsMobile */ .GS)();
|
|
18859
18975
|
var shouldDelayUntilPlay = _this14.state !== 'playing' && (isMobile || isClosedPopover);
|
|
18860
|
-
void ((
|
|
18976
|
+
void ((_classPrivateFieldGet127 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.time(newTime, {
|
|
18861
18977
|
lazy: shouldDelayUntilPlay
|
|
18862
18978
|
}));
|
|
18863
18979
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, 'currentTime', newTime);
|
|
@@ -18870,9 +18986,9 @@ function _runMethodsFromAttributes() {
|
|
|
18870
18986
|
}
|
|
18871
18987
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'video-quality') !== null) {
|
|
18872
18988
|
this.whenApiReady().then(function () {
|
|
18873
|
-
var
|
|
18989
|
+
var _classPrivateFieldGet128;
|
|
18874
18990
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, 'video-quality');
|
|
18875
|
-
(
|
|
18991
|
+
(_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.setVideoQuality(newQuality);
|
|
18876
18992
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, 'videoQuality', newQuality);
|
|
18877
18993
|
})
|
|
18878
18994
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -18886,9 +19002,9 @@ function _runMethodsFromAttributes() {
|
|
|
18886
19002
|
*/
|
|
18887
19003
|
function _saveInitialAttributesFromDomOptions() {
|
|
18888
19004
|
var _this15 = this;
|
|
18889
|
-
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function (
|
|
18890
|
-
var
|
|
18891
|
-
value =
|
|
19005
|
+
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function (_ref25) {
|
|
19006
|
+
var _ref26 = _slicedToArray(_ref25, 2),
|
|
19007
|
+
value = _ref26[1];
|
|
18892
19008
|
return [(0,_utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__/* .kebabCaseToCamelCase */ .b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, value.name)];
|
|
18893
19009
|
}));
|
|
18894
19010
|
_classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
|
|
@@ -19020,7 +19136,7 @@ function _updateMediaData(mediaData) {
|
|
|
19020
19136
|
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
19021
19137
|
}
|
|
19022
19138
|
var getSwatchMetaData = /*#__PURE__*/function () {
|
|
19023
|
-
var
|
|
19139
|
+
var _ref18 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee25(url) {
|
|
19024
19140
|
var swatch;
|
|
19025
19141
|
return _regenerator().w(function (_context25) {
|
|
19026
19142
|
while (1) switch (_context25.n) {
|
|
@@ -19035,7 +19151,7 @@ var getSwatchMetaData = /*#__PURE__*/function () {
|
|
|
19035
19151
|
}, _callee25);
|
|
19036
19152
|
}));
|
|
19037
19153
|
return function getSwatchMetaData(_x18) {
|
|
19038
|
-
return
|
|
19154
|
+
return _ref18.apply(this, arguments);
|
|
19039
19155
|
};
|
|
19040
19156
|
}();
|
|
19041
19157
|
|
|
@@ -19046,7 +19162,7 @@ var getSwatchMetaData = /*#__PURE__*/function () {
|
|
|
19046
19162
|
* @returns {Promise<HTMLStyleElement>}
|
|
19047
19163
|
*/
|
|
19048
19164
|
var wistiaSwatchElement = /*#__PURE__*/function () {
|
|
19049
|
-
var
|
|
19165
|
+
var _ref19 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(mediaId, embedHost) {
|
|
19050
19166
|
var swatchUrl, swatchImg, naturalHeight, naturalWidth, ratio, style;
|
|
19051
19167
|
return _regenerator().w(function (_context26) {
|
|
19052
19168
|
while (1) switch (_context26.n) {
|
|
@@ -19065,7 +19181,7 @@ var wistiaSwatchElement = /*#__PURE__*/function () {
|
|
|
19065
19181
|
}, _callee26);
|
|
19066
19182
|
}));
|
|
19067
19183
|
return function wistiaSwatchElement(_x19, _x20) {
|
|
19068
|
-
return
|
|
19184
|
+
return _ref19.apply(this, arguments);
|
|
19069
19185
|
};
|
|
19070
19186
|
}();
|
|
19071
19187
|
if (customElements.get('wistia-player') === undefined) {
|