@wistia/wistia-player-react 0.6.16 → 0.6.18

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.
@@ -467,11 +467,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
467
467
  return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
468
468
  }
469
469
  function _findLocalizationByLanguage(language) {
470
- var _classPrivateFieldGet118;
470
+ var _classPrivateFieldGet119;
471
471
  if (language == null) {
472
472
  return void 0;
473
473
  }
474
- return (_classPrivateFieldGet118 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet118 === void 0 ? void 0 : _classPrivateFieldGet118.find(function(localization) {
474
+ return (_classPrivateFieldGet119 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet119 === void 0 ? void 0 : _classPrivateFieldGet119.find(function(localization) {
475
475
  return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
476
476
  });
477
477
  }
@@ -516,8 +516,8 @@ function _initPlayerEmbed(_ref21) {
516
516
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
517
517
  }
518
518
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
519
- var _classPrivateFieldGet119;
520
- (_classPrivateFieldGet119 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet119 === void 0 ? void 0 : _classPrivateFieldGet119.states.delete("--initializing");
519
+ var _classPrivateFieldGet120;
520
+ (_classPrivateFieldGet120 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.states.delete("--initializing");
521
521
  }
522
522
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
523
523
  container,
@@ -563,10 +563,10 @@ function _initPublicApi2() {
563
563
  _this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
564
564
  });
565
565
  _classPrivateFieldGet(_api, this).ready(function() {
566
- var _classPrivateFieldGet126, _classPrivateFieldGet127;
567
- (_classPrivateFieldGet126 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : _classPrivateFieldGet126.disconnect();
566
+ var _classPrivateFieldGet127, _classPrivateFieldGet128;
567
+ (_classPrivateFieldGet127 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.disconnect();
568
568
  _classPrivateFieldSet(_resizeObserver, _this19, null);
569
- (_classPrivateFieldGet127 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.remove();
569
+ (_classPrivateFieldGet128 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.remove();
570
570
  _this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
571
571
  _this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
572
572
  detail: {
@@ -604,9 +604,9 @@ function _maybeInitializeMux() {
604
604
  function _maybeInitializeMux2() {
605
605
  _maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee28() {
606
606
  var _this20 = this;
607
- var shouldRandomEnableMux, shouldEnableMuxForPlayer, embedType, mux;
607
+ var shouldRandomEnableMux, shouldEnableMuxForPlayer, embedType, mux, _t4;
608
608
  return _regenerator().w(function(_context28) {
609
- while (1) switch (_context28.n) {
609
+ while (1) switch (_context28.p = _context28.n) {
610
610
  case 0:
611
611
  if (_classPrivateFieldGet(_api, this)) {
612
612
  _context28.n = 1;
@@ -618,27 +618,34 @@ function _maybeInitializeMux2() {
618
618
  shouldEnableMuxForPlayer = (0, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_23__.J)(_classPrivateFieldGet(_api, this), shouldRandomEnableMux) && (0, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_25__.D5)();
619
619
  embedType = this.useWebComponent ? "translated-web-component" : "web-component";
620
620
  if (!shouldEnableMuxForPlayer) {
621
- _context28.n = 3;
621
+ _context28.n = 6;
622
622
  break;
623
623
  }
624
- _context28.n = 2;
624
+ _context28.p = 2;
625
+ _context28.n = 3;
625
626
  return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/wistia-mux.js");
626
- case 2:
627
+ case 3:
627
628
  mux = _context28.v;
628
629
  mux.init(_classPrivateFieldGet(_api, this), {
629
630
  embedType
630
631
  });
632
+ _context28.n = 5;
633
+ break;
634
+ case 4:
635
+ _context28.p = 4;
636
+ _t4 = _context28.v;
637
+ case 5:
631
638
  this.addEventListener("visitor-tracking-change", function(event) {
632
639
  var isTrackingEnabled = event.detail.isTrackingEnabled;
633
640
  if (!isTrackingEnabled) {
634
- var _classPrivateFieldGet129, _classPrivateFieldGet130;
635
- (_classPrivateFieldGet129 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet129 === void 0 ? void 0 : (_classPrivateFieldGet130 = _classPrivateFieldGet129.mux) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.destroy();
641
+ var _classPrivateFieldGet130, _classPrivateFieldGet131;
642
+ (_classPrivateFieldGet130 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : (_classPrivateFieldGet131 = _classPrivateFieldGet130.mux) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.destroy();
636
643
  }
637
644
  });
638
- case 3:
645
+ case 6:
639
646
  return _context28.a(2);
640
647
  }
641
- }, _callee28, this);
648
+ }, _callee28, this, [[2, 4]]);
642
649
  }));
643
650
  return _maybeInitializeMux2.apply(this, arguments);
644
651
  }
@@ -736,8 +743,8 @@ function _renderPreloadThumbnail() {
736
743
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
737
744
  return;
738
745
  }
739
- var _classPrivateFieldGet120 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet120.assets, mediaType = _classPrivateFieldGet120.mediaType, carouselHardWall = _classPrivateFieldGet120.carouselHardWall;
740
- var _classPrivateFieldGet121 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet121.autoPlay, plugin = _classPrivateFieldGet121.plugin;
746
+ var _classPrivateFieldGet121 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet121.assets, mediaType = _classPrivateFieldGet121.mediaType, carouselHardWall = _classPrivateFieldGet121.carouselHardWall;
747
+ var _classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet122.autoPlay, plugin = _classPrivateFieldGet122.plugin;
741
748
  if (carouselHardWall) {
742
749
  return;
743
750
  }
@@ -773,12 +780,12 @@ function _runMethodsFromAttributes() {
773
780
  var _this14 = this;
774
781
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
775
782
  this.whenApiReady().then(function() {
776
- var _ref23, _classPrivateFieldGet122, _classPrivateFieldGet123;
783
+ var _ref23, _classPrivateFieldGet123, _classPrivateFieldGet124;
777
784
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
778
- var isClosedPopover = (_ref23 = ((_classPrivateFieldGet122 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref23 !== void 0 ? _ref23 : false;
785
+ var isClosedPopover = (_ref23 = ((_classPrivateFieldGet123 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref23 !== void 0 ? _ref23 : false;
779
786
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
780
787
  var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
781
- void ((_classPrivateFieldGet123 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.time(newTime, {
788
+ void ((_classPrivateFieldGet124 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.time(newTime, {
782
789
  lazy: shouldDelayUntilPlay
783
790
  }));
784
791
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
@@ -790,9 +797,9 @@ function _runMethodsFromAttributes() {
790
797
  }
791
798
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
792
799
  this.whenApiReady().then(function() {
793
- var _classPrivateFieldGet124;
800
+ var _classPrivateFieldGet125;
794
801
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
795
- (_classPrivateFieldGet124 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.setVideoQuality(newQuality);
802
+ (_classPrivateFieldGet125 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet125 === void 0 ? void 0 : _classPrivateFieldGet125.setVideoQuality(newQuality);
796
803
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
797
804
  }).catch(function(_error) {
798
805
  });
@@ -6028,7 +6035,11 @@ var init_wistia_player = __esm({
6028
6035
  var _exec, _exec2;
6029
6036
  var wemail = (_exec = /wemail=([^&#]+)/.exec(pageUrl)) !== null && _exec !== void 0 ? _exec : null;
6030
6037
  if (wemail) {
6031
- return wemail[1];
6038
+ try {
6039
+ return decodeURIComponent(wemail[1]);
6040
+ } catch (_unused) {
6041
+ return wemail[1];
6042
+ }
6032
6043
  }
6033
6044
  var wkey = (_exec2 = /wkey=([^&#]+)/.exec(pageUrl)) !== null && _exec2 !== void 0 ? _exec2 : null;
6034
6045
  if (wkey) {
@@ -9095,8 +9106,8 @@ var init_wistia_player = __esm({
9095
9106
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9096
9107
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9097
9108
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9098
- var TAGGED_VERSION = "0.6.16";
9099
- var CURRENT_SHA = "3b8c644a094381ed8a60dc09d14eae80986f4ff5";
9109
+ var TAGGED_VERSION = "0.6.18";
9110
+ var CURRENT_SHA = "751b833463ec79b037df4d0e14234cc6b7765099";
9100
9111
  var DEFAULT_PROTOCOL = (function() {
9101
9112
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9102
9113
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -14742,7 +14753,10 @@ var init_wistia_player = __esm({
14742
14753
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "contrastIcons");
14743
14754
  },
14744
14755
  set: function set(contrastIcons) {
14745
- _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "contrastIcons", contrastIcons);
14756
+ var _classPrivateFieldGet18;
14757
+ var valueAsBoolean = Boolean(contrastIcons);
14758
+ (_classPrivateFieldGet18 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet18 === void 0 ? void 0 : _classPrivateFieldGet18.contrastIcons(valueAsBoolean);
14759
+ _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "contrastIcons", valueAsBoolean);
14746
14760
  }
14747
14761
  /**
14748
14762
  * Returns the border radius of the control bar.
@@ -14754,8 +14768,8 @@ var init_wistia_player = __esm({
14754
14768
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "controlBarBorderRadius");
14755
14769
  },
14756
14770
  set: function set(radius) {
14757
- var _classPrivateFieldGet18;
14758
- (_classPrivateFieldGet18 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet18 === void 0 ? void 0 : _classPrivateFieldGet18.setControlBarBorderRadius(radius);
14771
+ var _classPrivateFieldGet19;
14772
+ (_classPrivateFieldGet19 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet19 === void 0 ? void 0 : _classPrivateFieldGet19.setControlBarBorderRadius(radius);
14759
14773
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "controlBarBorderRadius", Number(radius));
14760
14774
  }
14761
14775
  /**
@@ -14781,8 +14795,8 @@ var init_wistia_player = __esm({
14781
14795
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "controlsVisibleOnLoad");
14782
14796
  },
14783
14797
  set: function set(shouldHide) {
14784
- var _classPrivateFieldGet19;
14785
- (_classPrivateFieldGet19 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet19 === void 0 ? void 0 : _classPrivateFieldGet19.renderUI();
14798
+ var _classPrivateFieldGet20;
14799
+ (_classPrivateFieldGet20 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet20 === void 0 ? void 0 : _classPrivateFieldGet20.renderUI();
14786
14800
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "controlsVisibleOnLoad", shouldHide);
14787
14801
  }
14788
14802
  /**
@@ -14813,12 +14827,12 @@ var init_wistia_player = __esm({
14813
14827
  }, {
14814
14828
  key: "currentTime",
14815
14829
  get: function get() {
14816
- var _ref3, _ref4, _classPrivateFieldGet20;
14817
- return (_ref3 = (_ref4 = (_classPrivateFieldGet20 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet20 === void 0 ? void 0 : _classPrivateFieldGet20.time()) !== null && _ref4 !== void 0 ? _ref4 : this.embedOptions.currentTime) !== null && _ref3 !== void 0 ? _ref3 : 0;
14830
+ var _ref3, _ref4, _classPrivateFieldGet21;
14831
+ return (_ref3 = (_ref4 = (_classPrivateFieldGet21 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet21 === void 0 ? void 0 : _classPrivateFieldGet21.time()) !== null && _ref4 !== void 0 ? _ref4 : this.embedOptions.currentTime) !== null && _ref3 !== void 0 ? _ref3 : 0;
14818
14832
  },
14819
14833
  set: function set(newTime) {
14820
- var _classPrivateFieldGet21;
14821
- void ((_classPrivateFieldGet21 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet21 === void 0 ? void 0 : _classPrivateFieldGet21.time(newTime));
14834
+ var _classPrivateFieldGet22;
14835
+ void ((_classPrivateFieldGet22 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet22 === void 0 ? void 0 : _classPrivateFieldGet22.time(newTime));
14822
14836
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "currentTime", newTime);
14823
14837
  }
14824
14838
  /**
@@ -14827,10 +14841,10 @@ var init_wistia_player = __esm({
14827
14841
  }, {
14828
14842
  key: "debug",
14829
14843
  get: function get() {
14830
- var _classPrivateFieldGet22;
14844
+ var _classPrivateFieldGet23;
14831
14845
  return {
14832
14846
  impl: _classPrivateFieldGet(_impl, this),
14833
- engine: (_classPrivateFieldGet22 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet22 === void 0 ? void 0 : _classPrivateFieldGet22.engine
14847
+ engine: (_classPrivateFieldGet23 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet23 === void 0 ? void 0 : _classPrivateFieldGet23.engine
14834
14848
  };
14835
14849
  }
14836
14850
  /**
@@ -14863,8 +14877,8 @@ var init_wistia_player = __esm({
14863
14877
  }, {
14864
14878
  key: "duration",
14865
14879
  get: function get() {
14866
- var _classPrivateFieldGet23, _classPrivateFieldGet24;
14867
- return (_classPrivateFieldGet23 = (_classPrivateFieldGet24 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet24 === void 0 ? void 0 : _classPrivateFieldGet24.duration()) !== null && _classPrivateFieldGet23 !== void 0 ? _classPrivateFieldGet23 : 0;
14880
+ var _classPrivateFieldGet24, _classPrivateFieldGet25;
14881
+ return (_classPrivateFieldGet24 = (_classPrivateFieldGet25 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : _classPrivateFieldGet25.duration()) !== null && _classPrivateFieldGet24 !== void 0 ? _classPrivateFieldGet24 : 0;
14868
14882
  }
14869
14883
  /**
14870
14884
  * Returns the email associated with this viewing session.
@@ -14918,8 +14932,8 @@ var init_wistia_player = __esm({
14918
14932
  }, {
14919
14933
  key: "ended",
14920
14934
  get: function get() {
14921
- var _classPrivateFieldGet25;
14922
- return ((_classPrivateFieldGet25 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : _classPrivateFieldGet25.state()) === "ended";
14935
+ var _classPrivateFieldGet26;
14936
+ return ((_classPrivateFieldGet26 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.state()) === "ended";
14923
14937
  }
14924
14938
  /**
14925
14939
  * Returns the current end video behavior value
@@ -14932,11 +14946,11 @@ var init_wistia_player = __esm({
14932
14946
  },
14933
14947
  set: function set(behavior) {
14934
14948
  if (behavior === "loop") {
14935
- var _classPrivateFieldGet26;
14936
- (_classPrivateFieldGet26 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.addLoopBehavior();
14937
- } else {
14938
14949
  var _classPrivateFieldGet27;
14939
- (_classPrivateFieldGet27 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet27 === void 0 ? void 0 : _classPrivateFieldGet27.removeLoopBehavior();
14950
+ (_classPrivateFieldGet27 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet27 === void 0 ? void 0 : _classPrivateFieldGet27.addLoopBehavior();
14951
+ } else {
14952
+ var _classPrivateFieldGet28;
14953
+ (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.removeLoopBehavior();
14940
14954
  }
14941
14955
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "endVideoBehavior", behavior);
14942
14956
  }
@@ -14947,8 +14961,8 @@ var init_wistia_player = __esm({
14947
14961
  }, {
14948
14962
  key: "eventKey",
14949
14963
  get: function get() {
14950
- var _classPrivateFieldGet28;
14951
- return (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.eventKey();
14964
+ var _classPrivateFieldGet29;
14965
+ return (_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.eventKey();
14952
14966
  }
14953
14967
  /**
14954
14968
  * Returns if the fullscreen button control will appear in the control bar.
@@ -14960,8 +14974,8 @@ var init_wistia_player = __esm({
14960
14974
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "fullscreenControl");
14961
14975
  },
14962
14976
  set: function set(shouldDisplay) {
14963
- var _classPrivateFieldGet29;
14964
- (_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.fullscreenControlEnabled(shouldDisplay);
14977
+ var _classPrivateFieldGet30;
14978
+ (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.fullscreenControlEnabled(shouldDisplay);
14965
14979
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "fullscreenControl", shouldDisplay);
14966
14980
  }
14967
14981
  /**
@@ -14984,14 +14998,14 @@ var init_wistia_player = __esm({
14984
14998
  }, {
14985
14999
  key: "inFullscreen",
14986
15000
  get: function get() {
14987
- var _classPrivateFieldGet30, _classPrivateFieldGet31;
14988
- return (_classPrivateFieldGet30 = (_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.inFullscreen()) !== null && _classPrivateFieldGet30 !== void 0 ? _classPrivateFieldGet30 : false;
15001
+ var _classPrivateFieldGet31, _classPrivateFieldGet32;
15002
+ return (_classPrivateFieldGet31 = (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.inFullscreen()) !== null && _classPrivateFieldGet31 !== void 0 ? _classPrivateFieldGet31 : false;
14989
15003
  }
14990
15004
  }, {
14991
15005
  key: "inputContext",
14992
15006
  get: function get() {
14993
- var _classPrivateFieldGet32;
14994
- return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.getInputContext();
15007
+ var _classPrivateFieldGet33;
15008
+ return (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.getInputContext();
14995
15009
  }
14996
15010
  /**
14997
15011
  * Returns whether instantHLS is enabled for the video.
@@ -15000,26 +15014,26 @@ var init_wistia_player = __esm({
15000
15014
  }, {
15001
15015
  key: "instantHls",
15002
15016
  get: function get() {
15003
- var _classPrivateFieldGet33, _classPrivateFieldGet34;
15004
- return (_classPrivateFieldGet33 = (_classPrivateFieldGet34 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet34 === void 0 ? void 0 : _classPrivateFieldGet34.isInstantHls()) !== null && _classPrivateFieldGet33 !== void 0 ? _classPrivateFieldGet33 : false;
15017
+ var _classPrivateFieldGet34, _classPrivateFieldGet35;
15018
+ return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.isInstantHls()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
15005
15019
  }
15006
15020
  // the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
15007
15021
  // eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
15008
15022
  }, {
15009
15023
  key: "language",
15010
15024
  get: function get() {
15011
- var _classPrivateFieldGet35, _classPrivateFieldGet36;
15012
- return (_classPrivateFieldGet35 = (_classPrivateFieldGet36 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.language()) !== null && _classPrivateFieldGet35 !== void 0 ? _classPrivateFieldGet35 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15025
+ var _classPrivateFieldGet36, _classPrivateFieldGet37;
15026
+ return (_classPrivateFieldGet36 = (_classPrivateFieldGet37 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet37 === void 0 ? void 0 : _classPrivateFieldGet37.language()) !== null && _classPrivateFieldGet36 !== void 0 ? _classPrivateFieldGet36 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15013
15027
  },
15014
15028
  set: function set(language) {
15015
- var _classPrivateFieldGet37;
15016
- (_classPrivateFieldGet37 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet37 === void 0 ? void 0 : _classPrivateFieldGet37.language(language);
15029
+ var _classPrivateFieldGet38;
15030
+ (_classPrivateFieldGet38 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.language(language);
15017
15031
  }
15018
15032
  }, {
15019
15033
  key: "languages",
15020
15034
  get: function get() {
15021
- var _classPrivateFieldGet38, _classPrivateFieldGet39;
15022
- return (_classPrivateFieldGet38 = (_classPrivateFieldGet39 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet39 === void 0 ? void 0 : _classPrivateFieldGet39.languages()) !== null && _classPrivateFieldGet38 !== void 0 ? _classPrivateFieldGet38 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
15035
+ var _classPrivateFieldGet39, _classPrivateFieldGet40;
15036
+ return (_classPrivateFieldGet39 = (_classPrivateFieldGet40 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet40 === void 0 ? void 0 : _classPrivateFieldGet40.languages()) !== null && _classPrivateFieldGet39 !== void 0 ? _classPrivateFieldGet39 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
15023
15037
  }
15024
15038
  /**
15025
15039
  * Returns all the mediaData set on the WistiaPlayer
@@ -15055,8 +15069,8 @@ var init_wistia_player = __esm({
15055
15069
  }, {
15056
15070
  key: "mediaLanguage",
15057
15071
  get: function get() {
15058
- var _classPrivateFieldGet40, _classPrivateFieldGet41;
15059
- return (_classPrivateFieldGet40 = (_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.mediaLanguage()) !== null && _classPrivateFieldGet40 !== void 0 ? _classPrivateFieldGet40 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15072
+ var _classPrivateFieldGet41, _classPrivateFieldGet42;
15073
+ return (_classPrivateFieldGet41 = (_classPrivateFieldGet42 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet42 === void 0 ? void 0 : _classPrivateFieldGet42.mediaLanguage()) !== null && _classPrivateFieldGet41 !== void 0 ? _classPrivateFieldGet41 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15060
15074
  }
15061
15075
  /**
15062
15076
  * Changes the language of the media stream/content.
@@ -15066,18 +15080,18 @@ var init_wistia_player = __esm({
15066
15080
  }, {
15067
15081
  key: "mediaLanguageCode",
15068
15082
  get: function get() {
15069
- var _classPrivateFieldGet42, _classPrivateFieldGet43;
15070
- return (_classPrivateFieldGet42 = (_classPrivateFieldGet43 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.mediaLanguageCode()) !== null && _classPrivateFieldGet42 !== void 0 ? _classPrivateFieldGet42 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this).wistiaLanguageCode;
15083
+ var _classPrivateFieldGet43, _classPrivateFieldGet44;
15084
+ return (_classPrivateFieldGet43 = (_classPrivateFieldGet44 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet44 === void 0 ? void 0 : _classPrivateFieldGet44.mediaLanguageCode()) !== null && _classPrivateFieldGet43 !== void 0 ? _classPrivateFieldGet43 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this).wistiaLanguageCode;
15071
15085
  },
15072
15086
  set: function set(languageCode) {
15073
- var _classPrivateFieldGet44;
15074
- (_classPrivateFieldGet44 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet44 === void 0 ? void 0 : _classPrivateFieldGet44.mediaLanguageCode(languageCode);
15087
+ var _classPrivateFieldGet45;
15088
+ (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.mediaLanguageCode(languageCode);
15075
15089
  }
15076
15090
  }, {
15077
15091
  key: "mediaLanguages",
15078
15092
  get: function get() {
15079
- var _classPrivateFieldGet45, _classPrivateFieldGet46;
15080
- return (_classPrivateFieldGet45 = (_classPrivateFieldGet46 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet46 === void 0 ? void 0 : _classPrivateFieldGet46.mediaLanguages()) !== null && _classPrivateFieldGet45 !== void 0 ? _classPrivateFieldGet45 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
15093
+ var _classPrivateFieldGet46, _classPrivateFieldGet47;
15094
+ return (_classPrivateFieldGet46 = (_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.mediaLanguages()) !== null && _classPrivateFieldGet46 !== void 0 ? _classPrivateFieldGet46 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
15081
15095
  }
15082
15096
  /**
15083
15097
  * Returns if player is currently muted
@@ -15086,8 +15100,8 @@ var init_wistia_player = __esm({
15086
15100
  }, {
15087
15101
  key: "muted",
15088
15102
  get: function get() {
15089
- var _ref7, _classPrivateFieldGet47, _classPrivateFieldGet48;
15090
- return (_ref7 = (_classPrivateFieldGet47 = (_classPrivateFieldGet48 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.isMuted()) !== null && _classPrivateFieldGet47 !== void 0 ? _classPrivateFieldGet47 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
15103
+ var _ref7, _classPrivateFieldGet48, _classPrivateFieldGet49;
15104
+ return (_ref7 = (_classPrivateFieldGet48 = (_classPrivateFieldGet49 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet49 === void 0 ? void 0 : _classPrivateFieldGet49.isMuted()) !== null && _classPrivateFieldGet48 !== void 0 ? _classPrivateFieldGet48 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
15091
15105
  },
15092
15106
  set: function set(shouldMute) {
15093
15107
  if (_classPrivateFieldGet(_impl, this)) {
@@ -15107,8 +15121,8 @@ var init_wistia_player = __esm({
15107
15121
  }, {
15108
15122
  key: "name",
15109
15123
  get: function get() {
15110
- var _ref8, _classPrivateFieldGet49, _classPrivateFieldGet50, _classPrivateFieldGet51;
15111
- return (_ref8 = (_classPrivateFieldGet49 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet49 !== void 0 ? _classPrivateFieldGet49 : (_classPrivateFieldGet50 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet50 === void 0 ? void 0 : (_classPrivateFieldGet51 = _classPrivateFieldGet50._mediaData) === null || _classPrivateFieldGet51 === void 0 ? void 0 : _classPrivateFieldGet51.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
15124
+ var _ref8, _classPrivateFieldGet50, _classPrivateFieldGet51, _classPrivateFieldGet52;
15125
+ return (_ref8 = (_classPrivateFieldGet50 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet50 !== void 0 ? _classPrivateFieldGet50 : (_classPrivateFieldGet51 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet51 === void 0 ? void 0 : (_classPrivateFieldGet52 = _classPrivateFieldGet51._mediaData) === null || _classPrivateFieldGet52 === void 0 ? void 0 : _classPrivateFieldGet52.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
15112
15126
  }
15113
15127
  /**
15114
15128
  * Returns the status of the opaqueControls embed option, which determines
@@ -15122,9 +15136,9 @@ var init_wistia_player = __esm({
15122
15136
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "opaqueControls");
15123
15137
  },
15124
15138
  set: function set(opaqueControls) {
15125
- var _classPrivateFieldGet52;
15139
+ var _classPrivateFieldGet53;
15126
15140
  var valueAsBoolean = Boolean(opaqueControls);
15127
- (_classPrivateFieldGet52 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : _classPrivateFieldGet52.opaqueControls(valueAsBoolean);
15141
+ (_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.opaqueControls(valueAsBoolean);
15128
15142
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "opaqueControls", valueAsBoolean);
15129
15143
  }
15130
15144
  }, {
@@ -15142,8 +15156,8 @@ var init_wistia_player = __esm({
15142
15156
  }, {
15143
15157
  key: "paused",
15144
15158
  get: function get() {
15145
- var _classPrivateFieldGet53;
15146
- return ((_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.state()) === "paused";
15159
+ var _classPrivateFieldGet54;
15160
+ return ((_classPrivateFieldGet54 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : _classPrivateFieldGet54.state()) === "paused";
15147
15161
  }
15148
15162
  /**
15149
15163
  * Returns the percent of the video that has been watched as a decimal between 0 and 1.
@@ -15152,8 +15166,8 @@ var init_wistia_player = __esm({
15152
15166
  }, {
15153
15167
  key: "percentWatched",
15154
15168
  get: function get() {
15155
- var _classPrivateFieldGet54, _classPrivateFieldGet55;
15156
- return (_classPrivateFieldGet54 = (_classPrivateFieldGet55 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet55 === void 0 ? void 0 : _classPrivateFieldGet55.percentWatched()) !== null && _classPrivateFieldGet54 !== void 0 ? _classPrivateFieldGet54 : 0;
15169
+ var _classPrivateFieldGet55, _classPrivateFieldGet56;
15170
+ return (_classPrivateFieldGet55 = (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.percentWatched()) !== null && _classPrivateFieldGet55 !== void 0 ? _classPrivateFieldGet55 : 0;
15157
15171
  }
15158
15172
  /**
15159
15173
  * Returns the playback rate of the video.
@@ -15162,12 +15176,12 @@ var init_wistia_player = __esm({
15162
15176
  }, {
15163
15177
  key: "playbackRate",
15164
15178
  get: function get() {
15165
- var _ref9, _classPrivateFieldGet56, _classPrivateFieldGet57;
15166
- return (_ref9 = (_classPrivateFieldGet56 = (_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.playbackRate()) !== null && _classPrivateFieldGet56 !== void 0 ? _classPrivateFieldGet56 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
15179
+ var _ref9, _classPrivateFieldGet57, _classPrivateFieldGet58;
15180
+ return (_ref9 = (_classPrivateFieldGet57 = (_classPrivateFieldGet58 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.playbackRate()) !== null && _classPrivateFieldGet57 !== void 0 ? _classPrivateFieldGet57 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
15167
15181
  },
15168
15182
  set: function set(rate) {
15169
- var _classPrivateFieldGet58;
15170
- (_classPrivateFieldGet58 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.playbackRate(rate);
15183
+ var _classPrivateFieldGet59;
15184
+ (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRate(rate);
15171
15185
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
15172
15186
  }
15173
15187
  /**
@@ -15180,8 +15194,8 @@ var init_wistia_player = __esm({
15180
15194
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
15181
15195
  },
15182
15196
  set: function set(shouldDisplay) {
15183
- var _classPrivateFieldGet59;
15184
- (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRateControlEnabled(shouldDisplay);
15197
+ var _classPrivateFieldGet60;
15198
+ (_classPrivateFieldGet60 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbackRateControlEnabled(shouldDisplay);
15185
15199
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
15186
15200
  }
15187
15201
  /**
@@ -15194,8 +15208,8 @@ var init_wistia_player = __esm({
15194
15208
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
15195
15209
  },
15196
15210
  set: function set(shouldDisplay) {
15197
- var _classPrivateFieldGet60;
15198
- (_classPrivateFieldGet60 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbarControlEnabled(shouldDisplay);
15211
+ var _classPrivateFieldGet61;
15212
+ (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbarControlEnabled(shouldDisplay);
15199
15213
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
15200
15214
  }
15201
15215
  /**
@@ -15208,8 +15222,8 @@ var init_wistia_player = __esm({
15208
15222
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
15209
15223
  },
15210
15224
  set: function set(radius) {
15211
- var _classPrivateFieldGet61;
15212
- (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.setPlayerBorderRadius(Number(radius));
15225
+ var _classPrivateFieldGet62;
15226
+ (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.setPlayerBorderRadius(Number(radius));
15213
15227
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", Number(radius));
15214
15228
  }
15215
15229
  /**
@@ -15227,8 +15241,8 @@ var init_wistia_player = __esm({
15227
15241
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
15228
15242
  },
15229
15243
  set: function set(newColor) {
15230
- var _classPrivateFieldGet62;
15231
- (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playerColor(newColor);
15244
+ var _classPrivateFieldGet63;
15245
+ (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playerColor(newColor);
15232
15246
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
15233
15247
  }
15234
15248
  /**
@@ -15245,11 +15259,11 @@ var init_wistia_player = __esm({
15245
15259
  return void 0;
15246
15260
  },
15247
15261
  set: function set(gradient) {
15248
- var _classPrivateFieldGet63;
15262
+ var _classPrivateFieldGet64;
15249
15263
  if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__.b)(gradient)) {
15250
15264
  throw new Error("playerColorGradient must be a valid gradient object");
15251
15265
  }
15252
- (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playerColorGradient(gradient);
15266
+ (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playerColorGradient(gradient);
15253
15267
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
15254
15268
  }
15255
15269
  /**
@@ -15307,8 +15321,8 @@ var init_wistia_player = __esm({
15307
15321
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
15308
15322
  },
15309
15323
  set: function set(shouldDisplay) {
15310
- var _classPrivateFieldGet64;
15311
- (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playPauseControlEnabled(shouldDisplay);
15324
+ var _classPrivateFieldGet65;
15325
+ (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playPauseControlEnabled(shouldDisplay);
15312
15326
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
15313
15327
  }
15314
15328
  /**
@@ -15323,8 +15337,8 @@ var init_wistia_player = __esm({
15323
15337
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
15324
15338
  },
15325
15339
  set: function set(shouldDisplay) {
15326
- var _classPrivateFieldGet65;
15327
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playPauseNotifierEnabled(shouldDisplay);
15340
+ var _classPrivateFieldGet66;
15341
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playPauseNotifierEnabled(shouldDisplay);
15328
15342
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
15329
15343
  }
15330
15344
  /**
@@ -15544,8 +15558,8 @@ var init_wistia_player = __esm({
15544
15558
  }, {
15545
15559
  key: "preload",
15546
15560
  get: function get() {
15547
- var _ref1, _classPrivateFieldGet66, _classPrivateFieldGet67;
15548
- return (_ref1 = (_classPrivateFieldGet66 = (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.preloadValue()) !== null && _classPrivateFieldGet66 !== void 0 ? _classPrivateFieldGet66 : this.embedOptions.preload) !== null && _ref1 !== void 0 ? _ref1 : "metadata";
15561
+ var _ref1, _classPrivateFieldGet67, _classPrivateFieldGet68;
15562
+ return (_ref1 = (_classPrivateFieldGet67 = (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.preloadValue()) !== null && _classPrivateFieldGet67 !== void 0 ? _classPrivateFieldGet67 : this.embedOptions.preload) !== null && _ref1 !== void 0 ? _ref1 : "metadata";
15549
15563
  },
15550
15564
  set: function set(preloadValue) {
15551
15565
  var prevVal = this.preload;
@@ -15565,8 +15579,8 @@ var init_wistia_player = __esm({
15565
15579
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
15566
15580
  },
15567
15581
  set: function set(shouldDisplay) {
15568
- var _classPrivateFieldGet68;
15569
- (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.qualityControlEnabled(shouldDisplay);
15582
+ var _classPrivateFieldGet69;
15583
+ (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.qualityControlEnabled(shouldDisplay);
15570
15584
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
15571
15585
  }
15572
15586
  /**
@@ -15579,8 +15593,8 @@ var init_wistia_player = __esm({
15579
15593
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
15580
15594
  },
15581
15595
  set: function set(quality) {
15582
- var _classPrivateFieldGet69;
15583
- (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.qualityMax(quality);
15596
+ var _classPrivateFieldGet70;
15597
+ (_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.qualityMax(quality);
15584
15598
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
15585
15599
  }
15586
15600
  /**
@@ -15593,8 +15607,8 @@ var init_wistia_player = __esm({
15593
15607
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
15594
15608
  },
15595
15609
  set: function set(quality) {
15596
- var _classPrivateFieldGet70;
15597
- (_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.qualityMin(quality);
15610
+ var _classPrivateFieldGet71;
15611
+ (_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.qualityMin(quality);
15598
15612
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
15599
15613
  }
15600
15614
  /**
@@ -15604,8 +15618,8 @@ var init_wistia_player = __esm({
15604
15618
  }, {
15605
15619
  key: "readyState",
15606
15620
  get: function get() {
15607
- var _classPrivateFieldGet71, _classPrivateFieldGet72;
15608
- return (_classPrivateFieldGet71 = (_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.getReadyState()) !== null && _classPrivateFieldGet71 !== void 0 ? _classPrivateFieldGet71 : 0;
15621
+ var _classPrivateFieldGet72, _classPrivateFieldGet73;
15622
+ return (_classPrivateFieldGet72 = (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.getReadyState()) !== null && _classPrivateFieldGet72 !== void 0 ? _classPrivateFieldGet72 : 0;
15609
15623
  }
15610
15624
  /**
15611
15625
  * Returns the current resumable status of the video.
@@ -15618,8 +15632,8 @@ var init_wistia_player = __esm({
15618
15632
  return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable")) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : "auto";
15619
15633
  },
15620
15634
  set: function set(resumableState) {
15621
- var _classPrivateFieldGet73;
15622
- (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.setResumable(resumableState);
15635
+ var _classPrivateFieldGet74;
15636
+ (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.setResumable(resumableState);
15623
15637
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
15624
15638
  }
15625
15639
  /**
@@ -15632,8 +15646,8 @@ var init_wistia_player = __esm({
15632
15646
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
15633
15647
  },
15634
15648
  set: function set(radius) {
15635
- var _classPrivateFieldGet74;
15636
- (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.setRoundedPlayer(Number(radius));
15649
+ var _classPrivateFieldGet75;
15650
+ (_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.setRoundedPlayer(Number(radius));
15637
15651
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
15638
15652
  }
15639
15653
  /**
@@ -15644,8 +15658,8 @@ var init_wistia_player = __esm({
15644
15658
  }, {
15645
15659
  key: "secondsWatched",
15646
15660
  get: function get() {
15647
- var _classPrivateFieldGet75, _classPrivateFieldGet76;
15648
- return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.secondsWatched()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
15661
+ var _classPrivateFieldGet76, _classPrivateFieldGet77;
15662
+ return (_classPrivateFieldGet76 = (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.secondsWatched()) !== null && _classPrivateFieldGet76 !== void 0 ? _classPrivateFieldGet76 : 0;
15649
15663
  }
15650
15664
  /**
15651
15665
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -15654,8 +15668,8 @@ var init_wistia_player = __esm({
15654
15668
  }, {
15655
15669
  key: "secondsWatchedVector",
15656
15670
  get: function get() {
15657
- var _classPrivateFieldGet77, _classPrivateFieldGet78;
15658
- return (_classPrivateFieldGet77 = (_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.secondsWatchedVector()) !== null && _classPrivateFieldGet77 !== void 0 ? _classPrivateFieldGet77 : [];
15671
+ var _classPrivateFieldGet78, _classPrivateFieldGet79;
15672
+ return (_classPrivateFieldGet78 = (_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.secondsWatchedVector()) !== null && _classPrivateFieldGet78 !== void 0 ? _classPrivateFieldGet78 : [];
15659
15673
  }
15660
15674
  /**
15661
15675
  * Returns whether JSON+LD seo data will be injected.
@@ -15679,8 +15693,8 @@ var init_wistia_player = __esm({
15679
15693
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
15680
15694
  },
15681
15695
  set: function set(shouldDisplay) {
15682
- var _classPrivateFieldGet79;
15683
- (_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.settingsControlEnabled(shouldDisplay);
15696
+ var _classPrivateFieldGet80;
15697
+ (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.settingsControlEnabled(shouldDisplay);
15684
15698
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
15685
15699
  }
15686
15700
  /**
@@ -15702,10 +15716,10 @@ var init_wistia_player = __esm({
15702
15716
  }, {
15703
15717
  key: "sourceLanguage",
15704
15718
  get: function get() {
15705
- var _classPrivateFieldGet80, _classPrivateFieldGet81, _classPrivateFieldGet82;
15706
- return (_classPrivateFieldGet80 = (_classPrivateFieldGet81 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.find(function(loc) {
15719
+ var _classPrivateFieldGet81, _classPrivateFieldGet82, _classPrivateFieldGet83;
15720
+ return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.find(function(loc) {
15707
15721
  return loc.isOriginal;
15708
- })) !== null && _classPrivateFieldGet80 !== void 0 ? _classPrivateFieldGet80 : (_classPrivateFieldGet82 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82[0];
15722
+ })) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : (_classPrivateFieldGet83 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83[0];
15709
15723
  }
15710
15724
  /**
15711
15725
  * Returns the source media id for the player. If a player has different localized versions,
@@ -15725,8 +15739,8 @@ var init_wistia_player = __esm({
15725
15739
  }, {
15726
15740
  key: "state",
15727
15741
  get: function get() {
15728
- var _classPrivateFieldGet83, _classPrivateFieldGet84;
15729
- return (_classPrivateFieldGet83 = (_classPrivateFieldGet84 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.state()) !== null && _classPrivateFieldGet83 !== void 0 ? _classPrivateFieldGet83 : defaultEmbedOptions.state;
15742
+ var _classPrivateFieldGet84, _classPrivateFieldGet85;
15743
+ return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.state()) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : defaultEmbedOptions.state;
15730
15744
  }
15731
15745
  /**
15732
15746
  * Returns the stats url for the player.
@@ -15808,12 +15822,12 @@ var init_wistia_player = __esm({
15808
15822
  }, {
15809
15823
  key: "videoQuality",
15810
15824
  get: function get() {
15811
- var _ref10, _classPrivateFieldGet85, _classPrivateFieldGet86;
15812
- return (_ref10 = (_classPrivateFieldGet85 = (_classPrivateFieldGet86 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.getVideoQuality()) !== null && _classPrivateFieldGet85 !== void 0 ? _classPrivateFieldGet85 : this.embedOptions.videoQuality) !== null && _ref10 !== void 0 ? _ref10 : "auto";
15825
+ var _ref10, _classPrivateFieldGet86, _classPrivateFieldGet87;
15826
+ return (_ref10 = (_classPrivateFieldGet86 = (_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87.getVideoQuality()) !== null && _classPrivateFieldGet86 !== void 0 ? _classPrivateFieldGet86 : this.embedOptions.videoQuality) !== null && _ref10 !== void 0 ? _ref10 : "auto";
15813
15827
  },
15814
15828
  set: function set(quality) {
15815
- var _classPrivateFieldGet87;
15816
- (_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87.setVideoQuality(quality);
15829
+ var _classPrivateFieldGet88;
15830
+ (_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.setVideoQuality(quality);
15817
15831
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
15818
15832
  }
15819
15833
  /**
@@ -15836,8 +15850,8 @@ var init_wistia_player = __esm({
15836
15850
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
15837
15851
  },
15838
15852
  set: function set(level) {
15839
- var _classPrivateFieldGet88;
15840
- (_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.volume(level);
15853
+ var _classPrivateFieldGet89;
15854
+ (_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.volume(level);
15841
15855
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
15842
15856
  }
15843
15857
  /**
@@ -15852,8 +15866,8 @@ var init_wistia_player = __esm({
15852
15866
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
15853
15867
  },
15854
15868
  set: function set(shouldDisplay) {
15855
- var _classPrivateFieldGet89;
15856
- (_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.volumeControlEnabled(shouldDisplay);
15869
+ var _classPrivateFieldGet90;
15870
+ (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.volumeControlEnabled(shouldDisplay);
15857
15871
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
15858
15872
  }
15859
15873
  /**
@@ -15899,11 +15913,11 @@ var init_wistia_player = __esm({
15899
15913
  key: "cancelFullscreen",
15900
15914
  value: (function() {
15901
15915
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
15902
- var _classPrivateFieldGet90, _this3 = this;
15916
+ var _classPrivateFieldGet91, _this3 = this;
15903
15917
  return _regenerator().w(function(_context) {
15904
15918
  while (1) switch (_context.n) {
15905
15919
  case 0:
15906
- return _context.a(2, (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.cancelFullscreen().then(function() {
15920
+ return _context.a(2, (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.cancelFullscreen().then(function() {
15907
15921
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
15908
15922
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
15909
15923
  }));
@@ -15919,11 +15933,11 @@ var init_wistia_player = __esm({
15919
15933
  key: "createOverlay",
15920
15934
  value: (function() {
15921
15935
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
15922
- var _classPrivateFieldGet91;
15936
+ var _classPrivateFieldGet92;
15923
15937
  return _regenerator().w(function(_context2) {
15924
15938
  while (1) switch (_context2.n) {
15925
15939
  case 0:
15926
- if (!((_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet91 !== void 0 && _classPrivateFieldGet91.defineOverlay)) {
15940
+ if (!((_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet92 !== void 0 && _classPrivateFieldGet92.defineOverlay)) {
15927
15941
  _context2.n = 1;
15928
15942
  break;
15929
15943
  }
@@ -15949,11 +15963,11 @@ var init_wistia_player = __esm({
15949
15963
  case 0:
15950
15964
  addPlugin = /* @__PURE__ */ (function() {
15951
15965
  var _ref11 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
15952
- var _classPrivateFieldGet92, _classPrivateFieldGet93;
15966
+ var _classPrivateFieldGet93, _classPrivateFieldGet94;
15953
15967
  return _regenerator().w(function(_context3) {
15954
15968
  while (1) switch (_context3.n) {
15955
15969
  case 0:
15956
- return _context3.a(2, (_classPrivateFieldGet92 = (_classPrivateFieldGet93 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.addPlugin(name, options)) !== null && _classPrivateFieldGet92 !== void 0 ? _classPrivateFieldGet92 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15970
+ return _context3.a(2, (_classPrivateFieldGet93 = (_classPrivateFieldGet94 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.addPlugin(name, options)) !== null && _classPrivateFieldGet93 !== void 0 ? _classPrivateFieldGet93 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15957
15971
  }
15958
15972
  }, _callee3);
15959
15973
  }));
@@ -15998,11 +16012,11 @@ var init_wistia_player = __esm({
15998
16012
  key: "deleteOverlay",
15999
16013
  value: (function() {
16000
16014
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
16001
- var _classPrivateFieldGet94;
16015
+ var _classPrivateFieldGet95;
16002
16016
  return _regenerator().w(function(_context6) {
16003
16017
  while (1) switch (_context6.n) {
16004
16018
  case 0:
16005
- if (!((_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet94 !== void 0 && _classPrivateFieldGet94.undefineOverlay)) {
16019
+ if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.undefineOverlay)) {
16006
16020
  _context6.n = 1;
16007
16021
  break;
16008
16022
  }
@@ -16021,11 +16035,11 @@ var init_wistia_player = __esm({
16021
16035
  key: "disableControl",
16022
16036
  value: (function() {
16023
16037
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
16024
- var _classPrivateFieldGet95;
16038
+ var _classPrivateFieldGet96;
16025
16039
  return _regenerator().w(function(_context7) {
16026
16040
  while (1) switch (_context7.n) {
16027
16041
  case 0:
16028
- if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.setControlEnabled)) {
16042
+ if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.setControlEnabled)) {
16029
16043
  _context7.n = 1;
16030
16044
  break;
16031
16045
  }
@@ -16044,11 +16058,11 @@ var init_wistia_player = __esm({
16044
16058
  key: "enableControl",
16045
16059
  value: (function() {
16046
16060
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
16047
- var _classPrivateFieldGet96;
16061
+ var _classPrivateFieldGet97;
16048
16062
  return _regenerator().w(function(_context8) {
16049
16063
  while (1) switch (_context8.n) {
16050
16064
  case 0:
16051
- if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.setControlEnabled)) {
16065
+ if (!((_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet97 !== void 0 && _classPrivateFieldGet97.setControlEnabled)) {
16052
16066
  _context8.n = 1;
16053
16067
  break;
16054
16068
  }
@@ -16067,16 +16081,16 @@ var init_wistia_player = __esm({
16067
16081
  key: "enterInputContext",
16068
16082
  value: (function() {
16069
16083
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
16070
- var _classPrivateFieldGet97, _this5 = this;
16084
+ var _classPrivateFieldGet98, _this5 = this;
16071
16085
  return _regenerator().w(function(_context9) {
16072
16086
  while (1) switch (_context9.n) {
16073
16087
  case 0:
16074
- if (!((_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet97 !== void 0 && _classPrivateFieldGet97.enterInputContext)) {
16088
+ if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.enterInputContext)) {
16075
16089
  _context9.n = 1;
16076
16090
  break;
16077
16091
  }
16078
16092
  return _context9.a(2, new Promise(function(resolve) {
16079
- var _classPrivateFieldGet98;
16093
+ var _classPrivateFieldGet99;
16080
16094
  var _handler = function handler(event) {
16081
16095
  var detail = event.detail;
16082
16096
  if (detail.context === context) {
@@ -16085,7 +16099,7 @@ var init_wistia_player = __esm({
16085
16099
  _this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
16086
16100
  };
16087
16101
  _this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
16088
- (_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.enterInputContext(context);
16102
+ (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.enterInputContext(context);
16089
16103
  }));
16090
16104
  case 1:
16091
16105
  return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -16101,11 +16115,11 @@ var init_wistia_player = __esm({
16101
16115
  key: "exitInputContext",
16102
16116
  value: (function() {
16103
16117
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
16104
- var _classPrivateFieldGet99;
16118
+ var _classPrivateFieldGet100;
16105
16119
  return _regenerator().w(function(_context0) {
16106
16120
  while (1) switch (_context0.n) {
16107
16121
  case 0:
16108
- if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.exitInputContext)) {
16122
+ if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.exitInputContext)) {
16109
16123
  _context0.n = 1;
16110
16124
  break;
16111
16125
  }
@@ -16152,8 +16166,8 @@ var init_wistia_player = __esm({
16152
16166
  while (1) switch (_context10.n) {
16153
16167
  case 0:
16154
16168
  return _context10.a(2, new Promise(function(resolve, reject) {
16155
- var _classPrivateFieldGet100;
16156
- if ((_classPrivateFieldGet100 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
16169
+ var _classPrivateFieldGet101;
16170
+ if ((_classPrivateFieldGet101 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
16157
16171
  resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
16158
16172
  }
16159
16173
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -16170,7 +16184,7 @@ var init_wistia_player = __esm({
16170
16184
  key: "getRemapTime",
16171
16185
  value: (function() {
16172
16186
  var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
16173
- var _classPrivateFieldGet101, _this7 = this;
16187
+ var _classPrivateFieldGet102, _this7 = this;
16174
16188
  var _t, _t2, _t3;
16175
16189
  return _regenerator().w(function(_context11) {
16176
16190
  while (1) switch (_context11.n) {
@@ -16190,11 +16204,11 @@ var init_wistia_player = __esm({
16190
16204
  });
16191
16205
  return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
16192
16206
  case 2:
16193
- if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet101 !== void 0)) {
16207
+ if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet102 !== void 0)) {
16194
16208
  _context11.n = 3;
16195
16209
  break;
16196
16210
  }
16197
- _classPrivateFieldGet101;
16211
+ _classPrivateFieldGet102;
16198
16212
  _context11.n = 5;
16199
16213
  break;
16200
16214
  case 3:
@@ -16231,11 +16245,11 @@ var init_wistia_player = __esm({
16231
16245
  key: "hideOverlay",
16232
16246
  value: (function() {
16233
16247
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
16234
- var _classPrivateFieldGet102;
16248
+ var _classPrivateFieldGet103;
16235
16249
  return _regenerator().w(function(_context12) {
16236
16250
  while (1) switch (_context12.n) {
16237
16251
  case 0:
16238
- if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet102 !== void 0 && _classPrivateFieldGet102.cancelOverlay)) {
16252
+ if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.cancelOverlay)) {
16239
16253
  _context12.n = 1;
16240
16254
  break;
16241
16255
  }
@@ -16259,8 +16273,8 @@ var init_wistia_player = __esm({
16259
16273
  while (1) switch (_context13.n) {
16260
16274
  case 0:
16261
16275
  return _context13.a(2, new Promise(function(resolve, reject) {
16262
- var _classPrivateFieldGet103;
16263
- if ((_classPrivateFieldGet103 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.popover) {
16276
+ var _classPrivateFieldGet104;
16277
+ if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.popover) {
16264
16278
  _classPrivateFieldGet(_api, _this8).popover.hide();
16265
16279
  resolve();
16266
16280
  }
@@ -16277,14 +16291,14 @@ var init_wistia_player = __esm({
16277
16291
  }, {
16278
16292
  key: "languagesToLocalizations",
16279
16293
  value: function languagesToLocalizations(languages) {
16280
- var _classPrivateFieldGet104, _classPrivateFieldGet105;
16281
- return (_classPrivateFieldGet104 = (_classPrivateFieldGet105 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet105 === void 0 ? void 0 : _classPrivateFieldGet105.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet104 !== void 0 ? _classPrivateFieldGet104 : [];
16294
+ var _classPrivateFieldGet105, _classPrivateFieldGet106;
16295
+ return (_classPrivateFieldGet105 = (_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet105 !== void 0 ? _classPrivateFieldGet105 : [];
16282
16296
  }
16283
16297
  }, {
16284
16298
  key: "languageToLocalization",
16285
16299
  value: function languageToLocalization(language) {
16286
- var _classPrivateFieldGet106, _classPrivateFieldGet107;
16287
- return (_classPrivateFieldGet106 = (_classPrivateFieldGet107 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet107 === void 0 ? void 0 : _classPrivateFieldGet107.languageToLocalization(language)) !== null && _classPrivateFieldGet106 !== void 0 ? _classPrivateFieldGet106 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
16300
+ var _classPrivateFieldGet107, _classPrivateFieldGet108;
16301
+ return (_classPrivateFieldGet107 = (_classPrivateFieldGet108 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : _classPrivateFieldGet108.languageToLocalization(language)) !== null && _classPrivateFieldGet107 !== void 0 ? _classPrivateFieldGet107 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
16288
16302
  }
16289
16303
  /**
16290
16304
  * Pauses the video.
@@ -16296,11 +16310,11 @@ var init_wistia_player = __esm({
16296
16310
  key: "pause",
16297
16311
  value: (function() {
16298
16312
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
16299
- var _classPrivateFieldGet108;
16313
+ var _classPrivateFieldGet109;
16300
16314
  return _regenerator().w(function(_context14) {
16301
16315
  while (1) switch (_context14.n) {
16302
16316
  case 0:
16303
- return _context14.a(2, (_classPrivateFieldGet108 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : _classPrivateFieldGet108.pause());
16317
+ return _context14.a(2, (_classPrivateFieldGet109 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.pause());
16304
16318
  }
16305
16319
  }, _callee14, this);
16306
16320
  }));
@@ -16313,11 +16327,11 @@ var init_wistia_player = __esm({
16313
16327
  key: "play",
16314
16328
  value: (function() {
16315
16329
  var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
16316
- var _classPrivateFieldGet109;
16330
+ var _classPrivateFieldGet110;
16317
16331
  return _regenerator().w(function(_context15) {
16318
16332
  while (1) switch (_context15.n) {
16319
16333
  case 0:
16320
- return _context15.a(2, (_classPrivateFieldGet109 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.play());
16334
+ return _context15.a(2, (_classPrivateFieldGet110 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.play());
16321
16335
  }
16322
16336
  }, _callee15, this);
16323
16337
  }));
@@ -16330,11 +16344,11 @@ var init_wistia_player = __esm({
16330
16344
  key: "releaseControls",
16331
16345
  value: (function() {
16332
16346
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
16333
- var _classPrivateFieldGet110;
16347
+ var _classPrivateFieldGet111;
16334
16348
  return _regenerator().w(function(_context16) {
16335
16349
  while (1) switch (_context16.n) {
16336
16350
  case 0:
16337
- return _context16.a(2, (_classPrivateFieldGet110 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.releaseControls(name));
16351
+ return _context16.a(2, (_classPrivateFieldGet111 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.releaseControls(name));
16338
16352
  }
16339
16353
  }, _callee16, this);
16340
16354
  }));
@@ -16395,7 +16409,7 @@ var init_wistia_player = __esm({
16395
16409
  case 0:
16396
16410
  options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
16397
16411
  return _context17.a(2, new Promise(function(resolve, reject) {
16398
- var _classPrivateFieldGet111;
16412
+ var _classPrivateFieldGet112;
16399
16413
  if (!_classPrivateFieldGet(_api, _this0)) {
16400
16414
  reject(new Error("api not ready to replace"));
16401
16415
  }
@@ -16405,7 +16419,7 @@ var init_wistia_player = __esm({
16405
16419
  resolve();
16406
16420
  };
16407
16421
  _this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
16408
- (_classPrivateFieldGet111 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.replaceWith(mediaId, options);
16422
+ (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.replaceWith(mediaId, options);
16409
16423
  }));
16410
16424
  }
16411
16425
  }, _callee17);
@@ -16419,11 +16433,11 @@ var init_wistia_player = __esm({
16419
16433
  key: "requestControls",
16420
16434
  value: (function() {
16421
16435
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
16422
- var _classPrivateFieldGet112;
16436
+ var _classPrivateFieldGet113;
16423
16437
  return _regenerator().w(function(_context18) {
16424
16438
  while (1) switch (_context18.n) {
16425
16439
  case 0:
16426
- return _context18.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.requestControls(name));
16440
+ return _context18.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.requestControls(name));
16427
16441
  }
16428
16442
  }, _callee18, this);
16429
16443
  }));
@@ -16436,11 +16450,11 @@ var init_wistia_player = __esm({
16436
16450
  key: "requestFullscreen",
16437
16451
  value: (function() {
16438
16452
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
16439
- var _classPrivateFieldGet113;
16453
+ var _classPrivateFieldGet114;
16440
16454
  return _regenerator().w(function(_context19) {
16441
16455
  while (1) switch (_context19.n) {
16442
16456
  case 0:
16443
- if (!((_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet113 !== void 0 && _classPrivateFieldGet113.requestFullscreen)) {
16457
+ if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet114 !== void 0 && _classPrivateFieldGet114.requestFullscreen)) {
16444
16458
  _context19.n = 1;
16445
16459
  break;
16446
16460
  }
@@ -16459,11 +16473,11 @@ var init_wistia_player = __esm({
16459
16473
  key: "showOverlay",
16460
16474
  value: (function() {
16461
16475
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
16462
- var _classPrivateFieldGet114;
16476
+ var _classPrivateFieldGet115;
16463
16477
  return _regenerator().w(function(_context20) {
16464
16478
  while (1) switch (_context20.n) {
16465
16479
  case 0:
16466
- if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet114 !== void 0 && _classPrivateFieldGet114.requestOverlay)) {
16480
+ if (!((_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.requestOverlay)) {
16467
16481
  _context20.n = 1;
16468
16482
  break;
16469
16483
  }
@@ -16487,8 +16501,8 @@ var init_wistia_player = __esm({
16487
16501
  while (1) switch (_context21.n) {
16488
16502
  case 0:
16489
16503
  return _context21.a(2, new Promise(function(resolve, reject) {
16490
- var _classPrivateFieldGet115;
16491
- if ((_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.popover) {
16504
+ var _classPrivateFieldGet116;
16505
+ if ((_classPrivateFieldGet116 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet116 !== void 0 && _classPrivateFieldGet116.popover) {
16492
16506
  _classPrivateFieldGet(_api, _this1).popover.show();
16493
16507
  resolve();
16494
16508
  }
@@ -16712,7 +16726,7 @@ var init_wistia_player = __esm({
16712
16726
  }, {
16713
16727
  key: "disconnectedCallback",
16714
16728
  value: function disconnectedCallback() {
16715
- var _classPrivateFieldGet116, _classPrivateFieldGet117, _this$shadowRoot;
16729
+ var _classPrivateFieldGet117, _classPrivateFieldGet118, _this$shadowRoot;
16716
16730
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
16717
16731
  return removeListener();
16718
16732
  });
@@ -16720,10 +16734,10 @@ var init_wistia_player = __esm({
16720
16734
  _classPrivateFieldSet(_eventListeners, this, {});
16721
16735
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
16722
16736
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
16723
- (_classPrivateFieldGet116 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.disconnect();
16737
+ (_classPrivateFieldGet117 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.disconnect();
16724
16738
  _classPrivateFieldSet(_resizeObserver, this, null);
16725
16739
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
16726
- (_classPrivateFieldGet117 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.remove();
16740
+ (_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet118 === void 0 ? void 0 : _classPrivateFieldGet118.remove();
16727
16741
  _classPrivateFieldSet(_api, this, null);
16728
16742
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
16729
16743
  _classPrivateFieldSet(_preactRoot, this, null);