@wistia/wistia-player-react 0.7.1 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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) {
@@ -3841,6 +3865,9 @@ var __webpack_modules__ = {
3841
3865
  var OBJ_PROP = "_namespacedLocalStorage";
3842
3866
  var localStorageWorks = function localStorageWorks2() {
3843
3867
  var ns = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "wistia-test-localstorage";
3868
+ if (typeof localStorage === "undefined") {
3869
+ return false;
3870
+ }
3844
3871
  if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks != null) {
3845
3872
  return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._localStorageWorks;
3846
3873
  }
@@ -5683,8 +5710,9 @@ var __webpack_modules__ = {
5683
5710
  /* harmony export */
5684
5711
  });
5685
5712
  var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(7350);
5686
- var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5417);
5687
- var _obj_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(731);
5713
+ var _color_utils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(998);
5714
+ var _color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5417);
5715
+ var _obj_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(731);
5688
5716
  function _slicedToArray2(r, e) {
5689
5717
  return _arrayWithHoles2(r) || _iterableToArrayLimit2(r, e) || _unsupportedIterableToArray2(r, e) || _nonIterableRest2();
5690
5718
  }
@@ -5731,12 +5759,12 @@ var __webpack_modules__ = {
5731
5759
  var GRADIENT_COLOR_INDEX = 0;
5732
5760
  var GRADIENT_PERCENTAGE_INDEX = 1;
5733
5761
  var DEFAULT_GRADIENT = {
5734
- colors: [["#2949E5", 0], ["#6A84FF", 1]],
5762
+ colors: [[_color_utils_ts__WEBPACK_IMPORTED_MODULE_1__.cO, 0], ["#6A84FF", 1]],
5735
5763
  on: true
5736
5764
  };
5737
5765
  var hexToRGBA = function hexToRGBA2(hex) {
5738
5766
  var alpha = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : DEFAULT_ALPHA;
5739
- var color = new _color_js__WEBPACK_IMPORTED_MODULE_1__.Q1(hex);
5767
+ var color = new _color_js__WEBPACK_IMPORTED_MODULE_2__.Q1(hex);
5740
5768
  var colorWithAlpha = color.alpha(alpha);
5741
5769
  return colorWithAlpha.toRgba();
5742
5770
  };
@@ -5776,6 +5804,12 @@ var __webpack_modules__ = {
5776
5804
  };
5777
5805
  return result;
5778
5806
  };
5807
+ var getPlayerColorOrFirstGradientStop = function getPlayerColorOrFirstGradientStop2(playerColor, gradient) {
5808
+ if (!isGradient(gradient) || !gradient.on) {
5809
+ return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
5810
+ }
5811
+ return addHashToHex(getGradientColor(gradient));
5812
+ };
5779
5813
  },
5780
5814
  /***/
5781
5815
  4400(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
@@ -7225,7 +7259,7 @@ var __webpack_modules__ = {
7225
7259
  }
7226
7260
  }]);
7227
7261
  })();
7228
- var addHashToHex = function addHashToHex2(hex) {
7262
+ var addHashToHex2 = function addHashToHex3(hex) {
7229
7263
  if (isNil(hex)) {
7230
7264
  return;
7231
7265
  }
@@ -8229,8 +8263,8 @@ var __webpack_modules__ = {
8229
8263
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8230
8264
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8231
8265
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8232
- var TAGGED_VERSION = "0.7.1";
8233
- var CURRENT_SHA = "7e67f7241d126c76aeb437d67f4e4cf1c7d30bd7";
8266
+ var TAGGED_VERSION = "0.7.4";
8267
+ var CURRENT_SHA = "cd6d5f204d2705b44830dc62fffa01754c68f1d5";
8234
8268
  var DEFAULT_PROTOCOL = (function() {
8235
8269
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
8236
8270
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -10408,11 +10442,11 @@ var __webpack_modules__ = {
10408
10442
  /* harmony export */
10409
10443
  b: () => (
10410
10444
  /* binding */
10411
- isGradient
10445
+ isGradient2
10412
10446
  )
10413
10447
  /* harmony export */
10414
10448
  });
10415
- var isGradient = function isGradient2(value) {
10449
+ var isGradient2 = function isGradient3(value) {
10416
10450
  if (typeof value !== "object" || value === null) {
10417
10451
  return false;
10418
10452
  }
@@ -14298,6 +14332,16 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14298
14332
  get: function get() {
14299
14333
  return _classPrivateFieldGet(_api, this);
14300
14334
  }
14335
+ /**
14336
+ * Returns the description of the video, as used in the JSON-LD schema
14337
+ * @returns {string}
14338
+ */
14339
+ }, {
14340
+ key: "description",
14341
+ get: function get() {
14342
+ var _ref5, _classPrivateFieldGet24, _classPrivateFieldGet25, _classPrivateFieldGet26;
14343
+ 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 : "";
14344
+ }
14301
14345
  /**
14302
14346
  * Returns the status of the do not track embed option that controls whether the player
14303
14347
  * sends tracking pings.
@@ -14318,8 +14362,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14318
14362
  }, {
14319
14363
  key: "duration",
14320
14364
  get: function get() {
14321
- var _classPrivateFieldGet24, _classPrivateFieldGet25;
14322
- return (_classPrivateFieldGet24 = (_classPrivateFieldGet25 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : _classPrivateFieldGet25.duration()) !== null && _classPrivateFieldGet24 !== void 0 ? _classPrivateFieldGet24 : 0;
14365
+ var _classPrivateFieldGet27, _classPrivateFieldGet28;
14366
+ return (_classPrivateFieldGet27 = (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.duration()) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : 0;
14323
14367
  }
14324
14368
  /**
14325
14369
  * Returns the email associated with this viewing session.
@@ -14332,8 +14376,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14332
14376
  }, {
14333
14377
  key: "email",
14334
14378
  get: function get() {
14335
- var _ref5, _ref6, _extractEmailFromPara, _classPrivateGetter2;
14336
- 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;
14379
+ var _ref6, _ref7, _extractEmailFromPara, _classPrivateGetter2;
14380
+ 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;
14337
14381
  },
14338
14382
  set: function set(newEmail) {
14339
14383
  if (this.email === newEmail) {
@@ -14373,8 +14417,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14373
14417
  }, {
14374
14418
  key: "ended",
14375
14419
  get: function get() {
14376
- var _classPrivateFieldGet26;
14377
- return ((_classPrivateFieldGet26 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.state()) === "ended";
14420
+ var _classPrivateFieldGet29;
14421
+ return ((_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === "ended";
14378
14422
  }
14379
14423
  /**
14380
14424
  * Returns the current end video behavior value
@@ -14387,11 +14431,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14387
14431
  },
14388
14432
  set: function set(behavior) {
14389
14433
  if (behavior === "loop") {
14390
- var _classPrivateFieldGet27;
14391
- (_classPrivateFieldGet27 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet27 === void 0 ? void 0 : _classPrivateFieldGet27.addLoopBehavior();
14434
+ var _classPrivateFieldGet30;
14435
+ (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.addLoopBehavior();
14392
14436
  } else {
14393
- var _classPrivateFieldGet28;
14394
- (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.removeLoopBehavior();
14437
+ var _classPrivateFieldGet31;
14438
+ (_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.removeLoopBehavior();
14395
14439
  }
14396
14440
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "endVideoBehavior", behavior);
14397
14441
  }
@@ -14402,8 +14446,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14402
14446
  }, {
14403
14447
  key: "eventKey",
14404
14448
  get: function get() {
14405
- var _classPrivateFieldGet29;
14406
- return (_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.eventKey();
14449
+ var _classPrivateFieldGet32;
14450
+ return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.eventKey();
14407
14451
  }
14408
14452
  /**
14409
14453
  * Returns how the video should be sized within its container.
@@ -14427,8 +14471,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14427
14471
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "fullscreenControl");
14428
14472
  },
14429
14473
  set: function set(shouldDisplay) {
14430
- var _classPrivateFieldGet30;
14431
- (_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.fullscreenControlEnabled(shouldDisplay);
14474
+ var _classPrivateFieldGet33;
14475
+ (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.fullscreenControlEnabled(shouldDisplay);
14432
14476
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "fullscreenControl", shouldDisplay);
14433
14477
  }
14434
14478
  /**
@@ -14451,14 +14495,14 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14451
14495
  }, {
14452
14496
  key: "inFullscreen",
14453
14497
  get: function get() {
14454
- var _classPrivateFieldGet31, _classPrivateFieldGet32;
14455
- return (_classPrivateFieldGet31 = (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.inFullscreen()) !== null && _classPrivateFieldGet31 !== void 0 ? _classPrivateFieldGet31 : false;
14498
+ var _classPrivateFieldGet34, _classPrivateFieldGet35;
14499
+ return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.inFullscreen()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
14456
14500
  }
14457
14501
  }, {
14458
14502
  key: "inputContext",
14459
14503
  get: function get() {
14460
- var _classPrivateFieldGet33;
14461
- return (_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.getInputContext();
14504
+ var _classPrivateFieldGet36;
14505
+ return (_classPrivateFieldGet36 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.getInputContext();
14462
14506
  }
14463
14507
  /**
14464
14508
  * Returns whether instantHLS is enabled for the video.
@@ -14467,26 +14511,26 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14467
14511
  }, {
14468
14512
  key: "instantHls",
14469
14513
  get: function get() {
14470
- var _classPrivateFieldGet34, _classPrivateFieldGet35;
14471
- return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.isInstantHls()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
14514
+ var _classPrivateFieldGet37, _classPrivateFieldGet38;
14515
+ return (_classPrivateFieldGet37 = (_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.isInstantHls()) !== null && _classPrivateFieldGet37 !== void 0 ? _classPrivateFieldGet37 : false;
14472
14516
  }
14473
14517
  // the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
14474
14518
  // eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
14475
14519
  }, {
14476
14520
  key: "language",
14477
14521
  get: function get() {
14478
- var _classPrivateFieldGet36, _classPrivateFieldGet37;
14479
- 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);
14522
+ var _classPrivateFieldGet39, _classPrivateFieldGet40;
14523
+ 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);
14480
14524
  },
14481
14525
  set: function set(language) {
14482
- var _classPrivateFieldGet38;
14483
- (_classPrivateFieldGet38 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.language(language);
14526
+ var _classPrivateFieldGet41;
14527
+ (_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.language(language);
14484
14528
  }
14485
14529
  }, {
14486
14530
  key: "languages",
14487
14531
  get: function get() {
14488
- var _classPrivateFieldGet39, _classPrivateFieldGet40;
14489
- 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)];
14532
+ var _classPrivateFieldGet42, _classPrivateFieldGet43;
14533
+ 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)];
14490
14534
  }
14491
14535
  /**
14492
14536
  * Returns all the mediaData set on the WistiaPlayer
@@ -14522,8 +14566,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14522
14566
  }, {
14523
14567
  key: "mediaLanguage",
14524
14568
  get: function get() {
14525
- var _classPrivateFieldGet41, _classPrivateFieldGet42;
14526
- 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);
14569
+ var _classPrivateFieldGet44, _classPrivateFieldGet45;
14570
+ 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);
14527
14571
  }
14528
14572
  /**
14529
14573
  * Changes the language of the media stream/content.
@@ -14533,18 +14577,18 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14533
14577
  }, {
14534
14578
  key: "mediaLanguageCode",
14535
14579
  get: function get() {
14536
- var _classPrivateFieldGet43, _classPrivateFieldGet44;
14537
- 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;
14580
+ var _classPrivateFieldGet46, _classPrivateFieldGet47;
14581
+ 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;
14538
14582
  },
14539
14583
  set: function set(languageCode) {
14540
- var _classPrivateFieldGet45;
14541
- (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.mediaLanguageCode(languageCode);
14584
+ var _classPrivateFieldGet48;
14585
+ (_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.mediaLanguageCode(languageCode);
14542
14586
  }
14543
14587
  }, {
14544
14588
  key: "mediaLanguages",
14545
14589
  get: function get() {
14546
- var _classPrivateFieldGet46, _classPrivateFieldGet47;
14547
- 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)];
14590
+ var _classPrivateFieldGet49, _classPrivateFieldGet50;
14591
+ 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)];
14548
14592
  }
14549
14593
  /**
14550
14594
  * Returns if player is currently muted
@@ -14553,8 +14597,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14553
14597
  }, {
14554
14598
  key: "muted",
14555
14599
  get: function get() {
14556
- var _ref7, _classPrivateFieldGet48, _classPrivateFieldGet49;
14557
- 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;
14600
+ var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52;
14601
+ 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;
14558
14602
  },
14559
14603
  set: function set(shouldMute) {
14560
14604
  if (_classPrivateFieldGet(_impl, this)) {
@@ -14574,8 +14618,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14574
14618
  }, {
14575
14619
  key: "name",
14576
14620
  get: function get() {
14577
- var _ref8, _classPrivateFieldGet50, _classPrivateFieldGet51, _classPrivateFieldGet52;
14578
- 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;
14621
+ var _ref9, _classPrivateFieldGet53, _classPrivateFieldGet54, _classPrivateFieldGet55;
14622
+ 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;
14579
14623
  }
14580
14624
  /**
14581
14625
  * Returns the status of the opaqueControls embed option, which determines
@@ -14589,9 +14633,9 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14589
14633
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "opaqueControls");
14590
14634
  },
14591
14635
  set: function set(opaqueControls) {
14592
- var _classPrivateFieldGet53;
14636
+ var _classPrivateFieldGet56;
14593
14637
  var valueAsBoolean = Boolean(opaqueControls);
14594
- (_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.opaqueControls(valueAsBoolean);
14638
+ (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.opaqueControls(valueAsBoolean);
14595
14639
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "opaqueControls", valueAsBoolean);
14596
14640
  }
14597
14641
  }, {
@@ -14609,8 +14653,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14609
14653
  }, {
14610
14654
  key: "paused",
14611
14655
  get: function get() {
14612
- var _classPrivateFieldGet54;
14613
- return ((_classPrivateFieldGet54 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : _classPrivateFieldGet54.state()) === "paused";
14656
+ var _classPrivateFieldGet57;
14657
+ return ((_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.state()) === "paused";
14614
14658
  }
14615
14659
  /**
14616
14660
  * Returns the percent of the video that has been watched as a decimal between 0 and 1.
@@ -14619,8 +14663,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14619
14663
  }, {
14620
14664
  key: "percentWatched",
14621
14665
  get: function get() {
14622
- var _classPrivateFieldGet55, _classPrivateFieldGet56;
14623
- return (_classPrivateFieldGet55 = (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.percentWatched()) !== null && _classPrivateFieldGet55 !== void 0 ? _classPrivateFieldGet55 : 0;
14666
+ var _classPrivateFieldGet58, _classPrivateFieldGet59;
14667
+ return (_classPrivateFieldGet58 = (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.percentWatched()) !== null && _classPrivateFieldGet58 !== void 0 ? _classPrivateFieldGet58 : 0;
14624
14668
  }
14625
14669
  /**
14626
14670
  * Returns the playback rate of the video.
@@ -14629,12 +14673,12 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14629
14673
  }, {
14630
14674
  key: "playbackRate",
14631
14675
  get: function get() {
14632
- var _ref9, _classPrivateFieldGet57, _classPrivateFieldGet58;
14633
- 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;
14676
+ var _ref0, _classPrivateFieldGet60, _classPrivateFieldGet61;
14677
+ 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;
14634
14678
  },
14635
14679
  set: function set(rate) {
14636
- var _classPrivateFieldGet59;
14637
- (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRate(rate);
14680
+ var _classPrivateFieldGet62;
14681
+ (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbackRate(rate);
14638
14682
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
14639
14683
  }
14640
14684
  /**
@@ -14647,8 +14691,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14647
14691
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
14648
14692
  },
14649
14693
  set: function set(shouldDisplay) {
14650
- var _classPrivateFieldGet60;
14651
- (_classPrivateFieldGet60 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.playbackRateControlEnabled(shouldDisplay);
14694
+ var _classPrivateFieldGet63;
14695
+ (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
14652
14696
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
14653
14697
  }
14654
14698
  /**
@@ -14661,8 +14705,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14661
14705
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
14662
14706
  },
14663
14707
  set: function set(shouldDisplay) {
14664
- var _classPrivateFieldGet61;
14665
- (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbarControlEnabled(shouldDisplay);
14708
+ var _classPrivateFieldGet64;
14709
+ (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playbarControlEnabled(shouldDisplay);
14666
14710
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
14667
14711
  }
14668
14712
  /**
@@ -14675,8 +14719,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14675
14719
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
14676
14720
  },
14677
14721
  set: function set(radius) {
14678
- var _classPrivateFieldGet62;
14679
- (_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.setPlayerBorderRadius(Number(radius));
14722
+ var _classPrivateFieldGet65;
14723
+ (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setPlayerBorderRadius(Number(radius));
14680
14724
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", Number(radius));
14681
14725
  }
14682
14726
  /**
@@ -14694,8 +14738,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14694
14738
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
14695
14739
  },
14696
14740
  set: function set(newColor) {
14697
- var _classPrivateFieldGet63;
14698
- (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playerColor(newColor);
14741
+ var _classPrivateFieldGet66;
14742
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
14699
14743
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
14700
14744
  }
14701
14745
  /**
@@ -14712,11 +14756,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14712
14756
  return void 0;
14713
14757
  },
14714
14758
  set: function set(gradient) {
14715
- var _classPrivateFieldGet64;
14759
+ var _classPrivateFieldGet67;
14716
14760
  if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__.b)(gradient)) {
14717
14761
  throw new Error("playerColorGradient must be a valid gradient object");
14718
14762
  }
14719
- (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playerColorGradient(gradient);
14763
+ (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playerColorGradient(gradient);
14720
14764
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
14721
14765
  }
14722
14766
  /**
@@ -14729,8 +14773,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14729
14773
  }, {
14730
14774
  key: "playerForce",
14731
14775
  get: function get() {
14732
- var _ref0;
14733
- return (_ref0 = this.getAttribute("player-force")) !== null && _ref0 !== void 0 ? _ref0 : void 0;
14776
+ var _ref1;
14777
+ return (_ref1 = this.getAttribute("player-force")) !== null && _ref1 !== void 0 ? _ref1 : void 0;
14734
14778
  },
14735
14779
  set: function set(newPlayer) {
14736
14780
  _classPrivateFieldGet(_logger, this).info("set playerForce", newPlayer);
@@ -14774,8 +14818,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14774
14818
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
14775
14819
  },
14776
14820
  set: function set(shouldDisplay) {
14777
- var _classPrivateFieldGet65;
14778
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playPauseControlEnabled(shouldDisplay);
14821
+ var _classPrivateFieldGet68;
14822
+ (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
14779
14823
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
14780
14824
  }
14781
14825
  /**
@@ -14790,8 +14834,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
14790
14834
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
14791
14835
  },
14792
14836
  set: function set(shouldDisplay) {
14793
- var _classPrivateFieldGet66;
14794
- (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playPauseNotifierEnabled(shouldDisplay);
14837
+ var _classPrivateFieldGet69;
14838
+ (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playPauseNotifierEnabled(shouldDisplay);
14795
14839
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
14796
14840
  }
14797
14841
  /**
@@ -15011,8 +15055,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15011
15055
  }, {
15012
15056
  key: "preload",
15013
15057
  get: function get() {
15014
- var _ref1, _classPrivateFieldGet67, _classPrivateFieldGet68;
15015
- 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";
15058
+ var _ref10, _classPrivateFieldGet70, _classPrivateFieldGet71;
15059
+ 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";
15016
15060
  },
15017
15061
  set: function set(preloadValue) {
15018
15062
  var prevVal = this.preload;
@@ -15032,8 +15076,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15032
15076
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
15033
15077
  },
15034
15078
  set: function set(shouldDisplay) {
15035
- var _classPrivateFieldGet69;
15036
- (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.qualityControlEnabled(shouldDisplay);
15079
+ var _classPrivateFieldGet72;
15080
+ (_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.qualityControlEnabled(shouldDisplay);
15037
15081
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
15038
15082
  }
15039
15083
  /**
@@ -15046,8 +15090,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15046
15090
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
15047
15091
  },
15048
15092
  set: function set(quality) {
15049
- var _classPrivateFieldGet70;
15050
- (_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.qualityMax(quality);
15093
+ var _classPrivateFieldGet73;
15094
+ (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.qualityMax(quality);
15051
15095
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
15052
15096
  }
15053
15097
  /**
@@ -15060,8 +15104,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15060
15104
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
15061
15105
  },
15062
15106
  set: function set(quality) {
15063
- var _classPrivateFieldGet71;
15064
- (_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.qualityMin(quality);
15107
+ var _classPrivateFieldGet74;
15108
+ (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.qualityMin(quality);
15065
15109
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
15066
15110
  }
15067
15111
  /**
@@ -15071,8 +15115,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15071
15115
  }, {
15072
15116
  key: "readyState",
15073
15117
  get: function get() {
15074
- var _classPrivateFieldGet72, _classPrivateFieldGet73;
15075
- return (_classPrivateFieldGet72 = (_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.getReadyState()) !== null && _classPrivateFieldGet72 !== void 0 ? _classPrivateFieldGet72 : 0;
15118
+ var _classPrivateFieldGet75, _classPrivateFieldGet76;
15119
+ return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.getReadyState()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
15076
15120
  }
15077
15121
  /**
15078
15122
  * Returns the current resumable status of the video.
@@ -15085,8 +15129,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15085
15129
  return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable")) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : "auto";
15086
15130
  },
15087
15131
  set: function set(resumableState) {
15088
- var _classPrivateFieldGet74;
15089
- (_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.setResumable(resumableState);
15132
+ var _classPrivateFieldGet77;
15133
+ (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
15090
15134
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
15091
15135
  }
15092
15136
  /**
@@ -15099,8 +15143,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15099
15143
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
15100
15144
  },
15101
15145
  set: function set(radius) {
15102
- var _classPrivateFieldGet75;
15103
- (_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.setRoundedPlayer(Number(radius));
15146
+ var _classPrivateFieldGet78;
15147
+ (_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
15104
15148
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
15105
15149
  }
15106
15150
  /**
@@ -15111,8 +15155,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15111
15155
  }, {
15112
15156
  key: "secondsWatched",
15113
15157
  get: function get() {
15114
- var _classPrivateFieldGet76, _classPrivateFieldGet77;
15115
- return (_classPrivateFieldGet76 = (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.secondsWatched()) !== null && _classPrivateFieldGet76 !== void 0 ? _classPrivateFieldGet76 : 0;
15158
+ var _classPrivateFieldGet79, _classPrivateFieldGet80;
15159
+ return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
15116
15160
  }
15117
15161
  /**
15118
15162
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -15121,8 +15165,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15121
15165
  }, {
15122
15166
  key: "secondsWatchedVector",
15123
15167
  get: function get() {
15124
- var _classPrivateFieldGet78, _classPrivateFieldGet79;
15125
- return (_classPrivateFieldGet78 = (_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.secondsWatchedVector()) !== null && _classPrivateFieldGet78 !== void 0 ? _classPrivateFieldGet78 : [];
15168
+ var _classPrivateFieldGet81, _classPrivateFieldGet82;
15169
+ return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
15126
15170
  }
15127
15171
  /**
15128
15172
  * Returns whether JSON+LD seo data will be injected.
@@ -15146,8 +15190,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15146
15190
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
15147
15191
  },
15148
15192
  set: function set(shouldDisplay) {
15149
- var _classPrivateFieldGet80;
15150
- (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.settingsControlEnabled(shouldDisplay);
15193
+ var _classPrivateFieldGet83;
15194
+ (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
15151
15195
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
15152
15196
  }
15153
15197
  /**
@@ -15169,10 +15213,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15169
15213
  }, {
15170
15214
  key: "sourceLanguage",
15171
15215
  get: function get() {
15172
- var _classPrivateFieldGet81, _classPrivateFieldGet82, _classPrivateFieldGet83;
15173
- return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.find(function(loc) {
15216
+ var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
15217
+ return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function(loc) {
15174
15218
  return loc.isOriginal;
15175
- })) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : (_classPrivateFieldGet83 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83[0];
15219
+ })) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
15176
15220
  }
15177
15221
  /**
15178
15222
  * Returns the source media id for the player. If a player has different localized versions,
@@ -15192,8 +15236,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15192
15236
  }, {
15193
15237
  key: "state",
15194
15238
  get: function get() {
15195
- var _classPrivateFieldGet84, _classPrivateFieldGet85;
15196
- return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.state()) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : defaultEmbedOptions.state;
15239
+ var _classPrivateFieldGet87, _classPrivateFieldGet88;
15240
+ return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
15197
15241
  }
15198
15242
  /**
15199
15243
  * Returns the stats url for the player.
@@ -15275,12 +15319,12 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15275
15319
  }, {
15276
15320
  key: "videoQuality",
15277
15321
  get: function get() {
15278
- var _ref10, _classPrivateFieldGet86, _classPrivateFieldGet87;
15279
- 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";
15322
+ var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
15323
+ 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";
15280
15324
  },
15281
15325
  set: function set(quality) {
15282
- var _classPrivateFieldGet88;
15283
- (_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.setVideoQuality(quality);
15326
+ var _classPrivateFieldGet91;
15327
+ (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
15284
15328
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
15285
15329
  }
15286
15330
  /**
@@ -15303,8 +15347,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15303
15347
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
15304
15348
  },
15305
15349
  set: function set(level) {
15306
- var _classPrivateFieldGet89;
15307
- (_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.volume(level);
15350
+ var _classPrivateFieldGet92;
15351
+ (_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
15308
15352
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
15309
15353
  }
15310
15354
  /**
@@ -15319,8 +15363,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15319
15363
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
15320
15364
  },
15321
15365
  set: function set(shouldDisplay) {
15322
- var _classPrivateFieldGet90;
15323
- (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.volumeControlEnabled(shouldDisplay);
15366
+ var _classPrivateFieldGet93;
15367
+ (_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
15324
15368
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
15325
15369
  }
15326
15370
  /**
@@ -15366,11 +15410,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15366
15410
  key: "cancelFullscreen",
15367
15411
  value: (function() {
15368
15412
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
15369
- var _classPrivateFieldGet91, _this3 = this;
15413
+ var _classPrivateFieldGet94, _this3 = this;
15370
15414
  return _regenerator().w(function(_context) {
15371
15415
  while (1) switch (_context.n) {
15372
15416
  case 0:
15373
- return _context.a(2, (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.cancelFullscreen().then(function() {
15417
+ return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function() {
15374
15418
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
15375
15419
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
15376
15420
  }));
@@ -15386,11 +15430,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15386
15430
  key: "createOverlay",
15387
15431
  value: (function() {
15388
15432
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
15389
- var _classPrivateFieldGet92;
15433
+ var _classPrivateFieldGet95;
15390
15434
  return _regenerator().w(function(_context2) {
15391
15435
  while (1) switch (_context2.n) {
15392
15436
  case 0:
15393
- if (!((_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet92 !== void 0 && _classPrivateFieldGet92.defineOverlay)) {
15437
+ if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
15394
15438
  _context2.n = 1;
15395
15439
  break;
15396
15440
  }
@@ -15415,17 +15459,17 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15415
15459
  while (1) switch (_context5.n) {
15416
15460
  case 0:
15417
15461
  addPlugin = /* @__PURE__ */ (function() {
15418
- var _ref11 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
15419
- var _classPrivateFieldGet93, _classPrivateFieldGet94;
15462
+ var _ref12 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
15463
+ var _classPrivateFieldGet96, _classPrivateFieldGet97;
15420
15464
  return _regenerator().w(function(_context3) {
15421
15465
  while (1) switch (_context3.n) {
15422
15466
  case 0:
15423
- 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"))));
15467
+ 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"))));
15424
15468
  }
15425
15469
  }, _callee3);
15426
15470
  }));
15427
15471
  return function addPlugin2() {
15428
- return _ref11.apply(this, arguments);
15472
+ return _ref12.apply(this, arguments);
15429
15473
  };
15430
15474
  })();
15431
15475
  if (!_classPrivateFieldGet(_api, this)) {
@@ -15465,11 +15509,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15465
15509
  key: "deleteOverlay",
15466
15510
  value: (function() {
15467
15511
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
15468
- var _classPrivateFieldGet95;
15512
+ var _classPrivateFieldGet98;
15469
15513
  return _regenerator().w(function(_context6) {
15470
15514
  while (1) switch (_context6.n) {
15471
15515
  case 0:
15472
- if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.undefineOverlay)) {
15516
+ if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
15473
15517
  _context6.n = 1;
15474
15518
  break;
15475
15519
  }
@@ -15488,11 +15532,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15488
15532
  key: "disableControl",
15489
15533
  value: (function() {
15490
15534
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
15491
- var _classPrivateFieldGet96;
15535
+ var _classPrivateFieldGet99;
15492
15536
  return _regenerator().w(function(_context7) {
15493
15537
  while (1) switch (_context7.n) {
15494
15538
  case 0:
15495
- if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.setControlEnabled)) {
15539
+ if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
15496
15540
  _context7.n = 1;
15497
15541
  break;
15498
15542
  }
@@ -15511,11 +15555,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15511
15555
  key: "enableControl",
15512
15556
  value: (function() {
15513
15557
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
15514
- var _classPrivateFieldGet97;
15558
+ var _classPrivateFieldGet100;
15515
15559
  return _regenerator().w(function(_context8) {
15516
15560
  while (1) switch (_context8.n) {
15517
15561
  case 0:
15518
- if (!((_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet97 !== void 0 && _classPrivateFieldGet97.setControlEnabled)) {
15562
+ if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
15519
15563
  _context8.n = 1;
15520
15564
  break;
15521
15565
  }
@@ -15534,16 +15578,16 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15534
15578
  key: "enterInputContext",
15535
15579
  value: (function() {
15536
15580
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
15537
- var _classPrivateFieldGet98, _this5 = this;
15581
+ var _classPrivateFieldGet101, _this5 = this;
15538
15582
  return _regenerator().w(function(_context9) {
15539
15583
  while (1) switch (_context9.n) {
15540
15584
  case 0:
15541
- if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.enterInputContext)) {
15585
+ if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
15542
15586
  _context9.n = 1;
15543
15587
  break;
15544
15588
  }
15545
15589
  return _context9.a(2, new Promise(function(resolve) {
15546
- var _classPrivateFieldGet99;
15590
+ var _classPrivateFieldGet102;
15547
15591
  var _handler = function handler(event) {
15548
15592
  var detail = event.detail;
15549
15593
  if (detail.context === context) {
@@ -15552,7 +15596,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15552
15596
  _this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
15553
15597
  };
15554
15598
  _this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
15555
- (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.enterInputContext(context);
15599
+ (_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
15556
15600
  }));
15557
15601
  case 1:
15558
15602
  return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -15568,11 +15612,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15568
15612
  key: "exitInputContext",
15569
15613
  value: (function() {
15570
15614
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
15571
- var _classPrivateFieldGet100;
15615
+ var _classPrivateFieldGet103;
15572
15616
  return _regenerator().w(function(_context0) {
15573
15617
  while (1) switch (_context0.n) {
15574
15618
  case 0:
15575
- if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.exitInputContext)) {
15619
+ if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
15576
15620
  _context0.n = 1;
15577
15621
  break;
15578
15622
  }
@@ -15619,8 +15663,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15619
15663
  while (1) switch (_context10.n) {
15620
15664
  case 0:
15621
15665
  return _context10.a(2, new Promise(function(resolve, reject) {
15622
- var _classPrivateFieldGet101;
15623
- if ((_classPrivateFieldGet101 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
15666
+ var _classPrivateFieldGet104;
15667
+ if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
15624
15668
  resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
15625
15669
  }
15626
15670
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -15637,7 +15681,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15637
15681
  key: "getRemapTime",
15638
15682
  value: (function() {
15639
15683
  var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
15640
- var _classPrivateFieldGet102, _this7 = this;
15684
+ var _classPrivateFieldGet105, _this7 = this;
15641
15685
  var _t, _t2, _t3;
15642
15686
  return _regenerator().w(function(_context11) {
15643
15687
  while (1) switch (_context11.n) {
@@ -15657,11 +15701,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15657
15701
  });
15658
15702
  return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
15659
15703
  case 2:
15660
- if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet102 !== void 0)) {
15704
+ if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
15661
15705
  _context11.n = 3;
15662
15706
  break;
15663
15707
  }
15664
- _classPrivateFieldGet102;
15708
+ _classPrivateFieldGet105;
15665
15709
  _context11.n = 5;
15666
15710
  break;
15667
15711
  case 3:
@@ -15669,8 +15713,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15669
15713
  _t2 = _cachedRemapTime;
15670
15714
  _t3 = this;
15671
15715
  _context11.n = 4;
15672
- return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref13) {
15673
- var remapTime = _ref13.remapTime;
15716
+ return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref14) {
15717
+ var remapTime = _ref14.remapTime;
15674
15718
  return function(fromLanguage, toLanguage, fromTime) {
15675
15719
  var fromTimeInMilliseconds = fromTime * 1e3;
15676
15720
  var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
@@ -15698,11 +15742,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15698
15742
  key: "hideOverlay",
15699
15743
  value: (function() {
15700
15744
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
15701
- var _classPrivateFieldGet103;
15745
+ var _classPrivateFieldGet106;
15702
15746
  return _regenerator().w(function(_context12) {
15703
15747
  while (1) switch (_context12.n) {
15704
15748
  case 0:
15705
- if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.cancelOverlay)) {
15749
+ if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
15706
15750
  _context12.n = 1;
15707
15751
  break;
15708
15752
  }
@@ -15726,8 +15770,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15726
15770
  while (1) switch (_context13.n) {
15727
15771
  case 0:
15728
15772
  return _context13.a(2, new Promise(function(resolve, reject) {
15729
- var _classPrivateFieldGet104;
15730
- if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.popover) {
15773
+ var _classPrivateFieldGet107;
15774
+ if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
15731
15775
  _classPrivateFieldGet(_api, _this8).popover.hide();
15732
15776
  resolve();
15733
15777
  }
@@ -15744,14 +15788,14 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15744
15788
  }, {
15745
15789
  key: "languagesToLocalizations",
15746
15790
  value: function languagesToLocalizations(languages) {
15747
- var _classPrivateFieldGet105, _classPrivateFieldGet106;
15748
- return (_classPrivateFieldGet105 = (_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet105 !== void 0 ? _classPrivateFieldGet105 : [];
15791
+ var _classPrivateFieldGet108, _classPrivateFieldGet109;
15792
+ return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
15749
15793
  }
15750
15794
  }, {
15751
15795
  key: "languageToLocalization",
15752
15796
  value: function languageToLocalization(language) {
15753
- var _classPrivateFieldGet107, _classPrivateFieldGet108;
15754
- 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);
15797
+ var _classPrivateFieldGet110, _classPrivateFieldGet111;
15798
+ 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);
15755
15799
  }
15756
15800
  /**
15757
15801
  * Pauses the video.
@@ -15763,11 +15807,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15763
15807
  key: "pause",
15764
15808
  value: (function() {
15765
15809
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
15766
- var _classPrivateFieldGet109;
15810
+ var _classPrivateFieldGet112;
15767
15811
  return _regenerator().w(function(_context14) {
15768
15812
  while (1) switch (_context14.n) {
15769
15813
  case 0:
15770
- return _context14.a(2, (_classPrivateFieldGet109 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.pause());
15814
+ return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
15771
15815
  }
15772
15816
  }, _callee14, this);
15773
15817
  }));
@@ -15780,11 +15824,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15780
15824
  key: "play",
15781
15825
  value: (function() {
15782
15826
  var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
15783
- var _classPrivateFieldGet110;
15827
+ var _classPrivateFieldGet113;
15784
15828
  return _regenerator().w(function(_context15) {
15785
15829
  while (1) switch (_context15.n) {
15786
15830
  case 0:
15787
- return _context15.a(2, (_classPrivateFieldGet110 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.play());
15831
+ return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
15788
15832
  }
15789
15833
  }, _callee15, this);
15790
15834
  }));
@@ -15797,11 +15841,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15797
15841
  key: "releaseControls",
15798
15842
  value: (function() {
15799
15843
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
15800
- var _classPrivateFieldGet111;
15844
+ var _classPrivateFieldGet114;
15801
15845
  return _regenerator().w(function(_context16) {
15802
15846
  while (1) switch (_context16.n) {
15803
15847
  case 0:
15804
- return _context16.a(2, (_classPrivateFieldGet111 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.releaseControls(name));
15848
+ return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
15805
15849
  }
15806
15850
  }, _callee16, this);
15807
15851
  }));
@@ -15814,10 +15858,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15814
15858
  key: "removeAllEventListeners",
15815
15859
  value: function removeAllEventListeners() {
15816
15860
  var _this9 = this;
15817
- Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref14) {
15818
- var _ref15 = _slicedToArray(_ref14, 2), type = _ref15[0], listeners = _ref15[1];
15819
- listeners.forEach(function(_ref16) {
15820
- var listener = _ref16.listener, options = _ref16.options;
15861
+ Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref15) {
15862
+ var _ref16 = _slicedToArray(_ref15, 2), type = _ref16[0], listeners = _ref16[1];
15863
+ listeners.forEach(function(_ref17) {
15864
+ var listener = _ref17.listener, options = _ref17.options;
15821
15865
  _this9.removeEventListener(type, listener, options);
15822
15866
  });
15823
15867
  });
@@ -15862,7 +15906,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15862
15906
  case 0:
15863
15907
  options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
15864
15908
  return _context17.a(2, new Promise(function(resolve, reject) {
15865
- var _classPrivateFieldGet112;
15909
+ var _classPrivateFieldGet115;
15866
15910
  if (!_classPrivateFieldGet(_api, _this0)) {
15867
15911
  reject(new Error("api not ready to replace"));
15868
15912
  }
@@ -15872,7 +15916,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15872
15916
  resolve();
15873
15917
  };
15874
15918
  _this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
15875
- (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.replaceWith(mediaId, options);
15919
+ (_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
15876
15920
  }));
15877
15921
  }
15878
15922
  }, _callee17);
@@ -15886,11 +15930,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15886
15930
  key: "requestControls",
15887
15931
  value: (function() {
15888
15932
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
15889
- var _classPrivateFieldGet113;
15933
+ var _classPrivateFieldGet116;
15890
15934
  return _regenerator().w(function(_context18) {
15891
15935
  while (1) switch (_context18.n) {
15892
15936
  case 0:
15893
- return _context18.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.requestControls(name));
15937
+ return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
15894
15938
  }
15895
15939
  }, _callee18, this);
15896
15940
  }));
@@ -15903,11 +15947,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15903
15947
  key: "requestFullscreen",
15904
15948
  value: (function() {
15905
15949
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
15906
- var _classPrivateFieldGet114;
15950
+ var _classPrivateFieldGet117;
15907
15951
  return _regenerator().w(function(_context19) {
15908
15952
  while (1) switch (_context19.n) {
15909
15953
  case 0:
15910
- if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet114 !== void 0 && _classPrivateFieldGet114.requestFullscreen)) {
15954
+ if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
15911
15955
  _context19.n = 1;
15912
15956
  break;
15913
15957
  }
@@ -15926,11 +15970,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15926
15970
  key: "showOverlay",
15927
15971
  value: (function() {
15928
15972
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
15929
- var _classPrivateFieldGet115;
15973
+ var _classPrivateFieldGet118;
15930
15974
  return _regenerator().w(function(_context20) {
15931
15975
  while (1) switch (_context20.n) {
15932
15976
  case 0:
15933
- if (!((_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.requestOverlay)) {
15977
+ if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
15934
15978
  _context20.n = 1;
15935
15979
  break;
15936
15980
  }
@@ -15954,8 +15998,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15954
15998
  while (1) switch (_context21.n) {
15955
15999
  case 0:
15956
16000
  return _context21.a(2, new Promise(function(resolve, reject) {
15957
- var _classPrivateFieldGet116;
15958
- if ((_classPrivateFieldGet116 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet116 !== void 0 && _classPrivateFieldGet116.popover) {
16001
+ var _classPrivateFieldGet119;
16002
+ if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
15959
16003
  _classPrivateFieldGet(_api, _this1).popover.show();
15960
16004
  resolve();
15961
16005
  }
@@ -16179,7 +16223,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16179
16223
  }, {
16180
16224
  key: "disconnectedCallback",
16181
16225
  value: function disconnectedCallback() {
16182
- var _classPrivateFieldGet117, _classPrivateFieldGet118, _this$shadowRoot;
16226
+ var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
16183
16227
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
16184
16228
  return removeListener();
16185
16229
  });
@@ -16187,10 +16231,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16187
16231
  _classPrivateFieldSet(_eventListeners, this, {});
16188
16232
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
16189
16233
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
16190
- (_classPrivateFieldGet117 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.disconnect();
16234
+ (_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
16191
16235
  _classPrivateFieldSet(_resizeObserver, this, null);
16192
16236
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
16193
- (_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet118 === void 0 ? void 0 : _classPrivateFieldGet118.remove();
16237
+ (_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
16194
16238
  _classPrivateFieldSet(_api, this, null);
16195
16239
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
16196
16240
  _classPrivateFieldSet(_preactRoot, this, null);
@@ -16237,11 +16281,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
16237
16281
  return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
16238
16282
  }
16239
16283
  function _findLocalizationByLanguage(language) {
16240
- var _classPrivateFieldGet119;
16284
+ var _classPrivateFieldGet122;
16241
16285
  if (language == null) {
16242
16286
  return void 0;
16243
16287
  }
16244
- return (_classPrivateFieldGet119 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet119 === void 0 ? void 0 : _classPrivateFieldGet119.find(function(localization) {
16288
+ return (_classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.find(function(localization) {
16245
16289
  return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
16246
16290
  });
16247
16291
  }
@@ -16250,11 +16294,11 @@ function _generateUniqueId(mediaId) {
16250
16294
  return (0, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_22__.h)(prefix);
16251
16295
  }
16252
16296
  function _getSyncedEmbedOption(key) {
16253
- var _ref19, _ref20;
16297
+ var _ref20, _ref21;
16254
16298
  if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
16255
16299
  return _classPrivateFieldGet(_impl, this)._attrs[key];
16256
16300
  }
16257
- 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];
16301
+ 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];
16258
16302
  }
16259
16303
  function _getValueFromAttribute(name) {
16260
16304
  if (!this.hasAttribute(name)) {
@@ -16272,8 +16316,8 @@ function _getValueFromAttribute(name) {
16272
16316
  return this.getAttribute(name);
16273
16317
  }
16274
16318
  }
16275
- function _initPlayerEmbed(_ref21) {
16276
- var container = _ref21.container, mediaData = _ref21.mediaData;
16319
+ function _initPlayerEmbed(_ref22) {
16320
+ var container = _ref22.container, mediaData = _ref22.mediaData;
16277
16321
  if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
16278
16322
  return;
16279
16323
  }
@@ -16286,8 +16330,8 @@ function _initPlayerEmbed(_ref21) {
16286
16330
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
16287
16331
  }
16288
16332
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
16289
- var _classPrivateFieldGet120;
16290
- (_classPrivateFieldGet120 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.states.delete("--initializing");
16333
+ var _classPrivateFieldGet123;
16334
+ (_classPrivateFieldGet123 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.states.delete("--initializing");
16291
16335
  }
16292
16336
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
16293
16337
  container,
@@ -16333,10 +16377,10 @@ function _initPublicApi2() {
16333
16377
  _this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
16334
16378
  });
16335
16379
  _classPrivateFieldGet(_api, this).ready(function() {
16336
- var _classPrivateFieldGet127, _classPrivateFieldGet128;
16337
- (_classPrivateFieldGet127 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.disconnect();
16380
+ var _classPrivateFieldGet130, _classPrivateFieldGet131;
16381
+ (_classPrivateFieldGet130 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.disconnect();
16338
16382
  _classPrivateFieldSet(_resizeObserver, _this19, null);
16339
- (_classPrivateFieldGet128 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.remove();
16383
+ (_classPrivateFieldGet131 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.remove();
16340
16384
  _this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
16341
16385
  _this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
16342
16386
  detail: {
@@ -16351,8 +16395,8 @@ function _initPublicApi2() {
16351
16395
  }));
16352
16396
  _assertClassBrand(_WistiaPlayer_brand, _this19, _maybeSetupLLMOptimizedEmbed).call(_this19);
16353
16397
  if (_classPrivateFieldGet(_impl, _this19)) {
16354
- Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref26) {
16355
- var _ref27 = _slicedToArray(_ref26, 2), key = _ref27[0], value = _ref27[1];
16398
+ Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref27) {
16399
+ var _ref28 = _slicedToArray(_ref27, 2), key = _ref28[0], value = _ref28[1];
16356
16400
  _classPrivateFieldGet(_playerData, _this19).updateEmbedOptionOverrides(_defineProperty({}, key, value));
16357
16401
  });
16358
16402
  }
@@ -16408,8 +16452,8 @@ function _maybeInitializeMux2() {
16408
16452
  this.addEventListener("visitor-tracking-change", function(event) {
16409
16453
  var isTrackingEnabled = event.detail.isTrackingEnabled;
16410
16454
  if (!isTrackingEnabled) {
16411
- var _classPrivateFieldGet130, _classPrivateFieldGet131;
16412
- (_classPrivateFieldGet130 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : (_classPrivateFieldGet131 = _classPrivateFieldGet130.mux) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.destroy();
16455
+ var _classPrivateFieldGet133, _classPrivateFieldGet134;
16456
+ (_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133.mux) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.destroy();
16413
16457
  }
16414
16458
  });
16415
16459
  case 6:
@@ -16503,8 +16547,8 @@ function _renderEmbedTemplate() {
16503
16547
  alt: "",
16504
16548
  "aria-hidden": "true"
16505
16549
  })))), (0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
16506
- ref: function ref(_ref22) {
16507
- _classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref22);
16550
+ ref: function ref(_ref23) {
16551
+ _classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref23);
16508
16552
  }
16509
16553
  })), _classPrivateFieldGet(_preactRoot, this));
16510
16554
  }
@@ -16513,8 +16557,8 @@ function _renderPreloadThumbnail() {
16513
16557
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
16514
16558
  return;
16515
16559
  }
16516
- var _classPrivateFieldGet121 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet121.assets, mediaType = _classPrivateFieldGet121.mediaType, carouselHardWall = _classPrivateFieldGet121.carouselHardWall;
16517
- var _classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet122.autoPlay, plugin = _classPrivateFieldGet122.plugin;
16560
+ var _classPrivateFieldGet124 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet124.assets, mediaType = _classPrivateFieldGet124.mediaType, carouselHardWall = _classPrivateFieldGet124.carouselHardWall;
16561
+ var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet125.autoPlay, plugin = _classPrivateFieldGet125.plugin;
16518
16562
  if (carouselHardWall) {
16519
16563
  return;
16520
16564
  }
@@ -16550,12 +16594,12 @@ function _runMethodsFromAttributes() {
16550
16594
  var _this14 = this;
16551
16595
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
16552
16596
  this.whenApiReady().then(function() {
16553
- var _ref23, _classPrivateFieldGet123, _classPrivateFieldGet124;
16597
+ var _ref24, _classPrivateFieldGet126, _classPrivateFieldGet127;
16554
16598
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
16555
- 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;
16599
+ 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;
16556
16600
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
16557
16601
  var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
16558
- void ((_classPrivateFieldGet124 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.time(newTime, {
16602
+ void ((_classPrivateFieldGet127 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.time(newTime, {
16559
16603
  lazy: shouldDelayUntilPlay
16560
16604
  }));
16561
16605
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
@@ -16567,9 +16611,9 @@ function _runMethodsFromAttributes() {
16567
16611
  }
16568
16612
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
16569
16613
  this.whenApiReady().then(function() {
16570
- var _classPrivateFieldGet125;
16614
+ var _classPrivateFieldGet128;
16571
16615
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
16572
- (_classPrivateFieldGet125 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet125 === void 0 ? void 0 : _classPrivateFieldGet125.setVideoQuality(newQuality);
16616
+ (_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.setVideoQuality(newQuality);
16573
16617
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
16574
16618
  }).catch(function(_error) {
16575
16619
  });
@@ -16577,8 +16621,8 @@ function _runMethodsFromAttributes() {
16577
16621
  }
16578
16622
  function _saveInitialAttributesFromDomOptions() {
16579
16623
  var _this15 = this;
16580
- var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref24) {
16581
- var _ref25 = _slicedToArray(_ref24, 2), value = _ref25[1];
16624
+ var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref25) {
16625
+ var _ref26 = _slicedToArray(_ref25, 2), value = _ref26[1];
16582
16626
  return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, value.name)];
16583
16627
  }));
16584
16628
  _classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
@@ -16651,7 +16695,7 @@ function _updateMediaData(mediaData) {
16651
16695
  _assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
16652
16696
  }
16653
16697
  var getSwatchMetaData = /* @__PURE__ */ (function() {
16654
- var _ref17 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
16698
+ var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
16655
16699
  var swatch;
16656
16700
  return _regenerator().w(function(_context25) {
16657
16701
  while (1) switch (_context25.n) {
@@ -16666,11 +16710,11 @@ var getSwatchMetaData = /* @__PURE__ */ (function() {
16666
16710
  }, _callee25);
16667
16711
  }));
16668
16712
  return function getSwatchMetaData2(_x18) {
16669
- return _ref17.apply(this, arguments);
16713
+ return _ref18.apply(this, arguments);
16670
16714
  };
16671
16715
  })();
16672
16716
  var wistiaSwatchElement = /* @__PURE__ */ (function() {
16673
- var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
16717
+ var _ref19 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
16674
16718
  var swatchUrl, swatchImg, naturalHeight, naturalWidth, ratio, style;
16675
16719
  return _regenerator().w(function(_context26) {
16676
16720
  while (1) switch (_context26.n) {
@@ -16689,7 +16733,7 @@ var wistiaSwatchElement = /* @__PURE__ */ (function() {
16689
16733
  }, _callee26);
16690
16734
  }));
16691
16735
  return function wistiaSwatchElement2(_x19, _x20) {
16692
- return _ref18.apply(this, arguments);
16736
+ return _ref19.apply(this, arguments);
16693
16737
  };
16694
16738
  })();
16695
16739
  if (customElements.get("wistia-player") === void 0) {