@wistia/wistia-player-react 0.0.109 → 0.0.110

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.
@@ -592,6 +592,8 @@ function _defaultLocalization() {
592
592
  alpha3Bibliographic: "eng",
593
593
  alpha3Terminologic: "eng",
594
594
  duration: 0,
595
+ genericName: "English",
596
+ genericNativeName: "English",
595
597
  hashedId: this.mediaId,
596
598
  ietfLanguageTag: "eng",
597
599
  iso6392LanguageCode: "eng",
@@ -605,11 +607,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
605
607
  return !!document.querySelector('wistia-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
606
608
  }
607
609
  function _findLocalizationByLanguage(language) {
608
- var _classPrivateFieldGet93;
610
+ var _classPrivateFieldGet94;
609
611
  if (language == null) {
610
612
  return void 0;
611
613
  }
612
- return (_classPrivateFieldGet93 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.find(function(localization) {
614
+ return (_classPrivateFieldGet94 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.find(function(localization) {
613
615
  return localization.ietfLanguageTag === language || localization.iso6392LanguageCode === language;
614
616
  });
615
617
  }
@@ -654,8 +656,8 @@ function _initPlayerEmbed(_ref23) {
654
656
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
655
657
  }
656
658
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
657
- var _classPrivateFieldGet94;
658
- (_classPrivateFieldGet94 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.states.delete("--initializing");
659
+ var _classPrivateFieldGet95;
660
+ (_classPrivateFieldGet95 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.states.delete("--initializing");
659
661
  }
660
662
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
661
663
  container,
@@ -683,10 +685,10 @@ function _initPublicApi2() {
683
685
  throw new Error("Wistia.PublicApi is not defined");
684
686
  case 5:
685
687
  embeddedCallback = function embeddedCallback2() {
686
- var _classPrivateFieldGet101;
688
+ var _classPrivateFieldGet102;
687
689
  void _assertClassBrand(_WistiaPlayer_brand, _this20, _maybeInitializeMux).call(_this20);
688
690
  _assertClassBrand(_WistiaPlayer_brand, _this20, _renderEmbedTemplate).call(_this20);
689
- (_classPrivateFieldGet101 = _classPrivateFieldGet(_resizeObserver, _this20)) === null || _classPrivateFieldGet101 === void 0 ? void 0 : _classPrivateFieldGet101.disconnect();
691
+ (_classPrivateFieldGet102 = _classPrivateFieldGet(_resizeObserver, _this20)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.disconnect();
690
692
  _classPrivateFieldSet(_resizeObserver, _this20, null);
691
693
  if (_classPrivateFieldGet(_playPending, _this20)) {
692
694
  void _this20.play();
@@ -704,8 +706,8 @@ function _initPublicApi2() {
704
706
  _this20.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _classPrivateFieldGet(_handleAfterReplace, _this20));
705
707
  });
706
708
  _classPrivateFieldGet(_api, this).ready(function() {
707
- var _classPrivateFieldGet102;
708
- (_classPrivateFieldGet102 = _classPrivateFieldGet(_preloadThumbnailRoot, _this20)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.remove();
709
+ var _classPrivateFieldGet103;
710
+ (_classPrivateFieldGet103 = _classPrivateFieldGet(_preloadThumbnailRoot, _this20)) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.remove();
709
711
  _this20.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this20));
710
712
  _this20.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, {
711
713
  detail: {
@@ -770,8 +772,8 @@ function _maybeInitializeMux2() {
770
772
  this.addEventListener("visitor-tracking-change", function(event) {
771
773
  var isTrackingEnabled = event.detail.isTrackingEnabled;
772
774
  if (!isTrackingEnabled) {
773
- var _classPrivateFieldGet104, _classPrivateFieldGet105;
774
- (_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this21)) === null || _classPrivateFieldGet104 === void 0 ? void 0 : (_classPrivateFieldGet105 = _classPrivateFieldGet104.mux) === null || _classPrivateFieldGet105 === void 0 ? void 0 : _classPrivateFieldGet105.destroy();
775
+ var _classPrivateFieldGet105, _classPrivateFieldGet106;
776
+ (_classPrivateFieldGet105 = _classPrivateFieldGet(_api, _this21)) === null || _classPrivateFieldGet105 === void 0 ? void 0 : (_classPrivateFieldGet106 = _classPrivateFieldGet105.mux) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.destroy();
775
777
  }
776
778
  });
777
779
  case 11:
@@ -864,8 +866,8 @@ function _renderPreloadThumbnail() {
864
866
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
865
867
  return;
866
868
  }
867
- var _classPrivateFieldGet95 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet95.assets, mediaType = _classPrivateFieldGet95.mediaType, carouselHardWall = _classPrivateFieldGet95.carouselHardWall;
868
- var _classPrivateFieldGet96 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet96.autoPlay, plugin = _classPrivateFieldGet96.plugin;
869
+ var _classPrivateFieldGet96 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet96.assets, mediaType = _classPrivateFieldGet96.mediaType, carouselHardWall = _classPrivateFieldGet96.carouselHardWall;
870
+ var _classPrivateFieldGet97 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet97.autoPlay, plugin = _classPrivateFieldGet97.plugin;
869
871
  if (carouselHardWall) {
870
872
  return;
871
873
  }
@@ -890,12 +892,12 @@ function _runMethodsFromAttributes() {
890
892
  var _this16 = this;
891
893
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
892
894
  this.whenApiReady().then(function() {
893
- var _ref25, _classPrivateFieldGet97, _classPrivateFieldGet98;
895
+ var _ref25, _classPrivateFieldGet98, _classPrivateFieldGet99;
894
896
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this16, _getValueFromAttribute).call(_this16, "current-time"));
895
- var isClosedPopover = (_ref25 = ((_classPrivateFieldGet97 = _classPrivateFieldGet(_api, _this16)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.popover) && !_classPrivateFieldGet(_api, _this16).popover.isVisible()) !== null && _ref25 !== void 0 ? _ref25 : false;
897
+ var isClosedPopover = (_ref25 = ((_classPrivateFieldGet98 = _classPrivateFieldGet(_api, _this16)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.popover) && !_classPrivateFieldGet(_api, _this16).popover.isVisible()) !== null && _ref25 !== void 0 ? _ref25 : false;
896
898
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_7__.GS)();
897
899
  var shouldDelayUntilPlay = _this16.state !== "playing" && (isMobile || isClosedPopover);
898
- void ((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, _this16)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.time(newTime, {
900
+ void ((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this16)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.time(newTime, {
899
901
  lazy: shouldDelayUntilPlay
900
902
  }));
901
903
  _assertClassBrand(_WistiaPlayer_brand, _this16, _setSyncedEmbedOption).call(_this16, "currentTime", newTime);
@@ -907,9 +909,9 @@ function _runMethodsFromAttributes() {
907
909
  }
908
910
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
909
911
  this.whenApiReady().then(function() {
910
- var _classPrivateFieldGet99;
912
+ var _classPrivateFieldGet100;
911
913
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this16, _getValueFromAttribute).call(_this16, "video-quality");
912
- (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this16)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.setVideoQuality(newQuality);
914
+ (_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, _this16)) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.setVideoQuality(newQuality);
913
915
  _assertClassBrand(_WistiaPlayer_brand, _this16, _setSyncedEmbedOption).call(_this16, "videoQuality", newQuality);
914
916
  }).catch(function(_error) {
915
917
  });
@@ -8722,7 +8724,7 @@ var init_wistia_player = __esm({
8722
8724
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8723
8725
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8724
8726
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8725
- var TAGGED_VERSION2 = "0.0.109";
8727
+ var TAGGED_VERSION2 = "0.0.110";
8726
8728
  var CURRENT_SHA2 = (
8727
8729
  /* unused pure expression or super */
8728
8730
  null
@@ -10718,6 +10720,16 @@ var init_wistia_player = __esm({
10718
10720
  var touchScreen = function touchScreen2() {
10719
10721
  return iosVersion() > 0 || android() || ipad();
10720
10722
  };
10723
+ var HDRSupported = function HDRSupported2() {
10724
+ var _window$matchMedia, _window;
10725
+ if ((_window$matchMedia = (_window = window).matchMedia) !== null && _window$matchMedia !== void 0 && _window$matchMedia.call(_window, "(dynamic-range: high)").matches) {
10726
+ return true;
10727
+ }
10728
+ if (screen.colorDepth && screen.colorDepth >= 30) {
10729
+ return true;
10730
+ }
10731
+ return false;
10732
+ };
10721
10733
  var hoverIsNatural = function hoverIsNatural2() {
10722
10734
  try {
10723
10735
  var mediaQueryList = matchMedia("(hover:hover)");
@@ -10890,6 +10902,7 @@ var init_wistia_player = __esm({
10890
10902
  edge: edge(),
10891
10903
  firefox: firefox(),
10892
10904
  gearvr: gearvr(),
10905
+ hdr: HDRSupported(),
10893
10906
  android: android(),
10894
10907
  oldandroid: oldandroid(),
10895
10908
  iphone: iphone(),
@@ -15265,10 +15278,10 @@ var init_wistia_player = __esm({
15265
15278
  }, {
15266
15279
  key: "sourceLanguage",
15267
15280
  get: function get() {
15268
- var _classPrivateFieldGet60;
15269
- return (_classPrivateFieldGet60 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.find(function(loc) {
15281
+ var _classPrivateFieldGet60, _classPrivateFieldGet61;
15282
+ return (_classPrivateFieldGet60 = (_classPrivateFieldGet61 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.find(function(loc) {
15270
15283
  return loc.sourceLanguage;
15271
- });
15284
+ })) !== null && _classPrivateFieldGet60 !== void 0 ? _classPrivateFieldGet60 : this.languages[0];
15272
15285
  }
15273
15286
  /**
15274
15287
  * Returns the source media id for the player. If a player has different localized versions,
@@ -15288,8 +15301,8 @@ var init_wistia_player = __esm({
15288
15301
  }, {
15289
15302
  key: "state",
15290
15303
  get: function get() {
15291
- var _classPrivateFieldGet61, _classPrivateFieldGet62;
15292
- return (_classPrivateFieldGet61 = (_classPrivateFieldGet62 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.state()) !== null && _classPrivateFieldGet61 !== void 0 ? _classPrivateFieldGet61 : defaultEmbedOptions.state;
15304
+ var _classPrivateFieldGet62, _classPrivateFieldGet63;
15305
+ return (_classPrivateFieldGet62 = (_classPrivateFieldGet63 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.state()) !== null && _classPrivateFieldGet62 !== void 0 ? _classPrivateFieldGet62 : defaultEmbedOptions.state;
15293
15306
  }
15294
15307
  /**
15295
15308
  * Returns the stats url for the player.
@@ -15367,12 +15380,12 @@ var init_wistia_player = __esm({
15367
15380
  }, {
15368
15381
  key: "videoQuality",
15369
15382
  get: function get() {
15370
- var _ref13, _classPrivateFieldGet63, _classPrivateFieldGet64;
15371
- return (_ref13 = (_classPrivateFieldGet63 = (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.getVideoQuality()) !== null && _classPrivateFieldGet63 !== void 0 ? _classPrivateFieldGet63 : this.embedOptions.videoQuality) !== null && _ref13 !== void 0 ? _ref13 : "auto";
15383
+ var _ref13, _classPrivateFieldGet64, _classPrivateFieldGet65;
15384
+ return (_ref13 = (_classPrivateFieldGet64 = (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.getVideoQuality()) !== null && _classPrivateFieldGet64 !== void 0 ? _classPrivateFieldGet64 : this.embedOptions.videoQuality) !== null && _ref13 !== void 0 ? _ref13 : "auto";
15372
15385
  },
15373
15386
  set: function set(quality) {
15374
- var _classPrivateFieldGet65;
15375
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setVideoQuality(quality);
15387
+ var _classPrivateFieldGet66;
15388
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.setVideoQuality(quality);
15376
15389
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
15377
15390
  }
15378
15391
  /**
@@ -15395,8 +15408,8 @@ var init_wistia_player = __esm({
15395
15408
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
15396
15409
  },
15397
15410
  set: function set(level) {
15398
- var _classPrivateFieldGet66;
15399
- (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.volume(level);
15411
+ var _classPrivateFieldGet67;
15412
+ (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.volume(level);
15400
15413
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
15401
15414
  }
15402
15415
  /**
@@ -15411,8 +15424,8 @@ var init_wistia_player = __esm({
15411
15424
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
15412
15425
  },
15413
15426
  set: function set(shouldDisplay) {
15414
- var _classPrivateFieldGet67;
15415
- (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.volumeControlEnabled(shouldDisplay);
15427
+ var _classPrivateFieldGet68;
15428
+ (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.volumeControlEnabled(shouldDisplay);
15416
15429
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
15417
15430
  }
15418
15431
  /**
@@ -15458,11 +15471,11 @@ var init_wistia_player = __esm({
15458
15471
  key: "cancelFullscreen",
15459
15472
  value: function() {
15460
15473
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2() {
15461
- var _classPrivateFieldGet68, _this4 = this;
15474
+ var _classPrivateFieldGet69, _this4 = this;
15462
15475
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
15463
15476
  while (1) switch (_context2.prev = _context2.next) {
15464
15477
  case 0:
15465
- return _context2.abrupt("return", (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.cancelFullscreen().then(function() {
15478
+ return _context2.abrupt("return", (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.cancelFullscreen().then(function() {
15466
15479
  _this4._fullscreenState.heightBeforeFullscreen = void 0;
15467
15480
  _this4._fullscreenState.widthBeforeFullscreen = void 0;
15468
15481
  }));
@@ -15481,11 +15494,11 @@ var init_wistia_player = __esm({
15481
15494
  key: "createOverlay",
15482
15495
  value: function() {
15483
15496
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3(name, options) {
15484
- var _classPrivateFieldGet69;
15497
+ var _classPrivateFieldGet70;
15485
15498
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
15486
15499
  while (1) switch (_context3.prev = _context3.next) {
15487
15500
  case 0:
15488
- if (!((_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet69 !== void 0 && _classPrivateFieldGet69.defineOverlay)) {
15501
+ if (!((_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet70 !== void 0 && _classPrivateFieldGet70.defineOverlay)) {
15489
15502
  _context3.next = 2;
15490
15503
  break;
15491
15504
  }
@@ -15514,11 +15527,11 @@ var init_wistia_player = __esm({
15514
15527
  case 0:
15515
15528
  addPlugin = /* @__PURE__ */ function() {
15516
15529
  var _ref14 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee4() {
15517
- var _classPrivateFieldGet70, _classPrivateFieldGet71;
15530
+ var _classPrivateFieldGet71, _classPrivateFieldGet72;
15518
15531
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
15519
15532
  while (1) switch (_context4.prev = _context4.next) {
15520
15533
  case 0:
15521
- return _context4.abrupt("return", (_classPrivateFieldGet70 = (_classPrivateFieldGet71 = _classPrivateFieldGet(_api, _this5)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.addPlugin(name, options)) !== null && _classPrivateFieldGet70 !== void 0 ? _classPrivateFieldGet70 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15534
+ return _context4.abrupt("return", (_classPrivateFieldGet71 = (_classPrivateFieldGet72 = _classPrivateFieldGet(_api, _this5)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.addPlugin(name, options)) !== null && _classPrivateFieldGet71 !== void 0 ? _classPrivateFieldGet71 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15522
15535
  case 1:
15523
15536
  case "end":
15524
15537
  return _context4.stop();
@@ -15564,11 +15577,11 @@ var init_wistia_player = __esm({
15564
15577
  key: "deleteOverlay",
15565
15578
  value: function() {
15566
15579
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6(name) {
15567
- var _classPrivateFieldGet72;
15580
+ var _classPrivateFieldGet73;
15568
15581
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
15569
15582
  while (1) switch (_context6.prev = _context6.next) {
15570
15583
  case 0:
15571
- if (!((_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet72 !== void 0 && _classPrivateFieldGet72.undefineOverlay)) {
15584
+ if (!((_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet73 !== void 0 && _classPrivateFieldGet73.undefineOverlay)) {
15572
15585
  _context6.next = 2;
15573
15586
  break;
15574
15587
  }
@@ -15590,11 +15603,11 @@ var init_wistia_player = __esm({
15590
15603
  key: "disableControl",
15591
15604
  value: function() {
15592
15605
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee7(name) {
15593
- var _classPrivateFieldGet73;
15606
+ var _classPrivateFieldGet74;
15594
15607
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
15595
15608
  while (1) switch (_context7.prev = _context7.next) {
15596
15609
  case 0:
15597
- if (!((_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet73 !== void 0 && _classPrivateFieldGet73.setControlEnabled)) {
15610
+ if (!((_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74.setControlEnabled)) {
15598
15611
  _context7.next = 2;
15599
15612
  break;
15600
15613
  }
@@ -15616,11 +15629,11 @@ var init_wistia_player = __esm({
15616
15629
  key: "enableControl",
15617
15630
  value: function() {
15618
15631
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee8(name) {
15619
- var _classPrivateFieldGet74;
15632
+ var _classPrivateFieldGet75;
15620
15633
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
15621
15634
  while (1) switch (_context8.prev = _context8.next) {
15622
15635
  case 0:
15623
- if (!((_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74.setControlEnabled)) {
15636
+ if (!((_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet75 !== void 0 && _classPrivateFieldGet75.setControlEnabled)) {
15624
15637
  _context8.next = 2;
15625
15638
  break;
15626
15639
  }
@@ -15642,16 +15655,16 @@ var init_wistia_player = __esm({
15642
15655
  key: "enterInputContext",
15643
15656
  value: function() {
15644
15657
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(context) {
15645
- var _classPrivateFieldGet75, _this6 = this;
15658
+ var _classPrivateFieldGet76, _this6 = this;
15646
15659
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
15647
15660
  while (1) switch (_context9.prev = _context9.next) {
15648
15661
  case 0:
15649
- if (!((_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet75 !== void 0 && _classPrivateFieldGet75.enterInputContext)) {
15662
+ if (!((_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet76 !== void 0 && _classPrivateFieldGet76.enterInputContext)) {
15650
15663
  _context9.next = 2;
15651
15664
  break;
15652
15665
  }
15653
15666
  return _context9.abrupt("return", new Promise(function(resolve) {
15654
- var _classPrivateFieldGet76;
15667
+ var _classPrivateFieldGet77;
15655
15668
  var _handler = function handler(event) {
15656
15669
  var detail = event.detail;
15657
15670
  if (detail.context === context) {
@@ -15660,7 +15673,7 @@ var init_wistia_player = __esm({
15660
15673
  _this6.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.ve, _handler);
15661
15674
  };
15662
15675
  _this6.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.ve, _handler);
15663
- (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, _this6)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.enterInputContext(context);
15676
+ (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, _this6)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.enterInputContext(context);
15664
15677
  }));
15665
15678
  case 2:
15666
15679
  return _context9.abrupt("return", Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -15679,11 +15692,11 @@ var init_wistia_player = __esm({
15679
15692
  key: "exitInputContext",
15680
15693
  value: function() {
15681
15694
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee10(context) {
15682
- var _classPrivateFieldGet77;
15695
+ var _classPrivateFieldGet78;
15683
15696
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
15684
15697
  while (1) switch (_context10.prev = _context10.next) {
15685
15698
  case 0:
15686
- if (!((_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet77 !== void 0 && _classPrivateFieldGet77.exitInputContext)) {
15699
+ if (!((_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet78 !== void 0 && _classPrivateFieldGet78.exitInputContext)) {
15687
15700
  _context10.next = 2;
15688
15701
  break;
15689
15702
  }
@@ -15736,8 +15749,8 @@ var init_wistia_player = __esm({
15736
15749
  while (1) switch (_context12.prev = _context12.next) {
15737
15750
  case 0:
15738
15751
  return _context12.abrupt("return", new Promise(function(resolve, reject) {
15739
- var _classPrivateFieldGet78;
15740
- if ((_classPrivateFieldGet78 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet78 !== void 0 && _classPrivateFieldGet78.plugin(name)) {
15752
+ var _classPrivateFieldGet79;
15753
+ if ((_classPrivateFieldGet79 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet79 !== void 0 && _classPrivateFieldGet79.plugin(name)) {
15741
15754
  resolve(_classPrivateFieldGet(_api, _this7).plugin(name));
15742
15755
  }
15743
15756
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -15757,7 +15770,7 @@ var init_wistia_player = __esm({
15757
15770
  key: "getRemapTime",
15758
15771
  value: function() {
15759
15772
  var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13() {
15760
- var _classPrivateFieldGet79, _this8 = this;
15773
+ var _classPrivateFieldGet80, _this8 = this;
15761
15774
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
15762
15775
  while (1) switch (_context13.prev = _context13.next) {
15763
15776
  case 0:
@@ -15776,11 +15789,11 @@ var init_wistia_player = __esm({
15776
15789
  });
15777
15790
  return _context13.abrupt("return", _classPrivateFieldGet(_cachedRemapTime, this));
15778
15791
  case 5:
15779
- if (!((_classPrivateFieldGet79 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet79 !== void 0)) {
15792
+ if (!((_classPrivateFieldGet80 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet80 !== void 0)) {
15780
15793
  _context13.next = 9;
15781
15794
  break;
15782
15795
  }
15783
- _classPrivateFieldGet79;
15796
+ _classPrivateFieldGet80;
15784
15797
  _context13.next = 16;
15785
15798
  break;
15786
15799
  case 9:
@@ -15821,11 +15834,11 @@ var init_wistia_player = __esm({
15821
15834
  key: "hideOverlay",
15822
15835
  value: function() {
15823
15836
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee14(name) {
15824
- var _classPrivateFieldGet80;
15837
+ var _classPrivateFieldGet81;
15825
15838
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
15826
15839
  while (1) switch (_context14.prev = _context14.next) {
15827
15840
  case 0:
15828
- if (!((_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet80 !== void 0 && _classPrivateFieldGet80.cancelOverlay)) {
15841
+ if (!((_classPrivateFieldGet81 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet81 !== void 0 && _classPrivateFieldGet81.cancelOverlay)) {
15829
15842
  _context14.next = 2;
15830
15843
  break;
15831
15844
  }
@@ -15852,8 +15865,8 @@ var init_wistia_player = __esm({
15852
15865
  while (1) switch (_context15.prev = _context15.next) {
15853
15866
  case 0:
15854
15867
  return _context15.abrupt("return", new Promise(function(resolve, reject) {
15855
- var _classPrivateFieldGet81;
15856
- if ((_classPrivateFieldGet81 = _classPrivateFieldGet(_api, _this9)) !== null && _classPrivateFieldGet81 !== void 0 && _classPrivateFieldGet81.popover) {
15868
+ var _classPrivateFieldGet82;
15869
+ if ((_classPrivateFieldGet82 = _classPrivateFieldGet(_api, _this9)) !== null && _classPrivateFieldGet82 !== void 0 && _classPrivateFieldGet82.popover) {
15857
15870
  _classPrivateFieldGet(_api, _this9).popover.hide();
15858
15871
  resolve();
15859
15872
  }
@@ -15874,11 +15887,11 @@ var init_wistia_player = __esm({
15874
15887
  key: "pause",
15875
15888
  value: function() {
15876
15889
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16() {
15877
- var _classPrivateFieldGet82;
15890
+ var _classPrivateFieldGet83;
15878
15891
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
15879
15892
  while (1) switch (_context16.prev = _context16.next) {
15880
15893
  case 0:
15881
- return _context16.abrupt("return", (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.pause());
15894
+ return _context16.abrupt("return", (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.pause());
15882
15895
  case 1:
15883
15896
  case "end":
15884
15897
  return _context16.stop();
@@ -15894,11 +15907,11 @@ var init_wistia_player = __esm({
15894
15907
  key: "play",
15895
15908
  value: function() {
15896
15909
  var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17() {
15897
- var _classPrivateFieldGet83;
15910
+ var _classPrivateFieldGet84;
15898
15911
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
15899
15912
  while (1) switch (_context17.prev = _context17.next) {
15900
15913
  case 0:
15901
- return _context17.abrupt("return", (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.play());
15914
+ return _context17.abrupt("return", (_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.play());
15902
15915
  case 1:
15903
15916
  case "end":
15904
15917
  return _context17.stop();
@@ -15914,11 +15927,11 @@ var init_wistia_player = __esm({
15914
15927
  key: "releaseControls",
15915
15928
  value: function() {
15916
15929
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee18(name) {
15917
- var _classPrivateFieldGet84;
15930
+ var _classPrivateFieldGet85;
15918
15931
  return _regeneratorRuntime().wrap(function _callee18$(_context18) {
15919
15932
  while (1) switch (_context18.prev = _context18.next) {
15920
15933
  case 0:
15921
- return _context18.abrupt("return", (_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.releaseControls(name));
15934
+ return _context18.abrupt("return", (_classPrivateFieldGet85 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.releaseControls(name));
15922
15935
  case 1:
15923
15936
  case "end":
15924
15937
  return _context18.stop();
@@ -15982,7 +15995,7 @@ var init_wistia_player = __esm({
15982
15995
  case 0:
15983
15996
  options = _args19.length > 1 && _args19[1] !== void 0 ? _args19[1] : {};
15984
15997
  return _context19.abrupt("return", new Promise(function(resolve, reject) {
15985
- var _classPrivateFieldGet85;
15998
+ var _classPrivateFieldGet86;
15986
15999
  if (!_classPrivateFieldGet(_api, _this11)) {
15987
16000
  reject(new Error("api not ready to replace"));
15988
16001
  }
@@ -15992,7 +16005,7 @@ var init_wistia_player = __esm({
15992
16005
  resolve();
15993
16006
  };
15994
16007
  _this11.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace2);
15995
- (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, _this11)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.replaceWith(mediaId, options);
16008
+ (_classPrivateFieldGet86 = _classPrivateFieldGet(_api, _this11)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.replaceWith(mediaId, options);
15996
16009
  }));
15997
16010
  case 2:
15998
16011
  case "end":
@@ -16009,11 +16022,11 @@ var init_wistia_player = __esm({
16009
16022
  key: "requestControls",
16010
16023
  value: function() {
16011
16024
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20(name) {
16012
- var _classPrivateFieldGet86;
16025
+ var _classPrivateFieldGet87;
16013
16026
  return _regeneratorRuntime().wrap(function _callee20$(_context20) {
16014
16027
  while (1) switch (_context20.prev = _context20.next) {
16015
16028
  case 0:
16016
- return _context20.abrupt("return", (_classPrivateFieldGet86 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.requestControls(name));
16029
+ return _context20.abrupt("return", (_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87.requestControls(name));
16017
16030
  case 1:
16018
16031
  case "end":
16019
16032
  return _context20.stop();
@@ -16029,11 +16042,11 @@ var init_wistia_player = __esm({
16029
16042
  key: "requestFullscreen",
16030
16043
  value: function() {
16031
16044
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21() {
16032
- var _classPrivateFieldGet87;
16045
+ var _classPrivateFieldGet88;
16033
16046
  return _regeneratorRuntime().wrap(function _callee21$(_context21) {
16034
16047
  while (1) switch (_context21.prev = _context21.next) {
16035
16048
  case 0:
16036
- if (!((_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet87 !== void 0 && _classPrivateFieldGet87.requestFullscreen)) {
16049
+ if (!((_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet88 !== void 0 && _classPrivateFieldGet88.requestFullscreen)) {
16037
16050
  _context21.next = 2;
16038
16051
  break;
16039
16052
  }
@@ -16055,11 +16068,11 @@ var init_wistia_player = __esm({
16055
16068
  key: "showOverlay",
16056
16069
  value: function() {
16057
16070
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22(name) {
16058
- var _classPrivateFieldGet88;
16071
+ var _classPrivateFieldGet89;
16059
16072
  return _regeneratorRuntime().wrap(function _callee22$(_context22) {
16060
16073
  while (1) switch (_context22.prev = _context22.next) {
16061
16074
  case 0:
16062
- if (!((_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet88 !== void 0 && _classPrivateFieldGet88.requestOverlay)) {
16075
+ if (!((_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet89 !== void 0 && _classPrivateFieldGet89.requestOverlay)) {
16063
16076
  _context22.next = 2;
16064
16077
  break;
16065
16078
  }
@@ -16086,8 +16099,8 @@ var init_wistia_player = __esm({
16086
16099
  while (1) switch (_context23.prev = _context23.next) {
16087
16100
  case 0:
16088
16101
  return _context23.abrupt("return", new Promise(function(resolve, reject) {
16089
- var _classPrivateFieldGet89;
16090
- if ((_classPrivateFieldGet89 = _classPrivateFieldGet(_api, _this12)) !== null && _classPrivateFieldGet89 !== void 0 && _classPrivateFieldGet89.popover) {
16102
+ var _classPrivateFieldGet90;
16103
+ if ((_classPrivateFieldGet90 = _classPrivateFieldGet(_api, _this12)) !== null && _classPrivateFieldGet90 !== void 0 && _classPrivateFieldGet90.popover) {
16091
16104
  _classPrivateFieldGet(_api, _this12).popover.show();
16092
16105
  resolve();
16093
16106
  }
@@ -16139,7 +16152,7 @@ var init_wistia_player = __esm({
16139
16152
  key: "whenControlMounted",
16140
16153
  value: function() {
16141
16154
  var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee25(handle) {
16142
- var _classPrivateFieldGet90;
16155
+ var _classPrivateFieldGet91;
16143
16156
  var control;
16144
16157
  return _regeneratorRuntime().wrap(function _callee25$(_context25) {
16145
16158
  while (1) switch (_context25.prev = _context25.next) {
@@ -16148,7 +16161,7 @@ var init_wistia_player = __esm({
16148
16161
  return this.whenApiReady();
16149
16162
  case 2:
16150
16163
  _context25.next = 4;
16151
- return (_classPrivateFieldGet90 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.whenControlMounted(handle);
16164
+ return (_classPrivateFieldGet91 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.whenControlMounted(handle);
16152
16165
  case 4:
16153
16166
  control = _context25.sent;
16154
16167
  if (control) {
@@ -16281,7 +16294,7 @@ var init_wistia_player = __esm({
16281
16294
  }, {
16282
16295
  key: "disconnectedCallback",
16283
16296
  value: function disconnectedCallback() {
16284
- var _classPrivateFieldGet91, _classPrivateFieldGet92, _this$shadowRoot;
16297
+ var _classPrivateFieldGet92, _classPrivateFieldGet93, _this$shadowRoot;
16285
16298
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
16286
16299
  return removeListener();
16287
16300
  });
@@ -16289,10 +16302,10 @@ var init_wistia_player = __esm({
16289
16302
  _classPrivateFieldSet(_eventListeners, this, {});
16290
16303
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.Z)(_classPrivateFieldGet(_jsonLdId, this));
16291
16304
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_25__.s3)(this.mediaId);
16292
- (_classPrivateFieldGet91 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.disconnect();
16305
+ (_classPrivateFieldGet92 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.disconnect();
16293
16306
  _classPrivateFieldSet(_resizeObserver, this, null);
16294
16307
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__.iU)("__".concat(this.uniqueId, "_dom_options__"));
16295
- (_classPrivateFieldGet92 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.remove();
16308
+ (_classPrivateFieldGet93 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.remove();
16296
16309
  _classPrivateFieldSet(_api, this, null);
16297
16310
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
16298
16311
  _classPrivateFieldSet(_preactRoot, this, null);
@@ -7,7 +7,7 @@ import {
7
7
  import { forwardRef, Suspense, lazy, Fragment } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  var WistiaPlayerWrapper = lazy(
10
- async () => import("./WistiaPlayerWrapper-GRYNSUW5.mjs").then((module) => ({
10
+ async () => import("./WistiaPlayerWrapper-V3XHSSFV.mjs").then((module) => ({
11
11
  default: module.WistiaPlayerWrapper
12
12
  }))
13
13
  );
@@ -22,7 +22,7 @@ var WistiaPlayerWrapper = forwardRef(
22
22
  setSwatchAspectRatio(ratio);
23
23
  });
24
24
  }
25
- void import("./wistia-player-WQYIRSNB.mjs");
25
+ void import("./wistia-player-HS2OXHA6.mjs");
26
26
  void customElements.whenDefined("wistia-player").then(() => {
27
27
  setIsWistiaPlayerDefined(true);
28
28
  });
@@ -7745,7 +7745,7 @@ var __webpack_modules__ = {
7745
7745
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
7746
7746
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
7747
7747
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
7748
- var TAGGED_VERSION2 = "0.0.109";
7748
+ var TAGGED_VERSION2 = "0.0.110";
7749
7749
  var CURRENT_SHA2 = (
7750
7750
  /* unused pure expression or super */
7751
7751
  null
@@ -9741,6 +9741,16 @@ var __webpack_modules__ = {
9741
9741
  var touchScreen = function touchScreen2() {
9742
9742
  return iosVersion() > 0 || android() || ipad();
9743
9743
  };
9744
+ var HDRSupported = function HDRSupported2() {
9745
+ var _window$matchMedia, _window;
9746
+ if ((_window$matchMedia = (_window = window).matchMedia) !== null && _window$matchMedia !== void 0 && _window$matchMedia.call(_window, "(dynamic-range: high)").matches) {
9747
+ return true;
9748
+ }
9749
+ if (screen.colorDepth && screen.colorDepth >= 30) {
9750
+ return true;
9751
+ }
9752
+ return false;
9753
+ };
9744
9754
  var hoverIsNatural = function hoverIsNatural2() {
9745
9755
  try {
9746
9756
  var mediaQueryList = matchMedia("(hover:hover)");
@@ -9913,6 +9923,7 @@ var __webpack_modules__ = {
9913
9923
  edge: edge(),
9914
9924
  firefox: firefox(),
9915
9925
  gearvr: gearvr(),
9926
+ hdr: HDRSupported(),
9916
9927
  android: android(),
9917
9928
  oldandroid: oldandroid(),
9918
9929
  iphone: iphone(),
@@ -14766,10 +14777,10 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
14766
14777
  }, {
14767
14778
  key: "sourceLanguage",
14768
14779
  get: function get() {
14769
- var _classPrivateFieldGet60;
14770
- return (_classPrivateFieldGet60 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet60 === void 0 ? void 0 : _classPrivateFieldGet60.find(function(loc) {
14780
+ var _classPrivateFieldGet60, _classPrivateFieldGet61;
14781
+ return (_classPrivateFieldGet60 = (_classPrivateFieldGet61 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.find(function(loc) {
14771
14782
  return loc.sourceLanguage;
14772
- });
14783
+ })) !== null && _classPrivateFieldGet60 !== void 0 ? _classPrivateFieldGet60 : this.languages[0];
14773
14784
  }
14774
14785
  /**
14775
14786
  * Returns the source media id for the player. If a player has different localized versions,
@@ -14789,8 +14800,8 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
14789
14800
  }, {
14790
14801
  key: "state",
14791
14802
  get: function get() {
14792
- var _classPrivateFieldGet61, _classPrivateFieldGet62;
14793
- return (_classPrivateFieldGet61 = (_classPrivateFieldGet62 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.state()) !== null && _classPrivateFieldGet61 !== void 0 ? _classPrivateFieldGet61 : defaultEmbedOptions.state;
14803
+ var _classPrivateFieldGet62, _classPrivateFieldGet63;
14804
+ return (_classPrivateFieldGet62 = (_classPrivateFieldGet63 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.state()) !== null && _classPrivateFieldGet62 !== void 0 ? _classPrivateFieldGet62 : defaultEmbedOptions.state;
14794
14805
  }
14795
14806
  /**
14796
14807
  * Returns the stats url for the player.
@@ -14868,12 +14879,12 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
14868
14879
  }, {
14869
14880
  key: "videoQuality",
14870
14881
  get: function get() {
14871
- var _ref13, _classPrivateFieldGet63, _classPrivateFieldGet64;
14872
- return (_ref13 = (_classPrivateFieldGet63 = (_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.getVideoQuality()) !== null && _classPrivateFieldGet63 !== void 0 ? _classPrivateFieldGet63 : this.embedOptions.videoQuality) !== null && _ref13 !== void 0 ? _ref13 : "auto";
14882
+ var _ref13, _classPrivateFieldGet64, _classPrivateFieldGet65;
14883
+ return (_ref13 = (_classPrivateFieldGet64 = (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.getVideoQuality()) !== null && _classPrivateFieldGet64 !== void 0 ? _classPrivateFieldGet64 : this.embedOptions.videoQuality) !== null && _ref13 !== void 0 ? _ref13 : "auto";
14873
14884
  },
14874
14885
  set: function set(quality) {
14875
- var _classPrivateFieldGet65;
14876
- (_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setVideoQuality(quality);
14886
+ var _classPrivateFieldGet66;
14887
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.setVideoQuality(quality);
14877
14888
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
14878
14889
  }
14879
14890
  /**
@@ -14896,8 +14907,8 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
14896
14907
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
14897
14908
  },
14898
14909
  set: function set(level) {
14899
- var _classPrivateFieldGet66;
14900
- (_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.volume(level);
14910
+ var _classPrivateFieldGet67;
14911
+ (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.volume(level);
14901
14912
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
14902
14913
  }
14903
14914
  /**
@@ -14912,8 +14923,8 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
14912
14923
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
14913
14924
  },
14914
14925
  set: function set(shouldDisplay) {
14915
- var _classPrivateFieldGet67;
14916
- (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.volumeControlEnabled(shouldDisplay);
14926
+ var _classPrivateFieldGet68;
14927
+ (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.volumeControlEnabled(shouldDisplay);
14917
14928
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
14918
14929
  }
14919
14930
  /**
@@ -14959,11 +14970,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
14959
14970
  key: "cancelFullscreen",
14960
14971
  value: function() {
14961
14972
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2() {
14962
- var _classPrivateFieldGet68, _this4 = this;
14973
+ var _classPrivateFieldGet69, _this4 = this;
14963
14974
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
14964
14975
  while (1) switch (_context2.prev = _context2.next) {
14965
14976
  case 0:
14966
- return _context2.abrupt("return", (_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.cancelFullscreen().then(function() {
14977
+ return _context2.abrupt("return", (_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.cancelFullscreen().then(function() {
14967
14978
  _this4._fullscreenState.heightBeforeFullscreen = void 0;
14968
14979
  _this4._fullscreenState.widthBeforeFullscreen = void 0;
14969
14980
  }));
@@ -14982,11 +14993,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
14982
14993
  key: "createOverlay",
14983
14994
  value: function() {
14984
14995
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3(name, options) {
14985
- var _classPrivateFieldGet69;
14996
+ var _classPrivateFieldGet70;
14986
14997
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
14987
14998
  while (1) switch (_context3.prev = _context3.next) {
14988
14999
  case 0:
14989
- if (!((_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet69 !== void 0 && _classPrivateFieldGet69.defineOverlay)) {
15000
+ if (!((_classPrivateFieldGet70 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet70 !== void 0 && _classPrivateFieldGet70.defineOverlay)) {
14990
15001
  _context3.next = 2;
14991
15002
  break;
14992
15003
  }
@@ -15015,11 +15026,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15015
15026
  case 0:
15016
15027
  addPlugin = /* @__PURE__ */ function() {
15017
15028
  var _ref14 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee4() {
15018
- var _classPrivateFieldGet70, _classPrivateFieldGet71;
15029
+ var _classPrivateFieldGet71, _classPrivateFieldGet72;
15019
15030
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
15020
15031
  while (1) switch (_context4.prev = _context4.next) {
15021
15032
  case 0:
15022
- return _context4.abrupt("return", (_classPrivateFieldGet70 = (_classPrivateFieldGet71 = _classPrivateFieldGet(_api, _this5)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.addPlugin(name, options)) !== null && _classPrivateFieldGet70 !== void 0 ? _classPrivateFieldGet70 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15033
+ return _context4.abrupt("return", (_classPrivateFieldGet71 = (_classPrivateFieldGet72 = _classPrivateFieldGet(_api, _this5)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.addPlugin(name, options)) !== null && _classPrivateFieldGet71 !== void 0 ? _classPrivateFieldGet71 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
15023
15034
  case 1:
15024
15035
  case "end":
15025
15036
  return _context4.stop();
@@ -15065,11 +15076,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15065
15076
  key: "deleteOverlay",
15066
15077
  value: function() {
15067
15078
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6(name) {
15068
- var _classPrivateFieldGet72;
15079
+ var _classPrivateFieldGet73;
15069
15080
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
15070
15081
  while (1) switch (_context6.prev = _context6.next) {
15071
15082
  case 0:
15072
- if (!((_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet72 !== void 0 && _classPrivateFieldGet72.undefineOverlay)) {
15083
+ if (!((_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet73 !== void 0 && _classPrivateFieldGet73.undefineOverlay)) {
15073
15084
  _context6.next = 2;
15074
15085
  break;
15075
15086
  }
@@ -15091,11 +15102,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15091
15102
  key: "disableControl",
15092
15103
  value: function() {
15093
15104
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee7(name) {
15094
- var _classPrivateFieldGet73;
15105
+ var _classPrivateFieldGet74;
15095
15106
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
15096
15107
  while (1) switch (_context7.prev = _context7.next) {
15097
15108
  case 0:
15098
- if (!((_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet73 !== void 0 && _classPrivateFieldGet73.setControlEnabled)) {
15109
+ if (!((_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74.setControlEnabled)) {
15099
15110
  _context7.next = 2;
15100
15111
  break;
15101
15112
  }
@@ -15117,11 +15128,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15117
15128
  key: "enableControl",
15118
15129
  value: function() {
15119
15130
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee8(name) {
15120
- var _classPrivateFieldGet74;
15131
+ var _classPrivateFieldGet75;
15121
15132
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
15122
15133
  while (1) switch (_context8.prev = _context8.next) {
15123
15134
  case 0:
15124
- if (!((_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74.setControlEnabled)) {
15135
+ if (!((_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet75 !== void 0 && _classPrivateFieldGet75.setControlEnabled)) {
15125
15136
  _context8.next = 2;
15126
15137
  break;
15127
15138
  }
@@ -15143,16 +15154,16 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15143
15154
  key: "enterInputContext",
15144
15155
  value: function() {
15145
15156
  var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(context) {
15146
- var _classPrivateFieldGet75, _this6 = this;
15157
+ var _classPrivateFieldGet76, _this6 = this;
15147
15158
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
15148
15159
  while (1) switch (_context9.prev = _context9.next) {
15149
15160
  case 0:
15150
- if (!((_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet75 !== void 0 && _classPrivateFieldGet75.enterInputContext)) {
15161
+ if (!((_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet76 !== void 0 && _classPrivateFieldGet76.enterInputContext)) {
15151
15162
  _context9.next = 2;
15152
15163
  break;
15153
15164
  }
15154
15165
  return _context9.abrupt("return", new Promise(function(resolve) {
15155
- var _classPrivateFieldGet76;
15166
+ var _classPrivateFieldGet77;
15156
15167
  var _handler = function handler(event) {
15157
15168
  var detail = event.detail;
15158
15169
  if (detail.context === context) {
@@ -15161,7 +15172,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15161
15172
  _this6.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.ve, _handler);
15162
15173
  };
15163
15174
  _this6.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.ve, _handler);
15164
- (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, _this6)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.enterInputContext(context);
15175
+ (_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, _this6)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.enterInputContext(context);
15165
15176
  }));
15166
15177
  case 2:
15167
15178
  return _context9.abrupt("return", Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
@@ -15180,11 +15191,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15180
15191
  key: "exitInputContext",
15181
15192
  value: function() {
15182
15193
  var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee10(context) {
15183
- var _classPrivateFieldGet77;
15194
+ var _classPrivateFieldGet78;
15184
15195
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
15185
15196
  while (1) switch (_context10.prev = _context10.next) {
15186
15197
  case 0:
15187
- if (!((_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet77 !== void 0 && _classPrivateFieldGet77.exitInputContext)) {
15198
+ if (!((_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet78 !== void 0 && _classPrivateFieldGet78.exitInputContext)) {
15188
15199
  _context10.next = 2;
15189
15200
  break;
15190
15201
  }
@@ -15237,8 +15248,8 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15237
15248
  while (1) switch (_context12.prev = _context12.next) {
15238
15249
  case 0:
15239
15250
  return _context12.abrupt("return", new Promise(function(resolve, reject) {
15240
- var _classPrivateFieldGet78;
15241
- if ((_classPrivateFieldGet78 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet78 !== void 0 && _classPrivateFieldGet78.plugin(name)) {
15251
+ var _classPrivateFieldGet79;
15252
+ if ((_classPrivateFieldGet79 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet79 !== void 0 && _classPrivateFieldGet79.plugin(name)) {
15242
15253
  resolve(_classPrivateFieldGet(_api, _this7).plugin(name));
15243
15254
  }
15244
15255
  reject(new Error("plugin ".concat(name, " is not defined")));
@@ -15258,7 +15269,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15258
15269
  key: "getRemapTime",
15259
15270
  value: function() {
15260
15271
  var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13() {
15261
- var _classPrivateFieldGet79, _this8 = this;
15272
+ var _classPrivateFieldGet80, _this8 = this;
15262
15273
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
15263
15274
  while (1) switch (_context13.prev = _context13.next) {
15264
15275
  case 0:
@@ -15277,11 +15288,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15277
15288
  });
15278
15289
  return _context13.abrupt("return", _classPrivateFieldGet(_cachedRemapTime, this));
15279
15290
  case 5:
15280
- if (!((_classPrivateFieldGet79 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet79 !== void 0)) {
15291
+ if (!((_classPrivateFieldGet80 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet80 !== void 0)) {
15281
15292
  _context13.next = 9;
15282
15293
  break;
15283
15294
  }
15284
- _classPrivateFieldGet79;
15295
+ _classPrivateFieldGet80;
15285
15296
  _context13.next = 16;
15286
15297
  break;
15287
15298
  case 9:
@@ -15322,11 +15333,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15322
15333
  key: "hideOverlay",
15323
15334
  value: function() {
15324
15335
  var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee14(name) {
15325
- var _classPrivateFieldGet80;
15336
+ var _classPrivateFieldGet81;
15326
15337
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
15327
15338
  while (1) switch (_context14.prev = _context14.next) {
15328
15339
  case 0:
15329
- if (!((_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet80 !== void 0 && _classPrivateFieldGet80.cancelOverlay)) {
15340
+ if (!((_classPrivateFieldGet81 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet81 !== void 0 && _classPrivateFieldGet81.cancelOverlay)) {
15330
15341
  _context14.next = 2;
15331
15342
  break;
15332
15343
  }
@@ -15353,8 +15364,8 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15353
15364
  while (1) switch (_context15.prev = _context15.next) {
15354
15365
  case 0:
15355
15366
  return _context15.abrupt("return", new Promise(function(resolve, reject) {
15356
- var _classPrivateFieldGet81;
15357
- if ((_classPrivateFieldGet81 = _classPrivateFieldGet(_api, _this9)) !== null && _classPrivateFieldGet81 !== void 0 && _classPrivateFieldGet81.popover) {
15367
+ var _classPrivateFieldGet82;
15368
+ if ((_classPrivateFieldGet82 = _classPrivateFieldGet(_api, _this9)) !== null && _classPrivateFieldGet82 !== void 0 && _classPrivateFieldGet82.popover) {
15358
15369
  _classPrivateFieldGet(_api, _this9).popover.hide();
15359
15370
  resolve();
15360
15371
  }
@@ -15375,11 +15386,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15375
15386
  key: "pause",
15376
15387
  value: function() {
15377
15388
  var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16() {
15378
- var _classPrivateFieldGet82;
15389
+ var _classPrivateFieldGet83;
15379
15390
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
15380
15391
  while (1) switch (_context16.prev = _context16.next) {
15381
15392
  case 0:
15382
- return _context16.abrupt("return", (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.pause());
15393
+ return _context16.abrupt("return", (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.pause());
15383
15394
  case 1:
15384
15395
  case "end":
15385
15396
  return _context16.stop();
@@ -15395,11 +15406,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15395
15406
  key: "play",
15396
15407
  value: function() {
15397
15408
  var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17() {
15398
- var _classPrivateFieldGet83;
15409
+ var _classPrivateFieldGet84;
15399
15410
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
15400
15411
  while (1) switch (_context17.prev = _context17.next) {
15401
15412
  case 0:
15402
- return _context17.abrupt("return", (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.play());
15413
+ return _context17.abrupt("return", (_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.play());
15403
15414
  case 1:
15404
15415
  case "end":
15405
15416
  return _context17.stop();
@@ -15415,11 +15426,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15415
15426
  key: "releaseControls",
15416
15427
  value: function() {
15417
15428
  var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee18(name) {
15418
- var _classPrivateFieldGet84;
15429
+ var _classPrivateFieldGet85;
15419
15430
  return _regeneratorRuntime().wrap(function _callee18$(_context18) {
15420
15431
  while (1) switch (_context18.prev = _context18.next) {
15421
15432
  case 0:
15422
- return _context18.abrupt("return", (_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.releaseControls(name));
15433
+ return _context18.abrupt("return", (_classPrivateFieldGet85 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.releaseControls(name));
15423
15434
  case 1:
15424
15435
  case "end":
15425
15436
  return _context18.stop();
@@ -15483,7 +15494,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15483
15494
  case 0:
15484
15495
  options = _args19.length > 1 && _args19[1] !== void 0 ? _args19[1] : {};
15485
15496
  return _context19.abrupt("return", new Promise(function(resolve, reject) {
15486
- var _classPrivateFieldGet85;
15497
+ var _classPrivateFieldGet86;
15487
15498
  if (!_classPrivateFieldGet(_api, _this11)) {
15488
15499
  reject(new Error("api not ready to replace"));
15489
15500
  }
@@ -15493,7 +15504,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15493
15504
  resolve();
15494
15505
  };
15495
15506
  _this11.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace2);
15496
- (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, _this11)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.replaceWith(mediaId, options);
15507
+ (_classPrivateFieldGet86 = _classPrivateFieldGet(_api, _this11)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.replaceWith(mediaId, options);
15497
15508
  }));
15498
15509
  case 2:
15499
15510
  case "end":
@@ -15510,11 +15521,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15510
15521
  key: "requestControls",
15511
15522
  value: function() {
15512
15523
  var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20(name) {
15513
- var _classPrivateFieldGet86;
15524
+ var _classPrivateFieldGet87;
15514
15525
  return _regeneratorRuntime().wrap(function _callee20$(_context20) {
15515
15526
  while (1) switch (_context20.prev = _context20.next) {
15516
15527
  case 0:
15517
- return _context20.abrupt("return", (_classPrivateFieldGet86 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.requestControls(name));
15528
+ return _context20.abrupt("return", (_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87.requestControls(name));
15518
15529
  case 1:
15519
15530
  case "end":
15520
15531
  return _context20.stop();
@@ -15530,11 +15541,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15530
15541
  key: "requestFullscreen",
15531
15542
  value: function() {
15532
15543
  var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21() {
15533
- var _classPrivateFieldGet87;
15544
+ var _classPrivateFieldGet88;
15534
15545
  return _regeneratorRuntime().wrap(function _callee21$(_context21) {
15535
15546
  while (1) switch (_context21.prev = _context21.next) {
15536
15547
  case 0:
15537
- if (!((_classPrivateFieldGet87 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet87 !== void 0 && _classPrivateFieldGet87.requestFullscreen)) {
15548
+ if (!((_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet88 !== void 0 && _classPrivateFieldGet88.requestFullscreen)) {
15538
15549
  _context21.next = 2;
15539
15550
  break;
15540
15551
  }
@@ -15556,11 +15567,11 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15556
15567
  key: "showOverlay",
15557
15568
  value: function() {
15558
15569
  var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22(name) {
15559
- var _classPrivateFieldGet88;
15570
+ var _classPrivateFieldGet89;
15560
15571
  return _regeneratorRuntime().wrap(function _callee22$(_context22) {
15561
15572
  while (1) switch (_context22.prev = _context22.next) {
15562
15573
  case 0:
15563
- if (!((_classPrivateFieldGet88 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet88 !== void 0 && _classPrivateFieldGet88.requestOverlay)) {
15574
+ if (!((_classPrivateFieldGet89 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet89 !== void 0 && _classPrivateFieldGet89.requestOverlay)) {
15564
15575
  _context22.next = 2;
15565
15576
  break;
15566
15577
  }
@@ -15587,8 +15598,8 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15587
15598
  while (1) switch (_context23.prev = _context23.next) {
15588
15599
  case 0:
15589
15600
  return _context23.abrupt("return", new Promise(function(resolve, reject) {
15590
- var _classPrivateFieldGet89;
15591
- if ((_classPrivateFieldGet89 = _classPrivateFieldGet(_api, _this12)) !== null && _classPrivateFieldGet89 !== void 0 && _classPrivateFieldGet89.popover) {
15601
+ var _classPrivateFieldGet90;
15602
+ if ((_classPrivateFieldGet90 = _classPrivateFieldGet(_api, _this12)) !== null && _classPrivateFieldGet90 !== void 0 && _classPrivateFieldGet90.popover) {
15592
15603
  _classPrivateFieldGet(_api, _this12).popover.show();
15593
15604
  resolve();
15594
15605
  }
@@ -15640,7 +15651,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15640
15651
  key: "whenControlMounted",
15641
15652
  value: function() {
15642
15653
  var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee25(handle) {
15643
- var _classPrivateFieldGet90;
15654
+ var _classPrivateFieldGet91;
15644
15655
  var control;
15645
15656
  return _regeneratorRuntime().wrap(function _callee25$(_context25) {
15646
15657
  while (1) switch (_context25.prev = _context25.next) {
@@ -15649,7 +15660,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15649
15660
  return this.whenApiReady();
15650
15661
  case 2:
15651
15662
  _context25.next = 4;
15652
- return (_classPrivateFieldGet90 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.whenControlMounted(handle);
15663
+ return (_classPrivateFieldGet91 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.whenControlMounted(handle);
15653
15664
  case 4:
15654
15665
  control = _context25.sent;
15655
15666
  if (control) {
@@ -15782,7 +15793,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15782
15793
  }, {
15783
15794
  key: "disconnectedCallback",
15784
15795
  value: function disconnectedCallback() {
15785
- var _classPrivateFieldGet91, _classPrivateFieldGet92, _this$shadowRoot;
15796
+ var _classPrivateFieldGet92, _classPrivateFieldGet93, _this$shadowRoot;
15786
15797
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
15787
15798
  return removeListener();
15788
15799
  });
@@ -15790,10 +15801,10 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
15790
15801
  _classPrivateFieldSet(_eventListeners, this, {});
15791
15802
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.Z)(_classPrivateFieldGet(_jsonLdId, this));
15792
15803
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_25__.s3)(this.mediaId);
15793
- (_classPrivateFieldGet91 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.disconnect();
15804
+ (_classPrivateFieldGet92 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.disconnect();
15794
15805
  _classPrivateFieldSet(_resizeObserver, this, null);
15795
15806
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__.iU)("__".concat(this.uniqueId, "_dom_options__"));
15796
- (_classPrivateFieldGet92 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.remove();
15807
+ (_classPrivateFieldGet93 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.remove();
15797
15808
  _classPrivateFieldSet(_api, this, null);
15798
15809
  (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
15799
15810
  _classPrivateFieldSet(_preactRoot, this, null);
@@ -15820,6 +15831,8 @@ function _defaultLocalization() {
15820
15831
  alpha3Bibliographic: "eng",
15821
15832
  alpha3Terminologic: "eng",
15822
15833
  duration: 0,
15834
+ genericName: "English",
15835
+ genericNativeName: "English",
15823
15836
  hashedId: this.mediaId,
15824
15837
  ietfLanguageTag: "eng",
15825
15838
  iso6392LanguageCode: "eng",
@@ -15833,11 +15846,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
15833
15846
  return !!document.querySelector('wistia-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
15834
15847
  }
15835
15848
  function _findLocalizationByLanguage(language) {
15836
- var _classPrivateFieldGet93;
15849
+ var _classPrivateFieldGet94;
15837
15850
  if (language == null) {
15838
15851
  return void 0;
15839
15852
  }
15840
- return (_classPrivateFieldGet93 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.find(function(localization) {
15853
+ return (_classPrivateFieldGet94 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.find(function(localization) {
15841
15854
  return localization.ietfLanguageTag === language || localization.iso6392LanguageCode === language;
15842
15855
  });
15843
15856
  }
@@ -15882,8 +15895,8 @@ function _initPlayerEmbed(_ref23) {
15882
15895
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
15883
15896
  }
15884
15897
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
15885
- var _classPrivateFieldGet94;
15886
- (_classPrivateFieldGet94 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.states.delete("--initializing");
15898
+ var _classPrivateFieldGet95;
15899
+ (_classPrivateFieldGet95 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.states.delete("--initializing");
15887
15900
  }
15888
15901
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
15889
15902
  container,
@@ -15911,10 +15924,10 @@ function _initPublicApi2() {
15911
15924
  throw new Error("Wistia.PublicApi is not defined");
15912
15925
  case 5:
15913
15926
  embeddedCallback = function embeddedCallback2() {
15914
- var _classPrivateFieldGet101;
15927
+ var _classPrivateFieldGet102;
15915
15928
  void _assertClassBrand(_WistiaPlayer_brand, _this20, _maybeInitializeMux).call(_this20);
15916
15929
  _assertClassBrand(_WistiaPlayer_brand, _this20, _renderEmbedTemplate).call(_this20);
15917
- (_classPrivateFieldGet101 = _classPrivateFieldGet(_resizeObserver, _this20)) === null || _classPrivateFieldGet101 === void 0 ? void 0 : _classPrivateFieldGet101.disconnect();
15930
+ (_classPrivateFieldGet102 = _classPrivateFieldGet(_resizeObserver, _this20)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.disconnect();
15918
15931
  _classPrivateFieldSet(_resizeObserver, _this20, null);
15919
15932
  if (_classPrivateFieldGet(_playPending, _this20)) {
15920
15933
  void _this20.play();
@@ -15932,8 +15945,8 @@ function _initPublicApi2() {
15932
15945
  _this20.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _classPrivateFieldGet(_handleAfterReplace, _this20));
15933
15946
  });
15934
15947
  _classPrivateFieldGet(_api, this).ready(function() {
15935
- var _classPrivateFieldGet102;
15936
- (_classPrivateFieldGet102 = _classPrivateFieldGet(_preloadThumbnailRoot, _this20)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.remove();
15948
+ var _classPrivateFieldGet103;
15949
+ (_classPrivateFieldGet103 = _classPrivateFieldGet(_preloadThumbnailRoot, _this20)) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.remove();
15937
15950
  _this20.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this20));
15938
15951
  _this20.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, {
15939
15952
  detail: {
@@ -15998,8 +16011,8 @@ function _maybeInitializeMux2() {
15998
16011
  this.addEventListener("visitor-tracking-change", function(event) {
15999
16012
  var isTrackingEnabled = event.detail.isTrackingEnabled;
16000
16013
  if (!isTrackingEnabled) {
16001
- var _classPrivateFieldGet104, _classPrivateFieldGet105;
16002
- (_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this21)) === null || _classPrivateFieldGet104 === void 0 ? void 0 : (_classPrivateFieldGet105 = _classPrivateFieldGet104.mux) === null || _classPrivateFieldGet105 === void 0 ? void 0 : _classPrivateFieldGet105.destroy();
16014
+ var _classPrivateFieldGet105, _classPrivateFieldGet106;
16015
+ (_classPrivateFieldGet105 = _classPrivateFieldGet(_api, _this21)) === null || _classPrivateFieldGet105 === void 0 ? void 0 : (_classPrivateFieldGet106 = _classPrivateFieldGet105.mux) === null || _classPrivateFieldGet106 === void 0 ? void 0 : _classPrivateFieldGet106.destroy();
16003
16016
  }
16004
16017
  });
16005
16018
  case 11:
@@ -16092,8 +16105,8 @@ function _renderPreloadThumbnail() {
16092
16105
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
16093
16106
  return;
16094
16107
  }
16095
- var _classPrivateFieldGet95 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet95.assets, mediaType = _classPrivateFieldGet95.mediaType, carouselHardWall = _classPrivateFieldGet95.carouselHardWall;
16096
- var _classPrivateFieldGet96 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet96.autoPlay, plugin = _classPrivateFieldGet96.plugin;
16108
+ var _classPrivateFieldGet96 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet96.assets, mediaType = _classPrivateFieldGet96.mediaType, carouselHardWall = _classPrivateFieldGet96.carouselHardWall;
16109
+ var _classPrivateFieldGet97 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet97.autoPlay, plugin = _classPrivateFieldGet97.plugin;
16097
16110
  if (carouselHardWall) {
16098
16111
  return;
16099
16112
  }
@@ -16118,12 +16131,12 @@ function _runMethodsFromAttributes() {
16118
16131
  var _this16 = this;
16119
16132
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
16120
16133
  this.whenApiReady().then(function() {
16121
- var _ref25, _classPrivateFieldGet97, _classPrivateFieldGet98;
16134
+ var _ref25, _classPrivateFieldGet98, _classPrivateFieldGet99;
16122
16135
  var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this16, _getValueFromAttribute).call(_this16, "current-time"));
16123
- var isClosedPopover = (_ref25 = ((_classPrivateFieldGet97 = _classPrivateFieldGet(_api, _this16)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.popover) && !_classPrivateFieldGet(_api, _this16).popover.isVisible()) !== null && _ref25 !== void 0 ? _ref25 : false;
16136
+ var isClosedPopover = (_ref25 = ((_classPrivateFieldGet98 = _classPrivateFieldGet(_api, _this16)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.popover) && !_classPrivateFieldGet(_api, _this16).popover.isVisible()) !== null && _ref25 !== void 0 ? _ref25 : false;
16124
16137
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_7__.GS)();
16125
16138
  var shouldDelayUntilPlay = _this16.state !== "playing" && (isMobile || isClosedPopover);
16126
- void ((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, _this16)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.time(newTime, {
16139
+ void ((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this16)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.time(newTime, {
16127
16140
  lazy: shouldDelayUntilPlay
16128
16141
  }));
16129
16142
  _assertClassBrand(_WistiaPlayer_brand, _this16, _setSyncedEmbedOption).call(_this16, "currentTime", newTime);
@@ -16135,9 +16148,9 @@ function _runMethodsFromAttributes() {
16135
16148
  }
16136
16149
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
16137
16150
  this.whenApiReady().then(function() {
16138
- var _classPrivateFieldGet99;
16151
+ var _classPrivateFieldGet100;
16139
16152
  var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this16, _getValueFromAttribute).call(_this16, "video-quality");
16140
- (_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, _this16)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.setVideoQuality(newQuality);
16153
+ (_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, _this16)) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.setVideoQuality(newQuality);
16141
16154
  _assertClassBrand(_WistiaPlayer_brand, _this16, _setSyncedEmbedOption).call(_this16, "videoQuality", newQuality);
16142
16155
  }).catch(function(_error) {
16143
16156
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/wistia-player-react",
3
- "version": "0.0.109",
3
+ "version": "0.0.110",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "description": "An embeddable wistia-player web component and React wrapper to add responsive, lightweight, and SEO-friendly videos to your site.",
6
6
  "keywords": [
@@ -45,7 +45,7 @@
45
45
  "start:dev:yalc": "run build:react:dev --watch --yalc"
46
46
  },
47
47
  "dependencies": {
48
- "@wistia/wistia-player": "0.0.109"
48
+ "@wistia/wistia-player": "0.0.110"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.26.9",