@wistia/wistia-player-react 0.0.66 → 0.0.68

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.
@@ -580,8 +580,8 @@ function _generateUniqueId(mediaId) {
580
580
  return candidate;
581
581
  }
582
582
  function _getSyncedEmbedOption(key) {
583
- var _classPrivateFieldGet142, _ref17, _ref18;
584
- if ((_classPrivateFieldGet142 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet142 !== void 0 && _classPrivateFieldGet142._impl && key in _classPrivateFieldGet(_api, this)._impl._attrs) {
583
+ var _classPrivateFieldGet150, _ref17, _ref18;
584
+ if ((_classPrivateFieldGet150 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet150 !== void 0 && _classPrivateFieldGet150._impl && key in _classPrivateFieldGet(_api, this)._impl._attrs) {
585
585
  return _classPrivateFieldGet(_api, this)._impl._attrs[key];
586
586
  }
587
587
  return (_ref17 = (_ref18 = this.embedOptions[key]) !== null && _ref18 !== void 0 ? _ref18 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_27__.$)(key))) !== null && _ref17 !== void 0 ? _ref17 : defaultEmbedOptions[key];
@@ -603,6 +603,9 @@ function _getValueFromAttribute(name) {
603
603
  }
604
604
  function _initPlayerEmbed(_ref19) {
605
605
  var container = _ref19.container, mediaData = _ref19.mediaData;
606
+ if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
607
+ return;
608
+ }
606
609
  _classPrivateFieldGet(_playerData, this).updateEmbedOptionOverrides({
607
610
  videoFoam: true
608
611
  });
@@ -612,78 +615,78 @@ function _initPlayerEmbed(_ref19) {
612
615
  _assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
613
616
  }
614
617
  if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
615
- var _classPrivateFieldGet143;
616
- (_classPrivateFieldGet143 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet143 === void 0 ? void 0 : _classPrivateFieldGet143.states.delete("--initializing");
618
+ var _classPrivateFieldGet151;
619
+ (_classPrivateFieldGet151 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet151 === void 0 ? void 0 : _classPrivateFieldGet151.states.delete("--initializing");
617
620
  }
618
621
  void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
619
622
  container,
620
623
  mediaData
621
624
  });
622
625
  }
623
- function _initPublicApi(_x18, _x19) {
626
+ function _initPublicApi(_x20, _x21) {
624
627
  return _initPublicApi2.apply(this, arguments);
625
628
  }
626
629
  function _initPublicApi2() {
627
- _initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee23(mediaId, options) {
628
- var _this16 = this;
630
+ _initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee25(mediaId, options) {
631
+ var _this17 = this;
629
632
  var embeddedCallback;
630
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
631
- while (1) switch (_context23.prev = _context23.next) {
633
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
634
+ while (1) switch (_context25.prev = _context25.next) {
632
635
  case 0:
633
- _context23.next = 2;
636
+ _context25.next = 2;
634
637
  return _classPrivateFieldGet(_publicApiScript, this);
635
638
  case 2:
636
639
  if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.PublicApi) {
637
- _context23.next = 5;
640
+ _context25.next = 5;
638
641
  break;
639
642
  }
640
643
  (0, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_14__.WO)("player/failure/init-failed");
641
644
  throw new Error("Wistia.PublicApi is not defined");
642
645
  case 5:
643
646
  embeddedCallback = function embeddedCallback2() {
644
- var _classPrivateFieldGet153, _classPrivateFieldGet154;
645
- void _assertClassBrand(_WistiaPlayer_brand, _this16, _maybeInitializeMux).call(_this16);
646
- _classPrivateFieldSet(_preloadAspectRatio, _this16, void 0);
647
- _assertClassBrand(_WistiaPlayer_brand, _this16, _renderEmbedTemplate).call(_this16);
648
- (_classPrivateFieldGet153 = _classPrivateFieldGet(_preloadThumbnailRoot, _this16)) === null || _classPrivateFieldGet153 === void 0 ? void 0 : _classPrivateFieldGet153.remove();
649
- _this16.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this16));
650
- (_classPrivateFieldGet154 = _classPrivateFieldGet(_resizeObserver, _this16)) === null || _classPrivateFieldGet154 === void 0 ? void 0 : _classPrivateFieldGet154.disconnect();
651
- _classPrivateFieldSet(_resizeObserver, _this16, null);
652
- if (_classPrivateFieldGet(_playPending, _this16)) {
653
- void _this16.play();
647
+ var _classPrivateFieldGet161, _classPrivateFieldGet162;
648
+ void _assertClassBrand(_WistiaPlayer_brand, _this17, _maybeInitializeMux).call(_this17);
649
+ _classPrivateFieldSet(_preloadAspectRatio, _this17, void 0);
650
+ _assertClassBrand(_WistiaPlayer_brand, _this17, _renderEmbedTemplate).call(_this17);
651
+ (_classPrivateFieldGet161 = _classPrivateFieldGet(_preloadThumbnailRoot, _this17)) === null || _classPrivateFieldGet161 === void 0 ? void 0 : _classPrivateFieldGet161.remove();
652
+ _this17.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this17));
653
+ (_classPrivateFieldGet162 = _classPrivateFieldGet(_resizeObserver, _this17)) === null || _classPrivateFieldGet162 === void 0 ? void 0 : _classPrivateFieldGet162.disconnect();
654
+ _classPrivateFieldSet(_resizeObserver, _this17, null);
655
+ if (_classPrivateFieldGet(_playPending, _this17)) {
656
+ void _this17.play();
654
657
  }
655
658
  };
656
659
  this.addEventListener("embedded", embeddedCallback);
657
660
  _classPrivateFieldGet(_removeEventListeners, this).push(function() {
658
- _this16.removeEventListener("embedded", embeddedCallback);
661
+ _this17.removeEventListener("embedded", embeddedCallback);
659
662
  });
660
663
  _classPrivateFieldSet(_api, this, new _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.PublicApi(mediaId, options));
661
664
  _classPrivateFieldGet(_api, this).ready(function() {
662
- var _classPrivateFieldGet155;
663
- _this16.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, {
665
+ var _classPrivateFieldGet163;
666
+ _this17.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, {
664
667
  detail: {
665
668
  mediaId
666
669
  }
667
670
  }));
668
- _this16.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.iP, {
671
+ _this17.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.iP, {
669
672
  detail: {
670
673
  mediaId,
671
- api: _classPrivateFieldGet(_api, _this16)
674
+ api: _classPrivateFieldGet(_api, _this17)
672
675
  }
673
676
  }));
674
- if ((_classPrivateFieldGet155 = _classPrivateFieldGet(_api, _this16)) !== null && _classPrivateFieldGet155 !== void 0 && _classPrivateFieldGet155._impl) {
675
- Object.entries(_classPrivateFieldGet(_api, _this16)._impl._attrs).forEach(function(_ref25) {
677
+ if ((_classPrivateFieldGet163 = _classPrivateFieldGet(_api, _this17)) !== null && _classPrivateFieldGet163 !== void 0 && _classPrivateFieldGet163._impl) {
678
+ Object.entries(_classPrivateFieldGet(_api, _this17)._impl._attrs).forEach(function(_ref25) {
676
679
  var _ref26 = _slicedToArray(_ref25, 2), key = _ref26[0], value = _ref26[1];
677
- _classPrivateFieldGet(_playerData, _this16).updateEmbedOptionOverrides(_defineProperty({}, key, value));
680
+ _classPrivateFieldGet(_playerData, _this17).updateEmbedOptionOverrides(_defineProperty({}, key, value));
678
681
  });
679
682
  }
680
- _assertClassBrand(_WistiaPlayer_brand, _this16, _renderPreloadThumbnail).call(_this16);
683
+ _assertClassBrand(_WistiaPlayer_brand, _this17, _renderPreloadThumbnail).call(_this17);
681
684
  });
682
685
  case 10:
683
686
  case "end":
684
- return _context23.stop();
687
+ return _context25.stop();
685
688
  }
686
- }, _callee23, this);
689
+ }, _callee25, this);
687
690
  }));
688
691
  return _initPublicApi2.apply(this, arguments);
689
692
  }
@@ -694,44 +697,44 @@ function _maybeInitializeMux() {
694
697
  return _maybeInitializeMux2.apply(this, arguments);
695
698
  }
696
699
  function _maybeInitializeMux2() {
697
- _maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee24() {
698
- var _this17 = this;
700
+ _maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee26() {
701
+ var _this18 = this;
699
702
  var shouldRandomEnableMux, shouldEnableMuxForPlayer, embedType, mux;
700
- return _regeneratorRuntime().wrap(function _callee24$(_context24) {
701
- while (1) switch (_context24.prev = _context24.next) {
703
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
704
+ while (1) switch (_context26.prev = _context26.next) {
702
705
  case 0:
703
706
  if (_classPrivateFieldGet(_api, this)) {
704
- _context24.next = 2;
707
+ _context26.next = 2;
705
708
  break;
706
709
  }
707
- return _context24.abrupt("return");
710
+ return _context26.abrupt("return");
708
711
  case 2:
709
712
  shouldRandomEnableMux = (0, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_30__.k)(_utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_31__._);
710
713
  shouldEnableMuxForPlayer = (0, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_31__.J)(_classPrivateFieldGet(_api, this), shouldRandomEnableMux) && (0, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_15__.D5)();
711
714
  embedType = this.useWebComponent ? "translated-web-component" : "web-component";
712
715
  if (!shouldEnableMuxForPlayer) {
713
- _context24.next = 11;
716
+ _context26.next = 11;
714
717
  break;
715
718
  }
716
- _context24.next = 8;
719
+ _context26.next = 8;
717
720
  return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_7__.$)("assets/external/wistia-mux.js");
718
721
  case 8:
719
- mux = _context24.sent;
722
+ mux = _context26.sent;
720
723
  mux.init(_classPrivateFieldGet(_api, this), {
721
724
  embedType
722
725
  });
723
726
  this.addEventListener("visitor-tracking-change", function(event) {
724
727
  var isTrackingEnabled = event.detail.isTrackingEnabled;
725
728
  if (!isTrackingEnabled) {
726
- var _classPrivateFieldGet157, _classPrivateFieldGet158;
727
- (_classPrivateFieldGet157 = _classPrivateFieldGet(_api, _this17)) === null || _classPrivateFieldGet157 === void 0 ? void 0 : (_classPrivateFieldGet158 = _classPrivateFieldGet157.mux) === null || _classPrivateFieldGet158 === void 0 ? void 0 : _classPrivateFieldGet158.destroy();
729
+ var _classPrivateFieldGet165, _classPrivateFieldGet166;
730
+ (_classPrivateFieldGet165 = _classPrivateFieldGet(_api, _this18)) === null || _classPrivateFieldGet165 === void 0 ? void 0 : (_classPrivateFieldGet166 = _classPrivateFieldGet165.mux) === null || _classPrivateFieldGet166 === void 0 ? void 0 : _classPrivateFieldGet166.destroy();
728
731
  }
729
732
  });
730
733
  case 11:
731
734
  case "end":
732
- return _context24.stop();
735
+ return _context26.stop();
733
736
  }
734
- }, _callee24, this);
737
+ }, _callee26, this);
735
738
  }));
736
739
  return _maybeInitializeMux2.apply(this, arguments);
737
740
  }
@@ -757,7 +760,7 @@ function _maybeSetupEmbedOptionsFromIframe() {
757
760
  _classPrivateFieldGet(_playerData, this).setIframeEmbedOptionSource(iframeEmbedOptions);
758
761
  }
759
762
  function _renderEmbedTemplate() {
760
- var _this$embedHost2, _this11 = this;
763
+ var _this$embedHost2, _this12 = this;
761
764
  if (!_classPrivateFieldGet(_preactRoot, this)) {
762
765
  return;
763
766
  }
@@ -807,7 +810,7 @@ function _renderEmbedTemplate() {
807
810
  "aria-hidden": "true"
808
811
  })))), (0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
809
812
  ref: function ref(_ref20) {
810
- _classPrivateFieldSet(_preloadThumbnailRoot, _this11, _ref20);
813
+ _classPrivateFieldSet(_preloadThumbnailRoot, _this12, _ref20);
811
814
  }
812
815
  })), _classPrivateFieldGet(_preactRoot, this));
813
816
  }
@@ -816,8 +819,8 @@ function _renderPreloadThumbnail() {
816
819
  if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
817
820
  return;
818
821
  }
819
- var _classPrivateFieldGet144 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet144.assets, mediaType = _classPrivateFieldGet144.mediaType;
820
- var _classPrivateFieldGet145 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet145.autoPlay, plugin = _classPrivateFieldGet145.plugin;
822
+ var _classPrivateFieldGet152 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet152.assets, mediaType = _classPrivateFieldGet152.mediaType;
823
+ var _classPrivateFieldGet153 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet153.autoPlay, plugin = _classPrivateFieldGet153.plugin;
821
824
  var thumbnailAssets = (0, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_5__.Q0)(assets, {});
822
825
  var willAutoplay = this.autoplay || autoPlay;
823
826
  var hasVideoThumbnail = (plugin === null || plugin === void 0 ? void 0 : plugin.videoThumbnail) !== void 0;
@@ -836,18 +839,18 @@ function _renderPreloadThumbnail() {
836
839
  })), _classPrivateFieldGet(_preloadThumbnailRoot, this));
837
840
  }
838
841
  function _runMethodsFromAttributes() {
839
- var _this12 = this;
842
+ var _this13 = this;
840
843
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
841
844
  this.whenApiReady().then(function() {
842
- var _ref21, _classPrivateFieldGet146, _classPrivateFieldGet147, _classPrivateFieldGet148;
843
- var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this12, _getValueFromAttribute).call(_this12, "current-time"));
844
- var isClosedPopover = (_ref21 = ((_classPrivateFieldGet146 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet146 === void 0 ? void 0 : _classPrivateFieldGet146.popover) && !_classPrivateFieldGet(_api, _this12).popover.isVisible()) !== null && _ref21 !== void 0 ? _ref21 : false;
845
+ var _ref21, _classPrivateFieldGet154, _classPrivateFieldGet155, _classPrivateFieldGet156;
846
+ var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, "current-time"));
847
+ var isClosedPopover = (_ref21 = ((_classPrivateFieldGet154 = _classPrivateFieldGet(_api, _this13)) === null || _classPrivateFieldGet154 === void 0 ? void 0 : _classPrivateFieldGet154.popover) && !_classPrivateFieldGet(_api, _this13).popover.isVisible()) !== null && _ref21 !== void 0 ? _ref21 : false;
845
848
  var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_6__.GS)();
846
- var shouldDelayUntilPlay = _this12.state !== "playing" && (isMobile || isClosedPopover);
847
- void ((_classPrivateFieldGet147 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet147 === void 0 ? void 0 : (_classPrivateFieldGet148 = _classPrivateFieldGet147._impl) === null || _classPrivateFieldGet148 === void 0 ? void 0 : _classPrivateFieldGet148.time(newTime, {
849
+ var shouldDelayUntilPlay = _this13.state !== "playing" && (isMobile || isClosedPopover);
850
+ void ((_classPrivateFieldGet155 = _classPrivateFieldGet(_api, _this13)) === null || _classPrivateFieldGet155 === void 0 ? void 0 : (_classPrivateFieldGet156 = _classPrivateFieldGet155._impl) === null || _classPrivateFieldGet156 === void 0 ? void 0 : _classPrivateFieldGet156.time(newTime, {
848
851
  lazy: shouldDelayUntilPlay
849
852
  }));
850
- _assertClassBrand(_WistiaPlayer_brand, _this12, _setSyncedEmbedOption).call(_this12, "currentTime", newTime);
853
+ _assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, "currentTime", newTime);
851
854
  }).catch(function(_error) {
852
855
  });
853
856
  }
@@ -856,41 +859,41 @@ function _runMethodsFromAttributes() {
856
859
  }
857
860
  if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
858
861
  this.whenApiReady().then(function() {
859
- var _classPrivateFieldGet149, _classPrivateFieldGet150;
860
- var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this12, _getValueFromAttribute).call(_this12, "video-quality");
861
- (_classPrivateFieldGet149 = _classPrivateFieldGet(_api, _this12)) === null || _classPrivateFieldGet149 === void 0 ? void 0 : (_classPrivateFieldGet150 = _classPrivateFieldGet149._impl) === null || _classPrivateFieldGet150 === void 0 ? void 0 : _classPrivateFieldGet150.setVideoQuality(newQuality);
862
- _assertClassBrand(_WistiaPlayer_brand, _this12, _setSyncedEmbedOption).call(_this12, "videoQuality", newQuality);
862
+ var _classPrivateFieldGet157, _classPrivateFieldGet158;
863
+ var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, "video-quality");
864
+ (_classPrivateFieldGet157 = _classPrivateFieldGet(_api, _this13)) === null || _classPrivateFieldGet157 === void 0 ? void 0 : (_classPrivateFieldGet158 = _classPrivateFieldGet157._impl) === null || _classPrivateFieldGet158 === void 0 ? void 0 : _classPrivateFieldGet158.setVideoQuality(newQuality);
865
+ _assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, "videoQuality", newQuality);
863
866
  }).catch(function(_error) {
864
867
  });
865
868
  }
866
869
  }
867
870
  function _saveInitialAttributesFromDomOptions() {
868
- var _this13 = this;
871
+ var _this14 = this;
869
872
  var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref22) {
870
873
  var _ref23 = _slicedToArray(_ref22, 2), value = _ref23[1];
871
- return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_27__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, value.name)];
874
+ return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_27__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, value.name)];
872
875
  }));
873
876
  _classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
874
877
  (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_8__.gY)("__".concat(this.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, this).embedOptions);
875
878
  }
876
879
  function _setSyncedEmbedOption(key, value) {
877
- var _classPrivateFieldGet151;
880
+ var _classPrivateFieldGet159;
878
881
  _classPrivateFieldGet(_logger, this).info("set ".concat(key), value.toString());
879
- if ((_classPrivateFieldGet151 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet151 !== void 0 && _classPrivateFieldGet151._impl) {
882
+ if ((_classPrivateFieldGet159 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet159 !== void 0 && _classPrivateFieldGet159._impl) {
880
883
  _classPrivateFieldGet(_api, this)._impl._attrs[key] = value;
881
884
  }
882
885
  _classPrivateFieldGet(_playerData, this).updateEmbedOptionOverrides(_defineProperty({}, key, value));
883
886
  _assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
884
887
  }
885
888
  function _setupEventListeners() {
886
- var _this14 = this;
889
+ var _this15 = this;
887
890
  var loadedMediaDataCallback = function loadedMediaDataCallback2(event) {
888
891
  var _ref24 = event.detail, mediaData = _ref24.mediaData;
889
- _assertClassBrand(_WistiaPlayer_brand, _this14, _updateMediaData).call(_this14, mediaData);
892
+ _assertClassBrand(_WistiaPlayer_brand, _this15, _updateMediaData).call(_this15, mediaData);
890
893
  };
891
894
  this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.rO, loadedMediaDataCallback);
892
895
  _classPrivateFieldGet(_removeEventListeners, this).push(function() {
893
- _this14.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.rO, loadedMediaDataCallback);
896
+ _this15.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.rO, loadedMediaDataCallback);
894
897
  });
895
898
  this.addEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, this), {
896
899
  once: true
@@ -900,9 +903,9 @@ function _shouldDisplaySwatch() {
900
903
  return this.swatch !== false && (!this.wistiaPopover || _assertClassBrand(_WistiaPlayer_brand, this, _isPopoverWithThumbnail).call(this));
901
904
  }
902
905
  function _updateEmail(email) {
903
- var _this15 = this;
906
+ var _this16 = this;
904
907
  (0, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_17__.$B)(function(localStorage2) {
905
- localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this15, _get_pageUrl)] = _objectSpread(_objectSpread({}, localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this15, _get_pageUrl)]), {}, {
908
+ localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this16, _get_pageUrl)] = _objectSpread(_objectSpread({}, localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this16, _get_pageUrl)]), {}, {
906
909
  trackEmail: email
907
910
  });
908
911
  });
@@ -3409,6 +3412,11 @@ var init_wistia_player = __esm({
3409
3412
  rO: () => (
3410
3413
  /* binding */
3411
3414
  LOADED_MEDIA_DATA_EVENT
3415
+ ),
3416
+ /* harmony export */
3417
+ ve: () => (
3418
+ /* binding */
3419
+ INPUT_CONTEXT_CHANGE_EVENT
3412
3420
  )
3413
3421
  /* harmony export */
3414
3422
  });
@@ -3417,6 +3425,7 @@ var init_wistia_player = __esm({
3417
3425
  var API_READY_EVENT = "api-ready";
3418
3426
  var AFTER_REPLACE_EVENT = "afterreplace";
3419
3427
  var LOADED_MEDIA_DATA_EVENT = "loaded-media-data";
3428
+ var INPUT_CONTEXT_CHANGE_EVENT = "input-context-change";
3420
3429
  }
3421
3430
  ),
3422
3431
  /***/
@@ -9636,7 +9645,7 @@ var init_wistia_player = __esm({
9636
9645
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9637
9646
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9638
9647
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9639
- var TAGGED_VERSION = "0.0.66";
9648
+ var TAGGED_VERSION = "0.0.68";
9640
9649
  var DEFAULT_PROTOCOL = function() {
9641
9650
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9642
9651
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -13719,6 +13728,12 @@ var init_wistia_player = __esm({
13719
13728
  var _classPrivateFieldGet38, _classPrivateFieldGet39, _classPrivateFieldGet40;
13720
13729
  return (_classPrivateFieldGet38 = (_classPrivateFieldGet39 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet39 === void 0 ? void 0 : (_classPrivateFieldGet40 = _classPrivateFieldGet39._impl) === null || _classPrivateFieldGet40 === void 0 ? void 0 : _classPrivateFieldGet40.inFullscreen()) !== null && _classPrivateFieldGet38 !== void 0 ? _classPrivateFieldGet38 : false;
13721
13730
  }
13731
+ }, {
13732
+ key: "inputContext",
13733
+ get: function get() {
13734
+ var _classPrivateFieldGet41, _classPrivateFieldGet42;
13735
+ return (_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : (_classPrivateFieldGet42 = _classPrivateFieldGet41._impl) === null || _classPrivateFieldGet42 === void 0 ? void 0 : _classPrivateFieldGet42.getInputContext();
13736
+ }
13722
13737
  /**
13723
13738
  * Returns whether instantHLS is enabled for the video.
13724
13739
  * @returns {boolean}
@@ -13726,8 +13741,8 @@ var init_wistia_player = __esm({
13726
13741
  }, {
13727
13742
  key: "instantHls",
13728
13743
  get: function get() {
13729
- var _classPrivateFieldGet41, _classPrivateFieldGet42, _classPrivateFieldGet43;
13730
- return (_classPrivateFieldGet41 = (_classPrivateFieldGet42 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet42 === void 0 ? void 0 : (_classPrivateFieldGet43 = _classPrivateFieldGet42._impl) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.isInstantHls()) !== null && _classPrivateFieldGet41 !== void 0 ? _classPrivateFieldGet41 : false;
13744
+ var _classPrivateFieldGet43, _classPrivateFieldGet44, _classPrivateFieldGet45;
13745
+ return (_classPrivateFieldGet43 = (_classPrivateFieldGet44 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet44 === void 0 ? void 0 : (_classPrivateFieldGet45 = _classPrivateFieldGet44._impl) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.isInstantHls()) !== null && _classPrivateFieldGet43 !== void 0 ? _classPrivateFieldGet43 : false;
13731
13746
  }
13732
13747
  /**
13733
13748
  * Returns all the mediaData set on the WistiaPlayer
@@ -13763,17 +13778,17 @@ var init_wistia_player = __esm({
13763
13778
  }, {
13764
13779
  key: "muted",
13765
13780
  get: function get() {
13766
- var _ref7, _classPrivateFieldGet44, _classPrivateFieldGet45, _classPrivateFieldGet46;
13767
- return (_ref7 = (_classPrivateFieldGet44 = (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : (_classPrivateFieldGet46 = _classPrivateFieldGet45._impl) === null || _classPrivateFieldGet46 === void 0 ? void 0 : _classPrivateFieldGet46.isMuted()) !== null && _classPrivateFieldGet44 !== void 0 ? _classPrivateFieldGet44 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
13781
+ var _ref7, _classPrivateFieldGet46, _classPrivateFieldGet47, _classPrivateFieldGet48;
13782
+ return (_ref7 = (_classPrivateFieldGet46 = (_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet47 === void 0 ? void 0 : (_classPrivateFieldGet48 = _classPrivateFieldGet47._impl) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.isMuted()) !== null && _classPrivateFieldGet46 !== void 0 ? _classPrivateFieldGet46 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
13768
13783
  },
13769
13784
  set: function set(shouldMute) {
13770
13785
  if (_classPrivateFieldGet(_api, this)) {
13771
13786
  if (shouldMute) {
13772
- var _classPrivateFieldGet47;
13773
- void ((_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.mute());
13787
+ var _classPrivateFieldGet49;
13788
+ void ((_classPrivateFieldGet49 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet49 === void 0 ? void 0 : _classPrivateFieldGet49.mute());
13774
13789
  } else {
13775
- var _classPrivateFieldGet48;
13776
- void ((_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.unmute());
13790
+ var _classPrivateFieldGet50;
13791
+ void ((_classPrivateFieldGet50 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet50 === void 0 ? void 0 : _classPrivateFieldGet50.unmute());
13777
13792
  }
13778
13793
  }
13779
13794
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "muted", shouldMute);
@@ -13786,8 +13801,8 @@ var init_wistia_player = __esm({
13786
13801
  }, {
13787
13802
  key: "name",
13788
13803
  get: function get() {
13789
- var _ref8, _classPrivateFieldGet49, _classPrivateFieldGet50, _classPrivateFieldGet51;
13790
- return (_ref8 = (_classPrivateFieldGet49 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet49 !== void 0 ? _classPrivateFieldGet49 : (_classPrivateFieldGet50 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet50 === void 0 ? void 0 : (_classPrivateFieldGet51 = _classPrivateFieldGet50._mediaData) === null || _classPrivateFieldGet51 === void 0 ? void 0 : _classPrivateFieldGet51.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
13804
+ var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52, _classPrivateFieldGet53;
13805
+ return (_ref8 = (_classPrivateFieldGet51 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet51 !== void 0 ? _classPrivateFieldGet51 : (_classPrivateFieldGet52 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : (_classPrivateFieldGet53 = _classPrivateFieldGet52._mediaData) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
13791
13806
  }
13792
13807
  }, {
13793
13808
  key: "paddingTop",
@@ -13804,8 +13819,8 @@ var init_wistia_player = __esm({
13804
13819
  }, {
13805
13820
  key: "paused",
13806
13821
  get: function get() {
13807
- var _classPrivateFieldGet52, _classPrivateFieldGet53;
13808
- return ((_classPrivateFieldGet52 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : (_classPrivateFieldGet53 = _classPrivateFieldGet52._impl) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.state()) === "paused";
13822
+ var _classPrivateFieldGet54, _classPrivateFieldGet55;
13823
+ return ((_classPrivateFieldGet54 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : (_classPrivateFieldGet55 = _classPrivateFieldGet54._impl) === null || _classPrivateFieldGet55 === void 0 ? void 0 : _classPrivateFieldGet55.state()) === "paused";
13809
13824
  }
13810
13825
  /**
13811
13826
  * Returns the percent of the video that has been watched as a decimal between 0 and 1.
@@ -13814,8 +13829,8 @@ var init_wistia_player = __esm({
13814
13829
  }, {
13815
13830
  key: "percentWatched",
13816
13831
  get: function get() {
13817
- var _classPrivateFieldGet54, _classPrivateFieldGet55, _classPrivateFieldGet56;
13818
- return (_classPrivateFieldGet54 = (_classPrivateFieldGet55 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet55 === void 0 ? void 0 : (_classPrivateFieldGet56 = _classPrivateFieldGet55._impl) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.percentWatched()) !== null && _classPrivateFieldGet54 !== void 0 ? _classPrivateFieldGet54 : 0;
13832
+ var _classPrivateFieldGet56, _classPrivateFieldGet57, _classPrivateFieldGet58;
13833
+ return (_classPrivateFieldGet56 = (_classPrivateFieldGet57 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : (_classPrivateFieldGet58 = _classPrivateFieldGet57._impl) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.percentWatched()) !== null && _classPrivateFieldGet56 !== void 0 ? _classPrivateFieldGet56 : 0;
13819
13834
  }
13820
13835
  /**
13821
13836
  * Returns the playback rate of the video.
@@ -13824,12 +13839,12 @@ var init_wistia_player = __esm({
13824
13839
  }, {
13825
13840
  key: "playbackRate",
13826
13841
  get: function get() {
13827
- var _ref9, _classPrivateFieldGet57, _classPrivateFieldGet58, _classPrivateFieldGet59;
13828
- return (_ref9 = (_classPrivateFieldGet57 = (_classPrivateFieldGet58 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet58 === void 0 ? void 0 : (_classPrivateFieldGet59 = _classPrivateFieldGet58._impl) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.playbackRate()) !== null && _classPrivateFieldGet57 !== void 0 ? _classPrivateFieldGet57 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
13842
+ var _ref9, _classPrivateFieldGet59, _classPrivateFieldGet60, _classPrivateFieldGet61;
13843
+ return (_ref9 = (_classPrivateFieldGet59 = (_classPrivateFieldGet60 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : (_classPrivateFieldGet61 = _classPrivateFieldGet60._impl) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbackRate()) !== null && _classPrivateFieldGet59 !== void 0 ? _classPrivateFieldGet59 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
13829
13844
  },
13830
13845
  set: function set(rate) {
13831
- var _classPrivateFieldGet60, _classPrivateFieldGet61;
13832
- (_classPrivateFieldGet60 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet60 === void 0 ? void 0 : (_classPrivateFieldGet61 = _classPrivateFieldGet60._impl) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbackRate(rate);
13846
+ var _classPrivateFieldGet62, _classPrivateFieldGet63;
13847
+ (_classPrivateFieldGet62 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : (_classPrivateFieldGet63 = _classPrivateFieldGet62._impl) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRate(rate);
13833
13848
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
13834
13849
  }
13835
13850
  /**
@@ -13842,8 +13857,8 @@ var init_wistia_player = __esm({
13842
13857
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
13843
13858
  },
13844
13859
  set: function set(shouldDisplay) {
13845
- var _classPrivateFieldGet62, _classPrivateFieldGet63;
13846
- (_classPrivateFieldGet62 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : (_classPrivateFieldGet63 = _classPrivateFieldGet62._impl) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
13860
+ var _classPrivateFieldGet64, _classPrivateFieldGet65;
13861
+ (_classPrivateFieldGet64 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : (_classPrivateFieldGet65 = _classPrivateFieldGet64._impl) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playbackRateControlEnabled(shouldDisplay);
13847
13862
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
13848
13863
  }
13849
13864
  /**
@@ -13856,8 +13871,8 @@ var init_wistia_player = __esm({
13856
13871
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
13857
13872
  },
13858
13873
  set: function set(shouldDisplay) {
13859
- var _classPrivateFieldGet64, _classPrivateFieldGet65;
13860
- (_classPrivateFieldGet64 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : (_classPrivateFieldGet65 = _classPrivateFieldGet64._impl) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playbarControlEnabled(shouldDisplay);
13874
+ var _classPrivateFieldGet66, _classPrivateFieldGet67;
13875
+ (_classPrivateFieldGet66 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : (_classPrivateFieldGet67 = _classPrivateFieldGet66._impl) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playbarControlEnabled(shouldDisplay);
13861
13876
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
13862
13877
  }
13863
13878
  /**
@@ -13870,8 +13885,8 @@ var init_wistia_player = __esm({
13870
13885
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
13871
13886
  },
13872
13887
  set: function set(radius) {
13873
- var _classPrivateFieldGet66, _classPrivateFieldGet67;
13874
- (_classPrivateFieldGet66 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : (_classPrivateFieldGet67 = _classPrivateFieldGet66._impl) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.setPlayerBorderRadius(Number(radius));
13888
+ var _classPrivateFieldGet68, _classPrivateFieldGet69;
13889
+ (_classPrivateFieldGet68 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : (_classPrivateFieldGet69 = _classPrivateFieldGet68._impl) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.setPlayerBorderRadius(Number(radius));
13875
13890
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", radius);
13876
13891
  }
13877
13892
  /**
@@ -13884,8 +13899,8 @@ var init_wistia_player = __esm({
13884
13899
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
13885
13900
  },
13886
13901
  set: function set(newColor) {
13887
- var _classPrivateFieldGet68, _classPrivateFieldGet69;
13888
- (_classPrivateFieldGet68 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : (_classPrivateFieldGet69 = _classPrivateFieldGet68._impl) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playerColor(newColor);
13902
+ var _classPrivateFieldGet70, _classPrivateFieldGet71;
13903
+ (_classPrivateFieldGet70 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : (_classPrivateFieldGet71 = _classPrivateFieldGet70._impl) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.playerColor(newColor);
13889
13904
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
13890
13905
  }
13891
13906
  /**
@@ -13941,8 +13956,8 @@ var init_wistia_player = __esm({
13941
13956
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
13942
13957
  },
13943
13958
  set: function set(shouldDisplay) {
13944
- var _classPrivateFieldGet70, _classPrivateFieldGet71;
13945
- (_classPrivateFieldGet70 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : (_classPrivateFieldGet71 = _classPrivateFieldGet70._impl) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.playPauseControlEnabled(shouldDisplay);
13959
+ var _classPrivateFieldGet72, _classPrivateFieldGet73;
13960
+ (_classPrivateFieldGet72 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : (_classPrivateFieldGet73 = _classPrivateFieldGet72._impl) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.playPauseControlEnabled(shouldDisplay);
13946
13961
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
13947
13962
  }
13948
13963
  /**
@@ -13957,8 +13972,8 @@ var init_wistia_player = __esm({
13957
13972
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
13958
13973
  },
13959
13974
  set: function set(shouldDisplay) {
13960
- var _classPrivateFieldGet72, _classPrivateFieldGet73;
13961
- (_classPrivateFieldGet72 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : (_classPrivateFieldGet73 = _classPrivateFieldGet72._impl) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.playPauseNotifierEnabled(shouldDisplay);
13975
+ var _classPrivateFieldGet74, _classPrivateFieldGet75;
13976
+ (_classPrivateFieldGet74 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : (_classPrivateFieldGet75 = _classPrivateFieldGet74._impl) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.playPauseNotifierEnabled(shouldDisplay);
13962
13977
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
13963
13978
  }
13964
13979
  /**
@@ -13969,8 +13984,8 @@ var init_wistia_player = __esm({
13969
13984
  }, {
13970
13985
  key: "plugins",
13971
13986
  get: function get() {
13972
- var _classPrivateFieldGet74;
13973
- if ((_classPrivateFieldGet74 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74._impl) {
13987
+ var _classPrivateFieldGet76;
13988
+ if ((_classPrivateFieldGet76 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet76 !== void 0 && _classPrivateFieldGet76._impl) {
13974
13989
  return Object.seal(_objectSpread({}, _classPrivateFieldGet(_api, this)._impl.plugin));
13975
13990
  }
13976
13991
  return {};
@@ -14177,8 +14192,8 @@ var init_wistia_player = __esm({
14177
14192
  }, {
14178
14193
  key: "preload",
14179
14194
  get: function get() {
14180
- var _ref11, _classPrivateFieldGet75, _classPrivateFieldGet76, _classPrivateFieldGet77;
14181
- return (_ref11 = (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : (_classPrivateFieldGet77 = _classPrivateFieldGet76._impl) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.preloadValue()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : this.embedOptions.preload) !== null && _ref11 !== void 0 ? _ref11 : void 0;
14195
+ var _ref11, _classPrivateFieldGet77, _classPrivateFieldGet78, _classPrivateFieldGet79;
14196
+ return (_ref11 = (_classPrivateFieldGet77 = (_classPrivateFieldGet78 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : (_classPrivateFieldGet79 = _classPrivateFieldGet78._impl) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.preloadValue()) !== null && _classPrivateFieldGet77 !== void 0 ? _classPrivateFieldGet77 : this.embedOptions.preload) !== null && _ref11 !== void 0 ? _ref11 : void 0;
14182
14197
  },
14183
14198
  set: function set(preloadValue) {
14184
14199
  var prevVal = this.preload;
@@ -14198,8 +14213,8 @@ var init_wistia_player = __esm({
14198
14213
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
14199
14214
  },
14200
14215
  set: function set(shouldDisplay) {
14201
- var _classPrivateFieldGet78, _classPrivateFieldGet79;
14202
- (_classPrivateFieldGet78 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : (_classPrivateFieldGet79 = _classPrivateFieldGet78._impl) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.qualityControlEnabled(shouldDisplay);
14216
+ var _classPrivateFieldGet80, _classPrivateFieldGet81;
14217
+ (_classPrivateFieldGet80 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : (_classPrivateFieldGet81 = _classPrivateFieldGet80._impl) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.qualityControlEnabled(shouldDisplay);
14203
14218
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
14204
14219
  }
14205
14220
  /**
@@ -14212,8 +14227,8 @@ var init_wistia_player = __esm({
14212
14227
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
14213
14228
  },
14214
14229
  set: function set(quality) {
14215
- var _classPrivateFieldGet80, _classPrivateFieldGet81;
14216
- (_classPrivateFieldGet80 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : (_classPrivateFieldGet81 = _classPrivateFieldGet80._impl) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.qualityMax(quality);
14230
+ var _classPrivateFieldGet82, _classPrivateFieldGet83;
14231
+ (_classPrivateFieldGet82 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : (_classPrivateFieldGet83 = _classPrivateFieldGet82._impl) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.qualityMax(quality);
14217
14232
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
14218
14233
  }
14219
14234
  /**
@@ -14226,8 +14241,8 @@ var init_wistia_player = __esm({
14226
14241
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
14227
14242
  },
14228
14243
  set: function set(quality) {
14229
- var _classPrivateFieldGet82, _classPrivateFieldGet83;
14230
- (_classPrivateFieldGet82 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : (_classPrivateFieldGet83 = _classPrivateFieldGet82._impl) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.qualityMin(quality);
14244
+ var _classPrivateFieldGet84, _classPrivateFieldGet85;
14245
+ (_classPrivateFieldGet84 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : (_classPrivateFieldGet85 = _classPrivateFieldGet84._impl) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.qualityMin(quality);
14231
14246
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
14232
14247
  }
14233
14248
  /**
@@ -14237,8 +14252,8 @@ var init_wistia_player = __esm({
14237
14252
  }, {
14238
14253
  key: "readyState",
14239
14254
  get: function get() {
14240
- var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
14241
- return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet85 === void 0 ? void 0 : (_classPrivateFieldGet86 = _classPrivateFieldGet85._impl) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.getReadyState()) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : 0;
14255
+ var _classPrivateFieldGet86, _classPrivateFieldGet87, _classPrivateFieldGet88;
14256
+ return (_classPrivateFieldGet86 = (_classPrivateFieldGet87 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : (_classPrivateFieldGet88 = _classPrivateFieldGet87._impl) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.getReadyState()) !== null && _classPrivateFieldGet86 !== void 0 ? _classPrivateFieldGet86 : 0;
14242
14257
  }
14243
14258
  /**
14244
14259
  * Returns the current resumable status of the video.
@@ -14250,8 +14265,8 @@ var init_wistia_player = __esm({
14250
14265
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable");
14251
14266
  },
14252
14267
  set: function set(resumableState) {
14253
- var _classPrivateFieldGet87, _classPrivateFieldGet88;
14254
- (_classPrivateFieldGet87 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet87 === void 0 ? void 0 : (_classPrivateFieldGet88 = _classPrivateFieldGet87._impl) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.setResumable(resumableState);
14268
+ var _classPrivateFieldGet89, _classPrivateFieldGet90;
14269
+ (_classPrivateFieldGet89 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : (_classPrivateFieldGet90 = _classPrivateFieldGet89._impl) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.setResumable(resumableState);
14255
14270
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
14256
14271
  }
14257
14272
  /**
@@ -14264,8 +14279,8 @@ var init_wistia_player = __esm({
14264
14279
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
14265
14280
  },
14266
14281
  set: function set(radius) {
14267
- var _classPrivateFieldGet89, _classPrivateFieldGet90;
14268
- (_classPrivateFieldGet89 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : (_classPrivateFieldGet90 = _classPrivateFieldGet89._impl) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.setRoundedPlayer(Number(radius));
14282
+ var _classPrivateFieldGet91, _classPrivateFieldGet92;
14283
+ (_classPrivateFieldGet91 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : (_classPrivateFieldGet92 = _classPrivateFieldGet91._impl) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.setRoundedPlayer(Number(radius));
14269
14284
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", radius);
14270
14285
  }
14271
14286
  /**
@@ -14276,8 +14291,8 @@ var init_wistia_player = __esm({
14276
14291
  }, {
14277
14292
  key: "secondsWatched",
14278
14293
  get: function get() {
14279
- var _classPrivateFieldGet91, _classPrivateFieldGet92, _classPrivateFieldGet93;
14280
- return (_classPrivateFieldGet91 = (_classPrivateFieldGet92 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : (_classPrivateFieldGet93 = _classPrivateFieldGet92._impl) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.secondsWatched()) !== null && _classPrivateFieldGet91 !== void 0 ? _classPrivateFieldGet91 : 0;
14294
+ var _classPrivateFieldGet93, _classPrivateFieldGet94, _classPrivateFieldGet95;
14295
+ return (_classPrivateFieldGet93 = (_classPrivateFieldGet94 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : (_classPrivateFieldGet95 = _classPrivateFieldGet94._impl) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.secondsWatched()) !== null && _classPrivateFieldGet93 !== void 0 ? _classPrivateFieldGet93 : 0;
14281
14296
  }
14282
14297
  /**
14283
14298
  * Returns an array where each index represents the number of times the viewer has watched each second of the video.
@@ -14286,8 +14301,8 @@ var init_wistia_player = __esm({
14286
14301
  }, {
14287
14302
  key: "secondsWatchedVector",
14288
14303
  get: function get() {
14289
- var _classPrivateFieldGet94, _classPrivateFieldGet95, _classPrivateFieldGet96;
14290
- return (_classPrivateFieldGet94 = (_classPrivateFieldGet95 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : (_classPrivateFieldGet96 = _classPrivateFieldGet95._impl) === null || _classPrivateFieldGet96 === void 0 ? void 0 : _classPrivateFieldGet96.secondsWatchedVector()) !== null && _classPrivateFieldGet94 !== void 0 ? _classPrivateFieldGet94 : [];
14304
+ var _classPrivateFieldGet96, _classPrivateFieldGet97, _classPrivateFieldGet98;
14305
+ return (_classPrivateFieldGet96 = (_classPrivateFieldGet97 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : (_classPrivateFieldGet98 = _classPrivateFieldGet97._impl) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.secondsWatchedVector()) !== null && _classPrivateFieldGet96 !== void 0 ? _classPrivateFieldGet96 : [];
14291
14306
  }
14292
14307
  /**
14293
14308
  * Returns whether JSON+LD seo data will be injected.
@@ -14311,8 +14326,8 @@ var init_wistia_player = __esm({
14311
14326
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
14312
14327
  },
14313
14328
  set: function set(shouldDisplay) {
14314
- var _classPrivateFieldGet97, _classPrivateFieldGet98;
14315
- (_classPrivateFieldGet97 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : (_classPrivateFieldGet98 = _classPrivateFieldGet97._impl) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.settingsControlEnabled(shouldDisplay);
14329
+ var _classPrivateFieldGet99, _classPrivateFieldGet100;
14330
+ (_classPrivateFieldGet99 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : (_classPrivateFieldGet100 = _classPrivateFieldGet99._impl) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.settingsControlEnabled(shouldDisplay);
14316
14331
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
14317
14332
  }
14318
14333
  /**
@@ -14338,8 +14353,8 @@ var init_wistia_player = __esm({
14338
14353
  }, {
14339
14354
  key: "state",
14340
14355
  get: function get() {
14341
- var _classPrivateFieldGet99, _classPrivateFieldGet100;
14342
- return (_classPrivateFieldGet99 = (_classPrivateFieldGet100 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.state()) !== null && _classPrivateFieldGet99 !== void 0 ? _classPrivateFieldGet99 : defaultEmbedOptions.state;
14356
+ var _classPrivateFieldGet101, _classPrivateFieldGet102;
14357
+ return (_classPrivateFieldGet101 = (_classPrivateFieldGet102 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.state()) !== null && _classPrivateFieldGet101 !== void 0 ? _classPrivateFieldGet101 : defaultEmbedOptions.state;
14343
14358
  }
14344
14359
  /**
14345
14360
  * Returns the stats url for the player.
@@ -14417,12 +14432,12 @@ var init_wistia_player = __esm({
14417
14432
  }, {
14418
14433
  key: "videoQuality",
14419
14434
  get: function get() {
14420
- var _ref12, _classPrivateFieldGet101, _classPrivateFieldGet102, _classPrivateFieldGet103;
14421
- return (_ref12 = (_classPrivateFieldGet101 = (_classPrivateFieldGet102 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : (_classPrivateFieldGet103 = _classPrivateFieldGet102._impl) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.getVideoQuality()) !== null && _classPrivateFieldGet101 !== void 0 ? _classPrivateFieldGet101 : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
14435
+ var _ref12, _classPrivateFieldGet103, _classPrivateFieldGet104, _classPrivateFieldGet105;
14436
+ return (_ref12 = (_classPrivateFieldGet103 = (_classPrivateFieldGet104 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet104 === void 0 ? void 0 : (_classPrivateFieldGet105 = _classPrivateFieldGet104._impl) === null || _classPrivateFieldGet105 === void 0 ? void 0 : _classPrivateFieldGet105.getVideoQuality()) !== null && _classPrivateFieldGet103 !== void 0 ? _classPrivateFieldGet103 : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
14422
14437
  },
14423
14438
  set: function set(quality) {
14424
- var _classPrivateFieldGet104, _classPrivateFieldGet105;
14425
- (_classPrivateFieldGet104 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet104 === void 0 ? void 0 : (_classPrivateFieldGet105 = _classPrivateFieldGet104._impl) === null || _classPrivateFieldGet105 === void 0 ? void 0 : _classPrivateFieldGet105.setVideoQuality(quality);
14439
+ var _classPrivateFieldGet106, _classPrivateFieldGet107;
14440
+ (_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : (_classPrivateFieldGet107 = _classPrivateFieldGet106._impl) === null || _classPrivateFieldGet107 === void 0 ? void 0 : _classPrivateFieldGet107.setVideoQuality(quality);
14426
14441
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
14427
14442
  }
14428
14443
  /**
@@ -14445,8 +14460,8 @@ var init_wistia_player = __esm({
14445
14460
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
14446
14461
  },
14447
14462
  set: function set(level) {
14448
- var _classPrivateFieldGet106, _classPrivateFieldGet107;
14449
- (_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : (_classPrivateFieldGet107 = _classPrivateFieldGet106._impl) === null || _classPrivateFieldGet107 === void 0 ? void 0 : _classPrivateFieldGet107.volume(level);
14463
+ var _classPrivateFieldGet108, _classPrivateFieldGet109;
14464
+ (_classPrivateFieldGet108 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : (_classPrivateFieldGet109 = _classPrivateFieldGet108._impl) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.volume(level);
14450
14465
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
14451
14466
  }
14452
14467
  /**
@@ -14461,8 +14476,8 @@ var init_wistia_player = __esm({
14461
14476
  return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
14462
14477
  },
14463
14478
  set: function set(shouldDisplay) {
14464
- var _classPrivateFieldGet108, _classPrivateFieldGet109;
14465
- (_classPrivateFieldGet108 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : (_classPrivateFieldGet109 = _classPrivateFieldGet108._impl) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.volumeControlEnabled(shouldDisplay);
14479
+ var _classPrivateFieldGet110, _classPrivateFieldGet111;
14480
+ (_classPrivateFieldGet110 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : (_classPrivateFieldGet111 = _classPrivateFieldGet110._impl) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.volumeControlEnabled(shouldDisplay);
14466
14481
  _assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
14467
14482
  }
14468
14483
  /**
@@ -14489,11 +14504,11 @@ var init_wistia_player = __esm({
14489
14504
  */
14490
14505
  function() {
14491
14506
  var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
14492
- var _classPrivateFieldGet110, _classPrivateFieldGet111, _this3 = this;
14507
+ var _classPrivateFieldGet112, _classPrivateFieldGet113, _this3 = this;
14493
14508
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14494
14509
  while (1) switch (_context.prev = _context.next) {
14495
14510
  case 0:
14496
- return _context.abrupt("return", (_classPrivateFieldGet110 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : (_classPrivateFieldGet111 = _classPrivateFieldGet110._impl) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.cancelFullscreen().then(function() {
14511
+ return _context.abrupt("return", (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : (_classPrivateFieldGet113 = _classPrivateFieldGet112._impl) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.cancelFullscreen().then(function() {
14497
14512
  _this3._fullscreenState.heightBeforeFullscreen = void 0;
14498
14513
  _this3._fullscreenState.widthBeforeFullscreen = void 0;
14499
14514
  }));
@@ -14519,11 +14534,11 @@ var init_wistia_player = __esm({
14519
14534
  key: "createOverlay",
14520
14535
  value: function() {
14521
14536
  var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(name, options) {
14522
- var _classPrivateFieldGet112, _classPrivateFieldGet113;
14537
+ var _classPrivateFieldGet114, _classPrivateFieldGet115;
14523
14538
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
14524
14539
  while (1) switch (_context2.prev = _context2.next) {
14525
14540
  case 0:
14526
- if (!((_classPrivateFieldGet112 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet112 !== void 0 && (_classPrivateFieldGet113 = _classPrivateFieldGet112._impl) !== null && _classPrivateFieldGet113 !== void 0 && _classPrivateFieldGet113.defineOverlay)) {
14541
+ if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet114 !== void 0 && (_classPrivateFieldGet115 = _classPrivateFieldGet114._impl) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.defineOverlay)) {
14527
14542
  _context2.next = 2;
14528
14543
  break;
14529
14544
  }
@@ -14552,11 +14567,11 @@ var init_wistia_player = __esm({
14552
14567
  case 0:
14553
14568
  addPlugin = /* @__PURE__ */ function() {
14554
14569
  var _ref13 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3() {
14555
- var _classPrivateFieldGet114, _classPrivateFieldGet115;
14570
+ var _classPrivateFieldGet116, _classPrivateFieldGet117;
14556
14571
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
14557
14572
  while (1) switch (_context3.prev = _context3.next) {
14558
14573
  case 0:
14559
- return _context3.abrupt("return", (_classPrivateFieldGet114 = (_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.addPlugin(name, options)) !== null && _classPrivateFieldGet114 !== void 0 ? _classPrivateFieldGet114 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
14574
+ return _context3.abrupt("return", (_classPrivateFieldGet116 = (_classPrivateFieldGet117 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.addPlugin(name, options)) !== null && _classPrivateFieldGet116 !== void 0 ? _classPrivateFieldGet116 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
14560
14575
  case 1:
14561
14576
  case "end":
14562
14577
  return _context3.stop();
@@ -14602,11 +14617,11 @@ var init_wistia_player = __esm({
14602
14617
  key: "deleteOverlay",
14603
14618
  value: function() {
14604
14619
  var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5(name) {
14605
- var _classPrivateFieldGet116, _classPrivateFieldGet117;
14620
+ var _classPrivateFieldGet118, _classPrivateFieldGet119;
14606
14621
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
14607
14622
  while (1) switch (_context5.prev = _context5.next) {
14608
14623
  case 0:
14609
- if (!((_classPrivateFieldGet116 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet116 !== void 0 && (_classPrivateFieldGet117 = _classPrivateFieldGet116._impl) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.undefineOverlay)) {
14624
+ if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet118 !== void 0 && (_classPrivateFieldGet119 = _classPrivateFieldGet118._impl) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.undefineOverlay)) {
14610
14625
  _context5.next = 2;
14611
14626
  break;
14612
14627
  }
@@ -14628,11 +14643,11 @@ var init_wistia_player = __esm({
14628
14643
  key: "disableControl",
14629
14644
  value: function() {
14630
14645
  var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6(name) {
14631
- var _classPrivateFieldGet118, _classPrivateFieldGet119;
14646
+ var _classPrivateFieldGet120, _classPrivateFieldGet121;
14632
14647
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
14633
14648
  while (1) switch (_context6.prev = _context6.next) {
14634
14649
  case 0:
14635
- if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet118 !== void 0 && (_classPrivateFieldGet119 = _classPrivateFieldGet118._impl) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.setControlEnabled)) {
14650
+ if (!((_classPrivateFieldGet120 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet120 !== void 0 && (_classPrivateFieldGet121 = _classPrivateFieldGet120._impl) !== null && _classPrivateFieldGet121 !== void 0 && _classPrivateFieldGet121.setControlEnabled)) {
14636
14651
  _context6.next = 2;
14637
14652
  break;
14638
14653
  }
@@ -14654,11 +14669,11 @@ var init_wistia_player = __esm({
14654
14669
  key: "enableControl",
14655
14670
  value: function() {
14656
14671
  var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee7(name) {
14657
- var _classPrivateFieldGet120, _classPrivateFieldGet121;
14672
+ var _classPrivateFieldGet122, _classPrivateFieldGet123;
14658
14673
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
14659
14674
  while (1) switch (_context7.prev = _context7.next) {
14660
14675
  case 0:
14661
- if (!((_classPrivateFieldGet120 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet120 !== void 0 && (_classPrivateFieldGet121 = _classPrivateFieldGet120._impl) !== null && _classPrivateFieldGet121 !== void 0 && _classPrivateFieldGet121.setControlEnabled)) {
14676
+ if (!((_classPrivateFieldGet122 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet122 !== void 0 && (_classPrivateFieldGet123 = _classPrivateFieldGet122._impl) !== null && _classPrivateFieldGet123 !== void 0 && _classPrivateFieldGet123.setControlEnabled)) {
14662
14677
  _context7.next = 2;
14663
14678
  break;
14664
14679
  }
@@ -14677,72 +14692,87 @@ var init_wistia_player = __esm({
14677
14692
  return enableControl;
14678
14693
  }()
14679
14694
  }, {
14680
- key: "getPlugin",
14695
+ key: "enterInputContext",
14681
14696
  value: function() {
14682
- var _getPlugin = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee8(name) {
14683
- var _this5 = this;
14697
+ var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee8(context) {
14698
+ var _classPrivateFieldGet124, _classPrivateFieldGet125, _this5 = this;
14684
14699
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
14685
14700
  while (1) switch (_context8.prev = _context8.next) {
14686
14701
  case 0:
14687
- return _context8.abrupt("return", new Promise(function(resolve, reject) {
14688
- var _classPrivateFieldGet122;
14689
- if ((_classPrivateFieldGet122 = _classPrivateFieldGet(_api, _this5)) !== null && _classPrivateFieldGet122 !== void 0 && _classPrivateFieldGet122.plugin(name)) {
14690
- resolve(_classPrivateFieldGet(_api, _this5).plugin(name));
14691
- }
14692
- reject(new Error("plugin ".concat(name, " is not defined")));
14702
+ if (!((_classPrivateFieldGet124 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet124 !== void 0 && (_classPrivateFieldGet125 = _classPrivateFieldGet124._impl) !== null && _classPrivateFieldGet125 !== void 0 && _classPrivateFieldGet125.enterInputContext)) {
14703
+ _context8.next = 2;
14704
+ break;
14705
+ }
14706
+ return _context8.abrupt("return", new Promise(function(resolve) {
14707
+ var _classPrivateFieldGet126, _classPrivateFieldGet127;
14708
+ var _handler = function handler(event) {
14709
+ var detail = event.detail;
14710
+ if (detail.context === context) {
14711
+ resolve();
14712
+ }
14713
+ _this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.ve, _handler);
14714
+ };
14715
+ _this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.ve, _handler);
14716
+ (_classPrivateFieldGet126 = _classPrivateFieldGet(_api, _this5)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : (_classPrivateFieldGet127 = _classPrivateFieldGet126._impl) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.enterInputContext(context);
14693
14717
  }));
14694
- case 1:
14718
+ case 2:
14719
+ return _context8.abrupt("return", Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
14720
+ case 3:
14695
14721
  case "end":
14696
14722
  return _context8.stop();
14697
14723
  }
14698
- }, _callee8);
14724
+ }, _callee8, this);
14699
14725
  }));
14700
- function getPlugin(_x8) {
14701
- return _getPlugin.apply(this, arguments);
14726
+ function enterInputContext(_x8) {
14727
+ return _enterInputContext.apply(this, arguments);
14702
14728
  }
14703
- return getPlugin;
14729
+ return enterInputContext;
14704
14730
  }()
14705
14731
  }, {
14706
- key: "hideOverlay",
14732
+ key: "exitInputContext",
14707
14733
  value: function() {
14708
- var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(name) {
14709
- var _classPrivateFieldGet123, _classPrivateFieldGet124;
14734
+ var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(context) {
14735
+ var _classPrivateFieldGet128, _classPrivateFieldGet129;
14710
14736
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
14711
14737
  while (1) switch (_context9.prev = _context9.next) {
14712
14738
  case 0:
14713
- if (!((_classPrivateFieldGet123 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet123 !== void 0 && (_classPrivateFieldGet124 = _classPrivateFieldGet123._impl) !== null && _classPrivateFieldGet124 !== void 0 && _classPrivateFieldGet124.cancelOverlay)) {
14739
+ if (!((_classPrivateFieldGet128 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet128 !== void 0 && (_classPrivateFieldGet129 = _classPrivateFieldGet128._impl) !== null && _classPrivateFieldGet129 !== void 0 && _classPrivateFieldGet129.exitInputContext)) {
14714
14740
  _context9.next = 2;
14715
14741
  break;
14716
14742
  }
14717
- return _context9.abrupt("return", _classPrivateFieldGet(_api, this)._impl.cancelOverlay(name));
14743
+ return _context9.abrupt("return", Promise.resolve(_classPrivateFieldGet(_api, this)._impl.exitInputContext(context)));
14718
14744
  case 2:
14719
- return _context9.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be cancelled at this time"))));
14745
+ return _context9.abrupt("return", Promise.reject(new Error('control "'.concat(context, '" cannot be enabled at this time'))));
14720
14746
  case 3:
14721
14747
  case "end":
14722
14748
  return _context9.stop();
14723
14749
  }
14724
14750
  }, _callee9, this);
14725
14751
  }));
14726
- function hideOverlay(_x9) {
14727
- return _hideOverlay.apply(this, arguments);
14752
+ function exitInputContext(_x9) {
14753
+ return _exitInputContext.apply(this, arguments);
14728
14754
  }
14729
- return hideOverlay;
14755
+ return exitInputContext;
14730
14756
  }()
14757
+ /**
14758
+ * Gets a plugin from the player.
14759
+ * @param {T extends keyof PluginInstances} name name of the plugin to retrieve
14760
+ * @returns {Promise<PluginInstances[T]>} returns a Promise that resolves with the request plugin
14761
+ */
14731
14762
  }, {
14732
- key: "hidePopover",
14763
+ key: "getPlugin",
14733
14764
  value: function() {
14734
- var _hidePopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee10() {
14765
+ var _getPlugin = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee10(name) {
14735
14766
  var _this6 = this;
14736
14767
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
14737
14768
  while (1) switch (_context10.prev = _context10.next) {
14738
14769
  case 0:
14739
14770
  return _context10.abrupt("return", new Promise(function(resolve, reject) {
14740
- var _classPrivateFieldGet125;
14741
- if ((_classPrivateFieldGet125 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet125 !== void 0 && _classPrivateFieldGet125.popover) {
14742
- _classPrivateFieldGet(_api, _this6).popover.hide();
14743
- resolve();
14771
+ var _classPrivateFieldGet130;
14772
+ if ((_classPrivateFieldGet130 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet130 !== void 0 && _classPrivateFieldGet130.plugin(name)) {
14773
+ resolve(_classPrivateFieldGet(_api, _this6).plugin(name));
14744
14774
  }
14745
- reject(new Error("Popover cannot be accessed"));
14775
+ reject(new Error("plugin ".concat(name, " is not defined")));
14746
14776
  }));
14747
14777
  case 1:
14748
14778
  case "end":
@@ -14750,6 +14780,59 @@ var init_wistia_player = __esm({
14750
14780
  }
14751
14781
  }, _callee10);
14752
14782
  }));
14783
+ function getPlugin(_x10) {
14784
+ return _getPlugin.apply(this, arguments);
14785
+ }
14786
+ return getPlugin;
14787
+ }()
14788
+ }, {
14789
+ key: "hideOverlay",
14790
+ value: function() {
14791
+ var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee11(name) {
14792
+ var _classPrivateFieldGet131, _classPrivateFieldGet132;
14793
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
14794
+ while (1) switch (_context11.prev = _context11.next) {
14795
+ case 0:
14796
+ if (!((_classPrivateFieldGet131 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet131 !== void 0 && (_classPrivateFieldGet132 = _classPrivateFieldGet131._impl) !== null && _classPrivateFieldGet132 !== void 0 && _classPrivateFieldGet132.cancelOverlay)) {
14797
+ _context11.next = 2;
14798
+ break;
14799
+ }
14800
+ return _context11.abrupt("return", _classPrivateFieldGet(_api, this)._impl.cancelOverlay(name));
14801
+ case 2:
14802
+ return _context11.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be cancelled at this time"))));
14803
+ case 3:
14804
+ case "end":
14805
+ return _context11.stop();
14806
+ }
14807
+ }, _callee11, this);
14808
+ }));
14809
+ function hideOverlay(_x11) {
14810
+ return _hideOverlay.apply(this, arguments);
14811
+ }
14812
+ return hideOverlay;
14813
+ }()
14814
+ }, {
14815
+ key: "hidePopover",
14816
+ value: function() {
14817
+ var _hidePopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee12() {
14818
+ var _this7 = this;
14819
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
14820
+ while (1) switch (_context12.prev = _context12.next) {
14821
+ case 0:
14822
+ return _context12.abrupt("return", new Promise(function(resolve, reject) {
14823
+ var _classPrivateFieldGet133;
14824
+ if ((_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet133 !== void 0 && _classPrivateFieldGet133.popover) {
14825
+ _classPrivateFieldGet(_api, _this7).popover.hide();
14826
+ resolve();
14827
+ }
14828
+ reject(new Error("Popover cannot be accessed"));
14829
+ }));
14830
+ case 1:
14831
+ case "end":
14832
+ return _context12.stop();
14833
+ }
14834
+ }, _callee12);
14835
+ }));
14753
14836
  function hidePopover() {
14754
14837
  return _hidePopover.apply(this, arguments);
14755
14838
  }
@@ -14758,17 +14841,17 @@ var init_wistia_player = __esm({
14758
14841
  }, {
14759
14842
  key: "pause",
14760
14843
  value: function() {
14761
- var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee11() {
14762
- var _classPrivateFieldGet126, _classPrivateFieldGet127;
14763
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
14764
- while (1) switch (_context11.prev = _context11.next) {
14844
+ var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13() {
14845
+ var _classPrivateFieldGet134, _classPrivateFieldGet135;
14846
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
14847
+ while (1) switch (_context13.prev = _context13.next) {
14765
14848
  case 0:
14766
- return _context11.abrupt("return", (_classPrivateFieldGet126 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : (_classPrivateFieldGet127 = _classPrivateFieldGet126._impl) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.pause());
14849
+ return _context13.abrupt("return", (_classPrivateFieldGet134 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet134 === void 0 ? void 0 : (_classPrivateFieldGet135 = _classPrivateFieldGet134._impl) === null || _classPrivateFieldGet135 === void 0 ? void 0 : _classPrivateFieldGet135.pause());
14767
14850
  case 1:
14768
14851
  case "end":
14769
- return _context11.stop();
14852
+ return _context13.stop();
14770
14853
  }
14771
- }, _callee11, this);
14854
+ }, _callee13, this);
14772
14855
  }));
14773
14856
  function pause() {
14774
14857
  return _pause.apply(this, arguments);
@@ -14778,17 +14861,17 @@ var init_wistia_player = __esm({
14778
14861
  }, {
14779
14862
  key: "play",
14780
14863
  value: function() {
14781
- var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee12() {
14782
- var _classPrivateFieldGet128, _classPrivateFieldGet129;
14783
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
14784
- while (1) switch (_context12.prev = _context12.next) {
14864
+ var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee14() {
14865
+ var _classPrivateFieldGet136, _classPrivateFieldGet137;
14866
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
14867
+ while (1) switch (_context14.prev = _context14.next) {
14785
14868
  case 0:
14786
- return _context12.abrupt("return", (_classPrivateFieldGet128 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : (_classPrivateFieldGet129 = _classPrivateFieldGet128._impl) === null || _classPrivateFieldGet129 === void 0 ? void 0 : _classPrivateFieldGet129.play());
14869
+ return _context14.abrupt("return", (_classPrivateFieldGet136 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet136 === void 0 ? void 0 : (_classPrivateFieldGet137 = _classPrivateFieldGet136._impl) === null || _classPrivateFieldGet137 === void 0 ? void 0 : _classPrivateFieldGet137.play());
14787
14870
  case 1:
14788
14871
  case "end":
14789
- return _context12.stop();
14872
+ return _context14.stop();
14790
14873
  }
14791
- }, _callee12, this);
14874
+ }, _callee14, this);
14792
14875
  }));
14793
14876
  function play() {
14794
14877
  return _play.apply(this, arguments);
@@ -14798,19 +14881,19 @@ var init_wistia_player = __esm({
14798
14881
  }, {
14799
14882
  key: "releaseControls",
14800
14883
  value: function() {
14801
- var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13(name) {
14802
- var _classPrivateFieldGet130, _classPrivateFieldGet131;
14803
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
14804
- while (1) switch (_context13.prev = _context13.next) {
14884
+ var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee15(name) {
14885
+ var _classPrivateFieldGet138, _classPrivateFieldGet139;
14886
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
14887
+ while (1) switch (_context15.prev = _context15.next) {
14805
14888
  case 0:
14806
- return _context13.abrupt("return", (_classPrivateFieldGet130 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : (_classPrivateFieldGet131 = _classPrivateFieldGet130._impl) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.releaseControls(name));
14889
+ return _context15.abrupt("return", (_classPrivateFieldGet138 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet138 === void 0 ? void 0 : (_classPrivateFieldGet139 = _classPrivateFieldGet138._impl) === null || _classPrivateFieldGet139 === void 0 ? void 0 : _classPrivateFieldGet139.releaseControls(name));
14807
14890
  case 1:
14808
14891
  case "end":
14809
- return _context13.stop();
14892
+ return _context15.stop();
14810
14893
  }
14811
- }, _callee13, this);
14894
+ }, _callee15, this);
14812
14895
  }));
14813
- function releaseControls(_x10) {
14896
+ function releaseControls(_x12) {
14814
14897
  return _releaseControls.apply(this, arguments);
14815
14898
  }
14816
14899
  return releaseControls;
@@ -14818,37 +14901,37 @@ var init_wistia_player = __esm({
14818
14901
  }, {
14819
14902
  key: "replaceWithMedia",
14820
14903
  value: function() {
14821
- var _replaceWithMedia = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee14(mediaId) {
14822
- var _this7 = this;
14823
- var options, _args14 = arguments;
14824
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
14825
- while (1) switch (_context14.prev = _context14.next) {
14904
+ var _replaceWithMedia = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16(mediaId) {
14905
+ var _this8 = this;
14906
+ var options, _args16 = arguments;
14907
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
14908
+ while (1) switch (_context16.prev = _context16.next) {
14826
14909
  case 0:
14827
- options = _args14.length > 1 && _args14[1] !== void 0 ? _args14[1] : {};
14828
- return _context14.abrupt("return", new Promise(function(resolve, reject) {
14829
- var _classPrivateFieldGet132;
14830
- if (!_classPrivateFieldGet(_api, _this7)) {
14910
+ options = _args16.length > 1 && _args16[1] !== void 0 ? _args16[1] : {};
14911
+ return _context16.abrupt("return", new Promise(function(resolve, reject) {
14912
+ var _classPrivateFieldGet140;
14913
+ if (!_classPrivateFieldGet(_api, _this8)) {
14831
14914
  reject(new Error("api not ready to replace"));
14832
14915
  }
14833
- var _handler = function handler() {
14834
- _this7.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.$1, _handler);
14835
- _this7.mediaId = mediaId;
14836
- _this7.uniqueId = _assertClassBrand(_WistiaPlayer_brand, _this7, _generateUniqueId).call(_this7, mediaId);
14837
- _assertClassBrand(_WistiaPlayer_brand, _this7, _maybeInjectJsonLd).call(_this7);
14838
- (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_8__.gY)("__".concat(_this7.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, _this7).embedOptions);
14916
+ var _handler2 = function handler() {
14917
+ _this8.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.$1, _handler2);
14918
+ _this8.mediaId = mediaId;
14919
+ _this8.uniqueId = _assertClassBrand(_WistiaPlayer_brand, _this8, _generateUniqueId).call(_this8, mediaId);
14920
+ _assertClassBrand(_WistiaPlayer_brand, _this8, _maybeInjectJsonLd).call(_this8);
14921
+ (0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_8__.gY)("__".concat(_this8.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, _this8).embedOptions);
14839
14922
  resolve();
14840
14923
  };
14841
- _this7.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.$1, _handler);
14842
- (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, _this7));
14843
- (_classPrivateFieldGet132 = _classPrivateFieldGet(_api, _this7)) === null || _classPrivateFieldGet132 === void 0 ? void 0 : _classPrivateFieldGet132.replaceWith(mediaId, options);
14924
+ _this8.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.$1, _handler2);
14925
+ (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, _this8));
14926
+ (_classPrivateFieldGet140 = _classPrivateFieldGet(_api, _this8)) === null || _classPrivateFieldGet140 === void 0 ? void 0 : _classPrivateFieldGet140.replaceWith(mediaId, options);
14844
14927
  }));
14845
14928
  case 2:
14846
14929
  case "end":
14847
- return _context14.stop();
14930
+ return _context16.stop();
14848
14931
  }
14849
- }, _callee14);
14932
+ }, _callee16);
14850
14933
  }));
14851
- function replaceWithMedia(_x11) {
14934
+ function replaceWithMedia(_x13) {
14852
14935
  return _replaceWithMedia.apply(this, arguments);
14853
14936
  }
14854
14937
  return replaceWithMedia;
@@ -14856,19 +14939,19 @@ var init_wistia_player = __esm({
14856
14939
  }, {
14857
14940
  key: "requestControls",
14858
14941
  value: function() {
14859
- var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee15(name) {
14860
- var _classPrivateFieldGet133, _classPrivateFieldGet134;
14861
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
14862
- while (1) switch (_context15.prev = _context15.next) {
14942
+ var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17(name) {
14943
+ var _classPrivateFieldGet141, _classPrivateFieldGet142;
14944
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
14945
+ while (1) switch (_context17.prev = _context17.next) {
14863
14946
  case 0:
14864
- return _context15.abrupt("return", (_classPrivateFieldGet133 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133._impl) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.requestControls(name));
14947
+ return _context17.abrupt("return", (_classPrivateFieldGet141 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet141 === void 0 ? void 0 : (_classPrivateFieldGet142 = _classPrivateFieldGet141._impl) === null || _classPrivateFieldGet142 === void 0 ? void 0 : _classPrivateFieldGet142.requestControls(name));
14865
14948
  case 1:
14866
14949
  case "end":
14867
- return _context15.stop();
14950
+ return _context17.stop();
14868
14951
  }
14869
- }, _callee15, this);
14952
+ }, _callee17, this);
14870
14953
  }));
14871
- function requestControls(_x12) {
14954
+ function requestControls(_x14) {
14872
14955
  return _requestControls.apply(this, arguments);
14873
14956
  }
14874
14957
  return requestControls;
@@ -14876,23 +14959,23 @@ var init_wistia_player = __esm({
14876
14959
  }, {
14877
14960
  key: "requestFullscreen",
14878
14961
  value: function() {
14879
- var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16() {
14880
- var _classPrivateFieldGet135, _classPrivateFieldGet136;
14881
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
14882
- while (1) switch (_context16.prev = _context16.next) {
14962
+ var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee18() {
14963
+ var _classPrivateFieldGet143, _classPrivateFieldGet144;
14964
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
14965
+ while (1) switch (_context18.prev = _context18.next) {
14883
14966
  case 0:
14884
- if (!((_classPrivateFieldGet135 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet135 !== void 0 && (_classPrivateFieldGet136 = _classPrivateFieldGet135._impl) !== null && _classPrivateFieldGet136 !== void 0 && _classPrivateFieldGet136.requestFullscreen)) {
14885
- _context16.next = 2;
14967
+ if (!((_classPrivateFieldGet143 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet143 !== void 0 && (_classPrivateFieldGet144 = _classPrivateFieldGet143._impl) !== null && _classPrivateFieldGet144 !== void 0 && _classPrivateFieldGet144.requestFullscreen)) {
14968
+ _context18.next = 2;
14886
14969
  break;
14887
14970
  }
14888
- return _context16.abrupt("return", _classPrivateFieldGet(_api, this)._impl.requestFullscreen());
14971
+ return _context18.abrupt("return", _classPrivateFieldGet(_api, this)._impl.requestFullscreen());
14889
14972
  case 2:
14890
- return _context16.abrupt("return", Promise.reject(new Error("Fullscreen cannot be accessed")));
14973
+ return _context18.abrupt("return", Promise.reject(new Error("Fullscreen cannot be accessed")));
14891
14974
  case 3:
14892
14975
  case "end":
14893
- return _context16.stop();
14976
+ return _context18.stop();
14894
14977
  }
14895
- }, _callee16, this);
14978
+ }, _callee18, this);
14896
14979
  }));
14897
14980
  function requestFullscreen() {
14898
14981
  return _requestFullscreen.apply(this, arguments);
@@ -14902,25 +14985,25 @@ var init_wistia_player = __esm({
14902
14985
  }, {
14903
14986
  key: "showOverlay",
14904
14987
  value: function() {
14905
- var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17(name) {
14906
- var _classPrivateFieldGet137, _classPrivateFieldGet138;
14907
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
14908
- while (1) switch (_context17.prev = _context17.next) {
14988
+ var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee19(name) {
14989
+ var _classPrivateFieldGet145, _classPrivateFieldGet146;
14990
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
14991
+ while (1) switch (_context19.prev = _context19.next) {
14909
14992
  case 0:
14910
- if (!((_classPrivateFieldGet137 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet137 !== void 0 && (_classPrivateFieldGet138 = _classPrivateFieldGet137._impl) !== null && _classPrivateFieldGet138 !== void 0 && _classPrivateFieldGet138.requestOverlay)) {
14911
- _context17.next = 2;
14993
+ if (!((_classPrivateFieldGet145 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet145 !== void 0 && (_classPrivateFieldGet146 = _classPrivateFieldGet145._impl) !== null && _classPrivateFieldGet146 !== void 0 && _classPrivateFieldGet146.requestOverlay)) {
14994
+ _context19.next = 2;
14912
14995
  break;
14913
14996
  }
14914
- return _context17.abrupt("return", _classPrivateFieldGet(_api, this)._impl.requestOverlay(name));
14997
+ return _context19.abrupt("return", _classPrivateFieldGet(_api, this)._impl.requestOverlay(name));
14915
14998
  case 2:
14916
- return _context17.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be requested at this time"))));
14999
+ return _context19.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be requested at this time"))));
14917
15000
  case 3:
14918
15001
  case "end":
14919
- return _context17.stop();
15002
+ return _context19.stop();
14920
15003
  }
14921
- }, _callee17, this);
15004
+ }, _callee19, this);
14922
15005
  }));
14923
- function showOverlay(_x13) {
15006
+ function showOverlay(_x15) {
14924
15007
  return _showOverlay.apply(this, arguments);
14925
15008
  }
14926
15009
  return showOverlay;
@@ -14928,24 +15011,24 @@ var init_wistia_player = __esm({
14928
15011
  }, {
14929
15012
  key: "showPopover",
14930
15013
  value: function() {
14931
- var _showPopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee18() {
14932
- var _this8 = this;
14933
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
14934
- while (1) switch (_context18.prev = _context18.next) {
15014
+ var _showPopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20() {
15015
+ var _this9 = this;
15016
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
15017
+ while (1) switch (_context20.prev = _context20.next) {
14935
15018
  case 0:
14936
- return _context18.abrupt("return", new Promise(function(resolve, reject) {
14937
- var _classPrivateFieldGet139;
14938
- if ((_classPrivateFieldGet139 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet139 !== void 0 && _classPrivateFieldGet139.popover) {
14939
- _classPrivateFieldGet(_api, _this8).popover.show();
15019
+ return _context20.abrupt("return", new Promise(function(resolve, reject) {
15020
+ var _classPrivateFieldGet147;
15021
+ if ((_classPrivateFieldGet147 = _classPrivateFieldGet(_api, _this9)) !== null && _classPrivateFieldGet147 !== void 0 && _classPrivateFieldGet147.popover) {
15022
+ _classPrivateFieldGet(_api, _this9).popover.show();
14940
15023
  resolve();
14941
15024
  }
14942
15025
  reject(new Error("Popover cannot be accessed"));
14943
15026
  }));
14944
15027
  case 1:
14945
15028
  case "end":
14946
- return _context18.stop();
15029
+ return _context20.stop();
14947
15030
  }
14948
- }, _callee18);
15031
+ }, _callee20);
14949
15032
  }));
14950
15033
  function showPopover() {
14951
15034
  return _showPopover.apply(this, arguments);
@@ -14955,28 +15038,28 @@ var init_wistia_player = __esm({
14955
15038
  }, {
14956
15039
  key: "whenApiReady",
14957
15040
  value: function() {
14958
- var _whenApiReady = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee19() {
14959
- var _this9 = this;
14960
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
14961
- while (1) switch (_context19.prev = _context19.next) {
15041
+ var _whenApiReady = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21() {
15042
+ var _this10 = this;
15043
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
15044
+ while (1) switch (_context21.prev = _context21.next) {
14962
15045
  case 0:
14963
- return _context19.abrupt("return", new Promise(function(resolve) {
14964
- if (_classPrivateFieldGet(_api, _this9)) {
14965
- _classPrivateFieldGet(_api, _this9).ready(function() {
15046
+ return _context21.abrupt("return", new Promise(function(resolve) {
15047
+ if (_classPrivateFieldGet(_api, _this10)) {
15048
+ _classPrivateFieldGet(_api, _this10).ready(function() {
14966
15049
  resolve();
14967
15050
  });
14968
15051
  }
14969
- var _handler2 = function handler() {
14970
- _this9.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, _handler2);
15052
+ var _handler3 = function handler() {
15053
+ _this10.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, _handler3);
14971
15054
  resolve();
14972
15055
  };
14973
- _this9.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, _handler2);
15056
+ _this10.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, _handler3);
14974
15057
  }));
14975
15058
  case 1:
14976
15059
  case "end":
14977
- return _context19.stop();
15060
+ return _context21.stop();
14978
15061
  }
14979
- }, _callee19);
15062
+ }, _callee21);
14980
15063
  }));
14981
15064
  function whenApiReady() {
14982
15065
  return _whenApiReady.apply(this, arguments);
@@ -14986,33 +15069,33 @@ var init_wistia_player = __esm({
14986
15069
  }, {
14987
15070
  key: "whenControlMounted",
14988
15071
  value: function() {
14989
- var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20(handle) {
14990
- var _classPrivateFieldGet140;
15072
+ var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22(handle) {
15073
+ var _classPrivateFieldGet148;
14991
15074
  var control;
14992
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
14993
- while (1) switch (_context20.prev = _context20.next) {
15075
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
15076
+ while (1) switch (_context22.prev = _context22.next) {
14994
15077
  case 0:
14995
- _context20.next = 2;
15078
+ _context22.next = 2;
14996
15079
  return this.whenApiReady();
14997
15080
  case 2:
14998
- _context20.next = 4;
14999
- return (_classPrivateFieldGet140 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet140 === void 0 ? void 0 : _classPrivateFieldGet140.whenControlMounted(handle);
15081
+ _context22.next = 4;
15082
+ return (_classPrivateFieldGet148 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet148 === void 0 ? void 0 : _classPrivateFieldGet148.whenControlMounted(handle);
15000
15083
  case 4:
15001
- control = _context20.sent;
15084
+ control = _context22.sent;
15002
15085
  if (control) {
15003
- _context20.next = 7;
15086
+ _context22.next = 7;
15004
15087
  break;
15005
15088
  }
15006
15089
  throw new Error("Control not found");
15007
15090
  case 7:
15008
- return _context20.abrupt("return", control);
15091
+ return _context22.abrupt("return", control);
15009
15092
  case 8:
15010
15093
  case "end":
15011
- return _context20.stop();
15094
+ return _context22.stop();
15012
15095
  }
15013
- }, _callee20, this);
15096
+ }, _callee22, this);
15014
15097
  }));
15015
- function whenControlMounted(_x14) {
15098
+ function whenControlMounted(_x16) {
15016
15099
  return _whenControlMounted.apply(this, arguments);
15017
15100
  }
15018
15101
  return whenControlMounted;
@@ -15057,7 +15140,7 @@ var init_wistia_player = __esm({
15057
15140
  }, {
15058
15141
  key: "connectedCallback",
15059
15142
  value: function connectedCallback() {
15060
- var _window$wistiaOptions, _this10 = this, _this$embedHost;
15143
+ var _window$wistiaOptions, _this11 = this, _this$embedHost;
15061
15144
  if (_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
15062
15145
  return;
15063
15146
  }
@@ -15082,17 +15165,17 @@ var init_wistia_player = __esm({
15082
15165
  _assertClassBrand(_WistiaPlayer_brand, this, _runMethodsFromAttributes).call(this);
15083
15166
  _assertClassBrand(_WistiaPlayer_brand, this, _saveInitialAttributesFromDomOptions).call(this);
15084
15167
  var resizeCallback = function resizeCallback2() {
15085
- _assertClassBrand(_WistiaPlayer_brand, _this10, _renderPreloadThumbnail).call(_this10);
15168
+ _assertClassBrand(_WistiaPlayer_brand, _this11, _renderPreloadThumbnail).call(_this11);
15086
15169
  };
15087
15170
  _classPrivateFieldSet(_resizeObserver, this, new ResizeObserver(resizeCallback));
15088
15171
  _classPrivateFieldGet(_resizeObserver, this).observe(this);
15089
15172
  (0, _utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_22__.n)(mediaId, {
15090
15173
  embedHost: (_this$embedHost = this.embedHost) !== null && _this$embedHost !== void 0 ? _this$embedHost : ""
15091
15174
  }).then(function(mediaData) {
15092
- _classPrivateFieldGet(_playerData, _this10).setMediaDataSource(mediaData);
15093
- _assertClassBrand(_WistiaPlayer_brand, _this10, _initPlayerEmbed).call(_this10, {
15094
- container: _this10.uniqueId,
15095
- mediaData: _classPrivateFieldGet(_playerData, _this10).mediaData
15175
+ _classPrivateFieldGet(_playerData, _this11).setMediaDataSource(mediaData);
15176
+ _assertClassBrand(_WistiaPlayer_brand, _this11, _initPlayerEmbed).call(_this11, {
15177
+ container: _this11.uniqueId,
15178
+ mediaData: _classPrivateFieldGet(_playerData, _this11).mediaData
15096
15179
  });
15097
15180
  }).catch(function(error) {
15098
15181
  (0, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_14__.WO)("player/failure/init-failed");
@@ -15110,14 +15193,14 @@ var init_wistia_player = __esm({
15110
15193
  }, {
15111
15194
  key: "disconnectedCallback",
15112
15195
  value: function disconnectedCallback() {
15113
- var _classPrivateFieldGet141;
15196
+ var _classPrivateFieldGet149;
15114
15197
  _classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
15115
15198
  return removeListener();
15116
15199
  });
15117
15200
  _classPrivateFieldSet(_hasElementConnectedToDOM, this, false);
15118
15201
  (0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, this));
15119
15202
  (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_23__.s3)(this.mediaId);
15120
- (_classPrivateFieldGet141 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet141 === void 0 ? void 0 : _classPrivateFieldGet141.disconnect();
15203
+ (_classPrivateFieldGet149 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet149 === void 0 ? void 0 : _classPrivateFieldGet149.disconnect();
15121
15204
  _classPrivateFieldSet(_resizeObserver, this, null);
15122
15205
  }
15123
15206
  // --------------------------------------------------
@@ -15137,50 +15220,50 @@ var init_wistia_player = __esm({
15137
15220
  }(/* @__PURE__ */ _wrapNativeSuper(HTMLElement));
15138
15221
  _WistiaPlayer = WistiaPlayer;
15139
15222
  getSwatchMetaData2 = /* @__PURE__ */ function() {
15140
- var _ref15 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21(url) {
15223
+ var _ref15 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee23(url) {
15141
15224
  var swatch;
15142
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
15143
- while (1) switch (_context21.prev = _context21.next) {
15225
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
15226
+ while (1) switch (_context23.prev = _context23.next) {
15144
15227
  case 0:
15145
15228
  swatch = new Image();
15146
15229
  swatch.src = url;
15147
- _context21.next = 4;
15230
+ _context23.next = 4;
15148
15231
  return swatch.decode();
15149
15232
  case 4:
15150
- return _context21.abrupt("return", swatch);
15233
+ return _context23.abrupt("return", swatch);
15151
15234
  case 5:
15152
15235
  case "end":
15153
- return _context21.stop();
15236
+ return _context23.stop();
15154
15237
  }
15155
- }, _callee21);
15238
+ }, _callee23);
15156
15239
  }));
15157
- return function getSwatchMetaData3(_x15) {
15240
+ return function getSwatchMetaData3(_x17) {
15158
15241
  return _ref15.apply(this, arguments);
15159
15242
  };
15160
15243
  }();
15161
15244
  wistiaSwatchElement = /* @__PURE__ */ function() {
15162
- var _ref16 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22(mediaId, embedHost) {
15245
+ var _ref16 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee24(mediaId, embedHost) {
15163
15246
  var swatchUrl2, swatchImg, naturalHeight, naturalWidth, ratio, style;
15164
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
15165
- while (1) switch (_context22.prev = _context22.next) {
15247
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
15248
+ while (1) switch (_context24.prev = _context24.next) {
15166
15249
  case 0:
15167
15250
  swatchUrl2 = getSwatchUrl(mediaId, embedHost);
15168
- _context22.next = 3;
15251
+ _context24.next = 3;
15169
15252
  return getSwatchMetaData2(swatchUrl2);
15170
15253
  case 3:
15171
- swatchImg = _context22.sent;
15254
+ swatchImg = _context24.sent;
15172
15255
  naturalHeight = swatchImg.naturalHeight, naturalWidth = swatchImg.naturalWidth;
15173
15256
  ratio = naturalHeight / naturalWidth * 100;
15174
15257
  style = document.createElement("style");
15175
15258
  style.innerHTML = "\n wistia-player[media-id='".concat(mediaId, "']:not(:defined) {\n padding: ").concat(ratio, "% 0 0 0;\n background: url(").concat(swatchUrl2, ");\n background-size: contain;\n filter: blur(5px);\n display: block;\n }\n ");
15176
- return _context22.abrupt("return", style);
15259
+ return _context24.abrupt("return", style);
15177
15260
  case 9:
15178
15261
  case "end":
15179
- return _context22.stop();
15262
+ return _context24.stop();
15180
15263
  }
15181
- }, _callee22);
15264
+ }, _callee24);
15182
15265
  }));
15183
- return function wistiaSwatchElement2(_x16, _x17) {
15266
+ return function wistiaSwatchElement2(_x18, _x19) {
15184
15267
  return _ref16.apply(this, arguments);
15185
15268
  };
15186
15269
  }();