@wistia/wistia-player-react 0.7.9 → 0.7.10
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.
|
@@ -2,8 +2,13 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __esm = (fn, res) => function __init() {
|
|
6
|
-
|
|
5
|
+
var __esm = (fn, res, err) => function __init() {
|
|
6
|
+
if (err) throw err[0];
|
|
7
|
+
try {
|
|
8
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
9
|
+
} catch (e) {
|
|
10
|
+
throw err = [e], e;
|
|
11
|
+
}
|
|
7
12
|
};
|
|
8
13
|
var __export = (target, all) => {
|
|
9
14
|
for (var name in all)
|
|
@@ -482,14 +487,17 @@ function _defaultLocalization() {
|
|
|
482
487
|
};
|
|
483
488
|
}
|
|
484
489
|
function _deferMediaDataFetchingToCarouselEmbed() {
|
|
490
|
+
if (!(0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.uI)(this.id)) {
|
|
491
|
+
return false;
|
|
492
|
+
}
|
|
485
493
|
return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
486
494
|
}
|
|
487
495
|
function _findLocalizationByLanguage(language) {
|
|
488
|
-
var
|
|
496
|
+
var _classPrivateFieldGet123;
|
|
489
497
|
if (language == null) {
|
|
490
498
|
return void 0;
|
|
491
499
|
}
|
|
492
|
-
return (
|
|
500
|
+
return (_classPrivateFieldGet123 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.find(function(localization) {
|
|
493
501
|
return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
|
|
494
502
|
});
|
|
495
503
|
}
|
|
@@ -534,8 +542,8 @@ function _initPlayerEmbed(_ref22) {
|
|
|
534
542
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
535
543
|
}
|
|
536
544
|
if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
|
|
537
|
-
var
|
|
538
|
-
(
|
|
545
|
+
var _classPrivateFieldGet124;
|
|
546
|
+
(_classPrivateFieldGet124 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.states.delete("--initializing");
|
|
539
547
|
}
|
|
540
548
|
void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
|
|
541
549
|
container,
|
|
@@ -581,10 +589,10 @@ function _initPublicApi2() {
|
|
|
581
589
|
_this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
|
|
582
590
|
});
|
|
583
591
|
_classPrivateFieldGet(_api, this).ready(function() {
|
|
584
|
-
var
|
|
585
|
-
(
|
|
592
|
+
var _classPrivateFieldGet131, _classPrivateFieldGet132;
|
|
593
|
+
(_classPrivateFieldGet131 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.disconnect();
|
|
586
594
|
_classPrivateFieldSet(_resizeObserver, _this19, null);
|
|
587
|
-
(
|
|
595
|
+
(_classPrivateFieldGet132 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet132 === void 0 ? void 0 : _classPrivateFieldGet132.remove();
|
|
588
596
|
_this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
|
|
589
597
|
_this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
|
|
590
598
|
detail: {
|
|
@@ -656,8 +664,8 @@ function _maybeInitializeMux2() {
|
|
|
656
664
|
this.addEventListener("visitor-tracking-change", function(event) {
|
|
657
665
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
658
666
|
if (!isTrackingEnabled) {
|
|
659
|
-
var
|
|
660
|
-
(
|
|
667
|
+
var _classPrivateFieldGet134, _classPrivateFieldGet135;
|
|
668
|
+
(_classPrivateFieldGet134 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet134 === void 0 ? void 0 : (_classPrivateFieldGet135 = _classPrivateFieldGet134.mux) === null || _classPrivateFieldGet135 === void 0 ? void 0 : _classPrivateFieldGet135.destroy();
|
|
661
669
|
}
|
|
662
670
|
});
|
|
663
671
|
case 6:
|
|
@@ -761,8 +769,8 @@ function _renderPreloadThumbnail() {
|
|
|
761
769
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
762
770
|
return;
|
|
763
771
|
}
|
|
764
|
-
var
|
|
765
|
-
var
|
|
772
|
+
var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet125.assets, mediaType = _classPrivateFieldGet125.mediaType, carouselHardWall = _classPrivateFieldGet125.carouselHardWall;
|
|
773
|
+
var _classPrivateFieldGet126 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet126.autoPlay, plugin = _classPrivateFieldGet126.plugin;
|
|
766
774
|
if (carouselHardWall) {
|
|
767
775
|
return;
|
|
768
776
|
}
|
|
@@ -798,12 +806,12 @@ function _runMethodsFromAttributes() {
|
|
|
798
806
|
var _this14 = this;
|
|
799
807
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
|
|
800
808
|
this.whenApiReady().then(function() {
|
|
801
|
-
var _ref24,
|
|
809
|
+
var _ref24, _classPrivateFieldGet127, _classPrivateFieldGet128;
|
|
802
810
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
|
|
803
|
-
var isClosedPopover = (_ref24 = ((
|
|
811
|
+
var isClosedPopover = (_ref24 = ((_classPrivateFieldGet127 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref24 !== void 0 ? _ref24 : false;
|
|
804
812
|
var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
|
|
805
813
|
var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
|
|
806
|
-
void ((
|
|
814
|
+
void ((_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.time(newTime, {
|
|
807
815
|
lazy: shouldDelayUntilPlay
|
|
808
816
|
}));
|
|
809
817
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
|
|
@@ -815,9 +823,9 @@ function _runMethodsFromAttributes() {
|
|
|
815
823
|
}
|
|
816
824
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
|
|
817
825
|
this.whenApiReady().then(function() {
|
|
818
|
-
var
|
|
826
|
+
var _classPrivateFieldGet129;
|
|
819
827
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
|
|
820
|
-
(
|
|
828
|
+
(_classPrivateFieldGet129 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet129 === void 0 ? void 0 : _classPrivateFieldGet129.setVideoQuality(newQuality);
|
|
821
829
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
|
|
822
830
|
}).catch(function(_error) {
|
|
823
831
|
});
|
|
@@ -4761,6 +4769,7 @@ var init_wistia_player = __esm({
|
|
|
4761
4769
|
var INTERNAL_API_ON_FIND_EVENT = "internal-api-on-find";
|
|
4762
4770
|
var LOADED_MEDIA_DATA_EVENT = "loaded-media-data";
|
|
4763
4771
|
var MUTE_CHANGE_EVENT = "mute-change";
|
|
4772
|
+
var PLAYER_COLOR_CHANGE_EVENT = "playercolorchange";
|
|
4764
4773
|
var TIME_UPDATE_EVENT = "time-update";
|
|
4765
4774
|
},
|
|
4766
4775
|
/***/
|
|
@@ -9201,8 +9210,8 @@ var init_wistia_player = __esm({
|
|
|
9201
9210
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9202
9211
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
9203
9212
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9204
|
-
var TAGGED_VERSION = "0.7.
|
|
9205
|
-
var CURRENT_SHA = "
|
|
9213
|
+
var TAGGED_VERSION = "0.7.10";
|
|
9214
|
+
var CURRENT_SHA = "47fc839b53fd9b104159ae2f4f03ebe022191e45";
|
|
9206
9215
|
var DEFAULT_PROTOCOL = (function() {
|
|
9207
9216
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
9208
9217
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -14555,7 +14564,7 @@ var init_wistia_player = __esm({
|
|
|
14555
14564
|
_utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__2(4989);
|
|
14556
14565
|
_types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__2(7350);
|
|
14557
14566
|
requiredAttributes = ["media-id"];
|
|
14558
|
-
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", "fit-strategy", "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", "rounded-playlist", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
|
|
14567
|
+
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", "fit-strategy", "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", "rounded-playlist", "rotate-to-fullscreen", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
|
|
14559
14568
|
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"];
|
|
14560
14569
|
defaultEmbedOptions = {
|
|
14561
14570
|
audioDescriptionControl: false,
|
|
@@ -14600,6 +14609,7 @@ var init_wistia_player = __esm({
|
|
|
14600
14609
|
qualityMax: void 0,
|
|
14601
14610
|
qualityMin: void 0,
|
|
14602
14611
|
resumable: "auto",
|
|
14612
|
+
rotateToFullscreen: false,
|
|
14603
14613
|
roundedPlayer: void 0,
|
|
14604
14614
|
seo: true,
|
|
14605
14615
|
settingsControl: true,
|
|
@@ -15788,6 +15798,23 @@ var init_wistia_player = __esm({
|
|
|
15788
15798
|
(_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
|
|
15789
15799
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
|
|
15790
15800
|
}
|
|
15801
|
+
/**
|
|
15802
|
+
* Returns whether the player enters fullscreen when a touch device is rotated
|
|
15803
|
+
* to landscape while the video is playing (and exits on rotate back to
|
|
15804
|
+
* portrait). Opt-in; off by default.
|
|
15805
|
+
* @returns {boolean}
|
|
15806
|
+
*/
|
|
15807
|
+
}, {
|
|
15808
|
+
key: "rotateToFullscreen",
|
|
15809
|
+
get: function get() {
|
|
15810
|
+
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "rotateToFullscreen");
|
|
15811
|
+
},
|
|
15812
|
+
set: function set(shouldRotateToFullscreen) {
|
|
15813
|
+
var _classPrivateFieldGet78;
|
|
15814
|
+
var attrAsBoolean = shouldRotateToFullscreen === "true" || shouldRotateToFullscreen === true;
|
|
15815
|
+
(_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.rotateToFullscreen(attrAsBoolean);
|
|
15816
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "rotateToFullscreen", attrAsBoolean);
|
|
15817
|
+
}
|
|
15791
15818
|
/**
|
|
15792
15819
|
* Returns a value which controls all rounded corners of the player.
|
|
15793
15820
|
* @returns {number}
|
|
@@ -15798,8 +15825,8 @@ var init_wistia_player = __esm({
|
|
|
15798
15825
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
|
|
15799
15826
|
},
|
|
15800
15827
|
set: function set(radius) {
|
|
15801
|
-
var
|
|
15802
|
-
(
|
|
15828
|
+
var _classPrivateFieldGet79;
|
|
15829
|
+
(_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.setRoundedPlayer(Number(radius));
|
|
15803
15830
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
|
|
15804
15831
|
}
|
|
15805
15832
|
/**
|
|
@@ -15810,8 +15837,8 @@ var init_wistia_player = __esm({
|
|
|
15810
15837
|
}, {
|
|
15811
15838
|
key: "secondsWatched",
|
|
15812
15839
|
get: function get() {
|
|
15813
|
-
var
|
|
15814
|
-
return (
|
|
15840
|
+
var _classPrivateFieldGet80, _classPrivateFieldGet81;
|
|
15841
|
+
return (_classPrivateFieldGet80 = (_classPrivateFieldGet81 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.secondsWatched()) !== null && _classPrivateFieldGet80 !== void 0 ? _classPrivateFieldGet80 : 0;
|
|
15815
15842
|
}
|
|
15816
15843
|
/**
|
|
15817
15844
|
* Returns an array where each index represents the number of times the viewer has watched each second of the video.
|
|
@@ -15820,8 +15847,8 @@ var init_wistia_player = __esm({
|
|
|
15820
15847
|
}, {
|
|
15821
15848
|
key: "secondsWatchedVector",
|
|
15822
15849
|
get: function get() {
|
|
15823
|
-
var
|
|
15824
|
-
return (
|
|
15850
|
+
var _classPrivateFieldGet82, _classPrivateFieldGet83;
|
|
15851
|
+
return (_classPrivateFieldGet82 = (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.secondsWatchedVector()) !== null && _classPrivateFieldGet82 !== void 0 ? _classPrivateFieldGet82 : [];
|
|
15825
15852
|
}
|
|
15826
15853
|
/**
|
|
15827
15854
|
* Returns whether JSON+LD seo data will be injected.
|
|
@@ -15845,8 +15872,8 @@ var init_wistia_player = __esm({
|
|
|
15845
15872
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
|
|
15846
15873
|
},
|
|
15847
15874
|
set: function set(shouldDisplay) {
|
|
15848
|
-
var
|
|
15849
|
-
(
|
|
15875
|
+
var _classPrivateFieldGet84;
|
|
15876
|
+
(_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.settingsControlEnabled(shouldDisplay);
|
|
15850
15877
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
|
|
15851
15878
|
}
|
|
15852
15879
|
/**
|
|
@@ -15868,10 +15895,10 @@ var init_wistia_player = __esm({
|
|
|
15868
15895
|
}, {
|
|
15869
15896
|
key: "sourceLanguage",
|
|
15870
15897
|
get: function get() {
|
|
15871
|
-
var
|
|
15872
|
-
return (
|
|
15898
|
+
var _classPrivateFieldGet85, _classPrivateFieldGet86, _classPrivateFieldGet87;
|
|
15899
|
+
return (_classPrivateFieldGet85 = (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.find(function(loc) {
|
|
15873
15900
|
return loc.isOriginal;
|
|
15874
|
-
})) !== null &&
|
|
15901
|
+
})) !== null && _classPrivateFieldGet85 !== void 0 ? _classPrivateFieldGet85 : (_classPrivateFieldGet87 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87[0];
|
|
15875
15902
|
}
|
|
15876
15903
|
/**
|
|
15877
15904
|
* Returns the source media id for the player. If a player has different localized versions,
|
|
@@ -15891,8 +15918,8 @@ var init_wistia_player = __esm({
|
|
|
15891
15918
|
}, {
|
|
15892
15919
|
key: "state",
|
|
15893
15920
|
get: function get() {
|
|
15894
|
-
var
|
|
15895
|
-
return (
|
|
15921
|
+
var _classPrivateFieldGet88, _classPrivateFieldGet89;
|
|
15922
|
+
return (_classPrivateFieldGet88 = (_classPrivateFieldGet89 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.state()) !== null && _classPrivateFieldGet88 !== void 0 ? _classPrivateFieldGet88 : defaultEmbedOptions.state;
|
|
15896
15923
|
}
|
|
15897
15924
|
/**
|
|
15898
15925
|
* Returns the stats url for the player.
|
|
@@ -15974,12 +16001,12 @@ var init_wistia_player = __esm({
|
|
|
15974
16001
|
}, {
|
|
15975
16002
|
key: "videoQuality",
|
|
15976
16003
|
get: function get() {
|
|
15977
|
-
var _ref11,
|
|
15978
|
-
return (_ref11 = (
|
|
16004
|
+
var _ref11, _classPrivateFieldGet90, _classPrivateFieldGet91;
|
|
16005
|
+
return (_ref11 = (_classPrivateFieldGet90 = (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.getVideoQuality()) !== null && _classPrivateFieldGet90 !== void 0 ? _classPrivateFieldGet90 : this.embedOptions.videoQuality) !== null && _ref11 !== void 0 ? _ref11 : "auto";
|
|
15979
16006
|
},
|
|
15980
16007
|
set: function set(quality) {
|
|
15981
|
-
var
|
|
15982
|
-
(
|
|
16008
|
+
var _classPrivateFieldGet92;
|
|
16009
|
+
(_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.setVideoQuality(quality);
|
|
15983
16010
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
|
|
15984
16011
|
}
|
|
15985
16012
|
/**
|
|
@@ -16002,8 +16029,8 @@ var init_wistia_player = __esm({
|
|
|
16002
16029
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
|
|
16003
16030
|
},
|
|
16004
16031
|
set: function set(level) {
|
|
16005
|
-
var
|
|
16006
|
-
(
|
|
16032
|
+
var _classPrivateFieldGet93;
|
|
16033
|
+
(_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volume(level);
|
|
16007
16034
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
|
|
16008
16035
|
}
|
|
16009
16036
|
/**
|
|
@@ -16018,8 +16045,8 @@ var init_wistia_player = __esm({
|
|
|
16018
16045
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
|
|
16019
16046
|
},
|
|
16020
16047
|
set: function set(shouldDisplay) {
|
|
16021
|
-
var
|
|
16022
|
-
(
|
|
16048
|
+
var _classPrivateFieldGet94;
|
|
16049
|
+
(_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.volumeControlEnabled(shouldDisplay);
|
|
16023
16050
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
|
|
16024
16051
|
}
|
|
16025
16052
|
/**
|
|
@@ -16065,11 +16092,11 @@ var init_wistia_player = __esm({
|
|
|
16065
16092
|
key: "cancelFullscreen",
|
|
16066
16093
|
value: (function() {
|
|
16067
16094
|
var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
|
|
16068
|
-
var
|
|
16095
|
+
var _classPrivateFieldGet95, _this3 = this;
|
|
16069
16096
|
return _regenerator().w(function(_context) {
|
|
16070
16097
|
while (1) switch (_context.n) {
|
|
16071
16098
|
case 0:
|
|
16072
|
-
return _context.a(2, (
|
|
16099
|
+
return _context.a(2, (_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.cancelFullscreen().then(function() {
|
|
16073
16100
|
_this3._fullscreenState.heightBeforeFullscreen = void 0;
|
|
16074
16101
|
_this3._fullscreenState.widthBeforeFullscreen = void 0;
|
|
16075
16102
|
}));
|
|
@@ -16085,11 +16112,11 @@ var init_wistia_player = __esm({
|
|
|
16085
16112
|
key: "createOverlay",
|
|
16086
16113
|
value: (function() {
|
|
16087
16114
|
var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
|
|
16088
|
-
var
|
|
16115
|
+
var _classPrivateFieldGet96;
|
|
16089
16116
|
return _regenerator().w(function(_context2) {
|
|
16090
16117
|
while (1) switch (_context2.n) {
|
|
16091
16118
|
case 0:
|
|
16092
|
-
if (!((
|
|
16119
|
+
if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.defineOverlay)) {
|
|
16093
16120
|
_context2.n = 1;
|
|
16094
16121
|
break;
|
|
16095
16122
|
}
|
|
@@ -16115,11 +16142,11 @@ var init_wistia_player = __esm({
|
|
|
16115
16142
|
case 0:
|
|
16116
16143
|
addPlugin = /* @__PURE__ */ (function() {
|
|
16117
16144
|
var _ref12 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
|
|
16118
|
-
var
|
|
16145
|
+
var _classPrivateFieldGet97, _classPrivateFieldGet98;
|
|
16119
16146
|
return _regenerator().w(function(_context3) {
|
|
16120
16147
|
while (1) switch (_context3.n) {
|
|
16121
16148
|
case 0:
|
|
16122
|
-
return _context3.a(2, (
|
|
16149
|
+
return _context3.a(2, (_classPrivateFieldGet97 = (_classPrivateFieldGet98 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.addPlugin(name, options)) !== null && _classPrivateFieldGet97 !== void 0 ? _classPrivateFieldGet97 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
|
|
16123
16150
|
}
|
|
16124
16151
|
}, _callee3);
|
|
16125
16152
|
}));
|
|
@@ -16164,11 +16191,11 @@ var init_wistia_player = __esm({
|
|
|
16164
16191
|
key: "deleteOverlay",
|
|
16165
16192
|
value: (function() {
|
|
16166
16193
|
var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
|
|
16167
|
-
var
|
|
16194
|
+
var _classPrivateFieldGet99;
|
|
16168
16195
|
return _regenerator().w(function(_context6) {
|
|
16169
16196
|
while (1) switch (_context6.n) {
|
|
16170
16197
|
case 0:
|
|
16171
|
-
if (!((
|
|
16198
|
+
if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.undefineOverlay)) {
|
|
16172
16199
|
_context6.n = 1;
|
|
16173
16200
|
break;
|
|
16174
16201
|
}
|
|
@@ -16187,11 +16214,11 @@ var init_wistia_player = __esm({
|
|
|
16187
16214
|
key: "disableControl",
|
|
16188
16215
|
value: (function() {
|
|
16189
16216
|
var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
|
|
16190
|
-
var
|
|
16217
|
+
var _classPrivateFieldGet100;
|
|
16191
16218
|
return _regenerator().w(function(_context7) {
|
|
16192
16219
|
while (1) switch (_context7.n) {
|
|
16193
16220
|
case 0:
|
|
16194
|
-
if (!((
|
|
16221
|
+
if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
|
|
16195
16222
|
_context7.n = 1;
|
|
16196
16223
|
break;
|
|
16197
16224
|
}
|
|
@@ -16210,11 +16237,11 @@ var init_wistia_player = __esm({
|
|
|
16210
16237
|
key: "enableControl",
|
|
16211
16238
|
value: (function() {
|
|
16212
16239
|
var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
|
|
16213
|
-
var
|
|
16240
|
+
var _classPrivateFieldGet101;
|
|
16214
16241
|
return _regenerator().w(function(_context8) {
|
|
16215
16242
|
while (1) switch (_context8.n) {
|
|
16216
16243
|
case 0:
|
|
16217
|
-
if (!((
|
|
16244
|
+
if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.setControlEnabled)) {
|
|
16218
16245
|
_context8.n = 1;
|
|
16219
16246
|
break;
|
|
16220
16247
|
}
|
|
@@ -16233,16 +16260,16 @@ var init_wistia_player = __esm({
|
|
|
16233
16260
|
key: "enterInputContext",
|
|
16234
16261
|
value: (function() {
|
|
16235
16262
|
var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
|
|
16236
|
-
var
|
|
16263
|
+
var _classPrivateFieldGet102, _this5 = this;
|
|
16237
16264
|
return _regenerator().w(function(_context9) {
|
|
16238
16265
|
while (1) switch (_context9.n) {
|
|
16239
16266
|
case 0:
|
|
16240
|
-
if (!((
|
|
16267
|
+
if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet102 !== void 0 && _classPrivateFieldGet102.enterInputContext)) {
|
|
16241
16268
|
_context9.n = 1;
|
|
16242
16269
|
break;
|
|
16243
16270
|
}
|
|
16244
16271
|
return _context9.a(2, new Promise(function(resolve) {
|
|
16245
|
-
var
|
|
16272
|
+
var _classPrivateFieldGet103;
|
|
16246
16273
|
var _handler = function handler(event) {
|
|
16247
16274
|
var detail = event.detail;
|
|
16248
16275
|
if (detail.context === context) {
|
|
@@ -16251,7 +16278,7 @@ var init_wistia_player = __esm({
|
|
|
16251
16278
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
|
|
16252
16279
|
};
|
|
16253
16280
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
|
|
16254
|
-
(
|
|
16281
|
+
(_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.enterInputContext(context);
|
|
16255
16282
|
}));
|
|
16256
16283
|
case 1:
|
|
16257
16284
|
return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
|
|
@@ -16267,11 +16294,11 @@ var init_wistia_player = __esm({
|
|
|
16267
16294
|
key: "exitInputContext",
|
|
16268
16295
|
value: (function() {
|
|
16269
16296
|
var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
|
|
16270
|
-
var
|
|
16297
|
+
var _classPrivateFieldGet104;
|
|
16271
16298
|
return _regenerator().w(function(_context0) {
|
|
16272
16299
|
while (1) switch (_context0.n) {
|
|
16273
16300
|
case 0:
|
|
16274
|
-
if (!((
|
|
16301
|
+
if (!((_classPrivateFieldGet104 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.exitInputContext)) {
|
|
16275
16302
|
_context0.n = 1;
|
|
16276
16303
|
break;
|
|
16277
16304
|
}
|
|
@@ -16318,8 +16345,8 @@ var init_wistia_player = __esm({
|
|
|
16318
16345
|
while (1) switch (_context10.n) {
|
|
16319
16346
|
case 0:
|
|
16320
16347
|
return _context10.a(2, new Promise(function(resolve, reject) {
|
|
16321
|
-
var
|
|
16322
|
-
if ((
|
|
16348
|
+
var _classPrivateFieldGet105;
|
|
16349
|
+
if ((_classPrivateFieldGet105 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet105 !== void 0 && _classPrivateFieldGet105.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
|
|
16323
16350
|
resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
|
|
16324
16351
|
}
|
|
16325
16352
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -16336,7 +16363,7 @@ var init_wistia_player = __esm({
|
|
|
16336
16363
|
key: "getRemapTime",
|
|
16337
16364
|
value: (function() {
|
|
16338
16365
|
var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
|
|
16339
|
-
var
|
|
16366
|
+
var _classPrivateFieldGet106, _this7 = this;
|
|
16340
16367
|
var _t, _t2, _t3;
|
|
16341
16368
|
return _regenerator().w(function(_context11) {
|
|
16342
16369
|
while (1) switch (_context11.n) {
|
|
@@ -16356,11 +16383,11 @@ var init_wistia_player = __esm({
|
|
|
16356
16383
|
});
|
|
16357
16384
|
return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
|
|
16358
16385
|
case 2:
|
|
16359
|
-
if (!((
|
|
16386
|
+
if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet106 !== void 0)) {
|
|
16360
16387
|
_context11.n = 3;
|
|
16361
16388
|
break;
|
|
16362
16389
|
}
|
|
16363
|
-
|
|
16390
|
+
_classPrivateFieldGet106;
|
|
16364
16391
|
_context11.n = 5;
|
|
16365
16392
|
break;
|
|
16366
16393
|
case 3:
|
|
@@ -16397,11 +16424,11 @@ var init_wistia_player = __esm({
|
|
|
16397
16424
|
key: "hideOverlay",
|
|
16398
16425
|
value: (function() {
|
|
16399
16426
|
var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
|
|
16400
|
-
var
|
|
16427
|
+
var _classPrivateFieldGet107;
|
|
16401
16428
|
return _regenerator().w(function(_context12) {
|
|
16402
16429
|
while (1) switch (_context12.n) {
|
|
16403
16430
|
case 0:
|
|
16404
|
-
if (!((
|
|
16431
|
+
if (!((_classPrivateFieldGet107 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.cancelOverlay)) {
|
|
16405
16432
|
_context12.n = 1;
|
|
16406
16433
|
break;
|
|
16407
16434
|
}
|
|
@@ -16425,8 +16452,8 @@ var init_wistia_player = __esm({
|
|
|
16425
16452
|
while (1) switch (_context13.n) {
|
|
16426
16453
|
case 0:
|
|
16427
16454
|
return _context13.a(2, new Promise(function(resolve, reject) {
|
|
16428
|
-
var
|
|
16429
|
-
if ((
|
|
16455
|
+
var _classPrivateFieldGet108;
|
|
16456
|
+
if ((_classPrivateFieldGet108 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet108 !== void 0 && _classPrivateFieldGet108.popover) {
|
|
16430
16457
|
_classPrivateFieldGet(_api, _this8).popover.hide();
|
|
16431
16458
|
resolve();
|
|
16432
16459
|
}
|
|
@@ -16443,14 +16470,14 @@ var init_wistia_player = __esm({
|
|
|
16443
16470
|
}, {
|
|
16444
16471
|
key: "languagesToLocalizations",
|
|
16445
16472
|
value: function languagesToLocalizations(languages) {
|
|
16446
|
-
var
|
|
16447
|
-
return (
|
|
16473
|
+
var _classPrivateFieldGet109, _classPrivateFieldGet110;
|
|
16474
|
+
return (_classPrivateFieldGet109 = (_classPrivateFieldGet110 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet109 !== void 0 ? _classPrivateFieldGet109 : [];
|
|
16448
16475
|
}
|
|
16449
16476
|
}, {
|
|
16450
16477
|
key: "languageToLocalization",
|
|
16451
16478
|
value: function languageToLocalization(language) {
|
|
16452
|
-
var
|
|
16453
|
-
return (
|
|
16479
|
+
var _classPrivateFieldGet111, _classPrivateFieldGet112;
|
|
16480
|
+
return (_classPrivateFieldGet111 = (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.languageToLocalization(language)) !== null && _classPrivateFieldGet111 !== void 0 ? _classPrivateFieldGet111 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
16454
16481
|
}
|
|
16455
16482
|
/**
|
|
16456
16483
|
* Pauses the video.
|
|
@@ -16462,11 +16489,11 @@ var init_wistia_player = __esm({
|
|
|
16462
16489
|
key: "pause",
|
|
16463
16490
|
value: (function() {
|
|
16464
16491
|
var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
|
|
16465
|
-
var
|
|
16492
|
+
var _classPrivateFieldGet113;
|
|
16466
16493
|
return _regenerator().w(function(_context14) {
|
|
16467
16494
|
while (1) switch (_context14.n) {
|
|
16468
16495
|
case 0:
|
|
16469
|
-
return _context14.a(2, (
|
|
16496
|
+
return _context14.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.pause());
|
|
16470
16497
|
}
|
|
16471
16498
|
}, _callee14, this);
|
|
16472
16499
|
}));
|
|
@@ -16479,11 +16506,11 @@ var init_wistia_player = __esm({
|
|
|
16479
16506
|
key: "play",
|
|
16480
16507
|
value: (function() {
|
|
16481
16508
|
var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
|
|
16482
|
-
var
|
|
16509
|
+
var _classPrivateFieldGet114;
|
|
16483
16510
|
return _regenerator().w(function(_context15) {
|
|
16484
16511
|
while (1) switch (_context15.n) {
|
|
16485
16512
|
case 0:
|
|
16486
|
-
return _context15.a(2, (
|
|
16513
|
+
return _context15.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.play());
|
|
16487
16514
|
}
|
|
16488
16515
|
}, _callee15, this);
|
|
16489
16516
|
}));
|
|
@@ -16496,11 +16523,11 @@ var init_wistia_player = __esm({
|
|
|
16496
16523
|
key: "releaseControls",
|
|
16497
16524
|
value: (function() {
|
|
16498
16525
|
var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
|
|
16499
|
-
var
|
|
16526
|
+
var _classPrivateFieldGet115;
|
|
16500
16527
|
return _regenerator().w(function(_context16) {
|
|
16501
16528
|
while (1) switch (_context16.n) {
|
|
16502
16529
|
case 0:
|
|
16503
|
-
return _context16.a(2, (
|
|
16530
|
+
return _context16.a(2, (_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.releaseControls(name));
|
|
16504
16531
|
}
|
|
16505
16532
|
}, _callee16, this);
|
|
16506
16533
|
}));
|
|
@@ -16561,7 +16588,7 @@ var init_wistia_player = __esm({
|
|
|
16561
16588
|
case 0:
|
|
16562
16589
|
options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
|
|
16563
16590
|
return _context17.a(2, new Promise(function(resolve, reject) {
|
|
16564
|
-
var
|
|
16591
|
+
var _classPrivateFieldGet116;
|
|
16565
16592
|
if (!_classPrivateFieldGet(_api, _this0)) {
|
|
16566
16593
|
reject(new Error("api not ready to replace"));
|
|
16567
16594
|
}
|
|
@@ -16571,7 +16598,7 @@ var init_wistia_player = __esm({
|
|
|
16571
16598
|
resolve();
|
|
16572
16599
|
};
|
|
16573
16600
|
_this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
|
|
16574
|
-
(
|
|
16601
|
+
(_classPrivateFieldGet116 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.replaceWith(mediaId, options);
|
|
16575
16602
|
}));
|
|
16576
16603
|
}
|
|
16577
16604
|
}, _callee17);
|
|
@@ -16585,11 +16612,11 @@ var init_wistia_player = __esm({
|
|
|
16585
16612
|
key: "requestControls",
|
|
16586
16613
|
value: (function() {
|
|
16587
16614
|
var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
|
|
16588
|
-
var
|
|
16615
|
+
var _classPrivateFieldGet117;
|
|
16589
16616
|
return _regenerator().w(function(_context18) {
|
|
16590
16617
|
while (1) switch (_context18.n) {
|
|
16591
16618
|
case 0:
|
|
16592
|
-
return _context18.a(2, (
|
|
16619
|
+
return _context18.a(2, (_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.requestControls(name));
|
|
16593
16620
|
}
|
|
16594
16621
|
}, _callee18, this);
|
|
16595
16622
|
}));
|
|
@@ -16602,11 +16629,11 @@ var init_wistia_player = __esm({
|
|
|
16602
16629
|
key: "requestFullscreen",
|
|
16603
16630
|
value: (function() {
|
|
16604
16631
|
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
|
|
16605
|
-
var
|
|
16632
|
+
var _classPrivateFieldGet118;
|
|
16606
16633
|
return _regenerator().w(function(_context19) {
|
|
16607
16634
|
while (1) switch (_context19.n) {
|
|
16608
16635
|
case 0:
|
|
16609
|
-
if (!((
|
|
16636
|
+
if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestFullscreen)) {
|
|
16610
16637
|
_context19.n = 1;
|
|
16611
16638
|
break;
|
|
16612
16639
|
}
|
|
@@ -16625,11 +16652,11 @@ var init_wistia_player = __esm({
|
|
|
16625
16652
|
key: "showOverlay",
|
|
16626
16653
|
value: (function() {
|
|
16627
16654
|
var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
|
|
16628
|
-
var
|
|
16655
|
+
var _classPrivateFieldGet119;
|
|
16629
16656
|
return _regenerator().w(function(_context20) {
|
|
16630
16657
|
while (1) switch (_context20.n) {
|
|
16631
16658
|
case 0:
|
|
16632
|
-
if (!((
|
|
16659
|
+
if (!((_classPrivateFieldGet119 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.requestOverlay)) {
|
|
16633
16660
|
_context20.n = 1;
|
|
16634
16661
|
break;
|
|
16635
16662
|
}
|
|
@@ -16653,8 +16680,8 @@ var init_wistia_player = __esm({
|
|
|
16653
16680
|
while (1) switch (_context21.n) {
|
|
16654
16681
|
case 0:
|
|
16655
16682
|
return _context21.a(2, new Promise(function(resolve, reject) {
|
|
16656
|
-
var
|
|
16657
|
-
if ((
|
|
16683
|
+
var _classPrivateFieldGet120;
|
|
16684
|
+
if ((_classPrivateFieldGet120 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet120 !== void 0 && _classPrivateFieldGet120.popover) {
|
|
16658
16685
|
_classPrivateFieldGet(_api, _this1).popover.show();
|
|
16659
16686
|
resolve();
|
|
16660
16687
|
}
|
|
@@ -16878,7 +16905,7 @@ var init_wistia_player = __esm({
|
|
|
16878
16905
|
}, {
|
|
16879
16906
|
key: "disconnectedCallback",
|
|
16880
16907
|
value: function disconnectedCallback() {
|
|
16881
|
-
var
|
|
16908
|
+
var _classPrivateFieldGet121, _classPrivateFieldGet122, _this$shadowRoot;
|
|
16882
16909
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
|
|
16883
16910
|
return removeListener();
|
|
16884
16911
|
});
|
|
@@ -16886,10 +16913,10 @@ var init_wistia_player = __esm({
|
|
|
16886
16913
|
_classPrivateFieldSet(_eventListeners, this, {});
|
|
16887
16914
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
16888
16915
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
|
|
16889
|
-
(
|
|
16916
|
+
(_classPrivateFieldGet121 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.disconnect();
|
|
16890
16917
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
16891
16918
|
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
16892
|
-
(
|
|
16919
|
+
(_classPrivateFieldGet122 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.remove();
|
|
16893
16920
|
_classPrivateFieldSet(_api, this, null);
|
|
16894
16921
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
16895
16922
|
_classPrivateFieldSet(_preactRoot, this, null);
|