@wistia/wistia-player-react 0.0.64 → 0.0.66

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.
@@ -580,8 +580,8 @@ function _generateUniqueId(mediaId) {
580
580
  return candidate;
581
581
  }
582
582
  function _getSyncedEmbedOption(key) {
583
- var _classPrivateFieldGet138, _ref17, _ref18;
584
- if ((_classPrivateFieldGet138 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet138 !== void 0 && _classPrivateFieldGet138._impl && key in _classPrivateFieldGet(_api, this)._impl._attrs) {
583
+ var _classPrivateFieldGet142, _ref17, _ref18;
584
+ if ((_classPrivateFieldGet142 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet142 !== void 0 && _classPrivateFieldGet142._impl && key in _classPrivateFieldGet(_api, this)._impl._attrs) {
585
585
  return _classPrivateFieldGet(_api, this)._impl._attrs[key];
586
586
  }
587
587
  return (_ref17 = (_ref18 = this.embedOptions[key]) !== null && _ref18 !== void 0 ? _ref18 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_27__.$)(key))) !== null && _ref17 !== void 0 ? _ref17 : defaultEmbedOptions[key];
@@ -612,42 +612,42 @@ function _initPlayerEmbed(_ref19) {
612
612
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
613
613
  }
614
614
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
615
- var _classPrivateFieldGet139;
616
- (_classPrivateFieldGet139 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet139 === void 0 ? void 0 : _classPrivateFieldGet139.states.delete("--initializing");
615
+ var _classPrivateFieldGet143;
616
+ (_classPrivateFieldGet143 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet143 === void 0 ? void 0 : _classPrivateFieldGet143.states.delete("--initializing");
617
617
  }
618
618
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
619
619
  container,
620
620
  mediaData
621
621
  });
622
622
  }
623
- function _initPublicApi(_x17, _x18) {
623
+ function _initPublicApi(_x18, _x19) {
624
624
  return _initPublicApi2.apply(this, arguments);
625
625
  }
626
626
  function _initPublicApi2() {
627
- _initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22(mediaId, options) {
627
+ _initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee23(mediaId, options) {
628
628
  var _this16 = this;
629
629
  var embeddedCallback;
630
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
631
- while (1) switch (_context22.prev = _context22.next) {
630
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
631
+ while (1) switch (_context23.prev = _context23.next) {
632
632
  case 0:
633
- _context22.next = 2;
633
+ _context23.next = 2;
634
634
  return _classPrivateFieldGet(_publicApiScript, this);
635
635
  case 2:
636
636
  if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.PublicApi) {
637
- _context22.next = 5;
637
+ _context23.next = 5;
638
638
  break;
639
639
  }
640
640
  (0, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_14__.WO)("player/failure/init-failed");
641
641
  throw new Error("Wistia.PublicApi is not defined");
642
642
  case 5:
643
643
  embeddedCallback = function embeddedCallback2() {
644
- var _classPrivateFieldGet149, _classPrivateFieldGet150;
644
+ var _classPrivateFieldGet153, _classPrivateFieldGet154;
645
645
  void _assertClassBrand(_WistiaPlayer_brand, _this16, _maybeInitializeMux).call(_this16);
646
646
  _classPrivateFieldSet(_preloadAspectRatio, _this16, void 0);
647
647
  _assertClassBrand(_WistiaPlayer_brand, _this16, _renderEmbedTemplate).call(_this16);
648
- (_classPrivateFieldGet149 = _classPrivateFieldGet(_preloadThumbnailRoot, _this16)) === null || _classPrivateFieldGet149 === void 0 ? void 0 : _classPrivateFieldGet149.remove();
648
+ (_classPrivateFieldGet153 = _classPrivateFieldGet(_preloadThumbnailRoot, _this16)) === null || _classPrivateFieldGet153 === void 0 ? void 0 : _classPrivateFieldGet153.remove();
649
649
  _this16.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this16));
650
- (_classPrivateFieldGet150 = _classPrivateFieldGet(_resizeObserver, _this16)) === null || _classPrivateFieldGet150 === void 0 ? void 0 : _classPrivateFieldGet150.disconnect();
650
+ (_classPrivateFieldGet154 = _classPrivateFieldGet(_resizeObserver, _this16)) === null || _classPrivateFieldGet154 === void 0 ? void 0 : _classPrivateFieldGet154.disconnect();
651
651
  _classPrivateFieldSet(_resizeObserver, _this16, null);
652
652
  if (_classPrivateFieldGet(_playPending, _this16)) {
653
653
  void _this16.play();
@@ -659,7 +659,7 @@ function _initPublicApi2() {
659
659
  });
660
660
  _classPrivateFieldSet(_api, this, new _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.PublicApi(mediaId, options));
661
661
  _classPrivateFieldGet(_api, this).ready(function() {
662
- var _classPrivateFieldGet151;
662
+ var _classPrivateFieldGet155;
663
663
  _this16.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, {
664
664
  detail: {
665
665
  mediaId
@@ -671,7 +671,7 @@ function _initPublicApi2() {
671
671
  api: _classPrivateFieldGet(_api, _this16)
672
672
  }
673
673
  }));
674
- if ((_classPrivateFieldGet151 = _classPrivateFieldGet(_api, _this16)) !== null && _classPrivateFieldGet151 !== void 0 && _classPrivateFieldGet151._impl) {
674
+ if ((_classPrivateFieldGet155 = _classPrivateFieldGet(_api, _this16)) !== null && _classPrivateFieldGet155 !== void 0 && _classPrivateFieldGet155._impl) {
675
675
  Object.entries(_classPrivateFieldGet(_api, _this16)._impl._attrs).forEach(function(_ref25) {
676
676
  var _ref26 = _slicedToArray(_ref25, 2), key = _ref26[0], value = _ref26[1];
677
677
  _classPrivateFieldGet(_playerData, _this16).updateEmbedOptionOverrides(_defineProperty({}, key, value));
@@ -681,9 +681,9 @@ function _initPublicApi2() {
681
681
  });
682
682
  case 10:
683
683
  case "end":
684
- return _context22.stop();
684
+ return _context23.stop();
685
685
  }
686
- }, _callee22, this);
686
+ }, _callee23, this);
687
687
  }));
688
688
  return _initPublicApi2.apply(this, arguments);
689
689
  }
@@ -694,44 +694,44 @@ function _maybeInitializeMux() {
694
694
  return _maybeInitializeMux2.apply(this, arguments);
695
695
  }
696
696
  function _maybeInitializeMux2() {
697
- _maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee23() {
697
+ _maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee24() {
698
698
  var _this17 = this;
699
699
  var shouldRandomEnableMux, shouldEnableMuxForPlayer, embedType, mux;
700
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
701
- while (1) switch (_context23.prev = _context23.next) {
700
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
701
+ while (1) switch (_context24.prev = _context24.next) {
702
702
  case 0:
703
703
  if (_classPrivateFieldGet(_api, this)) {
704
- _context23.next = 2;
704
+ _context24.next = 2;
705
705
  break;
706
706
  }
707
- return _context23.abrupt("return");
707
+ return _context24.abrupt("return");
708
708
  case 2:
709
709
  shouldRandomEnableMux = (0, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_30__.k)(_utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_31__._);
710
710
  shouldEnableMuxForPlayer = (0, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_31__.J)(_classPrivateFieldGet(_api, this), shouldRandomEnableMux) && (0, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_15__.D5)();
711
711
  embedType = this.useWebComponent ? "translated-web-component" : "web-component";
712
712
  if (!shouldEnableMuxForPlayer) {
713
- _context23.next = 11;
713
+ _context24.next = 11;
714
714
  break;
715
715
  }
716
- _context23.next = 8;
716
+ _context24.next = 8;
717
717
  return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_7__.$)("assets/external/wistia-mux.js");
718
718
  case 8:
719
- mux = _context23.sent;
719
+ mux = _context24.sent;
720
720
  mux.init(_classPrivateFieldGet(_api, this), {
721
721
  embedType
722
722
  });
723
723
  this.addEventListener("visitor-tracking-change", function(event) {
724
724
  var isTrackingEnabled = event.detail.isTrackingEnabled;
725
725
  if (!isTrackingEnabled) {
726
- var _classPrivateFieldGet153, _classPrivateFieldGet154;
727
- (_classPrivateFieldGet153 = _classPrivateFieldGet(_api, _this17)) === null || _classPrivateFieldGet153 === void 0 ? void 0 : (_classPrivateFieldGet154 = _classPrivateFieldGet153.mux) === null || _classPrivateFieldGet154 === void 0 ? void 0 : _classPrivateFieldGet154.destroy();
726
+ var _classPrivateFieldGet157, _classPrivateFieldGet158;
727
+ (_classPrivateFieldGet157 = _classPrivateFieldGet(_api, _this17)) === null || _classPrivateFieldGet157 === void 0 ? void 0 : (_classPrivateFieldGet158 = _classPrivateFieldGet157.mux) === null || _classPrivateFieldGet158 === void 0 ? void 0 : _classPrivateFieldGet158.destroy();
728
728
  }
729
729
  });
730
730
  case 11:
731
731
  case "end":
732
- return _context23.stop();
732
+ return _context24.stop();
733
733
  }
734
- }, _callee23, this);
734
+ }, _callee24, this);
735
735
  }));
736
736
  return _maybeInitializeMux2.apply(this, arguments);
737
737
  }
@@ -816,8 +816,8 @@ function _renderPreloadThumbnail() {
816
816
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
817
817
  return;
818
818
  }
819
- var _classPrivateFieldGet140 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet140.assets, mediaType = _classPrivateFieldGet140.mediaType;
820
- var _classPrivateFieldGet141 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet141.autoPlay, plugin = _classPrivateFieldGet141.plugin;
819
+ var _classPrivateFieldGet144 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet144.assets, mediaType = _classPrivateFieldGet144.mediaType;
820
+ var _classPrivateFieldGet145 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet145.autoPlay, plugin = _classPrivateFieldGet145.plugin;
821
821
  var thumbnailAssets = (0, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_5__.Q0)(assets, {});
822
822
  var willAutoplay = this.autoplay || autoPlay;
823
823
  var hasVideoThumbnail = (plugin === null || plugin === void 0 ? void 0 : plugin.videoThumbnail) !== void 0;
@@ -839,12 +839,12 @@ function _runMethodsFromAttributes() {
839
839
  var _this12 = this;
840
840
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
841
841
  this.whenApiReady().then(function() {
842
- var _ref21, _classPrivateFieldGet142, _classPrivateFieldGet143, _classPrivateFieldGet144;
842
+ var _ref21, _classPrivateFieldGet146, _classPrivateFieldGet147, _classPrivateFieldGet148;
843
843
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this12, _getValueFromAttribute).call(_this12, "current-time"));
844
- var isClosedPopover = (_ref21 = ((_classPrivateFieldGet142 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet142 === void 0 ? void 0 : _classPrivateFieldGet142.popover) && !_classPrivateFieldGet(_api, _this12).popover.isVisible()) !== null && _ref21 !== void 0 ? _ref21 : false;
844
+ var isClosedPopover = (_ref21 = ((_classPrivateFieldGet146 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet146 === void 0 ? void 0 : _classPrivateFieldGet146.popover) && !_classPrivateFieldGet(_api, _this12).popover.isVisible()) !== null && _ref21 !== void 0 ? _ref21 : false;
845
845
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_6__.GS)();
846
846
  var shouldDelayUntilPlay = _this12.state !== "playing" && (isMobile || isClosedPopover);
847
- void ((_classPrivateFieldGet143 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet143 === void 0 ? void 0 : (_classPrivateFieldGet144 = _classPrivateFieldGet143._impl) === null || _classPrivateFieldGet144 === void 0 ? void 0 : _classPrivateFieldGet144.time(newTime, {
847
+ void ((_classPrivateFieldGet147 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet147 === void 0 ? void 0 : (_classPrivateFieldGet148 = _classPrivateFieldGet147._impl) === null || _classPrivateFieldGet148 === void 0 ? void 0 : _classPrivateFieldGet148.time(newTime, {
848
848
  lazy: shouldDelayUntilPlay
849
849
  }));
850
850
  _assertClassBrand(_WistiaPlayer_brand, _this12, _setSyncedEmbedOption).call(_this12, "currentTime", newTime);
@@ -856,9 +856,9 @@ function _runMethodsFromAttributes() {
856
856
  }
857
857
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
858
858
  this.whenApiReady().then(function() {
859
- var _classPrivateFieldGet145, _classPrivateFieldGet146;
859
+ var _classPrivateFieldGet149, _classPrivateFieldGet150;
860
860
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this12, _getValueFromAttribute).call(_this12, "video-quality");
861
- (_classPrivateFieldGet145 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet145 === void 0 ? void 0 : (_classPrivateFieldGet146 = _classPrivateFieldGet145._impl) === null || _classPrivateFieldGet146 === void 0 ? void 0 : _classPrivateFieldGet146.setVideoQuality(newQuality);
861
+ (_classPrivateFieldGet149 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet149 === void 0 ? void 0 : (_classPrivateFieldGet150 = _classPrivateFieldGet149._impl) === null || _classPrivateFieldGet150 === void 0 ? void 0 : _classPrivateFieldGet150.setVideoQuality(newQuality);
862
862
  _assertClassBrand(_WistiaPlayer_brand, _this12, _setSyncedEmbedOption).call(_this12, "videoQuality", newQuality);
863
863
  }).catch(function(_error) {
864
864
  });
@@ -874,9 +874,9 @@ function _saveInitialAttributesFromDomOptions() {
874
874
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_8__.gY)("__".concat(this.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, this).embedOptions);
875
875
  }
876
876
  function _setSyncedEmbedOption(key, value) {
877
- var _classPrivateFieldGet147;
877
+ var _classPrivateFieldGet151;
878
878
  _classPrivateFieldGet(_logger, this).info("set ".concat(key), value.toString());
879
- if ((_classPrivateFieldGet147 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet147 !== void 0 && _classPrivateFieldGet147._impl) {
879
+ if ((_classPrivateFieldGet151 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet151 !== void 0 && _classPrivateFieldGet151._impl) {
880
880
  _classPrivateFieldGet(_api, this)._impl._attrs[key] = value;
881
881
  }
882
882
  _classPrivateFieldGet(_playerData, this).updateEmbedOptionOverrides(_defineProperty({}, key, value));
@@ -9636,7 +9636,7 @@ var init_wistia_player = __esm({
9636
9636
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9637
9637
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9638
9638
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9639
- var TAGGED_VERSION = "0.0.64";
9639
+ var TAGGED_VERSION = "0.0.66";
9640
9640
  var DEFAULT_PROTOCOL = function() {
9641
9641
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9642
9642
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -13719,6 +13719,16 @@ var init_wistia_player = __esm({
13719
13719
  var _classPrivateFieldGet38, _classPrivateFieldGet39, _classPrivateFieldGet40;
13720
13720
  return (_classPrivateFieldGet38 = (_classPrivateFieldGet39 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet39 === void 0 ? void 0 : (_classPrivateFieldGet40 = _classPrivateFieldGet39._impl) === null || _classPrivateFieldGet40 === void 0 ? void 0 : _classPrivateFieldGet40.inFullscreen()) !== null && _classPrivateFieldGet38 !== void 0 ? _classPrivateFieldGet38 : false;
13721
13721
  }
13722
+ /**
13723
+ * Returns whether instantHLS is enabled for the video.
13724
+ * @returns {boolean}
13725
+ */
13726
+ }, {
13727
+ key: "instantHls",
13728
+ get: function get() {
13729
+ var _classPrivateFieldGet41, _classPrivateFieldGet42, _classPrivateFieldGet43;
13730
+ return (_classPrivateFieldGet41 = (_classPrivateFieldGet42 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet42 === void 0 ? void 0 : (_classPrivateFieldGet43 = _classPrivateFieldGet42._impl) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.isInstantHls()) !== null && _classPrivateFieldGet41 !== void 0 ? _classPrivateFieldGet41 : false;
13731
+ }
13722
13732
  /**
13723
13733
  * Returns all the mediaData set on the WistiaPlayer
13724
13734
  * @returns {MediaData }
@@ -13753,17 +13763,17 @@ var init_wistia_player = __esm({
13753
13763
  }, {
13754
13764
  key: "muted",
13755
13765
  get: function get() {
13756
- var _ref7, _classPrivateFieldGet41, _classPrivateFieldGet42, _classPrivateFieldGet43;
13757
- return (_ref7 = (_classPrivateFieldGet41 = (_classPrivateFieldGet42 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet42 === void 0 ? void 0 : (_classPrivateFieldGet43 = _classPrivateFieldGet42._impl) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.isMuted()) !== null && _classPrivateFieldGet41 !== void 0 ? _classPrivateFieldGet41 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
13766
+ var _ref7, _classPrivateFieldGet44, _classPrivateFieldGet45, _classPrivateFieldGet46;
13767
+ return (_ref7 = (_classPrivateFieldGet44 = (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : (_classPrivateFieldGet46 = _classPrivateFieldGet45._impl) === null || _classPrivateFieldGet46 === void 0 ? void 0 : _classPrivateFieldGet46.isMuted()) !== null && _classPrivateFieldGet44 !== void 0 ? _classPrivateFieldGet44 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
13758
13768
  },
13759
13769
  set: function set(shouldMute) {
13760
13770
  if (_classPrivateFieldGet(_api, this)) {
13761
13771
  if (shouldMute) {
13762
- var _classPrivateFieldGet44;
13763
- void ((_classPrivateFieldGet44 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet44 === void 0 ? void 0 : _classPrivateFieldGet44.mute());
13772
+ var _classPrivateFieldGet47;
13773
+ void ((_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.mute());
13764
13774
  } else {
13765
- var _classPrivateFieldGet45;
13766
- void ((_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.unmute());
13775
+ var _classPrivateFieldGet48;
13776
+ void ((_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.unmute());
13767
13777
  }
13768
13778
  }
13769
13779
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "muted", shouldMute);
@@ -13776,8 +13786,8 @@ var init_wistia_player = __esm({
13776
13786
  }, {
13777
13787
  key: "name",
13778
13788
  get: function get() {
13779
- var _ref8, _classPrivateFieldGet46, _classPrivateFieldGet47, _classPrivateFieldGet48;
13780
- return (_ref8 = (_classPrivateFieldGet46 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet46 !== void 0 ? _classPrivateFieldGet46 : (_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet47 === void 0 ? void 0 : (_classPrivateFieldGet48 = _classPrivateFieldGet47._mediaData) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
13789
+ var _ref8, _classPrivateFieldGet49, _classPrivateFieldGet50, _classPrivateFieldGet51;
13790
+ 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;
13781
13791
  }
13782
13792
  }, {
13783
13793
  key: "paddingTop",
@@ -13794,8 +13804,8 @@ var init_wistia_player = __esm({
13794
13804
  }, {
13795
13805
  key: "paused",
13796
13806
  get: function get() {
13797
- var _classPrivateFieldGet49, _classPrivateFieldGet50;
13798
- return ((_classPrivateFieldGet49 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet49 === void 0 ? void 0 : (_classPrivateFieldGet50 = _classPrivateFieldGet49._impl) === null || _classPrivateFieldGet50 === void 0 ? void 0 : _classPrivateFieldGet50.state()) === "paused";
13807
+ var _classPrivateFieldGet52, _classPrivateFieldGet53;
13808
+ return ((_classPrivateFieldGet52 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : (_classPrivateFieldGet53 = _classPrivateFieldGet52._impl) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.state()) === "paused";
13799
13809
  }
13800
13810
  /**
13801
13811
  * Returns the percent of the video that has been watched as a decimal between 0 and 1.
@@ -13804,8 +13814,8 @@ var init_wistia_player = __esm({
13804
13814
  }, {
13805
13815
  key: "percentWatched",
13806
13816
  get: function get() {
13807
- var _classPrivateFieldGet51, _classPrivateFieldGet52, _classPrivateFieldGet53;
13808
- return (_classPrivateFieldGet51 = (_classPrivateFieldGet52 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : (_classPrivateFieldGet53 = _classPrivateFieldGet52._impl) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.percentWatched()) !== null && _classPrivateFieldGet51 !== void 0 ? _classPrivateFieldGet51 : 0;
13817
+ var _classPrivateFieldGet54, _classPrivateFieldGet55, _classPrivateFieldGet56;
13818
+ return (_classPrivateFieldGet54 = (_classPrivateFieldGet55 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet55 === void 0 ? void 0 : (_classPrivateFieldGet56 = _classPrivateFieldGet55._impl) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.percentWatched()) !== null && _classPrivateFieldGet54 !== void 0 ? _classPrivateFieldGet54 : 0;
13809
13819
  }
13810
13820
  /**
13811
13821
  * Returns the playback rate of the video.
@@ -13814,12 +13824,12 @@ var init_wistia_player = __esm({
13814
13824
  }, {
13815
13825
  key: "playbackRate",
13816
13826
  get: function get() {
13817
- var _ref9, _classPrivateFieldGet54, _classPrivateFieldGet55, _classPrivateFieldGet56;
13818
- return (_ref9 = (_classPrivateFieldGet54 = (_classPrivateFieldGet55 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet55 === void 0 ? void 0 : (_classPrivateFieldGet56 = _classPrivateFieldGet55._impl) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.playbackRate()) !== null && _classPrivateFieldGet54 !== void 0 ? _classPrivateFieldGet54 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
13827
+ var _ref9, _classPrivateFieldGet57, _classPrivateFieldGet58, _classPrivateFieldGet59;
13828
+ return (_ref9 = (_classPrivateFieldGet57 = (_classPrivateFieldGet58 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet58 === void 0 ? void 0 : (_classPrivateFieldGet59 = _classPrivateFieldGet58._impl) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRate()) !== null && _classPrivateFieldGet57 !== void 0 ? _classPrivateFieldGet57 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
13819
13829
  },
13820
13830
  set: function set(rate) {
13821
- var _classPrivateFieldGet57, _classPrivateFieldGet58;
13822
- (_classPrivateFieldGet57 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : (_classPrivateFieldGet58 = _classPrivateFieldGet57._impl) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.playbackRate(rate);
13831
+ var _classPrivateFieldGet60, _classPrivateFieldGet61;
13832
+ (_classPrivateFieldGet60 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : (_classPrivateFieldGet61 = _classPrivateFieldGet60._impl) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbackRate(rate);
13823
13833
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
13824
13834
  }
13825
13835
  /**
@@ -13832,8 +13842,8 @@ var init_wistia_player = __esm({
13832
13842
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
13833
13843
  },
13834
13844
  set: function set(shouldDisplay) {
13835
- var _classPrivateFieldGet59, _classPrivateFieldGet60;
13836
- (_classPrivateFieldGet59 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : (_classPrivateFieldGet60 = _classPrivateFieldGet59._impl) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbackRateControlEnabled(shouldDisplay);
13845
+ var _classPrivateFieldGet62, _classPrivateFieldGet63;
13846
+ (_classPrivateFieldGet62 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : (_classPrivateFieldGet63 = _classPrivateFieldGet62._impl) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
13837
13847
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
13838
13848
  }
13839
13849
  /**
@@ -13846,8 +13856,8 @@ var init_wistia_player = __esm({
13846
13856
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
13847
13857
  },
13848
13858
  set: function set(shouldDisplay) {
13849
- var _classPrivateFieldGet61, _classPrivateFieldGet62;
13850
- (_classPrivateFieldGet61 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : (_classPrivateFieldGet62 = _classPrivateFieldGet61._impl) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbarControlEnabled(shouldDisplay);
13859
+ var _classPrivateFieldGet64, _classPrivateFieldGet65;
13860
+ (_classPrivateFieldGet64 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : (_classPrivateFieldGet65 = _classPrivateFieldGet64._impl) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playbarControlEnabled(shouldDisplay);
13851
13861
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
13852
13862
  }
13853
13863
  /**
@@ -13860,8 +13870,8 @@ var init_wistia_player = __esm({
13860
13870
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
13861
13871
  },
13862
13872
  set: function set(radius) {
13863
- var _classPrivateFieldGet63, _classPrivateFieldGet64;
13864
- (_classPrivateFieldGet63 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : (_classPrivateFieldGet64 = _classPrivateFieldGet63._impl) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.setPlayerBorderRadius(Number(radius));
13873
+ var _classPrivateFieldGet66, _classPrivateFieldGet67;
13874
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : (_classPrivateFieldGet67 = _classPrivateFieldGet66._impl) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.setPlayerBorderRadius(Number(radius));
13865
13875
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", radius);
13866
13876
  }
13867
13877
  /**
@@ -13874,8 +13884,8 @@ var init_wistia_player = __esm({
13874
13884
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
13875
13885
  },
13876
13886
  set: function set(newColor) {
13877
- var _classPrivateFieldGet65, _classPrivateFieldGet66;
13878
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : (_classPrivateFieldGet66 = _classPrivateFieldGet65._impl) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
13887
+ var _classPrivateFieldGet68, _classPrivateFieldGet69;
13888
+ (_classPrivateFieldGet68 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : (_classPrivateFieldGet69 = _classPrivateFieldGet68._impl) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playerColor(newColor);
13879
13889
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
13880
13890
  }
13881
13891
  /**
@@ -13931,8 +13941,8 @@ var init_wistia_player = __esm({
13931
13941
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
13932
13942
  },
13933
13943
  set: function set(shouldDisplay) {
13934
- var _classPrivateFieldGet67, _classPrivateFieldGet68;
13935
- (_classPrivateFieldGet67 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : (_classPrivateFieldGet68 = _classPrivateFieldGet67._impl) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
13944
+ var _classPrivateFieldGet70, _classPrivateFieldGet71;
13945
+ (_classPrivateFieldGet70 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : (_classPrivateFieldGet71 = _classPrivateFieldGet70._impl) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.playPauseControlEnabled(shouldDisplay);
13936
13946
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
13937
13947
  }
13938
13948
  /**
@@ -13947,8 +13957,8 @@ var init_wistia_player = __esm({
13947
13957
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
13948
13958
  },
13949
13959
  set: function set(shouldDisplay) {
13950
- var _classPrivateFieldGet69, _classPrivateFieldGet70;
13951
- (_classPrivateFieldGet69 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : (_classPrivateFieldGet70 = _classPrivateFieldGet69._impl) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.playPauseNotifierEnabled(shouldDisplay);
13960
+ var _classPrivateFieldGet72, _classPrivateFieldGet73;
13961
+ (_classPrivateFieldGet72 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : (_classPrivateFieldGet73 = _classPrivateFieldGet72._impl) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.playPauseNotifierEnabled(shouldDisplay);
13952
13962
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
13953
13963
  }
13954
13964
  /**
@@ -13959,8 +13969,8 @@ var init_wistia_player = __esm({
13959
13969
  }, {
13960
13970
  key: "plugins",
13961
13971
  get: function get() {
13962
- var _classPrivateFieldGet71;
13963
- if ((_classPrivateFieldGet71 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet71 !== void 0 && _classPrivateFieldGet71._impl) {
13972
+ var _classPrivateFieldGet74;
13973
+ if ((_classPrivateFieldGet74 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74._impl) {
13964
13974
  return Object.seal(_objectSpread({}, _classPrivateFieldGet(_api, this)._impl.plugin));
13965
13975
  }
13966
13976
  return {};
@@ -14167,8 +14177,8 @@ var init_wistia_player = __esm({
14167
14177
  }, {
14168
14178
  key: "preload",
14169
14179
  get: function get() {
14170
- var _ref11, _classPrivateFieldGet72, _classPrivateFieldGet73, _classPrivateFieldGet74;
14171
- return (_ref11 = (_classPrivateFieldGet72 = (_classPrivateFieldGet73 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : (_classPrivateFieldGet74 = _classPrivateFieldGet73._impl) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.preloadValue()) !== null && _classPrivateFieldGet72 !== void 0 ? _classPrivateFieldGet72 : this.embedOptions.preload) !== null && _ref11 !== void 0 ? _ref11 : void 0;
14180
+ var _ref11, _classPrivateFieldGet75, _classPrivateFieldGet76, _classPrivateFieldGet77;
14181
+ return (_ref11 = (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : (_classPrivateFieldGet77 = _classPrivateFieldGet76._impl) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.preloadValue()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : this.embedOptions.preload) !== null && _ref11 !== void 0 ? _ref11 : void 0;
14172
14182
  },
14173
14183
  set: function set(preloadValue) {
14174
14184
  var prevVal = this.preload;
@@ -14188,8 +14198,8 @@ var init_wistia_player = __esm({
14188
14198
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
14189
14199
  },
14190
14200
  set: function set(shouldDisplay) {
14191
- var _classPrivateFieldGet75, _classPrivateFieldGet76;
14192
- (_classPrivateFieldGet75 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : (_classPrivateFieldGet76 = _classPrivateFieldGet75._impl) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.qualityControlEnabled(shouldDisplay);
14201
+ var _classPrivateFieldGet78, _classPrivateFieldGet79;
14202
+ (_classPrivateFieldGet78 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : (_classPrivateFieldGet79 = _classPrivateFieldGet78._impl) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.qualityControlEnabled(shouldDisplay);
14193
14203
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
14194
14204
  }
14195
14205
  /**
@@ -14202,8 +14212,8 @@ var init_wistia_player = __esm({
14202
14212
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
14203
14213
  },
14204
14214
  set: function set(quality) {
14205
- var _classPrivateFieldGet77, _classPrivateFieldGet78;
14206
- (_classPrivateFieldGet77 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : (_classPrivateFieldGet78 = _classPrivateFieldGet77._impl) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.qualityMax(quality);
14215
+ var _classPrivateFieldGet80, _classPrivateFieldGet81;
14216
+ (_classPrivateFieldGet80 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : (_classPrivateFieldGet81 = _classPrivateFieldGet80._impl) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.qualityMax(quality);
14207
14217
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
14208
14218
  }
14209
14219
  /**
@@ -14216,8 +14226,8 @@ var init_wistia_player = __esm({
14216
14226
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
14217
14227
  },
14218
14228
  set: function set(quality) {
14219
- var _classPrivateFieldGet79, _classPrivateFieldGet80;
14220
- (_classPrivateFieldGet79 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : (_classPrivateFieldGet80 = _classPrivateFieldGet79._impl) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.qualityMin(quality);
14229
+ var _classPrivateFieldGet82, _classPrivateFieldGet83;
14230
+ (_classPrivateFieldGet82 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : (_classPrivateFieldGet83 = _classPrivateFieldGet82._impl) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.qualityMin(quality);
14221
14231
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
14222
14232
  }
14223
14233
  /**
@@ -14227,8 +14237,8 @@ var init_wistia_player = __esm({
14227
14237
  }, {
14228
14238
  key: "readyState",
14229
14239
  get: function get() {
14230
- var _classPrivateFieldGet81, _classPrivateFieldGet82, _classPrivateFieldGet83;
14231
- return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : (_classPrivateFieldGet83 = _classPrivateFieldGet82._impl) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.getReadyState()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : 0;
14240
+ var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
14241
+ return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : (_classPrivateFieldGet86 = _classPrivateFieldGet85._impl) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.getReadyState()) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : 0;
14232
14242
  }
14233
14243
  /**
14234
14244
  * Returns the current resumable status of the video.
@@ -14240,8 +14250,8 @@ var init_wistia_player = __esm({
14240
14250
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable");
14241
14251
  },
14242
14252
  set: function set(resumableState) {
14243
- var _classPrivateFieldGet84, _classPrivateFieldGet85;
14244
- (_classPrivateFieldGet84 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : (_classPrivateFieldGet85 = _classPrivateFieldGet84._impl) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.setResumable(resumableState);
14253
+ var _classPrivateFieldGet87, _classPrivateFieldGet88;
14254
+ (_classPrivateFieldGet87 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : (_classPrivateFieldGet88 = _classPrivateFieldGet87._impl) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.setResumable(resumableState);
14245
14255
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
14246
14256
  }
14247
14257
  /**
@@ -14254,8 +14264,8 @@ var init_wistia_player = __esm({
14254
14264
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
14255
14265
  },
14256
14266
  set: function set(radius) {
14257
- var _classPrivateFieldGet86, _classPrivateFieldGet87;
14258
- (_classPrivateFieldGet86 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : (_classPrivateFieldGet87 = _classPrivateFieldGet86._impl) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87.setRoundedPlayer(Number(radius));
14267
+ var _classPrivateFieldGet89, _classPrivateFieldGet90;
14268
+ (_classPrivateFieldGet89 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : (_classPrivateFieldGet90 = _classPrivateFieldGet89._impl) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.setRoundedPlayer(Number(radius));
14259
14269
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", radius);
14260
14270
  }
14261
14271
  /**
@@ -14266,8 +14276,8 @@ var init_wistia_player = __esm({
14266
14276
  }, {
14267
14277
  key: "secondsWatched",
14268
14278
  get: function get() {
14269
- var _classPrivateFieldGet88, _classPrivateFieldGet89, _classPrivateFieldGet90;
14270
- return (_classPrivateFieldGet88 = (_classPrivateFieldGet89 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : (_classPrivateFieldGet90 = _classPrivateFieldGet89._impl) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.secondsWatched()) !== null && _classPrivateFieldGet88 !== void 0 ? _classPrivateFieldGet88 : 0;
14279
+ var _classPrivateFieldGet91, _classPrivateFieldGet92, _classPrivateFieldGet93;
14280
+ return (_classPrivateFieldGet91 = (_classPrivateFieldGet92 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : (_classPrivateFieldGet93 = _classPrivateFieldGet92._impl) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.secondsWatched()) !== null && _classPrivateFieldGet91 !== void 0 ? _classPrivateFieldGet91 : 0;
14271
14281
  }
14272
14282
  /**
14273
14283
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -14276,8 +14286,8 @@ var init_wistia_player = __esm({
14276
14286
  }, {
14277
14287
  key: "secondsWatchedVector",
14278
14288
  get: function get() {
14279
- var _classPrivateFieldGet91, _classPrivateFieldGet92, _classPrivateFieldGet93;
14280
- return (_classPrivateFieldGet91 = (_classPrivateFieldGet92 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : (_classPrivateFieldGet93 = _classPrivateFieldGet92._impl) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.secondsWatchedVector()) !== null && _classPrivateFieldGet91 !== void 0 ? _classPrivateFieldGet91 : [];
14289
+ var _classPrivateFieldGet94, _classPrivateFieldGet95, _classPrivateFieldGet96;
14290
+ return (_classPrivateFieldGet94 = (_classPrivateFieldGet95 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : (_classPrivateFieldGet96 = _classPrivateFieldGet95._impl) === null || _classPrivateFieldGet96 === void 0 ? void 0 : _classPrivateFieldGet96.secondsWatchedVector()) !== null && _classPrivateFieldGet94 !== void 0 ? _classPrivateFieldGet94 : [];
14281
14291
  }
14282
14292
  /**
14283
14293
  * Returns whether JSON+LD seo data will be injected.
@@ -14301,8 +14311,8 @@ var init_wistia_player = __esm({
14301
14311
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
14302
14312
  },
14303
14313
  set: function set(shouldDisplay) {
14304
- var _classPrivateFieldGet94, _classPrivateFieldGet95;
14305
- (_classPrivateFieldGet94 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : (_classPrivateFieldGet95 = _classPrivateFieldGet94._impl) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.settingsControlEnabled(shouldDisplay);
14314
+ var _classPrivateFieldGet97, _classPrivateFieldGet98;
14315
+ (_classPrivateFieldGet97 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : (_classPrivateFieldGet98 = _classPrivateFieldGet97._impl) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.settingsControlEnabled(shouldDisplay);
14306
14316
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
14307
14317
  }
14308
14318
  /**
@@ -14328,8 +14338,8 @@ var init_wistia_player = __esm({
14328
14338
  }, {
14329
14339
  key: "state",
14330
14340
  get: function get() {
14331
- var _classPrivateFieldGet96, _classPrivateFieldGet97;
14332
- return (_classPrivateFieldGet96 = (_classPrivateFieldGet97 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.state()) !== null && _classPrivateFieldGet96 !== void 0 ? _classPrivateFieldGet96 : defaultEmbedOptions.state;
14341
+ var _classPrivateFieldGet99, _classPrivateFieldGet100;
14342
+ return (_classPrivateFieldGet99 = (_classPrivateFieldGet100 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.state()) !== null && _classPrivateFieldGet99 !== void 0 ? _classPrivateFieldGet99 : defaultEmbedOptions.state;
14333
14343
  }
14334
14344
  /**
14335
14345
  * Returns the stats url for the player.
@@ -14407,12 +14417,12 @@ var init_wistia_player = __esm({
14407
14417
  }, {
14408
14418
  key: "videoQuality",
14409
14419
  get: function get() {
14410
- var _ref12, _classPrivateFieldGet98, _classPrivateFieldGet99, _classPrivateFieldGet100;
14411
- return (_ref12 = (_classPrivateFieldGet98 = (_classPrivateFieldGet99 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : (_classPrivateFieldGet100 = _classPrivateFieldGet99._impl) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.getVideoQuality()) !== null && _classPrivateFieldGet98 !== void 0 ? _classPrivateFieldGet98 : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
14420
+ var _ref12, _classPrivateFieldGet101, _classPrivateFieldGet102, _classPrivateFieldGet103;
14421
+ return (_ref12 = (_classPrivateFieldGet101 = (_classPrivateFieldGet102 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : (_classPrivateFieldGet103 = _classPrivateFieldGet102._impl) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.getVideoQuality()) !== null && _classPrivateFieldGet101 !== void 0 ? _classPrivateFieldGet101 : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
14412
14422
  },
14413
14423
  set: function set(quality) {
14414
- var _classPrivateFieldGet101, _classPrivateFieldGet102;
14415
- (_classPrivateFieldGet101 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet101 === void 0 ? void 0 : (_classPrivateFieldGet102 = _classPrivateFieldGet101._impl) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.setVideoQuality(quality);
14424
+ var _classPrivateFieldGet104, _classPrivateFieldGet105;
14425
+ (_classPrivateFieldGet104 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet104 === void 0 ? void 0 : (_classPrivateFieldGet105 = _classPrivateFieldGet104._impl) === null || _classPrivateFieldGet105 === void 0 ? void 0 : _classPrivateFieldGet105.setVideoQuality(quality);
14416
14426
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
14417
14427
  }
14418
14428
  /**
@@ -14435,8 +14445,8 @@ var init_wistia_player = __esm({
14435
14445
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
14436
14446
  },
14437
14447
  set: function set(level) {
14438
- var _classPrivateFieldGet103, _classPrivateFieldGet104;
14439
- (_classPrivateFieldGet103 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet103 === void 0 ? void 0 : (_classPrivateFieldGet104 = _classPrivateFieldGet103._impl) === null || _classPrivateFieldGet104 === void 0 ? void 0 : _classPrivateFieldGet104.volume(level);
14448
+ var _classPrivateFieldGet106, _classPrivateFieldGet107;
14449
+ (_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : (_classPrivateFieldGet107 = _classPrivateFieldGet106._impl) === null || _classPrivateFieldGet107 === void 0 ? void 0 : _classPrivateFieldGet107.volume(level);
14440
14450
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
14441
14451
  }
14442
14452
  /**
@@ -14451,8 +14461,8 @@ var init_wistia_player = __esm({
14451
14461
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
14452
14462
  },
14453
14463
  set: function set(shouldDisplay) {
14454
- var _classPrivateFieldGet105, _classPrivateFieldGet106;
14455
- (_classPrivateFieldGet105 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet105 === void 0 ? void 0 : (_classPrivateFieldGet106 = _classPrivateFieldGet105._impl) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.volumeControlEnabled(shouldDisplay);
14464
+ var _classPrivateFieldGet108, _classPrivateFieldGet109;
14465
+ (_classPrivateFieldGet108 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : (_classPrivateFieldGet109 = _classPrivateFieldGet108._impl) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.volumeControlEnabled(shouldDisplay);
14456
14466
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
14457
14467
  }
14458
14468
  /**
@@ -14479,11 +14489,11 @@ var init_wistia_player = __esm({
14479
14489
  */
14480
14490
  function() {
14481
14491
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
14482
- var _classPrivateFieldGet107, _classPrivateFieldGet108, _this3 = this;
14492
+ var _classPrivateFieldGet110, _classPrivateFieldGet111, _this3 = this;
14483
14493
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14484
14494
  while (1) switch (_context.prev = _context.next) {
14485
14495
  case 0:
14486
- return _context.abrupt("return", (_classPrivateFieldGet107 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet107 === void 0 ? void 0 : (_classPrivateFieldGet108 = _classPrivateFieldGet107._impl) === null || _classPrivateFieldGet108 === void 0 ? void 0 : _classPrivateFieldGet108.cancelFullscreen().then(function() {
14496
+ return _context.abrupt("return", (_classPrivateFieldGet110 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : (_classPrivateFieldGet111 = _classPrivateFieldGet110._impl) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.cancelFullscreen().then(function() {
14487
14497
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
14488
14498
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
14489
14499
  }));
@@ -14509,11 +14519,11 @@ var init_wistia_player = __esm({
14509
14519
  key: "createOverlay",
14510
14520
  value: function() {
14511
14521
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(name, options) {
14512
- var _classPrivateFieldGet109, _classPrivateFieldGet110;
14522
+ var _classPrivateFieldGet112, _classPrivateFieldGet113;
14513
14523
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
14514
14524
  while (1) switch (_context2.prev = _context2.next) {
14515
14525
  case 0:
14516
- if (!((_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet109 !== void 0 && (_classPrivateFieldGet110 = _classPrivateFieldGet109._impl) !== null && _classPrivateFieldGet110 !== void 0 && _classPrivateFieldGet110.defineOverlay)) {
14526
+ if (!((_classPrivateFieldGet112 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet112 !== void 0 && (_classPrivateFieldGet113 = _classPrivateFieldGet112._impl) !== null && _classPrivateFieldGet113 !== void 0 && _classPrivateFieldGet113.defineOverlay)) {
14517
14527
  _context2.next = 2;
14518
14528
  break;
14519
14529
  }
@@ -14542,11 +14552,11 @@ var init_wistia_player = __esm({
14542
14552
  case 0:
14543
14553
  addPlugin = /* @__PURE__ */ function() {
14544
14554
  var _ref13 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3() {
14545
- var _classPrivateFieldGet111, _classPrivateFieldGet112;
14555
+ var _classPrivateFieldGet114, _classPrivateFieldGet115;
14546
14556
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
14547
14557
  while (1) switch (_context3.prev = _context3.next) {
14548
14558
  case 0:
14549
- return _context3.abrupt("return", (_classPrivateFieldGet111 = (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.addPlugin(name, options)) !== null && _classPrivateFieldGet111 !== void 0 ? _classPrivateFieldGet111 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
14559
+ return _context3.abrupt("return", (_classPrivateFieldGet114 = (_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.addPlugin(name, options)) !== null && _classPrivateFieldGet114 !== void 0 ? _classPrivateFieldGet114 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
14550
14560
  case 1:
14551
14561
  case "end":
14552
14562
  return _context3.stop();
@@ -14592,11 +14602,11 @@ var init_wistia_player = __esm({
14592
14602
  key: "deleteOverlay",
14593
14603
  value: function() {
14594
14604
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5(name) {
14595
- var _classPrivateFieldGet113, _classPrivateFieldGet114;
14605
+ var _classPrivateFieldGet116, _classPrivateFieldGet117;
14596
14606
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
14597
14607
  while (1) switch (_context5.prev = _context5.next) {
14598
14608
  case 0:
14599
- if (!((_classPrivateFieldGet113 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet113 !== void 0 && (_classPrivateFieldGet114 = _classPrivateFieldGet113._impl) !== null && _classPrivateFieldGet114 !== void 0 && _classPrivateFieldGet114.undefineOverlay)) {
14609
+ if (!((_classPrivateFieldGet116 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet116 !== void 0 && (_classPrivateFieldGet117 = _classPrivateFieldGet116._impl) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.undefineOverlay)) {
14600
14610
  _context5.next = 2;
14601
14611
  break;
14602
14612
  }
@@ -14618,11 +14628,11 @@ var init_wistia_player = __esm({
14618
14628
  key: "disableControl",
14619
14629
  value: function() {
14620
14630
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6(name) {
14621
- var _classPrivateFieldGet115, _classPrivateFieldGet116;
14631
+ var _classPrivateFieldGet118, _classPrivateFieldGet119;
14622
14632
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
14623
14633
  while (1) switch (_context6.prev = _context6.next) {
14624
14634
  case 0:
14625
- if (!((_classPrivateFieldGet115 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet115 !== void 0 && (_classPrivateFieldGet116 = _classPrivateFieldGet115._impl) !== null && _classPrivateFieldGet116 !== void 0 && _classPrivateFieldGet116.setControlEnabled)) {
14635
+ if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet118 !== void 0 && (_classPrivateFieldGet119 = _classPrivateFieldGet118._impl) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.setControlEnabled)) {
14626
14636
  _context6.next = 2;
14627
14637
  break;
14628
14638
  }
@@ -14644,11 +14654,11 @@ var init_wistia_player = __esm({
14644
14654
  key: "enableControl",
14645
14655
  value: function() {
14646
14656
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee7(name) {
14647
- var _classPrivateFieldGet117, _classPrivateFieldGet118;
14657
+ var _classPrivateFieldGet120, _classPrivateFieldGet121;
14648
14658
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
14649
14659
  while (1) switch (_context7.prev = _context7.next) {
14650
14660
  case 0:
14651
- if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet117 !== void 0 && (_classPrivateFieldGet118 = _classPrivateFieldGet117._impl) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.setControlEnabled)) {
14661
+ if (!((_classPrivateFieldGet120 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet120 !== void 0 && (_classPrivateFieldGet121 = _classPrivateFieldGet120._impl) !== null && _classPrivateFieldGet121 !== void 0 && _classPrivateFieldGet121.setControlEnabled)) {
14652
14662
  _context7.next = 2;
14653
14663
  break;
14654
14664
  }
@@ -14675,8 +14685,8 @@ var init_wistia_player = __esm({
14675
14685
  while (1) switch (_context8.prev = _context8.next) {
14676
14686
  case 0:
14677
14687
  return _context8.abrupt("return", new Promise(function(resolve, reject) {
14678
- var _classPrivateFieldGet119;
14679
- if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this5)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.plugin(name)) {
14688
+ var _classPrivateFieldGet122;
14689
+ if ((_classPrivateFieldGet122 = _classPrivateFieldGet(_api, _this5)) !== null && _classPrivateFieldGet122 !== void 0 && _classPrivateFieldGet122.plugin(name)) {
14680
14690
  resolve(_classPrivateFieldGet(_api, _this5).plugin(name));
14681
14691
  }
14682
14692
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -14696,11 +14706,11 @@ var init_wistia_player = __esm({
14696
14706
  key: "hideOverlay",
14697
14707
  value: function() {
14698
14708
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(name) {
14699
- var _classPrivateFieldGet120, _classPrivateFieldGet121;
14709
+ var _classPrivateFieldGet123, _classPrivateFieldGet124;
14700
14710
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
14701
14711
  while (1) switch (_context9.prev = _context9.next) {
14702
14712
  case 0:
14703
- if (!((_classPrivateFieldGet120 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet120 !== void 0 && (_classPrivateFieldGet121 = _classPrivateFieldGet120._impl) !== null && _classPrivateFieldGet121 !== void 0 && _classPrivateFieldGet121.cancelOverlay)) {
14713
+ if (!((_classPrivateFieldGet123 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet123 !== void 0 && (_classPrivateFieldGet124 = _classPrivateFieldGet123._impl) !== null && _classPrivateFieldGet124 !== void 0 && _classPrivateFieldGet124.cancelOverlay)) {
14704
14714
  _context9.next = 2;
14705
14715
  break;
14706
14716
  }
@@ -14727,8 +14737,8 @@ var init_wistia_player = __esm({
14727
14737
  while (1) switch (_context10.prev = _context10.next) {
14728
14738
  case 0:
14729
14739
  return _context10.abrupt("return", new Promise(function(resolve, reject) {
14730
- var _classPrivateFieldGet122;
14731
- if ((_classPrivateFieldGet122 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet122 !== void 0 && _classPrivateFieldGet122.popover) {
14740
+ var _classPrivateFieldGet125;
14741
+ if ((_classPrivateFieldGet125 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet125 !== void 0 && _classPrivateFieldGet125.popover) {
14732
14742
  _classPrivateFieldGet(_api, _this6).popover.hide();
14733
14743
  resolve();
14734
14744
  }
@@ -14749,11 +14759,11 @@ var init_wistia_player = __esm({
14749
14759
  key: "pause",
14750
14760
  value: function() {
14751
14761
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee11() {
14752
- var _classPrivateFieldGet123, _classPrivateFieldGet124;
14762
+ var _classPrivateFieldGet126, _classPrivateFieldGet127;
14753
14763
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
14754
14764
  while (1) switch (_context11.prev = _context11.next) {
14755
14765
  case 0:
14756
- return _context11.abrupt("return", (_classPrivateFieldGet123 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : (_classPrivateFieldGet124 = _classPrivateFieldGet123._impl) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.pause());
14766
+ return _context11.abrupt("return", (_classPrivateFieldGet126 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : (_classPrivateFieldGet127 = _classPrivateFieldGet126._impl) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.pause());
14757
14767
  case 1:
14758
14768
  case "end":
14759
14769
  return _context11.stop();
@@ -14769,11 +14779,11 @@ var init_wistia_player = __esm({
14769
14779
  key: "play",
14770
14780
  value: function() {
14771
14781
  var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee12() {
14772
- var _classPrivateFieldGet125, _classPrivateFieldGet126;
14782
+ var _classPrivateFieldGet128, _classPrivateFieldGet129;
14773
14783
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
14774
14784
  while (1) switch (_context12.prev = _context12.next) {
14775
14785
  case 0:
14776
- return _context12.abrupt("return", (_classPrivateFieldGet125 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet125 === void 0 ? void 0 : (_classPrivateFieldGet126 = _classPrivateFieldGet125._impl) === null || _classPrivateFieldGet126 === void 0 ? void 0 : _classPrivateFieldGet126.play());
14786
+ return _context12.abrupt("return", (_classPrivateFieldGet128 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : (_classPrivateFieldGet129 = _classPrivateFieldGet128._impl) === null || _classPrivateFieldGet129 === void 0 ? void 0 : _classPrivateFieldGet129.play());
14777
14787
  case 1:
14778
14788
  case "end":
14779
14789
  return _context12.stop();
@@ -14789,11 +14799,11 @@ var init_wistia_player = __esm({
14789
14799
  key: "releaseControls",
14790
14800
  value: function() {
14791
14801
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13(name) {
14792
- var _classPrivateFieldGet127, _classPrivateFieldGet128;
14802
+ var _classPrivateFieldGet130, _classPrivateFieldGet131;
14793
14803
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
14794
14804
  while (1) switch (_context13.prev = _context13.next) {
14795
14805
  case 0:
14796
- return _context13.abrupt("return", (_classPrivateFieldGet127 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : (_classPrivateFieldGet128 = _classPrivateFieldGet127._impl) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.releaseControls(name));
14806
+ return _context13.abrupt("return", (_classPrivateFieldGet130 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : (_classPrivateFieldGet131 = _classPrivateFieldGet130._impl) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.releaseControls(name));
14797
14807
  case 1:
14798
14808
  case "end":
14799
14809
  return _context13.stop();
@@ -14816,7 +14826,7 @@ var init_wistia_player = __esm({
14816
14826
  case 0:
14817
14827
  options = _args14.length > 1 && _args14[1] !== void 0 ? _args14[1] : {};
14818
14828
  return _context14.abrupt("return", new Promise(function(resolve, reject) {
14819
- var _classPrivateFieldGet129;
14829
+ var _classPrivateFieldGet132;
14820
14830
  if (!_classPrivateFieldGet(_api, _this7)) {
14821
14831
  reject(new Error("api not ready to replace"));
14822
14832
  }
@@ -14830,7 +14840,7 @@ var init_wistia_player = __esm({
14830
14840
  };
14831
14841
  _this7.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.$1, _handler);
14832
14842
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, _this7));
14833
- (_classPrivateFieldGet129 = _classPrivateFieldGet(_api, _this7)) === null || _classPrivateFieldGet129 === void 0 ? void 0 : _classPrivateFieldGet129.replaceWith(mediaId, options);
14843
+ (_classPrivateFieldGet132 = _classPrivateFieldGet(_api, _this7)) === null || _classPrivateFieldGet132 === void 0 ? void 0 : _classPrivateFieldGet132.replaceWith(mediaId, options);
14834
14844
  }));
14835
14845
  case 2:
14836
14846
  case "end":
@@ -14847,11 +14857,11 @@ var init_wistia_player = __esm({
14847
14857
  key: "requestControls",
14848
14858
  value: function() {
14849
14859
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee15(name) {
14850
- var _classPrivateFieldGet130, _classPrivateFieldGet131;
14860
+ var _classPrivateFieldGet133, _classPrivateFieldGet134;
14851
14861
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
14852
14862
  while (1) switch (_context15.prev = _context15.next) {
14853
14863
  case 0:
14854
- return _context15.abrupt("return", (_classPrivateFieldGet130 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : (_classPrivateFieldGet131 = _classPrivateFieldGet130._impl) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.requestControls(name));
14864
+ return _context15.abrupt("return", (_classPrivateFieldGet133 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133._impl) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.requestControls(name));
14855
14865
  case 1:
14856
14866
  case "end":
14857
14867
  return _context15.stop();
@@ -14867,11 +14877,11 @@ var init_wistia_player = __esm({
14867
14877
  key: "requestFullscreen",
14868
14878
  value: function() {
14869
14879
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16() {
14870
- var _classPrivateFieldGet132, _classPrivateFieldGet133;
14880
+ var _classPrivateFieldGet135, _classPrivateFieldGet136;
14871
14881
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
14872
14882
  while (1) switch (_context16.prev = _context16.next) {
14873
14883
  case 0:
14874
- if (!((_classPrivateFieldGet132 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet132 !== void 0 && (_classPrivateFieldGet133 = _classPrivateFieldGet132._impl) !== null && _classPrivateFieldGet133 !== void 0 && _classPrivateFieldGet133.requestFullscreen)) {
14884
+ if (!((_classPrivateFieldGet135 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet135 !== void 0 && (_classPrivateFieldGet136 = _classPrivateFieldGet135._impl) !== null && _classPrivateFieldGet136 !== void 0 && _classPrivateFieldGet136.requestFullscreen)) {
14875
14885
  _context16.next = 2;
14876
14886
  break;
14877
14887
  }
@@ -14893,11 +14903,11 @@ var init_wistia_player = __esm({
14893
14903
  key: "showOverlay",
14894
14904
  value: function() {
14895
14905
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17(name) {
14896
- var _classPrivateFieldGet134, _classPrivateFieldGet135;
14906
+ var _classPrivateFieldGet137, _classPrivateFieldGet138;
14897
14907
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
14898
14908
  while (1) switch (_context17.prev = _context17.next) {
14899
14909
  case 0:
14900
- if (!((_classPrivateFieldGet134 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet134 !== void 0 && (_classPrivateFieldGet135 = _classPrivateFieldGet134._impl) !== null && _classPrivateFieldGet135 !== void 0 && _classPrivateFieldGet135.requestOverlay)) {
14910
+ if (!((_classPrivateFieldGet137 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet137 !== void 0 && (_classPrivateFieldGet138 = _classPrivateFieldGet137._impl) !== null && _classPrivateFieldGet138 !== void 0 && _classPrivateFieldGet138.requestOverlay)) {
14901
14911
  _context17.next = 2;
14902
14912
  break;
14903
14913
  }
@@ -14924,8 +14934,8 @@ var init_wistia_player = __esm({
14924
14934
  while (1) switch (_context18.prev = _context18.next) {
14925
14935
  case 0:
14926
14936
  return _context18.abrupt("return", new Promise(function(resolve, reject) {
14927
- var _classPrivateFieldGet136;
14928
- if ((_classPrivateFieldGet136 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet136 !== void 0 && _classPrivateFieldGet136.popover) {
14937
+ var _classPrivateFieldGet139;
14938
+ if ((_classPrivateFieldGet139 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet139 !== void 0 && _classPrivateFieldGet139.popover) {
14929
14939
  _classPrivateFieldGet(_api, _this8).popover.show();
14930
14940
  resolve();
14931
14941
  }
@@ -14973,6 +14983,40 @@ var init_wistia_player = __esm({
14973
14983
  }
14974
14984
  return whenApiReady;
14975
14985
  }()
14986
+ }, {
14987
+ key: "whenControlMounted",
14988
+ value: function() {
14989
+ var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20(handle) {
14990
+ var _classPrivateFieldGet140;
14991
+ var control;
14992
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
14993
+ while (1) switch (_context20.prev = _context20.next) {
14994
+ case 0:
14995
+ _context20.next = 2;
14996
+ return this.whenApiReady();
14997
+ case 2:
14998
+ _context20.next = 4;
14999
+ return (_classPrivateFieldGet140 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet140 === void 0 ? void 0 : _classPrivateFieldGet140.whenControlMounted(handle);
15000
+ case 4:
15001
+ control = _context20.sent;
15002
+ if (control) {
15003
+ _context20.next = 7;
15004
+ break;
15005
+ }
15006
+ throw new Error("Control not found");
15007
+ case 7:
15008
+ return _context20.abrupt("return", control);
15009
+ case 8:
15010
+ case "end":
15011
+ return _context20.stop();
15012
+ }
15013
+ }, _callee20, this);
15014
+ }));
15015
+ function whenControlMounted(_x14) {
15016
+ return _whenControlMounted.apply(this, arguments);
15017
+ }
15018
+ return whenControlMounted;
15019
+ }()
14976
15020
  // --------------------------------------------------
14977
15021
  // Custom element lifecycle methods
14978
15022
  // --------------------------------------------------
@@ -15066,14 +15110,14 @@ var init_wistia_player = __esm({
15066
15110
  }, {
15067
15111
  key: "disconnectedCallback",
15068
15112
  value: function disconnectedCallback() {
15069
- var _classPrivateFieldGet137;
15113
+ var _classPrivateFieldGet141;
15070
15114
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
15071
15115
  return removeListener();
15072
15116
  });
15073
15117
  _classPrivateFieldSet(_hasElementConnectedToDOM, this, false);
15074
15118
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, this));
15075
15119
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_23__.s3)(this.mediaId);
15076
- (_classPrivateFieldGet137 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet137 === void 0 ? void 0 : _classPrivateFieldGet137.disconnect();
15120
+ (_classPrivateFieldGet141 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet141 === void 0 ? void 0 : _classPrivateFieldGet141.disconnect();
15077
15121
  _classPrivateFieldSet(_resizeObserver, this, null);
15078
15122
  }
15079
15123
  // --------------------------------------------------
@@ -15093,50 +15137,50 @@ var init_wistia_player = __esm({
15093
15137
  }(/* @__PURE__ */ _wrapNativeSuper(HTMLElement));
15094
15138
  _WistiaPlayer = WistiaPlayer;
15095
15139
  getSwatchMetaData2 = /* @__PURE__ */ function() {
15096
- var _ref15 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20(url) {
15140
+ var _ref15 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21(url) {
15097
15141
  var swatch;
15098
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
15099
- while (1) switch (_context20.prev = _context20.next) {
15142
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
15143
+ while (1) switch (_context21.prev = _context21.next) {
15100
15144
  case 0:
15101
15145
  swatch = new Image();
15102
15146
  swatch.src = url;
15103
- _context20.next = 4;
15147
+ _context21.next = 4;
15104
15148
  return swatch.decode();
15105
15149
  case 4:
15106
- return _context20.abrupt("return", swatch);
15150
+ return _context21.abrupt("return", swatch);
15107
15151
  case 5:
15108
15152
  case "end":
15109
- return _context20.stop();
15153
+ return _context21.stop();
15110
15154
  }
15111
- }, _callee20);
15155
+ }, _callee21);
15112
15156
  }));
15113
- return function getSwatchMetaData3(_x14) {
15157
+ return function getSwatchMetaData3(_x15) {
15114
15158
  return _ref15.apply(this, arguments);
15115
15159
  };
15116
15160
  }();
15117
15161
  wistiaSwatchElement = /* @__PURE__ */ function() {
15118
- var _ref16 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21(mediaId, embedHost) {
15162
+ var _ref16 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22(mediaId, embedHost) {
15119
15163
  var swatchUrl2, swatchImg, naturalHeight, naturalWidth, ratio, style;
15120
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
15121
- while (1) switch (_context21.prev = _context21.next) {
15164
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
15165
+ while (1) switch (_context22.prev = _context22.next) {
15122
15166
  case 0:
15123
15167
  swatchUrl2 = getSwatchUrl(mediaId, embedHost);
15124
- _context21.next = 3;
15168
+ _context22.next = 3;
15125
15169
  return getSwatchMetaData2(swatchUrl2);
15126
15170
  case 3:
15127
- swatchImg = _context21.sent;
15171
+ swatchImg = _context22.sent;
15128
15172
  naturalHeight = swatchImg.naturalHeight, naturalWidth = swatchImg.naturalWidth;
15129
15173
  ratio = naturalHeight / naturalWidth * 100;
15130
15174
  style = document.createElement("style");
15131
15175
  style.innerHTML = "\n wistia-player[media-id='".concat(mediaId, "']:not(:defined) {\n padding: ").concat(ratio, "% 0 0 0;\n background: url(").concat(swatchUrl2, ");\n background-size: contain;\n filter: blur(5px);\n display: block;\n }\n ");
15132
- return _context21.abrupt("return", style);
15176
+ return _context22.abrupt("return", style);
15133
15177
  case 9:
15134
15178
  case "end":
15135
- return _context21.stop();
15179
+ return _context22.stop();
15136
15180
  }
15137
- }, _callee21);
15181
+ }, _callee22);
15138
15182
  }));
15139
- return function wistiaSwatchElement2(_x15, _x16) {
15183
+ return function wistiaSwatchElement2(_x16, _x17) {
15140
15184
  return _ref16.apply(this, arguments);
15141
15185
  };
15142
15186
  }();