@wistia/wistia-player-react 0.7.2 → 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.
|
@@ -38,11 +38,11 @@ var init_dist = __esm({
|
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
// src/utils/getMergedEmbedOption.ts
|
|
41
|
-
var
|
|
41
|
+
var isGradient2, isValidEmbedOption, getMergedEmbedOption;
|
|
42
42
|
var init_getMergedEmbedOption = __esm({
|
|
43
43
|
"src/utils/getMergedEmbedOption.ts"() {
|
|
44
44
|
init_dist();
|
|
45
|
-
|
|
45
|
+
isGradient2 = (value) => {
|
|
46
46
|
if (!isRecord(value)) {
|
|
47
47
|
return false;
|
|
48
48
|
}
|
|
@@ -59,7 +59,7 @@ var init_getMergedEmbedOption = __esm({
|
|
|
59
59
|
return colors.every((color) => isArray2(color) && isString(color[0]) && isNumber2(color[1]));
|
|
60
60
|
};
|
|
61
61
|
isValidEmbedOption = (value) => {
|
|
62
|
-
return isNumber2(value) || isString(value) || isBoolean(value) ||
|
|
62
|
+
return isNumber2(value) || isString(value) || isBoolean(value) || isGradient2(value);
|
|
63
63
|
};
|
|
64
64
|
getMergedEmbedOption = (mediaId, optionKey, optionValue) => {
|
|
65
65
|
let finalEmbedOption = optionValue;
|
|
@@ -485,11 +485,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
|
|
|
485
485
|
return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
486
486
|
}
|
|
487
487
|
function _findLocalizationByLanguage(language) {
|
|
488
|
-
var
|
|
488
|
+
var _classPrivateFieldGet122;
|
|
489
489
|
if (language == null) {
|
|
490
490
|
return void 0;
|
|
491
491
|
}
|
|
492
|
-
return (
|
|
492
|
+
return (_classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.find(function(localization) {
|
|
493
493
|
return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
|
|
494
494
|
});
|
|
495
495
|
}
|
|
@@ -498,11 +498,11 @@ function _generateUniqueId(mediaId) {
|
|
|
498
498
|
return (0, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_22__.h)(prefix);
|
|
499
499
|
}
|
|
500
500
|
function _getSyncedEmbedOption(key) {
|
|
501
|
-
var
|
|
501
|
+
var _ref20, _ref21;
|
|
502
502
|
if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
|
|
503
503
|
return _classPrivateFieldGet(_impl, this)._attrs[key];
|
|
504
504
|
}
|
|
505
|
-
return (
|
|
505
|
+
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__.$)(key))) !== null && _ref20 !== void 0 ? _ref20 : defaultEmbedOptions[key];
|
|
506
506
|
}
|
|
507
507
|
function _getValueFromAttribute(name) {
|
|
508
508
|
if (!this.hasAttribute(name)) {
|
|
@@ -520,8 +520,8 @@ function _getValueFromAttribute(name) {
|
|
|
520
520
|
return this.getAttribute(name);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function _initPlayerEmbed(
|
|
524
|
-
var container =
|
|
523
|
+
function _initPlayerEmbed(_ref22) {
|
|
524
|
+
var container = _ref22.container, mediaData = _ref22.mediaData;
|
|
525
525
|
if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
@@ -534,8 +534,8 @@ function _initPlayerEmbed(_ref21) {
|
|
|
534
534
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
535
535
|
}
|
|
536
536
|
if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
|
|
537
|
-
var
|
|
538
|
-
(
|
|
537
|
+
var _classPrivateFieldGet123;
|
|
538
|
+
(_classPrivateFieldGet123 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.states.delete("--initializing");
|
|
539
539
|
}
|
|
540
540
|
void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
|
|
541
541
|
container,
|
|
@@ -581,10 +581,10 @@ function _initPublicApi2() {
|
|
|
581
581
|
_this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
|
|
582
582
|
});
|
|
583
583
|
_classPrivateFieldGet(_api, this).ready(function() {
|
|
584
|
-
var
|
|
585
|
-
(
|
|
584
|
+
var _classPrivateFieldGet130, _classPrivateFieldGet131;
|
|
585
|
+
(_classPrivateFieldGet130 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.disconnect();
|
|
586
586
|
_classPrivateFieldSet(_resizeObserver, _this19, null);
|
|
587
|
-
(
|
|
587
|
+
(_classPrivateFieldGet131 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.remove();
|
|
588
588
|
_this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
|
|
589
589
|
_this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
|
|
590
590
|
detail: {
|
|
@@ -599,8 +599,8 @@ function _initPublicApi2() {
|
|
|
599
599
|
}));
|
|
600
600
|
_assertClassBrand(_WistiaPlayer_brand, _this19, _maybeSetupLLMOptimizedEmbed).call(_this19);
|
|
601
601
|
if (_classPrivateFieldGet(_impl, _this19)) {
|
|
602
|
-
Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(
|
|
603
|
-
var
|
|
602
|
+
Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref27) {
|
|
603
|
+
var _ref28 = _slicedToArray(_ref27, 2), key = _ref28[0], value = _ref28[1];
|
|
604
604
|
_classPrivateFieldGet(_playerData, _this19).updateEmbedOptionOverrides(_defineProperty({}, key, value));
|
|
605
605
|
});
|
|
606
606
|
}
|
|
@@ -656,8 +656,8 @@ function _maybeInitializeMux2() {
|
|
|
656
656
|
this.addEventListener("visitor-tracking-change", function(event) {
|
|
657
657
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
658
658
|
if (!isTrackingEnabled) {
|
|
659
|
-
var
|
|
660
|
-
(
|
|
659
|
+
var _classPrivateFieldGet133, _classPrivateFieldGet134;
|
|
660
|
+
(_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133.mux) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.destroy();
|
|
661
661
|
}
|
|
662
662
|
});
|
|
663
663
|
case 6:
|
|
@@ -751,8 +751,8 @@ function _renderEmbedTemplate() {
|
|
|
751
751
|
alt: "",
|
|
752
752
|
"aria-hidden": "true"
|
|
753
753
|
})))), (0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
754
|
-
ref: function ref(
|
|
755
|
-
_classPrivateFieldSet(_preloadThumbnailRoot, _this13,
|
|
754
|
+
ref: function ref(_ref23) {
|
|
755
|
+
_classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref23);
|
|
756
756
|
}
|
|
757
757
|
})), _classPrivateFieldGet(_preactRoot, this));
|
|
758
758
|
}
|
|
@@ -761,8 +761,8 @@ function _renderPreloadThumbnail() {
|
|
|
761
761
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
764
|
-
var
|
|
765
|
-
var
|
|
764
|
+
var _classPrivateFieldGet124 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet124.assets, mediaType = _classPrivateFieldGet124.mediaType, carouselHardWall = _classPrivateFieldGet124.carouselHardWall;
|
|
765
|
+
var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet125.autoPlay, plugin = _classPrivateFieldGet125.plugin;
|
|
766
766
|
if (carouselHardWall) {
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
@@ -798,12 +798,12 @@ function _runMethodsFromAttributes() {
|
|
|
798
798
|
var _this14 = this;
|
|
799
799
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
|
|
800
800
|
this.whenApiReady().then(function() {
|
|
801
|
-
var
|
|
801
|
+
var _ref24, _classPrivateFieldGet126, _classPrivateFieldGet127;
|
|
802
802
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
|
|
803
|
-
var isClosedPopover = (
|
|
803
|
+
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;
|
|
804
804
|
var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
|
|
805
805
|
var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
|
|
806
|
-
void ((
|
|
806
|
+
void ((_classPrivateFieldGet127 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.time(newTime, {
|
|
807
807
|
lazy: shouldDelayUntilPlay
|
|
808
808
|
}));
|
|
809
809
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
|
|
@@ -815,9 +815,9 @@ function _runMethodsFromAttributes() {
|
|
|
815
815
|
}
|
|
816
816
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
|
|
817
817
|
this.whenApiReady().then(function() {
|
|
818
|
-
var
|
|
818
|
+
var _classPrivateFieldGet128;
|
|
819
819
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
|
|
820
|
-
(
|
|
820
|
+
(_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.setVideoQuality(newQuality);
|
|
821
821
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
|
|
822
822
|
}).catch(function(_error) {
|
|
823
823
|
});
|
|
@@ -825,8 +825,8 @@ function _runMethodsFromAttributes() {
|
|
|
825
825
|
}
|
|
826
826
|
function _saveInitialAttributesFromDomOptions() {
|
|
827
827
|
var _this15 = this;
|
|
828
|
-
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(
|
|
829
|
-
var
|
|
828
|
+
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref25) {
|
|
829
|
+
var _ref26 = _slicedToArray(_ref25, 2), value = _ref26[1];
|
|
830
830
|
return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, value.name)];
|
|
831
831
|
}));
|
|
832
832
|
_classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
|
|
@@ -2482,6 +2482,11 @@ var init_wistia_player = __esm({
|
|
|
2482
2482
|
getContrast
|
|
2483
2483
|
),
|
|
2484
2484
|
/* harmony export */
|
|
2485
|
+
cO: () => (
|
|
2486
|
+
/* binding */
|
|
2487
|
+
DEFAULT_PLAYER_COLOR2
|
|
2488
|
+
),
|
|
2489
|
+
/* harmony export */
|
|
2485
2490
|
hu: () => (
|
|
2486
2491
|
/* binding */
|
|
2487
2492
|
getVideoPlayerIconColor
|
|
@@ -2525,6 +2530,7 @@ var init_wistia_player = __esm({
|
|
|
2525
2530
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
2526
2531
|
return n;
|
|
2527
2532
|
}
|
|
2533
|
+
var DEFAULT_PLAYER_COLOR2 = "#2949E5";
|
|
2528
2534
|
var colorContrastRatiosByShape = {
|
|
2529
2535
|
nonText: 3,
|
|
2530
2536
|
// 3:1 - https://www.w3.org/TR/WCAG21/#non-text-contrast
|
|
@@ -2728,6 +2734,24 @@ var init_wistia_player = __esm({
|
|
|
2728
2734
|
}
|
|
2729
2735
|
return adjustColorForProperContrast(_playerColor, _playerColor, "paragraphText");
|
|
2730
2736
|
};
|
|
2737
|
+
var SHADE = 0.8;
|
|
2738
|
+
var getBackgroundColorFromPlayerColor = function getBackgroundColorFromPlayerColor2() {
|
|
2739
|
+
var color = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_PLAYER_COLOR2;
|
|
2740
|
+
return new Color(color).shade(SHADE).toHexWithHash();
|
|
2741
|
+
};
|
|
2742
|
+
var isDarkColor = function isDarkColor2(color) {
|
|
2743
|
+
return new Color(color).getRelativeLuminance() < 0.15;
|
|
2744
|
+
};
|
|
2745
|
+
var isVeryDarkColor = function isVeryDarkColor2(color) {
|
|
2746
|
+
return new Color(color).getRelativeLuminance() < 0.05;
|
|
2747
|
+
};
|
|
2748
|
+
var isLightColor = function isLightColor2(color) {
|
|
2749
|
+
return new Color(color).getRelativeLuminance() >= 0.8;
|
|
2750
|
+
};
|
|
2751
|
+
var isMidToneColor = function isMidToneColor2(color) {
|
|
2752
|
+
var relativeLuminance = new Color(color).getRelativeLuminance();
|
|
2753
|
+
return relativeLuminance > 0.13 && relativeLuminance < 0.75;
|
|
2754
|
+
};
|
|
2731
2755
|
},
|
|
2732
2756
|
/***/
|
|
2733
2757
|
1161(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) {
|
|
@@ -6588,8 +6612,9 @@ var init_wistia_player = __esm({
|
|
|
6588
6612
|
/* harmony export */
|
|
6589
6613
|
});
|
|
6590
6614
|
var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(7350);
|
|
6591
|
-
var
|
|
6592
|
-
var
|
|
6615
|
+
var _color_utils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(998);
|
|
6616
|
+
var _color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5417);
|
|
6617
|
+
var _obj_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(731);
|
|
6593
6618
|
function _slicedToArray2(r, e) {
|
|
6594
6619
|
return _arrayWithHoles2(r) || _iterableToArrayLimit2(r, e) || _unsupportedIterableToArray2(r, e) || _nonIterableRest2();
|
|
6595
6620
|
}
|
|
@@ -6636,12 +6661,12 @@ var init_wistia_player = __esm({
|
|
|
6636
6661
|
var GRADIENT_COLOR_INDEX = 0;
|
|
6637
6662
|
var GRADIENT_PERCENTAGE_INDEX = 1;
|
|
6638
6663
|
var DEFAULT_GRADIENT = {
|
|
6639
|
-
colors: [[
|
|
6664
|
+
colors: [[_color_utils_ts__WEBPACK_IMPORTED_MODULE_1__.cO, 0], ["#6A84FF", 1]],
|
|
6640
6665
|
on: true
|
|
6641
6666
|
};
|
|
6642
6667
|
var hexToRGBA = function hexToRGBA2(hex) {
|
|
6643
6668
|
var alpha = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : DEFAULT_ALPHA;
|
|
6644
|
-
var color = new
|
|
6669
|
+
var color = new _color_js__WEBPACK_IMPORTED_MODULE_2__.Q1(hex);
|
|
6645
6670
|
var colorWithAlpha = color.alpha(alpha);
|
|
6646
6671
|
return colorWithAlpha.toRgba();
|
|
6647
6672
|
};
|
|
@@ -6681,6 +6706,12 @@ var init_wistia_player = __esm({
|
|
|
6681
6706
|
};
|
|
6682
6707
|
return result;
|
|
6683
6708
|
};
|
|
6709
|
+
var getPlayerColorOrFirstGradientStop = function getPlayerColorOrFirstGradientStop2(playerColor, gradient) {
|
|
6710
|
+
if (!isGradient(gradient) || !gradient.on) {
|
|
6711
|
+
return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
|
|
6712
|
+
}
|
|
6713
|
+
return addHashToHex(getGradientColor(gradient));
|
|
6714
|
+
};
|
|
6684
6715
|
},
|
|
6685
6716
|
/***/
|
|
6686
6717
|
4400(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
|
|
@@ -8130,7 +8161,7 @@ var init_wistia_player = __esm({
|
|
|
8130
8161
|
}
|
|
8131
8162
|
}]);
|
|
8132
8163
|
})();
|
|
8133
|
-
var
|
|
8164
|
+
var addHashToHex2 = function addHashToHex3(hex) {
|
|
8134
8165
|
if (isNil(hex)) {
|
|
8135
8166
|
return;
|
|
8136
8167
|
}
|
|
@@ -9134,8 +9165,8 @@ var init_wistia_player = __esm({
|
|
|
9134
9165
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9135
9166
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
9136
9167
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9137
|
-
var TAGGED_VERSION = "0.7.
|
|
9138
|
-
var CURRENT_SHA = "
|
|
9168
|
+
var TAGGED_VERSION = "0.7.4";
|
|
9169
|
+
var CURRENT_SHA = "cd6d5f204d2705b44830dc62fffa01754c68f1d5";
|
|
9139
9170
|
var DEFAULT_PROTOCOL = (function() {
|
|
9140
9171
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
9141
9172
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -11313,11 +11344,11 @@ var init_wistia_player = __esm({
|
|
|
11313
11344
|
/* harmony export */
|
|
11314
11345
|
b: () => (
|
|
11315
11346
|
/* binding */
|
|
11316
|
-
|
|
11347
|
+
isGradient3
|
|
11317
11348
|
)
|
|
11318
11349
|
/* harmony export */
|
|
11319
11350
|
});
|
|
11320
|
-
var
|
|
11351
|
+
var isGradient3 = function isGradient4(value) {
|
|
11321
11352
|
if (typeof value !== "object" || value === null) {
|
|
11322
11353
|
return false;
|
|
11323
11354
|
}
|
|
@@ -14886,6 +14917,16 @@ var init_wistia_player = __esm({
|
|
|
14886
14917
|
get: function get() {
|
|
14887
14918
|
return _classPrivateFieldGet(_api, this);
|
|
14888
14919
|
}
|
|
14920
|
+
/**
|
|
14921
|
+
* Returns the description of the video, as used in the JSON-LD schema
|
|
14922
|
+
* @returns {string}
|
|
14923
|
+
*/
|
|
14924
|
+
}, {
|
|
14925
|
+
key: "description",
|
|
14926
|
+
get: function get() {
|
|
14927
|
+
var _ref5, _classPrivateFieldGet24, _classPrivateFieldGet25, _classPrivateFieldGet26;
|
|
14928
|
+
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 : "";
|
|
14929
|
+
}
|
|
14889
14930
|
/**
|
|
14890
14931
|
* Returns the status of the do not track embed option that controls whether the player
|
|
14891
14932
|
* sends tracking pings.
|
|
@@ -14906,8 +14947,8 @@ var init_wistia_player = __esm({
|
|
|
14906
14947
|
}, {
|
|
14907
14948
|
key: "duration",
|
|
14908
14949
|
get: function get() {
|
|
14909
|
-
var
|
|
14910
|
-
return (
|
|
14950
|
+
var _classPrivateFieldGet27, _classPrivateFieldGet28;
|
|
14951
|
+
return (_classPrivateFieldGet27 = (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.duration()) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : 0;
|
|
14911
14952
|
}
|
|
14912
14953
|
/**
|
|
14913
14954
|
* Returns the email associated with this viewing session.
|
|
@@ -14920,8 +14961,8 @@ var init_wistia_player = __esm({
|
|
|
14920
14961
|
}, {
|
|
14921
14962
|
key: "email",
|
|
14922
14963
|
get: function get() {
|
|
14923
|
-
var
|
|
14924
|
-
return (
|
|
14964
|
+
var _ref6, _ref7, _extractEmailFromPara, _classPrivateGetter2;
|
|
14965
|
+
return (_ref6 = (_ref7 = (_extractEmailFromPara = (0, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_16__.i)(_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl))) !== null && _extractEmailFromPara !== void 0 ? _extractEmailFromPara : (_classPrivateGetter2 = (0, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_27__.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 : void 0;
|
|
14925
14966
|
},
|
|
14926
14967
|
set: function set(newEmail) {
|
|
14927
14968
|
if (this.email === newEmail) {
|
|
@@ -14961,8 +15002,8 @@ var init_wistia_player = __esm({
|
|
|
14961
15002
|
}, {
|
|
14962
15003
|
key: "ended",
|
|
14963
15004
|
get: function get() {
|
|
14964
|
-
var
|
|
14965
|
-
return ((
|
|
15005
|
+
var _classPrivateFieldGet29;
|
|
15006
|
+
return ((_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === "ended";
|
|
14966
15007
|
}
|
|
14967
15008
|
/**
|
|
14968
15009
|
* Returns the current end video behavior value
|
|
@@ -14975,11 +15016,11 @@ var init_wistia_player = __esm({
|
|
|
14975
15016
|
},
|
|
14976
15017
|
set: function set(behavior) {
|
|
14977
15018
|
if (behavior === "loop") {
|
|
14978
|
-
var
|
|
14979
|
-
(
|
|
15019
|
+
var _classPrivateFieldGet30;
|
|
15020
|
+
(_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.addLoopBehavior();
|
|
14980
15021
|
} else {
|
|
14981
|
-
var
|
|
14982
|
-
(
|
|
15022
|
+
var _classPrivateFieldGet31;
|
|
15023
|
+
(_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.removeLoopBehavior();
|
|
14983
15024
|
}
|
|
14984
15025
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "endVideoBehavior", behavior);
|
|
14985
15026
|
}
|
|
@@ -14990,8 +15031,8 @@ var init_wistia_player = __esm({
|
|
|
14990
15031
|
}, {
|
|
14991
15032
|
key: "eventKey",
|
|
14992
15033
|
get: function get() {
|
|
14993
|
-
var
|
|
14994
|
-
return (
|
|
15034
|
+
var _classPrivateFieldGet32;
|
|
15035
|
+
return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.eventKey();
|
|
14995
15036
|
}
|
|
14996
15037
|
/**
|
|
14997
15038
|
* Returns how the video should be sized within its container.
|
|
@@ -15015,8 +15056,8 @@ var init_wistia_player = __esm({
|
|
|
15015
15056
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "fullscreenControl");
|
|
15016
15057
|
},
|
|
15017
15058
|
set: function set(shouldDisplay) {
|
|
15018
|
-
var
|
|
15019
|
-
(
|
|
15059
|
+
var _classPrivateFieldGet33;
|
|
15060
|
+
(_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.fullscreenControlEnabled(shouldDisplay);
|
|
15020
15061
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "fullscreenControl", shouldDisplay);
|
|
15021
15062
|
}
|
|
15022
15063
|
/**
|
|
@@ -15039,14 +15080,14 @@ var init_wistia_player = __esm({
|
|
|
15039
15080
|
}, {
|
|
15040
15081
|
key: "inFullscreen",
|
|
15041
15082
|
get: function get() {
|
|
15042
|
-
var
|
|
15043
|
-
return (
|
|
15083
|
+
var _classPrivateFieldGet34, _classPrivateFieldGet35;
|
|
15084
|
+
return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.inFullscreen()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
|
|
15044
15085
|
}
|
|
15045
15086
|
}, {
|
|
15046
15087
|
key: "inputContext",
|
|
15047
15088
|
get: function get() {
|
|
15048
|
-
var
|
|
15049
|
-
return (
|
|
15089
|
+
var _classPrivateFieldGet36;
|
|
15090
|
+
return (_classPrivateFieldGet36 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.getInputContext();
|
|
15050
15091
|
}
|
|
15051
15092
|
/**
|
|
15052
15093
|
* Returns whether instantHLS is enabled for the video.
|
|
@@ -15055,26 +15096,26 @@ var init_wistia_player = __esm({
|
|
|
15055
15096
|
}, {
|
|
15056
15097
|
key: "instantHls",
|
|
15057
15098
|
get: function get() {
|
|
15058
|
-
var
|
|
15059
|
-
return (
|
|
15099
|
+
var _classPrivateFieldGet37, _classPrivateFieldGet38;
|
|
15100
|
+
return (_classPrivateFieldGet37 = (_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.isInstantHls()) !== null && _classPrivateFieldGet37 !== void 0 ? _classPrivateFieldGet37 : false;
|
|
15060
15101
|
}
|
|
15061
15102
|
// the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
|
|
15062
15103
|
// eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
|
|
15063
15104
|
}, {
|
|
15064
15105
|
key: "language",
|
|
15065
15106
|
get: function get() {
|
|
15066
|
-
var
|
|
15067
|
-
return (
|
|
15107
|
+
var _classPrivateFieldGet39, _classPrivateFieldGet40;
|
|
15108
|
+
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);
|
|
15068
15109
|
},
|
|
15069
15110
|
set: function set(language) {
|
|
15070
|
-
var
|
|
15071
|
-
(
|
|
15111
|
+
var _classPrivateFieldGet41;
|
|
15112
|
+
(_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.language(language);
|
|
15072
15113
|
}
|
|
15073
15114
|
}, {
|
|
15074
15115
|
key: "languages",
|
|
15075
15116
|
get: function get() {
|
|
15076
|
-
var
|
|
15077
|
-
return (
|
|
15117
|
+
var _classPrivateFieldGet42, _classPrivateFieldGet43;
|
|
15118
|
+
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)];
|
|
15078
15119
|
}
|
|
15079
15120
|
/**
|
|
15080
15121
|
* Returns all the mediaData set on the WistiaPlayer
|
|
@@ -15110,8 +15151,8 @@ var init_wistia_player = __esm({
|
|
|
15110
15151
|
}, {
|
|
15111
15152
|
key: "mediaLanguage",
|
|
15112
15153
|
get: function get() {
|
|
15113
|
-
var
|
|
15114
|
-
return (
|
|
15154
|
+
var _classPrivateFieldGet44, _classPrivateFieldGet45;
|
|
15155
|
+
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);
|
|
15115
15156
|
}
|
|
15116
15157
|
/**
|
|
15117
15158
|
* Changes the language of the media stream/content.
|
|
@@ -15121,18 +15162,18 @@ var init_wistia_player = __esm({
|
|
|
15121
15162
|
}, {
|
|
15122
15163
|
key: "mediaLanguageCode",
|
|
15123
15164
|
get: function get() {
|
|
15124
|
-
var
|
|
15125
|
-
return (
|
|
15165
|
+
var _classPrivateFieldGet46, _classPrivateFieldGet47;
|
|
15166
|
+
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;
|
|
15126
15167
|
},
|
|
15127
15168
|
set: function set(languageCode) {
|
|
15128
|
-
var
|
|
15129
|
-
(
|
|
15169
|
+
var _classPrivateFieldGet48;
|
|
15170
|
+
(_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.mediaLanguageCode(languageCode);
|
|
15130
15171
|
}
|
|
15131
15172
|
}, {
|
|
15132
15173
|
key: "mediaLanguages",
|
|
15133
15174
|
get: function get() {
|
|
15134
|
-
var
|
|
15135
|
-
return (
|
|
15175
|
+
var _classPrivateFieldGet49, _classPrivateFieldGet50;
|
|
15176
|
+
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)];
|
|
15136
15177
|
}
|
|
15137
15178
|
/**
|
|
15138
15179
|
* Returns if player is currently muted
|
|
@@ -15141,8 +15182,8 @@ var init_wistia_player = __esm({
|
|
|
15141
15182
|
}, {
|
|
15142
15183
|
key: "muted",
|
|
15143
15184
|
get: function get() {
|
|
15144
|
-
var
|
|
15145
|
-
return (
|
|
15185
|
+
var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52;
|
|
15186
|
+
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;
|
|
15146
15187
|
},
|
|
15147
15188
|
set: function set(shouldMute) {
|
|
15148
15189
|
if (_classPrivateFieldGet(_impl, this)) {
|
|
@@ -15162,8 +15203,8 @@ var init_wistia_player = __esm({
|
|
|
15162
15203
|
}, {
|
|
15163
15204
|
key: "name",
|
|
15164
15205
|
get: function get() {
|
|
15165
|
-
var
|
|
15166
|
-
return (
|
|
15206
|
+
var _ref9, _classPrivateFieldGet53, _classPrivateFieldGet54, _classPrivateFieldGet55;
|
|
15207
|
+
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 : void 0;
|
|
15167
15208
|
}
|
|
15168
15209
|
/**
|
|
15169
15210
|
* Returns the status of the opaqueControls embed option, which determines
|
|
@@ -15177,9 +15218,9 @@ var init_wistia_player = __esm({
|
|
|
15177
15218
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "opaqueControls");
|
|
15178
15219
|
},
|
|
15179
15220
|
set: function set(opaqueControls) {
|
|
15180
|
-
var
|
|
15221
|
+
var _classPrivateFieldGet56;
|
|
15181
15222
|
var valueAsBoolean = Boolean(opaqueControls);
|
|
15182
|
-
(
|
|
15223
|
+
(_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.opaqueControls(valueAsBoolean);
|
|
15183
15224
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "opaqueControls", valueAsBoolean);
|
|
15184
15225
|
}
|
|
15185
15226
|
}, {
|
|
@@ -15197,8 +15238,8 @@ var init_wistia_player = __esm({
|
|
|
15197
15238
|
}, {
|
|
15198
15239
|
key: "paused",
|
|
15199
15240
|
get: function get() {
|
|
15200
|
-
var
|
|
15201
|
-
return ((
|
|
15241
|
+
var _classPrivateFieldGet57;
|
|
15242
|
+
return ((_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.state()) === "paused";
|
|
15202
15243
|
}
|
|
15203
15244
|
/**
|
|
15204
15245
|
* Returns the percent of the video that has been watched as a decimal between 0 and 1.
|
|
@@ -15207,8 +15248,8 @@ var init_wistia_player = __esm({
|
|
|
15207
15248
|
}, {
|
|
15208
15249
|
key: "percentWatched",
|
|
15209
15250
|
get: function get() {
|
|
15210
|
-
var
|
|
15211
|
-
return (
|
|
15251
|
+
var _classPrivateFieldGet58, _classPrivateFieldGet59;
|
|
15252
|
+
return (_classPrivateFieldGet58 = (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.percentWatched()) !== null && _classPrivateFieldGet58 !== void 0 ? _classPrivateFieldGet58 : 0;
|
|
15212
15253
|
}
|
|
15213
15254
|
/**
|
|
15214
15255
|
* Returns the playback rate of the video.
|
|
@@ -15217,12 +15258,12 @@ var init_wistia_player = __esm({
|
|
|
15217
15258
|
}, {
|
|
15218
15259
|
key: "playbackRate",
|
|
15219
15260
|
get: function get() {
|
|
15220
|
-
var
|
|
15221
|
-
return (
|
|
15261
|
+
var _ref0, _classPrivateFieldGet60, _classPrivateFieldGet61;
|
|
15262
|
+
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;
|
|
15222
15263
|
},
|
|
15223
15264
|
set: function set(rate) {
|
|
15224
|
-
var
|
|
15225
|
-
(
|
|
15265
|
+
var _classPrivateFieldGet62;
|
|
15266
|
+
(_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbackRate(rate);
|
|
15226
15267
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
|
|
15227
15268
|
}
|
|
15228
15269
|
/**
|
|
@@ -15235,8 +15276,8 @@ var init_wistia_player = __esm({
|
|
|
15235
15276
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
|
|
15236
15277
|
},
|
|
15237
15278
|
set: function set(shouldDisplay) {
|
|
15238
|
-
var
|
|
15239
|
-
(
|
|
15279
|
+
var _classPrivateFieldGet63;
|
|
15280
|
+
(_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
|
|
15240
15281
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
|
|
15241
15282
|
}
|
|
15242
15283
|
/**
|
|
@@ -15249,8 +15290,8 @@ var init_wistia_player = __esm({
|
|
|
15249
15290
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
|
|
15250
15291
|
},
|
|
15251
15292
|
set: function set(shouldDisplay) {
|
|
15252
|
-
var
|
|
15253
|
-
(
|
|
15293
|
+
var _classPrivateFieldGet64;
|
|
15294
|
+
(_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playbarControlEnabled(shouldDisplay);
|
|
15254
15295
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
|
|
15255
15296
|
}
|
|
15256
15297
|
/**
|
|
@@ -15263,8 +15304,8 @@ var init_wistia_player = __esm({
|
|
|
15263
15304
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
|
|
15264
15305
|
},
|
|
15265
15306
|
set: function set(radius) {
|
|
15266
|
-
var
|
|
15267
|
-
(
|
|
15307
|
+
var _classPrivateFieldGet65;
|
|
15308
|
+
(_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setPlayerBorderRadius(Number(radius));
|
|
15268
15309
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", Number(radius));
|
|
15269
15310
|
}
|
|
15270
15311
|
/**
|
|
@@ -15282,8 +15323,8 @@ var init_wistia_player = __esm({
|
|
|
15282
15323
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
|
|
15283
15324
|
},
|
|
15284
15325
|
set: function set(newColor) {
|
|
15285
|
-
var
|
|
15286
|
-
(
|
|
15326
|
+
var _classPrivateFieldGet66;
|
|
15327
|
+
(_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
|
|
15287
15328
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
|
|
15288
15329
|
}
|
|
15289
15330
|
/**
|
|
@@ -15300,11 +15341,11 @@ var init_wistia_player = __esm({
|
|
|
15300
15341
|
return void 0;
|
|
15301
15342
|
},
|
|
15302
15343
|
set: function set(gradient) {
|
|
15303
|
-
var
|
|
15344
|
+
var _classPrivateFieldGet67;
|
|
15304
15345
|
if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__.b)(gradient)) {
|
|
15305
15346
|
throw new Error("playerColorGradient must be a valid gradient object");
|
|
15306
15347
|
}
|
|
15307
|
-
(
|
|
15348
|
+
(_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playerColorGradient(gradient);
|
|
15308
15349
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
|
|
15309
15350
|
}
|
|
15310
15351
|
/**
|
|
@@ -15317,8 +15358,8 @@ var init_wistia_player = __esm({
|
|
|
15317
15358
|
}, {
|
|
15318
15359
|
key: "playerForce",
|
|
15319
15360
|
get: function get() {
|
|
15320
|
-
var
|
|
15321
|
-
return (
|
|
15361
|
+
var _ref1;
|
|
15362
|
+
return (_ref1 = this.getAttribute("player-force")) !== null && _ref1 !== void 0 ? _ref1 : void 0;
|
|
15322
15363
|
},
|
|
15323
15364
|
set: function set(newPlayer) {
|
|
15324
15365
|
_classPrivateFieldGet(_logger, this).info("set playerForce", newPlayer);
|
|
@@ -15362,8 +15403,8 @@ var init_wistia_player = __esm({
|
|
|
15362
15403
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
|
|
15363
15404
|
},
|
|
15364
15405
|
set: function set(shouldDisplay) {
|
|
15365
|
-
var
|
|
15366
|
-
(
|
|
15406
|
+
var _classPrivateFieldGet68;
|
|
15407
|
+
(_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
|
|
15367
15408
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
|
|
15368
15409
|
}
|
|
15369
15410
|
/**
|
|
@@ -15378,8 +15419,8 @@ var init_wistia_player = __esm({
|
|
|
15378
15419
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
|
|
15379
15420
|
},
|
|
15380
15421
|
set: function set(shouldDisplay) {
|
|
15381
|
-
var
|
|
15382
|
-
(
|
|
15422
|
+
var _classPrivateFieldGet69;
|
|
15423
|
+
(_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playPauseNotifierEnabled(shouldDisplay);
|
|
15383
15424
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
|
|
15384
15425
|
}
|
|
15385
15426
|
/**
|
|
@@ -15599,8 +15640,8 @@ var init_wistia_player = __esm({
|
|
|
15599
15640
|
}, {
|
|
15600
15641
|
key: "preload",
|
|
15601
15642
|
get: function get() {
|
|
15602
|
-
var
|
|
15603
|
-
return (
|
|
15643
|
+
var _ref10, _classPrivateFieldGet70, _classPrivateFieldGet71;
|
|
15644
|
+
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";
|
|
15604
15645
|
},
|
|
15605
15646
|
set: function set(preloadValue) {
|
|
15606
15647
|
var prevVal = this.preload;
|
|
@@ -15620,8 +15661,8 @@ var init_wistia_player = __esm({
|
|
|
15620
15661
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
|
|
15621
15662
|
},
|
|
15622
15663
|
set: function set(shouldDisplay) {
|
|
15623
|
-
var
|
|
15624
|
-
(
|
|
15664
|
+
var _classPrivateFieldGet72;
|
|
15665
|
+
(_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.qualityControlEnabled(shouldDisplay);
|
|
15625
15666
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
|
|
15626
15667
|
}
|
|
15627
15668
|
/**
|
|
@@ -15634,8 +15675,8 @@ var init_wistia_player = __esm({
|
|
|
15634
15675
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
|
|
15635
15676
|
},
|
|
15636
15677
|
set: function set(quality) {
|
|
15637
|
-
var
|
|
15638
|
-
(
|
|
15678
|
+
var _classPrivateFieldGet73;
|
|
15679
|
+
(_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.qualityMax(quality);
|
|
15639
15680
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
|
|
15640
15681
|
}
|
|
15641
15682
|
/**
|
|
@@ -15648,8 +15689,8 @@ var init_wistia_player = __esm({
|
|
|
15648
15689
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
|
|
15649
15690
|
},
|
|
15650
15691
|
set: function set(quality) {
|
|
15651
|
-
var
|
|
15652
|
-
(
|
|
15692
|
+
var _classPrivateFieldGet74;
|
|
15693
|
+
(_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.qualityMin(quality);
|
|
15653
15694
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
|
|
15654
15695
|
}
|
|
15655
15696
|
/**
|
|
@@ -15659,8 +15700,8 @@ var init_wistia_player = __esm({
|
|
|
15659
15700
|
}, {
|
|
15660
15701
|
key: "readyState",
|
|
15661
15702
|
get: function get() {
|
|
15662
|
-
var
|
|
15663
|
-
return (
|
|
15703
|
+
var _classPrivateFieldGet75, _classPrivateFieldGet76;
|
|
15704
|
+
return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.getReadyState()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
|
|
15664
15705
|
}
|
|
15665
15706
|
/**
|
|
15666
15707
|
* Returns the current resumable status of the video.
|
|
@@ -15673,8 +15714,8 @@ var init_wistia_player = __esm({
|
|
|
15673
15714
|
return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable")) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : "auto";
|
|
15674
15715
|
},
|
|
15675
15716
|
set: function set(resumableState) {
|
|
15676
|
-
var
|
|
15677
|
-
(
|
|
15717
|
+
var _classPrivateFieldGet77;
|
|
15718
|
+
(_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
|
|
15678
15719
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
|
|
15679
15720
|
}
|
|
15680
15721
|
/**
|
|
@@ -15687,8 +15728,8 @@ var init_wistia_player = __esm({
|
|
|
15687
15728
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
|
|
15688
15729
|
},
|
|
15689
15730
|
set: function set(radius) {
|
|
15690
|
-
var
|
|
15691
|
-
(
|
|
15731
|
+
var _classPrivateFieldGet78;
|
|
15732
|
+
(_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
|
|
15692
15733
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
|
|
15693
15734
|
}
|
|
15694
15735
|
/**
|
|
@@ -15699,8 +15740,8 @@ var init_wistia_player = __esm({
|
|
|
15699
15740
|
}, {
|
|
15700
15741
|
key: "secondsWatched",
|
|
15701
15742
|
get: function get() {
|
|
15702
|
-
var
|
|
15703
|
-
return (
|
|
15743
|
+
var _classPrivateFieldGet79, _classPrivateFieldGet80;
|
|
15744
|
+
return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
|
|
15704
15745
|
}
|
|
15705
15746
|
/**
|
|
15706
15747
|
* Returns an array where each index represents the number of times the viewer has watched each second of the video.
|
|
@@ -15709,8 +15750,8 @@ var init_wistia_player = __esm({
|
|
|
15709
15750
|
}, {
|
|
15710
15751
|
key: "secondsWatchedVector",
|
|
15711
15752
|
get: function get() {
|
|
15712
|
-
var
|
|
15713
|
-
return (
|
|
15753
|
+
var _classPrivateFieldGet81, _classPrivateFieldGet82;
|
|
15754
|
+
return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
|
|
15714
15755
|
}
|
|
15715
15756
|
/**
|
|
15716
15757
|
* Returns whether JSON+LD seo data will be injected.
|
|
@@ -15734,8 +15775,8 @@ var init_wistia_player = __esm({
|
|
|
15734
15775
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
|
|
15735
15776
|
},
|
|
15736
15777
|
set: function set(shouldDisplay) {
|
|
15737
|
-
var
|
|
15738
|
-
(
|
|
15778
|
+
var _classPrivateFieldGet83;
|
|
15779
|
+
(_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
|
|
15739
15780
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
|
|
15740
15781
|
}
|
|
15741
15782
|
/**
|
|
@@ -15757,10 +15798,10 @@ var init_wistia_player = __esm({
|
|
|
15757
15798
|
}, {
|
|
15758
15799
|
key: "sourceLanguage",
|
|
15759
15800
|
get: function get() {
|
|
15760
|
-
var
|
|
15761
|
-
return (
|
|
15801
|
+
var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
|
|
15802
|
+
return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function(loc) {
|
|
15762
15803
|
return loc.isOriginal;
|
|
15763
|
-
})) !== null &&
|
|
15804
|
+
})) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
|
|
15764
15805
|
}
|
|
15765
15806
|
/**
|
|
15766
15807
|
* Returns the source media id for the player. If a player has different localized versions,
|
|
@@ -15780,8 +15821,8 @@ var init_wistia_player = __esm({
|
|
|
15780
15821
|
}, {
|
|
15781
15822
|
key: "state",
|
|
15782
15823
|
get: function get() {
|
|
15783
|
-
var
|
|
15784
|
-
return (
|
|
15824
|
+
var _classPrivateFieldGet87, _classPrivateFieldGet88;
|
|
15825
|
+
return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
|
|
15785
15826
|
}
|
|
15786
15827
|
/**
|
|
15787
15828
|
* Returns the stats url for the player.
|
|
@@ -15863,12 +15904,12 @@ var init_wistia_player = __esm({
|
|
|
15863
15904
|
}, {
|
|
15864
15905
|
key: "videoQuality",
|
|
15865
15906
|
get: function get() {
|
|
15866
|
-
var
|
|
15867
|
-
return (
|
|
15907
|
+
var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
|
|
15908
|
+
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";
|
|
15868
15909
|
},
|
|
15869
15910
|
set: function set(quality) {
|
|
15870
|
-
var
|
|
15871
|
-
(
|
|
15911
|
+
var _classPrivateFieldGet91;
|
|
15912
|
+
(_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
|
|
15872
15913
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
|
|
15873
15914
|
}
|
|
15874
15915
|
/**
|
|
@@ -15891,8 +15932,8 @@ var init_wistia_player = __esm({
|
|
|
15891
15932
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
|
|
15892
15933
|
},
|
|
15893
15934
|
set: function set(level) {
|
|
15894
|
-
var
|
|
15895
|
-
(
|
|
15935
|
+
var _classPrivateFieldGet92;
|
|
15936
|
+
(_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
|
|
15896
15937
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
|
|
15897
15938
|
}
|
|
15898
15939
|
/**
|
|
@@ -15907,8 +15948,8 @@ var init_wistia_player = __esm({
|
|
|
15907
15948
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
|
|
15908
15949
|
},
|
|
15909
15950
|
set: function set(shouldDisplay) {
|
|
15910
|
-
var
|
|
15911
|
-
(
|
|
15951
|
+
var _classPrivateFieldGet93;
|
|
15952
|
+
(_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
|
|
15912
15953
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
|
|
15913
15954
|
}
|
|
15914
15955
|
/**
|
|
@@ -15954,11 +15995,11 @@ var init_wistia_player = __esm({
|
|
|
15954
15995
|
key: "cancelFullscreen",
|
|
15955
15996
|
value: (function() {
|
|
15956
15997
|
var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
|
|
15957
|
-
var
|
|
15998
|
+
var _classPrivateFieldGet94, _this3 = this;
|
|
15958
15999
|
return _regenerator().w(function(_context) {
|
|
15959
16000
|
while (1) switch (_context.n) {
|
|
15960
16001
|
case 0:
|
|
15961
|
-
return _context.a(2, (
|
|
16002
|
+
return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function() {
|
|
15962
16003
|
_this3._fullscreenState.heightBeforeFullscreen = void 0;
|
|
15963
16004
|
_this3._fullscreenState.widthBeforeFullscreen = void 0;
|
|
15964
16005
|
}));
|
|
@@ -15974,11 +16015,11 @@ var init_wistia_player = __esm({
|
|
|
15974
16015
|
key: "createOverlay",
|
|
15975
16016
|
value: (function() {
|
|
15976
16017
|
var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
|
|
15977
|
-
var
|
|
16018
|
+
var _classPrivateFieldGet95;
|
|
15978
16019
|
return _regenerator().w(function(_context2) {
|
|
15979
16020
|
while (1) switch (_context2.n) {
|
|
15980
16021
|
case 0:
|
|
15981
|
-
if (!((
|
|
16022
|
+
if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
|
|
15982
16023
|
_context2.n = 1;
|
|
15983
16024
|
break;
|
|
15984
16025
|
}
|
|
@@ -16003,17 +16044,17 @@ var init_wistia_player = __esm({
|
|
|
16003
16044
|
while (1) switch (_context5.n) {
|
|
16004
16045
|
case 0:
|
|
16005
16046
|
addPlugin = /* @__PURE__ */ (function() {
|
|
16006
|
-
var
|
|
16007
|
-
var
|
|
16047
|
+
var _ref12 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
|
|
16048
|
+
var _classPrivateFieldGet96, _classPrivateFieldGet97;
|
|
16008
16049
|
return _regenerator().w(function(_context3) {
|
|
16009
16050
|
while (1) switch (_context3.n) {
|
|
16010
16051
|
case 0:
|
|
16011
|
-
return _context3.a(2, (
|
|
16052
|
+
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"))));
|
|
16012
16053
|
}
|
|
16013
16054
|
}, _callee3);
|
|
16014
16055
|
}));
|
|
16015
16056
|
return function addPlugin2() {
|
|
16016
|
-
return
|
|
16057
|
+
return _ref12.apply(this, arguments);
|
|
16017
16058
|
};
|
|
16018
16059
|
})();
|
|
16019
16060
|
if (!_classPrivateFieldGet(_api, this)) {
|
|
@@ -16053,11 +16094,11 @@ var init_wistia_player = __esm({
|
|
|
16053
16094
|
key: "deleteOverlay",
|
|
16054
16095
|
value: (function() {
|
|
16055
16096
|
var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
|
|
16056
|
-
var
|
|
16097
|
+
var _classPrivateFieldGet98;
|
|
16057
16098
|
return _regenerator().w(function(_context6) {
|
|
16058
16099
|
while (1) switch (_context6.n) {
|
|
16059
16100
|
case 0:
|
|
16060
|
-
if (!((
|
|
16101
|
+
if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
|
|
16061
16102
|
_context6.n = 1;
|
|
16062
16103
|
break;
|
|
16063
16104
|
}
|
|
@@ -16076,11 +16117,11 @@ var init_wistia_player = __esm({
|
|
|
16076
16117
|
key: "disableControl",
|
|
16077
16118
|
value: (function() {
|
|
16078
16119
|
var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
|
|
16079
|
-
var
|
|
16120
|
+
var _classPrivateFieldGet99;
|
|
16080
16121
|
return _regenerator().w(function(_context7) {
|
|
16081
16122
|
while (1) switch (_context7.n) {
|
|
16082
16123
|
case 0:
|
|
16083
|
-
if (!((
|
|
16124
|
+
if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
|
|
16084
16125
|
_context7.n = 1;
|
|
16085
16126
|
break;
|
|
16086
16127
|
}
|
|
@@ -16099,11 +16140,11 @@ var init_wistia_player = __esm({
|
|
|
16099
16140
|
key: "enableControl",
|
|
16100
16141
|
value: (function() {
|
|
16101
16142
|
var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
|
|
16102
|
-
var
|
|
16143
|
+
var _classPrivateFieldGet100;
|
|
16103
16144
|
return _regenerator().w(function(_context8) {
|
|
16104
16145
|
while (1) switch (_context8.n) {
|
|
16105
16146
|
case 0:
|
|
16106
|
-
if (!((
|
|
16147
|
+
if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
|
|
16107
16148
|
_context8.n = 1;
|
|
16108
16149
|
break;
|
|
16109
16150
|
}
|
|
@@ -16122,16 +16163,16 @@ var init_wistia_player = __esm({
|
|
|
16122
16163
|
key: "enterInputContext",
|
|
16123
16164
|
value: (function() {
|
|
16124
16165
|
var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
|
|
16125
|
-
var
|
|
16166
|
+
var _classPrivateFieldGet101, _this5 = this;
|
|
16126
16167
|
return _regenerator().w(function(_context9) {
|
|
16127
16168
|
while (1) switch (_context9.n) {
|
|
16128
16169
|
case 0:
|
|
16129
|
-
if (!((
|
|
16170
|
+
if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
|
|
16130
16171
|
_context9.n = 1;
|
|
16131
16172
|
break;
|
|
16132
16173
|
}
|
|
16133
16174
|
return _context9.a(2, new Promise(function(resolve) {
|
|
16134
|
-
var
|
|
16175
|
+
var _classPrivateFieldGet102;
|
|
16135
16176
|
var _handler = function handler(event) {
|
|
16136
16177
|
var detail = event.detail;
|
|
16137
16178
|
if (detail.context === context) {
|
|
@@ -16140,7 +16181,7 @@ var init_wistia_player = __esm({
|
|
|
16140
16181
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
|
|
16141
16182
|
};
|
|
16142
16183
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
|
|
16143
|
-
(
|
|
16184
|
+
(_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
|
|
16144
16185
|
}));
|
|
16145
16186
|
case 1:
|
|
16146
16187
|
return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
|
|
@@ -16156,11 +16197,11 @@ var init_wistia_player = __esm({
|
|
|
16156
16197
|
key: "exitInputContext",
|
|
16157
16198
|
value: (function() {
|
|
16158
16199
|
var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
|
|
16159
|
-
var
|
|
16200
|
+
var _classPrivateFieldGet103;
|
|
16160
16201
|
return _regenerator().w(function(_context0) {
|
|
16161
16202
|
while (1) switch (_context0.n) {
|
|
16162
16203
|
case 0:
|
|
16163
|
-
if (!((
|
|
16204
|
+
if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
|
|
16164
16205
|
_context0.n = 1;
|
|
16165
16206
|
break;
|
|
16166
16207
|
}
|
|
@@ -16207,8 +16248,8 @@ var init_wistia_player = __esm({
|
|
|
16207
16248
|
while (1) switch (_context10.n) {
|
|
16208
16249
|
case 0:
|
|
16209
16250
|
return _context10.a(2, new Promise(function(resolve, reject) {
|
|
16210
|
-
var
|
|
16211
|
-
if ((
|
|
16251
|
+
var _classPrivateFieldGet104;
|
|
16252
|
+
if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
|
|
16212
16253
|
resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
|
|
16213
16254
|
}
|
|
16214
16255
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -16225,7 +16266,7 @@ var init_wistia_player = __esm({
|
|
|
16225
16266
|
key: "getRemapTime",
|
|
16226
16267
|
value: (function() {
|
|
16227
16268
|
var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
|
|
16228
|
-
var
|
|
16269
|
+
var _classPrivateFieldGet105, _this7 = this;
|
|
16229
16270
|
var _t, _t2, _t3;
|
|
16230
16271
|
return _regenerator().w(function(_context11) {
|
|
16231
16272
|
while (1) switch (_context11.n) {
|
|
@@ -16245,11 +16286,11 @@ var init_wistia_player = __esm({
|
|
|
16245
16286
|
});
|
|
16246
16287
|
return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
|
|
16247
16288
|
case 2:
|
|
16248
|
-
if (!((
|
|
16289
|
+
if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
|
|
16249
16290
|
_context11.n = 3;
|
|
16250
16291
|
break;
|
|
16251
16292
|
}
|
|
16252
|
-
|
|
16293
|
+
_classPrivateFieldGet105;
|
|
16253
16294
|
_context11.n = 5;
|
|
16254
16295
|
break;
|
|
16255
16296
|
case 3:
|
|
@@ -16257,8 +16298,8 @@ var init_wistia_player = __esm({
|
|
|
16257
16298
|
_t2 = _cachedRemapTime;
|
|
16258
16299
|
_t3 = this;
|
|
16259
16300
|
_context11.n = 4;
|
|
16260
|
-
return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(
|
|
16261
|
-
var remapTime =
|
|
16301
|
+
return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref14) {
|
|
16302
|
+
var remapTime = _ref14.remapTime;
|
|
16262
16303
|
return function(fromLanguage, toLanguage, fromTime) {
|
|
16263
16304
|
var fromTimeInMilliseconds = fromTime * 1e3;
|
|
16264
16305
|
var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
|
|
@@ -16286,11 +16327,11 @@ var init_wistia_player = __esm({
|
|
|
16286
16327
|
key: "hideOverlay",
|
|
16287
16328
|
value: (function() {
|
|
16288
16329
|
var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
|
|
16289
|
-
var
|
|
16330
|
+
var _classPrivateFieldGet106;
|
|
16290
16331
|
return _regenerator().w(function(_context12) {
|
|
16291
16332
|
while (1) switch (_context12.n) {
|
|
16292
16333
|
case 0:
|
|
16293
|
-
if (!((
|
|
16334
|
+
if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
|
|
16294
16335
|
_context12.n = 1;
|
|
16295
16336
|
break;
|
|
16296
16337
|
}
|
|
@@ -16314,8 +16355,8 @@ var init_wistia_player = __esm({
|
|
|
16314
16355
|
while (1) switch (_context13.n) {
|
|
16315
16356
|
case 0:
|
|
16316
16357
|
return _context13.a(2, new Promise(function(resolve, reject) {
|
|
16317
|
-
var
|
|
16318
|
-
if ((
|
|
16358
|
+
var _classPrivateFieldGet107;
|
|
16359
|
+
if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
|
|
16319
16360
|
_classPrivateFieldGet(_api, _this8).popover.hide();
|
|
16320
16361
|
resolve();
|
|
16321
16362
|
}
|
|
@@ -16332,14 +16373,14 @@ var init_wistia_player = __esm({
|
|
|
16332
16373
|
}, {
|
|
16333
16374
|
key: "languagesToLocalizations",
|
|
16334
16375
|
value: function languagesToLocalizations(languages) {
|
|
16335
|
-
var
|
|
16336
|
-
return (
|
|
16376
|
+
var _classPrivateFieldGet108, _classPrivateFieldGet109;
|
|
16377
|
+
return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
|
|
16337
16378
|
}
|
|
16338
16379
|
}, {
|
|
16339
16380
|
key: "languageToLocalization",
|
|
16340
16381
|
value: function languageToLocalization(language) {
|
|
16341
|
-
var
|
|
16342
|
-
return (
|
|
16382
|
+
var _classPrivateFieldGet110, _classPrivateFieldGet111;
|
|
16383
|
+
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);
|
|
16343
16384
|
}
|
|
16344
16385
|
/**
|
|
16345
16386
|
* Pauses the video.
|
|
@@ -16351,11 +16392,11 @@ var init_wistia_player = __esm({
|
|
|
16351
16392
|
key: "pause",
|
|
16352
16393
|
value: (function() {
|
|
16353
16394
|
var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
|
|
16354
|
-
var
|
|
16395
|
+
var _classPrivateFieldGet112;
|
|
16355
16396
|
return _regenerator().w(function(_context14) {
|
|
16356
16397
|
while (1) switch (_context14.n) {
|
|
16357
16398
|
case 0:
|
|
16358
|
-
return _context14.a(2, (
|
|
16399
|
+
return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
|
|
16359
16400
|
}
|
|
16360
16401
|
}, _callee14, this);
|
|
16361
16402
|
}));
|
|
@@ -16368,11 +16409,11 @@ var init_wistia_player = __esm({
|
|
|
16368
16409
|
key: "play",
|
|
16369
16410
|
value: (function() {
|
|
16370
16411
|
var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
|
|
16371
|
-
var
|
|
16412
|
+
var _classPrivateFieldGet113;
|
|
16372
16413
|
return _regenerator().w(function(_context15) {
|
|
16373
16414
|
while (1) switch (_context15.n) {
|
|
16374
16415
|
case 0:
|
|
16375
|
-
return _context15.a(2, (
|
|
16416
|
+
return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
|
|
16376
16417
|
}
|
|
16377
16418
|
}, _callee15, this);
|
|
16378
16419
|
}));
|
|
@@ -16385,11 +16426,11 @@ var init_wistia_player = __esm({
|
|
|
16385
16426
|
key: "releaseControls",
|
|
16386
16427
|
value: (function() {
|
|
16387
16428
|
var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
|
|
16388
|
-
var
|
|
16429
|
+
var _classPrivateFieldGet114;
|
|
16389
16430
|
return _regenerator().w(function(_context16) {
|
|
16390
16431
|
while (1) switch (_context16.n) {
|
|
16391
16432
|
case 0:
|
|
16392
|
-
return _context16.a(2, (
|
|
16433
|
+
return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
|
|
16393
16434
|
}
|
|
16394
16435
|
}, _callee16, this);
|
|
16395
16436
|
}));
|
|
@@ -16402,10 +16443,10 @@ var init_wistia_player = __esm({
|
|
|
16402
16443
|
key: "removeAllEventListeners",
|
|
16403
16444
|
value: function removeAllEventListeners() {
|
|
16404
16445
|
var _this9 = this;
|
|
16405
|
-
Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(
|
|
16406
|
-
var
|
|
16407
|
-
listeners.forEach(function(
|
|
16408
|
-
var listener =
|
|
16446
|
+
Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref15) {
|
|
16447
|
+
var _ref16 = _slicedToArray(_ref15, 2), type = _ref16[0], listeners = _ref16[1];
|
|
16448
|
+
listeners.forEach(function(_ref17) {
|
|
16449
|
+
var listener = _ref17.listener, options = _ref17.options;
|
|
16409
16450
|
_this9.removeEventListener(type, listener, options);
|
|
16410
16451
|
});
|
|
16411
16452
|
});
|
|
@@ -16450,7 +16491,7 @@ var init_wistia_player = __esm({
|
|
|
16450
16491
|
case 0:
|
|
16451
16492
|
options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
|
|
16452
16493
|
return _context17.a(2, new Promise(function(resolve, reject) {
|
|
16453
|
-
var
|
|
16494
|
+
var _classPrivateFieldGet115;
|
|
16454
16495
|
if (!_classPrivateFieldGet(_api, _this0)) {
|
|
16455
16496
|
reject(new Error("api not ready to replace"));
|
|
16456
16497
|
}
|
|
@@ -16460,7 +16501,7 @@ var init_wistia_player = __esm({
|
|
|
16460
16501
|
resolve();
|
|
16461
16502
|
};
|
|
16462
16503
|
_this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
|
|
16463
|
-
(
|
|
16504
|
+
(_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
|
|
16464
16505
|
}));
|
|
16465
16506
|
}
|
|
16466
16507
|
}, _callee17);
|
|
@@ -16474,11 +16515,11 @@ var init_wistia_player = __esm({
|
|
|
16474
16515
|
key: "requestControls",
|
|
16475
16516
|
value: (function() {
|
|
16476
16517
|
var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
|
|
16477
|
-
var
|
|
16518
|
+
var _classPrivateFieldGet116;
|
|
16478
16519
|
return _regenerator().w(function(_context18) {
|
|
16479
16520
|
while (1) switch (_context18.n) {
|
|
16480
16521
|
case 0:
|
|
16481
|
-
return _context18.a(2, (
|
|
16522
|
+
return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
|
|
16482
16523
|
}
|
|
16483
16524
|
}, _callee18, this);
|
|
16484
16525
|
}));
|
|
@@ -16491,11 +16532,11 @@ var init_wistia_player = __esm({
|
|
|
16491
16532
|
key: "requestFullscreen",
|
|
16492
16533
|
value: (function() {
|
|
16493
16534
|
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
|
|
16494
|
-
var
|
|
16535
|
+
var _classPrivateFieldGet117;
|
|
16495
16536
|
return _regenerator().w(function(_context19) {
|
|
16496
16537
|
while (1) switch (_context19.n) {
|
|
16497
16538
|
case 0:
|
|
16498
|
-
if (!((
|
|
16539
|
+
if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
|
|
16499
16540
|
_context19.n = 1;
|
|
16500
16541
|
break;
|
|
16501
16542
|
}
|
|
@@ -16514,11 +16555,11 @@ var init_wistia_player = __esm({
|
|
|
16514
16555
|
key: "showOverlay",
|
|
16515
16556
|
value: (function() {
|
|
16516
16557
|
var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
|
|
16517
|
-
var
|
|
16558
|
+
var _classPrivateFieldGet118;
|
|
16518
16559
|
return _regenerator().w(function(_context20) {
|
|
16519
16560
|
while (1) switch (_context20.n) {
|
|
16520
16561
|
case 0:
|
|
16521
|
-
if (!((
|
|
16562
|
+
if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
|
|
16522
16563
|
_context20.n = 1;
|
|
16523
16564
|
break;
|
|
16524
16565
|
}
|
|
@@ -16542,8 +16583,8 @@ var init_wistia_player = __esm({
|
|
|
16542
16583
|
while (1) switch (_context21.n) {
|
|
16543
16584
|
case 0:
|
|
16544
16585
|
return _context21.a(2, new Promise(function(resolve, reject) {
|
|
16545
|
-
var
|
|
16546
|
-
if ((
|
|
16586
|
+
var _classPrivateFieldGet119;
|
|
16587
|
+
if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
|
|
16547
16588
|
_classPrivateFieldGet(_api, _this1).popover.show();
|
|
16548
16589
|
resolve();
|
|
16549
16590
|
}
|
|
@@ -16767,7 +16808,7 @@ var init_wistia_player = __esm({
|
|
|
16767
16808
|
}, {
|
|
16768
16809
|
key: "disconnectedCallback",
|
|
16769
16810
|
value: function disconnectedCallback() {
|
|
16770
|
-
var
|
|
16811
|
+
var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
|
|
16771
16812
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
|
|
16772
16813
|
return removeListener();
|
|
16773
16814
|
});
|
|
@@ -16775,10 +16816,10 @@ var init_wistia_player = __esm({
|
|
|
16775
16816
|
_classPrivateFieldSet(_eventListeners, this, {});
|
|
16776
16817
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
16777
16818
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
|
|
16778
|
-
(
|
|
16819
|
+
(_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
|
|
16779
16820
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
16780
16821
|
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
16781
|
-
(
|
|
16822
|
+
(_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
|
|
16782
16823
|
_classPrivateFieldSet(_api, this, null);
|
|
16783
16824
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
16784
16825
|
_classPrivateFieldSet(_preactRoot, this, null);
|
|
@@ -16797,7 +16838,7 @@ var init_wistia_player = __esm({
|
|
|
16797
16838
|
})(/* @__PURE__ */ _wrapNativeSuper(HTMLElement));
|
|
16798
16839
|
_WistiaPlayer = WistiaPlayer;
|
|
16799
16840
|
getSwatchMetaData2 = /* @__PURE__ */ (function() {
|
|
16800
|
-
var
|
|
16841
|
+
var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
|
|
16801
16842
|
var swatch;
|
|
16802
16843
|
return _regenerator().w(function(_context25) {
|
|
16803
16844
|
while (1) switch (_context25.n) {
|
|
@@ -16812,11 +16853,11 @@ var init_wistia_player = __esm({
|
|
|
16812
16853
|
}, _callee25);
|
|
16813
16854
|
}));
|
|
16814
16855
|
return function getSwatchMetaData3(_x18) {
|
|
16815
|
-
return
|
|
16856
|
+
return _ref18.apply(this, arguments);
|
|
16816
16857
|
};
|
|
16817
16858
|
})();
|
|
16818
16859
|
wistiaSwatchElement = /* @__PURE__ */ (function() {
|
|
16819
|
-
var
|
|
16860
|
+
var _ref19 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
|
|
16820
16861
|
var swatchUrl2, swatchImg, naturalHeight, naturalWidth, ratio, style;
|
|
16821
16862
|
return _regenerator().w(function(_context26) {
|
|
16822
16863
|
while (1) switch (_context26.n) {
|
|
@@ -16835,7 +16876,7 @@ var init_wistia_player = __esm({
|
|
|
16835
16876
|
}, _callee26);
|
|
16836
16877
|
}));
|
|
16837
16878
|
return function wistiaSwatchElement2(_x19, _x20) {
|
|
16838
|
-
return
|
|
16879
|
+
return _ref19.apply(this, arguments);
|
|
16839
16880
|
};
|
|
16840
16881
|
})();
|
|
16841
16882
|
if (customElements.get("wistia-player") === void 0) {
|