@wistia/wistia-player-react 0.7.9 → 0.7.11

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.
@@ -3859,6 +3859,7 @@ var __webpack_modules__ = {
3859
3859
  var INTERNAL_API_ON_FIND_EVENT = "internal-api-on-find";
3860
3860
  var LOADED_MEDIA_DATA_EVENT = "loaded-media-data";
3861
3861
  var MUTE_CHANGE_EVENT = "mute-change";
3862
+ var PLAYER_COLOR_CHANGE_EVENT = "playercolorchange";
3862
3863
  var TIME_UPDATE_EVENT = "time-update";
3863
3864
  },
3864
3865
  /***/
@@ -8299,8 +8300,8 @@ var __webpack_modules__ = {
8299
8300
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8300
8301
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8301
8302
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8302
- var TAGGED_VERSION = "0.7.9";
8303
- var CURRENT_SHA = "f687c0d6bd2f62a0c4122049c5b6b997521198c1";
8303
+ var TAGGED_VERSION = "0.7.11";
8304
+ var CURRENT_SHA = "e2b1e0432986d2868cf12a063602f2fbf0b88593";
8304
8305
  var DEFAULT_PROTOCOL = (function() {
8305
8306
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
8306
8307
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -13970,7 +13971,7 @@ function _assertClassBrand(e, t, n) {
13970
13971
  throw new TypeError("Private element is not present on this object");
13971
13972
  }
13972
13973
  var requiredAttributes = ["media-id"];
13973
- var optionalPublicAttributes = ["aspect", "audio-description-control", "autoplay", "big-play-button", "branding", "contrast-icons", "controls-visible-on-load", "copy-link-and-thumbnail", "current-time", "do-not-track", "email", "end-video-behavior", "fit-strategy", "fullscreen-control", "language", "muted", "opaque-controls", "playback-rate-control", "play-bar-control", "player-color", "playlist-links", "playlist-loop", "play-pause-control", "play-pause-notifier", "popover-animate-thumbnail", "popover-animation", "popover-border-color", "popover-border-radius", "popover-border-width", "popover-box-shadow", "popover-caption", "popover-caption-container", "popover-content", "popover-disable-autoplay", "popover-overlay-color", "popover-overlay-opacity", "popover-prevent-scroll", "popover-show-on-load", "poster", "preload", "quality-control", "quality-max", "quality-min", "resumable", "rounded-player", "rounded-playlist", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
13974
+ var optionalPublicAttributes = ["aspect", "audio-description-control", "autoplay", "big-play-button", "branding", "contrast-icons", "controls-visible-on-load", "copy-link-and-thumbnail", "current-time", "do-not-track", "email", "end-video-behavior", "fit-strategy", "fullscreen-control", "language", "muted", "opaque-controls", "playback-rate-control", "play-bar-control", "player-color", "playlist-links", "playlist-loop", "play-pause-control", "play-pause-notifier", "popover-animate-thumbnail", "popover-animation", "popover-border-color", "popover-border-radius", "popover-border-width", "popover-box-shadow", "popover-caption", "popover-caption-container", "popover-content", "popover-disable-autoplay", "popover-overlay-color", "popover-overlay-opacity", "popover-prevent-scroll", "popover-show-on-load", "poster", "preload", "quality-control", "quality-max", "quality-min", "resumable", "rounded-player", "rounded-playlist", "rotate-to-fullscreen", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
13974
13975
  var optionalPrivateAttributes = ["big-play-button-border-radius", "control-bar-border-radius", "embed-host", "hls", "page-url", "player-border-radius", "player-force", "stats-url", "swatch", "unique-id", "use-web-component"];
13975
13976
  var defaultEmbedOptions = {
13976
13977
  audioDescriptionControl: false,
@@ -14015,6 +14016,7 @@ var defaultEmbedOptions = {
14015
14016
  qualityMax: void 0,
14016
14017
  qualityMin: void 0,
14017
14018
  resumable: "auto",
14019
+ rotateToFullscreen: false,
14018
14020
  roundedPlayer: void 0,
14019
14021
  seo: true,
14020
14022
  settingsControl: true,
@@ -15203,6 +15205,23 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15203
15205
  (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
15204
15206
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
15205
15207
  }
15208
+ /**
15209
+ * Returns whether the player enters fullscreen when a touch device is rotated
15210
+ * to landscape while the video is playing (and exits on rotate back to
15211
+ * portrait). Opt-in; off by default.
15212
+ * @returns {boolean}
15213
+ */
15214
+ }, {
15215
+ key: "rotateToFullscreen",
15216
+ get: function get() {
15217
+ return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "rotateToFullscreen");
15218
+ },
15219
+ set: function set(shouldRotateToFullscreen) {
15220
+ var _classPrivateFieldGet78;
15221
+ var attrAsBoolean = shouldRotateToFullscreen === "true" || shouldRotateToFullscreen === true;
15222
+ (_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.rotateToFullscreen(attrAsBoolean);
15223
+ _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "rotateToFullscreen", attrAsBoolean);
15224
+ }
15206
15225
  /**
15207
15226
  * Returns a value which controls all rounded corners of the player.
15208
15227
  * @returns {number}
@@ -15213,8 +15232,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15213
15232
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
15214
15233
  },
15215
15234
  set: function set(radius) {
15216
- var _classPrivateFieldGet78;
15217
- (_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
15235
+ var _classPrivateFieldGet79;
15236
+ (_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.setRoundedPlayer(Number(radius));
15218
15237
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
15219
15238
  }
15220
15239
  /**
@@ -15225,8 +15244,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15225
15244
  }, {
15226
15245
  key: "secondsWatched",
15227
15246
  get: function get() {
15228
- var _classPrivateFieldGet79, _classPrivateFieldGet80;
15229
- return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
15247
+ var _classPrivateFieldGet80, _classPrivateFieldGet81;
15248
+ return (_classPrivateFieldGet80 = (_classPrivateFieldGet81 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.secondsWatched()) !== null && _classPrivateFieldGet80 !== void 0 ? _classPrivateFieldGet80 : 0;
15230
15249
  }
15231
15250
  /**
15232
15251
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -15235,8 +15254,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15235
15254
  }, {
15236
15255
  key: "secondsWatchedVector",
15237
15256
  get: function get() {
15238
- var _classPrivateFieldGet81, _classPrivateFieldGet82;
15239
- return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
15257
+ var _classPrivateFieldGet82, _classPrivateFieldGet83;
15258
+ return (_classPrivateFieldGet82 = (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.secondsWatchedVector()) !== null && _classPrivateFieldGet82 !== void 0 ? _classPrivateFieldGet82 : [];
15240
15259
  }
15241
15260
  /**
15242
15261
  * Returns whether JSON+LD seo data will be injected.
@@ -15260,8 +15279,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15260
15279
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
15261
15280
  },
15262
15281
  set: function set(shouldDisplay) {
15263
- var _classPrivateFieldGet83;
15264
- (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
15282
+ var _classPrivateFieldGet84;
15283
+ (_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.settingsControlEnabled(shouldDisplay);
15265
15284
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
15266
15285
  }
15267
15286
  /**
@@ -15283,10 +15302,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15283
15302
  }, {
15284
15303
  key: "sourceLanguage",
15285
15304
  get: function get() {
15286
- var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
15287
- return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function(loc) {
15305
+ var _classPrivateFieldGet85, _classPrivateFieldGet86, _classPrivateFieldGet87;
15306
+ return (_classPrivateFieldGet85 = (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.find(function(loc) {
15288
15307
  return loc.isOriginal;
15289
- })) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
15308
+ })) !== null && _classPrivateFieldGet85 !== void 0 ? _classPrivateFieldGet85 : (_classPrivateFieldGet87 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87[0];
15290
15309
  }
15291
15310
  /**
15292
15311
  * Returns the source media id for the player. If a player has different localized versions,
@@ -15306,8 +15325,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15306
15325
  }, {
15307
15326
  key: "state",
15308
15327
  get: function get() {
15309
- var _classPrivateFieldGet87, _classPrivateFieldGet88;
15310
- return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
15328
+ var _classPrivateFieldGet88, _classPrivateFieldGet89;
15329
+ return (_classPrivateFieldGet88 = (_classPrivateFieldGet89 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.state()) !== null && _classPrivateFieldGet88 !== void 0 ? _classPrivateFieldGet88 : defaultEmbedOptions.state;
15311
15330
  }
15312
15331
  /**
15313
15332
  * Returns the stats url for the player.
@@ -15389,12 +15408,12 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15389
15408
  }, {
15390
15409
  key: "videoQuality",
15391
15410
  get: function get() {
15392
- var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
15393
- 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";
15411
+ var _ref11, _classPrivateFieldGet90, _classPrivateFieldGet91;
15412
+ return (_ref11 = (_classPrivateFieldGet90 = (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.getVideoQuality()) !== null && _classPrivateFieldGet90 !== void 0 ? _classPrivateFieldGet90 : this.embedOptions.videoQuality) !== null && _ref11 !== void 0 ? _ref11 : "auto";
15394
15413
  },
15395
15414
  set: function set(quality) {
15396
- var _classPrivateFieldGet91;
15397
- (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
15415
+ var _classPrivateFieldGet92;
15416
+ (_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.setVideoQuality(quality);
15398
15417
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
15399
15418
  }
15400
15419
  /**
@@ -15417,8 +15436,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15417
15436
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
15418
15437
  },
15419
15438
  set: function set(level) {
15420
- var _classPrivateFieldGet92;
15421
- (_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
15439
+ var _classPrivateFieldGet93;
15440
+ (_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volume(level);
15422
15441
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
15423
15442
  }
15424
15443
  /**
@@ -15433,8 +15452,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15433
15452
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
15434
15453
  },
15435
15454
  set: function set(shouldDisplay) {
15436
- var _classPrivateFieldGet93;
15437
- (_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
15455
+ var _classPrivateFieldGet94;
15456
+ (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.volumeControlEnabled(shouldDisplay);
15438
15457
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
15439
15458
  }
15440
15459
  /**
@@ -15480,11 +15499,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15480
15499
  key: "cancelFullscreen",
15481
15500
  value: (function() {
15482
15501
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
15483
- var _classPrivateFieldGet94, _this3 = this;
15502
+ var _classPrivateFieldGet95, _this3 = this;
15484
15503
  return _regenerator().w(function(_context) {
15485
15504
  while (1) switch (_context.n) {
15486
15505
  case 0:
15487
- return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function() {
15506
+ return _context.a(2, (_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.cancelFullscreen().then(function() {
15488
15507
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
15489
15508
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
15490
15509
  }));
@@ -15500,11 +15519,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15500
15519
  key: "createOverlay",
15501
15520
  value: (function() {
15502
15521
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
15503
- var _classPrivateFieldGet95;
15522
+ var _classPrivateFieldGet96;
15504
15523
  return _regenerator().w(function(_context2) {
15505
15524
  while (1) switch (_context2.n) {
15506
15525
  case 0:
15507
- if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
15526
+ if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.defineOverlay)) {
15508
15527
  _context2.n = 1;
15509
15528
  break;
15510
15529
  }
@@ -15530,11 +15549,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15530
15549
  case 0:
15531
15550
  addPlugin = /* @__PURE__ */ (function() {
15532
15551
  var _ref12 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
15533
- var _classPrivateFieldGet96, _classPrivateFieldGet97;
15552
+ var _classPrivateFieldGet97, _classPrivateFieldGet98;
15534
15553
  return _regenerator().w(function(_context3) {
15535
15554
  while (1) switch (_context3.n) {
15536
15555
  case 0:
15537
- 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"))));
15556
+ return _context3.a(2, (_classPrivateFieldGet97 = (_classPrivateFieldGet98 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.addPlugin(name, options)) !== null && _classPrivateFieldGet97 !== void 0 ? _classPrivateFieldGet97 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15538
15557
  }
15539
15558
  }, _callee3);
15540
15559
  }));
@@ -15579,11 +15598,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15579
15598
  key: "deleteOverlay",
15580
15599
  value: (function() {
15581
15600
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
15582
- var _classPrivateFieldGet98;
15601
+ var _classPrivateFieldGet99;
15583
15602
  return _regenerator().w(function(_context6) {
15584
15603
  while (1) switch (_context6.n) {
15585
15604
  case 0:
15586
- if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
15605
+ if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.undefineOverlay)) {
15587
15606
  _context6.n = 1;
15588
15607
  break;
15589
15608
  }
@@ -15602,11 +15621,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15602
15621
  key: "disableControl",
15603
15622
  value: (function() {
15604
15623
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
15605
- var _classPrivateFieldGet99;
15624
+ var _classPrivateFieldGet100;
15606
15625
  return _regenerator().w(function(_context7) {
15607
15626
  while (1) switch (_context7.n) {
15608
15627
  case 0:
15609
- if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
15628
+ if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
15610
15629
  _context7.n = 1;
15611
15630
  break;
15612
15631
  }
@@ -15625,11 +15644,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15625
15644
  key: "enableControl",
15626
15645
  value: (function() {
15627
15646
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
15628
- var _classPrivateFieldGet100;
15647
+ var _classPrivateFieldGet101;
15629
15648
  return _regenerator().w(function(_context8) {
15630
15649
  while (1) switch (_context8.n) {
15631
15650
  case 0:
15632
- if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
15651
+ if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.setControlEnabled)) {
15633
15652
  _context8.n = 1;
15634
15653
  break;
15635
15654
  }
@@ -15648,16 +15667,16 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15648
15667
  key: "enterInputContext",
15649
15668
  value: (function() {
15650
15669
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
15651
- var _classPrivateFieldGet101, _this5 = this;
15670
+ var _classPrivateFieldGet102, _this5 = this;
15652
15671
  return _regenerator().w(function(_context9) {
15653
15672
  while (1) switch (_context9.n) {
15654
15673
  case 0:
15655
- if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
15674
+ if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet102 !== void 0 && _classPrivateFieldGet102.enterInputContext)) {
15656
15675
  _context9.n = 1;
15657
15676
  break;
15658
15677
  }
15659
15678
  return _context9.a(2, new Promise(function(resolve) {
15660
- var _classPrivateFieldGet102;
15679
+ var _classPrivateFieldGet103;
15661
15680
  var _handler = function handler(event) {
15662
15681
  var detail = event.detail;
15663
15682
  if (detail.context === context) {
@@ -15666,7 +15685,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15666
15685
  _this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
15667
15686
  };
15668
15687
  _this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
15669
- (_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
15688
+ (_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.enterInputContext(context);
15670
15689
  }));
15671
15690
  case 1:
15672
15691
  return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -15682,11 +15701,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15682
15701
  key: "exitInputContext",
15683
15702
  value: (function() {
15684
15703
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
15685
- var _classPrivateFieldGet103;
15704
+ var _classPrivateFieldGet104;
15686
15705
  return _regenerator().w(function(_context0) {
15687
15706
  while (1) switch (_context0.n) {
15688
15707
  case 0:
15689
- if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
15708
+ if (!((_classPrivateFieldGet104 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.exitInputContext)) {
15690
15709
  _context0.n = 1;
15691
15710
  break;
15692
15711
  }
@@ -15733,8 +15752,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15733
15752
  while (1) switch (_context10.n) {
15734
15753
  case 0:
15735
15754
  return _context10.a(2, new Promise(function(resolve, reject) {
15736
- var _classPrivateFieldGet104;
15737
- if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
15755
+ var _classPrivateFieldGet105;
15756
+ if ((_classPrivateFieldGet105 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet105 !== void 0 && _classPrivateFieldGet105.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
15738
15757
  resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
15739
15758
  }
15740
15759
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -15751,7 +15770,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15751
15770
  key: "getRemapTime",
15752
15771
  value: (function() {
15753
15772
  var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
15754
- var _classPrivateFieldGet105, _this7 = this;
15773
+ var _classPrivateFieldGet106, _this7 = this;
15755
15774
  var _t, _t2, _t3;
15756
15775
  return _regenerator().w(function(_context11) {
15757
15776
  while (1) switch (_context11.n) {
@@ -15771,11 +15790,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15771
15790
  });
15772
15791
  return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
15773
15792
  case 2:
15774
- if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
15793
+ if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet106 !== void 0)) {
15775
15794
  _context11.n = 3;
15776
15795
  break;
15777
15796
  }
15778
- _classPrivateFieldGet105;
15797
+ _classPrivateFieldGet106;
15779
15798
  _context11.n = 5;
15780
15799
  break;
15781
15800
  case 3:
@@ -15812,11 +15831,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15812
15831
  key: "hideOverlay",
15813
15832
  value: (function() {
15814
15833
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
15815
- var _classPrivateFieldGet106;
15834
+ var _classPrivateFieldGet107;
15816
15835
  return _regenerator().w(function(_context12) {
15817
15836
  while (1) switch (_context12.n) {
15818
15837
  case 0:
15819
- if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
15838
+ if (!((_classPrivateFieldGet107 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.cancelOverlay)) {
15820
15839
  _context12.n = 1;
15821
15840
  break;
15822
15841
  }
@@ -15840,8 +15859,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15840
15859
  while (1) switch (_context13.n) {
15841
15860
  case 0:
15842
15861
  return _context13.a(2, new Promise(function(resolve, reject) {
15843
- var _classPrivateFieldGet107;
15844
- if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
15862
+ var _classPrivateFieldGet108;
15863
+ if ((_classPrivateFieldGet108 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet108 !== void 0 && _classPrivateFieldGet108.popover) {
15845
15864
  _classPrivateFieldGet(_api, _this8).popover.hide();
15846
15865
  resolve();
15847
15866
  }
@@ -15858,14 +15877,14 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15858
15877
  }, {
15859
15878
  key: "languagesToLocalizations",
15860
15879
  value: function languagesToLocalizations(languages) {
15861
- var _classPrivateFieldGet108, _classPrivateFieldGet109;
15862
- return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
15880
+ var _classPrivateFieldGet109, _classPrivateFieldGet110;
15881
+ return (_classPrivateFieldGet109 = (_classPrivateFieldGet110 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet109 !== void 0 ? _classPrivateFieldGet109 : [];
15863
15882
  }
15864
15883
  }, {
15865
15884
  key: "languageToLocalization",
15866
15885
  value: function languageToLocalization(language) {
15867
- var _classPrivateFieldGet110, _classPrivateFieldGet111;
15868
- 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);
15886
+ var _classPrivateFieldGet111, _classPrivateFieldGet112;
15887
+ return (_classPrivateFieldGet111 = (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.languageToLocalization(language)) !== null && _classPrivateFieldGet111 !== void 0 ? _classPrivateFieldGet111 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
15869
15888
  }
15870
15889
  /**
15871
15890
  * Pauses the video.
@@ -15877,11 +15896,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15877
15896
  key: "pause",
15878
15897
  value: (function() {
15879
15898
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
15880
- var _classPrivateFieldGet112;
15899
+ var _classPrivateFieldGet113;
15881
15900
  return _regenerator().w(function(_context14) {
15882
15901
  while (1) switch (_context14.n) {
15883
15902
  case 0:
15884
- return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
15903
+ return _context14.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.pause());
15885
15904
  }
15886
15905
  }, _callee14, this);
15887
15906
  }));
@@ -15894,11 +15913,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15894
15913
  key: "play",
15895
15914
  value: (function() {
15896
15915
  var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
15897
- var _classPrivateFieldGet113;
15916
+ var _classPrivateFieldGet114;
15898
15917
  return _regenerator().w(function(_context15) {
15899
15918
  while (1) switch (_context15.n) {
15900
15919
  case 0:
15901
- return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
15920
+ return _context15.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.play());
15902
15921
  }
15903
15922
  }, _callee15, this);
15904
15923
  }));
@@ -15911,11 +15930,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15911
15930
  key: "releaseControls",
15912
15931
  value: (function() {
15913
15932
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
15914
- var _classPrivateFieldGet114;
15933
+ var _classPrivateFieldGet115;
15915
15934
  return _regenerator().w(function(_context16) {
15916
15935
  while (1) switch (_context16.n) {
15917
15936
  case 0:
15918
- return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
15937
+ return _context16.a(2, (_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.releaseControls(name));
15919
15938
  }
15920
15939
  }, _callee16, this);
15921
15940
  }));
@@ -15976,7 +15995,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15976
15995
  case 0:
15977
15996
  options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
15978
15997
  return _context17.a(2, new Promise(function(resolve, reject) {
15979
- var _classPrivateFieldGet115;
15998
+ var _classPrivateFieldGet116;
15980
15999
  if (!_classPrivateFieldGet(_api, _this0)) {
15981
16000
  reject(new Error("api not ready to replace"));
15982
16001
  }
@@ -15986,7 +16005,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
15986
16005
  resolve();
15987
16006
  };
15988
16007
  _this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
15989
- (_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
16008
+ (_classPrivateFieldGet116 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.replaceWith(mediaId, options);
15990
16009
  }));
15991
16010
  }
15992
16011
  }, _callee17);
@@ -16000,11 +16019,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16000
16019
  key: "requestControls",
16001
16020
  value: (function() {
16002
16021
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
16003
- var _classPrivateFieldGet116;
16022
+ var _classPrivateFieldGet117;
16004
16023
  return _regenerator().w(function(_context18) {
16005
16024
  while (1) switch (_context18.n) {
16006
16025
  case 0:
16007
- return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
16026
+ return _context18.a(2, (_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.requestControls(name));
16008
16027
  }
16009
16028
  }, _callee18, this);
16010
16029
  }));
@@ -16017,11 +16036,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16017
16036
  key: "requestFullscreen",
16018
16037
  value: (function() {
16019
16038
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
16020
- var _classPrivateFieldGet117;
16039
+ var _classPrivateFieldGet118;
16021
16040
  return _regenerator().w(function(_context19) {
16022
16041
  while (1) switch (_context19.n) {
16023
16042
  case 0:
16024
- if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
16043
+ if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestFullscreen)) {
16025
16044
  _context19.n = 1;
16026
16045
  break;
16027
16046
  }
@@ -16040,11 +16059,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16040
16059
  key: "showOverlay",
16041
16060
  value: (function() {
16042
16061
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
16043
- var _classPrivateFieldGet118;
16062
+ var _classPrivateFieldGet119;
16044
16063
  return _regenerator().w(function(_context20) {
16045
16064
  while (1) switch (_context20.n) {
16046
16065
  case 0:
16047
- if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
16066
+ if (!((_classPrivateFieldGet119 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.requestOverlay)) {
16048
16067
  _context20.n = 1;
16049
16068
  break;
16050
16069
  }
@@ -16068,8 +16087,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16068
16087
  while (1) switch (_context21.n) {
16069
16088
  case 0:
16070
16089
  return _context21.a(2, new Promise(function(resolve, reject) {
16071
- var _classPrivateFieldGet119;
16072
- if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
16090
+ var _classPrivateFieldGet120;
16091
+ if ((_classPrivateFieldGet120 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet120 !== void 0 && _classPrivateFieldGet120.popover) {
16073
16092
  _classPrivateFieldGet(_api, _this1).popover.show();
16074
16093
  resolve();
16075
16094
  }
@@ -16293,7 +16312,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16293
16312
  }, {
16294
16313
  key: "disconnectedCallback",
16295
16314
  value: function disconnectedCallback() {
16296
- var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
16315
+ var _classPrivateFieldGet121, _classPrivateFieldGet122, _this$shadowRoot;
16297
16316
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
16298
16317
  return removeListener();
16299
16318
  });
@@ -16301,10 +16320,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
16301
16320
  _classPrivateFieldSet(_eventListeners, this, {});
16302
16321
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
16303
16322
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
16304
- (_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
16323
+ (_classPrivateFieldGet121 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.disconnect();
16305
16324
  _classPrivateFieldSet(_resizeObserver, this, null);
16306
16325
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
16307
- (_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
16326
+ (_classPrivateFieldGet122 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.remove();
16308
16327
  _classPrivateFieldSet(_api, this, null);
16309
16328
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
16310
16329
  _classPrivateFieldSet(_preactRoot, this, null);
@@ -16348,14 +16367,17 @@ function _defaultLocalization() {
16348
16367
  };
16349
16368
  }
16350
16369
  function _deferMediaDataFetchingToCarouselEmbed() {
16370
+ if (!(0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.uI)(this.id)) {
16371
+ return false;
16372
+ }
16351
16373
  return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
16352
16374
  }
16353
16375
  function _findLocalizationByLanguage(language) {
16354
- var _classPrivateFieldGet122;
16376
+ var _classPrivateFieldGet123;
16355
16377
  if (language == null) {
16356
16378
  return void 0;
16357
16379
  }
16358
- return (_classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.find(function(localization) {
16380
+ return (_classPrivateFieldGet123 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.find(function(localization) {
16359
16381
  return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
16360
16382
  });
16361
16383
  }
@@ -16400,8 +16422,8 @@ function _initPlayerEmbed(_ref22) {
16400
16422
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
16401
16423
  }
16402
16424
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
16403
- var _classPrivateFieldGet123;
16404
- (_classPrivateFieldGet123 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.states.delete("--initializing");
16425
+ var _classPrivateFieldGet124;
16426
+ (_classPrivateFieldGet124 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.states.delete("--initializing");
16405
16427
  }
16406
16428
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
16407
16429
  container,
@@ -16447,10 +16469,10 @@ function _initPublicApi2() {
16447
16469
  _this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
16448
16470
  });
16449
16471
  _classPrivateFieldGet(_api, this).ready(function() {
16450
- var _classPrivateFieldGet130, _classPrivateFieldGet131;
16451
- (_classPrivateFieldGet130 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.disconnect();
16472
+ var _classPrivateFieldGet131, _classPrivateFieldGet132;
16473
+ (_classPrivateFieldGet131 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.disconnect();
16452
16474
  _classPrivateFieldSet(_resizeObserver, _this19, null);
16453
- (_classPrivateFieldGet131 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.remove();
16475
+ (_classPrivateFieldGet132 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet132 === void 0 ? void 0 : _classPrivateFieldGet132.remove();
16454
16476
  _this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
16455
16477
  _this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
16456
16478
  detail: {
@@ -16522,8 +16544,8 @@ function _maybeInitializeMux2() {
16522
16544
  this.addEventListener("visitor-tracking-change", function(event) {
16523
16545
  var isTrackingEnabled = event.detail.isTrackingEnabled;
16524
16546
  if (!isTrackingEnabled) {
16525
- var _classPrivateFieldGet133, _classPrivateFieldGet134;
16526
- (_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133.mux) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.destroy();
16547
+ var _classPrivateFieldGet134, _classPrivateFieldGet135;
16548
+ (_classPrivateFieldGet134 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet134 === void 0 ? void 0 : (_classPrivateFieldGet135 = _classPrivateFieldGet134.mux) === null || _classPrivateFieldGet135 === void 0 ? void 0 : _classPrivateFieldGet135.destroy();
16527
16549
  }
16528
16550
  });
16529
16551
  case 6:
@@ -16627,8 +16649,8 @@ function _renderPreloadThumbnail() {
16627
16649
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
16628
16650
  return;
16629
16651
  }
16630
- var _classPrivateFieldGet124 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet124.assets, mediaType = _classPrivateFieldGet124.mediaType, carouselHardWall = _classPrivateFieldGet124.carouselHardWall;
16631
- var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet125.autoPlay, plugin = _classPrivateFieldGet125.plugin;
16652
+ var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet125.assets, mediaType = _classPrivateFieldGet125.mediaType, carouselHardWall = _classPrivateFieldGet125.carouselHardWall;
16653
+ var _classPrivateFieldGet126 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet126.autoPlay, plugin = _classPrivateFieldGet126.plugin;
16632
16654
  if (carouselHardWall) {
16633
16655
  return;
16634
16656
  }
@@ -16664,12 +16686,12 @@ function _runMethodsFromAttributes() {
16664
16686
  var _this14 = this;
16665
16687
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
16666
16688
  this.whenApiReady().then(function() {
16667
- var _ref24, _classPrivateFieldGet126, _classPrivateFieldGet127;
16689
+ var _ref24, _classPrivateFieldGet127, _classPrivateFieldGet128;
16668
16690
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
16669
- 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;
16691
+ var isClosedPopover = (_ref24 = ((_classPrivateFieldGet127 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref24 !== void 0 ? _ref24 : false;
16670
16692
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
16671
16693
  var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
16672
- void ((_classPrivateFieldGet127 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.time(newTime, {
16694
+ void ((_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.time(newTime, {
16673
16695
  lazy: shouldDelayUntilPlay
16674
16696
  }));
16675
16697
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
@@ -16681,9 +16703,9 @@ function _runMethodsFromAttributes() {
16681
16703
  }
16682
16704
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
16683
16705
  this.whenApiReady().then(function() {
16684
- var _classPrivateFieldGet128;
16706
+ var _classPrivateFieldGet129;
16685
16707
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
16686
- (_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.setVideoQuality(newQuality);
16708
+ (_classPrivateFieldGet129 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet129 === void 0 ? void 0 : _classPrivateFieldGet129.setVideoQuality(newQuality);
16687
16709
  _assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
16688
16710
  }).catch(function(_error) {
16689
16711
  });