@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.
@@ -1580,6 +1580,11 @@ var __webpack_modules__ = {
1580
1580
  getContrast
1581
1581
  ),
1582
1582
  /* harmony export */
1583
+ cO: () => (
1584
+ /* binding */
1585
+ DEFAULT_PLAYER_COLOR2
1586
+ ),
1587
+ /* harmony export */
1583
1588
  hu: () => (
1584
1589
  /* binding */
1585
1590
  getVideoPlayerIconColor
@@ -1623,6 +1628,7 @@ var __webpack_modules__ = {
1623
1628
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1624
1629
  return n;
1625
1630
  }
1631
+ var DEFAULT_PLAYER_COLOR2 = "#2949E5";
1626
1632
  var colorContrastRatiosByShape = {
1627
1633
  nonText: 3,
1628
1634
  // 3:1 - https://www.w3.org/TR/WCAG21/#non-text-contrast
@@ -1826,6 +1832,24 @@ var __webpack_modules__ = {
1826
1832
  }
1827
1833
  return adjustColorForProperContrast(_playerColor, _playerColor, "paragraphText");
1828
1834
  };
1835
+ var SHADE = 0.8;
1836
+ var getBackgroundColorFromPlayerColor = function getBackgroundColorFromPlayerColor2() {
1837
+ var color = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_PLAYER_COLOR2;
1838
+ return new Color(color).shade(SHADE).toHexWithHash();
1839
+ };
1840
+ var isDarkColor = function isDarkColor2(color) {
1841
+ return new Color(color).getRelativeLuminance() < 0.15;
1842
+ };
1843
+ var isVeryDarkColor = function isVeryDarkColor2(color) {
1844
+ return new Color(color).getRelativeLuminance() < 0.05;
1845
+ };
1846
+ var isLightColor = function isLightColor2(color) {
1847
+ return new Color(color).getRelativeLuminance() >= 0.8;
1848
+ };
1849
+ var isMidToneColor = function isMidToneColor2(color) {
1850
+ var relativeLuminance = new Color(color).getRelativeLuminance();
1851
+ return relativeLuminance > 0.13 && relativeLuminance < 0.75;
1852
+ };
1829
1853
  },
1830
1854
  /***/
1831
1855
  1161(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) {
@@ -2029,6 +2053,7 @@ var __webpack_modules__ = {
2029
2053
  var SECONDS_IN_HOUR = 3600;
2030
2054
  var MINUTES_IN_HOUR = 60;
2031
2055
  var SECONDS_IN_MINUTE = 60;
2056
+ var SECONDS_CUTTOFF = 45;
2032
2057
  var padNumber = function padNumber2(num) {
2033
2058
  var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
2034
2059
  var result = "".concat(num);
@@ -2117,6 +2142,16 @@ var __webpack_modules__ = {
2117
2142
  var secondsToMilliseconds = function secondsToMilliseconds2(seconds) {
2118
2143
  return seconds * 1e3;
2119
2144
  };
2145
+ var formatDuration = function formatDuration2(totalSeconds) {
2146
+ var _secondsConverter4 = secondsConverter(totalSeconds, "hms"), hours = _secondsConverter4.hours, minutes = _secondsConverter4.minutes;
2147
+ if (totalSeconds < SECONDS_CUTTOFF) {
2148
+ return "".concat(Math.round(totalSeconds), " SEC");
2149
+ }
2150
+ if (hours) {
2151
+ return "".concat(hours, " HR ").concat(minutes, " MIN");
2152
+ }
2153
+ return "".concat(Math.round(totalSeconds / SECONDS_IN_MINUTE), " MIN");
2154
+ };
2120
2155
  },
2121
2156
  /***/
2122
2157
  1512(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
@@ -3290,10 +3325,10 @@ var __webpack_modules__ = {
3290
3325
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.clear();
3291
3326
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTag("pillar", "publish");
3292
3327
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTag("product", product);
3293
- _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTag("url", window.location.href);
3294
3328
  if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.uu)(details)) {
3295
3329
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTags(details);
3296
3330
  }
3331
+ _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.setTag("url", window.location.href);
3297
3332
  _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s._sentryScope.captureException(error);
3298
3333
  }
3299
3334
  } catch (err) {
@@ -3841,13 +3876,13 @@ var __webpack_modules__ = {
3841
3876
  var OBJ_PROP = "_namespacedLocalStorage";
3842
3877
  var localStorageWorks = function localStorageWorks2() {
3843
3878
  var ns = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "wistia-test-localstorage";
3844
- if (typeof localStorage === "undefined") {
3845
- return false;
3846
- }
3847
- if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks != null) {
3848
- return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks;
3849
- }
3850
3879
  try {
3880
+ if (typeof localStorage === "undefined") {
3881
+ return false;
3882
+ }
3883
+ if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks != null) {
3884
+ return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks;
3885
+ }
3851
3886
  var currentVal = localStorage.getItem(ns);
3852
3887
  localStorage.removeItem(ns);
3853
3888
  localStorage.setItem(ns, currentVal);
@@ -5686,8 +5721,9 @@ var __webpack_modules__ = {
5686
5721
  /* harmony export */
5687
5722
  });
5688
5723
  var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(7350);
5689
- var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5417);
5690
- var _obj_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(731);
5724
+ var _color_utils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(998);
5725
+ var _color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5417);
5726
+ var _obj_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(731);
5691
5727
  function _slicedToArray2(r, e) {
5692
5728
  return _arrayWithHoles2(r) || _iterableToArrayLimit2(r, e) || _unsupportedIterableToArray2(r, e) || _nonIterableRest2();
5693
5729
  }
@@ -5734,12 +5770,12 @@ var __webpack_modules__ = {
5734
5770
  var GRADIENT_COLOR_INDEX = 0;
5735
5771
  var GRADIENT_PERCENTAGE_INDEX = 1;
5736
5772
  var DEFAULT_GRADIENT = {
5737
- colors: [["#2949E5", 0], ["#6A84FF", 1]],
5773
+ colors: [[_color_utils_ts__WEBPACK_IMPORTED_MODULE_1__.cO, 0], ["#6A84FF", 1]],
5738
5774
  on: true
5739
5775
  };
5740
5776
  var hexToRGBA = function hexToRGBA2(hex) {
5741
5777
  var alpha = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : DEFAULT_ALPHA;
5742
- var color = new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1(hex);
5778
+ var color = new _color_js__WEBPACK_IMPORTED_MODULE_2__.Q1(hex);
5743
5779
  var colorWithAlpha = color.alpha(alpha);
5744
5780
  return colorWithAlpha.toRgba();
5745
5781
  };
@@ -5779,6 +5815,17 @@ var __webpack_modules__ = {
5779
5815
  };
5780
5816
  return result;
5781
5817
  };
5818
+ var getPlayerColorOrFirstGradientStop = function getPlayerColorOrFirstGradientStop2(playerColor, gradient) {
5819
+ var _addHashToHex;
5820
+ if (!isGradient(gradient) || !gradient.on) {
5821
+ return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
5822
+ }
5823
+ var firstGradientColorStop = getGradientColor(gradient);
5824
+ if (isNil(firstGradientColorStop)) {
5825
+ return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
5826
+ }
5827
+ return (_addHashToHex = addHashToHex(firstGradientColorStop)) !== null && _addHashToHex !== void 0 ? _addHashToHex : DEFAULT_PLAYER_COLOR;
5828
+ };
5782
5829
  },
5783
5830
  /***/
5784
5831
  4400(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
@@ -7228,14 +7275,15 @@ var __webpack_modules__ = {
7228
7275
  }
7229
7276
  }]);
7230
7277
  })();
7231
- var addHashToHex = function addHashToHex2(hex) {
7278
+ var addHashToHex2 = function addHashToHex3(hex) {
7232
7279
  if (isNil(hex)) {
7233
7280
  return;
7234
7281
  }
7235
- if (hex.charAt(0) === "#") {
7236
- return hex;
7282
+ var hexGuaranteedToBeString = String(hex);
7283
+ if (hexGuaranteedToBeString.charAt(0) === "#") {
7284
+ return hexGuaranteedToBeString;
7237
7285
  }
7238
- return "#".concat(hex);
7286
+ return "#".concat(hexGuaranteedToBeString);
7239
7287
  };
7240
7288
  var colorWithAlpha = function colorWithAlpha2(color, alpha) {
7241
7289
  return new Color2(color).alpha(alpha).toRgba();
@@ -7992,12 +8040,21 @@ var __webpack_modules__ = {
7992
8040
  while (1) switch (_context.n) {
7993
8041
  case 0:
7994
8042
  return _context.a(2, new Promise(function(resolve, reject) {
7995
- var poll = -1;
8043
+ var pollState = {
8044
+ isSettled: false,
8045
+ intervalId: -1,
8046
+ timeoutId: -1
8047
+ };
8048
+ var cleanup = function cleanup2() {
8049
+ pollState.isSettled = true;
8050
+ clearInterval(pollState.intervalId);
8051
+ clearTimeout(pollState.timeoutId);
8052
+ };
7996
8053
  var checkForJsonp = function checkForJsonp2() {
7997
8054
  var jsonp = window["wistiajsonp-/embed/medias/".concat(mediaId, ".jsonp")];
7998
8055
  if (jsonp) {
7999
8056
  if (jsonp.media) {
8000
- clearInterval(poll);
8057
+ cleanup();
8001
8058
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_5__.ry)(mediaId, jsonp.media);
8002
8059
  (0, _utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_8__.j)(mediaId, options).then(resolve).catch(function() {
8003
8060
  reject(new Error("Failed to fetch media data via jsonp"));
@@ -8005,15 +8062,16 @@ var __webpack_modules__ = {
8005
8062
  return;
8006
8063
  }
8007
8064
  if ((0, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_6__.V)(jsonp)) {
8008
- clearInterval(poll);
8065
+ cleanup();
8009
8066
  resolve(jsonp);
8010
8067
  }
8011
8068
  }
8012
8069
  };
8013
8070
  checkForJsonp();
8014
- poll = window.setInterval(checkForJsonp, INTERVAL_TIME);
8015
- setTimeout(function() {
8016
- clearInterval(poll);
8071
+ if (pollState.isSettled) return;
8072
+ pollState.intervalId = window.setInterval(checkForJsonp, INTERVAL_TIME);
8073
+ pollState.timeoutId = window.setTimeout(function() {
8074
+ cleanup();
8017
8075
  reject(new Error("Timeout loading jsonp media data"));
8018
8076
  }, JS_LOAD_TIMEOUT);
8019
8077
  }));
@@ -8232,8 +8290,8 @@ var __webpack_modules__ = {
8232
8290
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8233
8291
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8234
8292
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8235
- var TAGGED_VERSION = "0.7.2";
8236
- var CURRENT_SHA = "fc9202c2841d2873e7123b63575474d97de8e697";
8293
+ var TAGGED_VERSION = "0.7.5";
8294
+ var CURRENT_SHA = "7f1f10ca8b9bae893fd757afbd3ce777956c2099";
8237
8295
  var DEFAULT_PROTOCOL = (function() {
8238
8296
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
8239
8297
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -9426,7 +9484,7 @@ var __webpack_modules__ = {
9426
9484
  _t2 = _context2.v;
9427
9485
  reportedError = _t2 instanceof Error ? _t2 : new Error(String(_t2));
9428
9486
  (0, _sentryUtils_ts__WEBPACK_IMPORTED_MODULE_1__.N7)("dynamicImport", reportedError, {
9429
- url
9487
+ importUrl: url
9430
9488
  });
9431
9489
  (0, _simpleMetrics_js__WEBPACK_IMPORTED_MODULE_2__.WO)("dynamic-import/failure-after-retry", 1, {
9432
9490
  attempt: String(MAX_RETRIES),
@@ -10025,14 +10083,21 @@ var __webpack_modules__ = {
10025
10083
  /* harmony export */
10026
10084
  });
10027
10085
  var MUX_PERCENTAGE_TO_ENABLE = 0.1;
10086
+ var isMuxEnvironmentSupported = function isMuxEnvironmentSupported2() {
10087
+ return typeof console !== "undefined" && // eslint-disable-next-line no-console
10088
+ typeof console.trace === "function" && // eslint-disable-next-line no-console
10089
+ typeof console.info === "function" && // eslint-disable-next-line no-console
10090
+ typeof console.debug === "function";
10091
+ };
10028
10092
  var shouldEnableMux = function shouldEnableMux2(video, didWinCoinFlip) {
10029
10093
  var _video$_opts, _video$_mediaData;
10094
+ var isMuxEnabledInEnvironment = isMuxEnvironmentSupported();
10030
10095
  var isMuxEnabledOnWindow = window.wistiaDisableMux !== true;
10031
10096
  var isMuxEnabledFromOpts = ((_video$_opts = video._opts) === null || _video$_opts === void 0 ? void 0 : _video$_opts.mux) !== false;
10032
10097
  var isMuxEnabledFromStandardEmbed = video.iframe == null;
10033
10098
  var isMuxEnabledFromCoinFlip = didWinCoinFlip;
10034
10099
  var isMuxEnabledFromLiveStream = ((_video$_mediaData = video._mediaData) === null || _video$_mediaData === void 0 ? void 0 : _video$_mediaData.type) === "LiveStream";
10035
- return isMuxEnabledOnWindow && isMuxEnabledFromOpts && isMuxEnabledFromStandardEmbed && (isMuxEnabledFromCoinFlip || isMuxEnabledFromLiveStream);
10100
+ return isMuxEnabledInEnvironment && isMuxEnabledOnWindow && isMuxEnabledFromOpts && isMuxEnabledFromStandardEmbed && (isMuxEnabledFromCoinFlip || isMuxEnabledFromLiveStream);
10036
10101
  };
10037
10102
  },
10038
10103
  /***/
@@ -10411,11 +10476,11 @@ var __webpack_modules__ = {
10411
10476
  /* harmony export */
10412
10477
  b: () => (
10413
10478
  /* binding */
10414
- isGradient
10479
+ isGradient2
10415
10480
  )
10416
10481
  /* harmony export */
10417
10482
  });
10418
- var isGradient = function isGradient2(value) {
10483
+ var isGradient2 = function isGradient3(value) {
10419
10484
  if (typeof value !== "object" || value === null) {
10420
10485
  return false;
10421
10486
  }
@@ -11000,7 +11065,15 @@ var __webpack_modules__ = {
11000
11065
  if (elem === document) {
11001
11066
  return true;
11002
11067
  }
11003
- elem = elem.parentNode || elem.getRootNode().host;
11068
+ var parent2 = elem.parentNode;
11069
+ if (parent2 != null) {
11070
+ elem = parent2;
11071
+ } else if (typeof elem.getRootNode === "function") {
11072
+ var _elem$getRootNode;
11073
+ elem = (_elem$getRootNode = elem.getRootNode()) === null || _elem$getRootNode === void 0 ? void 0 : _elem$getRootNode.host;
11074
+ } else {
11075
+ return false;
11076
+ }
11004
11077
  }
11005
11078
  return false;
11006
11079
  };
@@ -11222,6 +11295,11 @@ var __webpack_modules__ = {
11222
11295
  });
11223
11296
  }
11224
11297
  if (elem.webkitEnterFullscreen) {
11298
+ if (elem.readyState !== void 0 && elem.readyState < HTMLMediaElement.HAVE_METADATA) {
11299
+ var errorMessage = "webkitEnterFullscreen requires at least HAVE_METADATA readyState";
11300
+ wlog.notice(errorMessage);
11301
+ return Promise.reject(new Error(errorMessage));
11302
+ }
11225
11303
  elem.webkitEnterFullscreen();
11226
11304
  return Promise.resolve();
11227
11305
  }
@@ -14301,6 +14379,16 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14301
14379
  get: function get() {
14302
14380
  return _classPrivateFieldGet(_api, this);
14303
14381
  }
14382
+ /**
14383
+ * Returns the description of the video, as used in the JSON-LD schema
14384
+ * @returns {string}
14385
+ */
14386
+ }, {
14387
+ key: "description",
14388
+ get: function get() {
14389
+ var _ref5, _classPrivateFieldGet24, _classPrivateFieldGet25, _classPrivateFieldGet26;
14390
+ 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 : "";
14391
+ }
14304
14392
  /**
14305
14393
  * Returns the status of the do not track embed option that controls whether the player
14306
14394
  * sends tracking pings.
@@ -14321,8 +14409,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14321
14409
  }, {
14322
14410
  key: "duration",
14323
14411
  get: function get() {
14324
- var _classPrivateFieldGet24, _classPrivateFieldGet25;
14325
- return (_classPrivateFieldGet24 = (_classPrivateFieldGet25 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : _classPrivateFieldGet25.duration()) !== null && _classPrivateFieldGet24 !== void 0 ? _classPrivateFieldGet24 : 0;
14412
+ var _classPrivateFieldGet27, _classPrivateFieldGet28;
14413
+ return (_classPrivateFieldGet27 = (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.duration()) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : 0;
14326
14414
  }
14327
14415
  /**
14328
14416
  * Returns the email associated with this viewing session.
@@ -14335,8 +14423,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14335
14423
  }, {
14336
14424
  key: "email",
14337
14425
  get: function get() {
14338
- var _ref5, _ref6, _extractEmailFromPara, _classPrivateGetter2;
14339
- 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;
14426
+ var _ref6, _ref7, _extractEmailFromPara, _classPrivateGetter2;
14427
+ 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;
14340
14428
  },
14341
14429
  set: function set(newEmail) {
14342
14430
  if (this.email === newEmail) {
@@ -14376,8 +14464,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14376
14464
  }, {
14377
14465
  key: "ended",
14378
14466
  get: function get() {
14379
- var _classPrivateFieldGet26;
14380
- return ((_classPrivateFieldGet26 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.state()) === "ended";
14467
+ var _classPrivateFieldGet29;
14468
+ return ((_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === "ended";
14381
14469
  }
14382
14470
  /**
14383
14471
  * Returns the current end video behavior value
@@ -14390,11 +14478,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14390
14478
  },
14391
14479
  set: function set(behavior) {
14392
14480
  if (behavior === "loop") {
14393
- var _classPrivateFieldGet27;
14394
- (_classPrivateFieldGet27 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet27 === void 0 ? void 0 : _classPrivateFieldGet27.addLoopBehavior();
14481
+ var _classPrivateFieldGet30;
14482
+ (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.addLoopBehavior();
14395
14483
  } else {
14396
- var _classPrivateFieldGet28;
14397
- (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.removeLoopBehavior();
14484
+ var _classPrivateFieldGet31;
14485
+ (_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.removeLoopBehavior();
14398
14486
  }
14399
14487
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "endVideoBehavior", behavior);
14400
14488
  }
@@ -14405,8 +14493,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14405
14493
  }, {
14406
14494
  key: "eventKey",
14407
14495
  get: function get() {
14408
- var _classPrivateFieldGet29;
14409
- return (_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.eventKey();
14496
+ var _classPrivateFieldGet32;
14497
+ return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.eventKey();
14410
14498
  }
14411
14499
  /**
14412
14500
  * Returns how the video should be sized within its container.
@@ -14430,8 +14518,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14430
14518
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "fullscreenControl");
14431
14519
  },
14432
14520
  set: function set(shouldDisplay) {
14433
- var _classPrivateFieldGet30;
14434
- (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.fullscreenControlEnabled(shouldDisplay);
14521
+ var _classPrivateFieldGet33;
14522
+ (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.fullscreenControlEnabled(shouldDisplay);
14435
14523
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "fullscreenControl", shouldDisplay);
14436
14524
  }
14437
14525
  /**
@@ -14454,14 +14542,14 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14454
14542
  }, {
14455
14543
  key: "inFullscreen",
14456
14544
  get: function get() {
14457
- var _classPrivateFieldGet31, _classPrivateFieldGet32;
14458
- return (_classPrivateFieldGet31 = (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.inFullscreen()) !== null && _classPrivateFieldGet31 !== void 0 ? _classPrivateFieldGet31 : false;
14545
+ var _classPrivateFieldGet34, _classPrivateFieldGet35;
14546
+ return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.inFullscreen()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
14459
14547
  }
14460
14548
  }, {
14461
14549
  key: "inputContext",
14462
14550
  get: function get() {
14463
- var _classPrivateFieldGet33;
14464
- return (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.getInputContext();
14551
+ var _classPrivateFieldGet36;
14552
+ return (_classPrivateFieldGet36 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.getInputContext();
14465
14553
  }
14466
14554
  /**
14467
14555
  * Returns whether instantHLS is enabled for the video.
@@ -14470,26 +14558,26 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14470
14558
  }, {
14471
14559
  key: "instantHls",
14472
14560
  get: function get() {
14473
- var _classPrivateFieldGet34, _classPrivateFieldGet35;
14474
- return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.isInstantHls()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
14561
+ var _classPrivateFieldGet37, _classPrivateFieldGet38;
14562
+ return (_classPrivateFieldGet37 = (_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.isInstantHls()) !== null && _classPrivateFieldGet37 !== void 0 ? _classPrivateFieldGet37 : false;
14475
14563
  }
14476
14564
  // the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
14477
14565
  // eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
14478
14566
  }, {
14479
14567
  key: "language",
14480
14568
  get: function get() {
14481
- var _classPrivateFieldGet36, _classPrivateFieldGet37;
14482
- 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);
14569
+ var _classPrivateFieldGet39, _classPrivateFieldGet40;
14570
+ 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);
14483
14571
  },
14484
14572
  set: function set(language) {
14485
- var _classPrivateFieldGet38;
14486
- (_classPrivateFieldGet38 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.language(language);
14573
+ var _classPrivateFieldGet41;
14574
+ (_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.language(language);
14487
14575
  }
14488
14576
  }, {
14489
14577
  key: "languages",
14490
14578
  get: function get() {
14491
- var _classPrivateFieldGet39, _classPrivateFieldGet40;
14492
- 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)];
14579
+ var _classPrivateFieldGet42, _classPrivateFieldGet43;
14580
+ 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)];
14493
14581
  }
14494
14582
  /**
14495
14583
  * Returns all the mediaData set on the WistiaPlayer
@@ -14525,8 +14613,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14525
14613
  }, {
14526
14614
  key: "mediaLanguage",
14527
14615
  get: function get() {
14528
- var _classPrivateFieldGet41, _classPrivateFieldGet42;
14529
- 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);
14616
+ var _classPrivateFieldGet44, _classPrivateFieldGet45;
14617
+ 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);
14530
14618
  }
14531
14619
  /**
14532
14620
  * Changes the language of the media stream/content.
@@ -14536,18 +14624,18 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14536
14624
  }, {
14537
14625
  key: "mediaLanguageCode",
14538
14626
  get: function get() {
14539
- var _classPrivateFieldGet43, _classPrivateFieldGet44;
14540
- 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;
14627
+ var _classPrivateFieldGet46, _classPrivateFieldGet47;
14628
+ 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;
14541
14629
  },
14542
14630
  set: function set(languageCode) {
14543
- var _classPrivateFieldGet45;
14544
- (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.mediaLanguageCode(languageCode);
14631
+ var _classPrivateFieldGet48;
14632
+ (_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.mediaLanguageCode(languageCode);
14545
14633
  }
14546
14634
  }, {
14547
14635
  key: "mediaLanguages",
14548
14636
  get: function get() {
14549
- var _classPrivateFieldGet46, _classPrivateFieldGet47;
14550
- 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)];
14637
+ var _classPrivateFieldGet49, _classPrivateFieldGet50;
14638
+ 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)];
14551
14639
  }
14552
14640
  /**
14553
14641
  * Returns if player is currently muted
@@ -14556,8 +14644,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14556
14644
  }, {
14557
14645
  key: "muted",
14558
14646
  get: function get() {
14559
- var _ref7, _classPrivateFieldGet48, _classPrivateFieldGet49;
14560
- 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;
14647
+ var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52;
14648
+ 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;
14561
14649
  },
14562
14650
  set: function set(shouldMute) {
14563
14651
  if (_classPrivateFieldGet(_impl, this)) {
@@ -14577,8 +14665,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14577
14665
  }, {
14578
14666
  key: "name",
14579
14667
  get: function get() {
14580
- var _ref8, _classPrivateFieldGet50, _classPrivateFieldGet51, _classPrivateFieldGet52;
14581
- 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;
14668
+ var _ref9, _classPrivateFieldGet53, _classPrivateFieldGet54, _classPrivateFieldGet55;
14669
+ 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;
14582
14670
  }
14583
14671
  /**
14584
14672
  * Returns the status of the opaqueControls embed option, which determines
@@ -14592,9 +14680,9 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14592
14680
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "opaqueControls");
14593
14681
  },
14594
14682
  set: function set(opaqueControls) {
14595
- var _classPrivateFieldGet53;
14683
+ var _classPrivateFieldGet56;
14596
14684
  var valueAsBoolean = Boolean(opaqueControls);
14597
- (_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.opaqueControls(valueAsBoolean);
14685
+ (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.opaqueControls(valueAsBoolean);
14598
14686
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "opaqueControls", valueAsBoolean);
14599
14687
  }
14600
14688
  }, {
@@ -14612,8 +14700,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14612
14700
  }, {
14613
14701
  key: "paused",
14614
14702
  get: function get() {
14615
- var _classPrivateFieldGet54;
14616
- return ((_classPrivateFieldGet54 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : _classPrivateFieldGet54.state()) === "paused";
14703
+ var _classPrivateFieldGet57;
14704
+ return ((_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.state()) === "paused";
14617
14705
  }
14618
14706
  /**
14619
14707
  * Returns the percent of the video that has been watched as a decimal between 0 and 1.
@@ -14622,8 +14710,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14622
14710
  }, {
14623
14711
  key: "percentWatched",
14624
14712
  get: function get() {
14625
- var _classPrivateFieldGet55, _classPrivateFieldGet56;
14626
- return (_classPrivateFieldGet55 = (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.percentWatched()) !== null && _classPrivateFieldGet55 !== void 0 ? _classPrivateFieldGet55 : 0;
14713
+ var _classPrivateFieldGet58, _classPrivateFieldGet59;
14714
+ return (_classPrivateFieldGet58 = (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.percentWatched()) !== null && _classPrivateFieldGet58 !== void 0 ? _classPrivateFieldGet58 : 0;
14627
14715
  }
14628
14716
  /**
14629
14717
  * Returns the playback rate of the video.
@@ -14632,12 +14720,12 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14632
14720
  }, {
14633
14721
  key: "playbackRate",
14634
14722
  get: function get() {
14635
- var _ref9, _classPrivateFieldGet57, _classPrivateFieldGet58;
14636
- 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;
14723
+ var _ref0, _classPrivateFieldGet60, _classPrivateFieldGet61;
14724
+ 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;
14637
14725
  },
14638
14726
  set: function set(rate) {
14639
- var _classPrivateFieldGet59;
14640
- (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRate(rate);
14727
+ var _classPrivateFieldGet62;
14728
+ (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbackRate(rate);
14641
14729
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
14642
14730
  }
14643
14731
  /**
@@ -14650,8 +14738,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14650
14738
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
14651
14739
  },
14652
14740
  set: function set(shouldDisplay) {
14653
- var _classPrivateFieldGet60;
14654
- (_classPrivateFieldGet60 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbackRateControlEnabled(shouldDisplay);
14741
+ var _classPrivateFieldGet63;
14742
+ (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
14655
14743
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
14656
14744
  }
14657
14745
  /**
@@ -14664,8 +14752,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14664
14752
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
14665
14753
  },
14666
14754
  set: function set(shouldDisplay) {
14667
- var _classPrivateFieldGet61;
14668
- (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbarControlEnabled(shouldDisplay);
14755
+ var _classPrivateFieldGet64;
14756
+ (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playbarControlEnabled(shouldDisplay);
14669
14757
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
14670
14758
  }
14671
14759
  /**
@@ -14678,8 +14766,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14678
14766
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
14679
14767
  },
14680
14768
  set: function set(radius) {
14681
- var _classPrivateFieldGet62;
14682
- (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.setPlayerBorderRadius(Number(radius));
14769
+ var _classPrivateFieldGet65;
14770
+ (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setPlayerBorderRadius(Number(radius));
14683
14771
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", Number(radius));
14684
14772
  }
14685
14773
  /**
@@ -14697,8 +14785,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14697
14785
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
14698
14786
  },
14699
14787
  set: function set(newColor) {
14700
- var _classPrivateFieldGet63;
14701
- (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playerColor(newColor);
14788
+ var _classPrivateFieldGet66;
14789
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
14702
14790
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
14703
14791
  }
14704
14792
  /**
@@ -14715,11 +14803,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14715
14803
  return void 0;
14716
14804
  },
14717
14805
  set: function set(gradient) {
14718
- var _classPrivateFieldGet64;
14806
+ var _classPrivateFieldGet67;
14719
14807
  if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__.b)(gradient)) {
14720
14808
  throw new Error("playerColorGradient must be a valid gradient object");
14721
14809
  }
14722
- (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playerColorGradient(gradient);
14810
+ (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playerColorGradient(gradient);
14723
14811
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
14724
14812
  }
14725
14813
  /**
@@ -14732,8 +14820,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14732
14820
  }, {
14733
14821
  key: "playerForce",
14734
14822
  get: function get() {
14735
- var _ref0;
14736
- return (_ref0 = this.getAttribute("player-force")) !== null && _ref0 !== void 0 ? _ref0 : void 0;
14823
+ var _ref1;
14824
+ return (_ref1 = this.getAttribute("player-force")) !== null && _ref1 !== void 0 ? _ref1 : void 0;
14737
14825
  },
14738
14826
  set: function set(newPlayer) {
14739
14827
  _classPrivateFieldGet(_logger, this).info("set playerForce", newPlayer);
@@ -14777,8 +14865,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14777
14865
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
14778
14866
  },
14779
14867
  set: function set(shouldDisplay) {
14780
- var _classPrivateFieldGet65;
14781
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playPauseControlEnabled(shouldDisplay);
14868
+ var _classPrivateFieldGet68;
14869
+ (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
14782
14870
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
14783
14871
  }
14784
14872
  /**
@@ -14793,8 +14881,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14793
14881
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
14794
14882
  },
14795
14883
  set: function set(shouldDisplay) {
14796
- var _classPrivateFieldGet66;
14797
- (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playPauseNotifierEnabled(shouldDisplay);
14884
+ var _classPrivateFieldGet69;
14885
+ (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playPauseNotifierEnabled(shouldDisplay);
14798
14886
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
14799
14887
  }
14800
14888
  /**
@@ -15014,8 +15102,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15014
15102
  }, {
15015
15103
  key: "preload",
15016
15104
  get: function get() {
15017
- var _ref1, _classPrivateFieldGet67, _classPrivateFieldGet68;
15018
- 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";
15105
+ var _ref10, _classPrivateFieldGet70, _classPrivateFieldGet71;
15106
+ 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";
15019
15107
  },
15020
15108
  set: function set(preloadValue) {
15021
15109
  var prevVal = this.preload;
@@ -15035,8 +15123,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15035
15123
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
15036
15124
  },
15037
15125
  set: function set(shouldDisplay) {
15038
- var _classPrivateFieldGet69;
15039
- (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.qualityControlEnabled(shouldDisplay);
15126
+ var _classPrivateFieldGet72;
15127
+ (_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.qualityControlEnabled(shouldDisplay);
15040
15128
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
15041
15129
  }
15042
15130
  /**
@@ -15049,8 +15137,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15049
15137
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
15050
15138
  },
15051
15139
  set: function set(quality) {
15052
- var _classPrivateFieldGet70;
15053
- (_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.qualityMax(quality);
15140
+ var _classPrivateFieldGet73;
15141
+ (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.qualityMax(quality);
15054
15142
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
15055
15143
  }
15056
15144
  /**
@@ -15063,8 +15151,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15063
15151
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
15064
15152
  },
15065
15153
  set: function set(quality) {
15066
- var _classPrivateFieldGet71;
15067
- (_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.qualityMin(quality);
15154
+ var _classPrivateFieldGet74;
15155
+ (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.qualityMin(quality);
15068
15156
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
15069
15157
  }
15070
15158
  /**
@@ -15074,8 +15162,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15074
15162
  }, {
15075
15163
  key: "readyState",
15076
15164
  get: function get() {
15077
- var _classPrivateFieldGet72, _classPrivateFieldGet73;
15078
- return (_classPrivateFieldGet72 = (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.getReadyState()) !== null && _classPrivateFieldGet72 !== void 0 ? _classPrivateFieldGet72 : 0;
15165
+ var _classPrivateFieldGet75, _classPrivateFieldGet76;
15166
+ return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.getReadyState()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
15079
15167
  }
15080
15168
  /**
15081
15169
  * Returns the current resumable status of the video.
@@ -15088,8 +15176,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15088
15176
  return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable")) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : "auto";
15089
15177
  },
15090
15178
  set: function set(resumableState) {
15091
- var _classPrivateFieldGet74;
15092
- (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.setResumable(resumableState);
15179
+ var _classPrivateFieldGet77;
15180
+ (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
15093
15181
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
15094
15182
  }
15095
15183
  /**
@@ -15102,8 +15190,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15102
15190
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
15103
15191
  },
15104
15192
  set: function set(radius) {
15105
- var _classPrivateFieldGet75;
15106
- (_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.setRoundedPlayer(Number(radius));
15193
+ var _classPrivateFieldGet78;
15194
+ (_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
15107
15195
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
15108
15196
  }
15109
15197
  /**
@@ -15114,8 +15202,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15114
15202
  }, {
15115
15203
  key: "secondsWatched",
15116
15204
  get: function get() {
15117
- var _classPrivateFieldGet76, _classPrivateFieldGet77;
15118
- return (_classPrivateFieldGet76 = (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.secondsWatched()) !== null && _classPrivateFieldGet76 !== void 0 ? _classPrivateFieldGet76 : 0;
15205
+ var _classPrivateFieldGet79, _classPrivateFieldGet80;
15206
+ return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
15119
15207
  }
15120
15208
  /**
15121
15209
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -15124,8 +15212,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15124
15212
  }, {
15125
15213
  key: "secondsWatchedVector",
15126
15214
  get: function get() {
15127
- var _classPrivateFieldGet78, _classPrivateFieldGet79;
15128
- return (_classPrivateFieldGet78 = (_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.secondsWatchedVector()) !== null && _classPrivateFieldGet78 !== void 0 ? _classPrivateFieldGet78 : [];
15215
+ var _classPrivateFieldGet81, _classPrivateFieldGet82;
15216
+ return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
15129
15217
  }
15130
15218
  /**
15131
15219
  * Returns whether JSON+LD seo data will be injected.
@@ -15149,8 +15237,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15149
15237
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
15150
15238
  },
15151
15239
  set: function set(shouldDisplay) {
15152
- var _classPrivateFieldGet80;
15153
- (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.settingsControlEnabled(shouldDisplay);
15240
+ var _classPrivateFieldGet83;
15241
+ (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
15154
15242
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
15155
15243
  }
15156
15244
  /**
@@ -15172,10 +15260,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15172
15260
  }, {
15173
15261
  key: "sourceLanguage",
15174
15262
  get: function get() {
15175
- var _classPrivateFieldGet81, _classPrivateFieldGet82, _classPrivateFieldGet83;
15176
- return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.find(function(loc) {
15263
+ var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
15264
+ return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function(loc) {
15177
15265
  return loc.isOriginal;
15178
- })) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : (_classPrivateFieldGet83 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83[0];
15266
+ })) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
15179
15267
  }
15180
15268
  /**
15181
15269
  * Returns the source media id for the player. If a player has different localized versions,
@@ -15195,8 +15283,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15195
15283
  }, {
15196
15284
  key: "state",
15197
15285
  get: function get() {
15198
- var _classPrivateFieldGet84, _classPrivateFieldGet85;
15199
- return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.state()) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : defaultEmbedOptions.state;
15286
+ var _classPrivateFieldGet87, _classPrivateFieldGet88;
15287
+ return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
15200
15288
  }
15201
15289
  /**
15202
15290
  * Returns the stats url for the player.
@@ -15278,12 +15366,12 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15278
15366
  }, {
15279
15367
  key: "videoQuality",
15280
15368
  get: function get() {
15281
- var _ref10, _classPrivateFieldGet86, _classPrivateFieldGet87;
15282
- 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";
15369
+ var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
15370
+ 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";
15283
15371
  },
15284
15372
  set: function set(quality) {
15285
- var _classPrivateFieldGet88;
15286
- (_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.setVideoQuality(quality);
15373
+ var _classPrivateFieldGet91;
15374
+ (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
15287
15375
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
15288
15376
  }
15289
15377
  /**
@@ -15306,8 +15394,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15306
15394
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
15307
15395
  },
15308
15396
  set: function set(level) {
15309
- var _classPrivateFieldGet89;
15310
- (_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.volume(level);
15397
+ var _classPrivateFieldGet92;
15398
+ (_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
15311
15399
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
15312
15400
  }
15313
15401
  /**
@@ -15322,8 +15410,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15322
15410
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
15323
15411
  },
15324
15412
  set: function set(shouldDisplay) {
15325
- var _classPrivateFieldGet90;
15326
- (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.volumeControlEnabled(shouldDisplay);
15413
+ var _classPrivateFieldGet93;
15414
+ (_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
15327
15415
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
15328
15416
  }
15329
15417
  /**
@@ -15369,11 +15457,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15369
15457
  key: "cancelFullscreen",
15370
15458
  value: (function() {
15371
15459
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
15372
- var _classPrivateFieldGet91, _this3 = this;
15460
+ var _classPrivateFieldGet94, _this3 = this;
15373
15461
  return _regenerator().w(function(_context) {
15374
15462
  while (1) switch (_context.n) {
15375
15463
  case 0:
15376
- return _context.a(2, (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.cancelFullscreen().then(function() {
15464
+ return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function() {
15377
15465
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
15378
15466
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
15379
15467
  }));
@@ -15389,11 +15477,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15389
15477
  key: "createOverlay",
15390
15478
  value: (function() {
15391
15479
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
15392
- var _classPrivateFieldGet92;
15480
+ var _classPrivateFieldGet95;
15393
15481
  return _regenerator().w(function(_context2) {
15394
15482
  while (1) switch (_context2.n) {
15395
15483
  case 0:
15396
- if (!((_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet92 !== void 0 && _classPrivateFieldGet92.defineOverlay)) {
15484
+ if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
15397
15485
  _context2.n = 1;
15398
15486
  break;
15399
15487
  }
@@ -15418,17 +15506,17 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15418
15506
  while (1) switch (_context5.n) {
15419
15507
  case 0:
15420
15508
  addPlugin = /* @__PURE__ */ (function() {
15421
- var _ref11 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
15422
- var _classPrivateFieldGet93, _classPrivateFieldGet94;
15509
+ var _ref12 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
15510
+ var _classPrivateFieldGet96, _classPrivateFieldGet97;
15423
15511
  return _regenerator().w(function(_context3) {
15424
15512
  while (1) switch (_context3.n) {
15425
15513
  case 0:
15426
- 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"))));
15514
+ 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"))));
15427
15515
  }
15428
15516
  }, _callee3);
15429
15517
  }));
15430
15518
  return function addPlugin2() {
15431
- return _ref11.apply(this, arguments);
15519
+ return _ref12.apply(this, arguments);
15432
15520
  };
15433
15521
  })();
15434
15522
  if (!_classPrivateFieldGet(_api, this)) {
@@ -15468,11 +15556,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15468
15556
  key: "deleteOverlay",
15469
15557
  value: (function() {
15470
15558
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
15471
- var _classPrivateFieldGet95;
15559
+ var _classPrivateFieldGet98;
15472
15560
  return _regenerator().w(function(_context6) {
15473
15561
  while (1) switch (_context6.n) {
15474
15562
  case 0:
15475
- if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.undefineOverlay)) {
15563
+ if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
15476
15564
  _context6.n = 1;
15477
15565
  break;
15478
15566
  }
@@ -15491,11 +15579,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15491
15579
  key: "disableControl",
15492
15580
  value: (function() {
15493
15581
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
15494
- var _classPrivateFieldGet96;
15582
+ var _classPrivateFieldGet99;
15495
15583
  return _regenerator().w(function(_context7) {
15496
15584
  while (1) switch (_context7.n) {
15497
15585
  case 0:
15498
- if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.setControlEnabled)) {
15586
+ if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
15499
15587
  _context7.n = 1;
15500
15588
  break;
15501
15589
  }
@@ -15514,11 +15602,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15514
15602
  key: "enableControl",
15515
15603
  value: (function() {
15516
15604
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
15517
- var _classPrivateFieldGet97;
15605
+ var _classPrivateFieldGet100;
15518
15606
  return _regenerator().w(function(_context8) {
15519
15607
  while (1) switch (_context8.n) {
15520
15608
  case 0:
15521
- if (!((_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet97 !== void 0 && _classPrivateFieldGet97.setControlEnabled)) {
15609
+ if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
15522
15610
  _context8.n = 1;
15523
15611
  break;
15524
15612
  }
@@ -15537,16 +15625,16 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15537
15625
  key: "enterInputContext",
15538
15626
  value: (function() {
15539
15627
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
15540
- var _classPrivateFieldGet98, _this5 = this;
15628
+ var _classPrivateFieldGet101, _this5 = this;
15541
15629
  return _regenerator().w(function(_context9) {
15542
15630
  while (1) switch (_context9.n) {
15543
15631
  case 0:
15544
- if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.enterInputContext)) {
15632
+ if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
15545
15633
  _context9.n = 1;
15546
15634
  break;
15547
15635
  }
15548
15636
  return _context9.a(2, new Promise(function(resolve) {
15549
- var _classPrivateFieldGet99;
15637
+ var _classPrivateFieldGet102;
15550
15638
  var _handler = function handler(event) {
15551
15639
  var detail = event.detail;
15552
15640
  if (detail.context === context) {
@@ -15555,7 +15643,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15555
15643
  _this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
15556
15644
  };
15557
15645
  _this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
15558
- (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.enterInputContext(context);
15646
+ (_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
15559
15647
  }));
15560
15648
  case 1:
15561
15649
  return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -15571,11 +15659,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15571
15659
  key: "exitInputContext",
15572
15660
  value: (function() {
15573
15661
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
15574
- var _classPrivateFieldGet100;
15662
+ var _classPrivateFieldGet103;
15575
15663
  return _regenerator().w(function(_context0) {
15576
15664
  while (1) switch (_context0.n) {
15577
15665
  case 0:
15578
- if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.exitInputContext)) {
15666
+ if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
15579
15667
  _context0.n = 1;
15580
15668
  break;
15581
15669
  }
@@ -15622,8 +15710,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15622
15710
  while (1) switch (_context10.n) {
15623
15711
  case 0:
15624
15712
  return _context10.a(2, new Promise(function(resolve, reject) {
15625
- var _classPrivateFieldGet101;
15626
- if ((_classPrivateFieldGet101 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
15713
+ var _classPrivateFieldGet104;
15714
+ if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
15627
15715
  resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
15628
15716
  }
15629
15717
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -15640,7 +15728,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15640
15728
  key: "getRemapTime",
15641
15729
  value: (function() {
15642
15730
  var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
15643
- var _classPrivateFieldGet102, _this7 = this;
15731
+ var _classPrivateFieldGet105, _this7 = this;
15644
15732
  var _t, _t2, _t3;
15645
15733
  return _regenerator().w(function(_context11) {
15646
15734
  while (1) switch (_context11.n) {
@@ -15660,11 +15748,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15660
15748
  });
15661
15749
  return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
15662
15750
  case 2:
15663
- if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet102 !== void 0)) {
15751
+ if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
15664
15752
  _context11.n = 3;
15665
15753
  break;
15666
15754
  }
15667
- _classPrivateFieldGet102;
15755
+ _classPrivateFieldGet105;
15668
15756
  _context11.n = 5;
15669
15757
  break;
15670
15758
  case 3:
@@ -15672,8 +15760,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15672
15760
  _t2 = _cachedRemapTime;
15673
15761
  _t3 = this;
15674
15762
  _context11.n = 4;
15675
- return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref13) {
15676
- var remapTime = _ref13.remapTime;
15763
+ return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref14) {
15764
+ var remapTime = _ref14.remapTime;
15677
15765
  return function(fromLanguage, toLanguage, fromTime) {
15678
15766
  var fromTimeInMilliseconds = fromTime * 1e3;
15679
15767
  var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
@@ -15701,11 +15789,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15701
15789
  key: "hideOverlay",
15702
15790
  value: (function() {
15703
15791
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
15704
- var _classPrivateFieldGet103;
15792
+ var _classPrivateFieldGet106;
15705
15793
  return _regenerator().w(function(_context12) {
15706
15794
  while (1) switch (_context12.n) {
15707
15795
  case 0:
15708
- if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.cancelOverlay)) {
15796
+ if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
15709
15797
  _context12.n = 1;
15710
15798
  break;
15711
15799
  }
@@ -15729,8 +15817,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15729
15817
  while (1) switch (_context13.n) {
15730
15818
  case 0:
15731
15819
  return _context13.a(2, new Promise(function(resolve, reject) {
15732
- var _classPrivateFieldGet104;
15733
- if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.popover) {
15820
+ var _classPrivateFieldGet107;
15821
+ if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
15734
15822
  _classPrivateFieldGet(_api, _this8).popover.hide();
15735
15823
  resolve();
15736
15824
  }
@@ -15747,14 +15835,14 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15747
15835
  }, {
15748
15836
  key: "languagesToLocalizations",
15749
15837
  value: function languagesToLocalizations(languages) {
15750
- var _classPrivateFieldGet105, _classPrivateFieldGet106;
15751
- return (_classPrivateFieldGet105 = (_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet105 !== void 0 ? _classPrivateFieldGet105 : [];
15838
+ var _classPrivateFieldGet108, _classPrivateFieldGet109;
15839
+ return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
15752
15840
  }
15753
15841
  }, {
15754
15842
  key: "languageToLocalization",
15755
15843
  value: function languageToLocalization(language) {
15756
- var _classPrivateFieldGet107, _classPrivateFieldGet108;
15757
- 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);
15844
+ var _classPrivateFieldGet110, _classPrivateFieldGet111;
15845
+ 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);
15758
15846
  }
15759
15847
  /**
15760
15848
  * Pauses the video.
@@ -15766,11 +15854,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15766
15854
  key: "pause",
15767
15855
  value: (function() {
15768
15856
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
15769
- var _classPrivateFieldGet109;
15857
+ var _classPrivateFieldGet112;
15770
15858
  return _regenerator().w(function(_context14) {
15771
15859
  while (1) switch (_context14.n) {
15772
15860
  case 0:
15773
- return _context14.a(2, (_classPrivateFieldGet109 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.pause());
15861
+ return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
15774
15862
  }
15775
15863
  }, _callee14, this);
15776
15864
  }));
@@ -15783,11 +15871,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15783
15871
  key: "play",
15784
15872
  value: (function() {
15785
15873
  var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
15786
- var _classPrivateFieldGet110;
15874
+ var _classPrivateFieldGet113;
15787
15875
  return _regenerator().w(function(_context15) {
15788
15876
  while (1) switch (_context15.n) {
15789
15877
  case 0:
15790
- return _context15.a(2, (_classPrivateFieldGet110 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.play());
15878
+ return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
15791
15879
  }
15792
15880
  }, _callee15, this);
15793
15881
  }));
@@ -15800,11 +15888,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15800
15888
  key: "releaseControls",
15801
15889
  value: (function() {
15802
15890
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
15803
- var _classPrivateFieldGet111;
15891
+ var _classPrivateFieldGet114;
15804
15892
  return _regenerator().w(function(_context16) {
15805
15893
  while (1) switch (_context16.n) {
15806
15894
  case 0:
15807
- return _context16.a(2, (_classPrivateFieldGet111 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.releaseControls(name));
15895
+ return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
15808
15896
  }
15809
15897
  }, _callee16, this);
15810
15898
  }));
@@ -15817,10 +15905,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15817
15905
  key: "removeAllEventListeners",
15818
15906
  value: function removeAllEventListeners() {
15819
15907
  var _this9 = this;
15820
- Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref14) {
15821
- var _ref15 = _slicedToArray(_ref14, 2), type = _ref15[0], listeners = _ref15[1];
15822
- listeners.forEach(function(_ref16) {
15823
- var listener = _ref16.listener, options = _ref16.options;
15908
+ Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref15) {
15909
+ var _ref16 = _slicedToArray(_ref15, 2), type = _ref16[0], listeners = _ref16[1];
15910
+ listeners.forEach(function(_ref17) {
15911
+ var listener = _ref17.listener, options = _ref17.options;
15824
15912
  _this9.removeEventListener(type, listener, options);
15825
15913
  });
15826
15914
  });
@@ -15865,7 +15953,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15865
15953
  case 0:
15866
15954
  options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
15867
15955
  return _context17.a(2, new Promise(function(resolve, reject) {
15868
- var _classPrivateFieldGet112;
15956
+ var _classPrivateFieldGet115;
15869
15957
  if (!_classPrivateFieldGet(_api, _this0)) {
15870
15958
  reject(new Error("api not ready to replace"));
15871
15959
  }
@@ -15875,7 +15963,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15875
15963
  resolve();
15876
15964
  };
15877
15965
  _this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
15878
- (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.replaceWith(mediaId, options);
15966
+ (_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
15879
15967
  }));
15880
15968
  }
15881
15969
  }, _callee17);
@@ -15889,11 +15977,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15889
15977
  key: "requestControls",
15890
15978
  value: (function() {
15891
15979
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
15892
- var _classPrivateFieldGet113;
15980
+ var _classPrivateFieldGet116;
15893
15981
  return _regenerator().w(function(_context18) {
15894
15982
  while (1) switch (_context18.n) {
15895
15983
  case 0:
15896
- return _context18.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.requestControls(name));
15984
+ return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
15897
15985
  }
15898
15986
  }, _callee18, this);
15899
15987
  }));
@@ -15906,11 +15994,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15906
15994
  key: "requestFullscreen",
15907
15995
  value: (function() {
15908
15996
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
15909
- var _classPrivateFieldGet114;
15997
+ var _classPrivateFieldGet117;
15910
15998
  return _regenerator().w(function(_context19) {
15911
15999
  while (1) switch (_context19.n) {
15912
16000
  case 0:
15913
- if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet114 !== void 0 && _classPrivateFieldGet114.requestFullscreen)) {
16001
+ if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
15914
16002
  _context19.n = 1;
15915
16003
  break;
15916
16004
  }
@@ -15929,11 +16017,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15929
16017
  key: "showOverlay",
15930
16018
  value: (function() {
15931
16019
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
15932
- var _classPrivateFieldGet115;
16020
+ var _classPrivateFieldGet118;
15933
16021
  return _regenerator().w(function(_context20) {
15934
16022
  while (1) switch (_context20.n) {
15935
16023
  case 0:
15936
- if (!((_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.requestOverlay)) {
16024
+ if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
15937
16025
  _context20.n = 1;
15938
16026
  break;
15939
16027
  }
@@ -15957,8 +16045,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15957
16045
  while (1) switch (_context21.n) {
15958
16046
  case 0:
15959
16047
  return _context21.a(2, new Promise(function(resolve, reject) {
15960
- var _classPrivateFieldGet116;
15961
- if ((_classPrivateFieldGet116 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet116 !== void 0 && _classPrivateFieldGet116.popover) {
16048
+ var _classPrivateFieldGet119;
16049
+ if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
15962
16050
  _classPrivateFieldGet(_api, _this1).popover.show();
15963
16051
  resolve();
15964
16052
  }
@@ -16182,7 +16270,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16182
16270
  }, {
16183
16271
  key: "disconnectedCallback",
16184
16272
  value: function disconnectedCallback() {
16185
- var _classPrivateFieldGet117, _classPrivateFieldGet118, _this$shadowRoot;
16273
+ var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
16186
16274
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
16187
16275
  return removeListener();
16188
16276
  });
@@ -16190,10 +16278,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16190
16278
  _classPrivateFieldSet(_eventListeners, this, {});
16191
16279
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
16192
16280
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
16193
- (_classPrivateFieldGet117 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.disconnect();
16281
+ (_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
16194
16282
  _classPrivateFieldSet(_resizeObserver, this, null);
16195
16283
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
16196
- (_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet118 === void 0 ? void 0 : _classPrivateFieldGet118.remove();
16284
+ (_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
16197
16285
  _classPrivateFieldSet(_api, this, null);
16198
16286
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
16199
16287
  _classPrivateFieldSet(_preactRoot, this, null);
@@ -16240,11 +16328,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
16240
16328
  return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
16241
16329
  }
16242
16330
  function _findLocalizationByLanguage(language) {
16243
- var _classPrivateFieldGet119;
16331
+ var _classPrivateFieldGet122;
16244
16332
  if (language == null) {
16245
16333
  return void 0;
16246
16334
  }
16247
- return (_classPrivateFieldGet119 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet119 === void 0 ? void 0 : _classPrivateFieldGet119.find(function(localization) {
16335
+ return (_classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.find(function(localization) {
16248
16336
  return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
16249
16337
  });
16250
16338
  }
@@ -16253,11 +16341,11 @@ function _generateUniqueId(mediaId) {
16253
16341
  return (0, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_22__.h)(prefix);
16254
16342
  }
16255
16343
  function _getSyncedEmbedOption(key) {
16256
- var _ref19, _ref20;
16344
+ var _ref20, _ref21;
16257
16345
  if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
16258
16346
  return _classPrivateFieldGet(_impl, this)._attrs[key];
16259
16347
  }
16260
- 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];
16348
+ 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];
16261
16349
  }
16262
16350
  function _getValueFromAttribute(name) {
16263
16351
  if (!this.hasAttribute(name)) {
@@ -16275,8 +16363,8 @@ function _getValueFromAttribute(name) {
16275
16363
  return this.getAttribute(name);
16276
16364
  }
16277
16365
  }
16278
- function _initPlayerEmbed(_ref21) {
16279
- var container = _ref21.container, mediaData = _ref21.mediaData;
16366
+ function _initPlayerEmbed(_ref22) {
16367
+ var container = _ref22.container, mediaData = _ref22.mediaData;
16280
16368
  if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
16281
16369
  return;
16282
16370
  }
@@ -16289,8 +16377,8 @@ function _initPlayerEmbed(_ref21) {
16289
16377
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
16290
16378
  }
16291
16379
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
16292
- var _classPrivateFieldGet120;
16293
- (_classPrivateFieldGet120 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.states.delete("--initializing");
16380
+ var _classPrivateFieldGet123;
16381
+ (_classPrivateFieldGet123 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.states.delete("--initializing");
16294
16382
  }
16295
16383
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
16296
16384
  container,
@@ -16336,10 +16424,10 @@ function _initPublicApi2() {
16336
16424
  _this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
16337
16425
  });
16338
16426
  _classPrivateFieldGet(_api, this).ready(function() {
16339
- var _classPrivateFieldGet127, _classPrivateFieldGet128;
16340
- (_classPrivateFieldGet127 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.disconnect();
16427
+ var _classPrivateFieldGet130, _classPrivateFieldGet131;
16428
+ (_classPrivateFieldGet130 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.disconnect();
16341
16429
  _classPrivateFieldSet(_resizeObserver, _this19, null);
16342
- (_classPrivateFieldGet128 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.remove();
16430
+ (_classPrivateFieldGet131 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.remove();
16343
16431
  _this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
16344
16432
  _this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
16345
16433
  detail: {
@@ -16354,8 +16442,8 @@ function _initPublicApi2() {
16354
16442
  }));
16355
16443
  _assertClassBrand(_WistiaPlayer_brand, _this19, _maybeSetupLLMOptimizedEmbed).call(_this19);
16356
16444
  if (_classPrivateFieldGet(_impl, _this19)) {
16357
- Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref26) {
16358
- var _ref27 = _slicedToArray(_ref26, 2), key = _ref27[0], value = _ref27[1];
16445
+ Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref27) {
16446
+ var _ref28 = _slicedToArray(_ref27, 2), key = _ref28[0], value = _ref28[1];
16359
16447
  _classPrivateFieldGet(_playerData, _this19).updateEmbedOptionOverrides(_defineProperty({}, key, value));
16360
16448
  });
16361
16449
  }
@@ -16411,8 +16499,8 @@ function _maybeInitializeMux2() {
16411
16499
  this.addEventListener("visitor-tracking-change", function(event) {
16412
16500
  var isTrackingEnabled = event.detail.isTrackingEnabled;
16413
16501
  if (!isTrackingEnabled) {
16414
- var _classPrivateFieldGet130, _classPrivateFieldGet131;
16415
- (_classPrivateFieldGet130 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : (_classPrivateFieldGet131 = _classPrivateFieldGet130.mux) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.destroy();
16502
+ var _classPrivateFieldGet133, _classPrivateFieldGet134;
16503
+ (_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133.mux) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.destroy();
16416
16504
  }
16417
16505
  });
16418
16506
  case 6:
@@ -16506,8 +16594,8 @@ function _renderEmbedTemplate() {
16506
16594
  alt: "",
16507
16595
  "aria-hidden": "true"
16508
16596
  })))), (0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
16509
- ref: function ref(_ref22) {
16510
- _classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref22);
16597
+ ref: function ref(_ref23) {
16598
+ _classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref23);
16511
16599
  }
16512
16600
  })), _classPrivateFieldGet(_preactRoot, this));
16513
16601
  }
@@ -16516,8 +16604,8 @@ function _renderPreloadThumbnail() {
16516
16604
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
16517
16605
  return;
16518
16606
  }
16519
- var _classPrivateFieldGet121 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet121.assets, mediaType = _classPrivateFieldGet121.mediaType, carouselHardWall = _classPrivateFieldGet121.carouselHardWall;
16520
- var _classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet122.autoPlay, plugin = _classPrivateFieldGet122.plugin;
16607
+ var _classPrivateFieldGet124 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet124.assets, mediaType = _classPrivateFieldGet124.mediaType, carouselHardWall = _classPrivateFieldGet124.carouselHardWall;
16608
+ var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet125.autoPlay, plugin = _classPrivateFieldGet125.plugin;
16521
16609
  if (carouselHardWall) {
16522
16610
  return;
16523
16611
  }
@@ -16553,12 +16641,12 @@ function _runMethodsFromAttributes() {
16553
16641
  var _this14 = this;
16554
16642
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
16555
16643
  this.whenApiReady().then(function() {
16556
- var _ref23, _classPrivateFieldGet123, _classPrivateFieldGet124;
16644
+ var _ref24, _classPrivateFieldGet126, _classPrivateFieldGet127;
16557
16645
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
16558
- 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;
16646
+ 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;
16559
16647
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
16560
16648
  var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
16561
- void ((_classPrivateFieldGet124 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.time(newTime, {
16649
+ void ((_classPrivateFieldGet127 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.time(newTime, {
16562
16650
  lazy: shouldDelayUntilPlay
16563
16651
  }));
16564
16652
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
@@ -16570,9 +16658,9 @@ function _runMethodsFromAttributes() {
16570
16658
  }
16571
16659
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
16572
16660
  this.whenApiReady().then(function() {
16573
- var _classPrivateFieldGet125;
16661
+ var _classPrivateFieldGet128;
16574
16662
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
16575
- (_classPrivateFieldGet125 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet125 === void 0 ? void 0 : _classPrivateFieldGet125.setVideoQuality(newQuality);
16663
+ (_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.setVideoQuality(newQuality);
16576
16664
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
16577
16665
  }).catch(function(_error) {
16578
16666
  });
@@ -16580,8 +16668,8 @@ function _runMethodsFromAttributes() {
16580
16668
  }
16581
16669
  function _saveInitialAttributesFromDomOptions() {
16582
16670
  var _this15 = this;
16583
- var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref24) {
16584
- var _ref25 = _slicedToArray(_ref24, 2), value = _ref25[1];
16671
+ var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref25) {
16672
+ var _ref26 = _slicedToArray(_ref25, 2), value = _ref26[1];
16585
16673
  return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, value.name)];
16586
16674
  }));
16587
16675
  _classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
@@ -16654,7 +16742,7 @@ function _updateMediaData(mediaData) {
16654
16742
  _assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
16655
16743
  }
16656
16744
  var getSwatchMetaData = /* @__PURE__ */ (function() {
16657
- var _ref17 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
16745
+ var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
16658
16746
  var swatch;
16659
16747
  return _regenerator().w(function(_context25) {
16660
16748
  while (1) switch (_context25.n) {
@@ -16669,11 +16757,11 @@ var getSwatchMetaData = /* @__PURE__ */ (function() {
16669
16757
  }, _callee25);
16670
16758
  }));
16671
16759
  return function getSwatchMetaData2(_x18) {
16672
- return _ref17.apply(this, arguments);
16760
+ return _ref18.apply(this, arguments);
16673
16761
  };
16674
16762
  })();
16675
16763
  var wistiaSwatchElement = /* @__PURE__ */ (function() {
16676
- var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
16764
+ var _ref19 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
16677
16765
  var swatchUrl, swatchImg, naturalHeight, naturalWidth, ratio, style;
16678
16766
  return _regenerator().w(function(_context26) {
16679
16767
  while (1) switch (_context26.n) {
@@ -16692,7 +16780,7 @@ var wistiaSwatchElement = /* @__PURE__ */ (function() {
16692
16780
  }, _callee26);
16693
16781
  }));
16694
16782
  return function wistiaSwatchElement2(_x19, _x20) {
16695
- return _ref18.apply(this, arguments);
16783
+ return _ref19.apply(this, arguments);
16696
16784
  };
16697
16785
  })();
16698
16786
  if (customElements.get("wistia-player") === void 0) {