@wistia/wistia-player-react 0.0.65 → 0.0.67
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
|
|
584
|
-
if ((
|
|
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];
|
|
@@ -612,78 +612,78 @@ function _initPlayerEmbed(_ref19) {
|
|
|
612
612
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
613
613
|
}
|
|
614
614
|
if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
|
|
615
|
-
var
|
|
616
|
-
(
|
|
615
|
+
var _classPrivateFieldGet151;
|
|
616
|
+
(_classPrivateFieldGet151 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet151 === void 0 ? void 0 : _classPrivateFieldGet151.states.delete("--initializing");
|
|
617
617
|
}
|
|
618
618
|
void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
|
|
619
619
|
container,
|
|
620
620
|
mediaData
|
|
621
621
|
});
|
|
622
622
|
}
|
|
623
|
-
function _initPublicApi(
|
|
623
|
+
function _initPublicApi(_x20, _x21) {
|
|
624
624
|
return _initPublicApi2.apply(this, arguments);
|
|
625
625
|
}
|
|
626
626
|
function _initPublicApi2() {
|
|
627
|
-
_initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
628
|
-
var
|
|
627
|
+
_initPublicApi2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee25(mediaId, options) {
|
|
628
|
+
var _this17 = this;
|
|
629
629
|
var embeddedCallback;
|
|
630
|
-
return _regeneratorRuntime().wrap(function
|
|
631
|
-
while (1) switch (
|
|
630
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
631
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
632
632
|
case 0:
|
|
633
|
-
|
|
633
|
+
_context25.next = 2;
|
|
634
634
|
return _classPrivateFieldGet(_publicApiScript, this);
|
|
635
635
|
case 2:
|
|
636
636
|
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.PublicApi) {
|
|
637
|
-
|
|
637
|
+
_context25.next = 5;
|
|
638
638
|
break;
|
|
639
639
|
}
|
|
640
640
|
(0, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_14__.WO)("player/failure/init-failed");
|
|
641
641
|
throw new Error("Wistia.PublicApi is not defined");
|
|
642
642
|
case 5:
|
|
643
643
|
embeddedCallback = function embeddedCallback2() {
|
|
644
|
-
var
|
|
645
|
-
void _assertClassBrand(_WistiaPlayer_brand,
|
|
646
|
-
_classPrivateFieldSet(_preloadAspectRatio,
|
|
647
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
648
|
-
(
|
|
649
|
-
|
|
650
|
-
(
|
|
651
|
-
_classPrivateFieldSet(_resizeObserver,
|
|
652
|
-
if (_classPrivateFieldGet(_playPending,
|
|
653
|
-
void
|
|
644
|
+
var _classPrivateFieldGet161, _classPrivateFieldGet162;
|
|
645
|
+
void _assertClassBrand(_WistiaPlayer_brand, _this17, _maybeInitializeMux).call(_this17);
|
|
646
|
+
_classPrivateFieldSet(_preloadAspectRatio, _this17, void 0);
|
|
647
|
+
_assertClassBrand(_WistiaPlayer_brand, _this17, _renderEmbedTemplate).call(_this17);
|
|
648
|
+
(_classPrivateFieldGet161 = _classPrivateFieldGet(_preloadThumbnailRoot, _this17)) === null || _classPrivateFieldGet161 === void 0 ? void 0 : _classPrivateFieldGet161.remove();
|
|
649
|
+
_this17.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this17));
|
|
650
|
+
(_classPrivateFieldGet162 = _classPrivateFieldGet(_resizeObserver, _this17)) === null || _classPrivateFieldGet162 === void 0 ? void 0 : _classPrivateFieldGet162.disconnect();
|
|
651
|
+
_classPrivateFieldSet(_resizeObserver, _this17, null);
|
|
652
|
+
if (_classPrivateFieldGet(_playPending, _this17)) {
|
|
653
|
+
void _this17.play();
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
656
|
this.addEventListener("embedded", embeddedCallback);
|
|
657
657
|
_classPrivateFieldGet(_removeEventListeners, this).push(function() {
|
|
658
|
-
|
|
658
|
+
_this17.removeEventListener("embedded", embeddedCallback);
|
|
659
659
|
});
|
|
660
660
|
_classPrivateFieldSet(_api, this, new _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.PublicApi(mediaId, options));
|
|
661
661
|
_classPrivateFieldGet(_api, this).ready(function() {
|
|
662
|
-
var
|
|
663
|
-
|
|
662
|
+
var _classPrivateFieldGet163;
|
|
663
|
+
_this17.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, {
|
|
664
664
|
detail: {
|
|
665
665
|
mediaId
|
|
666
666
|
}
|
|
667
667
|
}));
|
|
668
|
-
|
|
668
|
+
_this17.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.iP, {
|
|
669
669
|
detail: {
|
|
670
670
|
mediaId,
|
|
671
|
-
api: _classPrivateFieldGet(_api,
|
|
671
|
+
api: _classPrivateFieldGet(_api, _this17)
|
|
672
672
|
}
|
|
673
673
|
}));
|
|
674
|
-
if ((
|
|
675
|
-
Object.entries(_classPrivateFieldGet(_api,
|
|
674
|
+
if ((_classPrivateFieldGet163 = _classPrivateFieldGet(_api, _this17)) !== null && _classPrivateFieldGet163 !== void 0 && _classPrivateFieldGet163._impl) {
|
|
675
|
+
Object.entries(_classPrivateFieldGet(_api, _this17)._impl._attrs).forEach(function(_ref25) {
|
|
676
676
|
var _ref26 = _slicedToArray(_ref25, 2), key = _ref26[0], value = _ref26[1];
|
|
677
|
-
_classPrivateFieldGet(_playerData,
|
|
677
|
+
_classPrivateFieldGet(_playerData, _this17).updateEmbedOptionOverrides(_defineProperty({}, key, value));
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
680
|
+
_assertClassBrand(_WistiaPlayer_brand, _this17, _renderPreloadThumbnail).call(_this17);
|
|
681
681
|
});
|
|
682
682
|
case 10:
|
|
683
683
|
case "end":
|
|
684
|
-
return
|
|
684
|
+
return _context25.stop();
|
|
685
685
|
}
|
|
686
|
-
},
|
|
686
|
+
}, _callee25, this);
|
|
687
687
|
}));
|
|
688
688
|
return _initPublicApi2.apply(this, arguments);
|
|
689
689
|
}
|
|
@@ -694,44 +694,44 @@ function _maybeInitializeMux() {
|
|
|
694
694
|
return _maybeInitializeMux2.apply(this, arguments);
|
|
695
695
|
}
|
|
696
696
|
function _maybeInitializeMux2() {
|
|
697
|
-
_maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
698
|
-
var
|
|
697
|
+
_maybeInitializeMux2 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee26() {
|
|
698
|
+
var _this18 = this;
|
|
699
699
|
var shouldRandomEnableMux, shouldEnableMuxForPlayer, embedType, mux;
|
|
700
|
-
return _regeneratorRuntime().wrap(function
|
|
701
|
-
while (1) switch (
|
|
700
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
701
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
702
702
|
case 0:
|
|
703
703
|
if (_classPrivateFieldGet(_api, this)) {
|
|
704
|
-
|
|
704
|
+
_context26.next = 2;
|
|
705
705
|
break;
|
|
706
706
|
}
|
|
707
|
-
return
|
|
707
|
+
return _context26.abrupt("return");
|
|
708
708
|
case 2:
|
|
709
709
|
shouldRandomEnableMux = (0, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_30__.k)(_utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_31__._);
|
|
710
710
|
shouldEnableMuxForPlayer = (0, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_31__.J)(_classPrivateFieldGet(_api, this), shouldRandomEnableMux) && (0, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_15__.D5)();
|
|
711
711
|
embedType = this.useWebComponent ? "translated-web-component" : "web-component";
|
|
712
712
|
if (!shouldEnableMuxForPlayer) {
|
|
713
|
-
|
|
713
|
+
_context26.next = 11;
|
|
714
714
|
break;
|
|
715
715
|
}
|
|
716
|
-
|
|
716
|
+
_context26.next = 8;
|
|
717
717
|
return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_7__.$)("assets/external/wistia-mux.js");
|
|
718
718
|
case 8:
|
|
719
|
-
mux =
|
|
719
|
+
mux = _context26.sent;
|
|
720
720
|
mux.init(_classPrivateFieldGet(_api, this), {
|
|
721
721
|
embedType
|
|
722
722
|
});
|
|
723
723
|
this.addEventListener("visitor-tracking-change", function(event) {
|
|
724
724
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
725
725
|
if (!isTrackingEnabled) {
|
|
726
|
-
var
|
|
727
|
-
(
|
|
726
|
+
var _classPrivateFieldGet165, _classPrivateFieldGet166;
|
|
727
|
+
(_classPrivateFieldGet165 = _classPrivateFieldGet(_api, _this18)) === null || _classPrivateFieldGet165 === void 0 ? void 0 : (_classPrivateFieldGet166 = _classPrivateFieldGet165.mux) === null || _classPrivateFieldGet166 === void 0 ? void 0 : _classPrivateFieldGet166.destroy();
|
|
728
728
|
}
|
|
729
729
|
});
|
|
730
730
|
case 11:
|
|
731
731
|
case "end":
|
|
732
|
-
return
|
|
732
|
+
return _context26.stop();
|
|
733
733
|
}
|
|
734
|
-
},
|
|
734
|
+
}, _callee26, this);
|
|
735
735
|
}));
|
|
736
736
|
return _maybeInitializeMux2.apply(this, arguments);
|
|
737
737
|
}
|
|
@@ -757,7 +757,7 @@ function _maybeSetupEmbedOptionsFromIframe() {
|
|
|
757
757
|
_classPrivateFieldGet(_playerData, this).setIframeEmbedOptionSource(iframeEmbedOptions);
|
|
758
758
|
}
|
|
759
759
|
function _renderEmbedTemplate() {
|
|
760
|
-
var _this$embedHost2,
|
|
760
|
+
var _this$embedHost2, _this12 = this;
|
|
761
761
|
if (!_classPrivateFieldGet(_preactRoot, this)) {
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
@@ -807,7 +807,7 @@ function _renderEmbedTemplate() {
|
|
|
807
807
|
"aria-hidden": "true"
|
|
808
808
|
})))), (0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
809
809
|
ref: function ref(_ref20) {
|
|
810
|
-
_classPrivateFieldSet(_preloadThumbnailRoot,
|
|
810
|
+
_classPrivateFieldSet(_preloadThumbnailRoot, _this12, _ref20);
|
|
811
811
|
}
|
|
812
812
|
})), _classPrivateFieldGet(_preactRoot, this));
|
|
813
813
|
}
|
|
@@ -816,8 +816,8 @@ function _renderPreloadThumbnail() {
|
|
|
816
816
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
|
-
var
|
|
820
|
-
var
|
|
819
|
+
var _classPrivateFieldGet152 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet152.assets, mediaType = _classPrivateFieldGet152.mediaType;
|
|
820
|
+
var _classPrivateFieldGet153 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet153.autoPlay, plugin = _classPrivateFieldGet153.plugin;
|
|
821
821
|
var thumbnailAssets = (0, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_5__.Q0)(assets, {});
|
|
822
822
|
var willAutoplay = this.autoplay || autoPlay;
|
|
823
823
|
var hasVideoThumbnail = (plugin === null || plugin === void 0 ? void 0 : plugin.videoThumbnail) !== void 0;
|
|
@@ -836,18 +836,18 @@ function _renderPreloadThumbnail() {
|
|
|
836
836
|
})), _classPrivateFieldGet(_preloadThumbnailRoot, this));
|
|
837
837
|
}
|
|
838
838
|
function _runMethodsFromAttributes() {
|
|
839
|
-
var
|
|
839
|
+
var _this13 = this;
|
|
840
840
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
|
|
841
841
|
this.whenApiReady().then(function() {
|
|
842
|
-
var _ref21,
|
|
843
|
-
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand,
|
|
844
|
-
var isClosedPopover = (_ref21 = ((
|
|
842
|
+
var _ref21, _classPrivateFieldGet154, _classPrivateFieldGet155, _classPrivateFieldGet156;
|
|
843
|
+
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, "current-time"));
|
|
844
|
+
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
845
|
var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_6__.GS)();
|
|
846
|
-
var shouldDelayUntilPlay =
|
|
847
|
-
void ((
|
|
846
|
+
var shouldDelayUntilPlay = _this13.state !== "playing" && (isMobile || isClosedPopover);
|
|
847
|
+
void ((_classPrivateFieldGet155 = _classPrivateFieldGet(_api, _this13)) === null || _classPrivateFieldGet155 === void 0 ? void 0 : (_classPrivateFieldGet156 = _classPrivateFieldGet155._impl) === null || _classPrivateFieldGet156 === void 0 ? void 0 : _classPrivateFieldGet156.time(newTime, {
|
|
848
848
|
lazy: shouldDelayUntilPlay
|
|
849
849
|
}));
|
|
850
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
850
|
+
_assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, "currentTime", newTime);
|
|
851
851
|
}).catch(function(_error) {
|
|
852
852
|
});
|
|
853
853
|
}
|
|
@@ -856,41 +856,41 @@ function _runMethodsFromAttributes() {
|
|
|
856
856
|
}
|
|
857
857
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
|
|
858
858
|
this.whenApiReady().then(function() {
|
|
859
|
-
var
|
|
860
|
-
var newQuality = _assertClassBrand(_WistiaPlayer_brand,
|
|
861
|
-
(
|
|
862
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
859
|
+
var _classPrivateFieldGet157, _classPrivateFieldGet158;
|
|
860
|
+
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, "video-quality");
|
|
861
|
+
(_classPrivateFieldGet157 = _classPrivateFieldGet(_api, _this13)) === null || _classPrivateFieldGet157 === void 0 ? void 0 : (_classPrivateFieldGet158 = _classPrivateFieldGet157._impl) === null || _classPrivateFieldGet158 === void 0 ? void 0 : _classPrivateFieldGet158.setVideoQuality(newQuality);
|
|
862
|
+
_assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, "videoQuality", newQuality);
|
|
863
863
|
}).catch(function(_error) {
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
function _saveInitialAttributesFromDomOptions() {
|
|
868
|
-
var
|
|
868
|
+
var _this14 = this;
|
|
869
869
|
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref22) {
|
|
870
870
|
var _ref23 = _slicedToArray(_ref22, 2), value = _ref23[1];
|
|
871
|
-
return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_27__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand,
|
|
871
|
+
return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_27__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, value.name)];
|
|
872
872
|
}));
|
|
873
873
|
_classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
|
|
874
874
|
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_8__.gY)("__".concat(this.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, this).embedOptions);
|
|
875
875
|
}
|
|
876
876
|
function _setSyncedEmbedOption(key, value) {
|
|
877
|
-
var
|
|
877
|
+
var _classPrivateFieldGet159;
|
|
878
878
|
_classPrivateFieldGet(_logger, this).info("set ".concat(key), value.toString());
|
|
879
|
-
if ((
|
|
879
|
+
if ((_classPrivateFieldGet159 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet159 !== void 0 && _classPrivateFieldGet159._impl) {
|
|
880
880
|
_classPrivateFieldGet(_api, this)._impl._attrs[key] = value;
|
|
881
881
|
}
|
|
882
882
|
_classPrivateFieldGet(_playerData, this).updateEmbedOptionOverrides(_defineProperty({}, key, value));
|
|
883
883
|
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
884
884
|
}
|
|
885
885
|
function _setupEventListeners() {
|
|
886
|
-
var
|
|
886
|
+
var _this15 = this;
|
|
887
887
|
var loadedMediaDataCallback = function loadedMediaDataCallback2(event) {
|
|
888
888
|
var _ref24 = event.detail, mediaData = _ref24.mediaData;
|
|
889
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
889
|
+
_assertClassBrand(_WistiaPlayer_brand, _this15, _updateMediaData).call(_this15, mediaData);
|
|
890
890
|
};
|
|
891
891
|
this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.rO, loadedMediaDataCallback);
|
|
892
892
|
_classPrivateFieldGet(_removeEventListeners, this).push(function() {
|
|
893
|
-
|
|
893
|
+
_this15.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.rO, loadedMediaDataCallback);
|
|
894
894
|
});
|
|
895
895
|
this.addEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, this), {
|
|
896
896
|
once: true
|
|
@@ -900,9 +900,9 @@ function _shouldDisplaySwatch() {
|
|
|
900
900
|
return this.swatch !== false && (!this.wistiaPopover || _assertClassBrand(_WistiaPlayer_brand, this, _isPopoverWithThumbnail).call(this));
|
|
901
901
|
}
|
|
902
902
|
function _updateEmail(email) {
|
|
903
|
-
var
|
|
903
|
+
var _this16 = this;
|
|
904
904
|
(0, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_17__.$B)(function(localStorage2) {
|
|
905
|
-
localStorage2[_classPrivateGetter(_WistiaPlayer_brand,
|
|
905
|
+
localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this16, _get_pageUrl)] = _objectSpread(_objectSpread({}, localStorage2[_classPrivateGetter(_WistiaPlayer_brand, _this16, _get_pageUrl)]), {}, {
|
|
906
906
|
trackEmail: email
|
|
907
907
|
});
|
|
908
908
|
});
|
|
@@ -3409,6 +3409,11 @@ var init_wistia_player = __esm({
|
|
|
3409
3409
|
rO: () => (
|
|
3410
3410
|
/* binding */
|
|
3411
3411
|
LOADED_MEDIA_DATA_EVENT
|
|
3412
|
+
),
|
|
3413
|
+
/* harmony export */
|
|
3414
|
+
ve: () => (
|
|
3415
|
+
/* binding */
|
|
3416
|
+
INPUT_CONTEXT_CHANGE_EVENT
|
|
3412
3417
|
)
|
|
3413
3418
|
/* harmony export */
|
|
3414
3419
|
});
|
|
@@ -3417,6 +3422,7 @@ var init_wistia_player = __esm({
|
|
|
3417
3422
|
var API_READY_EVENT = "api-ready";
|
|
3418
3423
|
var AFTER_REPLACE_EVENT = "afterreplace";
|
|
3419
3424
|
var LOADED_MEDIA_DATA_EVENT = "loaded-media-data";
|
|
3425
|
+
var INPUT_CONTEXT_CHANGE_EVENT = "input-context-change";
|
|
3420
3426
|
}
|
|
3421
3427
|
),
|
|
3422
3428
|
/***/
|
|
@@ -9636,7 +9642,7 @@ var init_wistia_player = __esm({
|
|
|
9636
9642
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9637
9643
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
9638
9644
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9639
|
-
var TAGGED_VERSION = "0.0.
|
|
9645
|
+
var TAGGED_VERSION = "0.0.67";
|
|
9640
9646
|
var DEFAULT_PROTOCOL = function() {
|
|
9641
9647
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
9642
9648
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -13719,6 +13725,22 @@ var init_wistia_player = __esm({
|
|
|
13719
13725
|
var _classPrivateFieldGet38, _classPrivateFieldGet39, _classPrivateFieldGet40;
|
|
13720
13726
|
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
13727
|
}
|
|
13728
|
+
}, {
|
|
13729
|
+
key: "inputContext",
|
|
13730
|
+
get: function get() {
|
|
13731
|
+
var _classPrivateFieldGet41, _classPrivateFieldGet42;
|
|
13732
|
+
return (_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : (_classPrivateFieldGet42 = _classPrivateFieldGet41._impl) === null || _classPrivateFieldGet42 === void 0 ? void 0 : _classPrivateFieldGet42.getInputContext();
|
|
13733
|
+
}
|
|
13734
|
+
/**
|
|
13735
|
+
* Returns whether instantHLS is enabled for the video.
|
|
13736
|
+
* @returns {boolean}
|
|
13737
|
+
*/
|
|
13738
|
+
}, {
|
|
13739
|
+
key: "instantHls",
|
|
13740
|
+
get: function get() {
|
|
13741
|
+
var _classPrivateFieldGet43, _classPrivateFieldGet44, _classPrivateFieldGet45;
|
|
13742
|
+
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;
|
|
13743
|
+
}
|
|
13722
13744
|
/**
|
|
13723
13745
|
* Returns all the mediaData set on the WistiaPlayer
|
|
13724
13746
|
* @returns {MediaData }
|
|
@@ -13753,17 +13775,17 @@ var init_wistia_player = __esm({
|
|
|
13753
13775
|
}, {
|
|
13754
13776
|
key: "muted",
|
|
13755
13777
|
get: function get() {
|
|
13756
|
-
var _ref7,
|
|
13757
|
-
return (_ref7 = (
|
|
13778
|
+
var _ref7, _classPrivateFieldGet46, _classPrivateFieldGet47, _classPrivateFieldGet48;
|
|
13779
|
+
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;
|
|
13758
13780
|
},
|
|
13759
13781
|
set: function set(shouldMute) {
|
|
13760
13782
|
if (_classPrivateFieldGet(_api, this)) {
|
|
13761
13783
|
if (shouldMute) {
|
|
13762
|
-
var
|
|
13763
|
-
void ((
|
|
13784
|
+
var _classPrivateFieldGet49;
|
|
13785
|
+
void ((_classPrivateFieldGet49 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet49 === void 0 ? void 0 : _classPrivateFieldGet49.mute());
|
|
13764
13786
|
} else {
|
|
13765
|
-
var
|
|
13766
|
-
void ((
|
|
13787
|
+
var _classPrivateFieldGet50;
|
|
13788
|
+
void ((_classPrivateFieldGet50 = _classPrivateFieldGet(_api, this)._impl) === null || _classPrivateFieldGet50 === void 0 ? void 0 : _classPrivateFieldGet50.unmute());
|
|
13767
13789
|
}
|
|
13768
13790
|
}
|
|
13769
13791
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "muted", shouldMute);
|
|
@@ -13776,8 +13798,8 @@ var init_wistia_player = __esm({
|
|
|
13776
13798
|
}, {
|
|
13777
13799
|
key: "name",
|
|
13778
13800
|
get: function get() {
|
|
13779
|
-
var _ref8,
|
|
13780
|
-
return (_ref8 = (
|
|
13801
|
+
var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52, _classPrivateFieldGet53;
|
|
13802
|
+
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;
|
|
13781
13803
|
}
|
|
13782
13804
|
}, {
|
|
13783
13805
|
key: "paddingTop",
|
|
@@ -13794,8 +13816,8 @@ var init_wistia_player = __esm({
|
|
|
13794
13816
|
}, {
|
|
13795
13817
|
key: "paused",
|
|
13796
13818
|
get: function get() {
|
|
13797
|
-
var
|
|
13798
|
-
return ((
|
|
13819
|
+
var _classPrivateFieldGet54, _classPrivateFieldGet55;
|
|
13820
|
+
return ((_classPrivateFieldGet54 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : (_classPrivateFieldGet55 = _classPrivateFieldGet54._impl) === null || _classPrivateFieldGet55 === void 0 ? void 0 : _classPrivateFieldGet55.state()) === "paused";
|
|
13799
13821
|
}
|
|
13800
13822
|
/**
|
|
13801
13823
|
* Returns the percent of the video that has been watched as a decimal between 0 and 1.
|
|
@@ -13804,8 +13826,8 @@ var init_wistia_player = __esm({
|
|
|
13804
13826
|
}, {
|
|
13805
13827
|
key: "percentWatched",
|
|
13806
13828
|
get: function get() {
|
|
13807
|
-
var
|
|
13808
|
-
return (
|
|
13829
|
+
var _classPrivateFieldGet56, _classPrivateFieldGet57, _classPrivateFieldGet58;
|
|
13830
|
+
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;
|
|
13809
13831
|
}
|
|
13810
13832
|
/**
|
|
13811
13833
|
* Returns the playback rate of the video.
|
|
@@ -13814,12 +13836,12 @@ var init_wistia_player = __esm({
|
|
|
13814
13836
|
}, {
|
|
13815
13837
|
key: "playbackRate",
|
|
13816
13838
|
get: function get() {
|
|
13817
|
-
var _ref9,
|
|
13818
|
-
return (_ref9 = (
|
|
13839
|
+
var _ref9, _classPrivateFieldGet59, _classPrivateFieldGet60, _classPrivateFieldGet61;
|
|
13840
|
+
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;
|
|
13819
13841
|
},
|
|
13820
13842
|
set: function set(rate) {
|
|
13821
|
-
var
|
|
13822
|
-
(
|
|
13843
|
+
var _classPrivateFieldGet62, _classPrivateFieldGet63;
|
|
13844
|
+
(_classPrivateFieldGet62 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : (_classPrivateFieldGet63 = _classPrivateFieldGet62._impl) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRate(rate);
|
|
13823
13845
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
|
|
13824
13846
|
}
|
|
13825
13847
|
/**
|
|
@@ -13832,8 +13854,8 @@ var init_wistia_player = __esm({
|
|
|
13832
13854
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
|
|
13833
13855
|
},
|
|
13834
13856
|
set: function set(shouldDisplay) {
|
|
13835
|
-
var
|
|
13836
|
-
(
|
|
13857
|
+
var _classPrivateFieldGet64, _classPrivateFieldGet65;
|
|
13858
|
+
(_classPrivateFieldGet64 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : (_classPrivateFieldGet65 = _classPrivateFieldGet64._impl) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.playbackRateControlEnabled(shouldDisplay);
|
|
13837
13859
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
|
|
13838
13860
|
}
|
|
13839
13861
|
/**
|
|
@@ -13846,8 +13868,8 @@ var init_wistia_player = __esm({
|
|
|
13846
13868
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
|
|
13847
13869
|
},
|
|
13848
13870
|
set: function set(shouldDisplay) {
|
|
13849
|
-
var
|
|
13850
|
-
(
|
|
13871
|
+
var _classPrivateFieldGet66, _classPrivateFieldGet67;
|
|
13872
|
+
(_classPrivateFieldGet66 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : (_classPrivateFieldGet67 = _classPrivateFieldGet66._impl) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playbarControlEnabled(shouldDisplay);
|
|
13851
13873
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
|
|
13852
13874
|
}
|
|
13853
13875
|
/**
|
|
@@ -13860,8 +13882,8 @@ var init_wistia_player = __esm({
|
|
|
13860
13882
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
|
|
13861
13883
|
},
|
|
13862
13884
|
set: function set(radius) {
|
|
13863
|
-
var
|
|
13864
|
-
(
|
|
13885
|
+
var _classPrivateFieldGet68, _classPrivateFieldGet69;
|
|
13886
|
+
(_classPrivateFieldGet68 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : (_classPrivateFieldGet69 = _classPrivateFieldGet68._impl) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.setPlayerBorderRadius(Number(radius));
|
|
13865
13887
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", radius);
|
|
13866
13888
|
}
|
|
13867
13889
|
/**
|
|
@@ -13874,8 +13896,8 @@ var init_wistia_player = __esm({
|
|
|
13874
13896
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
|
|
13875
13897
|
},
|
|
13876
13898
|
set: function set(newColor) {
|
|
13877
|
-
var
|
|
13878
|
-
(
|
|
13899
|
+
var _classPrivateFieldGet70, _classPrivateFieldGet71;
|
|
13900
|
+
(_classPrivateFieldGet70 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : (_classPrivateFieldGet71 = _classPrivateFieldGet70._impl) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.playerColor(newColor);
|
|
13879
13901
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
|
|
13880
13902
|
}
|
|
13881
13903
|
/**
|
|
@@ -13931,8 +13953,8 @@ var init_wistia_player = __esm({
|
|
|
13931
13953
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
|
|
13932
13954
|
},
|
|
13933
13955
|
set: function set(shouldDisplay) {
|
|
13934
|
-
var
|
|
13935
|
-
(
|
|
13956
|
+
var _classPrivateFieldGet72, _classPrivateFieldGet73;
|
|
13957
|
+
(_classPrivateFieldGet72 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : (_classPrivateFieldGet73 = _classPrivateFieldGet72._impl) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.playPauseControlEnabled(shouldDisplay);
|
|
13936
13958
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
|
|
13937
13959
|
}
|
|
13938
13960
|
/**
|
|
@@ -13947,8 +13969,8 @@ var init_wistia_player = __esm({
|
|
|
13947
13969
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
|
|
13948
13970
|
},
|
|
13949
13971
|
set: function set(shouldDisplay) {
|
|
13950
|
-
var
|
|
13951
|
-
(
|
|
13972
|
+
var _classPrivateFieldGet74, _classPrivateFieldGet75;
|
|
13973
|
+
(_classPrivateFieldGet74 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : (_classPrivateFieldGet75 = _classPrivateFieldGet74._impl) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.playPauseNotifierEnabled(shouldDisplay);
|
|
13952
13974
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
|
|
13953
13975
|
}
|
|
13954
13976
|
/**
|
|
@@ -13959,8 +13981,8 @@ var init_wistia_player = __esm({
|
|
|
13959
13981
|
}, {
|
|
13960
13982
|
key: "plugins",
|
|
13961
13983
|
get: function get() {
|
|
13962
|
-
var
|
|
13963
|
-
if ((
|
|
13984
|
+
var _classPrivateFieldGet76;
|
|
13985
|
+
if ((_classPrivateFieldGet76 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet76 !== void 0 && _classPrivateFieldGet76._impl) {
|
|
13964
13986
|
return Object.seal(_objectSpread({}, _classPrivateFieldGet(_api, this)._impl.plugin));
|
|
13965
13987
|
}
|
|
13966
13988
|
return {};
|
|
@@ -14167,8 +14189,8 @@ var init_wistia_player = __esm({
|
|
|
14167
14189
|
}, {
|
|
14168
14190
|
key: "preload",
|
|
14169
14191
|
get: function get() {
|
|
14170
|
-
var _ref11,
|
|
14171
|
-
return (_ref11 = (
|
|
14192
|
+
var _ref11, _classPrivateFieldGet77, _classPrivateFieldGet78, _classPrivateFieldGet79;
|
|
14193
|
+
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;
|
|
14172
14194
|
},
|
|
14173
14195
|
set: function set(preloadValue) {
|
|
14174
14196
|
var prevVal = this.preload;
|
|
@@ -14188,8 +14210,8 @@ var init_wistia_player = __esm({
|
|
|
14188
14210
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
|
|
14189
14211
|
},
|
|
14190
14212
|
set: function set(shouldDisplay) {
|
|
14191
|
-
var
|
|
14192
|
-
(
|
|
14213
|
+
var _classPrivateFieldGet80, _classPrivateFieldGet81;
|
|
14214
|
+
(_classPrivateFieldGet80 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : (_classPrivateFieldGet81 = _classPrivateFieldGet80._impl) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.qualityControlEnabled(shouldDisplay);
|
|
14193
14215
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
|
|
14194
14216
|
}
|
|
14195
14217
|
/**
|
|
@@ -14202,8 +14224,8 @@ var init_wistia_player = __esm({
|
|
|
14202
14224
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
|
|
14203
14225
|
},
|
|
14204
14226
|
set: function set(quality) {
|
|
14205
|
-
var
|
|
14206
|
-
(
|
|
14227
|
+
var _classPrivateFieldGet82, _classPrivateFieldGet83;
|
|
14228
|
+
(_classPrivateFieldGet82 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : (_classPrivateFieldGet83 = _classPrivateFieldGet82._impl) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.qualityMax(quality);
|
|
14207
14229
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
|
|
14208
14230
|
}
|
|
14209
14231
|
/**
|
|
@@ -14216,8 +14238,8 @@ var init_wistia_player = __esm({
|
|
|
14216
14238
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
|
|
14217
14239
|
},
|
|
14218
14240
|
set: function set(quality) {
|
|
14219
|
-
var
|
|
14220
|
-
(
|
|
14241
|
+
var _classPrivateFieldGet84, _classPrivateFieldGet85;
|
|
14242
|
+
(_classPrivateFieldGet84 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : (_classPrivateFieldGet85 = _classPrivateFieldGet84._impl) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.qualityMin(quality);
|
|
14221
14243
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
|
|
14222
14244
|
}
|
|
14223
14245
|
/**
|
|
@@ -14227,8 +14249,8 @@ var init_wistia_player = __esm({
|
|
|
14227
14249
|
}, {
|
|
14228
14250
|
key: "readyState",
|
|
14229
14251
|
get: function get() {
|
|
14230
|
-
var
|
|
14231
|
-
return (
|
|
14252
|
+
var _classPrivateFieldGet86, _classPrivateFieldGet87, _classPrivateFieldGet88;
|
|
14253
|
+
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;
|
|
14232
14254
|
}
|
|
14233
14255
|
/**
|
|
14234
14256
|
* Returns the current resumable status of the video.
|
|
@@ -14240,8 +14262,8 @@ var init_wistia_player = __esm({
|
|
|
14240
14262
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable");
|
|
14241
14263
|
},
|
|
14242
14264
|
set: function set(resumableState) {
|
|
14243
|
-
var
|
|
14244
|
-
(
|
|
14265
|
+
var _classPrivateFieldGet89, _classPrivateFieldGet90;
|
|
14266
|
+
(_classPrivateFieldGet89 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : (_classPrivateFieldGet90 = _classPrivateFieldGet89._impl) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.setResumable(resumableState);
|
|
14245
14267
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
|
|
14246
14268
|
}
|
|
14247
14269
|
/**
|
|
@@ -14254,8 +14276,8 @@ var init_wistia_player = __esm({
|
|
|
14254
14276
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
|
|
14255
14277
|
},
|
|
14256
14278
|
set: function set(radius) {
|
|
14257
|
-
var
|
|
14258
|
-
(
|
|
14279
|
+
var _classPrivateFieldGet91, _classPrivateFieldGet92;
|
|
14280
|
+
(_classPrivateFieldGet91 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : (_classPrivateFieldGet92 = _classPrivateFieldGet91._impl) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.setRoundedPlayer(Number(radius));
|
|
14259
14281
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", radius);
|
|
14260
14282
|
}
|
|
14261
14283
|
/**
|
|
@@ -14266,8 +14288,8 @@ var init_wistia_player = __esm({
|
|
|
14266
14288
|
}, {
|
|
14267
14289
|
key: "secondsWatched",
|
|
14268
14290
|
get: function get() {
|
|
14269
|
-
var
|
|
14270
|
-
return (
|
|
14291
|
+
var _classPrivateFieldGet93, _classPrivateFieldGet94, _classPrivateFieldGet95;
|
|
14292
|
+
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;
|
|
14271
14293
|
}
|
|
14272
14294
|
/**
|
|
14273
14295
|
* Returns an array where each index represents the number of times the viewer has watched each second of the video.
|
|
@@ -14276,8 +14298,8 @@ var init_wistia_player = __esm({
|
|
|
14276
14298
|
}, {
|
|
14277
14299
|
key: "secondsWatchedVector",
|
|
14278
14300
|
get: function get() {
|
|
14279
|
-
var
|
|
14280
|
-
return (
|
|
14301
|
+
var _classPrivateFieldGet96, _classPrivateFieldGet97, _classPrivateFieldGet98;
|
|
14302
|
+
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 : [];
|
|
14281
14303
|
}
|
|
14282
14304
|
/**
|
|
14283
14305
|
* Returns whether JSON+LD seo data will be injected.
|
|
@@ -14301,8 +14323,8 @@ var init_wistia_player = __esm({
|
|
|
14301
14323
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
|
|
14302
14324
|
},
|
|
14303
14325
|
set: function set(shouldDisplay) {
|
|
14304
|
-
var
|
|
14305
|
-
(
|
|
14326
|
+
var _classPrivateFieldGet99, _classPrivateFieldGet100;
|
|
14327
|
+
(_classPrivateFieldGet99 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : (_classPrivateFieldGet100 = _classPrivateFieldGet99._impl) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.settingsControlEnabled(shouldDisplay);
|
|
14306
14328
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
|
|
14307
14329
|
}
|
|
14308
14330
|
/**
|
|
@@ -14328,8 +14350,8 @@ var init_wistia_player = __esm({
|
|
|
14328
14350
|
}, {
|
|
14329
14351
|
key: "state",
|
|
14330
14352
|
get: function get() {
|
|
14331
|
-
var
|
|
14332
|
-
return (
|
|
14353
|
+
var _classPrivateFieldGet101, _classPrivateFieldGet102;
|
|
14354
|
+
return (_classPrivateFieldGet101 = (_classPrivateFieldGet102 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.state()) !== null && _classPrivateFieldGet101 !== void 0 ? _classPrivateFieldGet101 : defaultEmbedOptions.state;
|
|
14333
14355
|
}
|
|
14334
14356
|
/**
|
|
14335
14357
|
* Returns the stats url for the player.
|
|
@@ -14407,12 +14429,12 @@ var init_wistia_player = __esm({
|
|
|
14407
14429
|
}, {
|
|
14408
14430
|
key: "videoQuality",
|
|
14409
14431
|
get: function get() {
|
|
14410
|
-
var _ref12,
|
|
14411
|
-
return (_ref12 = (
|
|
14432
|
+
var _ref12, _classPrivateFieldGet103, _classPrivateFieldGet104, _classPrivateFieldGet105;
|
|
14433
|
+
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";
|
|
14412
14434
|
},
|
|
14413
14435
|
set: function set(quality) {
|
|
14414
|
-
var
|
|
14415
|
-
(
|
|
14436
|
+
var _classPrivateFieldGet106, _classPrivateFieldGet107;
|
|
14437
|
+
(_classPrivateFieldGet106 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet106 === void 0 ? void 0 : (_classPrivateFieldGet107 = _classPrivateFieldGet106._impl) === null || _classPrivateFieldGet107 === void 0 ? void 0 : _classPrivateFieldGet107.setVideoQuality(quality);
|
|
14416
14438
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
|
|
14417
14439
|
}
|
|
14418
14440
|
/**
|
|
@@ -14435,8 +14457,8 @@ var init_wistia_player = __esm({
|
|
|
14435
14457
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
|
|
14436
14458
|
},
|
|
14437
14459
|
set: function set(level) {
|
|
14438
|
-
var
|
|
14439
|
-
(
|
|
14460
|
+
var _classPrivateFieldGet108, _classPrivateFieldGet109;
|
|
14461
|
+
(_classPrivateFieldGet108 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet108 === void 0 ? void 0 : (_classPrivateFieldGet109 = _classPrivateFieldGet108._impl) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.volume(level);
|
|
14440
14462
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
|
|
14441
14463
|
}
|
|
14442
14464
|
/**
|
|
@@ -14451,8 +14473,8 @@ var init_wistia_player = __esm({
|
|
|
14451
14473
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
|
|
14452
14474
|
},
|
|
14453
14475
|
set: function set(shouldDisplay) {
|
|
14454
|
-
var
|
|
14455
|
-
(
|
|
14476
|
+
var _classPrivateFieldGet110, _classPrivateFieldGet111;
|
|
14477
|
+
(_classPrivateFieldGet110 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : (_classPrivateFieldGet111 = _classPrivateFieldGet110._impl) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.volumeControlEnabled(shouldDisplay);
|
|
14456
14478
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
|
|
14457
14479
|
}
|
|
14458
14480
|
/**
|
|
@@ -14479,11 +14501,11 @@ var init_wistia_player = __esm({
|
|
|
14479
14501
|
*/
|
|
14480
14502
|
function() {
|
|
14481
14503
|
var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
|
|
14482
|
-
var
|
|
14504
|
+
var _classPrivateFieldGet112, _classPrivateFieldGet113, _this3 = this;
|
|
14483
14505
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14484
14506
|
while (1) switch (_context.prev = _context.next) {
|
|
14485
14507
|
case 0:
|
|
14486
|
-
return _context.abrupt("return", (
|
|
14508
|
+
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() {
|
|
14487
14509
|
_this3._fullscreenState.heightBeforeFullscreen = void 0;
|
|
14488
14510
|
_this3._fullscreenState.widthBeforeFullscreen = void 0;
|
|
14489
14511
|
}));
|
|
@@ -14509,11 +14531,11 @@ var init_wistia_player = __esm({
|
|
|
14509
14531
|
key: "createOverlay",
|
|
14510
14532
|
value: function() {
|
|
14511
14533
|
var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(name, options) {
|
|
14512
|
-
var
|
|
14534
|
+
var _classPrivateFieldGet114, _classPrivateFieldGet115;
|
|
14513
14535
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
14514
14536
|
while (1) switch (_context2.prev = _context2.next) {
|
|
14515
14537
|
case 0:
|
|
14516
|
-
if (!((
|
|
14538
|
+
if (!((_classPrivateFieldGet114 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet114 !== void 0 && (_classPrivateFieldGet115 = _classPrivateFieldGet114._impl) !== null && _classPrivateFieldGet115 !== void 0 && _classPrivateFieldGet115.defineOverlay)) {
|
|
14517
14539
|
_context2.next = 2;
|
|
14518
14540
|
break;
|
|
14519
14541
|
}
|
|
@@ -14542,11 +14564,11 @@ var init_wistia_player = __esm({
|
|
|
14542
14564
|
case 0:
|
|
14543
14565
|
addPlugin = /* @__PURE__ */ function() {
|
|
14544
14566
|
var _ref13 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3() {
|
|
14545
|
-
var
|
|
14567
|
+
var _classPrivateFieldGet116, _classPrivateFieldGet117;
|
|
14546
14568
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
14547
14569
|
while (1) switch (_context3.prev = _context3.next) {
|
|
14548
14570
|
case 0:
|
|
14549
|
-
return _context3.abrupt("return", (
|
|
14571
|
+
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"))));
|
|
14550
14572
|
case 1:
|
|
14551
14573
|
case "end":
|
|
14552
14574
|
return _context3.stop();
|
|
@@ -14592,11 +14614,11 @@ var init_wistia_player = __esm({
|
|
|
14592
14614
|
key: "deleteOverlay",
|
|
14593
14615
|
value: function() {
|
|
14594
14616
|
var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5(name) {
|
|
14595
|
-
var
|
|
14617
|
+
var _classPrivateFieldGet118, _classPrivateFieldGet119;
|
|
14596
14618
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
14597
14619
|
while (1) switch (_context5.prev = _context5.next) {
|
|
14598
14620
|
case 0:
|
|
14599
|
-
if (!((
|
|
14621
|
+
if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet118 !== void 0 && (_classPrivateFieldGet119 = _classPrivateFieldGet118._impl) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.undefineOverlay)) {
|
|
14600
14622
|
_context5.next = 2;
|
|
14601
14623
|
break;
|
|
14602
14624
|
}
|
|
@@ -14618,11 +14640,11 @@ var init_wistia_player = __esm({
|
|
|
14618
14640
|
key: "disableControl",
|
|
14619
14641
|
value: function() {
|
|
14620
14642
|
var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6(name) {
|
|
14621
|
-
var
|
|
14643
|
+
var _classPrivateFieldGet120, _classPrivateFieldGet121;
|
|
14622
14644
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
14623
14645
|
while (1) switch (_context6.prev = _context6.next) {
|
|
14624
14646
|
case 0:
|
|
14625
|
-
if (!((
|
|
14647
|
+
if (!((_classPrivateFieldGet120 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet120 !== void 0 && (_classPrivateFieldGet121 = _classPrivateFieldGet120._impl) !== null && _classPrivateFieldGet121 !== void 0 && _classPrivateFieldGet121.setControlEnabled)) {
|
|
14626
14648
|
_context6.next = 2;
|
|
14627
14649
|
break;
|
|
14628
14650
|
}
|
|
@@ -14644,11 +14666,11 @@ var init_wistia_player = __esm({
|
|
|
14644
14666
|
key: "enableControl",
|
|
14645
14667
|
value: function() {
|
|
14646
14668
|
var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee7(name) {
|
|
14647
|
-
var
|
|
14669
|
+
var _classPrivateFieldGet122, _classPrivateFieldGet123;
|
|
14648
14670
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
14649
14671
|
while (1) switch (_context7.prev = _context7.next) {
|
|
14650
14672
|
case 0:
|
|
14651
|
-
if (!((
|
|
14673
|
+
if (!((_classPrivateFieldGet122 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet122 !== void 0 && (_classPrivateFieldGet123 = _classPrivateFieldGet122._impl) !== null && _classPrivateFieldGet123 !== void 0 && _classPrivateFieldGet123.setControlEnabled)) {
|
|
14652
14674
|
_context7.next = 2;
|
|
14653
14675
|
break;
|
|
14654
14676
|
}
|
|
@@ -14667,72 +14689,87 @@ var init_wistia_player = __esm({
|
|
|
14667
14689
|
return enableControl;
|
|
14668
14690
|
}()
|
|
14669
14691
|
}, {
|
|
14670
|
-
key: "
|
|
14692
|
+
key: "enterInputContext",
|
|
14671
14693
|
value: function() {
|
|
14672
|
-
var
|
|
14673
|
-
var _this5 = this;
|
|
14694
|
+
var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee8(context) {
|
|
14695
|
+
var _classPrivateFieldGet124, _classPrivateFieldGet125, _this5 = this;
|
|
14674
14696
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
14675
14697
|
while (1) switch (_context8.prev = _context8.next) {
|
|
14676
14698
|
case 0:
|
|
14677
|
-
|
|
14678
|
-
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14682
|
-
|
|
14699
|
+
if (!((_classPrivateFieldGet124 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet124 !== void 0 && (_classPrivateFieldGet125 = _classPrivateFieldGet124._impl) !== null && _classPrivateFieldGet125 !== void 0 && _classPrivateFieldGet125.enterInputContext)) {
|
|
14700
|
+
_context8.next = 2;
|
|
14701
|
+
break;
|
|
14702
|
+
}
|
|
14703
|
+
return _context8.abrupt("return", new Promise(function(resolve) {
|
|
14704
|
+
var _classPrivateFieldGet126, _classPrivateFieldGet127;
|
|
14705
|
+
var _handler = function handler(event) {
|
|
14706
|
+
var detail = event.detail;
|
|
14707
|
+
if (detail.context === context) {
|
|
14708
|
+
resolve();
|
|
14709
|
+
}
|
|
14710
|
+
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.ve, _handler);
|
|
14711
|
+
};
|
|
14712
|
+
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.ve, _handler);
|
|
14713
|
+
(_classPrivateFieldGet126 = _classPrivateFieldGet(_api, _this5)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : (_classPrivateFieldGet127 = _classPrivateFieldGet126._impl) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.enterInputContext(context);
|
|
14683
14714
|
}));
|
|
14684
|
-
case
|
|
14715
|
+
case 2:
|
|
14716
|
+
return _context8.abrupt("return", Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
|
|
14717
|
+
case 3:
|
|
14685
14718
|
case "end":
|
|
14686
14719
|
return _context8.stop();
|
|
14687
14720
|
}
|
|
14688
|
-
}, _callee8);
|
|
14721
|
+
}, _callee8, this);
|
|
14689
14722
|
}));
|
|
14690
|
-
function
|
|
14691
|
-
return
|
|
14723
|
+
function enterInputContext(_x8) {
|
|
14724
|
+
return _enterInputContext.apply(this, arguments);
|
|
14692
14725
|
}
|
|
14693
|
-
return
|
|
14726
|
+
return enterInputContext;
|
|
14694
14727
|
}()
|
|
14695
14728
|
}, {
|
|
14696
|
-
key: "
|
|
14729
|
+
key: "exitInputContext",
|
|
14697
14730
|
value: function() {
|
|
14698
|
-
var
|
|
14699
|
-
var
|
|
14731
|
+
var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(context) {
|
|
14732
|
+
var _classPrivateFieldGet128, _classPrivateFieldGet129;
|
|
14700
14733
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
14701
14734
|
while (1) switch (_context9.prev = _context9.next) {
|
|
14702
14735
|
case 0:
|
|
14703
|
-
if (!((
|
|
14736
|
+
if (!((_classPrivateFieldGet128 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet128 !== void 0 && (_classPrivateFieldGet129 = _classPrivateFieldGet128._impl) !== null && _classPrivateFieldGet129 !== void 0 && _classPrivateFieldGet129.exitInputContext)) {
|
|
14704
14737
|
_context9.next = 2;
|
|
14705
14738
|
break;
|
|
14706
14739
|
}
|
|
14707
|
-
return _context9.abrupt("return", _classPrivateFieldGet(_api, this)._impl.
|
|
14740
|
+
return _context9.abrupt("return", Promise.resolve(_classPrivateFieldGet(_api, this)._impl.exitInputContext(context)));
|
|
14708
14741
|
case 2:
|
|
14709
|
-
return _context9.abrupt("return", Promise.reject(new Error(
|
|
14742
|
+
return _context9.abrupt("return", Promise.reject(new Error('control "'.concat(context, '" cannot be enabled at this time'))));
|
|
14710
14743
|
case 3:
|
|
14711
14744
|
case "end":
|
|
14712
14745
|
return _context9.stop();
|
|
14713
14746
|
}
|
|
14714
14747
|
}, _callee9, this);
|
|
14715
14748
|
}));
|
|
14716
|
-
function
|
|
14717
|
-
return
|
|
14749
|
+
function exitInputContext(_x9) {
|
|
14750
|
+
return _exitInputContext.apply(this, arguments);
|
|
14718
14751
|
}
|
|
14719
|
-
return
|
|
14752
|
+
return exitInputContext;
|
|
14720
14753
|
}()
|
|
14754
|
+
/**
|
|
14755
|
+
* Gets a plugin from the player.
|
|
14756
|
+
* @param {T extends keyof PluginInstances} name name of the plugin to retrieve
|
|
14757
|
+
* @returns {Promise<PluginInstances[T]>} returns a Promise that resolves with the request plugin
|
|
14758
|
+
*/
|
|
14721
14759
|
}, {
|
|
14722
|
-
key: "
|
|
14760
|
+
key: "getPlugin",
|
|
14723
14761
|
value: function() {
|
|
14724
|
-
var
|
|
14762
|
+
var _getPlugin = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee10(name) {
|
|
14725
14763
|
var _this6 = this;
|
|
14726
14764
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
14727
14765
|
while (1) switch (_context10.prev = _context10.next) {
|
|
14728
14766
|
case 0:
|
|
14729
14767
|
return _context10.abrupt("return", new Promise(function(resolve, reject) {
|
|
14730
|
-
var
|
|
14731
|
-
if ((
|
|
14732
|
-
_classPrivateFieldGet(_api, _this6).
|
|
14733
|
-
resolve();
|
|
14768
|
+
var _classPrivateFieldGet130;
|
|
14769
|
+
if ((_classPrivateFieldGet130 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet130 !== void 0 && _classPrivateFieldGet130.plugin(name)) {
|
|
14770
|
+
resolve(_classPrivateFieldGet(_api, _this6).plugin(name));
|
|
14734
14771
|
}
|
|
14735
|
-
reject(new Error("
|
|
14772
|
+
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
14736
14773
|
}));
|
|
14737
14774
|
case 1:
|
|
14738
14775
|
case "end":
|
|
@@ -14740,6 +14777,59 @@ var init_wistia_player = __esm({
|
|
|
14740
14777
|
}
|
|
14741
14778
|
}, _callee10);
|
|
14742
14779
|
}));
|
|
14780
|
+
function getPlugin(_x10) {
|
|
14781
|
+
return _getPlugin.apply(this, arguments);
|
|
14782
|
+
}
|
|
14783
|
+
return getPlugin;
|
|
14784
|
+
}()
|
|
14785
|
+
}, {
|
|
14786
|
+
key: "hideOverlay",
|
|
14787
|
+
value: function() {
|
|
14788
|
+
var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee11(name) {
|
|
14789
|
+
var _classPrivateFieldGet131, _classPrivateFieldGet132;
|
|
14790
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
14791
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
14792
|
+
case 0:
|
|
14793
|
+
if (!((_classPrivateFieldGet131 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet131 !== void 0 && (_classPrivateFieldGet132 = _classPrivateFieldGet131._impl) !== null && _classPrivateFieldGet132 !== void 0 && _classPrivateFieldGet132.cancelOverlay)) {
|
|
14794
|
+
_context11.next = 2;
|
|
14795
|
+
break;
|
|
14796
|
+
}
|
|
14797
|
+
return _context11.abrupt("return", _classPrivateFieldGet(_api, this)._impl.cancelOverlay(name));
|
|
14798
|
+
case 2:
|
|
14799
|
+
return _context11.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be cancelled at this time"))));
|
|
14800
|
+
case 3:
|
|
14801
|
+
case "end":
|
|
14802
|
+
return _context11.stop();
|
|
14803
|
+
}
|
|
14804
|
+
}, _callee11, this);
|
|
14805
|
+
}));
|
|
14806
|
+
function hideOverlay(_x11) {
|
|
14807
|
+
return _hideOverlay.apply(this, arguments);
|
|
14808
|
+
}
|
|
14809
|
+
return hideOverlay;
|
|
14810
|
+
}()
|
|
14811
|
+
}, {
|
|
14812
|
+
key: "hidePopover",
|
|
14813
|
+
value: function() {
|
|
14814
|
+
var _hidePopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee12() {
|
|
14815
|
+
var _this7 = this;
|
|
14816
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
14817
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
14818
|
+
case 0:
|
|
14819
|
+
return _context12.abrupt("return", new Promise(function(resolve, reject) {
|
|
14820
|
+
var _classPrivateFieldGet133;
|
|
14821
|
+
if ((_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet133 !== void 0 && _classPrivateFieldGet133.popover) {
|
|
14822
|
+
_classPrivateFieldGet(_api, _this7).popover.hide();
|
|
14823
|
+
resolve();
|
|
14824
|
+
}
|
|
14825
|
+
reject(new Error("Popover cannot be accessed"));
|
|
14826
|
+
}));
|
|
14827
|
+
case 1:
|
|
14828
|
+
case "end":
|
|
14829
|
+
return _context12.stop();
|
|
14830
|
+
}
|
|
14831
|
+
}, _callee12);
|
|
14832
|
+
}));
|
|
14743
14833
|
function hidePopover() {
|
|
14744
14834
|
return _hidePopover.apply(this, arguments);
|
|
14745
14835
|
}
|
|
@@ -14748,17 +14838,17 @@ var init_wistia_player = __esm({
|
|
|
14748
14838
|
}, {
|
|
14749
14839
|
key: "pause",
|
|
14750
14840
|
value: function() {
|
|
14751
|
-
var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14752
|
-
var
|
|
14753
|
-
return _regeneratorRuntime().wrap(function
|
|
14754
|
-
while (1) switch (
|
|
14841
|
+
var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee13() {
|
|
14842
|
+
var _classPrivateFieldGet134, _classPrivateFieldGet135;
|
|
14843
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
14844
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
14755
14845
|
case 0:
|
|
14756
|
-
return
|
|
14846
|
+
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());
|
|
14757
14847
|
case 1:
|
|
14758
14848
|
case "end":
|
|
14759
|
-
return
|
|
14849
|
+
return _context13.stop();
|
|
14760
14850
|
}
|
|
14761
|
-
},
|
|
14851
|
+
}, _callee13, this);
|
|
14762
14852
|
}));
|
|
14763
14853
|
function pause() {
|
|
14764
14854
|
return _pause.apply(this, arguments);
|
|
@@ -14768,17 +14858,17 @@ var init_wistia_player = __esm({
|
|
|
14768
14858
|
}, {
|
|
14769
14859
|
key: "play",
|
|
14770
14860
|
value: function() {
|
|
14771
|
-
var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14772
|
-
var
|
|
14773
|
-
return _regeneratorRuntime().wrap(function
|
|
14774
|
-
while (1) switch (
|
|
14861
|
+
var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee14() {
|
|
14862
|
+
var _classPrivateFieldGet136, _classPrivateFieldGet137;
|
|
14863
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
14864
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
14775
14865
|
case 0:
|
|
14776
|
-
return
|
|
14866
|
+
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());
|
|
14777
14867
|
case 1:
|
|
14778
14868
|
case "end":
|
|
14779
|
-
return
|
|
14869
|
+
return _context14.stop();
|
|
14780
14870
|
}
|
|
14781
|
-
},
|
|
14871
|
+
}, _callee14, this);
|
|
14782
14872
|
}));
|
|
14783
14873
|
function play() {
|
|
14784
14874
|
return _play.apply(this, arguments);
|
|
@@ -14788,19 +14878,19 @@ var init_wistia_player = __esm({
|
|
|
14788
14878
|
}, {
|
|
14789
14879
|
key: "releaseControls",
|
|
14790
14880
|
value: function() {
|
|
14791
|
-
var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14792
|
-
var
|
|
14793
|
-
return _regeneratorRuntime().wrap(function
|
|
14794
|
-
while (1) switch (
|
|
14881
|
+
var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee15(name) {
|
|
14882
|
+
var _classPrivateFieldGet138, _classPrivateFieldGet139;
|
|
14883
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
14884
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
14795
14885
|
case 0:
|
|
14796
|
-
return
|
|
14886
|
+
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));
|
|
14797
14887
|
case 1:
|
|
14798
14888
|
case "end":
|
|
14799
|
-
return
|
|
14889
|
+
return _context15.stop();
|
|
14800
14890
|
}
|
|
14801
|
-
},
|
|
14891
|
+
}, _callee15, this);
|
|
14802
14892
|
}));
|
|
14803
|
-
function releaseControls(
|
|
14893
|
+
function releaseControls(_x12) {
|
|
14804
14894
|
return _releaseControls.apply(this, arguments);
|
|
14805
14895
|
}
|
|
14806
14896
|
return releaseControls;
|
|
@@ -14808,37 +14898,37 @@ var init_wistia_player = __esm({
|
|
|
14808
14898
|
}, {
|
|
14809
14899
|
key: "replaceWithMedia",
|
|
14810
14900
|
value: function() {
|
|
14811
|
-
var _replaceWithMedia = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14812
|
-
var
|
|
14813
|
-
var options,
|
|
14814
|
-
return _regeneratorRuntime().wrap(function
|
|
14815
|
-
while (1) switch (
|
|
14901
|
+
var _replaceWithMedia = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16(mediaId) {
|
|
14902
|
+
var _this8 = this;
|
|
14903
|
+
var options, _args16 = arguments;
|
|
14904
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
14905
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
14816
14906
|
case 0:
|
|
14817
|
-
options =
|
|
14818
|
-
return
|
|
14819
|
-
var
|
|
14820
|
-
if (!_classPrivateFieldGet(_api,
|
|
14907
|
+
options = _args16.length > 1 && _args16[1] !== void 0 ? _args16[1] : {};
|
|
14908
|
+
return _context16.abrupt("return", new Promise(function(resolve, reject) {
|
|
14909
|
+
var _classPrivateFieldGet140;
|
|
14910
|
+
if (!_classPrivateFieldGet(_api, _this8)) {
|
|
14821
14911
|
reject(new Error("api not ready to replace"));
|
|
14822
14912
|
}
|
|
14823
|
-
var
|
|
14824
|
-
|
|
14825
|
-
|
|
14826
|
-
|
|
14827
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
14828
|
-
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_8__.gY)("__".concat(
|
|
14913
|
+
var _handler2 = function handler() {
|
|
14914
|
+
_this8.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.$1, _handler2);
|
|
14915
|
+
_this8.mediaId = mediaId;
|
|
14916
|
+
_this8.uniqueId = _assertClassBrand(_WistiaPlayer_brand, _this8, _generateUniqueId).call(_this8, mediaId);
|
|
14917
|
+
_assertClassBrand(_WistiaPlayer_brand, _this8, _maybeInjectJsonLd).call(_this8);
|
|
14918
|
+
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_8__.gY)("__".concat(_this8.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, _this8).embedOptions);
|
|
14829
14919
|
resolve();
|
|
14830
14920
|
};
|
|
14831
|
-
|
|
14832
|
-
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId,
|
|
14833
|
-
(
|
|
14921
|
+
_this8.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.$1, _handler2);
|
|
14922
|
+
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, _this8));
|
|
14923
|
+
(_classPrivateFieldGet140 = _classPrivateFieldGet(_api, _this8)) === null || _classPrivateFieldGet140 === void 0 ? void 0 : _classPrivateFieldGet140.replaceWith(mediaId, options);
|
|
14834
14924
|
}));
|
|
14835
14925
|
case 2:
|
|
14836
14926
|
case "end":
|
|
14837
|
-
return
|
|
14927
|
+
return _context16.stop();
|
|
14838
14928
|
}
|
|
14839
|
-
},
|
|
14929
|
+
}, _callee16);
|
|
14840
14930
|
}));
|
|
14841
|
-
function replaceWithMedia(
|
|
14931
|
+
function replaceWithMedia(_x13) {
|
|
14842
14932
|
return _replaceWithMedia.apply(this, arguments);
|
|
14843
14933
|
}
|
|
14844
14934
|
return replaceWithMedia;
|
|
@@ -14846,19 +14936,19 @@ var init_wistia_player = __esm({
|
|
|
14846
14936
|
}, {
|
|
14847
14937
|
key: "requestControls",
|
|
14848
14938
|
value: function() {
|
|
14849
|
-
var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14850
|
-
var
|
|
14851
|
-
return _regeneratorRuntime().wrap(function
|
|
14852
|
-
while (1) switch (
|
|
14939
|
+
var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17(name) {
|
|
14940
|
+
var _classPrivateFieldGet141, _classPrivateFieldGet142;
|
|
14941
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
14942
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
14853
14943
|
case 0:
|
|
14854
|
-
return
|
|
14944
|
+
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));
|
|
14855
14945
|
case 1:
|
|
14856
14946
|
case "end":
|
|
14857
|
-
return
|
|
14947
|
+
return _context17.stop();
|
|
14858
14948
|
}
|
|
14859
|
-
},
|
|
14949
|
+
}, _callee17, this);
|
|
14860
14950
|
}));
|
|
14861
|
-
function requestControls(
|
|
14951
|
+
function requestControls(_x14) {
|
|
14862
14952
|
return _requestControls.apply(this, arguments);
|
|
14863
14953
|
}
|
|
14864
14954
|
return requestControls;
|
|
@@ -14866,23 +14956,23 @@ var init_wistia_player = __esm({
|
|
|
14866
14956
|
}, {
|
|
14867
14957
|
key: "requestFullscreen",
|
|
14868
14958
|
value: function() {
|
|
14869
|
-
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14870
|
-
var
|
|
14871
|
-
return _regeneratorRuntime().wrap(function
|
|
14872
|
-
while (1) switch (
|
|
14959
|
+
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee18() {
|
|
14960
|
+
var _classPrivateFieldGet143, _classPrivateFieldGet144;
|
|
14961
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
14962
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
14873
14963
|
case 0:
|
|
14874
|
-
if (!((
|
|
14875
|
-
|
|
14964
|
+
if (!((_classPrivateFieldGet143 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet143 !== void 0 && (_classPrivateFieldGet144 = _classPrivateFieldGet143._impl) !== null && _classPrivateFieldGet144 !== void 0 && _classPrivateFieldGet144.requestFullscreen)) {
|
|
14965
|
+
_context18.next = 2;
|
|
14876
14966
|
break;
|
|
14877
14967
|
}
|
|
14878
|
-
return
|
|
14968
|
+
return _context18.abrupt("return", _classPrivateFieldGet(_api, this)._impl.requestFullscreen());
|
|
14879
14969
|
case 2:
|
|
14880
|
-
return
|
|
14970
|
+
return _context18.abrupt("return", Promise.reject(new Error("Fullscreen cannot be accessed")));
|
|
14881
14971
|
case 3:
|
|
14882
14972
|
case "end":
|
|
14883
|
-
return
|
|
14973
|
+
return _context18.stop();
|
|
14884
14974
|
}
|
|
14885
|
-
},
|
|
14975
|
+
}, _callee18, this);
|
|
14886
14976
|
}));
|
|
14887
14977
|
function requestFullscreen() {
|
|
14888
14978
|
return _requestFullscreen.apply(this, arguments);
|
|
@@ -14892,25 +14982,25 @@ var init_wistia_player = __esm({
|
|
|
14892
14982
|
}, {
|
|
14893
14983
|
key: "showOverlay",
|
|
14894
14984
|
value: function() {
|
|
14895
|
-
var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14896
|
-
var
|
|
14897
|
-
return _regeneratorRuntime().wrap(function
|
|
14898
|
-
while (1) switch (
|
|
14985
|
+
var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee19(name) {
|
|
14986
|
+
var _classPrivateFieldGet145, _classPrivateFieldGet146;
|
|
14987
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
14988
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
14899
14989
|
case 0:
|
|
14900
|
-
if (!((
|
|
14901
|
-
|
|
14990
|
+
if (!((_classPrivateFieldGet145 = _classPrivateFieldGet(_api, this)) !== null && _classPrivateFieldGet145 !== void 0 && (_classPrivateFieldGet146 = _classPrivateFieldGet145._impl) !== null && _classPrivateFieldGet146 !== void 0 && _classPrivateFieldGet146.requestOverlay)) {
|
|
14991
|
+
_context19.next = 2;
|
|
14902
14992
|
break;
|
|
14903
14993
|
}
|
|
14904
|
-
return
|
|
14994
|
+
return _context19.abrupt("return", _classPrivateFieldGet(_api, this)._impl.requestOverlay(name));
|
|
14905
14995
|
case 2:
|
|
14906
|
-
return
|
|
14996
|
+
return _context19.abrupt("return", Promise.reject(new Error("overlay ".concat(name, " cannot be requested at this time"))));
|
|
14907
14997
|
case 3:
|
|
14908
14998
|
case "end":
|
|
14909
|
-
return
|
|
14999
|
+
return _context19.stop();
|
|
14910
15000
|
}
|
|
14911
|
-
},
|
|
15001
|
+
}, _callee19, this);
|
|
14912
15002
|
}));
|
|
14913
|
-
function showOverlay(
|
|
15003
|
+
function showOverlay(_x15) {
|
|
14914
15004
|
return _showOverlay.apply(this, arguments);
|
|
14915
15005
|
}
|
|
14916
15006
|
return showOverlay;
|
|
@@ -14918,24 +15008,24 @@ var init_wistia_player = __esm({
|
|
|
14918
15008
|
}, {
|
|
14919
15009
|
key: "showPopover",
|
|
14920
15010
|
value: function() {
|
|
14921
|
-
var _showPopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14922
|
-
var
|
|
14923
|
-
return _regeneratorRuntime().wrap(function
|
|
14924
|
-
while (1) switch (
|
|
15011
|
+
var _showPopover = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20() {
|
|
15012
|
+
var _this9 = this;
|
|
15013
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
15014
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
14925
15015
|
case 0:
|
|
14926
|
-
return
|
|
14927
|
-
var
|
|
14928
|
-
if ((
|
|
14929
|
-
_classPrivateFieldGet(_api,
|
|
15016
|
+
return _context20.abrupt("return", new Promise(function(resolve, reject) {
|
|
15017
|
+
var _classPrivateFieldGet147;
|
|
15018
|
+
if ((_classPrivateFieldGet147 = _classPrivateFieldGet(_api, _this9)) !== null && _classPrivateFieldGet147 !== void 0 && _classPrivateFieldGet147.popover) {
|
|
15019
|
+
_classPrivateFieldGet(_api, _this9).popover.show();
|
|
14930
15020
|
resolve();
|
|
14931
15021
|
}
|
|
14932
15022
|
reject(new Error("Popover cannot be accessed"));
|
|
14933
15023
|
}));
|
|
14934
15024
|
case 1:
|
|
14935
15025
|
case "end":
|
|
14936
|
-
return
|
|
15026
|
+
return _context20.stop();
|
|
14937
15027
|
}
|
|
14938
|
-
},
|
|
15028
|
+
}, _callee20);
|
|
14939
15029
|
}));
|
|
14940
15030
|
function showPopover() {
|
|
14941
15031
|
return _showPopover.apply(this, arguments);
|
|
@@ -14945,34 +15035,68 @@ var init_wistia_player = __esm({
|
|
|
14945
15035
|
}, {
|
|
14946
15036
|
key: "whenApiReady",
|
|
14947
15037
|
value: function() {
|
|
14948
|
-
var _whenApiReady = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
14949
|
-
var
|
|
14950
|
-
return _regeneratorRuntime().wrap(function
|
|
14951
|
-
while (1) switch (
|
|
15038
|
+
var _whenApiReady = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee21() {
|
|
15039
|
+
var _this10 = this;
|
|
15040
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
15041
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
14952
15042
|
case 0:
|
|
14953
|
-
return
|
|
14954
|
-
if (_classPrivateFieldGet(_api,
|
|
14955
|
-
_classPrivateFieldGet(_api,
|
|
15043
|
+
return _context21.abrupt("return", new Promise(function(resolve) {
|
|
15044
|
+
if (_classPrivateFieldGet(_api, _this10)) {
|
|
15045
|
+
_classPrivateFieldGet(_api, _this10).ready(function() {
|
|
14956
15046
|
resolve();
|
|
14957
15047
|
});
|
|
14958
15048
|
}
|
|
14959
|
-
var
|
|
14960
|
-
|
|
15049
|
+
var _handler3 = function handler() {
|
|
15050
|
+
_this10.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, _handler3);
|
|
14961
15051
|
resolve();
|
|
14962
15052
|
};
|
|
14963
|
-
|
|
15053
|
+
_this10.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_26__.c5, _handler3);
|
|
14964
15054
|
}));
|
|
14965
15055
|
case 1:
|
|
14966
15056
|
case "end":
|
|
14967
|
-
return
|
|
15057
|
+
return _context21.stop();
|
|
14968
15058
|
}
|
|
14969
|
-
},
|
|
15059
|
+
}, _callee21);
|
|
14970
15060
|
}));
|
|
14971
15061
|
function whenApiReady() {
|
|
14972
15062
|
return _whenApiReady.apply(this, arguments);
|
|
14973
15063
|
}
|
|
14974
15064
|
return whenApiReady;
|
|
14975
15065
|
}()
|
|
15066
|
+
}, {
|
|
15067
|
+
key: "whenControlMounted",
|
|
15068
|
+
value: function() {
|
|
15069
|
+
var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee22(handle) {
|
|
15070
|
+
var _classPrivateFieldGet148;
|
|
15071
|
+
var control;
|
|
15072
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
15073
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
15074
|
+
case 0:
|
|
15075
|
+
_context22.next = 2;
|
|
15076
|
+
return this.whenApiReady();
|
|
15077
|
+
case 2:
|
|
15078
|
+
_context22.next = 4;
|
|
15079
|
+
return (_classPrivateFieldGet148 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet148 === void 0 ? void 0 : _classPrivateFieldGet148.whenControlMounted(handle);
|
|
15080
|
+
case 4:
|
|
15081
|
+
control = _context22.sent;
|
|
15082
|
+
if (control) {
|
|
15083
|
+
_context22.next = 7;
|
|
15084
|
+
break;
|
|
15085
|
+
}
|
|
15086
|
+
throw new Error("Control not found");
|
|
15087
|
+
case 7:
|
|
15088
|
+
return _context22.abrupt("return", control);
|
|
15089
|
+
case 8:
|
|
15090
|
+
case "end":
|
|
15091
|
+
return _context22.stop();
|
|
15092
|
+
}
|
|
15093
|
+
}, _callee22, this);
|
|
15094
|
+
}));
|
|
15095
|
+
function whenControlMounted(_x16) {
|
|
15096
|
+
return _whenControlMounted.apply(this, arguments);
|
|
15097
|
+
}
|
|
15098
|
+
return whenControlMounted;
|
|
15099
|
+
}()
|
|
14976
15100
|
// --------------------------------------------------
|
|
14977
15101
|
// Custom element lifecycle methods
|
|
14978
15102
|
// --------------------------------------------------
|
|
@@ -15013,7 +15137,7 @@ var init_wistia_player = __esm({
|
|
|
15013
15137
|
}, {
|
|
15014
15138
|
key: "connectedCallback",
|
|
15015
15139
|
value: function connectedCallback() {
|
|
15016
|
-
var _window$wistiaOptions,
|
|
15140
|
+
var _window$wistiaOptions, _this11 = this, _this$embedHost;
|
|
15017
15141
|
if (_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
|
|
15018
15142
|
return;
|
|
15019
15143
|
}
|
|
@@ -15038,17 +15162,17 @@ var init_wistia_player = __esm({
|
|
|
15038
15162
|
_assertClassBrand(_WistiaPlayer_brand, this, _runMethodsFromAttributes).call(this);
|
|
15039
15163
|
_assertClassBrand(_WistiaPlayer_brand, this, _saveInitialAttributesFromDomOptions).call(this);
|
|
15040
15164
|
var resizeCallback = function resizeCallback2() {
|
|
15041
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
15165
|
+
_assertClassBrand(_WistiaPlayer_brand, _this11, _renderPreloadThumbnail).call(_this11);
|
|
15042
15166
|
};
|
|
15043
15167
|
_classPrivateFieldSet(_resizeObserver, this, new ResizeObserver(resizeCallback));
|
|
15044
15168
|
_classPrivateFieldGet(_resizeObserver, this).observe(this);
|
|
15045
15169
|
(0, _utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_22__.n)(mediaId, {
|
|
15046
15170
|
embedHost: (_this$embedHost = this.embedHost) !== null && _this$embedHost !== void 0 ? _this$embedHost : ""
|
|
15047
15171
|
}).then(function(mediaData) {
|
|
15048
|
-
_classPrivateFieldGet(_playerData,
|
|
15049
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
15050
|
-
container:
|
|
15051
|
-
mediaData: _classPrivateFieldGet(_playerData,
|
|
15172
|
+
_classPrivateFieldGet(_playerData, _this11).setMediaDataSource(mediaData);
|
|
15173
|
+
_assertClassBrand(_WistiaPlayer_brand, _this11, _initPlayerEmbed).call(_this11, {
|
|
15174
|
+
container: _this11.uniqueId,
|
|
15175
|
+
mediaData: _classPrivateFieldGet(_playerData, _this11).mediaData
|
|
15052
15176
|
});
|
|
15053
15177
|
}).catch(function(error) {
|
|
15054
15178
|
(0, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_14__.WO)("player/failure/init-failed");
|
|
@@ -15066,14 +15190,14 @@ var init_wistia_player = __esm({
|
|
|
15066
15190
|
}, {
|
|
15067
15191
|
key: "disconnectedCallback",
|
|
15068
15192
|
value: function disconnectedCallback() {
|
|
15069
|
-
var
|
|
15193
|
+
var _classPrivateFieldGet149;
|
|
15070
15194
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
|
|
15071
15195
|
return removeListener();
|
|
15072
15196
|
});
|
|
15073
15197
|
_classPrivateFieldSet(_hasElementConnectedToDOM, this, false);
|
|
15074
15198
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_21__.Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
15075
15199
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_23__.s3)(this.mediaId);
|
|
15076
|
-
(
|
|
15200
|
+
(_classPrivateFieldGet149 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet149 === void 0 ? void 0 : _classPrivateFieldGet149.disconnect();
|
|
15077
15201
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
15078
15202
|
}
|
|
15079
15203
|
// --------------------------------------------------
|
|
@@ -15093,50 +15217,50 @@ var init_wistia_player = __esm({
|
|
|
15093
15217
|
}(/* @__PURE__ */ _wrapNativeSuper(HTMLElement));
|
|
15094
15218
|
_WistiaPlayer = WistiaPlayer;
|
|
15095
15219
|
getSwatchMetaData2 = /* @__PURE__ */ function() {
|
|
15096
|
-
var _ref15 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
15220
|
+
var _ref15 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee23(url) {
|
|
15097
15221
|
var swatch;
|
|
15098
|
-
return _regeneratorRuntime().wrap(function
|
|
15099
|
-
while (1) switch (
|
|
15222
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
15223
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
15100
15224
|
case 0:
|
|
15101
15225
|
swatch = new Image();
|
|
15102
15226
|
swatch.src = url;
|
|
15103
|
-
|
|
15227
|
+
_context23.next = 4;
|
|
15104
15228
|
return swatch.decode();
|
|
15105
15229
|
case 4:
|
|
15106
|
-
return
|
|
15230
|
+
return _context23.abrupt("return", swatch);
|
|
15107
15231
|
case 5:
|
|
15108
15232
|
case "end":
|
|
15109
|
-
return
|
|
15233
|
+
return _context23.stop();
|
|
15110
15234
|
}
|
|
15111
|
-
},
|
|
15235
|
+
}, _callee23);
|
|
15112
15236
|
}));
|
|
15113
|
-
return function getSwatchMetaData3(
|
|
15237
|
+
return function getSwatchMetaData3(_x17) {
|
|
15114
15238
|
return _ref15.apply(this, arguments);
|
|
15115
15239
|
};
|
|
15116
15240
|
}();
|
|
15117
15241
|
wistiaSwatchElement = /* @__PURE__ */ function() {
|
|
15118
|
-
var _ref16 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function
|
|
15242
|
+
var _ref16 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee24(mediaId, embedHost) {
|
|
15119
15243
|
var swatchUrl2, swatchImg, naturalHeight, naturalWidth, ratio, style;
|
|
15120
|
-
return _regeneratorRuntime().wrap(function
|
|
15121
|
-
while (1) switch (
|
|
15244
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
15245
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
15122
15246
|
case 0:
|
|
15123
15247
|
swatchUrl2 = getSwatchUrl(mediaId, embedHost);
|
|
15124
|
-
|
|
15248
|
+
_context24.next = 3;
|
|
15125
15249
|
return getSwatchMetaData2(swatchUrl2);
|
|
15126
15250
|
case 3:
|
|
15127
|
-
swatchImg =
|
|
15251
|
+
swatchImg = _context24.sent;
|
|
15128
15252
|
naturalHeight = swatchImg.naturalHeight, naturalWidth = swatchImg.naturalWidth;
|
|
15129
15253
|
ratio = naturalHeight / naturalWidth * 100;
|
|
15130
15254
|
style = document.createElement("style");
|
|
15131
15255
|
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 ");
|
|
15132
|
-
return
|
|
15256
|
+
return _context24.abrupt("return", style);
|
|
15133
15257
|
case 9:
|
|
15134
15258
|
case "end":
|
|
15135
|
-
return
|
|
15259
|
+
return _context24.stop();
|
|
15136
15260
|
}
|
|
15137
|
-
},
|
|
15261
|
+
}, _callee24);
|
|
15138
15262
|
}));
|
|
15139
|
-
return function wistiaSwatchElement2(
|
|
15263
|
+
return function wistiaSwatchElement2(_x18, _x19) {
|
|
15140
15264
|
return _ref16.apply(this, arguments);
|
|
15141
15265
|
};
|
|
15142
15266
|
}();
|