@wistia/wistia-player-react 0.7.2 → 0.7.5

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) {
@@ -2931,6 +2955,7 @@ var init_wistia_player = __esm({
2931
2955
  var SECONDS_IN_HOUR = 3600;
2932
2956
  var MINUTES_IN_HOUR = 60;
2933
2957
  var SECONDS_IN_MINUTE = 60;
2958
+ var SECONDS_CUTTOFF = 45;
2934
2959
  var padNumber = function padNumber2(num) {
2935
2960
  var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
2936
2961
  var result = "".concat(num);
@@ -3019,6 +3044,16 @@ var init_wistia_player = __esm({
3019
3044
  var secondsToMilliseconds = function secondsToMilliseconds2(seconds) {
3020
3045
  return seconds * 1e3;
3021
3046
  };
3047
+ var formatDuration = function formatDuration2(totalSeconds) {
3048
+ var _secondsConverter4 = secondsConverter(totalSeconds, "hms"), hours = _secondsConverter4.hours, minutes = _secondsConverter4.minutes;
3049
+ if (totalSeconds < SECONDS_CUTTOFF) {
3050
+ return "".concat(Math.round(totalSeconds), " SEC");
3051
+ }
3052
+ if (hours) {
3053
+ return "".concat(hours, " HR ").concat(minutes, " MIN");
3054
+ }
3055
+ return "".concat(Math.round(totalSeconds / SECONDS_IN_MINUTE), " MIN");
3056
+ };
3022
3057
  },
3023
3058
  /***/
3024
3059
  1512(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
@@ -4192,10 +4227,10 @@ var init_wistia_player = __esm({
4192
4227
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.clear();
4193
4228
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTag("pillar", "publish");
4194
4229
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTag("product", product);
4195
- _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTag("url", window.location.href);
4196
4230
  if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.uu)(details)) {
4197
4231
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTags(details);
4198
4232
  }
4233
+ _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTag("url", window.location.href);
4199
4234
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.captureException(error);
4200
4235
  }
4201
4236
  } catch (err) {
@@ -4743,13 +4778,13 @@ var init_wistia_player = __esm({
4743
4778
  var OBJ_PROP = "_namespacedLocalStorage";
4744
4779
  var localStorageWorks = function localStorageWorks2() {
4745
4780
  var ns = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "wistia-test-localstorage";
4746
- if (typeof localStorage === "undefined") {
4747
- return false;
4748
- }
4749
- if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks != null) {
4750
- return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks;
4751
- }
4752
4781
  try {
4782
+ if (typeof localStorage === "undefined") {
4783
+ return false;
4784
+ }
4785
+ if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks != null) {
4786
+ return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks;
4787
+ }
4753
4788
  var currentVal = localStorage.getItem(ns);
4754
4789
  localStorage.removeItem(ns);
4755
4790
  localStorage.setItem(ns, currentVal);
@@ -6588,8 +6623,9 @@ var init_wistia_player = __esm({
6588
6623
  /* harmony export */
6589
6624
  });
6590
6625
  var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(7350);
6591
- var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5417);
6592
- var _obj_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(731);
6626
+ var _color_utils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(998);
6627
+ var _color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5417);
6628
+ var _obj_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(731);
6593
6629
  function _slicedToArray2(r, e) {
6594
6630
  return _arrayWithHoles2(r) || _iterableToArrayLimit2(r, e) || _unsupportedIterableToArray2(r, e) || _nonIterableRest2();
6595
6631
  }
@@ -6636,12 +6672,12 @@ var init_wistia_player = __esm({
6636
6672
  var GRADIENT_COLOR_INDEX = 0;
6637
6673
  var GRADIENT_PERCENTAGE_INDEX = 1;
6638
6674
  var DEFAULT_GRADIENT = {
6639
- colors: [["#2949E5", 0], ["#6A84FF", 1]],
6675
+ colors: [[_color_utils_ts__WEBPACK_IMPORTED_MODULE_1__.cO, 0], ["#6A84FF", 1]],
6640
6676
  on: true
6641
6677
  };
6642
6678
  var hexToRGBA = function hexToRGBA2(hex) {
6643
6679
  var alpha = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : DEFAULT_ALPHA;
6644
- var color = new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1(hex);
6680
+ var color = new _color_js__WEBPACK_IMPORTED_MODULE_2__.Q1(hex);
6645
6681
  var colorWithAlpha = color.alpha(alpha);
6646
6682
  return colorWithAlpha.toRgba();
6647
6683
  };
@@ -6681,6 +6717,17 @@ var init_wistia_player = __esm({
6681
6717
  };
6682
6718
  return result;
6683
6719
  };
6720
+ var getPlayerColorOrFirstGradientStop = function getPlayerColorOrFirstGradientStop2(playerColor, gradient) {
6721
+ var _addHashToHex;
6722
+ if (!isGradient(gradient) || !gradient.on) {
6723
+ return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
6724
+ }
6725
+ var firstGradientColorStop = getGradientColor(gradient);
6726
+ if (isNil(firstGradientColorStop)) {
6727
+ return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
6728
+ }
6729
+ return (_addHashToHex = addHashToHex(firstGradientColorStop)) !== null && _addHashToHex !== void 0 ? _addHashToHex : DEFAULT_PLAYER_COLOR;
6730
+ };
6684
6731
  },
6685
6732
  /***/
6686
6733
  4400(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
@@ -8130,14 +8177,15 @@ var init_wistia_player = __esm({
8130
8177
  }
8131
8178
  }]);
8132
8179
  })();
8133
- var addHashToHex = function addHashToHex2(hex) {
8180
+ var addHashToHex2 = function addHashToHex3(hex) {
8134
8181
  if (isNil(hex)) {
8135
8182
  return;
8136
8183
  }
8137
- if (hex.charAt(0) === "#") {
8138
- return hex;
8184
+ var hexGuaranteedToBeString = String(hex);
8185
+ if (hexGuaranteedToBeString.charAt(0) === "#") {
8186
+ return hexGuaranteedToBeString;
8139
8187
  }
8140
- return "#".concat(hex);
8188
+ return "#".concat(hexGuaranteedToBeString);
8141
8189
  };
8142
8190
  var colorWithAlpha = function colorWithAlpha2(color, alpha) {
8143
8191
  return new Color2(color).alpha(alpha).toRgba();
@@ -8894,12 +8942,21 @@ var init_wistia_player = __esm({
8894
8942
  while (1) switch (_context.n) {
8895
8943
  case 0:
8896
8944
  return _context.a(2, new Promise(function(resolve, reject) {
8897
- var poll = -1;
8945
+ var pollState = {
8946
+ isSettled: false,
8947
+ intervalId: -1,
8948
+ timeoutId: -1
8949
+ };
8950
+ var cleanup = function cleanup2() {
8951
+ pollState.isSettled = true;
8952
+ clearInterval(pollState.intervalId);
8953
+ clearTimeout(pollState.timeoutId);
8954
+ };
8898
8955
  var checkForJsonp = function checkForJsonp2() {
8899
8956
  var jsonp = window["wistiajsonp-/embed/medias/".concat(mediaId, ".jsonp")];
8900
8957
  if (jsonp) {
8901
8958
  if (jsonp.media) {
8902
- clearInterval(poll);
8959
+ cleanup();
8903
8960
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_5__.ry)(mediaId, jsonp.media);
8904
8961
  (0, _utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_8__.j)(mediaId, options).then(resolve).catch(function() {
8905
8962
  reject(new Error("Failed to fetch media data via jsonp"));
@@ -8907,15 +8964,16 @@ var init_wistia_player = __esm({
8907
8964
  return;
8908
8965
  }
8909
8966
  if ((0, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_6__.V)(jsonp)) {
8910
- clearInterval(poll);
8967
+ cleanup();
8911
8968
  resolve(jsonp);
8912
8969
  }
8913
8970
  }
8914
8971
  };
8915
8972
  checkForJsonp();
8916
- poll = window.setInterval(checkForJsonp, INTERVAL_TIME);
8917
- setTimeout(function() {
8918
- clearInterval(poll);
8973
+ if (pollState.isSettled) return;
8974
+ pollState.intervalId = window.setInterval(checkForJsonp, INTERVAL_TIME);
8975
+ pollState.timeoutId = window.setTimeout(function() {
8976
+ cleanup();
8919
8977
  reject(new Error("Timeout loading jsonp media data"));
8920
8978
  }, JS_LOAD_TIMEOUT);
8921
8979
  }));
@@ -9134,8 +9192,8 @@ var init_wistia_player = __esm({
9134
9192
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9135
9193
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9136
9194
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9137
- var TAGGED_VERSION = "0.7.2";
9138
- var CURRENT_SHA = "fc9202c2841d2873e7123b63575474d97de8e697";
9195
+ var TAGGED_VERSION = "0.7.5";
9196
+ var CURRENT_SHA = "7f1f10ca8b9bae893fd757afbd3ce777956c2099";
9139
9197
  var DEFAULT_PROTOCOL = (function() {
9140
9198
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9141
9199
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -10328,7 +10386,7 @@ var init_wistia_player = __esm({
10328
10386
  _t2 = _context2.v;
10329
10387
  reportedError = _t2 instanceof Error ? _t2 : new Error(String(_t2));
10330
10388
  (0, _sentryUtils_ts__WEBPACK_IMPORTED_MODULE_1__.N7)("dynamicImport", reportedError, {
10331
- url
10389
+ importUrl: url
10332
10390
  });
10333
10391
  (0, _simpleMetrics_js__WEBPACK_IMPORTED_MODULE_2__.WO)("dynamic-import/failure-after-retry", 1, {
10334
10392
  attempt: String(MAX_RETRIES),
@@ -10927,14 +10985,21 @@ var init_wistia_player = __esm({
10927
10985
  /* harmony export */
10928
10986
  });
10929
10987
  var MUX_PERCENTAGE_TO_ENABLE = 0.1;
10988
+ var isMuxEnvironmentSupported = function isMuxEnvironmentSupported2() {
10989
+ return typeof console !== "undefined" && // eslint-disable-next-line no-console
10990
+ typeof console.trace === "function" && // eslint-disable-next-line no-console
10991
+ typeof console.info === "function" && // eslint-disable-next-line no-console
10992
+ typeof console.debug === "function";
10993
+ };
10930
10994
  var shouldEnableMux = function shouldEnableMux2(video, didWinCoinFlip) {
10931
10995
  var _video$_opts, _video$_mediaData;
10996
+ var isMuxEnabledInEnvironment = isMuxEnvironmentSupported();
10932
10997
  var isMuxEnabledOnWindow = window.wistiaDisableMux !== true;
10933
10998
  var isMuxEnabledFromOpts = ((_video$_opts = video._opts) === null || _video$_opts === void 0 ? void 0 : _video$_opts.mux) !== false;
10934
10999
  var isMuxEnabledFromStandardEmbed = video.iframe == null;
10935
11000
  var isMuxEnabledFromCoinFlip = didWinCoinFlip;
10936
11001
  var isMuxEnabledFromLiveStream = ((_video$_mediaData = video._mediaData) === null || _video$_mediaData === void 0 ? void 0 : _video$_mediaData.type) === "LiveStream";
10937
- return isMuxEnabledOnWindow && isMuxEnabledFromOpts && isMuxEnabledFromStandardEmbed && (isMuxEnabledFromCoinFlip || isMuxEnabledFromLiveStream);
11002
+ return isMuxEnabledInEnvironment && isMuxEnabledOnWindow && isMuxEnabledFromOpts && isMuxEnabledFromStandardEmbed && (isMuxEnabledFromCoinFlip || isMuxEnabledFromLiveStream);
10938
11003
  };
10939
11004
  },
10940
11005
  /***/
@@ -11313,11 +11378,11 @@ var init_wistia_player = __esm({
11313
11378
  /* harmony export */
11314
11379
  b: () => (
11315
11380
  /* binding */
11316
- isGradient2
11381
+ isGradient3
11317
11382
  )
11318
11383
  /* harmony export */
11319
11384
  });
11320
- var isGradient2 = function isGradient3(value) {
11385
+ var isGradient3 = function isGradient4(value) {
11321
11386
  if (typeof value !== "object" || value === null) {
11322
11387
  return false;
11323
11388
  }
@@ -11902,7 +11967,15 @@ var init_wistia_player = __esm({
11902
11967
  if (elem === document) {
11903
11968
  return true;
11904
11969
  }
11905
- elem = elem.parentNode || elem.getRootNode().host;
11970
+ var parent2 = elem.parentNode;
11971
+ if (parent2 != null) {
11972
+ elem = parent2;
11973
+ } else if (typeof elem.getRootNode === "function") {
11974
+ var _elem$getRootNode;
11975
+ elem = (_elem$getRootNode = elem.getRootNode()) === null || _elem$getRootNode === void 0 ? void 0 : _elem$getRootNode.host;
11976
+ } else {
11977
+ return false;
11978
+ }
11906
11979
  }
11907
11980
  return false;
11908
11981
  };
@@ -12124,6 +12197,11 @@ var init_wistia_player = __esm({
12124
12197
  });
12125
12198
  }
12126
12199
  if (elem.webkitEnterFullscreen) {
12200
+ if (elem.readyState !== void 0 && elem.readyState < HTMLMediaElement.HAVE_METADATA) {
12201
+ var errorMessage = "webkitEnterFullscreen requires at least HAVE_METADATA readyState";
12202
+ wlog.notice(errorMessage);
12203
+ return Promise.reject(new Error(errorMessage));
12204
+ }
12127
12205
  elem.webkitEnterFullscreen();
12128
12206
  return Promise.resolve();
12129
12207
  }
@@ -14886,6 +14964,16 @@ var init_wistia_player = __esm({
14886
14964
  get: function get() {
14887
14965
  return _classPrivateFieldGet(_api, this);
14888
14966
  }
14967
+ /**
14968
+ * Returns the description of the video, as used in the JSON-LD schema
14969
+ * @returns {string}
14970
+ */
14971
+ }, {
14972
+ key: "description",
14973
+ get: function get() {
14974
+ var _ref5, _classPrivateFieldGet24, _classPrivateFieldGet25, _classPrivateFieldGet26;
14975
+ 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 : "";
14976
+ }
14889
14977
  /**
14890
14978
  * Returns the status of the do not track embed option that controls whether the player
14891
14979
  * sends tracking pings.
@@ -14906,8 +14994,8 @@ var init_wistia_player = __esm({
14906
14994
  }, {
14907
14995
  key: "duration",
14908
14996
  get: function get() {
14909
- var _classPrivateFieldGet24, _classPrivateFieldGet25;
14910
- return (_classPrivateFieldGet24 = (_classPrivateFieldGet25 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : _classPrivateFieldGet25.duration()) !== null && _classPrivateFieldGet24 !== void 0 ? _classPrivateFieldGet24 : 0;
14997
+ var _classPrivateFieldGet27, _classPrivateFieldGet28;
14998
+ return (_classPrivateFieldGet27 = (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.duration()) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : 0;
14911
14999
  }
14912
15000
  /**
14913
15001
  * Returns the email associated with this viewing session.
@@ -14920,8 +15008,8 @@ var init_wistia_player = __esm({
14920
15008
  }, {
14921
15009
  key: "email",
14922
15010
  get: function get() {
14923
- var _ref5, _ref6, _extractEmailFromPara, _classPrivateGetter2;
14924
- 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;
15011
+ var _ref6, _ref7, _extractEmailFromPara, _classPrivateGetter2;
15012
+ 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;
14925
15013
  },
14926
15014
  set: function set(newEmail) {
14927
15015
  if (this.email === newEmail) {
@@ -14961,8 +15049,8 @@ var init_wistia_player = __esm({
14961
15049
  }, {
14962
15050
  key: "ended",
14963
15051
  get: function get() {
14964
- var _classPrivateFieldGet26;
14965
- return ((_classPrivateFieldGet26 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.state()) === "ended";
15052
+ var _classPrivateFieldGet29;
15053
+ return ((_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === "ended";
14966
15054
  }
14967
15055
  /**
14968
15056
  * Returns the current end video behavior value
@@ -14975,11 +15063,11 @@ var init_wistia_player = __esm({
14975
15063
  },
14976
15064
  set: function set(behavior) {
14977
15065
  if (behavior === "loop") {
14978
- var _classPrivateFieldGet27;
14979
- (_classPrivateFieldGet27 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet27 === void 0 ? void 0 : _classPrivateFieldGet27.addLoopBehavior();
15066
+ var _classPrivateFieldGet30;
15067
+ (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.addLoopBehavior();
14980
15068
  } else {
14981
- var _classPrivateFieldGet28;
14982
- (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.removeLoopBehavior();
15069
+ var _classPrivateFieldGet31;
15070
+ (_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.removeLoopBehavior();
14983
15071
  }
14984
15072
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "endVideoBehavior", behavior);
14985
15073
  }
@@ -14990,8 +15078,8 @@ var init_wistia_player = __esm({
14990
15078
  }, {
14991
15079
  key: "eventKey",
14992
15080
  get: function get() {
14993
- var _classPrivateFieldGet29;
14994
- return (_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.eventKey();
15081
+ var _classPrivateFieldGet32;
15082
+ return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.eventKey();
14995
15083
  }
14996
15084
  /**
14997
15085
  * Returns how the video should be sized within its container.
@@ -15015,8 +15103,8 @@ var init_wistia_player = __esm({
15015
15103
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "fullscreenControl");
15016
15104
  },
15017
15105
  set: function set(shouldDisplay) {
15018
- var _classPrivateFieldGet30;
15019
- (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.fullscreenControlEnabled(shouldDisplay);
15106
+ var _classPrivateFieldGet33;
15107
+ (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.fullscreenControlEnabled(shouldDisplay);
15020
15108
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "fullscreenControl", shouldDisplay);
15021
15109
  }
15022
15110
  /**
@@ -15039,14 +15127,14 @@ var init_wistia_player = __esm({
15039
15127
  }, {
15040
15128
  key: "inFullscreen",
15041
15129
  get: function get() {
15042
- var _classPrivateFieldGet31, _classPrivateFieldGet32;
15043
- return (_classPrivateFieldGet31 = (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.inFullscreen()) !== null && _classPrivateFieldGet31 !== void 0 ? _classPrivateFieldGet31 : false;
15130
+ var _classPrivateFieldGet34, _classPrivateFieldGet35;
15131
+ return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.inFullscreen()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
15044
15132
  }
15045
15133
  }, {
15046
15134
  key: "inputContext",
15047
15135
  get: function get() {
15048
- var _classPrivateFieldGet33;
15049
- return (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.getInputContext();
15136
+ var _classPrivateFieldGet36;
15137
+ return (_classPrivateFieldGet36 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.getInputContext();
15050
15138
  }
15051
15139
  /**
15052
15140
  * Returns whether instantHLS is enabled for the video.
@@ -15055,26 +15143,26 @@ var init_wistia_player = __esm({
15055
15143
  }, {
15056
15144
  key: "instantHls",
15057
15145
  get: function get() {
15058
- var _classPrivateFieldGet34, _classPrivateFieldGet35;
15059
- return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.isInstantHls()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
15146
+ var _classPrivateFieldGet37, _classPrivateFieldGet38;
15147
+ return (_classPrivateFieldGet37 = (_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.isInstantHls()) !== null && _classPrivateFieldGet37 !== void 0 ? _classPrivateFieldGet37 : false;
15060
15148
  }
15061
15149
  // the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
15062
15150
  // eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
15063
15151
  }, {
15064
15152
  key: "language",
15065
15153
  get: function get() {
15066
- var _classPrivateFieldGet36, _classPrivateFieldGet37;
15067
- 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);
15154
+ var _classPrivateFieldGet39, _classPrivateFieldGet40;
15155
+ 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);
15068
15156
  },
15069
15157
  set: function set(language) {
15070
- var _classPrivateFieldGet38;
15071
- (_classPrivateFieldGet38 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.language(language);
15158
+ var _classPrivateFieldGet41;
15159
+ (_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.language(language);
15072
15160
  }
15073
15161
  }, {
15074
15162
  key: "languages",
15075
15163
  get: function get() {
15076
- var _classPrivateFieldGet39, _classPrivateFieldGet40;
15077
- 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)];
15164
+ var _classPrivateFieldGet42, _classPrivateFieldGet43;
15165
+ 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)];
15078
15166
  }
15079
15167
  /**
15080
15168
  * Returns all the mediaData set on the WistiaPlayer
@@ -15110,8 +15198,8 @@ var init_wistia_player = __esm({
15110
15198
  }, {
15111
15199
  key: "mediaLanguage",
15112
15200
  get: function get() {
15113
- var _classPrivateFieldGet41, _classPrivateFieldGet42;
15114
- 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);
15201
+ var _classPrivateFieldGet44, _classPrivateFieldGet45;
15202
+ 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);
15115
15203
  }
15116
15204
  /**
15117
15205
  * Changes the language of the media stream/content.
@@ -15121,18 +15209,18 @@ var init_wistia_player = __esm({
15121
15209
  }, {
15122
15210
  key: "mediaLanguageCode",
15123
15211
  get: function get() {
15124
- var _classPrivateFieldGet43, _classPrivateFieldGet44;
15125
- 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;
15212
+ var _classPrivateFieldGet46, _classPrivateFieldGet47;
15213
+ 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;
15126
15214
  },
15127
15215
  set: function set(languageCode) {
15128
- var _classPrivateFieldGet45;
15129
- (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.mediaLanguageCode(languageCode);
15216
+ var _classPrivateFieldGet48;
15217
+ (_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.mediaLanguageCode(languageCode);
15130
15218
  }
15131
15219
  }, {
15132
15220
  key: "mediaLanguages",
15133
15221
  get: function get() {
15134
- var _classPrivateFieldGet46, _classPrivateFieldGet47;
15135
- 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)];
15222
+ var _classPrivateFieldGet49, _classPrivateFieldGet50;
15223
+ 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)];
15136
15224
  }
15137
15225
  /**
15138
15226
  * Returns if player is currently muted
@@ -15141,8 +15229,8 @@ var init_wistia_player = __esm({
15141
15229
  }, {
15142
15230
  key: "muted",
15143
15231
  get: function get() {
15144
- var _ref7, _classPrivateFieldGet48, _classPrivateFieldGet49;
15145
- 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;
15232
+ var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52;
15233
+ 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;
15146
15234
  },
15147
15235
  set: function set(shouldMute) {
15148
15236
  if (_classPrivateFieldGet(_impl, this)) {
@@ -15162,8 +15250,8 @@ var init_wistia_player = __esm({
15162
15250
  }, {
15163
15251
  key: "name",
15164
15252
  get: function get() {
15165
- var _ref8, _classPrivateFieldGet50, _classPrivateFieldGet51, _classPrivateFieldGet52;
15166
- 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;
15253
+ var _ref9, _classPrivateFieldGet53, _classPrivateFieldGet54, _classPrivateFieldGet55;
15254
+ 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;
15167
15255
  }
15168
15256
  /**
15169
15257
  * Returns the status of the opaqueControls embed option, which determines
@@ -15177,9 +15265,9 @@ var init_wistia_player = __esm({
15177
15265
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "opaqueControls");
15178
15266
  },
15179
15267
  set: function set(opaqueControls) {
15180
- var _classPrivateFieldGet53;
15268
+ var _classPrivateFieldGet56;
15181
15269
  var valueAsBoolean = Boolean(opaqueControls);
15182
- (_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.opaqueControls(valueAsBoolean);
15270
+ (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.opaqueControls(valueAsBoolean);
15183
15271
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "opaqueControls", valueAsBoolean);
15184
15272
  }
15185
15273
  }, {
@@ -15197,8 +15285,8 @@ var init_wistia_player = __esm({
15197
15285
  }, {
15198
15286
  key: "paused",
15199
15287
  get: function get() {
15200
- var _classPrivateFieldGet54;
15201
- return ((_classPrivateFieldGet54 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : _classPrivateFieldGet54.state()) === "paused";
15288
+ var _classPrivateFieldGet57;
15289
+ return ((_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.state()) === "paused";
15202
15290
  }
15203
15291
  /**
15204
15292
  * Returns the percent of the video that has been watched as a decimal between 0 and 1.
@@ -15207,8 +15295,8 @@ var init_wistia_player = __esm({
15207
15295
  }, {
15208
15296
  key: "percentWatched",
15209
15297
  get: function get() {
15210
- var _classPrivateFieldGet55, _classPrivateFieldGet56;
15211
- return (_classPrivateFieldGet55 = (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.percentWatched()) !== null && _classPrivateFieldGet55 !== void 0 ? _classPrivateFieldGet55 : 0;
15298
+ var _classPrivateFieldGet58, _classPrivateFieldGet59;
15299
+ return (_classPrivateFieldGet58 = (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.percentWatched()) !== null && _classPrivateFieldGet58 !== void 0 ? _classPrivateFieldGet58 : 0;
15212
15300
  }
15213
15301
  /**
15214
15302
  * Returns the playback rate of the video.
@@ -15217,12 +15305,12 @@ var init_wistia_player = __esm({
15217
15305
  }, {
15218
15306
  key: "playbackRate",
15219
15307
  get: function get() {
15220
- var _ref9, _classPrivateFieldGet57, _classPrivateFieldGet58;
15221
- 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;
15308
+ var _ref0, _classPrivateFieldGet60, _classPrivateFieldGet61;
15309
+ 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;
15222
15310
  },
15223
15311
  set: function set(rate) {
15224
- var _classPrivateFieldGet59;
15225
- (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRate(rate);
15312
+ var _classPrivateFieldGet62;
15313
+ (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbackRate(rate);
15226
15314
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
15227
15315
  }
15228
15316
  /**
@@ -15235,8 +15323,8 @@ var init_wistia_player = __esm({
15235
15323
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
15236
15324
  },
15237
15325
  set: function set(shouldDisplay) {
15238
- var _classPrivateFieldGet60;
15239
- (_classPrivateFieldGet60 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbackRateControlEnabled(shouldDisplay);
15326
+ var _classPrivateFieldGet63;
15327
+ (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
15240
15328
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
15241
15329
  }
15242
15330
  /**
@@ -15249,8 +15337,8 @@ var init_wistia_player = __esm({
15249
15337
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
15250
15338
  },
15251
15339
  set: function set(shouldDisplay) {
15252
- var _classPrivateFieldGet61;
15253
- (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbarControlEnabled(shouldDisplay);
15340
+ var _classPrivateFieldGet64;
15341
+ (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playbarControlEnabled(shouldDisplay);
15254
15342
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
15255
15343
  }
15256
15344
  /**
@@ -15263,8 +15351,8 @@ var init_wistia_player = __esm({
15263
15351
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
15264
15352
  },
15265
15353
  set: function set(radius) {
15266
- var _classPrivateFieldGet62;
15267
- (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.setPlayerBorderRadius(Number(radius));
15354
+ var _classPrivateFieldGet65;
15355
+ (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setPlayerBorderRadius(Number(radius));
15268
15356
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", Number(radius));
15269
15357
  }
15270
15358
  /**
@@ -15282,8 +15370,8 @@ var init_wistia_player = __esm({
15282
15370
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
15283
15371
  },
15284
15372
  set: function set(newColor) {
15285
- var _classPrivateFieldGet63;
15286
- (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playerColor(newColor);
15373
+ var _classPrivateFieldGet66;
15374
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
15287
15375
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
15288
15376
  }
15289
15377
  /**
@@ -15300,11 +15388,11 @@ var init_wistia_player = __esm({
15300
15388
  return void 0;
15301
15389
  },
15302
15390
  set: function set(gradient) {
15303
- var _classPrivateFieldGet64;
15391
+ var _classPrivateFieldGet67;
15304
15392
  if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__.b)(gradient)) {
15305
15393
  throw new Error("playerColorGradient must be a valid gradient object");
15306
15394
  }
15307
- (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playerColorGradient(gradient);
15395
+ (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playerColorGradient(gradient);
15308
15396
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
15309
15397
  }
15310
15398
  /**
@@ -15317,8 +15405,8 @@ var init_wistia_player = __esm({
15317
15405
  }, {
15318
15406
  key: "playerForce",
15319
15407
  get: function get() {
15320
- var _ref0;
15321
- return (_ref0 = this.getAttribute("player-force")) !== null && _ref0 !== void 0 ? _ref0 : void 0;
15408
+ var _ref1;
15409
+ return (_ref1 = this.getAttribute("player-force")) !== null && _ref1 !== void 0 ? _ref1 : void 0;
15322
15410
  },
15323
15411
  set: function set(newPlayer) {
15324
15412
  _classPrivateFieldGet(_logger, this).info("set playerForce", newPlayer);
@@ -15362,8 +15450,8 @@ var init_wistia_player = __esm({
15362
15450
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
15363
15451
  },
15364
15452
  set: function set(shouldDisplay) {
15365
- var _classPrivateFieldGet65;
15366
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playPauseControlEnabled(shouldDisplay);
15453
+ var _classPrivateFieldGet68;
15454
+ (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
15367
15455
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
15368
15456
  }
15369
15457
  /**
@@ -15378,8 +15466,8 @@ var init_wistia_player = __esm({
15378
15466
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
15379
15467
  },
15380
15468
  set: function set(shouldDisplay) {
15381
- var _classPrivateFieldGet66;
15382
- (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playPauseNotifierEnabled(shouldDisplay);
15469
+ var _classPrivateFieldGet69;
15470
+ (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playPauseNotifierEnabled(shouldDisplay);
15383
15471
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
15384
15472
  }
15385
15473
  /**
@@ -15599,8 +15687,8 @@ var init_wistia_player = __esm({
15599
15687
  }, {
15600
15688
  key: "preload",
15601
15689
  get: function get() {
15602
- var _ref1, _classPrivateFieldGet67, _classPrivateFieldGet68;
15603
- 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";
15690
+ var _ref10, _classPrivateFieldGet70, _classPrivateFieldGet71;
15691
+ 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";
15604
15692
  },
15605
15693
  set: function set(preloadValue) {
15606
15694
  var prevVal = this.preload;
@@ -15620,8 +15708,8 @@ var init_wistia_player = __esm({
15620
15708
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
15621
15709
  },
15622
15710
  set: function set(shouldDisplay) {
15623
- var _classPrivateFieldGet69;
15624
- (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.qualityControlEnabled(shouldDisplay);
15711
+ var _classPrivateFieldGet72;
15712
+ (_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.qualityControlEnabled(shouldDisplay);
15625
15713
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
15626
15714
  }
15627
15715
  /**
@@ -15634,8 +15722,8 @@ var init_wistia_player = __esm({
15634
15722
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
15635
15723
  },
15636
15724
  set: function set(quality) {
15637
- var _classPrivateFieldGet70;
15638
- (_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.qualityMax(quality);
15725
+ var _classPrivateFieldGet73;
15726
+ (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.qualityMax(quality);
15639
15727
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
15640
15728
  }
15641
15729
  /**
@@ -15648,8 +15736,8 @@ var init_wistia_player = __esm({
15648
15736
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
15649
15737
  },
15650
15738
  set: function set(quality) {
15651
- var _classPrivateFieldGet71;
15652
- (_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.qualityMin(quality);
15739
+ var _classPrivateFieldGet74;
15740
+ (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.qualityMin(quality);
15653
15741
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
15654
15742
  }
15655
15743
  /**
@@ -15659,8 +15747,8 @@ var init_wistia_player = __esm({
15659
15747
  }, {
15660
15748
  key: "readyState",
15661
15749
  get: function get() {
15662
- var _classPrivateFieldGet72, _classPrivateFieldGet73;
15663
- return (_classPrivateFieldGet72 = (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.getReadyState()) !== null && _classPrivateFieldGet72 !== void 0 ? _classPrivateFieldGet72 : 0;
15750
+ var _classPrivateFieldGet75, _classPrivateFieldGet76;
15751
+ return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.getReadyState()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
15664
15752
  }
15665
15753
  /**
15666
15754
  * Returns the current resumable status of the video.
@@ -15673,8 +15761,8 @@ var init_wistia_player = __esm({
15673
15761
  return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable")) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : "auto";
15674
15762
  },
15675
15763
  set: function set(resumableState) {
15676
- var _classPrivateFieldGet74;
15677
- (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.setResumable(resumableState);
15764
+ var _classPrivateFieldGet77;
15765
+ (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
15678
15766
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
15679
15767
  }
15680
15768
  /**
@@ -15687,8 +15775,8 @@ var init_wistia_player = __esm({
15687
15775
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
15688
15776
  },
15689
15777
  set: function set(radius) {
15690
- var _classPrivateFieldGet75;
15691
- (_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.setRoundedPlayer(Number(radius));
15778
+ var _classPrivateFieldGet78;
15779
+ (_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
15692
15780
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
15693
15781
  }
15694
15782
  /**
@@ -15699,8 +15787,8 @@ var init_wistia_player = __esm({
15699
15787
  }, {
15700
15788
  key: "secondsWatched",
15701
15789
  get: function get() {
15702
- var _classPrivateFieldGet76, _classPrivateFieldGet77;
15703
- return (_classPrivateFieldGet76 = (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.secondsWatched()) !== null && _classPrivateFieldGet76 !== void 0 ? _classPrivateFieldGet76 : 0;
15790
+ var _classPrivateFieldGet79, _classPrivateFieldGet80;
15791
+ return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
15704
15792
  }
15705
15793
  /**
15706
15794
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -15709,8 +15797,8 @@ var init_wistia_player = __esm({
15709
15797
  }, {
15710
15798
  key: "secondsWatchedVector",
15711
15799
  get: function get() {
15712
- var _classPrivateFieldGet78, _classPrivateFieldGet79;
15713
- return (_classPrivateFieldGet78 = (_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.secondsWatchedVector()) !== null && _classPrivateFieldGet78 !== void 0 ? _classPrivateFieldGet78 : [];
15800
+ var _classPrivateFieldGet81, _classPrivateFieldGet82;
15801
+ return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
15714
15802
  }
15715
15803
  /**
15716
15804
  * Returns whether JSON+LD seo data will be injected.
@@ -15734,8 +15822,8 @@ var init_wistia_player = __esm({
15734
15822
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
15735
15823
  },
15736
15824
  set: function set(shouldDisplay) {
15737
- var _classPrivateFieldGet80;
15738
- (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.settingsControlEnabled(shouldDisplay);
15825
+ var _classPrivateFieldGet83;
15826
+ (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
15739
15827
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
15740
15828
  }
15741
15829
  /**
@@ -15757,10 +15845,10 @@ var init_wistia_player = __esm({
15757
15845
  }, {
15758
15846
  key: "sourceLanguage",
15759
15847
  get: function get() {
15760
- var _classPrivateFieldGet81, _classPrivateFieldGet82, _classPrivateFieldGet83;
15761
- return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.find(function(loc) {
15848
+ var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
15849
+ return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function(loc) {
15762
15850
  return loc.isOriginal;
15763
- })) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : (_classPrivateFieldGet83 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83[0];
15851
+ })) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
15764
15852
  }
15765
15853
  /**
15766
15854
  * Returns the source media id for the player. If a player has different localized versions,
@@ -15780,8 +15868,8 @@ var init_wistia_player = __esm({
15780
15868
  }, {
15781
15869
  key: "state",
15782
15870
  get: function get() {
15783
- var _classPrivateFieldGet84, _classPrivateFieldGet85;
15784
- return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.state()) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : defaultEmbedOptions.state;
15871
+ var _classPrivateFieldGet87, _classPrivateFieldGet88;
15872
+ return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
15785
15873
  }
15786
15874
  /**
15787
15875
  * Returns the stats url for the player.
@@ -15863,12 +15951,12 @@ var init_wistia_player = __esm({
15863
15951
  }, {
15864
15952
  key: "videoQuality",
15865
15953
  get: function get() {
15866
- var _ref10, _classPrivateFieldGet86, _classPrivateFieldGet87;
15867
- 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";
15954
+ var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
15955
+ 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";
15868
15956
  },
15869
15957
  set: function set(quality) {
15870
- var _classPrivateFieldGet88;
15871
- (_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.setVideoQuality(quality);
15958
+ var _classPrivateFieldGet91;
15959
+ (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
15872
15960
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
15873
15961
  }
15874
15962
  /**
@@ -15891,8 +15979,8 @@ var init_wistia_player = __esm({
15891
15979
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
15892
15980
  },
15893
15981
  set: function set(level) {
15894
- var _classPrivateFieldGet89;
15895
- (_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.volume(level);
15982
+ var _classPrivateFieldGet92;
15983
+ (_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
15896
15984
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
15897
15985
  }
15898
15986
  /**
@@ -15907,8 +15995,8 @@ var init_wistia_player = __esm({
15907
15995
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
15908
15996
  },
15909
15997
  set: function set(shouldDisplay) {
15910
- var _classPrivateFieldGet90;
15911
- (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.volumeControlEnabled(shouldDisplay);
15998
+ var _classPrivateFieldGet93;
15999
+ (_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
15912
16000
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
15913
16001
  }
15914
16002
  /**
@@ -15954,11 +16042,11 @@ var init_wistia_player = __esm({
15954
16042
  key: "cancelFullscreen",
15955
16043
  value: (function() {
15956
16044
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
15957
- var _classPrivateFieldGet91, _this3 = this;
16045
+ var _classPrivateFieldGet94, _this3 = this;
15958
16046
  return _regenerator().w(function(_context) {
15959
16047
  while (1) switch (_context.n) {
15960
16048
  case 0:
15961
- return _context.a(2, (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.cancelFullscreen().then(function() {
16049
+ return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function() {
15962
16050
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
15963
16051
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
15964
16052
  }));
@@ -15974,11 +16062,11 @@ var init_wistia_player = __esm({
15974
16062
  key: "createOverlay",
15975
16063
  value: (function() {
15976
16064
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
15977
- var _classPrivateFieldGet92;
16065
+ var _classPrivateFieldGet95;
15978
16066
  return _regenerator().w(function(_context2) {
15979
16067
  while (1) switch (_context2.n) {
15980
16068
  case 0:
15981
- if (!((_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet92 !== void 0 && _classPrivateFieldGet92.defineOverlay)) {
16069
+ if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
15982
16070
  _context2.n = 1;
15983
16071
  break;
15984
16072
  }
@@ -16003,17 +16091,17 @@ var init_wistia_player = __esm({
16003
16091
  while (1) switch (_context5.n) {
16004
16092
  case 0:
16005
16093
  addPlugin = /* @__PURE__ */ (function() {
16006
- var _ref11 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
16007
- var _classPrivateFieldGet93, _classPrivateFieldGet94;
16094
+ var _ref12 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
16095
+ var _classPrivateFieldGet96, _classPrivateFieldGet97;
16008
16096
  return _regenerator().w(function(_context3) {
16009
16097
  while (1) switch (_context3.n) {
16010
16098
  case 0:
16011
- 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"))));
16099
+ 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"))));
16012
16100
  }
16013
16101
  }, _callee3);
16014
16102
  }));
16015
16103
  return function addPlugin2() {
16016
- return _ref11.apply(this, arguments);
16104
+ return _ref12.apply(this, arguments);
16017
16105
  };
16018
16106
  })();
16019
16107
  if (!_classPrivateFieldGet(_api, this)) {
@@ -16053,11 +16141,11 @@ var init_wistia_player = __esm({
16053
16141
  key: "deleteOverlay",
16054
16142
  value: (function() {
16055
16143
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
16056
- var _classPrivateFieldGet95;
16144
+ var _classPrivateFieldGet98;
16057
16145
  return _regenerator().w(function(_context6) {
16058
16146
  while (1) switch (_context6.n) {
16059
16147
  case 0:
16060
- if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.undefineOverlay)) {
16148
+ if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
16061
16149
  _context6.n = 1;
16062
16150
  break;
16063
16151
  }
@@ -16076,11 +16164,11 @@ var init_wistia_player = __esm({
16076
16164
  key: "disableControl",
16077
16165
  value: (function() {
16078
16166
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
16079
- var _classPrivateFieldGet96;
16167
+ var _classPrivateFieldGet99;
16080
16168
  return _regenerator().w(function(_context7) {
16081
16169
  while (1) switch (_context7.n) {
16082
16170
  case 0:
16083
- if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.setControlEnabled)) {
16171
+ if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
16084
16172
  _context7.n = 1;
16085
16173
  break;
16086
16174
  }
@@ -16099,11 +16187,11 @@ var init_wistia_player = __esm({
16099
16187
  key: "enableControl",
16100
16188
  value: (function() {
16101
16189
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
16102
- var _classPrivateFieldGet97;
16190
+ var _classPrivateFieldGet100;
16103
16191
  return _regenerator().w(function(_context8) {
16104
16192
  while (1) switch (_context8.n) {
16105
16193
  case 0:
16106
- if (!((_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet97 !== void 0 && _classPrivateFieldGet97.setControlEnabled)) {
16194
+ if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
16107
16195
  _context8.n = 1;
16108
16196
  break;
16109
16197
  }
@@ -16122,16 +16210,16 @@ var init_wistia_player = __esm({
16122
16210
  key: "enterInputContext",
16123
16211
  value: (function() {
16124
16212
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
16125
- var _classPrivateFieldGet98, _this5 = this;
16213
+ var _classPrivateFieldGet101, _this5 = this;
16126
16214
  return _regenerator().w(function(_context9) {
16127
16215
  while (1) switch (_context9.n) {
16128
16216
  case 0:
16129
- if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.enterInputContext)) {
16217
+ if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
16130
16218
  _context9.n = 1;
16131
16219
  break;
16132
16220
  }
16133
16221
  return _context9.a(2, new Promise(function(resolve) {
16134
- var _classPrivateFieldGet99;
16222
+ var _classPrivateFieldGet102;
16135
16223
  var _handler = function handler(event) {
16136
16224
  var detail = event.detail;
16137
16225
  if (detail.context === context) {
@@ -16140,7 +16228,7 @@ var init_wistia_player = __esm({
16140
16228
  _this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
16141
16229
  };
16142
16230
  _this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
16143
- (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.enterInputContext(context);
16231
+ (_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
16144
16232
  }));
16145
16233
  case 1:
16146
16234
  return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -16156,11 +16244,11 @@ var init_wistia_player = __esm({
16156
16244
  key: "exitInputContext",
16157
16245
  value: (function() {
16158
16246
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
16159
- var _classPrivateFieldGet100;
16247
+ var _classPrivateFieldGet103;
16160
16248
  return _regenerator().w(function(_context0) {
16161
16249
  while (1) switch (_context0.n) {
16162
16250
  case 0:
16163
- if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.exitInputContext)) {
16251
+ if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
16164
16252
  _context0.n = 1;
16165
16253
  break;
16166
16254
  }
@@ -16207,8 +16295,8 @@ var init_wistia_player = __esm({
16207
16295
  while (1) switch (_context10.n) {
16208
16296
  case 0:
16209
16297
  return _context10.a(2, new Promise(function(resolve, reject) {
16210
- var _classPrivateFieldGet101;
16211
- if ((_classPrivateFieldGet101 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
16298
+ var _classPrivateFieldGet104;
16299
+ if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
16212
16300
  resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
16213
16301
  }
16214
16302
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -16225,7 +16313,7 @@ var init_wistia_player = __esm({
16225
16313
  key: "getRemapTime",
16226
16314
  value: (function() {
16227
16315
  var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
16228
- var _classPrivateFieldGet102, _this7 = this;
16316
+ var _classPrivateFieldGet105, _this7 = this;
16229
16317
  var _t, _t2, _t3;
16230
16318
  return _regenerator().w(function(_context11) {
16231
16319
  while (1) switch (_context11.n) {
@@ -16245,11 +16333,11 @@ var init_wistia_player = __esm({
16245
16333
  });
16246
16334
  return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
16247
16335
  case 2:
16248
- if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet102 !== void 0)) {
16336
+ if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
16249
16337
  _context11.n = 3;
16250
16338
  break;
16251
16339
  }
16252
- _classPrivateFieldGet102;
16340
+ _classPrivateFieldGet105;
16253
16341
  _context11.n = 5;
16254
16342
  break;
16255
16343
  case 3:
@@ -16257,8 +16345,8 @@ var init_wistia_player = __esm({
16257
16345
  _t2 = _cachedRemapTime;
16258
16346
  _t3 = this;
16259
16347
  _context11.n = 4;
16260
- return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref13) {
16261
- var remapTime = _ref13.remapTime;
16348
+ return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref14) {
16349
+ var remapTime = _ref14.remapTime;
16262
16350
  return function(fromLanguage, toLanguage, fromTime) {
16263
16351
  var fromTimeInMilliseconds = fromTime * 1e3;
16264
16352
  var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
@@ -16286,11 +16374,11 @@ var init_wistia_player = __esm({
16286
16374
  key: "hideOverlay",
16287
16375
  value: (function() {
16288
16376
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
16289
- var _classPrivateFieldGet103;
16377
+ var _classPrivateFieldGet106;
16290
16378
  return _regenerator().w(function(_context12) {
16291
16379
  while (1) switch (_context12.n) {
16292
16380
  case 0:
16293
- if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.cancelOverlay)) {
16381
+ if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
16294
16382
  _context12.n = 1;
16295
16383
  break;
16296
16384
  }
@@ -16314,8 +16402,8 @@ var init_wistia_player = __esm({
16314
16402
  while (1) switch (_context13.n) {
16315
16403
  case 0:
16316
16404
  return _context13.a(2, new Promise(function(resolve, reject) {
16317
- var _classPrivateFieldGet104;
16318
- if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.popover) {
16405
+ var _classPrivateFieldGet107;
16406
+ if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
16319
16407
  _classPrivateFieldGet(_api, _this8).popover.hide();
16320
16408
  resolve();
16321
16409
  }
@@ -16332,14 +16420,14 @@ var init_wistia_player = __esm({
16332
16420
  }, {
16333
16421
  key: "languagesToLocalizations",
16334
16422
  value: function languagesToLocalizations(languages) {
16335
- var _classPrivateFieldGet105, _classPrivateFieldGet106;
16336
- return (_classPrivateFieldGet105 = (_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet105 !== void 0 ? _classPrivateFieldGet105 : [];
16423
+ var _classPrivateFieldGet108, _classPrivateFieldGet109;
16424
+ return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
16337
16425
  }
16338
16426
  }, {
16339
16427
  key: "languageToLocalization",
16340
16428
  value: function languageToLocalization(language) {
16341
- var _classPrivateFieldGet107, _classPrivateFieldGet108;
16342
- 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);
16429
+ var _classPrivateFieldGet110, _classPrivateFieldGet111;
16430
+ 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);
16343
16431
  }
16344
16432
  /**
16345
16433
  * Pauses the video.
@@ -16351,11 +16439,11 @@ var init_wistia_player = __esm({
16351
16439
  key: "pause",
16352
16440
  value: (function() {
16353
16441
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
16354
- var _classPrivateFieldGet109;
16442
+ var _classPrivateFieldGet112;
16355
16443
  return _regenerator().w(function(_context14) {
16356
16444
  while (1) switch (_context14.n) {
16357
16445
  case 0:
16358
- return _context14.a(2, (_classPrivateFieldGet109 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.pause());
16446
+ return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
16359
16447
  }
16360
16448
  }, _callee14, this);
16361
16449
  }));
@@ -16368,11 +16456,11 @@ var init_wistia_player = __esm({
16368
16456
  key: "play",
16369
16457
  value: (function() {
16370
16458
  var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
16371
- var _classPrivateFieldGet110;
16459
+ var _classPrivateFieldGet113;
16372
16460
  return _regenerator().w(function(_context15) {
16373
16461
  while (1) switch (_context15.n) {
16374
16462
  case 0:
16375
- return _context15.a(2, (_classPrivateFieldGet110 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.play());
16463
+ return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
16376
16464
  }
16377
16465
  }, _callee15, this);
16378
16466
  }));
@@ -16385,11 +16473,11 @@ var init_wistia_player = __esm({
16385
16473
  key: "releaseControls",
16386
16474
  value: (function() {
16387
16475
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
16388
- var _classPrivateFieldGet111;
16476
+ var _classPrivateFieldGet114;
16389
16477
  return _regenerator().w(function(_context16) {
16390
16478
  while (1) switch (_context16.n) {
16391
16479
  case 0:
16392
- return _context16.a(2, (_classPrivateFieldGet111 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.releaseControls(name));
16480
+ return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
16393
16481
  }
16394
16482
  }, _callee16, this);
16395
16483
  }));
@@ -16402,10 +16490,10 @@ var init_wistia_player = __esm({
16402
16490
  key: "removeAllEventListeners",
16403
16491
  value: function removeAllEventListeners() {
16404
16492
  var _this9 = this;
16405
- Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref14) {
16406
- var _ref15 = _slicedToArray(_ref14, 2), type = _ref15[0], listeners = _ref15[1];
16407
- listeners.forEach(function(_ref16) {
16408
- var listener = _ref16.listener, options = _ref16.options;
16493
+ Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref15) {
16494
+ var _ref16 = _slicedToArray(_ref15, 2), type = _ref16[0], listeners = _ref16[1];
16495
+ listeners.forEach(function(_ref17) {
16496
+ var listener = _ref17.listener, options = _ref17.options;
16409
16497
  _this9.removeEventListener(type, listener, options);
16410
16498
  });
16411
16499
  });
@@ -16450,7 +16538,7 @@ var init_wistia_player = __esm({
16450
16538
  case 0:
16451
16539
  options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
16452
16540
  return _context17.a(2, new Promise(function(resolve, reject) {
16453
- var _classPrivateFieldGet112;
16541
+ var _classPrivateFieldGet115;
16454
16542
  if (!_classPrivateFieldGet(_api, _this0)) {
16455
16543
  reject(new Error("api not ready to replace"));
16456
16544
  }
@@ -16460,7 +16548,7 @@ var init_wistia_player = __esm({
16460
16548
  resolve();
16461
16549
  };
16462
16550
  _this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
16463
- (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.replaceWith(mediaId, options);
16551
+ (_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
16464
16552
  }));
16465
16553
  }
16466
16554
  }, _callee17);
@@ -16474,11 +16562,11 @@ var init_wistia_player = __esm({
16474
16562
  key: "requestControls",
16475
16563
  value: (function() {
16476
16564
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
16477
- var _classPrivateFieldGet113;
16565
+ var _classPrivateFieldGet116;
16478
16566
  return _regenerator().w(function(_context18) {
16479
16567
  while (1) switch (_context18.n) {
16480
16568
  case 0:
16481
- return _context18.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.requestControls(name));
16569
+ return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
16482
16570
  }
16483
16571
  }, _callee18, this);
16484
16572
  }));
@@ -16491,11 +16579,11 @@ var init_wistia_player = __esm({
16491
16579
  key: "requestFullscreen",
16492
16580
  value: (function() {
16493
16581
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
16494
- var _classPrivateFieldGet114;
16582
+ var _classPrivateFieldGet117;
16495
16583
  return _regenerator().w(function(_context19) {
16496
16584
  while (1) switch (_context19.n) {
16497
16585
  case 0:
16498
- if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet114 !== void 0 && _classPrivateFieldGet114.requestFullscreen)) {
16586
+ if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
16499
16587
  _context19.n = 1;
16500
16588
  break;
16501
16589
  }
@@ -16514,11 +16602,11 @@ var init_wistia_player = __esm({
16514
16602
  key: "showOverlay",
16515
16603
  value: (function() {
16516
16604
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
16517
- var _classPrivateFieldGet115;
16605
+ var _classPrivateFieldGet118;
16518
16606
  return _regenerator().w(function(_context20) {
16519
16607
  while (1) switch (_context20.n) {
16520
16608
  case 0:
16521
- if (!((_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.requestOverlay)) {
16609
+ if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
16522
16610
  _context20.n = 1;
16523
16611
  break;
16524
16612
  }
@@ -16542,8 +16630,8 @@ var init_wistia_player = __esm({
16542
16630
  while (1) switch (_context21.n) {
16543
16631
  case 0:
16544
16632
  return _context21.a(2, new Promise(function(resolve, reject) {
16545
- var _classPrivateFieldGet116;
16546
- if ((_classPrivateFieldGet116 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet116 !== void 0 && _classPrivateFieldGet116.popover) {
16633
+ var _classPrivateFieldGet119;
16634
+ if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
16547
16635
  _classPrivateFieldGet(_api, _this1).popover.show();
16548
16636
  resolve();
16549
16637
  }
@@ -16767,7 +16855,7 @@ var init_wistia_player = __esm({
16767
16855
  }, {
16768
16856
  key: "disconnectedCallback",
16769
16857
  value: function disconnectedCallback() {
16770
- var _classPrivateFieldGet117, _classPrivateFieldGet118, _this$shadowRoot;
16858
+ var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
16771
16859
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
16772
16860
  return removeListener();
16773
16861
  });
@@ -16775,10 +16863,10 @@ var init_wistia_player = __esm({
16775
16863
  _classPrivateFieldSet(_eventListeners, this, {});
16776
16864
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
16777
16865
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
16778
- (_classPrivateFieldGet117 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.disconnect();
16866
+ (_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
16779
16867
  _classPrivateFieldSet(_resizeObserver, this, null);
16780
16868
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
16781
- (_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet118 === void 0 ? void 0 : _classPrivateFieldGet118.remove();
16869
+ (_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
16782
16870
  _classPrivateFieldSet(_api, this, null);
16783
16871
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
16784
16872
  _classPrivateFieldSet(_preactRoot, this, null);
@@ -16797,7 +16885,7 @@ var init_wistia_player = __esm({
16797
16885
  })(/* @__PURE__ */ _wrapNativeSuper(HTMLElement));
16798
16886
  _WistiaPlayer = WistiaPlayer;
16799
16887
  getSwatchMetaData2 = /* @__PURE__ */ (function() {
16800
- var _ref17 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
16888
+ var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
16801
16889
  var swatch;
16802
16890
  return _regenerator().w(function(_context25) {
16803
16891
  while (1) switch (_context25.n) {
@@ -16812,11 +16900,11 @@ var init_wistia_player = __esm({
16812
16900
  }, _callee25);
16813
16901
  }));
16814
16902
  return function getSwatchMetaData3(_x18) {
16815
- return _ref17.apply(this, arguments);
16903
+ return _ref18.apply(this, arguments);
16816
16904
  };
16817
16905
  })();
16818
16906
  wistiaSwatchElement = /* @__PURE__ */ (function() {
16819
- var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
16907
+ var _ref19 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
16820
16908
  var swatchUrl2, swatchImg, naturalHeight, naturalWidth, ratio, style;
16821
16909
  return _regenerator().w(function(_context26) {
16822
16910
  while (1) switch (_context26.n) {
@@ -16835,7 +16923,7 @@ var init_wistia_player = __esm({
16835
16923
  }, _callee26);
16836
16924
  }));
16837
16925
  return function wistiaSwatchElement2(_x19, _x20) {
16838
- return _ref18.apply(this, arguments);
16926
+ return _ref19.apply(this, arguments);
16839
16927
  };
16840
16928
  })();
16841
16929
  if (customElements.get("wistia-player") === void 0) {