@wistia/wistia-player-react 0.7.1 → 0.7.4

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.
@@ -38,11 +38,11 @@ var init_dist = __esm({
38
38
  });
39
39
 
40
40
  // src/utils/getMergedEmbedOption.ts
41
- var isGradient, isValidEmbedOption, getMergedEmbedOption;
41
+ var isGradient2, isValidEmbedOption, getMergedEmbedOption;
42
42
  var init_getMergedEmbedOption = __esm({
43
43
  "src/utils/getMergedEmbedOption.ts"() {
44
44
  init_dist();
45
- isGradient = (value) => {
45
+ isGradient2 = (value) => {
46
46
  if (!isRecord(value)) {
47
47
  return false;
48
48
  }
@@ -59,7 +59,7 @@ var init_getMergedEmbedOption = __esm({
59
59
  return colors.every((color) => isArray2(color) && isString(color[0]) && isNumber2(color[1]));
60
60
  };
61
61
  isValidEmbedOption = (value) => {
62
- return isNumber2(value) || isString(value) || isBoolean(value) || isGradient(value);
62
+ return isNumber2(value) || isString(value) || isBoolean(value) || isGradient2(value);
63
63
  };
64
64
  getMergedEmbedOption = (mediaId, optionKey, optionValue) => {
65
65
  let finalEmbedOption = optionValue;
@@ -485,11 +485,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
485
485
  return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
486
486
  }
487
487
  function _findLocalizationByLanguage(language) {
488
- var _classPrivateFieldGet119;
488
+ var _classPrivateFieldGet122;
489
489
  if (language == null) {
490
490
  return void 0;
491
491
  }
492
- return (_classPrivateFieldGet119 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet119 === void 0 ? void 0 : _classPrivateFieldGet119.find(function(localization) {
492
+ return (_classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.find(function(localization) {
493
493
  return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
494
494
  });
495
495
  }
@@ -498,11 +498,11 @@ function _generateUniqueId(mediaId) {
498
498
  return (0, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_22__.h)(prefix);
499
499
  }
500
500
  function _getSyncedEmbedOption(key) {
501
- var _ref19, _ref20;
501
+ var _ref20, _ref21;
502
502
  if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
503
503
  return _classPrivateFieldGet(_impl, this)._attrs[key];
504
504
  }
505
- return (_ref19 = (_ref20 = this.embedOptions[key]) !== null && _ref20 !== void 0 ? _ref20 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__.$)(key))) !== null && _ref19 !== void 0 ? _ref19 : defaultEmbedOptions[key];
505
+ return (_ref20 = (_ref21 = this.embedOptions[key]) !== null && _ref21 !== void 0 ? _ref21 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__.$)(key))) !== null && _ref20 !== void 0 ? _ref20 : defaultEmbedOptions[key];
506
506
  }
507
507
  function _getValueFromAttribute(name) {
508
508
  if (!this.hasAttribute(name)) {
@@ -520,8 +520,8 @@ function _getValueFromAttribute(name) {
520
520
  return this.getAttribute(name);
521
521
  }
522
522
  }
523
- function _initPlayerEmbed(_ref21) {
524
- var container = _ref21.container, mediaData = _ref21.mediaData;
523
+ function _initPlayerEmbed(_ref22) {
524
+ var container = _ref22.container, mediaData = _ref22.mediaData;
525
525
  if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
526
526
  return;
527
527
  }
@@ -534,8 +534,8 @@ function _initPlayerEmbed(_ref21) {
534
534
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
535
535
  }
536
536
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
537
- var _classPrivateFieldGet120;
538
- (_classPrivateFieldGet120 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.states.delete("--initializing");
537
+ var _classPrivateFieldGet123;
538
+ (_classPrivateFieldGet123 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.states.delete("--initializing");
539
539
  }
540
540
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
541
541
  container,
@@ -581,10 +581,10 @@ function _initPublicApi2() {
581
581
  _this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
582
582
  });
583
583
  _classPrivateFieldGet(_api, this).ready(function() {
584
- var _classPrivateFieldGet127, _classPrivateFieldGet128;
585
- (_classPrivateFieldGet127 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.disconnect();
584
+ var _classPrivateFieldGet130, _classPrivateFieldGet131;
585
+ (_classPrivateFieldGet130 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.disconnect();
586
586
  _classPrivateFieldSet(_resizeObserver, _this19, null);
587
- (_classPrivateFieldGet128 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.remove();
587
+ (_classPrivateFieldGet131 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.remove();
588
588
  _this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
589
589
  _this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
590
590
  detail: {
@@ -599,8 +599,8 @@ function _initPublicApi2() {
599
599
  }));
600
600
  _assertClassBrand(_WistiaPlayer_brand, _this19, _maybeSetupLLMOptimizedEmbed).call(_this19);
601
601
  if (_classPrivateFieldGet(_impl, _this19)) {
602
- Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref26) {
603
- var _ref27 = _slicedToArray(_ref26, 2), key = _ref27[0], value = _ref27[1];
602
+ Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref27) {
603
+ var _ref28 = _slicedToArray(_ref27, 2), key = _ref28[0], value = _ref28[1];
604
604
  _classPrivateFieldGet(_playerData, _this19).updateEmbedOptionOverrides(_defineProperty({}, key, value));
605
605
  });
606
606
  }
@@ -656,8 +656,8 @@ function _maybeInitializeMux2() {
656
656
  this.addEventListener("visitor-tracking-change", function(event) {
657
657
  var isTrackingEnabled = event.detail.isTrackingEnabled;
658
658
  if (!isTrackingEnabled) {
659
- var _classPrivateFieldGet130, _classPrivateFieldGet131;
660
- (_classPrivateFieldGet130 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : (_classPrivateFieldGet131 = _classPrivateFieldGet130.mux) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.destroy();
659
+ var _classPrivateFieldGet133, _classPrivateFieldGet134;
660
+ (_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133.mux) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.destroy();
661
661
  }
662
662
  });
663
663
  case 6:
@@ -751,8 +751,8 @@ function _renderEmbedTemplate() {
751
751
  alt: "",
752
752
  "aria-hidden": "true"
753
753
  })))), (0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
754
- ref: function ref(_ref22) {
755
- _classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref22);
754
+ ref: function ref(_ref23) {
755
+ _classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref23);
756
756
  }
757
757
  })), _classPrivateFieldGet(_preactRoot, this));
758
758
  }
@@ -761,8 +761,8 @@ function _renderPreloadThumbnail() {
761
761
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
762
762
  return;
763
763
  }
764
- var _classPrivateFieldGet121 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet121.assets, mediaType = _classPrivateFieldGet121.mediaType, carouselHardWall = _classPrivateFieldGet121.carouselHardWall;
765
- var _classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet122.autoPlay, plugin = _classPrivateFieldGet122.plugin;
764
+ var _classPrivateFieldGet124 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet124.assets, mediaType = _classPrivateFieldGet124.mediaType, carouselHardWall = _classPrivateFieldGet124.carouselHardWall;
765
+ var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet125.autoPlay, plugin = _classPrivateFieldGet125.plugin;
766
766
  if (carouselHardWall) {
767
767
  return;
768
768
  }
@@ -798,12 +798,12 @@ function _runMethodsFromAttributes() {
798
798
  var _this14 = this;
799
799
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
800
800
  this.whenApiReady().then(function() {
801
- var _ref23, _classPrivateFieldGet123, _classPrivateFieldGet124;
801
+ var _ref24, _classPrivateFieldGet126, _classPrivateFieldGet127;
802
802
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
803
- var isClosedPopover = (_ref23 = ((_classPrivateFieldGet123 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref23 !== void 0 ? _ref23 : false;
803
+ var isClosedPopover = (_ref24 = ((_classPrivateFieldGet126 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : _classPrivateFieldGet126.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref24 !== void 0 ? _ref24 : false;
804
804
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
805
805
  var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
806
- void ((_classPrivateFieldGet124 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.time(newTime, {
806
+ void ((_classPrivateFieldGet127 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.time(newTime, {
807
807
  lazy: shouldDelayUntilPlay
808
808
  }));
809
809
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
@@ -815,9 +815,9 @@ function _runMethodsFromAttributes() {
815
815
  }
816
816
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
817
817
  this.whenApiReady().then(function() {
818
- var _classPrivateFieldGet125;
818
+ var _classPrivateFieldGet128;
819
819
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
820
- (_classPrivateFieldGet125 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet125 === void 0 ? void 0 : _classPrivateFieldGet125.setVideoQuality(newQuality);
820
+ (_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.setVideoQuality(newQuality);
821
821
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
822
822
  }).catch(function(_error) {
823
823
  });
@@ -825,8 +825,8 @@ function _runMethodsFromAttributes() {
825
825
  }
826
826
  function _saveInitialAttributesFromDomOptions() {
827
827
  var _this15 = this;
828
- var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref24) {
829
- var _ref25 = _slicedToArray(_ref24, 2), value = _ref25[1];
828
+ var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref25) {
829
+ var _ref26 = _slicedToArray(_ref25, 2), value = _ref26[1];
830
830
  return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, value.name)];
831
831
  }));
832
832
  _classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
@@ -2482,6 +2482,11 @@ var init_wistia_player = __esm({
2482
2482
  getContrast
2483
2483
  ),
2484
2484
  /* harmony export */
2485
+ cO: () => (
2486
+ /* binding */
2487
+ DEFAULT_PLAYER_COLOR2
2488
+ ),
2489
+ /* harmony export */
2485
2490
  hu: () => (
2486
2491
  /* binding */
2487
2492
  getVideoPlayerIconColor
@@ -2525,6 +2530,7 @@ var init_wistia_player = __esm({
2525
2530
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2526
2531
  return n;
2527
2532
  }
2533
+ var DEFAULT_PLAYER_COLOR2 = "#2949E5";
2528
2534
  var colorContrastRatiosByShape = {
2529
2535
  nonText: 3,
2530
2536
  // 3:1 - https://www.w3.org/TR/WCAG21/#non-text-contrast
@@ -2728,6 +2734,24 @@ var init_wistia_player = __esm({
2728
2734
  }
2729
2735
  return adjustColorForProperContrast(_playerColor, _playerColor, "paragraphText");
2730
2736
  };
2737
+ var SHADE = 0.8;
2738
+ var getBackgroundColorFromPlayerColor = function getBackgroundColorFromPlayerColor2() {
2739
+ var color = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_PLAYER_COLOR2;
2740
+ return new Color(color).shade(SHADE).toHexWithHash();
2741
+ };
2742
+ var isDarkColor = function isDarkColor2(color) {
2743
+ return new Color(color).getRelativeLuminance() < 0.15;
2744
+ };
2745
+ var isVeryDarkColor = function isVeryDarkColor2(color) {
2746
+ return new Color(color).getRelativeLuminance() < 0.05;
2747
+ };
2748
+ var isLightColor = function isLightColor2(color) {
2749
+ return new Color(color).getRelativeLuminance() >= 0.8;
2750
+ };
2751
+ var isMidToneColor = function isMidToneColor2(color) {
2752
+ var relativeLuminance = new Color(color).getRelativeLuminance();
2753
+ return relativeLuminance > 0.13 && relativeLuminance < 0.75;
2754
+ };
2731
2755
  },
2732
2756
  /***/
2733
2757
  1161(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) {
@@ -4743,6 +4767,9 @@ var init_wistia_player = __esm({
4743
4767
  var OBJ_PROP = "_namespacedLocalStorage";
4744
4768
  var localStorageWorks = function localStorageWorks2() {
4745
4769
  var ns = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "wistia-test-localstorage";
4770
+ if (typeof localStorage === "undefined") {
4771
+ return false;
4772
+ }
4746
4773
  if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks != null) {
4747
4774
  return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks;
4748
4775
  }
@@ -6585,8 +6612,9 @@ var init_wistia_player = __esm({
6585
6612
  /* harmony export */
6586
6613
  });
6587
6614
  var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(7350);
6588
- var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5417);
6589
- var _obj_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(731);
6615
+ var _color_utils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(998);
6616
+ var _color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5417);
6617
+ var _obj_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(731);
6590
6618
  function _slicedToArray2(r, e) {
6591
6619
  return _arrayWithHoles2(r) || _iterableToArrayLimit2(r, e) || _unsupportedIterableToArray2(r, e) || _nonIterableRest2();
6592
6620
  }
@@ -6633,12 +6661,12 @@ var init_wistia_player = __esm({
6633
6661
  var GRADIENT_COLOR_INDEX = 0;
6634
6662
  var GRADIENT_PERCENTAGE_INDEX = 1;
6635
6663
  var DEFAULT_GRADIENT = {
6636
- colors: [["#2949E5", 0], ["#6A84FF", 1]],
6664
+ colors: [[_color_utils_ts__WEBPACK_IMPORTED_MODULE_1__.cO, 0], ["#6A84FF", 1]],
6637
6665
  on: true
6638
6666
  };
6639
6667
  var hexToRGBA = function hexToRGBA2(hex) {
6640
6668
  var alpha = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : DEFAULT_ALPHA;
6641
- var color = new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1(hex);
6669
+ var color = new _color_js__WEBPACK_IMPORTED_MODULE_2__.Q1(hex);
6642
6670
  var colorWithAlpha = color.alpha(alpha);
6643
6671
  return colorWithAlpha.toRgba();
6644
6672
  };
@@ -6678,6 +6706,12 @@ var init_wistia_player = __esm({
6678
6706
  };
6679
6707
  return result;
6680
6708
  };
6709
+ var getPlayerColorOrFirstGradientStop = function getPlayerColorOrFirstGradientStop2(playerColor, gradient) {
6710
+ if (!isGradient(gradient) || !gradient.on) {
6711
+ return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
6712
+ }
6713
+ return addHashToHex(getGradientColor(gradient));
6714
+ };
6681
6715
  },
6682
6716
  /***/
6683
6717
  4400(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
@@ -8127,7 +8161,7 @@ var init_wistia_player = __esm({
8127
8161
  }
8128
8162
  }]);
8129
8163
  })();
8130
- var addHashToHex = function addHashToHex2(hex) {
8164
+ var addHashToHex2 = function addHashToHex3(hex) {
8131
8165
  if (isNil(hex)) {
8132
8166
  return;
8133
8167
  }
@@ -9131,8 +9165,8 @@ var init_wistia_player = __esm({
9131
9165
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9132
9166
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9133
9167
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9134
- var TAGGED_VERSION = "0.7.1";
9135
- var CURRENT_SHA = "7e67f7241d126c76aeb437d67f4e4cf1c7d30bd7";
9168
+ var TAGGED_VERSION = "0.7.4";
9169
+ var CURRENT_SHA = "cd6d5f204d2705b44830dc62fffa01754c68f1d5";
9136
9170
  var DEFAULT_PROTOCOL = (function() {
9137
9171
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9138
9172
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -11310,11 +11344,11 @@ var init_wistia_player = __esm({
11310
11344
  /* harmony export */
11311
11345
  b: () => (
11312
11346
  /* binding */
11313
- isGradient2
11347
+ isGradient3
11314
11348
  )
11315
11349
  /* harmony export */
11316
11350
  });
11317
- var isGradient2 = function isGradient3(value) {
11351
+ var isGradient3 = function isGradient4(value) {
11318
11352
  if (typeof value !== "object" || value === null) {
11319
11353
  return false;
11320
11354
  }
@@ -14883,6 +14917,16 @@ var init_wistia_player = __esm({
14883
14917
  get: function get() {
14884
14918
  return _classPrivateFieldGet(_api, this);
14885
14919
  }
14920
+ /**
14921
+ * Returns the description of the video, as used in the JSON-LD schema
14922
+ * @returns {string}
14923
+ */
14924
+ }, {
14925
+ key: "description",
14926
+ get: function get() {
14927
+ var _ref5, _classPrivateFieldGet24, _classPrivateFieldGet25, _classPrivateFieldGet26;
14928
+ return (_ref5 = (_classPrivateFieldGet24 = _classPrivateFieldGet(_playerData, this).mediaData.seoDescription) !== null && _classPrivateFieldGet24 !== void 0 ? _classPrivateFieldGet24 : (_classPrivateFieldGet25 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : (_classPrivateFieldGet26 = _classPrivateFieldGet25._mediaData) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.seoDescription) !== null && _ref5 !== void 0 ? _ref5 : "";
14929
+ }
14886
14930
  /**
14887
14931
  * Returns the status of the do not track embed option that controls whether the player
14888
14932
  * sends tracking pings.
@@ -14903,8 +14947,8 @@ var init_wistia_player = __esm({
14903
14947
  }, {
14904
14948
  key: "duration",
14905
14949
  get: function get() {
14906
- var _classPrivateFieldGet24, _classPrivateFieldGet25;
14907
- return (_classPrivateFieldGet24 = (_classPrivateFieldGet25 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : _classPrivateFieldGet25.duration()) !== null && _classPrivateFieldGet24 !== void 0 ? _classPrivateFieldGet24 : 0;
14950
+ var _classPrivateFieldGet27, _classPrivateFieldGet28;
14951
+ return (_classPrivateFieldGet27 = (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.duration()) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : 0;
14908
14952
  }
14909
14953
  /**
14910
14954
  * Returns the email associated with this viewing session.
@@ -14917,8 +14961,8 @@ var init_wistia_player = __esm({
14917
14961
  }, {
14918
14962
  key: "email",
14919
14963
  get: function get() {
14920
- var _ref5, _ref6, _extractEmailFromPara, _classPrivateGetter2;
14921
- return (_ref5 = (_ref6 = (_extractEmailFromPara = (0, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_16__.i)(_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl))) !== null && _extractEmailFromPara !== void 0 ? _extractEmailFromPara : (_classPrivateGetter2 = (0, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_27__.y1)()[_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl)]) === null || _classPrivateGetter2 === void 0 ? void 0 : _classPrivateGetter2.trackEmail) !== null && _ref6 !== void 0 ? _ref6 : this.embedOptions.email) !== null && _ref5 !== void 0 ? _ref5 : void 0;
14964
+ var _ref6, _ref7, _extractEmailFromPara, _classPrivateGetter2;
14965
+ return (_ref6 = (_ref7 = (_extractEmailFromPara = (0, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_16__.i)(_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl))) !== null && _extractEmailFromPara !== void 0 ? _extractEmailFromPara : (_classPrivateGetter2 = (0, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_27__.y1)()[_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl)]) === null || _classPrivateGetter2 === void 0 ? void 0 : _classPrivateGetter2.trackEmail) !== null && _ref7 !== void 0 ? _ref7 : this.embedOptions.email) !== null && _ref6 !== void 0 ? _ref6 : void 0;
14922
14966
  },
14923
14967
  set: function set(newEmail) {
14924
14968
  if (this.email === newEmail) {
@@ -14958,8 +15002,8 @@ var init_wistia_player = __esm({
14958
15002
  }, {
14959
15003
  key: "ended",
14960
15004
  get: function get() {
14961
- var _classPrivateFieldGet26;
14962
- return ((_classPrivateFieldGet26 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.state()) === "ended";
15005
+ var _classPrivateFieldGet29;
15006
+ return ((_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === "ended";
14963
15007
  }
14964
15008
  /**
14965
15009
  * Returns the current end video behavior value
@@ -14972,11 +15016,11 @@ var init_wistia_player = __esm({
14972
15016
  },
14973
15017
  set: function set(behavior) {
14974
15018
  if (behavior === "loop") {
14975
- var _classPrivateFieldGet27;
14976
- (_classPrivateFieldGet27 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet27 === void 0 ? void 0 : _classPrivateFieldGet27.addLoopBehavior();
15019
+ var _classPrivateFieldGet30;
15020
+ (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.addLoopBehavior();
14977
15021
  } else {
14978
- var _classPrivateFieldGet28;
14979
- (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.removeLoopBehavior();
15022
+ var _classPrivateFieldGet31;
15023
+ (_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.removeLoopBehavior();
14980
15024
  }
14981
15025
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "endVideoBehavior", behavior);
14982
15026
  }
@@ -14987,8 +15031,8 @@ var init_wistia_player = __esm({
14987
15031
  }, {
14988
15032
  key: "eventKey",
14989
15033
  get: function get() {
14990
- var _classPrivateFieldGet29;
14991
- return (_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.eventKey();
15034
+ var _classPrivateFieldGet32;
15035
+ return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.eventKey();
14992
15036
  }
14993
15037
  /**
14994
15038
  * Returns how the video should be sized within its container.
@@ -15012,8 +15056,8 @@ var init_wistia_player = __esm({
15012
15056
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "fullscreenControl");
15013
15057
  },
15014
15058
  set: function set(shouldDisplay) {
15015
- var _classPrivateFieldGet30;
15016
- (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.fullscreenControlEnabled(shouldDisplay);
15059
+ var _classPrivateFieldGet33;
15060
+ (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.fullscreenControlEnabled(shouldDisplay);
15017
15061
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "fullscreenControl", shouldDisplay);
15018
15062
  }
15019
15063
  /**
@@ -15036,14 +15080,14 @@ var init_wistia_player = __esm({
15036
15080
  }, {
15037
15081
  key: "inFullscreen",
15038
15082
  get: function get() {
15039
- var _classPrivateFieldGet31, _classPrivateFieldGet32;
15040
- return (_classPrivateFieldGet31 = (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.inFullscreen()) !== null && _classPrivateFieldGet31 !== void 0 ? _classPrivateFieldGet31 : false;
15083
+ var _classPrivateFieldGet34, _classPrivateFieldGet35;
15084
+ return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.inFullscreen()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
15041
15085
  }
15042
15086
  }, {
15043
15087
  key: "inputContext",
15044
15088
  get: function get() {
15045
- var _classPrivateFieldGet33;
15046
- return (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.getInputContext();
15089
+ var _classPrivateFieldGet36;
15090
+ return (_classPrivateFieldGet36 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.getInputContext();
15047
15091
  }
15048
15092
  /**
15049
15093
  * Returns whether instantHLS is enabled for the video.
@@ -15052,26 +15096,26 @@ var init_wistia_player = __esm({
15052
15096
  }, {
15053
15097
  key: "instantHls",
15054
15098
  get: function get() {
15055
- var _classPrivateFieldGet34, _classPrivateFieldGet35;
15056
- return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.isInstantHls()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
15099
+ var _classPrivateFieldGet37, _classPrivateFieldGet38;
15100
+ return (_classPrivateFieldGet37 = (_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.isInstantHls()) !== null && _classPrivateFieldGet37 !== void 0 ? _classPrivateFieldGet37 : false;
15057
15101
  }
15058
15102
  // the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
15059
15103
  // eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
15060
15104
  }, {
15061
15105
  key: "language",
15062
15106
  get: function get() {
15063
- var _classPrivateFieldGet36, _classPrivateFieldGet37;
15064
- return (_classPrivateFieldGet36 = (_classPrivateFieldGet37 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet37 === void 0 ? void 0 : _classPrivateFieldGet37.language()) !== null && _classPrivateFieldGet36 !== void 0 ? _classPrivateFieldGet36 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15107
+ var _classPrivateFieldGet39, _classPrivateFieldGet40;
15108
+ return (_classPrivateFieldGet39 = (_classPrivateFieldGet40 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet40 === void 0 ? void 0 : _classPrivateFieldGet40.language()) !== null && _classPrivateFieldGet39 !== void 0 ? _classPrivateFieldGet39 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15065
15109
  },
15066
15110
  set: function set(language) {
15067
- var _classPrivateFieldGet38;
15068
- (_classPrivateFieldGet38 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.language(language);
15111
+ var _classPrivateFieldGet41;
15112
+ (_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.language(language);
15069
15113
  }
15070
15114
  }, {
15071
15115
  key: "languages",
15072
15116
  get: function get() {
15073
- var _classPrivateFieldGet39, _classPrivateFieldGet40;
15074
- return (_classPrivateFieldGet39 = (_classPrivateFieldGet40 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet40 === void 0 ? void 0 : _classPrivateFieldGet40.languages()) !== null && _classPrivateFieldGet39 !== void 0 ? _classPrivateFieldGet39 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
15117
+ var _classPrivateFieldGet42, _classPrivateFieldGet43;
15118
+ return (_classPrivateFieldGet42 = (_classPrivateFieldGet43 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.languages()) !== null && _classPrivateFieldGet42 !== void 0 ? _classPrivateFieldGet42 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
15075
15119
  }
15076
15120
  /**
15077
15121
  * Returns all the mediaData set on the WistiaPlayer
@@ -15107,8 +15151,8 @@ var init_wistia_player = __esm({
15107
15151
  }, {
15108
15152
  key: "mediaLanguage",
15109
15153
  get: function get() {
15110
- var _classPrivateFieldGet41, _classPrivateFieldGet42;
15111
- return (_classPrivateFieldGet41 = (_classPrivateFieldGet42 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet42 === void 0 ? void 0 : _classPrivateFieldGet42.mediaLanguage()) !== null && _classPrivateFieldGet41 !== void 0 ? _classPrivateFieldGet41 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15154
+ var _classPrivateFieldGet44, _classPrivateFieldGet45;
15155
+ return (_classPrivateFieldGet44 = (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.mediaLanguage()) !== null && _classPrivateFieldGet44 !== void 0 ? _classPrivateFieldGet44 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15112
15156
  }
15113
15157
  /**
15114
15158
  * Changes the language of the media stream/content.
@@ -15118,18 +15162,18 @@ var init_wistia_player = __esm({
15118
15162
  }, {
15119
15163
  key: "mediaLanguageCode",
15120
15164
  get: function get() {
15121
- var _classPrivateFieldGet43, _classPrivateFieldGet44;
15122
- return (_classPrivateFieldGet43 = (_classPrivateFieldGet44 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet44 === void 0 ? void 0 : _classPrivateFieldGet44.mediaLanguageCode()) !== null && _classPrivateFieldGet43 !== void 0 ? _classPrivateFieldGet43 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this).wistiaLanguageCode;
15165
+ var _classPrivateFieldGet46, _classPrivateFieldGet47;
15166
+ return (_classPrivateFieldGet46 = (_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.mediaLanguageCode()) !== null && _classPrivateFieldGet46 !== void 0 ? _classPrivateFieldGet46 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this).wistiaLanguageCode;
15123
15167
  },
15124
15168
  set: function set(languageCode) {
15125
- var _classPrivateFieldGet45;
15126
- (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.mediaLanguageCode(languageCode);
15169
+ var _classPrivateFieldGet48;
15170
+ (_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.mediaLanguageCode(languageCode);
15127
15171
  }
15128
15172
  }, {
15129
15173
  key: "mediaLanguages",
15130
15174
  get: function get() {
15131
- var _classPrivateFieldGet46, _classPrivateFieldGet47;
15132
- return (_classPrivateFieldGet46 = (_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.mediaLanguages()) !== null && _classPrivateFieldGet46 !== void 0 ? _classPrivateFieldGet46 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
15175
+ var _classPrivateFieldGet49, _classPrivateFieldGet50;
15176
+ return (_classPrivateFieldGet49 = (_classPrivateFieldGet50 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet50 === void 0 ? void 0 : _classPrivateFieldGet50.mediaLanguages()) !== null && _classPrivateFieldGet49 !== void 0 ? _classPrivateFieldGet49 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
15133
15177
  }
15134
15178
  /**
15135
15179
  * Returns if player is currently muted
@@ -15138,8 +15182,8 @@ var init_wistia_player = __esm({
15138
15182
  }, {
15139
15183
  key: "muted",
15140
15184
  get: function get() {
15141
- var _ref7, _classPrivateFieldGet48, _classPrivateFieldGet49;
15142
- return (_ref7 = (_classPrivateFieldGet48 = (_classPrivateFieldGet49 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet49 === void 0 ? void 0 : _classPrivateFieldGet49.isMuted()) !== null && _classPrivateFieldGet48 !== void 0 ? _classPrivateFieldGet48 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
15185
+ var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52;
15186
+ return (_ref8 = (_classPrivateFieldGet51 = (_classPrivateFieldGet52 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : _classPrivateFieldGet52.isMuted()) !== null && _classPrivateFieldGet51 !== void 0 ? _classPrivateFieldGet51 : this.embedOptions.muted) !== null && _ref8 !== void 0 ? _ref8 : false;
15143
15187
  },
15144
15188
  set: function set(shouldMute) {
15145
15189
  if (_classPrivateFieldGet(_impl, this)) {
@@ -15159,8 +15203,8 @@ var init_wistia_player = __esm({
15159
15203
  }, {
15160
15204
  key: "name",
15161
15205
  get: function get() {
15162
- var _ref8, _classPrivateFieldGet50, _classPrivateFieldGet51, _classPrivateFieldGet52;
15163
- return (_ref8 = (_classPrivateFieldGet50 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet50 !== void 0 ? _classPrivateFieldGet50 : (_classPrivateFieldGet51 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet51 === void 0 ? void 0 : (_classPrivateFieldGet52 = _classPrivateFieldGet51._mediaData) === null || _classPrivateFieldGet52 === void 0 ? void 0 : _classPrivateFieldGet52.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
15206
+ var _ref9, _classPrivateFieldGet53, _classPrivateFieldGet54, _classPrivateFieldGet55;
15207
+ return (_ref9 = (_classPrivateFieldGet53 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet53 !== void 0 ? _classPrivateFieldGet53 : (_classPrivateFieldGet54 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : (_classPrivateFieldGet55 = _classPrivateFieldGet54._mediaData) === null || _classPrivateFieldGet55 === void 0 ? void 0 : _classPrivateFieldGet55.name) !== null && _ref9 !== void 0 ? _ref9 : void 0;
15164
15208
  }
15165
15209
  /**
15166
15210
  * Returns the status of the opaqueControls embed option, which determines
@@ -15174,9 +15218,9 @@ var init_wistia_player = __esm({
15174
15218
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "opaqueControls");
15175
15219
  },
15176
15220
  set: function set(opaqueControls) {
15177
- var _classPrivateFieldGet53;
15221
+ var _classPrivateFieldGet56;
15178
15222
  var valueAsBoolean = Boolean(opaqueControls);
15179
- (_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.opaqueControls(valueAsBoolean);
15223
+ (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.opaqueControls(valueAsBoolean);
15180
15224
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "opaqueControls", valueAsBoolean);
15181
15225
  }
15182
15226
  }, {
@@ -15194,8 +15238,8 @@ var init_wistia_player = __esm({
15194
15238
  }, {
15195
15239
  key: "paused",
15196
15240
  get: function get() {
15197
- var _classPrivateFieldGet54;
15198
- return ((_classPrivateFieldGet54 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : _classPrivateFieldGet54.state()) === "paused";
15241
+ var _classPrivateFieldGet57;
15242
+ return ((_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.state()) === "paused";
15199
15243
  }
15200
15244
  /**
15201
15245
  * Returns the percent of the video that has been watched as a decimal between 0 and 1.
@@ -15204,8 +15248,8 @@ var init_wistia_player = __esm({
15204
15248
  }, {
15205
15249
  key: "percentWatched",
15206
15250
  get: function get() {
15207
- var _classPrivateFieldGet55, _classPrivateFieldGet56;
15208
- return (_classPrivateFieldGet55 = (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.percentWatched()) !== null && _classPrivateFieldGet55 !== void 0 ? _classPrivateFieldGet55 : 0;
15251
+ var _classPrivateFieldGet58, _classPrivateFieldGet59;
15252
+ return (_classPrivateFieldGet58 = (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.percentWatched()) !== null && _classPrivateFieldGet58 !== void 0 ? _classPrivateFieldGet58 : 0;
15209
15253
  }
15210
15254
  /**
15211
15255
  * Returns the playback rate of the video.
@@ -15214,12 +15258,12 @@ var init_wistia_player = __esm({
15214
15258
  }, {
15215
15259
  key: "playbackRate",
15216
15260
  get: function get() {
15217
- var _ref9, _classPrivateFieldGet57, _classPrivateFieldGet58;
15218
- return (_ref9 = (_classPrivateFieldGet57 = (_classPrivateFieldGet58 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.playbackRate()) !== null && _classPrivateFieldGet57 !== void 0 ? _classPrivateFieldGet57 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
15261
+ var _ref0, _classPrivateFieldGet60, _classPrivateFieldGet61;
15262
+ return (_ref0 = (_classPrivateFieldGet60 = (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbackRate()) !== null && _classPrivateFieldGet60 !== void 0 ? _classPrivateFieldGet60 : this.embedOptions.playbackRate) !== null && _ref0 !== void 0 ? _ref0 : 1;
15219
15263
  },
15220
15264
  set: function set(rate) {
15221
- var _classPrivateFieldGet59;
15222
- (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRate(rate);
15265
+ var _classPrivateFieldGet62;
15266
+ (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbackRate(rate);
15223
15267
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
15224
15268
  }
15225
15269
  /**
@@ -15232,8 +15276,8 @@ var init_wistia_player = __esm({
15232
15276
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
15233
15277
  },
15234
15278
  set: function set(shouldDisplay) {
15235
- var _classPrivateFieldGet60;
15236
- (_classPrivateFieldGet60 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbackRateControlEnabled(shouldDisplay);
15279
+ var _classPrivateFieldGet63;
15280
+ (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
15237
15281
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
15238
15282
  }
15239
15283
  /**
@@ -15246,8 +15290,8 @@ var init_wistia_player = __esm({
15246
15290
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
15247
15291
  },
15248
15292
  set: function set(shouldDisplay) {
15249
- var _classPrivateFieldGet61;
15250
- (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbarControlEnabled(shouldDisplay);
15293
+ var _classPrivateFieldGet64;
15294
+ (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playbarControlEnabled(shouldDisplay);
15251
15295
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
15252
15296
  }
15253
15297
  /**
@@ -15260,8 +15304,8 @@ var init_wistia_player = __esm({
15260
15304
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
15261
15305
  },
15262
15306
  set: function set(radius) {
15263
- var _classPrivateFieldGet62;
15264
- (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.setPlayerBorderRadius(Number(radius));
15307
+ var _classPrivateFieldGet65;
15308
+ (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setPlayerBorderRadius(Number(radius));
15265
15309
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", Number(radius));
15266
15310
  }
15267
15311
  /**
@@ -15279,8 +15323,8 @@ var init_wistia_player = __esm({
15279
15323
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
15280
15324
  },
15281
15325
  set: function set(newColor) {
15282
- var _classPrivateFieldGet63;
15283
- (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playerColor(newColor);
15326
+ var _classPrivateFieldGet66;
15327
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
15284
15328
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
15285
15329
  }
15286
15330
  /**
@@ -15297,11 +15341,11 @@ var init_wistia_player = __esm({
15297
15341
  return void 0;
15298
15342
  },
15299
15343
  set: function set(gradient) {
15300
- var _classPrivateFieldGet64;
15344
+ var _classPrivateFieldGet67;
15301
15345
  if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__.b)(gradient)) {
15302
15346
  throw new Error("playerColorGradient must be a valid gradient object");
15303
15347
  }
15304
- (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playerColorGradient(gradient);
15348
+ (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playerColorGradient(gradient);
15305
15349
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
15306
15350
  }
15307
15351
  /**
@@ -15314,8 +15358,8 @@ var init_wistia_player = __esm({
15314
15358
  }, {
15315
15359
  key: "playerForce",
15316
15360
  get: function get() {
15317
- var _ref0;
15318
- return (_ref0 = this.getAttribute("player-force")) !== null && _ref0 !== void 0 ? _ref0 : void 0;
15361
+ var _ref1;
15362
+ return (_ref1 = this.getAttribute("player-force")) !== null && _ref1 !== void 0 ? _ref1 : void 0;
15319
15363
  },
15320
15364
  set: function set(newPlayer) {
15321
15365
  _classPrivateFieldGet(_logger, this).info("set playerForce", newPlayer);
@@ -15359,8 +15403,8 @@ var init_wistia_player = __esm({
15359
15403
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
15360
15404
  },
15361
15405
  set: function set(shouldDisplay) {
15362
- var _classPrivateFieldGet65;
15363
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playPauseControlEnabled(shouldDisplay);
15406
+ var _classPrivateFieldGet68;
15407
+ (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
15364
15408
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
15365
15409
  }
15366
15410
  /**
@@ -15375,8 +15419,8 @@ var init_wistia_player = __esm({
15375
15419
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
15376
15420
  },
15377
15421
  set: function set(shouldDisplay) {
15378
- var _classPrivateFieldGet66;
15379
- (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playPauseNotifierEnabled(shouldDisplay);
15422
+ var _classPrivateFieldGet69;
15423
+ (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playPauseNotifierEnabled(shouldDisplay);
15380
15424
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
15381
15425
  }
15382
15426
  /**
@@ -15596,8 +15640,8 @@ var init_wistia_player = __esm({
15596
15640
  }, {
15597
15641
  key: "preload",
15598
15642
  get: function get() {
15599
- var _ref1, _classPrivateFieldGet67, _classPrivateFieldGet68;
15600
- return (_ref1 = (_classPrivateFieldGet67 = (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.preloadValue()) !== null && _classPrivateFieldGet67 !== void 0 ? _classPrivateFieldGet67 : this.embedOptions.preload) !== null && _ref1 !== void 0 ? _ref1 : "metadata";
15643
+ var _ref10, _classPrivateFieldGet70, _classPrivateFieldGet71;
15644
+ return (_ref10 = (_classPrivateFieldGet70 = (_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.preloadValue()) !== null && _classPrivateFieldGet70 !== void 0 ? _classPrivateFieldGet70 : this.embedOptions.preload) !== null && _ref10 !== void 0 ? _ref10 : "metadata";
15601
15645
  },
15602
15646
  set: function set(preloadValue) {
15603
15647
  var prevVal = this.preload;
@@ -15617,8 +15661,8 @@ var init_wistia_player = __esm({
15617
15661
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
15618
15662
  },
15619
15663
  set: function set(shouldDisplay) {
15620
- var _classPrivateFieldGet69;
15621
- (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.qualityControlEnabled(shouldDisplay);
15664
+ var _classPrivateFieldGet72;
15665
+ (_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.qualityControlEnabled(shouldDisplay);
15622
15666
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
15623
15667
  }
15624
15668
  /**
@@ -15631,8 +15675,8 @@ var init_wistia_player = __esm({
15631
15675
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
15632
15676
  },
15633
15677
  set: function set(quality) {
15634
- var _classPrivateFieldGet70;
15635
- (_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.qualityMax(quality);
15678
+ var _classPrivateFieldGet73;
15679
+ (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.qualityMax(quality);
15636
15680
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
15637
15681
  }
15638
15682
  /**
@@ -15645,8 +15689,8 @@ var init_wistia_player = __esm({
15645
15689
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
15646
15690
  },
15647
15691
  set: function set(quality) {
15648
- var _classPrivateFieldGet71;
15649
- (_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.qualityMin(quality);
15692
+ var _classPrivateFieldGet74;
15693
+ (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.qualityMin(quality);
15650
15694
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
15651
15695
  }
15652
15696
  /**
@@ -15656,8 +15700,8 @@ var init_wistia_player = __esm({
15656
15700
  }, {
15657
15701
  key: "readyState",
15658
15702
  get: function get() {
15659
- var _classPrivateFieldGet72, _classPrivateFieldGet73;
15660
- return (_classPrivateFieldGet72 = (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.getReadyState()) !== null && _classPrivateFieldGet72 !== void 0 ? _classPrivateFieldGet72 : 0;
15703
+ var _classPrivateFieldGet75, _classPrivateFieldGet76;
15704
+ return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.getReadyState()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
15661
15705
  }
15662
15706
  /**
15663
15707
  * Returns the current resumable status of the video.
@@ -15670,8 +15714,8 @@ var init_wistia_player = __esm({
15670
15714
  return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable")) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : "auto";
15671
15715
  },
15672
15716
  set: function set(resumableState) {
15673
- var _classPrivateFieldGet74;
15674
- (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.setResumable(resumableState);
15717
+ var _classPrivateFieldGet77;
15718
+ (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
15675
15719
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
15676
15720
  }
15677
15721
  /**
@@ -15684,8 +15728,8 @@ var init_wistia_player = __esm({
15684
15728
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
15685
15729
  },
15686
15730
  set: function set(radius) {
15687
- var _classPrivateFieldGet75;
15688
- (_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.setRoundedPlayer(Number(radius));
15731
+ var _classPrivateFieldGet78;
15732
+ (_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
15689
15733
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
15690
15734
  }
15691
15735
  /**
@@ -15696,8 +15740,8 @@ var init_wistia_player = __esm({
15696
15740
  }, {
15697
15741
  key: "secondsWatched",
15698
15742
  get: function get() {
15699
- var _classPrivateFieldGet76, _classPrivateFieldGet77;
15700
- return (_classPrivateFieldGet76 = (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.secondsWatched()) !== null && _classPrivateFieldGet76 !== void 0 ? _classPrivateFieldGet76 : 0;
15743
+ var _classPrivateFieldGet79, _classPrivateFieldGet80;
15744
+ return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
15701
15745
  }
15702
15746
  /**
15703
15747
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -15706,8 +15750,8 @@ var init_wistia_player = __esm({
15706
15750
  }, {
15707
15751
  key: "secondsWatchedVector",
15708
15752
  get: function get() {
15709
- var _classPrivateFieldGet78, _classPrivateFieldGet79;
15710
- return (_classPrivateFieldGet78 = (_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.secondsWatchedVector()) !== null && _classPrivateFieldGet78 !== void 0 ? _classPrivateFieldGet78 : [];
15753
+ var _classPrivateFieldGet81, _classPrivateFieldGet82;
15754
+ return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
15711
15755
  }
15712
15756
  /**
15713
15757
  * Returns whether JSON+LD seo data will be injected.
@@ -15731,8 +15775,8 @@ var init_wistia_player = __esm({
15731
15775
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
15732
15776
  },
15733
15777
  set: function set(shouldDisplay) {
15734
- var _classPrivateFieldGet80;
15735
- (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.settingsControlEnabled(shouldDisplay);
15778
+ var _classPrivateFieldGet83;
15779
+ (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
15736
15780
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
15737
15781
  }
15738
15782
  /**
@@ -15754,10 +15798,10 @@ var init_wistia_player = __esm({
15754
15798
  }, {
15755
15799
  key: "sourceLanguage",
15756
15800
  get: function get() {
15757
- var _classPrivateFieldGet81, _classPrivateFieldGet82, _classPrivateFieldGet83;
15758
- return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.find(function(loc) {
15801
+ var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
15802
+ return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function(loc) {
15759
15803
  return loc.isOriginal;
15760
- })) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : (_classPrivateFieldGet83 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83[0];
15804
+ })) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
15761
15805
  }
15762
15806
  /**
15763
15807
  * Returns the source media id for the player. If a player has different localized versions,
@@ -15777,8 +15821,8 @@ var init_wistia_player = __esm({
15777
15821
  }, {
15778
15822
  key: "state",
15779
15823
  get: function get() {
15780
- var _classPrivateFieldGet84, _classPrivateFieldGet85;
15781
- return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.state()) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : defaultEmbedOptions.state;
15824
+ var _classPrivateFieldGet87, _classPrivateFieldGet88;
15825
+ return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
15782
15826
  }
15783
15827
  /**
15784
15828
  * Returns the stats url for the player.
@@ -15860,12 +15904,12 @@ var init_wistia_player = __esm({
15860
15904
  }, {
15861
15905
  key: "videoQuality",
15862
15906
  get: function get() {
15863
- var _ref10, _classPrivateFieldGet86, _classPrivateFieldGet87;
15864
- return (_ref10 = (_classPrivateFieldGet86 = (_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87.getVideoQuality()) !== null && _classPrivateFieldGet86 !== void 0 ? _classPrivateFieldGet86 : this.embedOptions.videoQuality) !== null && _ref10 !== void 0 ? _ref10 : "auto";
15907
+ var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
15908
+ return (_ref11 = (_classPrivateFieldGet89 = (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.getVideoQuality()) !== null && _classPrivateFieldGet89 !== void 0 ? _classPrivateFieldGet89 : this.embedOptions.videoQuality) !== null && _ref11 !== void 0 ? _ref11 : "auto";
15865
15909
  },
15866
15910
  set: function set(quality) {
15867
- var _classPrivateFieldGet88;
15868
- (_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.setVideoQuality(quality);
15911
+ var _classPrivateFieldGet91;
15912
+ (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
15869
15913
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
15870
15914
  }
15871
15915
  /**
@@ -15888,8 +15932,8 @@ var init_wistia_player = __esm({
15888
15932
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
15889
15933
  },
15890
15934
  set: function set(level) {
15891
- var _classPrivateFieldGet89;
15892
- (_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.volume(level);
15935
+ var _classPrivateFieldGet92;
15936
+ (_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
15893
15937
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
15894
15938
  }
15895
15939
  /**
@@ -15904,8 +15948,8 @@ var init_wistia_player = __esm({
15904
15948
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
15905
15949
  },
15906
15950
  set: function set(shouldDisplay) {
15907
- var _classPrivateFieldGet90;
15908
- (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.volumeControlEnabled(shouldDisplay);
15951
+ var _classPrivateFieldGet93;
15952
+ (_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
15909
15953
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
15910
15954
  }
15911
15955
  /**
@@ -15951,11 +15995,11 @@ var init_wistia_player = __esm({
15951
15995
  key: "cancelFullscreen",
15952
15996
  value: (function() {
15953
15997
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
15954
- var _classPrivateFieldGet91, _this3 = this;
15998
+ var _classPrivateFieldGet94, _this3 = this;
15955
15999
  return _regenerator().w(function(_context) {
15956
16000
  while (1) switch (_context.n) {
15957
16001
  case 0:
15958
- return _context.a(2, (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.cancelFullscreen().then(function() {
16002
+ return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function() {
15959
16003
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
15960
16004
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
15961
16005
  }));
@@ -15971,11 +16015,11 @@ var init_wistia_player = __esm({
15971
16015
  key: "createOverlay",
15972
16016
  value: (function() {
15973
16017
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
15974
- var _classPrivateFieldGet92;
16018
+ var _classPrivateFieldGet95;
15975
16019
  return _regenerator().w(function(_context2) {
15976
16020
  while (1) switch (_context2.n) {
15977
16021
  case 0:
15978
- if (!((_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet92 !== void 0 && _classPrivateFieldGet92.defineOverlay)) {
16022
+ if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
15979
16023
  _context2.n = 1;
15980
16024
  break;
15981
16025
  }
@@ -16000,17 +16044,17 @@ var init_wistia_player = __esm({
16000
16044
  while (1) switch (_context5.n) {
16001
16045
  case 0:
16002
16046
  addPlugin = /* @__PURE__ */ (function() {
16003
- var _ref11 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
16004
- var _classPrivateFieldGet93, _classPrivateFieldGet94;
16047
+ var _ref12 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
16048
+ var _classPrivateFieldGet96, _classPrivateFieldGet97;
16005
16049
  return _regenerator().w(function(_context3) {
16006
16050
  while (1) switch (_context3.n) {
16007
16051
  case 0:
16008
- return _context3.a(2, (_classPrivateFieldGet93 = (_classPrivateFieldGet94 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.addPlugin(name, options)) !== null && _classPrivateFieldGet93 !== void 0 ? _classPrivateFieldGet93 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
16052
+ return _context3.a(2, (_classPrivateFieldGet96 = (_classPrivateFieldGet97 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.addPlugin(name, options)) !== null && _classPrivateFieldGet96 !== void 0 ? _classPrivateFieldGet96 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
16009
16053
  }
16010
16054
  }, _callee3);
16011
16055
  }));
16012
16056
  return function addPlugin2() {
16013
- return _ref11.apply(this, arguments);
16057
+ return _ref12.apply(this, arguments);
16014
16058
  };
16015
16059
  })();
16016
16060
  if (!_classPrivateFieldGet(_api, this)) {
@@ -16050,11 +16094,11 @@ var init_wistia_player = __esm({
16050
16094
  key: "deleteOverlay",
16051
16095
  value: (function() {
16052
16096
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
16053
- var _classPrivateFieldGet95;
16097
+ var _classPrivateFieldGet98;
16054
16098
  return _regenerator().w(function(_context6) {
16055
16099
  while (1) switch (_context6.n) {
16056
16100
  case 0:
16057
- if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.undefineOverlay)) {
16101
+ if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
16058
16102
  _context6.n = 1;
16059
16103
  break;
16060
16104
  }
@@ -16073,11 +16117,11 @@ var init_wistia_player = __esm({
16073
16117
  key: "disableControl",
16074
16118
  value: (function() {
16075
16119
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
16076
- var _classPrivateFieldGet96;
16120
+ var _classPrivateFieldGet99;
16077
16121
  return _regenerator().w(function(_context7) {
16078
16122
  while (1) switch (_context7.n) {
16079
16123
  case 0:
16080
- if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.setControlEnabled)) {
16124
+ if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
16081
16125
  _context7.n = 1;
16082
16126
  break;
16083
16127
  }
@@ -16096,11 +16140,11 @@ var init_wistia_player = __esm({
16096
16140
  key: "enableControl",
16097
16141
  value: (function() {
16098
16142
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
16099
- var _classPrivateFieldGet97;
16143
+ var _classPrivateFieldGet100;
16100
16144
  return _regenerator().w(function(_context8) {
16101
16145
  while (1) switch (_context8.n) {
16102
16146
  case 0:
16103
- if (!((_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet97 !== void 0 && _classPrivateFieldGet97.setControlEnabled)) {
16147
+ if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
16104
16148
  _context8.n = 1;
16105
16149
  break;
16106
16150
  }
@@ -16119,16 +16163,16 @@ var init_wistia_player = __esm({
16119
16163
  key: "enterInputContext",
16120
16164
  value: (function() {
16121
16165
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
16122
- var _classPrivateFieldGet98, _this5 = this;
16166
+ var _classPrivateFieldGet101, _this5 = this;
16123
16167
  return _regenerator().w(function(_context9) {
16124
16168
  while (1) switch (_context9.n) {
16125
16169
  case 0:
16126
- if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.enterInputContext)) {
16170
+ if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
16127
16171
  _context9.n = 1;
16128
16172
  break;
16129
16173
  }
16130
16174
  return _context9.a(2, new Promise(function(resolve) {
16131
- var _classPrivateFieldGet99;
16175
+ var _classPrivateFieldGet102;
16132
16176
  var _handler = function handler(event) {
16133
16177
  var detail = event.detail;
16134
16178
  if (detail.context === context) {
@@ -16137,7 +16181,7 @@ var init_wistia_player = __esm({
16137
16181
  _this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
16138
16182
  };
16139
16183
  _this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
16140
- (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.enterInputContext(context);
16184
+ (_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
16141
16185
  }));
16142
16186
  case 1:
16143
16187
  return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -16153,11 +16197,11 @@ var init_wistia_player = __esm({
16153
16197
  key: "exitInputContext",
16154
16198
  value: (function() {
16155
16199
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
16156
- var _classPrivateFieldGet100;
16200
+ var _classPrivateFieldGet103;
16157
16201
  return _regenerator().w(function(_context0) {
16158
16202
  while (1) switch (_context0.n) {
16159
16203
  case 0:
16160
- if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.exitInputContext)) {
16204
+ if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
16161
16205
  _context0.n = 1;
16162
16206
  break;
16163
16207
  }
@@ -16204,8 +16248,8 @@ var init_wistia_player = __esm({
16204
16248
  while (1) switch (_context10.n) {
16205
16249
  case 0:
16206
16250
  return _context10.a(2, new Promise(function(resolve, reject) {
16207
- var _classPrivateFieldGet101;
16208
- if ((_classPrivateFieldGet101 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
16251
+ var _classPrivateFieldGet104;
16252
+ if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
16209
16253
  resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
16210
16254
  }
16211
16255
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -16222,7 +16266,7 @@ var init_wistia_player = __esm({
16222
16266
  key: "getRemapTime",
16223
16267
  value: (function() {
16224
16268
  var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
16225
- var _classPrivateFieldGet102, _this7 = this;
16269
+ var _classPrivateFieldGet105, _this7 = this;
16226
16270
  var _t, _t2, _t3;
16227
16271
  return _regenerator().w(function(_context11) {
16228
16272
  while (1) switch (_context11.n) {
@@ -16242,11 +16286,11 @@ var init_wistia_player = __esm({
16242
16286
  });
16243
16287
  return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
16244
16288
  case 2:
16245
- if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet102 !== void 0)) {
16289
+ if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
16246
16290
  _context11.n = 3;
16247
16291
  break;
16248
16292
  }
16249
- _classPrivateFieldGet102;
16293
+ _classPrivateFieldGet105;
16250
16294
  _context11.n = 5;
16251
16295
  break;
16252
16296
  case 3:
@@ -16254,8 +16298,8 @@ var init_wistia_player = __esm({
16254
16298
  _t2 = _cachedRemapTime;
16255
16299
  _t3 = this;
16256
16300
  _context11.n = 4;
16257
- return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref13) {
16258
- var remapTime = _ref13.remapTime;
16301
+ return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref14) {
16302
+ var remapTime = _ref14.remapTime;
16259
16303
  return function(fromLanguage, toLanguage, fromTime) {
16260
16304
  var fromTimeInMilliseconds = fromTime * 1e3;
16261
16305
  var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
@@ -16283,11 +16327,11 @@ var init_wistia_player = __esm({
16283
16327
  key: "hideOverlay",
16284
16328
  value: (function() {
16285
16329
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
16286
- var _classPrivateFieldGet103;
16330
+ var _classPrivateFieldGet106;
16287
16331
  return _regenerator().w(function(_context12) {
16288
16332
  while (1) switch (_context12.n) {
16289
16333
  case 0:
16290
- if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.cancelOverlay)) {
16334
+ if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
16291
16335
  _context12.n = 1;
16292
16336
  break;
16293
16337
  }
@@ -16311,8 +16355,8 @@ var init_wistia_player = __esm({
16311
16355
  while (1) switch (_context13.n) {
16312
16356
  case 0:
16313
16357
  return _context13.a(2, new Promise(function(resolve, reject) {
16314
- var _classPrivateFieldGet104;
16315
- if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.popover) {
16358
+ var _classPrivateFieldGet107;
16359
+ if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
16316
16360
  _classPrivateFieldGet(_api, _this8).popover.hide();
16317
16361
  resolve();
16318
16362
  }
@@ -16329,14 +16373,14 @@ var init_wistia_player = __esm({
16329
16373
  }, {
16330
16374
  key: "languagesToLocalizations",
16331
16375
  value: function languagesToLocalizations(languages) {
16332
- var _classPrivateFieldGet105, _classPrivateFieldGet106;
16333
- return (_classPrivateFieldGet105 = (_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet105 !== void 0 ? _classPrivateFieldGet105 : [];
16376
+ var _classPrivateFieldGet108, _classPrivateFieldGet109;
16377
+ return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
16334
16378
  }
16335
16379
  }, {
16336
16380
  key: "languageToLocalization",
16337
16381
  value: function languageToLocalization(language) {
16338
- var _classPrivateFieldGet107, _classPrivateFieldGet108;
16339
- return (_classPrivateFieldGet107 = (_classPrivateFieldGet108 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : _classPrivateFieldGet108.languageToLocalization(language)) !== null && _classPrivateFieldGet107 !== void 0 ? _classPrivateFieldGet107 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
16382
+ var _classPrivateFieldGet110, _classPrivateFieldGet111;
16383
+ return (_classPrivateFieldGet110 = (_classPrivateFieldGet111 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.languageToLocalization(language)) !== null && _classPrivateFieldGet110 !== void 0 ? _classPrivateFieldGet110 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
16340
16384
  }
16341
16385
  /**
16342
16386
  * Pauses the video.
@@ -16348,11 +16392,11 @@ var init_wistia_player = __esm({
16348
16392
  key: "pause",
16349
16393
  value: (function() {
16350
16394
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
16351
- var _classPrivateFieldGet109;
16395
+ var _classPrivateFieldGet112;
16352
16396
  return _regenerator().w(function(_context14) {
16353
16397
  while (1) switch (_context14.n) {
16354
16398
  case 0:
16355
- return _context14.a(2, (_classPrivateFieldGet109 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.pause());
16399
+ return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
16356
16400
  }
16357
16401
  }, _callee14, this);
16358
16402
  }));
@@ -16365,11 +16409,11 @@ var init_wistia_player = __esm({
16365
16409
  key: "play",
16366
16410
  value: (function() {
16367
16411
  var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
16368
- var _classPrivateFieldGet110;
16412
+ var _classPrivateFieldGet113;
16369
16413
  return _regenerator().w(function(_context15) {
16370
16414
  while (1) switch (_context15.n) {
16371
16415
  case 0:
16372
- return _context15.a(2, (_classPrivateFieldGet110 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.play());
16416
+ return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
16373
16417
  }
16374
16418
  }, _callee15, this);
16375
16419
  }));
@@ -16382,11 +16426,11 @@ var init_wistia_player = __esm({
16382
16426
  key: "releaseControls",
16383
16427
  value: (function() {
16384
16428
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
16385
- var _classPrivateFieldGet111;
16429
+ var _classPrivateFieldGet114;
16386
16430
  return _regenerator().w(function(_context16) {
16387
16431
  while (1) switch (_context16.n) {
16388
16432
  case 0:
16389
- return _context16.a(2, (_classPrivateFieldGet111 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.releaseControls(name));
16433
+ return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
16390
16434
  }
16391
16435
  }, _callee16, this);
16392
16436
  }));
@@ -16399,10 +16443,10 @@ var init_wistia_player = __esm({
16399
16443
  key: "removeAllEventListeners",
16400
16444
  value: function removeAllEventListeners() {
16401
16445
  var _this9 = this;
16402
- Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref14) {
16403
- var _ref15 = _slicedToArray(_ref14, 2), type = _ref15[0], listeners = _ref15[1];
16404
- listeners.forEach(function(_ref16) {
16405
- var listener = _ref16.listener, options = _ref16.options;
16446
+ Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref15) {
16447
+ var _ref16 = _slicedToArray(_ref15, 2), type = _ref16[0], listeners = _ref16[1];
16448
+ listeners.forEach(function(_ref17) {
16449
+ var listener = _ref17.listener, options = _ref17.options;
16406
16450
  _this9.removeEventListener(type, listener, options);
16407
16451
  });
16408
16452
  });
@@ -16447,7 +16491,7 @@ var init_wistia_player = __esm({
16447
16491
  case 0:
16448
16492
  options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
16449
16493
  return _context17.a(2, new Promise(function(resolve, reject) {
16450
- var _classPrivateFieldGet112;
16494
+ var _classPrivateFieldGet115;
16451
16495
  if (!_classPrivateFieldGet(_api, _this0)) {
16452
16496
  reject(new Error("api not ready to replace"));
16453
16497
  }
@@ -16457,7 +16501,7 @@ var init_wistia_player = __esm({
16457
16501
  resolve();
16458
16502
  };
16459
16503
  _this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
16460
- (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.replaceWith(mediaId, options);
16504
+ (_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
16461
16505
  }));
16462
16506
  }
16463
16507
  }, _callee17);
@@ -16471,11 +16515,11 @@ var init_wistia_player = __esm({
16471
16515
  key: "requestControls",
16472
16516
  value: (function() {
16473
16517
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
16474
- var _classPrivateFieldGet113;
16518
+ var _classPrivateFieldGet116;
16475
16519
  return _regenerator().w(function(_context18) {
16476
16520
  while (1) switch (_context18.n) {
16477
16521
  case 0:
16478
- return _context18.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.requestControls(name));
16522
+ return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
16479
16523
  }
16480
16524
  }, _callee18, this);
16481
16525
  }));
@@ -16488,11 +16532,11 @@ var init_wistia_player = __esm({
16488
16532
  key: "requestFullscreen",
16489
16533
  value: (function() {
16490
16534
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
16491
- var _classPrivateFieldGet114;
16535
+ var _classPrivateFieldGet117;
16492
16536
  return _regenerator().w(function(_context19) {
16493
16537
  while (1) switch (_context19.n) {
16494
16538
  case 0:
16495
- if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet114 !== void 0 && _classPrivateFieldGet114.requestFullscreen)) {
16539
+ if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
16496
16540
  _context19.n = 1;
16497
16541
  break;
16498
16542
  }
@@ -16511,11 +16555,11 @@ var init_wistia_player = __esm({
16511
16555
  key: "showOverlay",
16512
16556
  value: (function() {
16513
16557
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
16514
- var _classPrivateFieldGet115;
16558
+ var _classPrivateFieldGet118;
16515
16559
  return _regenerator().w(function(_context20) {
16516
16560
  while (1) switch (_context20.n) {
16517
16561
  case 0:
16518
- if (!((_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.requestOverlay)) {
16562
+ if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
16519
16563
  _context20.n = 1;
16520
16564
  break;
16521
16565
  }
@@ -16539,8 +16583,8 @@ var init_wistia_player = __esm({
16539
16583
  while (1) switch (_context21.n) {
16540
16584
  case 0:
16541
16585
  return _context21.a(2, new Promise(function(resolve, reject) {
16542
- var _classPrivateFieldGet116;
16543
- if ((_classPrivateFieldGet116 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet116 !== void 0 && _classPrivateFieldGet116.popover) {
16586
+ var _classPrivateFieldGet119;
16587
+ if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
16544
16588
  _classPrivateFieldGet(_api, _this1).popover.show();
16545
16589
  resolve();
16546
16590
  }
@@ -16764,7 +16808,7 @@ var init_wistia_player = __esm({
16764
16808
  }, {
16765
16809
  key: "disconnectedCallback",
16766
16810
  value: function disconnectedCallback() {
16767
- var _classPrivateFieldGet117, _classPrivateFieldGet118, _this$shadowRoot;
16811
+ var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
16768
16812
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
16769
16813
  return removeListener();
16770
16814
  });
@@ -16772,10 +16816,10 @@ var init_wistia_player = __esm({
16772
16816
  _classPrivateFieldSet(_eventListeners, this, {});
16773
16817
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
16774
16818
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
16775
- (_classPrivateFieldGet117 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.disconnect();
16819
+ (_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
16776
16820
  _classPrivateFieldSet(_resizeObserver, this, null);
16777
16821
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
16778
- (_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet118 === void 0 ? void 0 : _classPrivateFieldGet118.remove();
16822
+ (_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
16779
16823
  _classPrivateFieldSet(_api, this, null);
16780
16824
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
16781
16825
  _classPrivateFieldSet(_preactRoot, this, null);
@@ -16794,7 +16838,7 @@ var init_wistia_player = __esm({
16794
16838
  })(/* @__PURE__ */ _wrapNativeSuper(HTMLElement));
16795
16839
  _WistiaPlayer = WistiaPlayer;
16796
16840
  getSwatchMetaData2 = /* @__PURE__ */ (function() {
16797
- var _ref17 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
16841
+ var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
16798
16842
  var swatch;
16799
16843
  return _regenerator().w(function(_context25) {
16800
16844
  while (1) switch (_context25.n) {
@@ -16809,11 +16853,11 @@ var init_wistia_player = __esm({
16809
16853
  }, _callee25);
16810
16854
  }));
16811
16855
  return function getSwatchMetaData3(_x18) {
16812
- return _ref17.apply(this, arguments);
16856
+ return _ref18.apply(this, arguments);
16813
16857
  };
16814
16858
  })();
16815
16859
  wistiaSwatchElement = /* @__PURE__ */ (function() {
16816
- var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
16860
+ var _ref19 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
16817
16861
  var swatchUrl2, swatchImg, naturalHeight, naturalWidth, ratio, style;
16818
16862
  return _regenerator().w(function(_context26) {
16819
16863
  while (1) switch (_context26.n) {
@@ -16832,7 +16876,7 @@ var init_wistia_player = __esm({
16832
16876
  }, _callee26);
16833
16877
  }));
16834
16878
  return function wistiaSwatchElement2(_x19, _x20) {
16835
- return _ref18.apply(this, arguments);
16879
+ return _ref19.apply(this, arguments);
16836
16880
  };
16837
16881
  })();
16838
16882
  if (customElements.get("wistia-player") === void 0) {