@wistia/wistia-player-react 0.0.49 → 0.0.51

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,9 +580,9 @@ function _generateUniqueId(mediaId) {
580
580
  return candidate;
581
581
  }
582
582
  function _getSyncedEmbedOption(key) {
583
- var _this$api58, _ref17, _ref18;
584
- if ((_this$api58 = this.api) !== null && _this$api58 !== void 0 && _this$api58._impl && key in this.api._impl._attrs) {
585
- return this.api._impl._attrs[key];
583
+ var _classPrivateFieldGet139, _ref17, _ref18;
584
+ if ((_classPrivateFieldGet139 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet139 !== void 0 && _classPrivateFieldGet139._impl && key in _classPrivateFieldGet(_api, this)._impl._attrs) {
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_28__.$)(key))) !== null && _ref17 !== void 0 ? _ref17 : defaultEmbedOptions[key];
588
588
  }
@@ -612,8 +612,8 @@ 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 _classPrivateFieldGet9;
616
- (_classPrivateFieldGet9 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet9 === void 0 ? void 0 : _classPrivateFieldGet9.states.delete("--initializing");
615
+ var _classPrivateFieldGet140;
616
+ (_classPrivateFieldGet140 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet140 === void 0 ? void 0 : _classPrivateFieldGet140.states.delete("--initializing");
617
617
  }
618
618
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
619
619
  container,
@@ -625,7 +625,7 @@ function _initPublicApi(_x17, _x18) {
625
625
  }
626
626
  function _initPublicApi2() {
627
627
  _initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21(mediaId, options) {
628
- var _this14 = this, _this$api60;
628
+ var _this14 = this;
629
629
  var embeddedCallback;
630
630
  return _regeneratorRuntime().wrap(function _callee21$(_context21) {
631
631
  while (1) switch (_context21.prev = _context21.next) {
@@ -641,12 +641,12 @@ function _initPublicApi2() {
641
641
  throw new Error("Wistia.PublicApi is not defined");
642
642
  case 5:
643
643
  embeddedCallback = function embeddedCallback2() {
644
- var _classPrivateFieldGet13, _classPrivateFieldGet14;
644
+ var _classPrivateFieldGet150, _classPrivateFieldGet151;
645
645
  void _assertClassBrand(_WistiaPlayer_brand, _this14, _maybeInitializeMux).call(_this14);
646
646
  _classPrivateFieldSet(_preloadAspectRatio, _this14, void 0);
647
647
  _assertClassBrand(_WistiaPlayer_brand, _this14, _renderEmbedTemplate).call(_this14);
648
- (_classPrivateFieldGet13 = _classPrivateFieldGet(_preloadThumbnailRoot, _this14)) === null || _classPrivateFieldGet13 === void 0 ? void 0 : _classPrivateFieldGet13.remove();
649
- (_classPrivateFieldGet14 = _classPrivateFieldGet(_resizeObserver, _this14)) === null || _classPrivateFieldGet14 === void 0 ? void 0 : _classPrivateFieldGet14.disconnect();
648
+ (_classPrivateFieldGet150 = _classPrivateFieldGet(_preloadThumbnailRoot, _this14)) === null || _classPrivateFieldGet150 === void 0 ? void 0 : _classPrivateFieldGet150.remove();
649
+ (_classPrivateFieldGet151 = _classPrivateFieldGet(_resizeObserver, _this14)) === null || _classPrivateFieldGet151 === void 0 ? void 0 : _classPrivateFieldGet151.disconnect();
650
650
  _classPrivateFieldSet(_resizeObserver, _this14, null);
651
651
  if (_classPrivateFieldGet(_playPending, _this14)) {
652
652
  void _this14.play();
@@ -657,8 +657,8 @@ function _initPublicApi2() {
657
657
  _this14.removeEventListener("embedded", embeddedCallback);
658
658
  });
659
659
  _classPrivateFieldSet(_api, this, new _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.PublicApi(mediaId, options));
660
- (_this$api60 = this.api) === null || _this$api60 === void 0 ? void 0 : _this$api60.ready(function() {
661
- var _this14$api;
660
+ _classPrivateFieldGet(_api, this).ready(function() {
661
+ var _classPrivateFieldGet152;
662
662
  _this14.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_27__.c5, {
663
663
  detail: {
664
664
  mediaId
@@ -667,11 +667,11 @@ function _initPublicApi2() {
667
667
  _this14.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_27__.iP, {
668
668
  detail: {
669
669
  mediaId,
670
- api: _this14.api
670
+ api: _classPrivateFieldGet(_api, _this14)
671
671
  }
672
672
  }));
673
- if ((_this14$api = _this14.api) !== null && _this14$api !== void 0 && _this14$api._impl) {
674
- Object.entries(_this14.api._impl._attrs).forEach(function(_ref25) {
673
+ if ((_classPrivateFieldGet152 = _classPrivateFieldGet(_api, _this14)) !== null && _classPrivateFieldGet152 !== void 0 && _classPrivateFieldGet152._impl) {
674
+ Object.entries(_classPrivateFieldGet(_api, _this14)._impl._attrs).forEach(function(_ref25) {
675
675
  var _ref26 = _slicedToArray(_ref25, 2), key = _ref26[0], value = _ref26[1];
676
676
  _classPrivateFieldGet(_playerData, _this14).updateEmbedOptionOverrides(_defineProperty({}, key, value));
677
677
  });
@@ -699,14 +699,14 @@ function _maybeInitializeMux2() {
699
699
  return _regeneratorRuntime().wrap(function _callee22$(_context22) {
700
700
  while (1) switch (_context22.prev = _context22.next) {
701
701
  case 0:
702
- if (this.api) {
702
+ if (_classPrivateFieldGet(_api, this)) {
703
703
  _context22.next = 2;
704
704
  break;
705
705
  }
706
706
  return _context22.abrupt("return");
707
707
  case 2:
708
708
  shouldRandomEnableMux = (0, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_31__.k)(_utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_32__._);
709
- shouldEnableMuxForPlayer = (0, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_32__.J)(this.api, shouldRandomEnableMux) && (0, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_15__.D5)();
709
+ shouldEnableMuxForPlayer = (0, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_32__.J)(_classPrivateFieldGet(_api, this), shouldRandomEnableMux) && (0, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_15__.D5)();
710
710
  embedType = this.useWebComponent ? "translated-web-component" : "web-component";
711
711
  if (!shouldEnableMuxForPlayer) {
712
712
  _context22.next = 11;
@@ -716,14 +716,14 @@ function _maybeInitializeMux2() {
716
716
  return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_7__.$)("assets/external/wistia-mux.js");
717
717
  case 8:
718
718
  mux = _context22.sent;
719
- mux.init(this.api, {
719
+ mux.init(_classPrivateFieldGet(_api, this), {
720
720
  embedType
721
721
  });
722
722
  this.addEventListener("visitor-tracking-change", function(event) {
723
723
  var isTrackingEnabled = event.detail.isTrackingEnabled;
724
724
  if (!isTrackingEnabled) {
725
- var _this15$api, _this15$api$mux;
726
- (_this15$api = _this15.api) === null || _this15$api === void 0 ? void 0 : (_this15$api$mux = _this15$api.mux) === null || _this15$api$mux === void 0 ? void 0 : _this15$api$mux.destroy();
725
+ var _classPrivateFieldGet154, _classPrivateFieldGet155;
726
+ (_classPrivateFieldGet154 = _classPrivateFieldGet(_api, _this15)) === null || _classPrivateFieldGet154 === void 0 ? void 0 : (_classPrivateFieldGet155 = _classPrivateFieldGet154.mux) === null || _classPrivateFieldGet155 === void 0 ? void 0 : _classPrivateFieldGet155.destroy();
727
727
  }
728
728
  });
729
729
  case 11:
@@ -815,8 +815,8 @@ function _renderPreloadThumbnail() {
815
815
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
816
816
  return;
817
817
  }
818
- var _classPrivateFieldGet10 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet10.assets, mediaType = _classPrivateFieldGet10.mediaType;
819
- var _classPrivateFieldGet11 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet11.autoPlay, plugin = _classPrivateFieldGet11.plugin;
818
+ var _classPrivateFieldGet141 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet141.assets, mediaType = _classPrivateFieldGet141.mediaType;
819
+ var _classPrivateFieldGet142 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet142.autoPlay, plugin = _classPrivateFieldGet142.plugin;
820
820
  var thumbnailAssets = (0, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_5__.Q0)(assets, {});
821
821
  var willAutoplay = this.autoplay || autoPlay;
822
822
  var hasVideoThumbnail = (plugin === null || plugin === void 0 ? void 0 : plugin.videoThumbnail) !== void 0;
@@ -838,12 +838,12 @@ function _runMethodsFromAttributes() {
838
838
  var _this10 = this;
839
839
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
840
840
  var _setInitialCurrentTime = function setInitialCurrentTime() {
841
- var _ref21, _this10$api, _this10$api2, _this10$api2$_impl;
841
+ var _ref21, _classPrivateFieldGet143, _classPrivateFieldGet144, _classPrivateFieldGet145;
842
842
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this10, _getValueFromAttribute).call(_this10, "current-time"));
843
- var isClosedPopover = (_ref21 = ((_this10$api = _this10.api) === null || _this10$api === void 0 ? void 0 : _this10$api.popover) && !_this10.api.popover.isVisible()) !== null && _ref21 !== void 0 ? _ref21 : false;
843
+ var isClosedPopover = (_ref21 = ((_classPrivateFieldGet143 = _classPrivateFieldGet(_api, _this10)) === null || _classPrivateFieldGet143 === void 0 ? void 0 : _classPrivateFieldGet143.popover) && !_classPrivateFieldGet(_api, _this10).popover.isVisible()) !== null && _ref21 !== void 0 ? _ref21 : false;
844
844
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_6__.GS)();
845
845
  var shouldDelayUntilPlay = _this10.state !== "playing" && (isMobile || isClosedPopover);
846
- void ((_this10$api2 = _this10.api) === null || _this10$api2 === void 0 ? void 0 : (_this10$api2$_impl = _this10$api2._impl) === null || _this10$api2$_impl === void 0 ? void 0 : _this10$api2$_impl.time(newTime, {
846
+ void ((_classPrivateFieldGet144 = _classPrivateFieldGet(_api, _this10)) === null || _classPrivateFieldGet144 === void 0 ? void 0 : (_classPrivateFieldGet145 = _classPrivateFieldGet144._impl) === null || _classPrivateFieldGet145 === void 0 ? void 0 : _classPrivateFieldGet145.time(newTime, {
847
847
  lazy: shouldDelayUntilPlay
848
848
  }));
849
849
  _assertClassBrand(_WistiaPlayer_brand, _this10, _setSyncedEmbedOption).call(_this10, "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
  var _setVideoQualityFromAttribute = function setVideoQualityFromAttribute() {
859
- var _this10$api3, _this10$api3$_impl;
859
+ var _classPrivateFieldGet146, _classPrivateFieldGet147;
860
860
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this10, _getValueFromAttribute).call(_this10, "video-quality");
861
- (_this10$api3 = _this10.api) === null || _this10$api3 === void 0 ? void 0 : (_this10$api3$_impl = _this10$api3._impl) === null || _this10$api3$_impl === void 0 ? void 0 : _this10$api3$_impl.setVideoQuality(newQuality);
861
+ (_classPrivateFieldGet146 = _classPrivateFieldGet(_api, _this10)) === null || _classPrivateFieldGet146 === void 0 ? void 0 : (_classPrivateFieldGet147 = _classPrivateFieldGet146._impl) === null || _classPrivateFieldGet147 === void 0 ? void 0 : _classPrivateFieldGet147.setVideoQuality(newQuality);
862
862
  _assertClassBrand(_WistiaPlayer_brand, _this10, _setSyncedEmbedOption).call(_this10, "videoQuality", newQuality);
863
863
  _this10.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_27__.c5, _setVideoQualityFromAttribute);
864
864
  };
@@ -875,10 +875,10 @@ function _saveInitialAttributesFromDomOptions() {
875
875
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_8__.gY)("__".concat(this.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, this).embedOptions);
876
876
  }
877
877
  function _setSyncedEmbedOption(key, value) {
878
- var _this$api59;
878
+ var _classPrivateFieldGet148;
879
879
  _classPrivateFieldGet(_logger, this).info("set ".concat(key), value.toString());
880
- if ((_this$api59 = this.api) !== null && _this$api59 !== void 0 && _this$api59._impl) {
881
- this.api._impl._attrs[key] = value;
880
+ if ((_classPrivateFieldGet148 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet148 !== void 0 && _classPrivateFieldGet148._impl) {
881
+ _classPrivateFieldGet(_api, this)._impl._attrs[key] = value;
882
882
  }
883
883
  _classPrivateFieldGet(_playerData, this).updateEmbedOptionOverrides(_defineProperty({}, key, value));
884
884
  _assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
@@ -3882,7 +3882,7 @@ var init_wistia_player = __esm({
3882
3882
  wlog.error("Unrecognized matcher", matcher);
3883
3883
  }
3884
3884
  if (((_container = container) === null || _container === void 0 ? void 0 : _container.tagName) === "WISTIA-PLAYER") {
3885
- return container.api;
3885
+ return container.deprecatedApiDoNotUse;
3886
3886
  }
3887
3887
  if (((_container2 = container) === null || _container2 === void 0 ? void 0 : _container2.wistiaApi) !== void 0 && container.wistiaApi !== "removed") {
3888
3888
  return container.wistiaApi;
@@ -3906,7 +3906,7 @@ var init_wistia_player = __esm({
3906
3906
  container = (_ref2 = matchedHandle === null || matchedHandle === void 0 ? void 0 : matchedHandle.container) !== null && _ref2 !== void 0 ? _ref2 : null;
3907
3907
  }
3908
3908
  if (((_container3 = container) === null || _container3 === void 0 ? void 0 : _container3.tagName) === "WISTIA-PLAYER") {
3909
- return container.api;
3909
+ return container.deprecatedApiDoNotUse;
3910
3910
  }
3911
3911
  if (((_container4 = container) === null || _container4 === void 0 ? void 0 : _container4.wistiaApi) !== void 0 && container.wistiaApi !== "removed") {
3912
3912
  return container.wistiaApi;
@@ -3921,8 +3921,8 @@ var init_wistia_player = __esm({
3921
3921
  return accumulator;
3922
3922
  }, []);
3923
3923
  var wistiaPlayerHandles = Array.from(document.querySelectorAll("wistia-player")).reduce(function(accumulator, container) {
3924
- if (container.api !== void 0 && container.api !== "removed" && container.api !== null) {
3925
- accumulator.push(container.api);
3924
+ if (container.deprecatedApiDoNotUse !== void 0 && container.deprecatedApiDoNotUse !== "removed" && container.deprecatedApiDoNotUse !== null) {
3925
+ accumulator.push(container.deprecatedApiDoNotUse);
3926
3926
  }
3927
3927
  return accumulator;
3928
3928
  }, []);
@@ -9620,7 +9620,7 @@ var init_wistia_player = __esm({
9620
9620
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9621
9621
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9622
9622
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9623
- var TAGGED_VERSION = "0.0.49";
9623
+ var TAGGED_VERSION = "0.0.51";
9624
9624
  var DEFAULT_PROTOCOL = function() {
9625
9625
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9626
9626
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -13370,16 +13370,6 @@ var init_wistia_player = __esm({
13370
13370
  set: function set(engine) {
13371
13371
  _classPrivateFieldSet(_oldEngine, this, engine);
13372
13372
  }
13373
- /**
13374
- * Returns the public api instance.
13375
- * TODO: Not sure if we want to expose this.
13376
- * @returns {PublicApi | null}
13377
- */
13378
- }, {
13379
- key: "api",
13380
- get: function get() {
13381
- return _classPrivateFieldGet(_api, this);
13382
- }
13383
13373
  /**
13384
13374
  * Returns the aspect ratio (width / height) of the originally uploaded video or given aspect ratio.
13385
13375
  * @returns {number}
@@ -13387,14 +13377,14 @@ var init_wistia_player = __esm({
13387
13377
  }, {
13388
13378
  key: "aspect",
13389
13379
  get: function get() {
13390
- var _ref, _ref2, _this$api$_impl$aspec, _this$api, _this$api$_impl;
13380
+ var _ref, _ref2, _classPrivateFieldGet2, _classPrivateFieldGet3, _classPrivateFieldGet4;
13391
13381
  var fallbackAspect = !Number.isNaN(this.offsetWidth / this.offsetHeight) && Number.isFinite(this.offsetWidth / this.offsetHeight) ? this.offsetWidth / this.offsetHeight : _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_25__.R;
13392
- return (_ref = (_ref2 = (_this$api$_impl$aspec = (_this$api = this.api) === null || _this$api === void 0 ? void 0 : (_this$api$_impl = _this$api._impl) === null || _this$api$_impl === void 0 ? void 0 : _this$api$_impl.aspect()) !== null && _this$api$_impl$aspec !== void 0 ? _this$api$_impl$aspec : this.embedOptions.aspect) !== null && _ref2 !== void 0 ? _ref2 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "aspect")) !== null && _ref !== void 0 ? _ref : fallbackAspect;
13382
+ return (_ref = (_ref2 = (_classPrivateFieldGet2 = (_classPrivateFieldGet3 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet3 === void 0 ? void 0 : (_classPrivateFieldGet4 = _classPrivateFieldGet3._impl) === null || _classPrivateFieldGet4 === void 0 ? void 0 : _classPrivateFieldGet4.aspect()) !== null && _classPrivateFieldGet2 !== void 0 ? _classPrivateFieldGet2 : this.embedOptions.aspect) !== null && _ref2 !== void 0 ? _ref2 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "aspect")) !== null && _ref !== void 0 ? _ref : fallbackAspect;
13393
13383
  },
13394
13384
  set: function set(newAspect) {
13395
- var _this$api2, _this$api2$_impl;
13385
+ var _classPrivateFieldGet5, _classPrivateFieldGet6;
13396
13386
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "aspect", newAspect);
13397
- (_this$api2 = this.api) === null || _this$api2 === void 0 ? void 0 : (_this$api2$_impl = _this$api2._impl) === null || _this$api2$_impl === void 0 ? void 0 : _this$api2$_impl.width((0, _utilities_elem_js__WEBPACK_IMPORTED_MODULE_9__.cG)(this), {
13387
+ (_classPrivateFieldGet5 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet5 === void 0 ? void 0 : (_classPrivateFieldGet6 = _classPrivateFieldGet5._impl) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.width((0, _utilities_elem_js__WEBPACK_IMPORTED_MODULE_9__.cG)(this), {
13398
13388
  constrain: true
13399
13389
  });
13400
13390
  }
@@ -13408,8 +13398,8 @@ var init_wistia_player = __esm({
13408
13398
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "audioDescriptionControl");
13409
13399
  },
13410
13400
  set: function set(shouldDisplay) {
13411
- var _this$api3, _this$api3$_impl;
13412
- (_this$api3 = this.api) === null || _this$api3 === void 0 ? void 0 : (_this$api3$_impl = _this$api3._impl) === null || _this$api3$_impl === void 0 ? void 0 : _this$api3$_impl.audioDescriptionControlEnabled(shouldDisplay);
13401
+ var _classPrivateFieldGet7, _classPrivateFieldGet8;
13402
+ (_classPrivateFieldGet7 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet7 === void 0 ? void 0 : (_classPrivateFieldGet8 = _classPrivateFieldGet7._impl) === null || _classPrivateFieldGet8 === void 0 ? void 0 : _classPrivateFieldGet8.audioDescriptionControlEnabled(shouldDisplay);
13413
13403
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "audioDescriptionControl", shouldDisplay);
13414
13404
  }
13415
13405
  /**
@@ -13452,8 +13442,8 @@ var init_wistia_player = __esm({
13452
13442
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "bigPlayButton");
13453
13443
  },
13454
13444
  set: function set(shouldDisplay) {
13455
- var _this$api4, _this$api4$_impl;
13456
- (_this$api4 = this.api) === null || _this$api4 === void 0 ? void 0 : (_this$api4$_impl = _this$api4._impl) === null || _this$api4$_impl === void 0 ? void 0 : _this$api4$_impl.bigPlayButtonEnabled(shouldDisplay);
13445
+ var _classPrivateFieldGet9, _classPrivateFieldGet10;
13446
+ (_classPrivateFieldGet9 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet9 === void 0 ? void 0 : (_classPrivateFieldGet10 = _classPrivateFieldGet9._impl) === null || _classPrivateFieldGet10 === void 0 ? void 0 : _classPrivateFieldGet10.bigPlayButtonEnabled(shouldDisplay);
13457
13447
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "bigPlayButton", shouldDisplay);
13458
13448
  }
13459
13449
  /**
@@ -13466,8 +13456,8 @@ var init_wistia_player = __esm({
13466
13456
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "bigPlayButtonBorderRadius");
13467
13457
  },
13468
13458
  set: function set(radius) {
13469
- var _this$api5, _this$api5$_impl;
13470
- (_this$api5 = this.api) === null || _this$api5 === void 0 ? void 0 : (_this$api5$_impl = _this$api5._impl) === null || _this$api5$_impl === void 0 ? void 0 : _this$api5$_impl.setBigPlayButtonBorderRadius(Number(radius));
13459
+ var _classPrivateFieldGet11, _classPrivateFieldGet12;
13460
+ (_classPrivateFieldGet11 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet11 === void 0 ? void 0 : (_classPrivateFieldGet12 = _classPrivateFieldGet11._impl) === null || _classPrivateFieldGet12 === void 0 ? void 0 : _classPrivateFieldGet12.setBigPlayButtonBorderRadius(Number(radius));
13471
13461
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "bigPlayButtonBorderRadius", radius);
13472
13462
  }
13473
13463
  /**
@@ -13478,8 +13468,8 @@ var init_wistia_player = __esm({
13478
13468
  }, {
13479
13469
  key: "buffered",
13480
13470
  get: function get() {
13481
- var _this$api$_impl$getSt, _this$api6, _this$api6$_impl;
13482
- return (_this$api$_impl$getSt = (_this$api6 = this.api) === null || _this$api6 === void 0 ? void 0 : (_this$api6$_impl = _this$api6._impl) === null || _this$api6$_impl === void 0 ? void 0 : _this$api6$_impl.getStandardBuffered()) !== null && _this$api$_impl$getSt !== void 0 ? _this$api$_impl$getSt : {};
13471
+ var _classPrivateFieldGet13, _classPrivateFieldGet14, _classPrivateFieldGet15;
13472
+ return (_classPrivateFieldGet13 = (_classPrivateFieldGet14 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet14 === void 0 ? void 0 : (_classPrivateFieldGet15 = _classPrivateFieldGet14._impl) === null || _classPrivateFieldGet15 === void 0 ? void 0 : _classPrivateFieldGet15.getStandardBuffered()) !== null && _classPrivateFieldGet13 !== void 0 ? _classPrivateFieldGet13 : {};
13483
13473
  }
13484
13474
  /**
13485
13475
  * Returns the border radius of the control bar.
@@ -13491,8 +13481,8 @@ var init_wistia_player = __esm({
13491
13481
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "controlBarBorderRadius");
13492
13482
  },
13493
13483
  set: function set(radius) {
13494
- var _this$api7, _this$api7$_impl;
13495
- (_this$api7 = this.api) === null || _this$api7 === void 0 ? void 0 : (_this$api7$_impl = _this$api7._impl) === null || _this$api7$_impl === void 0 ? void 0 : _this$api7$_impl.setControlBarBorderRadius(Number(radius));
13484
+ var _classPrivateFieldGet16, _classPrivateFieldGet17;
13485
+ (_classPrivateFieldGet16 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet16 === void 0 ? void 0 : (_classPrivateFieldGet17 = _classPrivateFieldGet16._impl) === null || _classPrivateFieldGet17 === void 0 ? void 0 : _classPrivateFieldGet17.setControlBarBorderRadius(Number(radius));
13496
13486
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "controlBarBorderRadius", radius);
13497
13487
  }
13498
13488
  /**
@@ -13503,9 +13493,9 @@ var init_wistia_player = __esm({
13503
13493
  }, {
13504
13494
  key: "controls",
13505
13495
  get: function get() {
13506
- var _this$api8;
13507
- if ((_this$api8 = this.api) !== null && _this$api8 !== void 0 && _this$api8._impl) {
13508
- return Object.seal(_objectSpread({}, this.api._impl.controls));
13496
+ var _classPrivateFieldGet18;
13497
+ if ((_classPrivateFieldGet18 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet18 !== void 0 && _classPrivateFieldGet18._impl) {
13498
+ return Object.seal(_objectSpread({}, _classPrivateFieldGet(_api, this)._impl.controls));
13509
13499
  }
13510
13500
  return {};
13511
13501
  }
@@ -13519,8 +13509,8 @@ var init_wistia_player = __esm({
13519
13509
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "controlsVisibleOnLoad");
13520
13510
  },
13521
13511
  set: function set(shouldHide) {
13522
- var _this$api9, _this$api9$_impl;
13523
- (_this$api9 = this.api) === null || _this$api9 === void 0 ? void 0 : (_this$api9$_impl = _this$api9._impl) === null || _this$api9$_impl === void 0 ? void 0 : _this$api9$_impl.renderUI();
13512
+ var _classPrivateFieldGet19, _classPrivateFieldGet20;
13513
+ (_classPrivateFieldGet19 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet19 === void 0 ? void 0 : (_classPrivateFieldGet20 = _classPrivateFieldGet19._impl) === null || _classPrivateFieldGet20 === void 0 ? void 0 : _classPrivateFieldGet20.renderUI();
13524
13514
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "controlsVisibleOnLoad", shouldHide);
13525
13515
  }
13526
13516
  /**
@@ -13551,14 +13541,24 @@ var init_wistia_player = __esm({
13551
13541
  }, {
13552
13542
  key: "currentTime",
13553
13543
  get: function get() {
13554
- var _ref3, _ref4, _this$api10, _this$api10$_impl;
13555
- return (_ref3 = (_ref4 = (_this$api10 = this.api) === null || _this$api10 === void 0 ? void 0 : (_this$api10$_impl = _this$api10._impl) === null || _this$api10$_impl === void 0 ? void 0 : _this$api10$_impl.time()) !== null && _ref4 !== void 0 ? _ref4 : this.embedOptions.currentTime) !== null && _ref3 !== void 0 ? _ref3 : 0;
13544
+ var _ref3, _ref4, _classPrivateFieldGet21, _classPrivateFieldGet22;
13545
+ return (_ref3 = (_ref4 = (_classPrivateFieldGet21 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet21 === void 0 ? void 0 : (_classPrivateFieldGet22 = _classPrivateFieldGet21._impl) === null || _classPrivateFieldGet22 === void 0 ? void 0 : _classPrivateFieldGet22.time()) !== null && _ref4 !== void 0 ? _ref4 : this.embedOptions.currentTime) !== null && _ref3 !== void 0 ? _ref3 : 0;
13556
13546
  },
13557
13547
  set: function set(newTime) {
13558
- var _classPrivateFieldGet2, _classPrivateFieldGet3;
13559
- void ((_classPrivateFieldGet2 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet2 === void 0 ? void 0 : (_classPrivateFieldGet3 = _classPrivateFieldGet2._impl) === null || _classPrivateFieldGet3 === void 0 ? void 0 : _classPrivateFieldGet3.time(newTime));
13548
+ var _classPrivateFieldGet23, _classPrivateFieldGet24;
13549
+ void ((_classPrivateFieldGet23 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet23 === void 0 ? void 0 : (_classPrivateFieldGet24 = _classPrivateFieldGet23._impl) === null || _classPrivateFieldGet24 === void 0 ? void 0 : _classPrivateFieldGet24.time(newTime));
13560
13550
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "currentTime", newTime);
13561
13551
  }
13552
+ /**
13553
+ * Returns the public api instance.
13554
+ * @deprecated this is a deprecated method and should not be used.
13555
+ * @returns {PublicApi | null}
13556
+ */
13557
+ }, {
13558
+ key: "deprecatedApiDoNotUse",
13559
+ get: function get() {
13560
+ return _classPrivateFieldGet(_api, this);
13561
+ }
13562
13562
  /**
13563
13563
  * Returns the status of the do not track embed option that controls whether the player
13564
13564
  * sends tracking pings.
@@ -13579,8 +13579,8 @@ var init_wistia_player = __esm({
13579
13579
  }, {
13580
13580
  key: "duration",
13581
13581
  get: function get() {
13582
- var _this$api$_impl$durat, _this$api11, _this$api11$_impl;
13583
- return (_this$api$_impl$durat = (_this$api11 = this.api) === null || _this$api11 === void 0 ? void 0 : (_this$api11$_impl = _this$api11._impl) === null || _this$api11$_impl === void 0 ? void 0 : _this$api11$_impl.duration()) !== null && _this$api$_impl$durat !== void 0 ? _this$api$_impl$durat : 0;
13582
+ var _classPrivateFieldGet25, _classPrivateFieldGet26, _classPrivateFieldGet27;
13583
+ return (_classPrivateFieldGet25 = (_classPrivateFieldGet26 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : (_classPrivateFieldGet27 = _classPrivateFieldGet26._impl) === null || _classPrivateFieldGet27 === void 0 ? void 0 : _classPrivateFieldGet27.duration()) !== null && _classPrivateFieldGet25 !== void 0 ? _classPrivateFieldGet25 : 0;
13584
13584
  }
13585
13585
  /**
13586
13586
  * Returns the email associated with this viewing session.
@@ -13630,8 +13630,8 @@ var init_wistia_player = __esm({
13630
13630
  }, {
13631
13631
  key: "ended",
13632
13632
  get: function get() {
13633
- var _this$api12, _this$api12$_impl;
13634
- return ((_this$api12 = this.api) === null || _this$api12 === void 0 ? void 0 : (_this$api12$_impl = _this$api12._impl) === null || _this$api12$_impl === void 0 ? void 0 : _this$api12$_impl.state()) === "ended";
13633
+ var _classPrivateFieldGet28, _classPrivateFieldGet29;
13634
+ return ((_classPrivateFieldGet28 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : (_classPrivateFieldGet29 = _classPrivateFieldGet28._impl) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === "ended";
13635
13635
  }
13636
13636
  /**
13637
13637
  * Returns the current end video behavior value
@@ -13644,11 +13644,11 @@ var init_wistia_player = __esm({
13644
13644
  },
13645
13645
  set: function set(behavior) {
13646
13646
  if (behavior === "loop") {
13647
- var _this$api13, _this$api13$_impl;
13648
- (_this$api13 = this.api) === null || _this$api13 === void 0 ? void 0 : (_this$api13$_impl = _this$api13._impl) === null || _this$api13$_impl === void 0 ? void 0 : _this$api13$_impl.addLoopBehavior();
13647
+ var _classPrivateFieldGet30, _classPrivateFieldGet31;
13648
+ (_classPrivateFieldGet30 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : (_classPrivateFieldGet31 = _classPrivateFieldGet30._impl) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.addLoopBehavior();
13649
13649
  } else {
13650
- var _this$api14, _this$api14$_impl;
13651
- (_this$api14 = this.api) === null || _this$api14 === void 0 ? void 0 : (_this$api14$_impl = _this$api14._impl) === null || _this$api14$_impl === void 0 ? void 0 : _this$api14$_impl.removeLoopBehavior();
13650
+ var _classPrivateFieldGet32, _classPrivateFieldGet33;
13651
+ (_classPrivateFieldGet32 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : (_classPrivateFieldGet33 = _classPrivateFieldGet32._impl) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.removeLoopBehavior();
13652
13652
  }
13653
13653
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "endVideoBehavior", behavior);
13654
13654
  }
@@ -13659,8 +13659,8 @@ var init_wistia_player = __esm({
13659
13659
  }, {
13660
13660
  key: "eventKey",
13661
13661
  get: function get() {
13662
- var _this$api15, _this$api15$_impl;
13663
- return (_this$api15 = this.api) === null || _this$api15 === void 0 ? void 0 : (_this$api15$_impl = _this$api15._impl) === null || _this$api15$_impl === void 0 ? void 0 : _this$api15$_impl.eventKey();
13662
+ var _classPrivateFieldGet34, _classPrivateFieldGet35;
13663
+ return (_classPrivateFieldGet34 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet34 === void 0 ? void 0 : (_classPrivateFieldGet35 = _classPrivateFieldGet34._impl) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.eventKey();
13664
13664
  }
13665
13665
  /**
13666
13666
  * Returns if the fullscreen button control will appear in the control bar.
@@ -13672,8 +13672,8 @@ var init_wistia_player = __esm({
13672
13672
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "fullscreenControl");
13673
13673
  },
13674
13674
  set: function set(shouldDisplay) {
13675
- var _this$api16, _this$api16$_impl;
13676
- (_this$api16 = this.api) === null || _this$api16 === void 0 ? void 0 : (_this$api16$_impl = _this$api16._impl) === null || _this$api16$_impl === void 0 ? void 0 : _this$api16$_impl.fullscreenControlEnabled(shouldDisplay);
13675
+ var _classPrivateFieldGet36, _classPrivateFieldGet37;
13676
+ (_classPrivateFieldGet36 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : (_classPrivateFieldGet37 = _classPrivateFieldGet36._impl) === null || _classPrivateFieldGet37 === void 0 ? void 0 : _classPrivateFieldGet37.fullscreenControlEnabled(shouldDisplay);
13677
13677
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "fullscreenControl", shouldDisplay);
13678
13678
  }
13679
13679
  /**
@@ -13696,8 +13696,8 @@ var init_wistia_player = __esm({
13696
13696
  }, {
13697
13697
  key: "inFullscreen",
13698
13698
  get: function get() {
13699
- var _this$api$_impl$inFul, _this$api17, _this$api17$_impl;
13700
- return (_this$api$_impl$inFul = (_this$api17 = this.api) === null || _this$api17 === void 0 ? void 0 : (_this$api17$_impl = _this$api17._impl) === null || _this$api17$_impl === void 0 ? void 0 : _this$api17$_impl.inFullscreen()) !== null && _this$api$_impl$inFul !== void 0 ? _this$api$_impl$inFul : false;
13699
+ var _classPrivateFieldGet38, _classPrivateFieldGet39, _classPrivateFieldGet40;
13700
+ 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;
13701
13701
  }
13702
13702
  /**
13703
13703
  * Returns the hashed id of the media.
@@ -13724,17 +13724,17 @@ var init_wistia_player = __esm({
13724
13724
  }, {
13725
13725
  key: "muted",
13726
13726
  get: function get() {
13727
- var _ref7, _classPrivateFieldGet4, _classPrivateFieldGet5, _classPrivateFieldGet6;
13728
- return (_ref7 = (_classPrivateFieldGet4 = (_classPrivateFieldGet5 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet5 === void 0 ? void 0 : (_classPrivateFieldGet6 = _classPrivateFieldGet5._impl) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.isMuted()) !== null && _classPrivateFieldGet4 !== void 0 ? _classPrivateFieldGet4 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
13727
+ var _ref7, _classPrivateFieldGet41, _classPrivateFieldGet42, _classPrivateFieldGet43;
13728
+ 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;
13729
13729
  },
13730
13730
  set: function set(shouldMute) {
13731
- if (this.api) {
13731
+ if (_classPrivateFieldGet(_api, this)) {
13732
13732
  if (shouldMute) {
13733
- var _this$api$_impl2;
13734
- void ((_this$api$_impl2 = this.api._impl) === null || _this$api$_impl2 === void 0 ? void 0 : _this$api$_impl2.mute());
13733
+ var _classPrivateFieldGet44;
13734
+ void ((_classPrivateFieldGet44 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet44 === void 0 ? void 0 : _classPrivateFieldGet44.mute());
13735
13735
  } else {
13736
- var _this$api$_impl3;
13737
- void ((_this$api$_impl3 = this.api._impl) === null || _this$api$_impl3 === void 0 ? void 0 : _this$api$_impl3.unmute());
13736
+ var _classPrivateFieldGet45;
13737
+ void ((_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.unmute());
13738
13738
  }
13739
13739
  }
13740
13740
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "muted", shouldMute);
@@ -13747,8 +13747,8 @@ var init_wistia_player = __esm({
13747
13747
  }, {
13748
13748
  key: "name",
13749
13749
  get: function get() {
13750
- var _ref8, _classPrivateFieldGet7, _this$api18, _this$api18$_mediaDat;
13751
- return (_ref8 = (_classPrivateFieldGet7 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet7 !== void 0 ? _classPrivateFieldGet7 : (_this$api18 = this.api) === null || _this$api18 === void 0 ? void 0 : (_this$api18$_mediaDat = _this$api18._mediaData) === null || _this$api18$_mediaDat === void 0 ? void 0 : _this$api18$_mediaDat.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
13750
+ var _ref8, _classPrivateFieldGet46, _classPrivateFieldGet47, _classPrivateFieldGet48;
13751
+ 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;
13752
13752
  }
13753
13753
  }, {
13754
13754
  key: "paddingTop",
@@ -13765,8 +13765,8 @@ var init_wistia_player = __esm({
13765
13765
  }, {
13766
13766
  key: "paused",
13767
13767
  get: function get() {
13768
- var _this$api19, _this$api19$_impl;
13769
- return ((_this$api19 = this.api) === null || _this$api19 === void 0 ? void 0 : (_this$api19$_impl = _this$api19._impl) === null || _this$api19$_impl === void 0 ? void 0 : _this$api19$_impl.state()) === "paused";
13768
+ var _classPrivateFieldGet49, _classPrivateFieldGet50;
13769
+ return ((_classPrivateFieldGet49 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet49 === void 0 ? void 0 : (_classPrivateFieldGet50 = _classPrivateFieldGet49._impl) === null || _classPrivateFieldGet50 === void 0 ? void 0 : _classPrivateFieldGet50.state()) === "paused";
13770
13770
  }
13771
13771
  /**
13772
13772
  * Returns the percent of the video that has been watched as a decimal between 0 and 1.
@@ -13775,8 +13775,8 @@ var init_wistia_player = __esm({
13775
13775
  }, {
13776
13776
  key: "percentWatched",
13777
13777
  get: function get() {
13778
- var _this$api$_impl$perce, _this$api20, _this$api20$_impl;
13779
- return (_this$api$_impl$perce = (_this$api20 = this.api) === null || _this$api20 === void 0 ? void 0 : (_this$api20$_impl = _this$api20._impl) === null || _this$api20$_impl === void 0 ? void 0 : _this$api20$_impl.percentWatched()) !== null && _this$api$_impl$perce !== void 0 ? _this$api$_impl$perce : 0;
13778
+ var _classPrivateFieldGet51, _classPrivateFieldGet52, _classPrivateFieldGet53;
13779
+ 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;
13780
13780
  }
13781
13781
  /**
13782
13782
  * Returns the playback rate of the video.
@@ -13785,12 +13785,12 @@ var init_wistia_player = __esm({
13785
13785
  }, {
13786
13786
  key: "playbackRate",
13787
13787
  get: function get() {
13788
- var _ref9, _this$api$_impl$playb, _this$api21, _this$api21$_impl;
13789
- return (_ref9 = (_this$api$_impl$playb = (_this$api21 = this.api) === null || _this$api21 === void 0 ? void 0 : (_this$api21$_impl = _this$api21._impl) === null || _this$api21$_impl === void 0 ? void 0 : _this$api21$_impl.playbackRate()) !== null && _this$api$_impl$playb !== void 0 ? _this$api$_impl$playb : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
13788
+ var _ref9, _classPrivateFieldGet54, _classPrivateFieldGet55, _classPrivateFieldGet56;
13789
+ 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;
13790
13790
  },
13791
13791
  set: function set(rate) {
13792
- var _this$api22, _this$api22$_impl;
13793
- (_this$api22 = this.api) === null || _this$api22 === void 0 ? void 0 : (_this$api22$_impl = _this$api22._impl) === null || _this$api22$_impl === void 0 ? void 0 : _this$api22$_impl.playbackRate(rate);
13792
+ var _classPrivateFieldGet57, _classPrivateFieldGet58;
13793
+ (_classPrivateFieldGet57 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : (_classPrivateFieldGet58 = _classPrivateFieldGet57._impl) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.playbackRate(rate);
13794
13794
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
13795
13795
  }
13796
13796
  /**
@@ -13803,8 +13803,8 @@ var init_wistia_player = __esm({
13803
13803
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
13804
13804
  },
13805
13805
  set: function set(shouldDisplay) {
13806
- var _this$api23, _this$api23$_impl;
13807
- (_this$api23 = this.api) === null || _this$api23 === void 0 ? void 0 : (_this$api23$_impl = _this$api23._impl) === null || _this$api23$_impl === void 0 ? void 0 : _this$api23$_impl.playbackRateControlEnabled(shouldDisplay);
13806
+ var _classPrivateFieldGet59, _classPrivateFieldGet60;
13807
+ (_classPrivateFieldGet59 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : (_classPrivateFieldGet60 = _classPrivateFieldGet59._impl) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbackRateControlEnabled(shouldDisplay);
13808
13808
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
13809
13809
  }
13810
13810
  /**
@@ -13817,8 +13817,8 @@ var init_wistia_player = __esm({
13817
13817
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
13818
13818
  },
13819
13819
  set: function set(shouldDisplay) {
13820
- var _this$api24, _this$api24$_impl;
13821
- (_this$api24 = this.api) === null || _this$api24 === void 0 ? void 0 : (_this$api24$_impl = _this$api24._impl) === null || _this$api24$_impl === void 0 ? void 0 : _this$api24$_impl.playbarControlEnabled(shouldDisplay);
13820
+ var _classPrivateFieldGet61, _classPrivateFieldGet62;
13821
+ (_classPrivateFieldGet61 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : (_classPrivateFieldGet62 = _classPrivateFieldGet61._impl) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbarControlEnabled(shouldDisplay);
13822
13822
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
13823
13823
  }
13824
13824
  /**
@@ -13831,8 +13831,8 @@ var init_wistia_player = __esm({
13831
13831
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
13832
13832
  },
13833
13833
  set: function set(radius) {
13834
- var _this$api25, _this$api25$_impl;
13835
- (_this$api25 = this.api) === null || _this$api25 === void 0 ? void 0 : (_this$api25$_impl = _this$api25._impl) === null || _this$api25$_impl === void 0 ? void 0 : _this$api25$_impl.setPlayerBorderRadius(Number(radius));
13834
+ var _classPrivateFieldGet63, _classPrivateFieldGet64;
13835
+ (_classPrivateFieldGet63 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : (_classPrivateFieldGet64 = _classPrivateFieldGet63._impl) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.setPlayerBorderRadius(Number(radius));
13836
13836
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", radius);
13837
13837
  }
13838
13838
  /**
@@ -13845,8 +13845,8 @@ var init_wistia_player = __esm({
13845
13845
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
13846
13846
  },
13847
13847
  set: function set(newColor) {
13848
- var _this$api26, _this$api26$_impl;
13849
- (_this$api26 = this.api) === null || _this$api26 === void 0 ? void 0 : (_this$api26$_impl = _this$api26._impl) === null || _this$api26$_impl === void 0 ? void 0 : _this$api26$_impl.playerColor(newColor);
13848
+ var _classPrivateFieldGet65, _classPrivateFieldGet66;
13849
+ (_classPrivateFieldGet65 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : (_classPrivateFieldGet66 = _classPrivateFieldGet65._impl) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
13850
13850
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
13851
13851
  }
13852
13852
  /**
@@ -13870,8 +13870,8 @@ var init_wistia_player = __esm({
13870
13870
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playlistChannelId");
13871
13871
  },
13872
13872
  set: function set(channelId) {
13873
- var _this$api27, _this$api27$_impl;
13874
- (_this$api27 = this.api) === null || _this$api27 === void 0 ? void 0 : (_this$api27$_impl = _this$api27._impl) === null || _this$api27$_impl === void 0 ? void 0 : _this$api27$_impl.renderUI();
13873
+ var _classPrivateFieldGet67, _classPrivateFieldGet68;
13874
+ (_classPrivateFieldGet67 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : (_classPrivateFieldGet68 = _classPrivateFieldGet67._impl) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.renderUI();
13875
13875
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playlistChannelId", channelId);
13876
13876
  }
13877
13877
  /**
@@ -13912,8 +13912,8 @@ var init_wistia_player = __esm({
13912
13912
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
13913
13913
  },
13914
13914
  set: function set(shouldDisplay) {
13915
- var _this$api28, _this$api28$_impl;
13916
- (_this$api28 = this.api) === null || _this$api28 === void 0 ? void 0 : (_this$api28$_impl = _this$api28._impl) === null || _this$api28$_impl === void 0 ? void 0 : _this$api28$_impl.playPauseControlEnabled(shouldDisplay);
13915
+ var _classPrivateFieldGet69, _classPrivateFieldGet70;
13916
+ (_classPrivateFieldGet69 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : (_classPrivateFieldGet70 = _classPrivateFieldGet69._impl) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.playPauseControlEnabled(shouldDisplay);
13917
13917
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
13918
13918
  }
13919
13919
  /**
@@ -13928,8 +13928,8 @@ var init_wistia_player = __esm({
13928
13928
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
13929
13929
  },
13930
13930
  set: function set(shouldDisplay) {
13931
- var _this$api29, _this$api29$_impl;
13932
- (_this$api29 = this.api) === null || _this$api29 === void 0 ? void 0 : (_this$api29$_impl = _this$api29._impl) === null || _this$api29$_impl === void 0 ? void 0 : _this$api29$_impl.playPauseNotifierEnabled(shouldDisplay);
13931
+ var _classPrivateFieldGet71, _classPrivateFieldGet72;
13932
+ (_classPrivateFieldGet71 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : (_classPrivateFieldGet72 = _classPrivateFieldGet71._impl) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.playPauseNotifierEnabled(shouldDisplay);
13933
13933
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
13934
13934
  }
13935
13935
  /**
@@ -13940,9 +13940,9 @@ var init_wistia_player = __esm({
13940
13940
  }, {
13941
13941
  key: "plugins",
13942
13942
  get: function get() {
13943
- var _this$api30;
13944
- if ((_this$api30 = this.api) !== null && _this$api30 !== void 0 && _this$api30._impl) {
13945
- return Object.seal(_objectSpread({}, this.api._impl.plugin));
13943
+ var _classPrivateFieldGet73;
13944
+ if ((_classPrivateFieldGet73 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet73 !== void 0 && _classPrivateFieldGet73._impl) {
13945
+ return Object.seal(_objectSpread({}, _classPrivateFieldGet(_api, this)._impl.plugin));
13946
13946
  }
13947
13947
  return {};
13948
13948
  }
@@ -14148,8 +14148,8 @@ var init_wistia_player = __esm({
14148
14148
  }, {
14149
14149
  key: "preload",
14150
14150
  get: function get() {
14151
- var _ref11, _this$api$_impl$prelo, _this$api31, _this$api31$_impl;
14152
- return (_ref11 = (_this$api$_impl$prelo = (_this$api31 = this.api) === null || _this$api31 === void 0 ? void 0 : (_this$api31$_impl = _this$api31._impl) === null || _this$api31$_impl === void 0 ? void 0 : _this$api31$_impl.preloadValue()) !== null && _this$api$_impl$prelo !== void 0 ? _this$api$_impl$prelo : this.embedOptions.preload) !== null && _ref11 !== void 0 ? _ref11 : void 0;
14151
+ var _ref11, _classPrivateFieldGet74, _classPrivateFieldGet75, _classPrivateFieldGet76;
14152
+ return (_ref11 = (_classPrivateFieldGet74 = (_classPrivateFieldGet75 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : (_classPrivateFieldGet76 = _classPrivateFieldGet75._impl) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.preloadValue()) !== null && _classPrivateFieldGet74 !== void 0 ? _classPrivateFieldGet74 : this.embedOptions.preload) !== null && _ref11 !== void 0 ? _ref11 : void 0;
14153
14153
  },
14154
14154
  set: function set(preloadValue) {
14155
14155
  var prevVal = this.preload;
@@ -14169,8 +14169,8 @@ var init_wistia_player = __esm({
14169
14169
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
14170
14170
  },
14171
14171
  set: function set(shouldDisplay) {
14172
- var _this$api32, _this$api32$_impl;
14173
- (_this$api32 = this.api) === null || _this$api32 === void 0 ? void 0 : (_this$api32$_impl = _this$api32._impl) === null || _this$api32$_impl === void 0 ? void 0 : _this$api32$_impl.qualityControlEnabled(shouldDisplay);
14172
+ var _classPrivateFieldGet77, _classPrivateFieldGet78;
14173
+ (_classPrivateFieldGet77 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : (_classPrivateFieldGet78 = _classPrivateFieldGet77._impl) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.qualityControlEnabled(shouldDisplay);
14174
14174
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
14175
14175
  }
14176
14176
  /**
@@ -14183,8 +14183,8 @@ var init_wistia_player = __esm({
14183
14183
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
14184
14184
  },
14185
14185
  set: function set(quality) {
14186
- var _this$api33, _this$api33$_impl;
14187
- (_this$api33 = this.api) === null || _this$api33 === void 0 ? void 0 : (_this$api33$_impl = _this$api33._impl) === null || _this$api33$_impl === void 0 ? void 0 : _this$api33$_impl.qualityMax(quality);
14186
+ var _classPrivateFieldGet79, _classPrivateFieldGet80;
14187
+ (_classPrivateFieldGet79 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : (_classPrivateFieldGet80 = _classPrivateFieldGet79._impl) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.qualityMax(quality);
14188
14188
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
14189
14189
  }
14190
14190
  /**
@@ -14197,8 +14197,8 @@ var init_wistia_player = __esm({
14197
14197
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
14198
14198
  },
14199
14199
  set: function set(quality) {
14200
- var _this$api34, _this$api34$_impl;
14201
- (_this$api34 = this.api) === null || _this$api34 === void 0 ? void 0 : (_this$api34$_impl = _this$api34._impl) === null || _this$api34$_impl === void 0 ? void 0 : _this$api34$_impl.qualityMin(quality);
14200
+ var _classPrivateFieldGet81, _classPrivateFieldGet82;
14201
+ (_classPrivateFieldGet81 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet81 === void 0 ? void 0 : (_classPrivateFieldGet82 = _classPrivateFieldGet81._impl) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.qualityMin(quality);
14202
14202
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
14203
14203
  }
14204
14204
  /**
@@ -14208,8 +14208,8 @@ var init_wistia_player = __esm({
14208
14208
  }, {
14209
14209
  key: "readyState",
14210
14210
  get: function get() {
14211
- var _this$api$_impl$getRe, _this$api35, _this$api35$_impl;
14212
- return (_this$api$_impl$getRe = (_this$api35 = this.api) === null || _this$api35 === void 0 ? void 0 : (_this$api35$_impl = _this$api35._impl) === null || _this$api35$_impl === void 0 ? void 0 : _this$api35$_impl.getReadyState()) !== null && _this$api$_impl$getRe !== void 0 ? _this$api$_impl$getRe : 0;
14211
+ var _classPrivateFieldGet83, _classPrivateFieldGet84, _classPrivateFieldGet85;
14212
+ return (_classPrivateFieldGet83 = (_classPrivateFieldGet84 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : (_classPrivateFieldGet85 = _classPrivateFieldGet84._impl) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.getReadyState()) !== null && _classPrivateFieldGet83 !== void 0 ? _classPrivateFieldGet83 : 0;
14213
14213
  }
14214
14214
  /**
14215
14215
  * Returns the current resumable status of the video.
@@ -14221,8 +14221,8 @@ var init_wistia_player = __esm({
14221
14221
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable");
14222
14222
  },
14223
14223
  set: function set(resumableState) {
14224
- var _this$api36, _this$api36$_impl;
14225
- (_this$api36 = this.api) === null || _this$api36 === void 0 ? void 0 : (_this$api36$_impl = _this$api36._impl) === null || _this$api36$_impl === void 0 ? void 0 : _this$api36$_impl.setResumable(resumableState);
14224
+ var _classPrivateFieldGet86, _classPrivateFieldGet87;
14225
+ (_classPrivateFieldGet86 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : (_classPrivateFieldGet87 = _classPrivateFieldGet86._impl) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87.setResumable(resumableState);
14226
14226
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
14227
14227
  }
14228
14228
  /**
@@ -14235,8 +14235,8 @@ var init_wistia_player = __esm({
14235
14235
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
14236
14236
  },
14237
14237
  set: function set(radius) {
14238
- var _this$api37, _this$api37$_impl;
14239
- (_this$api37 = this.api) === null || _this$api37 === void 0 ? void 0 : (_this$api37$_impl = _this$api37._impl) === null || _this$api37$_impl === void 0 ? void 0 : _this$api37$_impl.setRoundedPlayer(Number(radius));
14238
+ var _classPrivateFieldGet88, _classPrivateFieldGet89;
14239
+ (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : (_classPrivateFieldGet89 = _classPrivateFieldGet88._impl) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.setRoundedPlayer(Number(radius));
14240
14240
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", radius);
14241
14241
  }
14242
14242
  /**
@@ -14247,8 +14247,8 @@ var init_wistia_player = __esm({
14247
14247
  }, {
14248
14248
  key: "secondsWatched",
14249
14249
  get: function get() {
14250
- var _this$api$_impl$secon, _this$api38, _this$api38$_impl;
14251
- return (_this$api$_impl$secon = (_this$api38 = this.api) === null || _this$api38 === void 0 ? void 0 : (_this$api38$_impl = _this$api38._impl) === null || _this$api38$_impl === void 0 ? void 0 : _this$api38$_impl.secondsWatched()) !== null && _this$api$_impl$secon !== void 0 ? _this$api$_impl$secon : 0;
14250
+ var _classPrivateFieldGet90, _classPrivateFieldGet91, _classPrivateFieldGet92;
14251
+ return (_classPrivateFieldGet90 = (_classPrivateFieldGet91 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : (_classPrivateFieldGet92 = _classPrivateFieldGet91._impl) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.secondsWatched()) !== null && _classPrivateFieldGet90 !== void 0 ? _classPrivateFieldGet90 : 0;
14252
14252
  }
14253
14253
  /**
14254
14254
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -14257,8 +14257,8 @@ var init_wistia_player = __esm({
14257
14257
  }, {
14258
14258
  key: "secondsWatchedVector",
14259
14259
  get: function get() {
14260
- var _this$api$_impl$secon2, _this$api39, _this$api39$_impl;
14261
- return (_this$api$_impl$secon2 = (_this$api39 = this.api) === null || _this$api39 === void 0 ? void 0 : (_this$api39$_impl = _this$api39._impl) === null || _this$api39$_impl === void 0 ? void 0 : _this$api39$_impl.secondsWatchedVector()) !== null && _this$api$_impl$secon2 !== void 0 ? _this$api$_impl$secon2 : [];
14260
+ var _classPrivateFieldGet93, _classPrivateFieldGet94, _classPrivateFieldGet95;
14261
+ return (_classPrivateFieldGet93 = (_classPrivateFieldGet94 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : (_classPrivateFieldGet95 = _classPrivateFieldGet94._impl) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.secondsWatchedVector()) !== null && _classPrivateFieldGet93 !== void 0 ? _classPrivateFieldGet93 : [];
14262
14262
  }
14263
14263
  /**
14264
14264
  * Returns whether JSON+LD seo data will be injected.
@@ -14282,8 +14282,8 @@ var init_wistia_player = __esm({
14282
14282
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
14283
14283
  },
14284
14284
  set: function set(shouldDisplay) {
14285
- var _this$api40, _this$api40$_impl;
14286
- (_this$api40 = this.api) === null || _this$api40 === void 0 ? void 0 : (_this$api40$_impl = _this$api40._impl) === null || _this$api40$_impl === void 0 ? void 0 : _this$api40$_impl.settingsControlEnabled(shouldDisplay);
14285
+ var _classPrivateFieldGet96, _classPrivateFieldGet97;
14286
+ (_classPrivateFieldGet96 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet96 === void 0 ? void 0 : (_classPrivateFieldGet97 = _classPrivateFieldGet96._impl) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.settingsControlEnabled(shouldDisplay);
14287
14287
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
14288
14288
  }
14289
14289
  /**
@@ -14309,8 +14309,8 @@ var init_wistia_player = __esm({
14309
14309
  }, {
14310
14310
  key: "state",
14311
14311
  get: function get() {
14312
- var _this$api$state, _this$api41;
14313
- return (_this$api$state = (_this$api41 = this.api) === null || _this$api41 === void 0 ? void 0 : _this$api41.state()) !== null && _this$api$state !== void 0 ? _this$api$state : defaultEmbedOptions.state;
14312
+ var _classPrivateFieldGet98, _classPrivateFieldGet99;
14313
+ return (_classPrivateFieldGet98 = (_classPrivateFieldGet99 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.state()) !== null && _classPrivateFieldGet98 !== void 0 ? _classPrivateFieldGet98 : defaultEmbedOptions.state;
14314
14314
  }
14315
14315
  /**
14316
14316
  * Returns the stats url for the player.
@@ -14388,12 +14388,12 @@ var init_wistia_player = __esm({
14388
14388
  }, {
14389
14389
  key: "videoQuality",
14390
14390
  get: function get() {
14391
- var _ref12, _this$api$_impl$getVi, _this$api42, _this$api42$_impl;
14392
- return (_ref12 = (_this$api$_impl$getVi = (_this$api42 = this.api) === null || _this$api42 === void 0 ? void 0 : (_this$api42$_impl = _this$api42._impl) === null || _this$api42$_impl === void 0 ? void 0 : _this$api42$_impl.getVideoQuality()) !== null && _this$api$_impl$getVi !== void 0 ? _this$api$_impl$getVi : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
14391
+ var _ref12, _classPrivateFieldGet100, _classPrivateFieldGet101, _classPrivateFieldGet102;
14392
+ return (_ref12 = (_classPrivateFieldGet100 = (_classPrivateFieldGet101 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet101 === void 0 ? void 0 : (_classPrivateFieldGet102 = _classPrivateFieldGet101._impl) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.getVideoQuality()) !== null && _classPrivateFieldGet100 !== void 0 ? _classPrivateFieldGet100 : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
14393
14393
  },
14394
14394
  set: function set(quality) {
14395
- var _this$api43, _this$api43$_impl;
14396
- (_this$api43 = this.api) === null || _this$api43 === void 0 ? void 0 : (_this$api43$_impl = _this$api43._impl) === null || _this$api43$_impl === void 0 ? void 0 : _this$api43$_impl.setVideoQuality(quality);
14395
+ var _classPrivateFieldGet103, _classPrivateFieldGet104;
14396
+ (_classPrivateFieldGet103 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet103 === void 0 ? void 0 : (_classPrivateFieldGet104 = _classPrivateFieldGet103._impl) === null || _classPrivateFieldGet104 === void 0 ? void 0 : _classPrivateFieldGet104.setVideoQuality(quality);
14397
14397
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
14398
14398
  }
14399
14399
  /**
@@ -14416,8 +14416,8 @@ var init_wistia_player = __esm({
14416
14416
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
14417
14417
  },
14418
14418
  set: function set(level) {
14419
- var _this$api44, _this$api44$_impl;
14420
- (_this$api44 = this.api) === null || _this$api44 === void 0 ? void 0 : (_this$api44$_impl = _this$api44._impl) === null || _this$api44$_impl === void 0 ? void 0 : _this$api44$_impl.volume(level);
14419
+ var _classPrivateFieldGet105, _classPrivateFieldGet106;
14420
+ (_classPrivateFieldGet105 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet105 === void 0 ? void 0 : (_classPrivateFieldGet106 = _classPrivateFieldGet105._impl) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.volume(level);
14421
14421
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
14422
14422
  }
14423
14423
  /**
@@ -14432,8 +14432,8 @@ var init_wistia_player = __esm({
14432
14432
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
14433
14433
  },
14434
14434
  set: function set(shouldDisplay) {
14435
- var _this$api45, _this$api45$_impl;
14436
- (_this$api45 = this.api) === null || _this$api45 === void 0 ? void 0 : (_this$api45$_impl = _this$api45._impl) === null || _this$api45$_impl === void 0 ? void 0 : _this$api45$_impl.volumeControlEnabled(shouldDisplay);
14435
+ var _classPrivateFieldGet107, _classPrivateFieldGet108;
14436
+ (_classPrivateFieldGet107 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet107 === void 0 ? void 0 : (_classPrivateFieldGet108 = _classPrivateFieldGet107._impl) === null || _classPrivateFieldGet108 === void 0 ? void 0 : _classPrivateFieldGet108.volumeControlEnabled(shouldDisplay);
14437
14437
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
14438
14438
  }
14439
14439
  /**
@@ -14460,7 +14460,7 @@ var init_wistia_player = __esm({
14460
14460
  */
14461
14461
  function() {
14462
14462
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
14463
- var _this$api46, _this$api46$_impl, _this3 = this;
14463
+ var _classPrivateFieldGet109, _classPrivateFieldGet110, _this3 = this;
14464
14464
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14465
14465
  while (1) switch (_context.prev = _context.next) {
14466
14466
  case 0:
@@ -14470,7 +14470,7 @@ var init_wistia_player = __esm({
14470
14470
  if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_26__.n9)(this._fullscreenState.heightBeforeFullscreen)) {
14471
14471
  this.style.height = this._fullscreenState.heightBeforeFullscreen;
14472
14472
  }
14473
- return _context.abrupt("return", (_this$api46 = this.api) === null || _this$api46 === void 0 ? void 0 : (_this$api46$_impl = _this$api46._impl) === null || _this$api46$_impl === void 0 ? void 0 : _this$api46$_impl.cancelFullscreen().then(function() {
14473
+ return _context.abrupt("return", (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : (_classPrivateFieldGet110 = _classPrivateFieldGet109._impl) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.cancelFullscreen().then(function() {
14474
14474
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
14475
14475
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
14476
14476
  }));
@@ -14496,15 +14496,15 @@ var init_wistia_player = __esm({
14496
14496
  key: "createOverlay",
14497
14497
  value: function() {
14498
14498
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(name, options) {
14499
- var _this$api47, _this$api47$_impl;
14499
+ var _classPrivateFieldGet111, _classPrivateFieldGet112;
14500
14500
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
14501
14501
  while (1) switch (_context2.prev = _context2.next) {
14502
14502
  case 0:
14503
- if (!((_this$api47 = this.api) !== null && _this$api47 !== void 0 && (_this$api47$_impl = _this$api47._impl) !== null && _this$api47$_impl !== void 0 && _this$api47$_impl.defineOverlay)) {
14503
+ if (!((_classPrivateFieldGet111 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet111 !== void 0 && (_classPrivateFieldGet112 = _classPrivateFieldGet111._impl) !== null && _classPrivateFieldGet112 !== void 0 && _classPrivateFieldGet112.defineOverlay)) {
14504
14504
  _context2.next = 2;
14505
14505
  break;
14506
14506
  }
14507
- return _context2.abrupt("return", this.api._impl.defineOverlay(name, options));
14507
+ return _context2.abrupt("return", _classPrivateFieldGet(_api, this)._impl.defineOverlay(name, options));
14508
14508
  case 2:
14509
14509
  return _context2.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be defined at this time"))));
14510
14510
  case 3:
@@ -14529,11 +14529,11 @@ var init_wistia_player = __esm({
14529
14529
  case 0:
14530
14530
  addPlugin = /* @__PURE__ */ function() {
14531
14531
  var _ref13 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3() {
14532
- var _this4$api$addPlugin, _this4$api;
14532
+ var _classPrivateFieldGet113, _classPrivateFieldGet114;
14533
14533
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
14534
14534
  while (1) switch (_context3.prev = _context3.next) {
14535
14535
  case 0:
14536
- return _context3.abrupt("return", (_this4$api$addPlugin = (_this4$api = _this4.api) === null || _this4$api === void 0 ? void 0 : _this4$api.addPlugin(name, options)) !== null && _this4$api$addPlugin !== void 0 ? _this4$api$addPlugin : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
14536
+ return _context3.abrupt("return", (_classPrivateFieldGet113 = (_classPrivateFieldGet114 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.addPlugin(name, options)) !== null && _classPrivateFieldGet113 !== void 0 ? _classPrivateFieldGet113 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
14537
14537
  case 1:
14538
14538
  case "end":
14539
14539
  return _context3.stop();
@@ -14544,7 +14544,7 @@ var init_wistia_player = __esm({
14544
14544
  return _ref13.apply(this, arguments);
14545
14545
  };
14546
14546
  }();
14547
- if (!this.api) {
14547
+ if (!_classPrivateFieldGet(_api, this)) {
14548
14548
  _context4.next = 3;
14549
14549
  break;
14550
14550
  }
@@ -14580,15 +14580,15 @@ var init_wistia_player = __esm({
14580
14580
  key: "deleteOverlay",
14581
14581
  value: function() {
14582
14582
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5(name) {
14583
- var _this$api48, _this$api48$_impl;
14583
+ var _classPrivateFieldGet115, _classPrivateFieldGet116;
14584
14584
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
14585
14585
  while (1) switch (_context5.prev = _context5.next) {
14586
14586
  case 0:
14587
- if (!((_this$api48 = this.api) !== null && _this$api48 !== void 0 && (_this$api48$_impl = _this$api48._impl) !== null && _this$api48$_impl !== void 0 && _this$api48$_impl.undefineOverlay)) {
14587
+ if (!((_classPrivateFieldGet115 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet115 !== void 0 && (_classPrivateFieldGet116 = _classPrivateFieldGet115._impl) !== null && _classPrivateFieldGet116 !== void 0 && _classPrivateFieldGet116.undefineOverlay)) {
14588
14588
  _context5.next = 2;
14589
14589
  break;
14590
14590
  }
14591
- return _context5.abrupt("return", this.api._impl.undefineOverlay(name));
14591
+ return _context5.abrupt("return", _classPrivateFieldGet(_api, this)._impl.undefineOverlay(name));
14592
14592
  case 2:
14593
14593
  return _context5.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be deleted at this time"))));
14594
14594
  case 3:
@@ -14606,15 +14606,15 @@ var init_wistia_player = __esm({
14606
14606
  key: "disableControl",
14607
14607
  value: function() {
14608
14608
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6(name) {
14609
- var _this$api49, _this$api49$_impl;
14609
+ var _classPrivateFieldGet117, _classPrivateFieldGet118;
14610
14610
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
14611
14611
  while (1) switch (_context6.prev = _context6.next) {
14612
14612
  case 0:
14613
- if (!((_this$api49 = this.api) !== null && _this$api49 !== void 0 && (_this$api49$_impl = _this$api49._impl) !== null && _this$api49$_impl !== void 0 && _this$api49$_impl.setControlEnabled)) {
14613
+ if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet117 !== void 0 && (_classPrivateFieldGet118 = _classPrivateFieldGet117._impl) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.setControlEnabled)) {
14614
14614
  _context6.next = 2;
14615
14615
  break;
14616
14616
  }
14617
- return _context6.abrupt("return", this.api._impl.setControlEnabled(name, false));
14617
+ return _context6.abrupt("return", _classPrivateFieldGet(_api, this)._impl.setControlEnabled(name, false));
14618
14618
  case 2:
14619
14619
  return _context6.abrupt("return", Promise.reject(new Error('control "'.concat(name, '" cannot be disabled at this time'))));
14620
14620
  case 3:
@@ -14632,15 +14632,15 @@ var init_wistia_player = __esm({
14632
14632
  key: "enableControl",
14633
14633
  value: function() {
14634
14634
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee7(name) {
14635
- var _this$api50, _this$api50$_impl;
14635
+ var _classPrivateFieldGet119, _classPrivateFieldGet120;
14636
14636
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
14637
14637
  while (1) switch (_context7.prev = _context7.next) {
14638
14638
  case 0:
14639
- if (!((_this$api50 = this.api) !== null && _this$api50 !== void 0 && (_this$api50$_impl = _this$api50._impl) !== null && _this$api50$_impl !== void 0 && _this$api50$_impl.setControlEnabled)) {
14639
+ if (!((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet119 !== void 0 && (_classPrivateFieldGet120 = _classPrivateFieldGet119._impl) !== null && _classPrivateFieldGet120 !== void 0 && _classPrivateFieldGet120.setControlEnabled)) {
14640
14640
  _context7.next = 2;
14641
14641
  break;
14642
14642
  }
14643
- return _context7.abrupt("return", this.api._impl.setControlEnabled(name, true));
14643
+ return _context7.abrupt("return", _classPrivateFieldGet(_api, this)._impl.setControlEnabled(name, true));
14644
14644
  case 2:
14645
14645
  return _context7.abrupt("return", Promise.reject(new Error('control "'.concat(name, '" cannot be enabled at this time'))));
14646
14646
  case 3:
@@ -14661,11 +14661,11 @@ var init_wistia_player = __esm({
14661
14661
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
14662
14662
  while (1) switch (_context8.prev = _context8.next) {
14663
14663
  case 0:
14664
- if (!this.api) {
14664
+ if (!_classPrivateFieldGet(_api, this)) {
14665
14665
  _context8.next = 2;
14666
14666
  break;
14667
14667
  }
14668
- return _context8.abrupt("return", this.api.plugin(name));
14668
+ return _context8.abrupt("return", _classPrivateFieldGet(_api, this).plugin(name));
14669
14669
  case 2:
14670
14670
  return _context8.abrupt("return", Promise.reject(new Error("plugin ".concat(name, " is not yet defined"))));
14671
14671
  case 3:
@@ -14683,15 +14683,15 @@ var init_wistia_player = __esm({
14683
14683
  key: "hideOverlay",
14684
14684
  value: function() {
14685
14685
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(name) {
14686
- var _this$api51, _this$api51$_impl;
14686
+ var _classPrivateFieldGet121, _classPrivateFieldGet122;
14687
14687
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
14688
14688
  while (1) switch (_context9.prev = _context9.next) {
14689
14689
  case 0:
14690
- if (!((_this$api51 = this.api) !== null && _this$api51 !== void 0 && (_this$api51$_impl = _this$api51._impl) !== null && _this$api51$_impl !== void 0 && _this$api51$_impl.cancelOverlay)) {
14690
+ if (!((_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet121 !== void 0 && (_classPrivateFieldGet122 = _classPrivateFieldGet121._impl) !== null && _classPrivateFieldGet122 !== void 0 && _classPrivateFieldGet122.cancelOverlay)) {
14691
14691
  _context9.next = 2;
14692
14692
  break;
14693
14693
  }
14694
- return _context9.abrupt("return", this.api._impl.cancelOverlay(name));
14694
+ return _context9.abrupt("return", _classPrivateFieldGet(_api, this)._impl.cancelOverlay(name));
14695
14695
  case 2:
14696
14696
  return _context9.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be cancelled at this time"))));
14697
14697
  case 3:
@@ -14714,9 +14714,9 @@ var init_wistia_player = __esm({
14714
14714
  while (1) switch (_context10.prev = _context10.next) {
14715
14715
  case 0:
14716
14716
  return _context10.abrupt("return", new Promise(function(resolve, reject) {
14717
- var _this5$api;
14718
- if ((_this5$api = _this5.api) !== null && _this5$api !== void 0 && _this5$api.popover) {
14719
- _this5.api.popover.hide();
14717
+ var _classPrivateFieldGet123;
14718
+ if ((_classPrivateFieldGet123 = _classPrivateFieldGet(_api, _this5)) !== null && _classPrivateFieldGet123 !== void 0 && _classPrivateFieldGet123.popover) {
14719
+ _classPrivateFieldGet(_api, _this5).popover.hide();
14720
14720
  resolve();
14721
14721
  }
14722
14722
  reject(new Error("Popover cannot be accessed"));
@@ -14736,11 +14736,11 @@ var init_wistia_player = __esm({
14736
14736
  key: "pause",
14737
14737
  value: function() {
14738
14738
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee11() {
14739
- var _this$api52, _this$api52$_impl;
14739
+ var _classPrivateFieldGet124, _classPrivateFieldGet125;
14740
14740
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
14741
14741
  while (1) switch (_context11.prev = _context11.next) {
14742
14742
  case 0:
14743
- return _context11.abrupt("return", (_this$api52 = this.api) === null || _this$api52 === void 0 ? void 0 : (_this$api52$_impl = _this$api52._impl) === null || _this$api52$_impl === void 0 ? void 0 : _this$api52$_impl.pause());
14743
+ return _context11.abrupt("return", (_classPrivateFieldGet124 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : (_classPrivateFieldGet125 = _classPrivateFieldGet124._impl) === null || _classPrivateFieldGet125 === void 0 ? void 0 : _classPrivateFieldGet125.pause());
14744
14744
  case 1:
14745
14745
  case "end":
14746
14746
  return _context11.stop();
@@ -14756,11 +14756,11 @@ var init_wistia_player = __esm({
14756
14756
  key: "play",
14757
14757
  value: function() {
14758
14758
  var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee12() {
14759
- var _this$api53, _this$api53$_impl;
14759
+ var _classPrivateFieldGet126, _classPrivateFieldGet127;
14760
14760
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
14761
14761
  while (1) switch (_context12.prev = _context12.next) {
14762
14762
  case 0:
14763
- return _context12.abrupt("return", (_this$api53 = this.api) === null || _this$api53 === void 0 ? void 0 : (_this$api53$_impl = _this$api53._impl) === null || _this$api53$_impl === void 0 ? void 0 : _this$api53$_impl.play());
14763
+ return _context12.abrupt("return", (_classPrivateFieldGet126 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : (_classPrivateFieldGet127 = _classPrivateFieldGet126._impl) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.play());
14764
14764
  case 1:
14765
14765
  case "end":
14766
14766
  return _context12.stop();
@@ -14776,11 +14776,11 @@ var init_wistia_player = __esm({
14776
14776
  key: "releaseControls",
14777
14777
  value: function() {
14778
14778
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13(name) {
14779
- var _this$api54, _this$api54$_impl;
14779
+ var _classPrivateFieldGet128, _classPrivateFieldGet129;
14780
14780
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
14781
14781
  while (1) switch (_context13.prev = _context13.next) {
14782
14782
  case 0:
14783
- return _context13.abrupt("return", (_this$api54 = this.api) === null || _this$api54 === void 0 ? void 0 : (_this$api54$_impl = _this$api54._impl) === null || _this$api54$_impl === void 0 ? void 0 : _this$api54$_impl.releaseControls(name));
14783
+ return _context13.abrupt("return", (_classPrivateFieldGet128 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : (_classPrivateFieldGet129 = _classPrivateFieldGet128._impl) === null || _classPrivateFieldGet129 === void 0 ? void 0 : _classPrivateFieldGet129.releaseControls(name));
14784
14784
  case 1:
14785
14785
  case "end":
14786
14786
  return _context13.stop();
@@ -14803,8 +14803,8 @@ var init_wistia_player = __esm({
14803
14803
  case 0:
14804
14804
  options = _args14.length > 1 && _args14[1] !== void 0 ? _args14[1] : {};
14805
14805
  return _context14.abrupt("return", new Promise(function(resolve, reject) {
14806
- var _this6$api;
14807
- if (!_this6.api) {
14806
+ var _classPrivateFieldGet130;
14807
+ if (!_classPrivateFieldGet(_api, _this6)) {
14808
14808
  reject(new Error("api not ready to replace"));
14809
14809
  }
14810
14810
  var _handler2 = function handler() {
@@ -14817,7 +14817,7 @@ var init_wistia_player = __esm({
14817
14817
  };
14818
14818
  _this6.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_27__.$1, _handler2);
14819
14819
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, _this6));
14820
- (_this6$api = _this6.api) === null || _this6$api === void 0 ? void 0 : _this6$api.replaceWith(mediaId, options);
14820
+ (_classPrivateFieldGet130 = _classPrivateFieldGet(_api, _this6)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.replaceWith(mediaId, options);
14821
14821
  }));
14822
14822
  case 2:
14823
14823
  case "end":
@@ -14834,11 +14834,11 @@ var init_wistia_player = __esm({
14834
14834
  key: "requestControls",
14835
14835
  value: function() {
14836
14836
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee15(name) {
14837
- var _this$api55, _this$api55$_impl;
14837
+ var _classPrivateFieldGet131, _classPrivateFieldGet132;
14838
14838
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
14839
14839
  while (1) switch (_context15.prev = _context15.next) {
14840
14840
  case 0:
14841
- return _context15.abrupt("return", (_this$api55 = this.api) === null || _this$api55 === void 0 ? void 0 : (_this$api55$_impl = _this$api55._impl) === null || _this$api55$_impl === void 0 ? void 0 : _this$api55$_impl.requestControls(name));
14841
+ return _context15.abrupt("return", (_classPrivateFieldGet131 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : (_classPrivateFieldGet132 = _classPrivateFieldGet131._impl) === null || _classPrivateFieldGet132 === void 0 ? void 0 : _classPrivateFieldGet132.requestControls(name));
14842
14842
  case 1:
14843
14843
  case "end":
14844
14844
  return _context15.stop();
@@ -14854,15 +14854,15 @@ var init_wistia_player = __esm({
14854
14854
  key: "requestFullscreen",
14855
14855
  value: function() {
14856
14856
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16() {
14857
- var _this$api56, _this$api56$_impl;
14857
+ var _classPrivateFieldGet133, _classPrivateFieldGet134;
14858
14858
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
14859
14859
  while (1) switch (_context16.prev = _context16.next) {
14860
14860
  case 0:
14861
- if (!((_this$api56 = this.api) !== null && _this$api56 !== void 0 && (_this$api56$_impl = _this$api56._impl) !== null && _this$api56$_impl !== void 0 && _this$api56$_impl.requestFullscreen)) {
14861
+ if (!((_classPrivateFieldGet133 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet133 !== void 0 && (_classPrivateFieldGet134 = _classPrivateFieldGet133._impl) !== null && _classPrivateFieldGet134 !== void 0 && _classPrivateFieldGet134.requestFullscreen)) {
14862
14862
  _context16.next = 2;
14863
14863
  break;
14864
14864
  }
14865
- return _context16.abrupt("return", this.api._impl.requestFullscreen());
14865
+ return _context16.abrupt("return", _classPrivateFieldGet(_api, this)._impl.requestFullscreen());
14866
14866
  case 2:
14867
14867
  return _context16.abrupt("return", Promise.reject(new Error("Fullscreen cannot be accessed")));
14868
14868
  case 3:
@@ -14880,15 +14880,15 @@ var init_wistia_player = __esm({
14880
14880
  key: "showOverlay",
14881
14881
  value: function() {
14882
14882
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17(name) {
14883
- var _this$api57, _this$api57$_impl;
14883
+ var _classPrivateFieldGet135, _classPrivateFieldGet136;
14884
14884
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
14885
14885
  while (1) switch (_context17.prev = _context17.next) {
14886
14886
  case 0:
14887
- if (!((_this$api57 = this.api) !== null && _this$api57 !== void 0 && (_this$api57$_impl = _this$api57._impl) !== null && _this$api57$_impl !== void 0 && _this$api57$_impl.requestOverlay)) {
14887
+ if (!((_classPrivateFieldGet135 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet135 !== void 0 && (_classPrivateFieldGet136 = _classPrivateFieldGet135._impl) !== null && _classPrivateFieldGet136 !== void 0 && _classPrivateFieldGet136.requestOverlay)) {
14888
14888
  _context17.next = 2;
14889
14889
  break;
14890
14890
  }
14891
- return _context17.abrupt("return", this.api._impl.requestOverlay(name));
14891
+ return _context17.abrupt("return", _classPrivateFieldGet(_api, this)._impl.requestOverlay(name));
14892
14892
  case 2:
14893
14893
  return _context17.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be requested at this time"))));
14894
14894
  case 3:
@@ -14911,9 +14911,9 @@ var init_wistia_player = __esm({
14911
14911
  while (1) switch (_context18.prev = _context18.next) {
14912
14912
  case 0:
14913
14913
  return _context18.abrupt("return", new Promise(function(resolve, reject) {
14914
- var _this7$api;
14915
- if ((_this7$api = _this7.api) !== null && _this7$api !== void 0 && _this7$api.popover) {
14916
- _this7.api.popover.show();
14914
+ var _classPrivateFieldGet137;
14915
+ if ((_classPrivateFieldGet137 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet137 !== void 0 && _classPrivateFieldGet137.popover) {
14916
+ _classPrivateFieldGet(_api, _this7).popover.show();
14917
14917
  resolve();
14918
14918
  }
14919
14919
  reject(new Error("Popover cannot be accessed"));
@@ -15010,14 +15010,14 @@ var init_wistia_player = __esm({
15010
15010
  }, {
15011
15011
  key: "disconnectedCallback",
15012
15012
  value: function disconnectedCallback() {
15013
- var _classPrivateFieldGet8;
15013
+ var _classPrivateFieldGet138;
15014
15014
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
15015
15015
  return removeListener();
15016
15016
  });
15017
15017
  _classPrivateFieldSet(_hasElementConnectedToDOM, this, false);
15018
15018
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, this));
15019
15019
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_23__.s3)(this.mediaId);
15020
- (_classPrivateFieldGet8 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet8 === void 0 ? void 0 : _classPrivateFieldGet8.disconnect();
15020
+ (_classPrivateFieldGet138 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet138 === void 0 ? void 0 : _classPrivateFieldGet138.disconnect();
15021
15021
  _classPrivateFieldSet(_resizeObserver, this, null);
15022
15022
  }
15023
15023
  // --------------------------------------------------