@wistia/wistia-player 0.7.1 → 0.7.4
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/utils/carouselColors.d.ts.map +1 -1
- package/dist/types/embeds/carousel/webComponents/WistiaChannelCarousel.d.ts.map +1 -1
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts +5 -0
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.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/EmbedOptions.d.ts +2 -0
- package/dist/types/types/EmbedOptions.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/gradients.d.ts +1 -0
- package/dist/types/utilities/gradients.d.ts.map +1 -1
- package/dist/wistia-player.js +256 -211
- package/dist/wistia-player.js.map +1 -1
- package/package.json +3 -3
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
|
|
|
@@ -3534,6 +3549,14 @@ var throwAsync = function throwAsync(e) {
|
|
|
3534
3549
|
var OBJ_PROP = '_namespacedLocalStorage';
|
|
3535
3550
|
var localStorageWorks = function localStorageWorks() {
|
|
3536
3551
|
var ns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'wistia-test-localstorage';
|
|
3552
|
+
// Check the global on every call — don't rely solely on the cached result.
|
|
3553
|
+
// In test environments (Vitest with jsdom), a previous test can warm the
|
|
3554
|
+
// cache to `true` and then have the global torn down between files, leaving
|
|
3555
|
+
// pending timers/intervals to dereference a missing `localStorage` and
|
|
3556
|
+
// crash with a ReferenceError.
|
|
3557
|
+
if (typeof localStorage === 'undefined') {
|
|
3558
|
+
return false;
|
|
3559
|
+
}
|
|
3537
3560
|
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__/* .Wistia */ .s._localStorageWorks != null) {
|
|
3538
3561
|
return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__/* .Wistia */ .s._localStorageWorks;
|
|
3539
3562
|
}
|
|
@@ -5125,10 +5148,11 @@ var controlMultiplierEstimatedByWidth = function controlMultiplierEstimatedByWid
|
|
|
5125
5148
|
/* harmony export */ qN: () => (/* binding */ getCssGradient),
|
|
5126
5149
|
/* harmony export */ yz: () => (/* binding */ getGradientColor)
|
|
5127
5150
|
/* harmony export */ });
|
|
5128
|
-
/* unused harmony exports DEFAULT_GRADIENT, hexToRGBA, cleanGradient */
|
|
5151
|
+
/* unused harmony exports DEFAULT_GRADIENT, hexToRGBA, cleanGradient, getPlayerColorOrFirstGradientStop */
|
|
5129
5152
|
/* harmony import */ var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7350);
|
|
5130
|
-
/* harmony import */ var
|
|
5131
|
-
/* harmony import */ var
|
|
5153
|
+
/* harmony import */ var _color_utils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(998);
|
|
5154
|
+
/* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5417);
|
|
5155
|
+
/* harmony import */ var _obj_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(731);
|
|
5132
5156
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
5133
5157
|
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."); }
|
|
5134
5158
|
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; } }
|
|
@@ -5138,16 +5162,17 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
5138
5162
|
|
|
5139
5163
|
|
|
5140
5164
|
|
|
5165
|
+
|
|
5141
5166
|
var DEFAULT_ALPHA = 0.9;
|
|
5142
5167
|
var GRADIENT_COLOR_INDEX = 0;
|
|
5143
5168
|
var GRADIENT_PERCENTAGE_INDEX = 1;
|
|
5144
5169
|
var DEFAULT_GRADIENT = {
|
|
5145
|
-
colors: [[
|
|
5170
|
+
colors: [[_color_utils_ts__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_PLAYER_COLOR */ .cO, 0], ['#6A84FF', 1]],
|
|
5146
5171
|
on: true
|
|
5147
5172
|
};
|
|
5148
5173
|
var hexToRGBA = function hexToRGBA(hex) {
|
|
5149
5174
|
var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_ALPHA;
|
|
5150
|
-
var color = new
|
|
5175
|
+
var color = new _color_js__WEBPACK_IMPORTED_MODULE_2__/* .Color */ .Q1(hex);
|
|
5151
5176
|
|
|
5152
5177
|
// the "as Color" here is because the implicit types are not quite right... because we're passing a value to the
|
|
5153
5178
|
// alpha function and using it as a setter it returns the new color as a Color object, not a number or undefined
|
|
@@ -5193,6 +5218,14 @@ var cleanGradient = function cleanGradient(gradient) {
|
|
|
5193
5218
|
};
|
|
5194
5219
|
return result;
|
|
5195
5220
|
};
|
|
5221
|
+
var getPlayerColorOrFirstGradientStop = function getPlayerColorOrFirstGradientStop(playerColor, gradient) {
|
|
5222
|
+
if (!isGradient(gradient) || !gradient.on) {
|
|
5223
|
+
return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
|
|
5224
|
+
}
|
|
5225
|
+
|
|
5226
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
5227
|
+
return addHashToHex(getGradientColor(gradient));
|
|
5228
|
+
};
|
|
5196
5229
|
|
|
5197
5230
|
/***/ },
|
|
5198
5231
|
|
|
@@ -7239,8 +7272,8 @@ var PROD_EMBED_HOST = 'embed.wistia.com';
|
|
|
7239
7272
|
var PROD_SSL_EMBED_HOST = 'embed-ssl.wistia.com';
|
|
7240
7273
|
var PROD_FASTLY_SSL_HOST = 'embed-fastly.wistia.com';
|
|
7241
7274
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7242
|
-
var TAGGED_VERSION = "0.7.
|
|
7243
|
-
var CURRENT_SHA = "
|
|
7275
|
+
var TAGGED_VERSION = "0.7.4" || 0;
|
|
7276
|
+
var CURRENT_SHA = "cd6d5f204d2705b44830dc62fffa01754c68f1d5" || 0;
|
|
7244
7277
|
var DEFAULT_PROTOCOL = function () {
|
|
7245
7278
|
if (typeof window !== 'undefined' && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location) {
|
|
7246
7279
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location.protocol;
|
|
@@ -7756,6 +7789,7 @@ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Sym
|
|
|
7756
7789
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
7757
7790
|
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; }
|
|
7758
7791
|
/* eslint no-console: "off" */
|
|
7792
|
+
/* oxlint-disable no-console */
|
|
7759
7793
|
/*
|
|
7760
7794
|
* wlog
|
|
7761
7795
|
*
|
|
@@ -15878,6 +15912,17 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15878
15912
|
return _classPrivateFieldGet(_api, this);
|
|
15879
15913
|
}
|
|
15880
15914
|
|
|
15915
|
+
/**
|
|
15916
|
+
* Returns the description of the video, as used in the JSON-LD schema
|
|
15917
|
+
* @returns {string}
|
|
15918
|
+
*/
|
|
15919
|
+
}, {
|
|
15920
|
+
key: "description",
|
|
15921
|
+
get: function get() {
|
|
15922
|
+
var _ref5, _classPrivateFieldGet24, _classPrivateFieldGet25, _classPrivateFieldGet26;
|
|
15923
|
+
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 : '';
|
|
15924
|
+
}
|
|
15925
|
+
|
|
15881
15926
|
/**
|
|
15882
15927
|
* Returns the status of the do not track embed option that controls whether the player
|
|
15883
15928
|
* sends tracking pings.
|
|
@@ -15906,8 +15951,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15906
15951
|
}, {
|
|
15907
15952
|
key: "duration",
|
|
15908
15953
|
get: function get() {
|
|
15909
|
-
var
|
|
15910
|
-
return (
|
|
15954
|
+
var _classPrivateFieldGet27, _classPrivateFieldGet28;
|
|
15955
|
+
return (_classPrivateFieldGet27 = (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.duration()) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : 0;
|
|
15911
15956
|
}
|
|
15912
15957
|
|
|
15913
15958
|
/**
|
|
@@ -15921,8 +15966,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15921
15966
|
}, {
|
|
15922
15967
|
key: "email",
|
|
15923
15968
|
get: function get() {
|
|
15924
|
-
var
|
|
15925
|
-
return (
|
|
15969
|
+
var _ref6, _ref7, _extractEmailFromPara, _classPrivateGetter2;
|
|
15970
|
+
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;
|
|
15926
15971
|
}
|
|
15927
15972
|
|
|
15928
15973
|
/**
|
|
@@ -15980,8 +16025,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
15980
16025
|
}, {
|
|
15981
16026
|
key: "ended",
|
|
15982
16027
|
get: function get() {
|
|
15983
|
-
var
|
|
15984
|
-
return ((
|
|
16028
|
+
var _classPrivateFieldGet29;
|
|
16029
|
+
return ((_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === 'ended';
|
|
15985
16030
|
}
|
|
15986
16031
|
|
|
15987
16032
|
/**
|
|
@@ -16004,11 +16049,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16004
16049
|
// underlying <video /> element. So we must do more than just change the _impl._attrs
|
|
16005
16050
|
// for it to be updated.
|
|
16006
16051
|
if (behavior === 'loop') {
|
|
16007
|
-
var
|
|
16008
|
-
(
|
|
16052
|
+
var _classPrivateFieldGet30;
|
|
16053
|
+
(_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.addLoopBehavior();
|
|
16009
16054
|
} else {
|
|
16010
|
-
var
|
|
16011
|
-
(
|
|
16055
|
+
var _classPrivateFieldGet31;
|
|
16056
|
+
(_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.removeLoopBehavior();
|
|
16012
16057
|
}
|
|
16013
16058
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'endVideoBehavior', behavior);
|
|
16014
16059
|
}
|
|
@@ -16020,8 +16065,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16020
16065
|
}, {
|
|
16021
16066
|
key: "eventKey",
|
|
16022
16067
|
get: function get() {
|
|
16023
|
-
var
|
|
16024
|
-
return (
|
|
16068
|
+
var _classPrivateFieldGet32;
|
|
16069
|
+
return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.eventKey();
|
|
16025
16070
|
}
|
|
16026
16071
|
|
|
16027
16072
|
/**
|
|
@@ -16059,8 +16104,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16059
16104
|
* @returns {void}
|
|
16060
16105
|
*/,
|
|
16061
16106
|
set: function set(shouldDisplay) {
|
|
16062
|
-
var
|
|
16063
|
-
(
|
|
16107
|
+
var _classPrivateFieldGet33;
|
|
16108
|
+
(_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.fullscreenControlEnabled(shouldDisplay);
|
|
16064
16109
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'fullscreenControl', shouldDisplay);
|
|
16065
16110
|
}
|
|
16066
16111
|
|
|
@@ -16092,14 +16137,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16092
16137
|
}, {
|
|
16093
16138
|
key: "inFullscreen",
|
|
16094
16139
|
get: function get() {
|
|
16095
|
-
var
|
|
16096
|
-
return (
|
|
16140
|
+
var _classPrivateFieldGet34, _classPrivateFieldGet35;
|
|
16141
|
+
return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.inFullscreen()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
|
|
16097
16142
|
}
|
|
16098
16143
|
}, {
|
|
16099
16144
|
key: "inputContext",
|
|
16100
16145
|
get: function get() {
|
|
16101
|
-
var
|
|
16102
|
-
return (
|
|
16146
|
+
var _classPrivateFieldGet36;
|
|
16147
|
+
return (_classPrivateFieldGet36 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.getInputContext();
|
|
16103
16148
|
}
|
|
16104
16149
|
|
|
16105
16150
|
/**
|
|
@@ -16109,8 +16154,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16109
16154
|
}, {
|
|
16110
16155
|
key: "instantHls",
|
|
16111
16156
|
get: function get() {
|
|
16112
|
-
var
|
|
16113
|
-
return (
|
|
16157
|
+
var _classPrivateFieldGet37, _classPrivateFieldGet38;
|
|
16158
|
+
return (_classPrivateFieldGet37 = (_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.isInstantHls()) !== null && _classPrivateFieldGet37 !== void 0 ? _classPrivateFieldGet37 : false;
|
|
16114
16159
|
}
|
|
16115
16160
|
|
|
16116
16161
|
// the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
|
|
@@ -16118,18 +16163,18 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16118
16163
|
}, {
|
|
16119
16164
|
key: "language",
|
|
16120
16165
|
get: function get() {
|
|
16121
|
-
var
|
|
16122
|
-
return (
|
|
16166
|
+
var _classPrivateFieldGet39, _classPrivateFieldGet40;
|
|
16167
|
+
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);
|
|
16123
16168
|
},
|
|
16124
16169
|
set: function set(language) {
|
|
16125
|
-
var
|
|
16126
|
-
(
|
|
16170
|
+
var _classPrivateFieldGet41;
|
|
16171
|
+
(_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.language(language);
|
|
16127
16172
|
}
|
|
16128
16173
|
}, {
|
|
16129
16174
|
key: "languages",
|
|
16130
16175
|
get: function get() {
|
|
16131
|
-
var
|
|
16132
|
-
return (
|
|
16176
|
+
var _classPrivateFieldGet42, _classPrivateFieldGet43;
|
|
16177
|
+
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)];
|
|
16133
16178
|
}
|
|
16134
16179
|
|
|
16135
16180
|
/**
|
|
@@ -16178,8 +16223,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16178
16223
|
}, {
|
|
16179
16224
|
key: "mediaLanguage",
|
|
16180
16225
|
get: function get() {
|
|
16181
|
-
var
|
|
16182
|
-
return (
|
|
16226
|
+
var _classPrivateFieldGet44, _classPrivateFieldGet45;
|
|
16227
|
+
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);
|
|
16183
16228
|
}
|
|
16184
16229
|
|
|
16185
16230
|
/**
|
|
@@ -16190,8 +16235,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16190
16235
|
}, {
|
|
16191
16236
|
key: "mediaLanguageCode",
|
|
16192
16237
|
get: function get() {
|
|
16193
|
-
var
|
|
16194
|
-
return (
|
|
16238
|
+
var _classPrivateFieldGet46, _classPrivateFieldGet47;
|
|
16239
|
+
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;
|
|
16195
16240
|
}
|
|
16196
16241
|
|
|
16197
16242
|
/**
|
|
@@ -16199,14 +16244,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16199
16244
|
* @returns {Localization[]}
|
|
16200
16245
|
*/,
|
|
16201
16246
|
set: function set(languageCode) {
|
|
16202
|
-
var
|
|
16203
|
-
(
|
|
16247
|
+
var _classPrivateFieldGet48;
|
|
16248
|
+
(_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.mediaLanguageCode(languageCode);
|
|
16204
16249
|
}
|
|
16205
16250
|
}, {
|
|
16206
16251
|
key: "mediaLanguages",
|
|
16207
16252
|
get: function get() {
|
|
16208
|
-
var
|
|
16209
|
-
return (
|
|
16253
|
+
var _classPrivateFieldGet49, _classPrivateFieldGet50;
|
|
16254
|
+
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)];
|
|
16210
16255
|
}
|
|
16211
16256
|
|
|
16212
16257
|
/**
|
|
@@ -16216,8 +16261,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16216
16261
|
}, {
|
|
16217
16262
|
key: "muted",
|
|
16218
16263
|
get: function get() {
|
|
16219
|
-
var
|
|
16220
|
-
return (
|
|
16264
|
+
var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52;
|
|
16265
|
+
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;
|
|
16221
16266
|
}
|
|
16222
16267
|
|
|
16223
16268
|
/**
|
|
@@ -16243,8 +16288,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16243
16288
|
}, {
|
|
16244
16289
|
key: "name",
|
|
16245
16290
|
get: function get() {
|
|
16246
|
-
var
|
|
16247
|
-
return (
|
|
16291
|
+
var _ref9, _classPrivateFieldGet53, _classPrivateFieldGet54, _classPrivateFieldGet55;
|
|
16292
|
+
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;
|
|
16248
16293
|
}
|
|
16249
16294
|
|
|
16250
16295
|
/**
|
|
@@ -16265,9 +16310,9 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16265
16310
|
* @returns {void}
|
|
16266
16311
|
*/,
|
|
16267
16312
|
set: function set(opaqueControls) {
|
|
16268
|
-
var
|
|
16313
|
+
var _classPrivateFieldGet56;
|
|
16269
16314
|
var valueAsBoolean = Boolean(opaqueControls);
|
|
16270
|
-
(
|
|
16315
|
+
(_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.opaqueControls(valueAsBoolean);
|
|
16271
16316
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'opaqueControls', valueAsBoolean);
|
|
16272
16317
|
}
|
|
16273
16318
|
}, {
|
|
@@ -16286,8 +16331,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16286
16331
|
}, {
|
|
16287
16332
|
key: "paused",
|
|
16288
16333
|
get: function get() {
|
|
16289
|
-
var
|
|
16290
|
-
return ((
|
|
16334
|
+
var _classPrivateFieldGet57;
|
|
16335
|
+
return ((_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.state()) === 'paused';
|
|
16291
16336
|
}
|
|
16292
16337
|
|
|
16293
16338
|
/**
|
|
@@ -16297,8 +16342,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16297
16342
|
}, {
|
|
16298
16343
|
key: "percentWatched",
|
|
16299
16344
|
get: function get() {
|
|
16300
|
-
var
|
|
16301
|
-
return (
|
|
16345
|
+
var _classPrivateFieldGet58, _classPrivateFieldGet59;
|
|
16346
|
+
return (_classPrivateFieldGet58 = (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.percentWatched()) !== null && _classPrivateFieldGet58 !== void 0 ? _classPrivateFieldGet58 : 0;
|
|
16302
16347
|
}
|
|
16303
16348
|
|
|
16304
16349
|
/**
|
|
@@ -16308,8 +16353,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16308
16353
|
}, {
|
|
16309
16354
|
key: "playbackRate",
|
|
16310
16355
|
get: function get() {
|
|
16311
|
-
var
|
|
16312
|
-
return (
|
|
16356
|
+
var _ref0, _classPrivateFieldGet60, _classPrivateFieldGet61;
|
|
16357
|
+
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;
|
|
16313
16358
|
}
|
|
16314
16359
|
|
|
16315
16360
|
/**
|
|
@@ -16318,8 +16363,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16318
16363
|
* @returns {void}
|
|
16319
16364
|
*/,
|
|
16320
16365
|
set: function set(rate) {
|
|
16321
|
-
var
|
|
16322
|
-
(
|
|
16366
|
+
var _classPrivateFieldGet62;
|
|
16367
|
+
(_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbackRate(rate);
|
|
16323
16368
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playbackRate', rate);
|
|
16324
16369
|
}
|
|
16325
16370
|
|
|
@@ -16339,8 +16384,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16339
16384
|
* @returns {void}
|
|
16340
16385
|
*/,
|
|
16341
16386
|
set: function set(shouldDisplay) {
|
|
16342
|
-
var
|
|
16343
|
-
(
|
|
16387
|
+
var _classPrivateFieldGet63;
|
|
16388
|
+
(_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
|
|
16344
16389
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playbackRateControl', shouldDisplay);
|
|
16345
16390
|
}
|
|
16346
16391
|
|
|
@@ -16360,8 +16405,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16360
16405
|
* @returns {void}
|
|
16361
16406
|
*/,
|
|
16362
16407
|
set: function set(shouldDisplay) {
|
|
16363
|
-
var
|
|
16364
|
-
(
|
|
16408
|
+
var _classPrivateFieldGet64;
|
|
16409
|
+
(_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playbarControlEnabled(shouldDisplay);
|
|
16365
16410
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playBarControl', shouldDisplay);
|
|
16366
16411
|
}
|
|
16367
16412
|
|
|
@@ -16381,11 +16426,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16381
16426
|
* @returns {void}
|
|
16382
16427
|
*/,
|
|
16383
16428
|
set: function set(radius) {
|
|
16384
|
-
var
|
|
16429
|
+
var _classPrivateFieldGet65;
|
|
16385
16430
|
// ensure the value is a number, since this is potentially coming from outside the player,
|
|
16386
16431
|
// we can't guarantee they have given us the right type
|
|
16387
16432
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
16388
|
-
(
|
|
16433
|
+
(_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setPlayerBorderRadius(Number(radius));
|
|
16389
16434
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
16390
16435
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerBorderRadius', Number(radius));
|
|
16391
16436
|
}
|
|
@@ -16412,8 +16457,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16412
16457
|
* @returns {void}
|
|
16413
16458
|
*/,
|
|
16414
16459
|
set: function set(newColor) {
|
|
16415
|
-
var
|
|
16416
|
-
(
|
|
16460
|
+
var _classPrivateFieldGet66;
|
|
16461
|
+
(_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
|
|
16417
16462
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerColor', newColor);
|
|
16418
16463
|
}
|
|
16419
16464
|
|
|
@@ -16437,11 +16482,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16437
16482
|
* @returns {void}
|
|
16438
16483
|
*/,
|
|
16439
16484
|
set: function set(gradient) {
|
|
16440
|
-
var
|
|
16485
|
+
var _classPrivateFieldGet67;
|
|
16441
16486
|
if (!(0,_types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__/* .isGradient */ .b)(gradient)) {
|
|
16442
16487
|
throw new Error('playerColorGradient must be a valid gradient object');
|
|
16443
16488
|
}
|
|
16444
|
-
(
|
|
16489
|
+
(_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playerColorGradient(gradient);
|
|
16445
16490
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playerColorGradient', gradient);
|
|
16446
16491
|
}
|
|
16447
16492
|
|
|
@@ -16455,8 +16500,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16455
16500
|
}, {
|
|
16456
16501
|
key: "playerForce",
|
|
16457
16502
|
get: function get() {
|
|
16458
|
-
var
|
|
16459
|
-
return (
|
|
16503
|
+
var _ref1;
|
|
16504
|
+
return (_ref1 = this.getAttribute('player-force')) !== null && _ref1 !== void 0 ? _ref1 : undefined;
|
|
16460
16505
|
}
|
|
16461
16506
|
|
|
16462
16507
|
/**
|
|
@@ -16529,8 +16574,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16529
16574
|
* @returns {void}
|
|
16530
16575
|
*/,
|
|
16531
16576
|
set: function set(shouldDisplay) {
|
|
16532
|
-
var
|
|
16533
|
-
(
|
|
16577
|
+
var _classPrivateFieldGet68;
|
|
16578
|
+
(_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
|
|
16534
16579
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playPauseControl', shouldDisplay);
|
|
16535
16580
|
}
|
|
16536
16581
|
|
|
@@ -16554,8 +16599,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16554
16599
|
* @returns {void}
|
|
16555
16600
|
*/,
|
|
16556
16601
|
set: function set(shouldDisplay) {
|
|
16557
|
-
var
|
|
16558
|
-
(
|
|
16602
|
+
var _classPrivateFieldGet69;
|
|
16603
|
+
(_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playPauseNotifierEnabled(shouldDisplay);
|
|
16559
16604
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'playPauseNotifier', shouldDisplay);
|
|
16560
16605
|
}
|
|
16561
16606
|
|
|
@@ -16894,8 +16939,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16894
16939
|
}, {
|
|
16895
16940
|
key: "preload",
|
|
16896
16941
|
get: function get() {
|
|
16897
|
-
var
|
|
16898
|
-
return (
|
|
16942
|
+
var _ref10, _classPrivateFieldGet70, _classPrivateFieldGet71;
|
|
16943
|
+
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';
|
|
16899
16944
|
}
|
|
16900
16945
|
|
|
16901
16946
|
/**
|
|
@@ -16935,8 +16980,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16935
16980
|
* @returns {void}
|
|
16936
16981
|
*/,
|
|
16937
16982
|
set: function set(shouldDisplay) {
|
|
16938
|
-
var
|
|
16939
|
-
(
|
|
16983
|
+
var _classPrivateFieldGet72;
|
|
16984
|
+
(_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.qualityControlEnabled(shouldDisplay);
|
|
16940
16985
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityControl', shouldDisplay);
|
|
16941
16986
|
}
|
|
16942
16987
|
|
|
@@ -16956,8 +17001,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16956
17001
|
* @returns {void}
|
|
16957
17002
|
*/,
|
|
16958
17003
|
set: function set(quality) {
|
|
16959
|
-
var
|
|
16960
|
-
(
|
|
17004
|
+
var _classPrivateFieldGet73;
|
|
17005
|
+
(_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.qualityMax(quality);
|
|
16961
17006
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityMax', quality);
|
|
16962
17007
|
}
|
|
16963
17008
|
|
|
@@ -16977,8 +17022,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16977
17022
|
* @returns {void}
|
|
16978
17023
|
*/,
|
|
16979
17024
|
set: function set(quality) {
|
|
16980
|
-
var
|
|
16981
|
-
(
|
|
17025
|
+
var _classPrivateFieldGet74;
|
|
17026
|
+
(_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.qualityMin(quality);
|
|
16982
17027
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'qualityMin', quality);
|
|
16983
17028
|
}
|
|
16984
17029
|
|
|
@@ -16989,8 +17034,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
16989
17034
|
}, {
|
|
16990
17035
|
key: "readyState",
|
|
16991
17036
|
get: function get() {
|
|
16992
|
-
var
|
|
16993
|
-
return (
|
|
17037
|
+
var _classPrivateFieldGet75, _classPrivateFieldGet76;
|
|
17038
|
+
return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.getReadyState()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
|
|
16994
17039
|
}
|
|
16995
17040
|
|
|
16996
17041
|
/**
|
|
@@ -17012,8 +17057,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17012
17057
|
* @returns {void}
|
|
17013
17058
|
*/,
|
|
17014
17059
|
set: function set(resumableState) {
|
|
17015
|
-
var
|
|
17016
|
-
(
|
|
17060
|
+
var _classPrivateFieldGet77;
|
|
17061
|
+
(_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
|
|
17017
17062
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'resumable', resumableState);
|
|
17018
17063
|
}
|
|
17019
17064
|
|
|
@@ -17033,11 +17078,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17033
17078
|
* @returns {void}
|
|
17034
17079
|
*/,
|
|
17035
17080
|
set: function set(radius) {
|
|
17036
|
-
var
|
|
17081
|
+
var _classPrivateFieldGet78;
|
|
17037
17082
|
// ensure the value is a number, since this is potentially coming from outside the player,
|
|
17038
17083
|
// we can't guarantee they have given us the right type
|
|
17039
17084
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
17040
|
-
(
|
|
17085
|
+
(_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
|
|
17041
17086
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
17042
17087
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'roundedPlayer', Number(radius));
|
|
17043
17088
|
}
|
|
@@ -17050,8 +17095,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17050
17095
|
}, {
|
|
17051
17096
|
key: "secondsWatched",
|
|
17052
17097
|
get: function get() {
|
|
17053
|
-
var
|
|
17054
|
-
return (
|
|
17098
|
+
var _classPrivateFieldGet79, _classPrivateFieldGet80;
|
|
17099
|
+
return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
|
|
17055
17100
|
}
|
|
17056
17101
|
|
|
17057
17102
|
/**
|
|
@@ -17061,8 +17106,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17061
17106
|
}, {
|
|
17062
17107
|
key: "secondsWatchedVector",
|
|
17063
17108
|
get: function get() {
|
|
17064
|
-
var
|
|
17065
|
-
return (
|
|
17109
|
+
var _classPrivateFieldGet81, _classPrivateFieldGet82;
|
|
17110
|
+
return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
|
|
17066
17111
|
}
|
|
17067
17112
|
|
|
17068
17113
|
/**
|
|
@@ -17102,8 +17147,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17102
17147
|
* @returns {void}
|
|
17103
17148
|
*/,
|
|
17104
17149
|
set: function set(shouldDisplay) {
|
|
17105
|
-
var
|
|
17106
|
-
(
|
|
17150
|
+
var _classPrivateFieldGet83;
|
|
17151
|
+
(_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
|
|
17107
17152
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'settingsControl', shouldDisplay);
|
|
17108
17153
|
}
|
|
17109
17154
|
|
|
@@ -17133,10 +17178,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17133
17178
|
}, {
|
|
17134
17179
|
key: "sourceLanguage",
|
|
17135
17180
|
get: function get() {
|
|
17136
|
-
var
|
|
17137
|
-
return (
|
|
17181
|
+
var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
|
|
17182
|
+
return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function (loc) {
|
|
17138
17183
|
return loc.isOriginal;
|
|
17139
|
-
})) !== null &&
|
|
17184
|
+
})) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
|
|
17140
17185
|
}
|
|
17141
17186
|
|
|
17142
17187
|
/**
|
|
@@ -17158,8 +17203,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17158
17203
|
}, {
|
|
17159
17204
|
key: "state",
|
|
17160
17205
|
get: function get() {
|
|
17161
|
-
var
|
|
17162
|
-
return (
|
|
17206
|
+
var _classPrivateFieldGet87, _classPrivateFieldGet88;
|
|
17207
|
+
return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
|
|
17163
17208
|
}
|
|
17164
17209
|
|
|
17165
17210
|
/**
|
|
@@ -17279,8 +17324,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17279
17324
|
}, {
|
|
17280
17325
|
key: "videoQuality",
|
|
17281
17326
|
get: function get() {
|
|
17282
|
-
var
|
|
17283
|
-
return (
|
|
17327
|
+
var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
|
|
17328
|
+
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';
|
|
17284
17329
|
}
|
|
17285
17330
|
|
|
17286
17331
|
/**
|
|
@@ -17289,8 +17334,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17289
17334
|
* @returns {void}
|
|
17290
17335
|
*/,
|
|
17291
17336
|
set: function set(quality) {
|
|
17292
|
-
var
|
|
17293
|
-
(
|
|
17337
|
+
var _classPrivateFieldGet91;
|
|
17338
|
+
(_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
|
|
17294
17339
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'videoQuality', quality);
|
|
17295
17340
|
}
|
|
17296
17341
|
|
|
@@ -17321,8 +17366,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17321
17366
|
* @returns {void}
|
|
17322
17367
|
*/,
|
|
17323
17368
|
set: function set(level) {
|
|
17324
|
-
var
|
|
17325
|
-
(
|
|
17369
|
+
var _classPrivateFieldGet92;
|
|
17370
|
+
(_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
|
|
17326
17371
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'volume', level);
|
|
17327
17372
|
}
|
|
17328
17373
|
|
|
@@ -17344,8 +17389,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17344
17389
|
* @returns {void}
|
|
17345
17390
|
*/,
|
|
17346
17391
|
set: function set(shouldDisplay) {
|
|
17347
|
-
var
|
|
17348
|
-
(
|
|
17392
|
+
var _classPrivateFieldGet93;
|
|
17393
|
+
(_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
|
|
17349
17394
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'volumeControl', shouldDisplay);
|
|
17350
17395
|
}
|
|
17351
17396
|
|
|
@@ -17399,12 +17444,12 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17399
17444
|
key: "cancelFullscreen",
|
|
17400
17445
|
value: (function () {
|
|
17401
17446
|
var _cancelFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
17402
|
-
var
|
|
17447
|
+
var _classPrivateFieldGet94,
|
|
17403
17448
|
_this3 = this;
|
|
17404
17449
|
return _regenerator().w(function (_context) {
|
|
17405
17450
|
while (1) switch (_context.n) {
|
|
17406
17451
|
case 0:
|
|
17407
|
-
return _context.a(2, (
|
|
17452
|
+
return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function () {
|
|
17408
17453
|
_this3._fullscreenState.heightBeforeFullscreen = undefined;
|
|
17409
17454
|
_this3._fullscreenState.widthBeforeFullscreen = undefined;
|
|
17410
17455
|
}));
|
|
@@ -17427,11 +17472,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17427
17472
|
key: "createOverlay",
|
|
17428
17473
|
value: (function () {
|
|
17429
17474
|
var _createOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(name, options) {
|
|
17430
|
-
var
|
|
17475
|
+
var _classPrivateFieldGet95;
|
|
17431
17476
|
return _regenerator().w(function (_context2) {
|
|
17432
17477
|
while (1) switch (_context2.n) {
|
|
17433
17478
|
case 0:
|
|
17434
|
-
if (!((
|
|
17479
|
+
if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
|
|
17435
17480
|
_context2.n = 1;
|
|
17436
17481
|
break;
|
|
17437
17482
|
}
|
|
@@ -17463,17 +17508,17 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17463
17508
|
while (1) switch (_context5.n) {
|
|
17464
17509
|
case 0:
|
|
17465
17510
|
addPlugin = /*#__PURE__*/function () {
|
|
17466
|
-
var
|
|
17467
|
-
var
|
|
17511
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
17512
|
+
var _classPrivateFieldGet96, _classPrivateFieldGet97;
|
|
17468
17513
|
return _regenerator().w(function (_context3) {
|
|
17469
17514
|
while (1) switch (_context3.n) {
|
|
17470
17515
|
case 0:
|
|
17471
|
-
return _context3.a(2, (
|
|
17516
|
+
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"))));
|
|
17472
17517
|
}
|
|
17473
17518
|
}, _callee3);
|
|
17474
17519
|
}));
|
|
17475
17520
|
return function addPlugin() {
|
|
17476
|
-
return
|
|
17521
|
+
return _ref12.apply(this, arguments);
|
|
17477
17522
|
};
|
|
17478
17523
|
}();
|
|
17479
17524
|
if (!_classPrivateFieldGet(_api, this)) {
|
|
@@ -17520,11 +17565,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17520
17565
|
key: "deleteOverlay",
|
|
17521
17566
|
value: (function () {
|
|
17522
17567
|
var _deleteOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(name) {
|
|
17523
|
-
var
|
|
17568
|
+
var _classPrivateFieldGet98;
|
|
17524
17569
|
return _regenerator().w(function (_context6) {
|
|
17525
17570
|
while (1) switch (_context6.n) {
|
|
17526
17571
|
case 0:
|
|
17527
|
-
if (!((
|
|
17572
|
+
if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
|
|
17528
17573
|
_context6.n = 1;
|
|
17529
17574
|
break;
|
|
17530
17575
|
}
|
|
@@ -17549,11 +17594,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17549
17594
|
key: "disableControl",
|
|
17550
17595
|
value: (function () {
|
|
17551
17596
|
var _disableControl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(name) {
|
|
17552
|
-
var
|
|
17597
|
+
var _classPrivateFieldGet99;
|
|
17553
17598
|
return _regenerator().w(function (_context7) {
|
|
17554
17599
|
while (1) switch (_context7.n) {
|
|
17555
17600
|
case 0:
|
|
17556
|
-
if (!((
|
|
17601
|
+
if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
|
|
17557
17602
|
_context7.n = 1;
|
|
17558
17603
|
break;
|
|
17559
17604
|
}
|
|
@@ -17578,11 +17623,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17578
17623
|
key: "enableControl",
|
|
17579
17624
|
value: (function () {
|
|
17580
17625
|
var _enableControl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(name) {
|
|
17581
|
-
var
|
|
17626
|
+
var _classPrivateFieldGet100;
|
|
17582
17627
|
return _regenerator().w(function (_context8) {
|
|
17583
17628
|
while (1) switch (_context8.n) {
|
|
17584
17629
|
case 0:
|
|
17585
|
-
if (!((
|
|
17630
|
+
if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
|
|
17586
17631
|
_context8.n = 1;
|
|
17587
17632
|
break;
|
|
17588
17633
|
}
|
|
@@ -17601,17 +17646,17 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17601
17646
|
key: "enterInputContext",
|
|
17602
17647
|
value: function () {
|
|
17603
17648
|
var _enterInputContext = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(context) {
|
|
17604
|
-
var
|
|
17649
|
+
var _classPrivateFieldGet101,
|
|
17605
17650
|
_this5 = this;
|
|
17606
17651
|
return _regenerator().w(function (_context9) {
|
|
17607
17652
|
while (1) switch (_context9.n) {
|
|
17608
17653
|
case 0:
|
|
17609
|
-
if (!((
|
|
17654
|
+
if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
|
|
17610
17655
|
_context9.n = 1;
|
|
17611
17656
|
break;
|
|
17612
17657
|
}
|
|
17613
17658
|
return _context9.a(2, new Promise(function (resolve) {
|
|
17614
|
-
var
|
|
17659
|
+
var _classPrivateFieldGet102;
|
|
17615
17660
|
var _handler = function handler(event) {
|
|
17616
17661
|
var detail = event.detail;
|
|
17617
17662
|
if (detail.context === context) {
|
|
@@ -17620,7 +17665,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17620
17665
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .INPUT_CONTEXT_CHANGE_EVENT */ .ve, _handler);
|
|
17621
17666
|
};
|
|
17622
17667
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .INPUT_CONTEXT_CHANGE_EVENT */ .ve, _handler);
|
|
17623
|
-
(
|
|
17668
|
+
(_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
|
|
17624
17669
|
}));
|
|
17625
17670
|
case 1:
|
|
17626
17671
|
return _context9.a(2, Promise.reject(new Error("input context of name \"".concat(context, "\" cannot be enabled at this time"))));
|
|
@@ -17636,11 +17681,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17636
17681
|
key: "exitInputContext",
|
|
17637
17682
|
value: function () {
|
|
17638
17683
|
var _exitInputContext = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(context) {
|
|
17639
|
-
var
|
|
17684
|
+
var _classPrivateFieldGet103;
|
|
17640
17685
|
return _regenerator().w(function (_context0) {
|
|
17641
17686
|
while (1) switch (_context0.n) {
|
|
17642
17687
|
case 0:
|
|
17643
|
-
if (!((
|
|
17688
|
+
if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
|
|
17644
17689
|
_context0.n = 1;
|
|
17645
17690
|
break;
|
|
17646
17691
|
}
|
|
@@ -17693,8 +17738,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17693
17738
|
while (1) switch (_context10.n) {
|
|
17694
17739
|
case 0:
|
|
17695
17740
|
return _context10.a(2, new Promise(function (resolve, reject) {
|
|
17696
|
-
var
|
|
17697
|
-
if ((
|
|
17741
|
+
var _classPrivateFieldGet104;
|
|
17742
|
+
if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
|
|
17698
17743
|
resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
|
|
17699
17744
|
}
|
|
17700
17745
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -17718,7 +17763,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17718
17763
|
key: "getRemapTime",
|
|
17719
17764
|
value: (function () {
|
|
17720
17765
|
var _getRemapTime = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
17721
|
-
var
|
|
17766
|
+
var _classPrivateFieldGet105,
|
|
17722
17767
|
_this7 = this;
|
|
17723
17768
|
var _t, _t2, _t3;
|
|
17724
17769
|
return _regenerator().w(function (_context11) {
|
|
@@ -17739,11 +17784,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17739
17784
|
});
|
|
17740
17785
|
return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
|
|
17741
17786
|
case 2:
|
|
17742
|
-
if (!((
|
|
17787
|
+
if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
|
|
17743
17788
|
_context11.n = 3;
|
|
17744
17789
|
break;
|
|
17745
17790
|
}
|
|
17746
|
-
|
|
17791
|
+
_classPrivateFieldGet105;
|
|
17747
17792
|
_context11.n = 5;
|
|
17748
17793
|
break;
|
|
17749
17794
|
case 3:
|
|
@@ -17751,8 +17796,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17751
17796
|
_t2 = _cachedRemapTime;
|
|
17752
17797
|
_t3 = this;
|
|
17753
17798
|
_context11.n = 4;
|
|
17754
|
-
return (0,_utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__/* .dynamicImport */ .$)('assets/external/timeMapping.js').then(function (
|
|
17755
|
-
var remapTime =
|
|
17799
|
+
return (0,_utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__/* .dynamicImport */ .$)('assets/external/timeMapping.js').then(function (_ref14) {
|
|
17800
|
+
var remapTime = _ref14.remapTime;
|
|
17756
17801
|
return function (fromLanguage, toLanguage, fromTime) {
|
|
17757
17802
|
var fromTimeInMilliseconds = fromTime * 1000;
|
|
17758
17803
|
var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
|
|
@@ -17786,11 +17831,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17786
17831
|
key: "hideOverlay",
|
|
17787
17832
|
value: (function () {
|
|
17788
17833
|
var _hideOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(name) {
|
|
17789
|
-
var
|
|
17834
|
+
var _classPrivateFieldGet106;
|
|
17790
17835
|
return _regenerator().w(function (_context12) {
|
|
17791
17836
|
while (1) switch (_context12.n) {
|
|
17792
17837
|
case 0:
|
|
17793
|
-
if (!((
|
|
17838
|
+
if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
|
|
17794
17839
|
_context12.n = 1;
|
|
17795
17840
|
break;
|
|
17796
17841
|
}
|
|
@@ -17820,8 +17865,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17820
17865
|
while (1) switch (_context13.n) {
|
|
17821
17866
|
case 0:
|
|
17822
17867
|
return _context13.a(2, new Promise(function (resolve, reject) {
|
|
17823
|
-
var
|
|
17824
|
-
if ((
|
|
17868
|
+
var _classPrivateFieldGet107;
|
|
17869
|
+
if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
|
|
17825
17870
|
_classPrivateFieldGet(_api, _this8).popover.hide();
|
|
17826
17871
|
resolve();
|
|
17827
17872
|
}
|
|
@@ -17838,14 +17883,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17838
17883
|
}, {
|
|
17839
17884
|
key: "languagesToLocalizations",
|
|
17840
17885
|
value: function languagesToLocalizations(languages) {
|
|
17841
|
-
var
|
|
17842
|
-
return (
|
|
17886
|
+
var _classPrivateFieldGet108, _classPrivateFieldGet109;
|
|
17887
|
+
return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
|
|
17843
17888
|
}
|
|
17844
17889
|
}, {
|
|
17845
17890
|
key: "languageToLocalization",
|
|
17846
17891
|
value: function languageToLocalization(language) {
|
|
17847
|
-
var
|
|
17848
|
-
return (
|
|
17892
|
+
var _classPrivateFieldGet110, _classPrivateFieldGet111;
|
|
17893
|
+
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);
|
|
17849
17894
|
}
|
|
17850
17895
|
|
|
17851
17896
|
/**
|
|
@@ -17858,11 +17903,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17858
17903
|
key: "pause",
|
|
17859
17904
|
value: (function () {
|
|
17860
17905
|
var _pause = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
|
|
17861
|
-
var
|
|
17906
|
+
var _classPrivateFieldGet112;
|
|
17862
17907
|
return _regenerator().w(function (_context14) {
|
|
17863
17908
|
while (1) switch (_context14.n) {
|
|
17864
17909
|
case 0:
|
|
17865
|
-
return _context14.a(2, (
|
|
17910
|
+
return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
|
|
17866
17911
|
}
|
|
17867
17912
|
}, _callee14, this);
|
|
17868
17913
|
}));
|
|
@@ -17881,11 +17926,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17881
17926
|
key: "play",
|
|
17882
17927
|
value: (function () {
|
|
17883
17928
|
var _play = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15() {
|
|
17884
|
-
var
|
|
17929
|
+
var _classPrivateFieldGet113;
|
|
17885
17930
|
return _regenerator().w(function (_context15) {
|
|
17886
17931
|
while (1) switch (_context15.n) {
|
|
17887
17932
|
case 0:
|
|
17888
|
-
return _context15.a(2, (
|
|
17933
|
+
return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
|
|
17889
17934
|
}
|
|
17890
17935
|
}, _callee15, this);
|
|
17891
17936
|
}));
|
|
@@ -17903,11 +17948,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17903
17948
|
key: "releaseControls",
|
|
17904
17949
|
value: (function () {
|
|
17905
17950
|
var _releaseControls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(name) {
|
|
17906
|
-
var
|
|
17951
|
+
var _classPrivateFieldGet114;
|
|
17907
17952
|
return _regenerator().w(function (_context16) {
|
|
17908
17953
|
while (1) switch (_context16.n) {
|
|
17909
17954
|
case 0:
|
|
17910
|
-
return _context16.a(2, (
|
|
17955
|
+
return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
|
|
17911
17956
|
}
|
|
17912
17957
|
}, _callee16, this);
|
|
17913
17958
|
}));
|
|
@@ -17925,13 +17970,13 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17925
17970
|
key: "removeAllEventListeners",
|
|
17926
17971
|
value: function removeAllEventListeners() {
|
|
17927
17972
|
var _this9 = this;
|
|
17928
|
-
Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function (
|
|
17929
|
-
var
|
|
17930
|
-
type =
|
|
17931
|
-
listeners =
|
|
17932
|
-
listeners.forEach(function (
|
|
17933
|
-
var listener =
|
|
17934
|
-
options =
|
|
17973
|
+
Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function (_ref15) {
|
|
17974
|
+
var _ref16 = _slicedToArray(_ref15, 2),
|
|
17975
|
+
type = _ref16[0],
|
|
17976
|
+
listeners = _ref16[1];
|
|
17977
|
+
listeners.forEach(function (_ref17) {
|
|
17978
|
+
var listener = _ref17.listener,
|
|
17979
|
+
options = _ref17.options;
|
|
17935
17980
|
_this9.removeEventListener(type, listener, options);
|
|
17936
17981
|
});
|
|
17937
17982
|
});
|
|
@@ -17986,7 +18031,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17986
18031
|
case 0:
|
|
17987
18032
|
options = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : {};
|
|
17988
18033
|
return _context17.a(2, new Promise(function (resolve, reject) {
|
|
17989
|
-
var
|
|
18034
|
+
var _classPrivateFieldGet115;
|
|
17990
18035
|
if (!_classPrivateFieldGet(_api, _this0)) {
|
|
17991
18036
|
reject(new Error('api not ready to replace'));
|
|
17992
18037
|
}
|
|
@@ -17996,7 +18041,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17996
18041
|
resolve();
|
|
17997
18042
|
};
|
|
17998
18043
|
_this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .AFTER_REPLACE_EVENT */ .$1, _handleAfterReplace2);
|
|
17999
|
-
(
|
|
18044
|
+
(_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
|
|
18000
18045
|
}));
|
|
18001
18046
|
}
|
|
18002
18047
|
}, _callee17);
|
|
@@ -18015,11 +18060,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18015
18060
|
key: "requestControls",
|
|
18016
18061
|
value: (function () {
|
|
18017
18062
|
var _requestControls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(name) {
|
|
18018
|
-
var
|
|
18063
|
+
var _classPrivateFieldGet116;
|
|
18019
18064
|
return _regenerator().w(function (_context18) {
|
|
18020
18065
|
while (1) switch (_context18.n) {
|
|
18021
18066
|
case 0:
|
|
18022
|
-
return _context18.a(2, (
|
|
18067
|
+
return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
|
|
18023
18068
|
}
|
|
18024
18069
|
}, _callee18, this);
|
|
18025
18070
|
}));
|
|
@@ -18037,11 +18082,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18037
18082
|
key: "requestFullscreen",
|
|
18038
18083
|
value: (function () {
|
|
18039
18084
|
var _requestFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19() {
|
|
18040
|
-
var
|
|
18085
|
+
var _classPrivateFieldGet117;
|
|
18041
18086
|
return _regenerator().w(function (_context19) {
|
|
18042
18087
|
while (1) switch (_context19.n) {
|
|
18043
18088
|
case 0:
|
|
18044
|
-
if (!((
|
|
18089
|
+
if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
|
|
18045
18090
|
_context19.n = 1;
|
|
18046
18091
|
break;
|
|
18047
18092
|
}
|
|
@@ -18066,11 +18111,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18066
18111
|
key: "showOverlay",
|
|
18067
18112
|
value: (function () {
|
|
18068
18113
|
var _showOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(name) {
|
|
18069
|
-
var
|
|
18114
|
+
var _classPrivateFieldGet118;
|
|
18070
18115
|
return _regenerator().w(function (_context20) {
|
|
18071
18116
|
while (1) switch (_context20.n) {
|
|
18072
18117
|
case 0:
|
|
18073
|
-
if (!((
|
|
18118
|
+
if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
|
|
18074
18119
|
_context20.n = 1;
|
|
18075
18120
|
break;
|
|
18076
18121
|
}
|
|
@@ -18100,8 +18145,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18100
18145
|
while (1) switch (_context21.n) {
|
|
18101
18146
|
case 0:
|
|
18102
18147
|
return _context21.a(2, new Promise(function (resolve, reject) {
|
|
18103
|
-
var
|
|
18104
|
-
if ((
|
|
18148
|
+
var _classPrivateFieldGet119;
|
|
18149
|
+
if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
|
|
18105
18150
|
_classPrivateFieldGet(_api, _this1).popover.show();
|
|
18106
18151
|
resolve();
|
|
18107
18152
|
}
|
|
@@ -18365,7 +18410,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18365
18410
|
}, {
|
|
18366
18411
|
key: "disconnectedCallback",
|
|
18367
18412
|
value: function disconnectedCallback() {
|
|
18368
|
-
var
|
|
18413
|
+
var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
|
|
18369
18414
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function (removeListener) {
|
|
18370
18415
|
return removeListener();
|
|
18371
18416
|
});
|
|
@@ -18373,10 +18418,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18373
18418
|
_classPrivateFieldSet(_eventListeners, this, {});
|
|
18374
18419
|
(0,_utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__/* .removeInjectedJsonLd */ .Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
18375
18420
|
(0,_utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__/* .uncacheMediaData */ .s3)(this.mediaId);
|
|
18376
|
-
(
|
|
18421
|
+
(_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
|
|
18377
18422
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
18378
18423
|
(0,_utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__/* .removeEmbedOptionStore */ .iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
18379
|
-
(
|
|
18424
|
+
(_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
|
|
18380
18425
|
_classPrivateFieldSet(_api, this, null);
|
|
18381
18426
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
18382
18427
|
_classPrivateFieldSet(_preactRoot, this, null);
|
|
@@ -18436,11 +18481,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
|
|
|
18436
18481
|
return !!document.querySelector("wistia-channel-carousel[player-dom-id=\"".concat(this.id, "\"]:not([is-inside-playlist-embed=\"true\"][channel-id])"));
|
|
18437
18482
|
}
|
|
18438
18483
|
function _findLocalizationByLanguage(language) {
|
|
18439
|
-
var
|
|
18484
|
+
var _classPrivateFieldGet122;
|
|
18440
18485
|
if (language == null) {
|
|
18441
18486
|
return undefined;
|
|
18442
18487
|
}
|
|
18443
|
-
return (
|
|
18488
|
+
return (_classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.find(function (localization) {
|
|
18444
18489
|
return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
|
|
18445
18490
|
});
|
|
18446
18491
|
}
|
|
@@ -18465,7 +18510,7 @@ function _generateUniqueId(mediaId) {
|
|
|
18465
18510
|
* @returns {boolean | number | string | null}
|
|
18466
18511
|
*/
|
|
18467
18512
|
function _getSyncedEmbedOption(key) {
|
|
18468
|
-
var
|
|
18513
|
+
var _ref20, _ref21;
|
|
18469
18514
|
// If the public api is ready, use it as the source of truth
|
|
18470
18515
|
if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
|
|
18471
18516
|
return _classPrivateFieldGet(_impl, this)._attrs[key];
|
|
@@ -18473,7 +18518,7 @@ function _getSyncedEmbedOption(key) {
|
|
|
18473
18518
|
|
|
18474
18519
|
// Otherwise check this element's embed config for a value and fallback
|
|
18475
18520
|
// to the default embed options as a last resort
|
|
18476
|
-
return (
|
|
18521
|
+
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];
|
|
18477
18522
|
}
|
|
18478
18523
|
/**
|
|
18479
18524
|
* Gets the value of an attribute if it exists, returns null if not
|
|
@@ -18504,9 +18549,9 @@ function _getValueFromAttribute(name) {
|
|
|
18504
18549
|
* Handles initialization of the player for fresh Aurora embeds
|
|
18505
18550
|
* @returns {void}
|
|
18506
18551
|
*/
|
|
18507
|
-
function _initPlayerEmbed(
|
|
18508
|
-
var container =
|
|
18509
|
-
mediaData =
|
|
18552
|
+
function _initPlayerEmbed(_ref22) {
|
|
18553
|
+
var container = _ref22.container,
|
|
18554
|
+
mediaData = _ref22.mediaData;
|
|
18510
18555
|
if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
|
|
18511
18556
|
return;
|
|
18512
18557
|
}
|
|
@@ -18519,8 +18564,8 @@ function _initPlayerEmbed(_ref21) {
|
|
|
18519
18564
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
18520
18565
|
}
|
|
18521
18566
|
if ('attachInternals' in HTMLElement.prototype && 'states' in ElementInternals.prototype) {
|
|
18522
|
-
var
|
|
18523
|
-
(
|
|
18567
|
+
var _classPrivateFieldGet123;
|
|
18568
|
+
(_classPrivateFieldGet123 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.states.delete('--initializing');
|
|
18524
18569
|
}
|
|
18525
18570
|
|
|
18526
18571
|
// Create and save the public api instance
|
|
@@ -18576,10 +18621,10 @@ function _initPublicApi2() {
|
|
|
18576
18621
|
_this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .AFTER_REPLACE_EVENT */ .$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
|
|
18577
18622
|
});
|
|
18578
18623
|
_classPrivateFieldGet(_api, this).ready(function () {
|
|
18579
|
-
var
|
|
18580
|
-
(
|
|
18624
|
+
var _classPrivateFieldGet130, _classPrivateFieldGet131;
|
|
18625
|
+
(_classPrivateFieldGet130 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.disconnect();
|
|
18581
18626
|
_classPrivateFieldSet(_resizeObserver, _this19, null);
|
|
18582
|
-
(
|
|
18627
|
+
(_classPrivateFieldGet131 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.remove();
|
|
18583
18628
|
_this19.removeEventListener('click', _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
|
|
18584
18629
|
// event for public consumption, exposed on our event types
|
|
18585
18630
|
_this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .API_READY_EVENT */ .c5, {
|
|
@@ -18599,10 +18644,10 @@ function _initPublicApi2() {
|
|
|
18599
18644
|
|
|
18600
18645
|
// Sync embed options from the public api back to the embed config
|
|
18601
18646
|
if (_classPrivateFieldGet(_impl, _this19)) {
|
|
18602
|
-
Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function (
|
|
18603
|
-
var
|
|
18604
|
-
key =
|
|
18605
|
-
value =
|
|
18647
|
+
Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function (_ref27) {
|
|
18648
|
+
var _ref28 = _slicedToArray(_ref27, 2),
|
|
18649
|
+
key = _ref28[0],
|
|
18650
|
+
value = _ref28[1];
|
|
18606
18651
|
_classPrivateFieldGet(_playerData, _this19).updateEmbedOptionOverrides(_defineProperty({}, key, value));
|
|
18607
18652
|
});
|
|
18608
18653
|
}
|
|
@@ -18670,8 +18715,8 @@ function _maybeInitializeMux2() {
|
|
|
18670
18715
|
this.addEventListener('visitor-tracking-change', function (event) {
|
|
18671
18716
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
18672
18717
|
if (!isTrackingEnabled) {
|
|
18673
|
-
var
|
|
18674
|
-
(
|
|
18718
|
+
var _classPrivateFieldGet133, _classPrivateFieldGet134;
|
|
18719
|
+
(_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133.mux) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.destroy();
|
|
18675
18720
|
}
|
|
18676
18721
|
});
|
|
18677
18722
|
case 6:
|
|
@@ -18775,8 +18820,8 @@ function _renderEmbedTemplate() {
|
|
|
18775
18820
|
alt: "",
|
|
18776
18821
|
"aria-hidden": "true"
|
|
18777
18822
|
})))), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
18778
|
-
ref: function ref(
|
|
18779
|
-
_classPrivateFieldSet(_preloadThumbnailRoot, _this13,
|
|
18823
|
+
ref: function ref(_ref23) {
|
|
18824
|
+
_classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref23);
|
|
18780
18825
|
}
|
|
18781
18826
|
})), _classPrivateFieldGet(_preactRoot, this));
|
|
18782
18827
|
}
|
|
@@ -18790,13 +18835,13 @@ function _renderPreloadThumbnail() {
|
|
|
18790
18835
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
18791
18836
|
return;
|
|
18792
18837
|
}
|
|
18793
|
-
var
|
|
18794
|
-
assets =
|
|
18795
|
-
mediaType =
|
|
18796
|
-
carouselHardWall =
|
|
18797
|
-
var
|
|
18798
|
-
autoPlay =
|
|
18799
|
-
plugin =
|
|
18838
|
+
var _classPrivateFieldGet124 = _classPrivateFieldGet(_playerData, this).mediaData,
|
|
18839
|
+
assets = _classPrivateFieldGet124.assets,
|
|
18840
|
+
mediaType = _classPrivateFieldGet124.mediaType,
|
|
18841
|
+
carouselHardWall = _classPrivateFieldGet124.carouselHardWall;
|
|
18842
|
+
var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).embedOptions,
|
|
18843
|
+
autoPlay = _classPrivateFieldGet125.autoPlay,
|
|
18844
|
+
plugin = _classPrivateFieldGet125.plugin;
|
|
18800
18845
|
|
|
18801
18846
|
// Don't render the preload thumbnail if we're going to show a carousel hard wall player.
|
|
18802
18847
|
if (carouselHardWall) {
|
|
@@ -18843,12 +18888,12 @@ function _runMethodsFromAttributes() {
|
|
|
18843
18888
|
// We have to wait until the api is ready to set the current time
|
|
18844
18889
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'current-time') !== null) {
|
|
18845
18890
|
this.whenApiReady().then(function () {
|
|
18846
|
-
var
|
|
18891
|
+
var _ref24, _classPrivateFieldGet126, _classPrivateFieldGet127;
|
|
18847
18892
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, 'current-time'));
|
|
18848
|
-
var isClosedPopover = (
|
|
18893
|
+
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;
|
|
18849
18894
|
var isMobile = (0,_utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__/* .detectIsMobile */ .GS)();
|
|
18850
18895
|
var shouldDelayUntilPlay = _this14.state !== 'playing' && (isMobile || isClosedPopover);
|
|
18851
|
-
void ((
|
|
18896
|
+
void ((_classPrivateFieldGet127 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.time(newTime, {
|
|
18852
18897
|
lazy: shouldDelayUntilPlay
|
|
18853
18898
|
}));
|
|
18854
18899
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, 'currentTime', newTime);
|
|
@@ -18861,9 +18906,9 @@ function _runMethodsFromAttributes() {
|
|
|
18861
18906
|
}
|
|
18862
18907
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'video-quality') !== null) {
|
|
18863
18908
|
this.whenApiReady().then(function () {
|
|
18864
|
-
var
|
|
18909
|
+
var _classPrivateFieldGet128;
|
|
18865
18910
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, 'video-quality');
|
|
18866
|
-
(
|
|
18911
|
+
(_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.setVideoQuality(newQuality);
|
|
18867
18912
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, 'videoQuality', newQuality);
|
|
18868
18913
|
})
|
|
18869
18914
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -18877,9 +18922,9 @@ function _runMethodsFromAttributes() {
|
|
|
18877
18922
|
*/
|
|
18878
18923
|
function _saveInitialAttributesFromDomOptions() {
|
|
18879
18924
|
var _this15 = this;
|
|
18880
|
-
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function (
|
|
18881
|
-
var
|
|
18882
|
-
value =
|
|
18925
|
+
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function (_ref25) {
|
|
18926
|
+
var _ref26 = _slicedToArray(_ref25, 2),
|
|
18927
|
+
value = _ref26[1];
|
|
18883
18928
|
return [(0,_utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__/* .kebabCaseToCamelCase */ .b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, value.name)];
|
|
18884
18929
|
}));
|
|
18885
18930
|
_classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
|
|
@@ -19011,7 +19056,7 @@ function _updateMediaData(mediaData) {
|
|
|
19011
19056
|
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
19012
19057
|
}
|
|
19013
19058
|
var getSwatchMetaData = /*#__PURE__*/function () {
|
|
19014
|
-
var
|
|
19059
|
+
var _ref18 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee25(url) {
|
|
19015
19060
|
var swatch;
|
|
19016
19061
|
return _regenerator().w(function (_context25) {
|
|
19017
19062
|
while (1) switch (_context25.n) {
|
|
@@ -19026,7 +19071,7 @@ var getSwatchMetaData = /*#__PURE__*/function () {
|
|
|
19026
19071
|
}, _callee25);
|
|
19027
19072
|
}));
|
|
19028
19073
|
return function getSwatchMetaData(_x18) {
|
|
19029
|
-
return
|
|
19074
|
+
return _ref18.apply(this, arguments);
|
|
19030
19075
|
};
|
|
19031
19076
|
}();
|
|
19032
19077
|
|
|
@@ -19037,7 +19082,7 @@ var getSwatchMetaData = /*#__PURE__*/function () {
|
|
|
19037
19082
|
* @returns {Promise<HTMLStyleElement>}
|
|
19038
19083
|
*/
|
|
19039
19084
|
var wistiaSwatchElement = /*#__PURE__*/function () {
|
|
19040
|
-
var
|
|
19085
|
+
var _ref19 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(mediaId, embedHost) {
|
|
19041
19086
|
var swatchUrl, swatchImg, naturalHeight, naturalWidth, ratio, style;
|
|
19042
19087
|
return _regenerator().w(function (_context26) {
|
|
19043
19088
|
while (1) switch (_context26.n) {
|
|
@@ -19056,7 +19101,7 @@ var wistiaSwatchElement = /*#__PURE__*/function () {
|
|
|
19056
19101
|
}, _callee26);
|
|
19057
19102
|
}));
|
|
19058
19103
|
return function wistiaSwatchElement(_x19, _x20) {
|
|
19059
|
-
return
|
|
19104
|
+
return _ref19.apply(this, arguments);
|
|
19060
19105
|
};
|
|
19061
19106
|
}();
|
|
19062
19107
|
if (customElements.get('wistia-player') === undefined) {
|