@wistia/wistia-player-react 0.3.10 → 0.3.11
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.
|
@@ -463,11 +463,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
|
|
|
463
463
|
return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
464
464
|
}
|
|
465
465
|
function _findLocalizationByLanguage(language) {
|
|
466
|
-
var
|
|
466
|
+
var _classPrivateFieldGet109;
|
|
467
467
|
if (language == null) {
|
|
468
468
|
return void 0;
|
|
469
469
|
}
|
|
470
|
-
return (
|
|
470
|
+
return (_classPrivateFieldGet109 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.find(function(localization) {
|
|
471
471
|
return localization.ietfLanguageTag === language || localization.iso6392LanguageCode === language;
|
|
472
472
|
});
|
|
473
473
|
}
|
|
@@ -512,8 +512,8 @@ function _initPlayerEmbed(_ref20) {
|
|
|
512
512
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
513
513
|
}
|
|
514
514
|
if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
|
|
515
|
-
var
|
|
516
|
-
(
|
|
515
|
+
var _classPrivateFieldGet110;
|
|
516
|
+
(_classPrivateFieldGet110 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.states.delete("--initializing");
|
|
517
517
|
}
|
|
518
518
|
void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
|
|
519
519
|
container,
|
|
@@ -559,10 +559,10 @@ function _initPublicApi2() {
|
|
|
559
559
|
_this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
|
|
560
560
|
});
|
|
561
561
|
_classPrivateFieldGet(_api, this).ready(function() {
|
|
562
|
-
var
|
|
563
|
-
(
|
|
562
|
+
var _classPrivateFieldGet117, _classPrivateFieldGet118;
|
|
563
|
+
(_classPrivateFieldGet117 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.disconnect();
|
|
564
564
|
_classPrivateFieldSet(_resizeObserver, _this19, null);
|
|
565
|
-
(
|
|
565
|
+
(_classPrivateFieldGet118 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet118 === void 0 ? void 0 : _classPrivateFieldGet118.remove();
|
|
566
566
|
_this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
|
|
567
567
|
_this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
|
|
568
568
|
detail: {
|
|
@@ -627,8 +627,8 @@ function _maybeInitializeMux2() {
|
|
|
627
627
|
this.addEventListener("visitor-tracking-change", function(event) {
|
|
628
628
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
629
629
|
if (!isTrackingEnabled) {
|
|
630
|
-
var
|
|
631
|
-
(
|
|
630
|
+
var _classPrivateFieldGet120, _classPrivateFieldGet121;
|
|
631
|
+
(_classPrivateFieldGet120 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : (_classPrivateFieldGet121 = _classPrivateFieldGet120.mux) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.destroy();
|
|
632
632
|
}
|
|
633
633
|
});
|
|
634
634
|
case 3:
|
|
@@ -732,8 +732,8 @@ function _renderPreloadThumbnail() {
|
|
|
732
732
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
|
-
var
|
|
736
|
-
var
|
|
735
|
+
var _classPrivateFieldGet111 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet111.assets, mediaType = _classPrivateFieldGet111.mediaType, carouselHardWall = _classPrivateFieldGet111.carouselHardWall;
|
|
736
|
+
var _classPrivateFieldGet112 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet112.autoPlay, plugin = _classPrivateFieldGet112.plugin;
|
|
737
737
|
if (carouselHardWall) {
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
@@ -758,12 +758,12 @@ function _runMethodsFromAttributes() {
|
|
|
758
758
|
var _this14 = this;
|
|
759
759
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
|
|
760
760
|
this.whenApiReady().then(function() {
|
|
761
|
-
var _ref22,
|
|
761
|
+
var _ref22, _classPrivateFieldGet113, _classPrivateFieldGet114;
|
|
762
762
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
|
|
763
|
-
var isClosedPopover = (_ref22 = ((
|
|
763
|
+
var isClosedPopover = (_ref22 = ((_classPrivateFieldGet113 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref22 !== void 0 ? _ref22 : false;
|
|
764
764
|
var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
|
|
765
765
|
var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
|
|
766
|
-
void ((
|
|
766
|
+
void ((_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.time(newTime, {
|
|
767
767
|
lazy: shouldDelayUntilPlay
|
|
768
768
|
}));
|
|
769
769
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
|
|
@@ -775,9 +775,9 @@ function _runMethodsFromAttributes() {
|
|
|
775
775
|
}
|
|
776
776
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
|
|
777
777
|
this.whenApiReady().then(function() {
|
|
778
|
-
var
|
|
778
|
+
var _classPrivateFieldGet115;
|
|
779
779
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
|
|
780
|
-
(
|
|
780
|
+
(_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.setVideoQuality(newQuality);
|
|
781
781
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
|
|
782
782
|
}).catch(function(_error) {
|
|
783
783
|
});
|
|
@@ -2659,12 +2659,12 @@ var init_wistia_player = __esm({
|
|
|
2659
2659
|
}
|
|
2660
2660
|
return hex;
|
|
2661
2661
|
};
|
|
2662
|
-
var getVideoPlayerIconColor = function getVideoPlayerIconColor2(_playerColor, isGradientEnabled) {
|
|
2662
|
+
var getVideoPlayerIconColor = function getVideoPlayerIconColor2(_playerColor, shouldUseAccessibleIconColor, isGradientEnabled) {
|
|
2663
2663
|
var _searchParams$get;
|
|
2664
2664
|
var playerColor = new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1(_playerColor);
|
|
2665
2665
|
var _URL = new URL(window.location.toString()), searchParams = _URL.searchParams;
|
|
2666
|
-
var
|
|
2667
|
-
if (isGradientEnabled || !
|
|
2666
|
+
var hasQueryParamOverride = Boolean((_searchParams$get = searchParams.get("useAccessiblePlayerIconColor")) !== null && _searchParams$get !== void 0 ? _searchParams$get : false);
|
|
2667
|
+
if (isGradientEnabled || !hasQueryParamOverride && !shouldUseAccessibleIconColor) {
|
|
2668
2668
|
return "#ffffff";
|
|
2669
2669
|
}
|
|
2670
2670
|
if (new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1("#fff").getContrastRatio(playerColor) >= colorContrastRatiosByShape.nonText) {
|
|
@@ -2672,12 +2672,12 @@ var init_wistia_player = __esm({
|
|
|
2672
2672
|
}
|
|
2673
2673
|
return adjustColorForProperContrast(_playerColor, _playerColor, "nonText");
|
|
2674
2674
|
};
|
|
2675
|
-
var getAudioPlayerIconColor = function getAudioPlayerIconColor2(_playerColor, isGradientEnabled) {
|
|
2675
|
+
var getAudioPlayerIconColor = function getAudioPlayerIconColor2(_playerColor, shouldUseAccessibleIconColor, isGradientEnabled) {
|
|
2676
2676
|
var _searchParams$get2;
|
|
2677
2677
|
var playerColor = new Color(_playerColor);
|
|
2678
2678
|
var _URL2 = new URL(window.location.toString()), searchParams = _URL2.searchParams;
|
|
2679
|
-
var
|
|
2680
|
-
if (isGradientEnabled || !
|
|
2679
|
+
var hasQueryParamOverride = Boolean((_searchParams$get2 = searchParams.get("useAccessiblePlayerIconColor")) !== null && _searchParams$get2 !== void 0 ? _searchParams$get2 : false);
|
|
2680
|
+
if (isGradientEnabled || !hasQueryParamOverride && !shouldUseAccessibleIconColor) {
|
|
2681
2681
|
return "#ffffff";
|
|
2682
2682
|
}
|
|
2683
2683
|
if (new Color("#fff").getContrastRatio(playerColor) >= colorContrastRatiosByShape.paragraphText) {
|
|
@@ -6263,7 +6263,7 @@ var init_wistia_player = __esm({
|
|
|
6263
6263
|
x2: "125",
|
|
6264
6264
|
y2: "78",
|
|
6265
6265
|
style: {
|
|
6266
|
-
stroke: "
|
|
6266
|
+
stroke: "currentcolor",
|
|
6267
6267
|
strokeWidth: 4,
|
|
6268
6268
|
strokeLinecap: "round",
|
|
6269
6269
|
opacity: isAnimating ? 1 : 0
|
|
@@ -8419,7 +8419,7 @@ var init_wistia_player = __esm({
|
|
|
8419
8419
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8420
8420
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
8421
8421
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8422
|
-
var TAGGED_VERSION2 = "0.3.
|
|
8422
|
+
var TAGGED_VERSION2 = "0.3.11";
|
|
8423
8423
|
var CURRENT_SHA2 = (
|
|
8424
8424
|
/* unused pure expression or super */
|
|
8425
8425
|
null
|
|
@@ -9312,7 +9312,7 @@ var init_wistia_player = __esm({
|
|
|
9312
9312
|
var ALPHA_MIX_BLEND_MODE = 0.7;
|
|
9313
9313
|
var ALPHA_NO_MIX_BLEND_MODE = 0.85;
|
|
9314
9314
|
var BigPlayButton = function BigPlayButton2(_ref) {
|
|
9315
|
-
var backgroundGradientCss = _ref.backgroundGradientCss, _ref$baseHeight = _ref.baseHeight, baseHeight = _ref$baseHeight === void 0 ? BASE_BUTTON_HEIGHT : _ref$baseHeight, _ref$baseWidth = _ref.baseWidth, baseWidth = _ref$baseWidth === void 0 ? BASE_BUTTON_WIDTH : _ref$baseWidth, borderRadius = _ref.borderRadius, buttonTabIndex = _ref.buttonTabIndex, color = _ref.color, _ref$controlBarDistan = _ref.controlBarDistance, controlBarDistance = _ref$controlBarDistan === void 0 ? 0 : _ref$controlBarDistan, duration = _ref.duration, elemRef = _ref.elemRef, isLiveMedia = _ref.isLiveMedia, _ref$isLoading = _ref.isLoading, isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading, isVisible = _ref.isVisible, _ref$leftNudgeFractio = _ref.leftNudgeFraction, leftNudgeFraction = _ref$leftNudgeFractio === void 0 ? 0 : _ref$leftNudgeFractio, _ref$noMixBlendMode = _ref.noMixBlendMode, noMixBlendMode = _ref$noMixBlendMode === void 0 ? false : _ref$noMixBlendMode, onClick = _ref.onClick, playerLanguage = _ref.playerLanguage, scale = _ref.scale, showBpbTime = _ref.showBpbTime, _ref$topNudgeFraction = _ref.topNudgeFraction, topNudgeFraction = _ref$topNudgeFraction === void 0 ? 0 : _ref$topNudgeFraction, videoName = _ref.videoName, videoWidth = _ref.videoWidth;
|
|
9315
|
+
var backgroundGradientCss = _ref.backgroundGradientCss, _ref$baseHeight = _ref.baseHeight, baseHeight = _ref$baseHeight === void 0 ? BASE_BUTTON_HEIGHT : _ref$baseHeight, _ref$baseWidth = _ref.baseWidth, baseWidth = _ref$baseWidth === void 0 ? BASE_BUTTON_WIDTH : _ref$baseWidth, borderRadius = _ref.borderRadius, buttonTabIndex = _ref.buttonTabIndex, color = _ref.color, _ref$controlBarDistan = _ref.controlBarDistance, controlBarDistance = _ref$controlBarDistan === void 0 ? 0 : _ref$controlBarDistan, duration = _ref.duration, elemRef = _ref.elemRef, isLiveMedia = _ref.isLiveMedia, _ref$isLoading = _ref.isLoading, isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading, _ref$isOpaque = _ref.isOpaque, isOpaque = _ref$isOpaque === void 0 ? false : _ref$isOpaque, isVisible = _ref.isVisible, _ref$leftNudgeFractio = _ref.leftNudgeFraction, leftNudgeFraction = _ref$leftNudgeFractio === void 0 ? 0 : _ref$leftNudgeFractio, _ref$noMixBlendMode = _ref.noMixBlendMode, noMixBlendMode = _ref$noMixBlendMode === void 0 ? false : _ref$noMixBlendMode, onClick = _ref.onClick, playerLanguage = _ref.playerLanguage, scale = _ref.scale, showBpbTime = _ref.showBpbTime, _ref$topNudgeFraction = _ref.topNudgeFraction, topNudgeFraction = _ref$topNudgeFraction === void 0 ? 0 : _ref$topNudgeFraction, videoName = _ref.videoName, videoWidth = _ref.videoWidth;
|
|
9316
9316
|
var _useState = (0, preact_hooks__WEBPACK_IMPORTED_MODULE_1__.J0)(false), _useState2 = _slicedToArray2(_useState, 2), isFocused = _useState2[0], setIsFocused = _useState2[1];
|
|
9317
9317
|
var scaledWidth = baseWidth * scale;
|
|
9318
9318
|
var scaledHeight = baseHeight * scale;
|
|
@@ -9324,12 +9324,14 @@ var init_wistia_player = __esm({
|
|
|
9324
9324
|
var wrapperStyle = {
|
|
9325
9325
|
borderRadius: "".concat(borderRadius, "px"),
|
|
9326
9326
|
display: isVisible ? "block" : "none",
|
|
9327
|
+
height: "".concat(scaledHeight, "px"),
|
|
9327
9328
|
left: "calc(50% + ".concat((leftNudgeFraction || 0) * 100, "%)"),
|
|
9328
9329
|
marginLeft: "-".concat(scaledWidth / 2, "px"),
|
|
9329
9330
|
marginTop: "-".concat(scaledHeight / 2, "px"),
|
|
9330
9331
|
overflow: "hidden",
|
|
9331
9332
|
position: "absolute",
|
|
9332
|
-
top: "calc(50% + ".concat((topNudgeFraction || 0) * 100, "% - ").concat(controlBarDistance, "px)")
|
|
9333
|
+
top: "calc(50% + ".concat((topNudgeFraction || 0) * 100, "% - ").concat(controlBarDistance, "px)"),
|
|
9334
|
+
boxShadow: isOpaque ? "0 3px 5px rgba(0,0,0,0.3)" : void 0
|
|
9333
9335
|
};
|
|
9334
9336
|
var buttonStyle = {
|
|
9335
9337
|
backgroundColor: "transparent",
|
|
@@ -9353,7 +9355,7 @@ var init_wistia_player = __esm({
|
|
|
9353
9355
|
};
|
|
9354
9356
|
var overlayColor = new _utilities_color_js__WEBPACK_IMPORTED_MODULE_4__.Q1(color !== null && color !== void 0 ? color : "#000");
|
|
9355
9357
|
var overlayAlphaValue = shouldMixBlendMode ? ALPHA_MIX_BLEND_MODE : ALPHA_NO_MIX_BLEND_MODE;
|
|
9356
|
-
overlayColor.alpha(overlayAlphaValue);
|
|
9358
|
+
overlayColor.alpha(isOpaque ? 1 : overlayAlphaValue);
|
|
9357
9359
|
if (isFocused) {
|
|
9358
9360
|
overlayColor.lighten("15%");
|
|
9359
9361
|
}
|
|
@@ -13459,7 +13461,7 @@ var init_wistia_player = __esm({
|
|
|
13459
13461
|
}
|
|
13460
13462
|
}, [isPlayPending]);
|
|
13461
13463
|
var _usePlayerData = (0, _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_2__.$)(), embedOptions = _usePlayerData.embedOptions, mediaData = _usePlayerData.mediaData;
|
|
13462
|
-
var aspect = embedOptions.aspect, bigPlayButton = embedOptions.bigPlayButton, bpbTime = embedOptions.bpbTime, bigPlayButtonBorderRadius = embedOptions.bigPlayButtonBorderRadius, controlBarBorderRadius = embedOptions.controlBarBorderRadius, controlsVisibleOnLoad = embedOptions.controlsVisibleOnLoad, floatingControlBar = embedOptions.floatingControlBar, noMixBlendMode = embedOptions.noMixBlendMode, playButton = embedOptions.playButton, playerBorderRadius = embedOptions.playerBorderRadius, playerColor = embedOptions.playerColor, playerColorGradient = embedOptions.playerColorGradient, playerLanguage = embedOptions.playerLanguage, roundedPlayer = embedOptions.roundedPlayer, thumbnailAltText = embedOptions.thumbnailAltText, transparentLetterbox = embedOptions.transparentLetterbox;
|
|
13464
|
+
var aspect = embedOptions.aspect, bigPlayButton = embedOptions.bigPlayButton, bpbTime = embedOptions.bpbTime, bigPlayButtonBorderRadius = embedOptions.bigPlayButtonBorderRadius, contrastIcons = embedOptions.contrastIcons, controlBarBorderRadius = embedOptions.controlBarBorderRadius, controlsVisibleOnLoad = embedOptions.controlsVisibleOnLoad, floatingControlBar = embedOptions.floatingControlBar, noMixBlendMode = embedOptions.noMixBlendMode, opaqueControls = embedOptions.opaqueControls, playButton = embedOptions.playButton, playerBorderRadius = embedOptions.playerBorderRadius, playerColor = embedOptions.playerColor, playerColorGradient = embedOptions.playerColorGradient, playerLanguage = embedOptions.playerLanguage, roundedPlayer = embedOptions.roundedPlayer, thumbnailAltText = embedOptions.thumbnailAltText, transparentLetterbox = embedOptions.transparentLetterbox;
|
|
13463
13465
|
var aspectRatio = mediaData.aspectRatio, assets = mediaData.assets, duration = mediaData.duration, mediaType = mediaData.mediaType, name = mediaData.name;
|
|
13464
13466
|
var height = playerWidth / ((_ref2 = aspect !== null && aspect !== void 0 ? aspect : aspectRatio) !== null && _ref2 !== void 0 ? _ref2 : _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_3__.R);
|
|
13465
13467
|
var scale = Math.min(MAX_SCALE, Math.max(MIN_SCALE, (0, _utilities_fit_control_js__WEBPACK_IMPORTED_MODULE_8__.wt)(playerWidth, [DEFAULT_LOWER_CUTOFF_WIDTH, DEFAULT_UPPER_CUTOFF_WIDTH])));
|
|
@@ -13492,7 +13494,7 @@ var init_wistia_player = __esm({
|
|
|
13492
13494
|
// Provide the icon color for the BigPlayButton
|
|
13493
13495
|
(0, preact__WEBPACK_IMPORTED_MODULE_0__2.h)("div", {
|
|
13494
13496
|
style: {
|
|
13495
|
-
"--wistia-player-icon-color": (0, _utilities_color_utils_ts__WEBPACK_IMPORTED_MODULE_12__.hu)(playerColor !== null && playerColor !== void 0 ? playerColor : "#636155", (playerColorGradient === null || playerColorGradient === void 0 ? void 0 : playerColorGradient.on) === true)
|
|
13497
|
+
"--wistia-player-icon-color": (0, _utilities_color_utils_ts__WEBPACK_IMPORTED_MODULE_12__.hu)(playerColor !== null && playerColor !== void 0 ? playerColor : "#636155", contrastIcons !== null && contrastIcons !== void 0 ? contrastIcons : false, (playerColorGradient === null || playerColorGradient === void 0 ? void 0 : playerColorGradient.on) === true)
|
|
13496
13498
|
}
|
|
13497
13499
|
}, (0, preact__WEBPACK_IMPORTED_MODULE_0__2.h)("div", {
|
|
13498
13500
|
class: "w-css-reset",
|
|
@@ -13521,6 +13523,7 @@ var init_wistia_player = __esm({
|
|
|
13521
13523
|
duration: duration !== null && duration !== void 0 ? duration : 0,
|
|
13522
13524
|
isLiveMedia: mediaType === "LiveStream",
|
|
13523
13525
|
isLoading,
|
|
13526
|
+
isOpaque: opaqueControls,
|
|
13524
13527
|
isVisible: true,
|
|
13525
13528
|
noMixBlendMode,
|
|
13526
13529
|
onClick: handleClick,
|
|
@@ -13696,13 +13699,14 @@ var init_wistia_player = __esm({
|
|
|
13696
13699
|
_utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__2(4989);
|
|
13697
13700
|
_types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__2(7350);
|
|
13698
13701
|
requiredAttributes = ["media-id"];
|
|
13699
|
-
optionalPublicAttributes = ["aspect", "audio-description-control", "autoplay", "big-play-button", "branding", "controls-visible-on-load", "copy-link-and-thumbnail", "current-time", "do-not-track", "email", "end-video-behavior", "fullscreen-control", "language", "muted", "playback-rate-control", "play-bar-control", "player-color", "playlist-links", "playlist-loop", "play-pause-control", "play-pause-notifier", "popover-animate-thumbnail", "popover-animation", "popover-border-color", "popover-border-radius", "popover-border-width", "popover-box-shadow", "popover-caption", "popover-caption-container", "popover-content", "popover-disable-autoplay", "popover-overlay-color", "popover-overlay-opacity", "popover-prevent-scroll", "popover-show-on-load", "poster", "preload", "quality-control", "quality-max", "quality-min", "resumable", "rounded-player", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
|
|
13702
|
+
optionalPublicAttributes = ["aspect", "audio-description-control", "autoplay", "big-play-button", "branding", "contrast-icons", "controls-visible-on-load", "copy-link-and-thumbnail", "current-time", "do-not-track", "email", "end-video-behavior", "fullscreen-control", "language", "muted", "opaque-controls", "playback-rate-control", "play-bar-control", "player-color", "playlist-links", "playlist-loop", "play-pause-control", "play-pause-notifier", "popover-animate-thumbnail", "popover-animation", "popover-border-color", "popover-border-radius", "popover-border-width", "popover-box-shadow", "popover-caption", "popover-caption-container", "popover-content", "popover-disable-autoplay", "popover-overlay-color", "popover-overlay-opacity", "popover-prevent-scroll", "popover-show-on-load", "poster", "preload", "quality-control", "quality-max", "quality-min", "resumable", "rounded-player", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
|
|
13700
13703
|
optionalPrivateAttributes = ["big-play-button-border-radius", "control-bar-border-radius", "embed-host", "hls", "page-url", "player-border-radius", "player-force", "stats-url", "swatch", "unique-id", "use-web-component"];
|
|
13701
13704
|
defaultEmbedOptions = {
|
|
13702
13705
|
audioDescriptionControl: false,
|
|
13703
13706
|
autoplay: false,
|
|
13704
13707
|
bigPlayButton: true,
|
|
13705
13708
|
bigPlayButtonBorderRadius: void 0,
|
|
13709
|
+
contrastIcons: false,
|
|
13706
13710
|
controlBarBorderRadius: void 0,
|
|
13707
13711
|
controlsVisibleOnLoad: true,
|
|
13708
13712
|
copyLinkAndThumbnail: true,
|
|
@@ -13711,6 +13715,7 @@ var init_wistia_player = __esm({
|
|
|
13711
13715
|
endVideoBehavior: "default",
|
|
13712
13716
|
fullscreenControl: true,
|
|
13713
13717
|
hls: true,
|
|
13718
|
+
opaqueControls: false,
|
|
13714
13719
|
playBarControl: true,
|
|
13715
13720
|
playerBorderRadius: void 0,
|
|
13716
13721
|
playerColor: "636155",
|
|
@@ -14004,6 +14009,20 @@ var init_wistia_player = __esm({
|
|
|
14004
14009
|
var _classPrivateFieldGet14, _classPrivateFieldGet15;
|
|
14005
14010
|
return (_classPrivateFieldGet14 = (_classPrivateFieldGet15 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet15 === void 0 ? void 0 : _classPrivateFieldGet15.captionsLanguages()) !== null && _classPrivateFieldGet14 !== void 0 ? _classPrivateFieldGet14 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
|
|
14006
14011
|
}
|
|
14012
|
+
/**
|
|
14013
|
+
* Returns the status of the contrastIcons embed option, which determines
|
|
14014
|
+
* if the the player controls should use icons with accessible contrast or default to white.
|
|
14015
|
+
*
|
|
14016
|
+
* @returns {boolean}
|
|
14017
|
+
*/
|
|
14018
|
+
}, {
|
|
14019
|
+
key: "contrastIcons",
|
|
14020
|
+
get: function get() {
|
|
14021
|
+
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "contrastIcons");
|
|
14022
|
+
},
|
|
14023
|
+
set: function set(contrastIcons) {
|
|
14024
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "contrastIcons", contrastIcons);
|
|
14025
|
+
}
|
|
14007
14026
|
/**
|
|
14008
14027
|
* Returns the border radius of the control bar.
|
|
14009
14028
|
* @returns {number}
|
|
@@ -14365,6 +14384,23 @@ var init_wistia_player = __esm({
|
|
|
14365
14384
|
var _ref8, _classPrivateFieldGet45, _classPrivateFieldGet46, _classPrivateFieldGet47;
|
|
14366
14385
|
return (_ref8 = (_classPrivateFieldGet45 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet45 !== void 0 ? _classPrivateFieldGet45 : (_classPrivateFieldGet46 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet46 === void 0 ? void 0 : (_classPrivateFieldGet47 = _classPrivateFieldGet46._mediaData) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
|
|
14367
14386
|
}
|
|
14387
|
+
/**
|
|
14388
|
+
* Returns the status of the opaqueControls embed option, which determines
|
|
14389
|
+
* if the playbar and big play button are opaque ore semi-transparent
|
|
14390
|
+
*
|
|
14391
|
+
* @returns {boolean}
|
|
14392
|
+
*/
|
|
14393
|
+
}, {
|
|
14394
|
+
key: "opaqueControls",
|
|
14395
|
+
get: function get() {
|
|
14396
|
+
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "opaqueControls");
|
|
14397
|
+
},
|
|
14398
|
+
set: function set(opaqueControls) {
|
|
14399
|
+
var _classPrivateFieldGet48;
|
|
14400
|
+
var valueAsBoolean = Boolean(opaqueControls);
|
|
14401
|
+
(_classPrivateFieldGet48 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.opaqueControls(valueAsBoolean);
|
|
14402
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "opaqueControls", valueAsBoolean);
|
|
14403
|
+
}
|
|
14368
14404
|
}, {
|
|
14369
14405
|
key: "paddingTop",
|
|
14370
14406
|
get: function get() {
|
|
@@ -14380,8 +14416,8 @@ var init_wistia_player = __esm({
|
|
|
14380
14416
|
}, {
|
|
14381
14417
|
key: "paused",
|
|
14382
14418
|
get: function get() {
|
|
14383
|
-
var
|
|
14384
|
-
return ((
|
|
14419
|
+
var _classPrivateFieldGet49;
|
|
14420
|
+
return ((_classPrivateFieldGet49 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet49 === void 0 ? void 0 : _classPrivateFieldGet49.state()) === "paused";
|
|
14385
14421
|
}
|
|
14386
14422
|
/**
|
|
14387
14423
|
* Returns the percent of the video that has been watched as a decimal between 0 and 1.
|
|
@@ -14390,8 +14426,8 @@ var init_wistia_player = __esm({
|
|
|
14390
14426
|
}, {
|
|
14391
14427
|
key: "percentWatched",
|
|
14392
14428
|
get: function get() {
|
|
14393
|
-
var
|
|
14394
|
-
return (
|
|
14429
|
+
var _classPrivateFieldGet50, _classPrivateFieldGet51;
|
|
14430
|
+
return (_classPrivateFieldGet50 = (_classPrivateFieldGet51 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet51 === void 0 ? void 0 : _classPrivateFieldGet51.percentWatched()) !== null && _classPrivateFieldGet50 !== void 0 ? _classPrivateFieldGet50 : 0;
|
|
14395
14431
|
}
|
|
14396
14432
|
/**
|
|
14397
14433
|
* Returns the playback rate of the video.
|
|
@@ -14400,12 +14436,12 @@ var init_wistia_player = __esm({
|
|
|
14400
14436
|
}, {
|
|
14401
14437
|
key: "playbackRate",
|
|
14402
14438
|
get: function get() {
|
|
14403
|
-
var _ref9,
|
|
14404
|
-
return (_ref9 = (
|
|
14439
|
+
var _ref9, _classPrivateFieldGet52, _classPrivateFieldGet53;
|
|
14440
|
+
return (_ref9 = (_classPrivateFieldGet52 = (_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.playbackRate()) !== null && _classPrivateFieldGet52 !== void 0 ? _classPrivateFieldGet52 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
14405
14441
|
},
|
|
14406
14442
|
set: function set(rate) {
|
|
14407
|
-
var
|
|
14408
|
-
(
|
|
14443
|
+
var _classPrivateFieldGet54;
|
|
14444
|
+
(_classPrivateFieldGet54 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : _classPrivateFieldGet54.playbackRate(rate);
|
|
14409
14445
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
|
|
14410
14446
|
}
|
|
14411
14447
|
/**
|
|
@@ -14418,8 +14454,8 @@ var init_wistia_player = __esm({
|
|
|
14418
14454
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
|
|
14419
14455
|
},
|
|
14420
14456
|
set: function set(shouldDisplay) {
|
|
14421
|
-
var
|
|
14422
|
-
(
|
|
14457
|
+
var _classPrivateFieldGet55;
|
|
14458
|
+
(_classPrivateFieldGet55 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet55 === void 0 ? void 0 : _classPrivateFieldGet55.playbackRateControlEnabled(shouldDisplay);
|
|
14423
14459
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
|
|
14424
14460
|
}
|
|
14425
14461
|
/**
|
|
@@ -14432,8 +14468,8 @@ var init_wistia_player = __esm({
|
|
|
14432
14468
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
|
|
14433
14469
|
},
|
|
14434
14470
|
set: function set(shouldDisplay) {
|
|
14435
|
-
var
|
|
14436
|
-
(
|
|
14471
|
+
var _classPrivateFieldGet56;
|
|
14472
|
+
(_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.playbarControlEnabled(shouldDisplay);
|
|
14437
14473
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
|
|
14438
14474
|
}
|
|
14439
14475
|
/**
|
|
@@ -14446,8 +14482,8 @@ var init_wistia_player = __esm({
|
|
|
14446
14482
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
|
|
14447
14483
|
},
|
|
14448
14484
|
set: function set(radius) {
|
|
14449
|
-
var
|
|
14450
|
-
(
|
|
14485
|
+
var _classPrivateFieldGet57;
|
|
14486
|
+
(_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.setPlayerBorderRadius(Number(radius));
|
|
14451
14487
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", radius);
|
|
14452
14488
|
}
|
|
14453
14489
|
/**
|
|
@@ -14465,8 +14501,8 @@ var init_wistia_player = __esm({
|
|
|
14465
14501
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
|
|
14466
14502
|
},
|
|
14467
14503
|
set: function set(newColor) {
|
|
14468
|
-
var
|
|
14469
|
-
(
|
|
14504
|
+
var _classPrivateFieldGet58;
|
|
14505
|
+
(_classPrivateFieldGet58 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.playerColor(newColor);
|
|
14470
14506
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
|
|
14471
14507
|
}
|
|
14472
14508
|
/**
|
|
@@ -14483,11 +14519,11 @@ var init_wistia_player = __esm({
|
|
|
14483
14519
|
return void 0;
|
|
14484
14520
|
},
|
|
14485
14521
|
set: function set(gradient) {
|
|
14486
|
-
var
|
|
14522
|
+
var _classPrivateFieldGet59;
|
|
14487
14523
|
if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__.b)(gradient)) {
|
|
14488
14524
|
throw new Error("playerColorGradient must be a valid gradient object");
|
|
14489
14525
|
}
|
|
14490
|
-
(
|
|
14526
|
+
(_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playerColorGradient(gradient);
|
|
14491
14527
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
|
|
14492
14528
|
}
|
|
14493
14529
|
/**
|
|
@@ -14545,8 +14581,8 @@ var init_wistia_player = __esm({
|
|
|
14545
14581
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
|
|
14546
14582
|
},
|
|
14547
14583
|
set: function set(shouldDisplay) {
|
|
14548
|
-
var
|
|
14549
|
-
(
|
|
14584
|
+
var _classPrivateFieldGet60;
|
|
14585
|
+
(_classPrivateFieldGet60 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playPauseControlEnabled(shouldDisplay);
|
|
14550
14586
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
|
|
14551
14587
|
}
|
|
14552
14588
|
/**
|
|
@@ -14561,8 +14597,8 @@ var init_wistia_player = __esm({
|
|
|
14561
14597
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
|
|
14562
14598
|
},
|
|
14563
14599
|
set: function set(shouldDisplay) {
|
|
14564
|
-
var
|
|
14565
|
-
(
|
|
14600
|
+
var _classPrivateFieldGet61;
|
|
14601
|
+
(_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playPauseNotifierEnabled(shouldDisplay);
|
|
14566
14602
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
|
|
14567
14603
|
}
|
|
14568
14604
|
/**
|
|
@@ -14782,8 +14818,8 @@ var init_wistia_player = __esm({
|
|
|
14782
14818
|
}, {
|
|
14783
14819
|
key: "preload",
|
|
14784
14820
|
get: function get() {
|
|
14785
|
-
var _ref1,
|
|
14786
|
-
return (_ref1 = (
|
|
14821
|
+
var _ref1, _classPrivateFieldGet62, _classPrivateFieldGet63;
|
|
14822
|
+
return (_ref1 = (_classPrivateFieldGet62 = (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.preloadValue()) !== null && _classPrivateFieldGet62 !== void 0 ? _classPrivateFieldGet62 : this.embedOptions.preload) !== null && _ref1 !== void 0 ? _ref1 : "metadata";
|
|
14787
14823
|
},
|
|
14788
14824
|
set: function set(preloadValue) {
|
|
14789
14825
|
var prevVal = this.preload;
|
|
@@ -14803,8 +14839,8 @@ var init_wistia_player = __esm({
|
|
|
14803
14839
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
|
|
14804
14840
|
},
|
|
14805
14841
|
set: function set(shouldDisplay) {
|
|
14806
|
-
var
|
|
14807
|
-
(
|
|
14842
|
+
var _classPrivateFieldGet64;
|
|
14843
|
+
(_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.qualityControlEnabled(shouldDisplay);
|
|
14808
14844
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
|
|
14809
14845
|
}
|
|
14810
14846
|
/**
|
|
@@ -14817,8 +14853,8 @@ var init_wistia_player = __esm({
|
|
|
14817
14853
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
|
|
14818
14854
|
},
|
|
14819
14855
|
set: function set(quality) {
|
|
14820
|
-
var
|
|
14821
|
-
(
|
|
14856
|
+
var _classPrivateFieldGet65;
|
|
14857
|
+
(_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.qualityMax(quality);
|
|
14822
14858
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
|
|
14823
14859
|
}
|
|
14824
14860
|
/**
|
|
@@ -14831,8 +14867,8 @@ var init_wistia_player = __esm({
|
|
|
14831
14867
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
|
|
14832
14868
|
},
|
|
14833
14869
|
set: function set(quality) {
|
|
14834
|
-
var
|
|
14835
|
-
(
|
|
14870
|
+
var _classPrivateFieldGet66;
|
|
14871
|
+
(_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.qualityMin(quality);
|
|
14836
14872
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
|
|
14837
14873
|
}
|
|
14838
14874
|
/**
|
|
@@ -14842,8 +14878,8 @@ var init_wistia_player = __esm({
|
|
|
14842
14878
|
}, {
|
|
14843
14879
|
key: "readyState",
|
|
14844
14880
|
get: function get() {
|
|
14845
|
-
var
|
|
14846
|
-
return (
|
|
14881
|
+
var _classPrivateFieldGet67, _classPrivateFieldGet68;
|
|
14882
|
+
return (_classPrivateFieldGet67 = (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.getReadyState()) !== null && _classPrivateFieldGet67 !== void 0 ? _classPrivateFieldGet67 : 0;
|
|
14847
14883
|
}
|
|
14848
14884
|
/**
|
|
14849
14885
|
* Returns the current resumable status of the video.
|
|
@@ -14856,8 +14892,8 @@ var init_wistia_player = __esm({
|
|
|
14856
14892
|
return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable")) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : "auto";
|
|
14857
14893
|
},
|
|
14858
14894
|
set: function set(resumableState) {
|
|
14859
|
-
var
|
|
14860
|
-
(
|
|
14895
|
+
var _classPrivateFieldGet69;
|
|
14896
|
+
(_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.setResumable(resumableState);
|
|
14861
14897
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
|
|
14862
14898
|
}
|
|
14863
14899
|
/**
|
|
@@ -14870,8 +14906,8 @@ var init_wistia_player = __esm({
|
|
|
14870
14906
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
|
|
14871
14907
|
},
|
|
14872
14908
|
set: function set(radius) {
|
|
14873
|
-
var
|
|
14874
|
-
(
|
|
14909
|
+
var _classPrivateFieldGet70;
|
|
14910
|
+
(_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.setRoundedPlayer(Number(radius));
|
|
14875
14911
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", radius);
|
|
14876
14912
|
}
|
|
14877
14913
|
/**
|
|
@@ -14882,8 +14918,8 @@ var init_wistia_player = __esm({
|
|
|
14882
14918
|
}, {
|
|
14883
14919
|
key: "secondsWatched",
|
|
14884
14920
|
get: function get() {
|
|
14885
|
-
var
|
|
14886
|
-
return (
|
|
14921
|
+
var _classPrivateFieldGet71, _classPrivateFieldGet72;
|
|
14922
|
+
return (_classPrivateFieldGet71 = (_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.secondsWatched()) !== null && _classPrivateFieldGet71 !== void 0 ? _classPrivateFieldGet71 : 0;
|
|
14887
14923
|
}
|
|
14888
14924
|
/**
|
|
14889
14925
|
* Returns an array where each index represents the number of times the viewer has watched each second of the video.
|
|
@@ -14892,8 +14928,8 @@ var init_wistia_player = __esm({
|
|
|
14892
14928
|
}, {
|
|
14893
14929
|
key: "secondsWatchedVector",
|
|
14894
14930
|
get: function get() {
|
|
14895
|
-
var
|
|
14896
|
-
return (
|
|
14931
|
+
var _classPrivateFieldGet73, _classPrivateFieldGet74;
|
|
14932
|
+
return (_classPrivateFieldGet73 = (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.secondsWatchedVector()) !== null && _classPrivateFieldGet73 !== void 0 ? _classPrivateFieldGet73 : [];
|
|
14897
14933
|
}
|
|
14898
14934
|
/**
|
|
14899
14935
|
* Returns whether JSON+LD seo data will be injected.
|
|
@@ -14917,8 +14953,8 @@ var init_wistia_player = __esm({
|
|
|
14917
14953
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
|
|
14918
14954
|
},
|
|
14919
14955
|
set: function set(shouldDisplay) {
|
|
14920
|
-
var
|
|
14921
|
-
(
|
|
14956
|
+
var _classPrivateFieldGet75;
|
|
14957
|
+
(_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.settingsControlEnabled(shouldDisplay);
|
|
14922
14958
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
|
|
14923
14959
|
}
|
|
14924
14960
|
/**
|
|
@@ -14940,10 +14976,10 @@ var init_wistia_player = __esm({
|
|
|
14940
14976
|
}, {
|
|
14941
14977
|
key: "sourceLanguage",
|
|
14942
14978
|
get: function get() {
|
|
14943
|
-
var
|
|
14944
|
-
return (
|
|
14979
|
+
var _classPrivateFieldGet76, _classPrivateFieldGet77;
|
|
14980
|
+
return (_classPrivateFieldGet76 = (_classPrivateFieldGet77 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.find(function(loc) {
|
|
14945
14981
|
return loc.sourceLanguage;
|
|
14946
|
-
})) !== null &&
|
|
14982
|
+
})) !== null && _classPrivateFieldGet76 !== void 0 ? _classPrivateFieldGet76 : this.mediaLanguages[0];
|
|
14947
14983
|
}
|
|
14948
14984
|
/**
|
|
14949
14985
|
* Returns the source media id for the player. If a player has different localized versions,
|
|
@@ -14963,8 +14999,8 @@ var init_wistia_player = __esm({
|
|
|
14963
14999
|
}, {
|
|
14964
15000
|
key: "state",
|
|
14965
15001
|
get: function get() {
|
|
14966
|
-
var
|
|
14967
|
-
return (
|
|
15002
|
+
var _classPrivateFieldGet78, _classPrivateFieldGet79;
|
|
15003
|
+
return (_classPrivateFieldGet78 = (_classPrivateFieldGet79 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.state()) !== null && _classPrivateFieldGet78 !== void 0 ? _classPrivateFieldGet78 : defaultEmbedOptions.state;
|
|
14968
15004
|
}
|
|
14969
15005
|
/**
|
|
14970
15006
|
* Returns the stats url for the player.
|
|
@@ -15046,12 +15082,12 @@ var init_wistia_player = __esm({
|
|
|
15046
15082
|
}, {
|
|
15047
15083
|
key: "videoQuality",
|
|
15048
15084
|
get: function get() {
|
|
15049
|
-
var _ref10,
|
|
15050
|
-
return (_ref10 = (
|
|
15085
|
+
var _ref10, _classPrivateFieldGet80, _classPrivateFieldGet81;
|
|
15086
|
+
return (_ref10 = (_classPrivateFieldGet80 = (_classPrivateFieldGet81 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.getVideoQuality()) !== null && _classPrivateFieldGet80 !== void 0 ? _classPrivateFieldGet80 : this.embedOptions.videoQuality) !== null && _ref10 !== void 0 ? _ref10 : "auto";
|
|
15051
15087
|
},
|
|
15052
15088
|
set: function set(quality) {
|
|
15053
|
-
var
|
|
15054
|
-
(
|
|
15089
|
+
var _classPrivateFieldGet82;
|
|
15090
|
+
(_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.setVideoQuality(quality);
|
|
15055
15091
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
|
|
15056
15092
|
}
|
|
15057
15093
|
/**
|
|
@@ -15074,8 +15110,8 @@ var init_wistia_player = __esm({
|
|
|
15074
15110
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
|
|
15075
15111
|
},
|
|
15076
15112
|
set: function set(level) {
|
|
15077
|
-
var
|
|
15078
|
-
(
|
|
15113
|
+
var _classPrivateFieldGet83;
|
|
15114
|
+
(_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.volume(level);
|
|
15079
15115
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
|
|
15080
15116
|
}
|
|
15081
15117
|
/**
|
|
@@ -15090,8 +15126,8 @@ var init_wistia_player = __esm({
|
|
|
15090
15126
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
|
|
15091
15127
|
},
|
|
15092
15128
|
set: function set(shouldDisplay) {
|
|
15093
|
-
var
|
|
15094
|
-
(
|
|
15129
|
+
var _classPrivateFieldGet84;
|
|
15130
|
+
(_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.volumeControlEnabled(shouldDisplay);
|
|
15095
15131
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
|
|
15096
15132
|
}
|
|
15097
15133
|
/**
|
|
@@ -15137,11 +15173,11 @@ var init_wistia_player = __esm({
|
|
|
15137
15173
|
key: "cancelFullscreen",
|
|
15138
15174
|
value: (function() {
|
|
15139
15175
|
var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
|
|
15140
|
-
var
|
|
15176
|
+
var _classPrivateFieldGet85, _this3 = this;
|
|
15141
15177
|
return _regenerator().w(function(_context) {
|
|
15142
15178
|
while (1) switch (_context.n) {
|
|
15143
15179
|
case 0:
|
|
15144
|
-
return _context.a(2, (
|
|
15180
|
+
return _context.a(2, (_classPrivateFieldGet85 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.cancelFullscreen().then(function() {
|
|
15145
15181
|
_this3._fullscreenState.heightBeforeFullscreen = void 0;
|
|
15146
15182
|
_this3._fullscreenState.widthBeforeFullscreen = void 0;
|
|
15147
15183
|
}));
|
|
@@ -15157,11 +15193,11 @@ var init_wistia_player = __esm({
|
|
|
15157
15193
|
key: "createOverlay",
|
|
15158
15194
|
value: (function() {
|
|
15159
15195
|
var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
|
|
15160
|
-
var
|
|
15196
|
+
var _classPrivateFieldGet86;
|
|
15161
15197
|
return _regenerator().w(function(_context2) {
|
|
15162
15198
|
while (1) switch (_context2.n) {
|
|
15163
15199
|
case 0:
|
|
15164
|
-
if (!((
|
|
15200
|
+
if (!((_classPrivateFieldGet86 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet86 !== void 0 && _classPrivateFieldGet86.defineOverlay)) {
|
|
15165
15201
|
_context2.n = 1;
|
|
15166
15202
|
break;
|
|
15167
15203
|
}
|
|
@@ -15187,11 +15223,11 @@ var init_wistia_player = __esm({
|
|
|
15187
15223
|
case 0:
|
|
15188
15224
|
addPlugin = /* @__PURE__ */ (function() {
|
|
15189
15225
|
var _ref11 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
|
|
15190
|
-
var
|
|
15226
|
+
var _classPrivateFieldGet87, _classPrivateFieldGet88;
|
|
15191
15227
|
return _regenerator().w(function(_context3) {
|
|
15192
15228
|
while (1) switch (_context3.n) {
|
|
15193
15229
|
case 0:
|
|
15194
|
-
return _context3.a(2, (
|
|
15230
|
+
return _context3.a(2, (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.addPlugin(name, options)) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
|
|
15195
15231
|
}
|
|
15196
15232
|
}, _callee3);
|
|
15197
15233
|
}));
|
|
@@ -15231,11 +15267,11 @@ var init_wistia_player = __esm({
|
|
|
15231
15267
|
key: "deleteOverlay",
|
|
15232
15268
|
value: (function() {
|
|
15233
15269
|
var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee5(name) {
|
|
15234
|
-
var
|
|
15270
|
+
var _classPrivateFieldGet89;
|
|
15235
15271
|
return _regenerator().w(function(_context5) {
|
|
15236
15272
|
while (1) switch (_context5.n) {
|
|
15237
15273
|
case 0:
|
|
15238
|
-
if (!((
|
|
15274
|
+
if (!((_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet89 !== void 0 && _classPrivateFieldGet89.undefineOverlay)) {
|
|
15239
15275
|
_context5.n = 1;
|
|
15240
15276
|
break;
|
|
15241
15277
|
}
|
|
@@ -15254,11 +15290,11 @@ var init_wistia_player = __esm({
|
|
|
15254
15290
|
key: "disableControl",
|
|
15255
15291
|
value: (function() {
|
|
15256
15292
|
var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
|
|
15257
|
-
var
|
|
15293
|
+
var _classPrivateFieldGet90;
|
|
15258
15294
|
return _regenerator().w(function(_context6) {
|
|
15259
15295
|
while (1) switch (_context6.n) {
|
|
15260
15296
|
case 0:
|
|
15261
|
-
if (!((
|
|
15297
|
+
if (!((_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet90 !== void 0 && _classPrivateFieldGet90.setControlEnabled)) {
|
|
15262
15298
|
_context6.n = 1;
|
|
15263
15299
|
break;
|
|
15264
15300
|
}
|
|
@@ -15277,11 +15313,11 @@ var init_wistia_player = __esm({
|
|
|
15277
15313
|
key: "enableControl",
|
|
15278
15314
|
value: (function() {
|
|
15279
15315
|
var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
|
|
15280
|
-
var
|
|
15316
|
+
var _classPrivateFieldGet91;
|
|
15281
15317
|
return _regenerator().w(function(_context7) {
|
|
15282
15318
|
while (1) switch (_context7.n) {
|
|
15283
15319
|
case 0:
|
|
15284
|
-
if (!((
|
|
15320
|
+
if (!((_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet91 !== void 0 && _classPrivateFieldGet91.setControlEnabled)) {
|
|
15285
15321
|
_context7.n = 1;
|
|
15286
15322
|
break;
|
|
15287
15323
|
}
|
|
@@ -15300,16 +15336,16 @@ var init_wistia_player = __esm({
|
|
|
15300
15336
|
key: "enterInputContext",
|
|
15301
15337
|
value: (function() {
|
|
15302
15338
|
var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(context) {
|
|
15303
|
-
var
|
|
15339
|
+
var _classPrivateFieldGet92, _this5 = this;
|
|
15304
15340
|
return _regenerator().w(function(_context8) {
|
|
15305
15341
|
while (1) switch (_context8.n) {
|
|
15306
15342
|
case 0:
|
|
15307
|
-
if (!((
|
|
15343
|
+
if (!((_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet92 !== void 0 && _classPrivateFieldGet92.enterInputContext)) {
|
|
15308
15344
|
_context8.n = 1;
|
|
15309
15345
|
break;
|
|
15310
15346
|
}
|
|
15311
15347
|
return _context8.a(2, new Promise(function(resolve) {
|
|
15312
|
-
var
|
|
15348
|
+
var _classPrivateFieldGet93;
|
|
15313
15349
|
var _handler = function handler(event) {
|
|
15314
15350
|
var detail = event.detail;
|
|
15315
15351
|
if (detail.context === context) {
|
|
@@ -15318,7 +15354,7 @@ var init_wistia_player = __esm({
|
|
|
15318
15354
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
|
|
15319
15355
|
};
|
|
15320
15356
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
|
|
15321
|
-
(
|
|
15357
|
+
(_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.enterInputContext(context);
|
|
15322
15358
|
}));
|
|
15323
15359
|
case 1:
|
|
15324
15360
|
return _context8.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
|
|
@@ -15334,11 +15370,11 @@ var init_wistia_player = __esm({
|
|
|
15334
15370
|
key: "exitInputContext",
|
|
15335
15371
|
value: (function() {
|
|
15336
15372
|
var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
|
|
15337
|
-
var
|
|
15373
|
+
var _classPrivateFieldGet94;
|
|
15338
15374
|
return _regenerator().w(function(_context9) {
|
|
15339
15375
|
while (1) switch (_context9.n) {
|
|
15340
15376
|
case 0:
|
|
15341
|
-
if (!((
|
|
15377
|
+
if (!((_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet94 !== void 0 && _classPrivateFieldGet94.exitInputContext)) {
|
|
15342
15378
|
_context9.n = 1;
|
|
15343
15379
|
break;
|
|
15344
15380
|
}
|
|
@@ -15385,8 +15421,8 @@ var init_wistia_player = __esm({
|
|
|
15385
15421
|
while (1) switch (_context1.n) {
|
|
15386
15422
|
case 0:
|
|
15387
15423
|
return _context1.a(2, new Promise(function(resolve, reject) {
|
|
15388
|
-
var
|
|
15389
|
-
if ((
|
|
15424
|
+
var _classPrivateFieldGet95;
|
|
15425
|
+
if ((_classPrivateFieldGet95 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
|
|
15390
15426
|
resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
|
|
15391
15427
|
}
|
|
15392
15428
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -15403,7 +15439,7 @@ var init_wistia_player = __esm({
|
|
|
15403
15439
|
key: "getRemapTime",
|
|
15404
15440
|
value: (function() {
|
|
15405
15441
|
var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee10() {
|
|
15406
|
-
var
|
|
15442
|
+
var _classPrivateFieldGet96, _this7 = this;
|
|
15407
15443
|
var _t, _t2, _t3, _t4;
|
|
15408
15444
|
return _regenerator().w(function(_context10) {
|
|
15409
15445
|
while (1) switch (_context10.n) {
|
|
@@ -15423,11 +15459,11 @@ var init_wistia_player = __esm({
|
|
|
15423
15459
|
});
|
|
15424
15460
|
return _context10.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
|
|
15425
15461
|
case 2:
|
|
15426
|
-
if (!((
|
|
15462
|
+
if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet96 !== void 0)) {
|
|
15427
15463
|
_context10.n = 3;
|
|
15428
15464
|
break;
|
|
15429
15465
|
}
|
|
15430
|
-
|
|
15466
|
+
_classPrivateFieldGet96;
|
|
15431
15467
|
_context10.n = 5;
|
|
15432
15468
|
break;
|
|
15433
15469
|
case 3:
|
|
@@ -15465,11 +15501,11 @@ var init_wistia_player = __esm({
|
|
|
15465
15501
|
key: "hideOverlay",
|
|
15466
15502
|
value: (function() {
|
|
15467
15503
|
var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11(name) {
|
|
15468
|
-
var
|
|
15504
|
+
var _classPrivateFieldGet97;
|
|
15469
15505
|
return _regenerator().w(function(_context11) {
|
|
15470
15506
|
while (1) switch (_context11.n) {
|
|
15471
15507
|
case 0:
|
|
15472
|
-
if (!((
|
|
15508
|
+
if (!((_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet97 !== void 0 && _classPrivateFieldGet97.cancelOverlay)) {
|
|
15473
15509
|
_context11.n = 1;
|
|
15474
15510
|
break;
|
|
15475
15511
|
}
|
|
@@ -15493,8 +15529,8 @@ var init_wistia_player = __esm({
|
|
|
15493
15529
|
while (1) switch (_context12.n) {
|
|
15494
15530
|
case 0:
|
|
15495
15531
|
return _context12.a(2, new Promise(function(resolve, reject) {
|
|
15496
|
-
var
|
|
15497
|
-
if ((
|
|
15532
|
+
var _classPrivateFieldGet98;
|
|
15533
|
+
if ((_classPrivateFieldGet98 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.popover) {
|
|
15498
15534
|
_classPrivateFieldGet(_api, _this8).popover.hide();
|
|
15499
15535
|
resolve();
|
|
15500
15536
|
}
|
|
@@ -15512,11 +15548,11 @@ var init_wistia_player = __esm({
|
|
|
15512
15548
|
key: "pause",
|
|
15513
15549
|
value: (function() {
|
|
15514
15550
|
var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee13() {
|
|
15515
|
-
var
|
|
15551
|
+
var _classPrivateFieldGet99;
|
|
15516
15552
|
return _regenerator().w(function(_context13) {
|
|
15517
15553
|
while (1) switch (_context13.n) {
|
|
15518
15554
|
case 0:
|
|
15519
|
-
return _context13.a(2, (
|
|
15555
|
+
return _context13.a(2, (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.pause());
|
|
15520
15556
|
}
|
|
15521
15557
|
}, _callee13, this);
|
|
15522
15558
|
}));
|
|
@@ -15529,11 +15565,11 @@ var init_wistia_player = __esm({
|
|
|
15529
15565
|
key: "play",
|
|
15530
15566
|
value: (function() {
|
|
15531
15567
|
var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
|
|
15532
|
-
var
|
|
15568
|
+
var _classPrivateFieldGet100;
|
|
15533
15569
|
return _regenerator().w(function(_context14) {
|
|
15534
15570
|
while (1) switch (_context14.n) {
|
|
15535
15571
|
case 0:
|
|
15536
|
-
return _context14.a(2, (
|
|
15572
|
+
return _context14.a(2, (_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.play());
|
|
15537
15573
|
}
|
|
15538
15574
|
}, _callee14, this);
|
|
15539
15575
|
}));
|
|
@@ -15546,11 +15582,11 @@ var init_wistia_player = __esm({
|
|
|
15546
15582
|
key: "releaseControls",
|
|
15547
15583
|
value: (function() {
|
|
15548
15584
|
var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15(name) {
|
|
15549
|
-
var
|
|
15585
|
+
var _classPrivateFieldGet101;
|
|
15550
15586
|
return _regenerator().w(function(_context15) {
|
|
15551
15587
|
while (1) switch (_context15.n) {
|
|
15552
15588
|
case 0:
|
|
15553
|
-
return _context15.a(2, (
|
|
15589
|
+
return _context15.a(2, (_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet101 === void 0 ? void 0 : _classPrivateFieldGet101.releaseControls(name));
|
|
15554
15590
|
}
|
|
15555
15591
|
}, _callee15, this);
|
|
15556
15592
|
}));
|
|
@@ -15611,7 +15647,7 @@ var init_wistia_player = __esm({
|
|
|
15611
15647
|
case 0:
|
|
15612
15648
|
options = _args16.length > 1 && _args16[1] !== void 0 ? _args16[1] : {};
|
|
15613
15649
|
return _context16.a(2, new Promise(function(resolve, reject) {
|
|
15614
|
-
var
|
|
15650
|
+
var _classPrivateFieldGet102;
|
|
15615
15651
|
if (!_classPrivateFieldGet(_api, _this0)) {
|
|
15616
15652
|
reject(new Error("api not ready to replace"));
|
|
15617
15653
|
}
|
|
@@ -15621,7 +15657,7 @@ var init_wistia_player = __esm({
|
|
|
15621
15657
|
resolve();
|
|
15622
15658
|
};
|
|
15623
15659
|
_this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
|
|
15624
|
-
(
|
|
15660
|
+
(_classPrivateFieldGet102 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.replaceWith(mediaId, options);
|
|
15625
15661
|
}));
|
|
15626
15662
|
}
|
|
15627
15663
|
}, _callee16);
|
|
@@ -15635,11 +15671,11 @@ var init_wistia_player = __esm({
|
|
|
15635
15671
|
key: "requestControls",
|
|
15636
15672
|
value: (function() {
|
|
15637
15673
|
var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee17(name) {
|
|
15638
|
-
var
|
|
15674
|
+
var _classPrivateFieldGet103;
|
|
15639
15675
|
return _regenerator().w(function(_context17) {
|
|
15640
15676
|
while (1) switch (_context17.n) {
|
|
15641
15677
|
case 0:
|
|
15642
|
-
return _context17.a(2, (
|
|
15678
|
+
return _context17.a(2, (_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.requestControls(name));
|
|
15643
15679
|
}
|
|
15644
15680
|
}, _callee17, this);
|
|
15645
15681
|
}));
|
|
@@ -15652,11 +15688,11 @@ var init_wistia_player = __esm({
|
|
|
15652
15688
|
key: "requestFullscreen",
|
|
15653
15689
|
value: (function() {
|
|
15654
15690
|
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18() {
|
|
15655
|
-
var
|
|
15691
|
+
var _classPrivateFieldGet104;
|
|
15656
15692
|
return _regenerator().w(function(_context18) {
|
|
15657
15693
|
while (1) switch (_context18.n) {
|
|
15658
15694
|
case 0:
|
|
15659
|
-
if (!((
|
|
15695
|
+
if (!((_classPrivateFieldGet104 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.requestFullscreen)) {
|
|
15660
15696
|
_context18.n = 1;
|
|
15661
15697
|
break;
|
|
15662
15698
|
}
|
|
@@ -15675,11 +15711,11 @@ var init_wistia_player = __esm({
|
|
|
15675
15711
|
key: "showOverlay",
|
|
15676
15712
|
value: (function() {
|
|
15677
15713
|
var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19(name) {
|
|
15678
|
-
var
|
|
15714
|
+
var _classPrivateFieldGet105;
|
|
15679
15715
|
return _regenerator().w(function(_context19) {
|
|
15680
15716
|
while (1) switch (_context19.n) {
|
|
15681
15717
|
case 0:
|
|
15682
|
-
if (!((
|
|
15718
|
+
if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet105 !== void 0 && _classPrivateFieldGet105.requestOverlay)) {
|
|
15683
15719
|
_context19.n = 1;
|
|
15684
15720
|
break;
|
|
15685
15721
|
}
|
|
@@ -15703,8 +15739,8 @@ var init_wistia_player = __esm({
|
|
|
15703
15739
|
while (1) switch (_context20.n) {
|
|
15704
15740
|
case 0:
|
|
15705
15741
|
return _context20.a(2, new Promise(function(resolve, reject) {
|
|
15706
|
-
var
|
|
15707
|
-
if ((
|
|
15742
|
+
var _classPrivateFieldGet106;
|
|
15743
|
+
if ((_classPrivateFieldGet106 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.popover) {
|
|
15708
15744
|
_classPrivateFieldGet(_api, _this1).popover.show();
|
|
15709
15745
|
resolve();
|
|
15710
15746
|
}
|
|
@@ -15915,7 +15951,7 @@ var init_wistia_player = __esm({
|
|
|
15915
15951
|
}, {
|
|
15916
15952
|
key: "disconnectedCallback",
|
|
15917
15953
|
value: function disconnectedCallback() {
|
|
15918
|
-
var
|
|
15954
|
+
var _classPrivateFieldGet107, _classPrivateFieldGet108, _this$shadowRoot;
|
|
15919
15955
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
|
|
15920
15956
|
return removeListener();
|
|
15921
15957
|
});
|
|
@@ -15923,10 +15959,10 @@ var init_wistia_player = __esm({
|
|
|
15923
15959
|
_classPrivateFieldSet(_eventListeners, this, {});
|
|
15924
15960
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
15925
15961
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
|
|
15926
|
-
(
|
|
15962
|
+
(_classPrivateFieldGet107 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet107 === void 0 ? void 0 : _classPrivateFieldGet107.disconnect();
|
|
15927
15963
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
15928
15964
|
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
15929
|
-
(
|
|
15965
|
+
(_classPrivateFieldGet108 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : _classPrivateFieldGet108.remove();
|
|
15930
15966
|
_classPrivateFieldSet(_api, this, null);
|
|
15931
15967
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
15932
15968
|
_classPrivateFieldSet(_preactRoot, this, null);
|