@wistia/wistia-player-react 0.0.102 → 0.0.104
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.
|
@@ -566,7 +566,19 @@ function _assertClassBrand(e, t, n) {
|
|
|
566
566
|
}
|
|
567
567
|
function _get_pageUrl(_this) {
|
|
568
568
|
var _this$getAttribute3;
|
|
569
|
-
return (_this$getAttribute3 = _this.getAttribute("page-url")) !== null && _this$getAttribute3 !== void 0 ? _this$getAttribute3 : (0,
|
|
569
|
+
return (_this$getAttribute3 = _this.getAttribute("page-url")) !== null && _this$getAttribute3 !== void 0 ? _this$getAttribute3 : (0, _utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_32__.H)();
|
|
570
|
+
}
|
|
571
|
+
function _deferMediaDataFetchingToCarouselEmbed() {
|
|
572
|
+
return !!document.querySelector('wistia-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
573
|
+
}
|
|
574
|
+
function _findLocalizationByLanguage(language) {
|
|
575
|
+
var _classPrivateFieldGet91;
|
|
576
|
+
if (language == null) {
|
|
577
|
+
return void 0;
|
|
578
|
+
}
|
|
579
|
+
return (_classPrivateFieldGet91 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.find(function(localization) {
|
|
580
|
+
return localization.ietfLanguageTag === language || localization.iso6392LanguageCode === language;
|
|
581
|
+
});
|
|
570
582
|
}
|
|
571
583
|
function _generateUniqueId(mediaId) {
|
|
572
584
|
var prefix = "wistia-".concat(mediaId, "-");
|
|
@@ -590,6 +602,7 @@ function _getValueFromAttribute(name) {
|
|
|
590
602
|
return false;
|
|
591
603
|
case "":
|
|
592
604
|
return true;
|
|
605
|
+
case null:
|
|
593
606
|
default:
|
|
594
607
|
return this.getAttribute(name);
|
|
595
608
|
}
|
|
@@ -602,14 +615,14 @@ function _initPlayerEmbed(_ref18) {
|
|
|
602
615
|
_classPrivateFieldGet(_playerData, this).updateEmbedOptionOverrides({
|
|
603
616
|
videoFoam: true
|
|
604
617
|
});
|
|
605
|
-
if (mediaData && !(0,
|
|
618
|
+
if (mediaData && !(0, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_31__.V)(mediaData)) {
|
|
606
619
|
_classPrivateFieldSet(_playerType, this, (0, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__.$F)(_classPrivateFieldGet(_judyContext, this), _classPrivateFieldGet(_playerData, this).mediaData, _classPrivateFieldGet(_playerData, this).embedOptions));
|
|
607
620
|
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
608
621
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
609
622
|
}
|
|
610
623
|
if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
|
|
611
|
-
var
|
|
612
|
-
(
|
|
624
|
+
var _classPrivateFieldGet92;
|
|
625
|
+
(_classPrivateFieldGet92 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.states.delete("--initializing");
|
|
613
626
|
}
|
|
614
627
|
void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
|
|
615
628
|
container,
|
|
@@ -637,10 +650,10 @@ function _initPublicApi2() {
|
|
|
637
650
|
throw new Error("Wistia.PublicApi is not defined");
|
|
638
651
|
case 5:
|
|
639
652
|
embeddedCallback = function embeddedCallback2() {
|
|
640
|
-
var
|
|
653
|
+
var _classPrivateFieldGet99;
|
|
641
654
|
void _assertClassBrand(_WistiaPlayer_brand, _this17, _maybeInitializeMux).call(_this17);
|
|
642
655
|
_assertClassBrand(_WistiaPlayer_brand, _this17, _renderEmbedTemplate).call(_this17);
|
|
643
|
-
(
|
|
656
|
+
(_classPrivateFieldGet99 = _classPrivateFieldGet(_resizeObserver, _this17)) === null || _classPrivateFieldGet99 === void 0 ? void 0 : _classPrivateFieldGet99.disconnect();
|
|
644
657
|
_classPrivateFieldSet(_resizeObserver, _this17, null);
|
|
645
658
|
if (_classPrivateFieldGet(_playPending, _this17)) {
|
|
646
659
|
void _this17.play();
|
|
@@ -651,9 +664,15 @@ function _initPublicApi2() {
|
|
|
651
664
|
_this17.removeEventListener("embedded", embeddedCallback);
|
|
652
665
|
});
|
|
653
666
|
_classPrivateFieldSet(_api, this, new _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s.PublicApi(mediaId, options));
|
|
667
|
+
this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.kY, _classPrivateFieldGet(_handleBeforeReplace, this));
|
|
668
|
+
this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _classPrivateFieldGet(_handleAfterReplace, this));
|
|
669
|
+
_classPrivateFieldGet(_removeEventListeners, this).push(function() {
|
|
670
|
+
_this17.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.kY, _classPrivateFieldGet(_handleBeforeReplace, _this17));
|
|
671
|
+
_this17.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _classPrivateFieldGet(_handleAfterReplace, _this17));
|
|
672
|
+
});
|
|
654
673
|
_classPrivateFieldGet(_api, this).ready(function() {
|
|
655
|
-
var
|
|
656
|
-
(
|
|
674
|
+
var _classPrivateFieldGet100;
|
|
675
|
+
(_classPrivateFieldGet100 = _classPrivateFieldGet(_preloadThumbnailRoot, _this17)) === null || _classPrivateFieldGet100 === void 0 ? void 0 : _classPrivateFieldGet100.remove();
|
|
657
676
|
_this17.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this17));
|
|
658
677
|
_this17.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.c5, {
|
|
659
678
|
detail: {
|
|
@@ -674,7 +693,7 @@ function _initPublicApi2() {
|
|
|
674
693
|
}
|
|
675
694
|
_assertClassBrand(_WistiaPlayer_brand, _this17, _renderPreloadThumbnail).call(_this17);
|
|
676
695
|
});
|
|
677
|
-
case
|
|
696
|
+
case 13:
|
|
678
697
|
case "end":
|
|
679
698
|
return _context26.stop();
|
|
680
699
|
}
|
|
@@ -718,8 +737,8 @@ function _maybeInitializeMux2() {
|
|
|
718
737
|
this.addEventListener("visitor-tracking-change", function(event) {
|
|
719
738
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
720
739
|
if (!isTrackingEnabled) {
|
|
721
|
-
var
|
|
722
|
-
(
|
|
740
|
+
var _classPrivateFieldGet102, _classPrivateFieldGet103;
|
|
741
|
+
(_classPrivateFieldGet102 = _classPrivateFieldGet(_api, _this18)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : (_classPrivateFieldGet103 = _classPrivateFieldGet102.mux) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.destroy();
|
|
723
742
|
}
|
|
724
743
|
});
|
|
725
744
|
case 11:
|
|
@@ -731,7 +750,7 @@ function _maybeInitializeMux2() {
|
|
|
731
750
|
return _maybeInitializeMux2.apply(this, arguments);
|
|
732
751
|
}
|
|
733
752
|
function _maybeInjectJsonLd() {
|
|
734
|
-
if (this.seo && _classPrivateFieldGet(_playerType, this) !== "notplayable" && _classPrivateFieldGet(_playerType, this) !== "passwordprotected") {
|
|
753
|
+
if (this.seo && _classPrivateFieldGet(_playerType, this) !== "notplayable" && _classPrivateFieldGet(_playerType, this) !== "passwordprotected" && _classPrivateFieldGet(_playerType, this) !== "carouselHardWall") {
|
|
735
754
|
_classPrivateFieldSet(_jsonLdId, this, "w-json-ld-".concat(this.uniqueId));
|
|
736
755
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
737
756
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.g)(_classPrivateFieldGet(_jsonLdId, this), _classPrivateFieldGet(_playerData, this).mediaData, {
|
|
@@ -812,8 +831,11 @@ function _renderPreloadThumbnail() {
|
|
|
812
831
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
813
832
|
return;
|
|
814
833
|
}
|
|
815
|
-
var
|
|
816
|
-
var
|
|
834
|
+
var _classPrivateFieldGet93 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet93.assets, mediaType = _classPrivateFieldGet93.mediaType, carouselHardWall = _classPrivateFieldGet93.carouselHardWall;
|
|
835
|
+
var _classPrivateFieldGet94 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet94.autoPlay, plugin = _classPrivateFieldGet94.plugin;
|
|
836
|
+
if (carouselHardWall) {
|
|
837
|
+
return;
|
|
838
|
+
}
|
|
817
839
|
var thumbnailAssets = (0, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_6__.Q0)(assets, {});
|
|
818
840
|
var willAutoplay = this.autoplay || autoPlay;
|
|
819
841
|
var hasVideoThumbnail = (plugin === null || plugin === void 0 ? void 0 : plugin.videoThumbnail) !== void 0;
|
|
@@ -835,12 +857,12 @@ function _runMethodsFromAttributes() {
|
|
|
835
857
|
var _this13 = this;
|
|
836
858
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
|
|
837
859
|
this.whenApiReady().then(function() {
|
|
838
|
-
var _ref20,
|
|
860
|
+
var _ref20, _classPrivateFieldGet95, _classPrivateFieldGet96;
|
|
839
861
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, "current-time"));
|
|
840
|
-
var isClosedPopover = (_ref20 = ((
|
|
862
|
+
var isClosedPopover = (_ref20 = ((_classPrivateFieldGet95 = _classPrivateFieldGet(_api, _this13)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.popover) && !_classPrivateFieldGet(_api, _this13).popover.isVisible()) !== null && _ref20 !== void 0 ? _ref20 : false;
|
|
841
863
|
var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_7__.GS)();
|
|
842
864
|
var shouldDelayUntilPlay = _this13.state !== "playing" && (isMobile || isClosedPopover);
|
|
843
|
-
void ((
|
|
865
|
+
void ((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, _this13)) === null || _classPrivateFieldGet96 === void 0 ? void 0 : _classPrivateFieldGet96.time(newTime, {
|
|
844
866
|
lazy: shouldDelayUntilPlay
|
|
845
867
|
}));
|
|
846
868
|
_assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, "currentTime", newTime);
|
|
@@ -852,9 +874,9 @@ function _runMethodsFromAttributes() {
|
|
|
852
874
|
}
|
|
853
875
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
|
|
854
876
|
this.whenApiReady().then(function() {
|
|
855
|
-
var
|
|
877
|
+
var _classPrivateFieldGet97;
|
|
856
878
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, "video-quality");
|
|
857
|
-
(
|
|
879
|
+
(_classPrivateFieldGet97 = _classPrivateFieldGet(_impl, _this13)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.setVideoQuality(newQuality);
|
|
858
880
|
_assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, "videoQuality", newQuality);
|
|
859
881
|
}).catch(function(_error) {
|
|
860
882
|
});
|
|
@@ -918,7 +940,7 @@ function _updateMediaData(mediaData) {
|
|
|
918
940
|
_classPrivateFieldSet(_playerType, this, (0, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__.$F)(_classPrivateFieldGet(_judyContext, this), _classPrivateFieldGet(_playerData, this).mediaData, _classPrivateFieldGet(_playerData, this).embedOptions));
|
|
919
941
|
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
920
942
|
}
|
|
921
|
-
var __webpack_modules__, __webpack_module_cache__, __webpack_exports__2, preact__WEBPACK_IMPORTED_MODULE_0__, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_1__, _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__, _components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_3__, _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_4__, _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_27__, _utilities_PlayerDataHandler_ts__WEBPACK_IMPORTED_MODULE_5__, _appHostname_js__WEBPACK_IMPORTED_MODULE_26__, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_6__, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_33__, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_7__, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_8__, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__, _utilities_elem_js__WEBPACK_IMPORTED_MODULE_10__, _utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_11__, _utilities_hosts_js__WEBPACK_IMPORTED_MODULE_12__,
|
|
943
|
+
var __webpack_modules__, __webpack_module_cache__, __webpack_exports__2, preact__WEBPACK_IMPORTED_MODULE_0__, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_1__, _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__, _components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_3__, _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_4__, _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_27__, _utilities_PlayerDataHandler_ts__WEBPACK_IMPORTED_MODULE_5__, _appHostname_js__WEBPACK_IMPORTED_MODULE_26__, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_6__, _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_33__, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_7__, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_8__, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__, _utilities_elem_js__WEBPACK_IMPORTED_MODULE_10__, _utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_11__, _utilities_hosts_js__WEBPACK_IMPORTED_MODULE_12__, _utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_32__, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__, _utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_35__, _utilities_runScript_js__WEBPACK_IMPORTED_MODULE_14__, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_15__, _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_34__, _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_16__, _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_17__, _utilities_url_js__WEBPACK_IMPORTED_MODULE_18__, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_19__, _utilities_wistiaOptions_ts__WEBPACK_IMPORTED_MODULE_20__, _utilities_wistiaQueue_ts__WEBPACK_IMPORTED_MODULE_21__, _utilities_wlog_js__WEBPACK_IMPORTED_MODULE_22__, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__, _utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_24__, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_31__, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_25__, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_30__, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_28__, _WistiaPlayer, requiredAttributes, optionalPublicAttributes, optionalPrivateAttributes, defaultEmbedOptions, getSwatchUrl, _api, _fullscreenState, _impl, _internals, _jsonLdId, _judyContext, _logger, _oldEngine, _playerData, _playerType, _removeEventListeners, _hasElementConnectedToDOM, _paddingTop, _playPending, _preactRoot, _preloadThumbnailRoot, _publicApiScript, _resizeObserver, _WistiaPlayer_brand, _handleAfterReplace, _handleBeforeReplace, _handlePreloadThumbnailClick, WistiaPlayer, getSwatchMetaData2, wistiaSwatchElement, __webpack_exports__WistiaPlayer, __webpack_exports__wistiaSwatchElement;
|
|
922
944
|
var init_wistia_player = __esm({
|
|
923
945
|
"../wistia-player/dist/wistia-player.js"() {
|
|
924
946
|
__webpack_modules__ = {
|
|
@@ -1217,6 +1239,7 @@ var init_wistia_player = __esm({
|
|
|
1217
1239
|
}
|
|
1218
1240
|
var wlog2 = utilities_wlog_js__WEBPACK_IMPORTED_MODULE_5__.ct.getPrefixedFunctions("judy");
|
|
1219
1241
|
var AUTO = "auto";
|
|
1242
|
+
var CAROUSEL_HARD_WALL = "carouselHardWall";
|
|
1220
1243
|
var EXTERNAL = "external";
|
|
1221
1244
|
var HLS_VIDEO = "hlsVideo";
|
|
1222
1245
|
var HTML5 = "html5";
|
|
@@ -1391,6 +1414,10 @@ var init_wistia_player = __esm({
|
|
|
1391
1414
|
logger.info('"playerForce" used, return', playerForce);
|
|
1392
1415
|
return playerForce;
|
|
1393
1416
|
}
|
|
1417
|
+
if (mediaData.carouselHardWall) {
|
|
1418
|
+
logger.info("return", CAROUSEL_HARD_WALL);
|
|
1419
|
+
return CAROUSEL_HARD_WALL;
|
|
1420
|
+
}
|
|
1394
1421
|
if (isPasswordProtected(context, embedOptions)) {
|
|
1395
1422
|
logger.info("return", PASSWORD_PROTECTED);
|
|
1396
1423
|
return PASSWORD_PROTECTED;
|
|
@@ -1517,7 +1544,7 @@ var init_wistia_player = __esm({
|
|
|
1517
1544
|
if (!isValidPlayer(context, player)) {
|
|
1518
1545
|
return false;
|
|
1519
1546
|
}
|
|
1520
|
-
if (player === NOT_PLAYABLE || player === PASSWORD_PROTECTED) {
|
|
1547
|
+
if (player === NOT_PLAYABLE || player === PASSWORD_PROTECTED || player === CAROUSEL_HARD_WALL) {
|
|
1521
1548
|
return true;
|
|
1522
1549
|
}
|
|
1523
1550
|
var assets = mediaData.assets;
|
|
@@ -1723,7 +1750,7 @@ var init_wistia_player = __esm({
|
|
|
1723
1750
|
};
|
|
1724
1751
|
var supportedPlayers = function supportedPlayers2(context) {
|
|
1725
1752
|
var detect = context.detect;
|
|
1726
|
-
var result = [NOT_PLAYABLE, PASSWORD_PROTECTED, EXTERNAL];
|
|
1753
|
+
var result = [NOT_PLAYABLE, PASSWORD_PROTECTED, EXTERNAL, CAROUSEL_HARD_WALL];
|
|
1727
1754
|
if (detect.vulcanV2Support) {
|
|
1728
1755
|
result.push(VULCAN_V2);
|
|
1729
1756
|
}
|
|
@@ -2425,11 +2452,11 @@ var init_wistia_player = __esm({
|
|
|
2425
2452
|
/* harmony export */
|
|
2426
2453
|
N: () => (
|
|
2427
2454
|
/* binding */
|
|
2428
|
-
|
|
2455
|
+
appHostname2
|
|
2429
2456
|
)
|
|
2430
2457
|
/* harmony export */
|
|
2431
2458
|
});
|
|
2432
|
-
var
|
|
2459
|
+
var appHostname2 = function appHostname3() {
|
|
2433
2460
|
var subdomain = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "app";
|
|
2434
2461
|
var hostname = "wistia.com";
|
|
2435
2462
|
return "".concat(subdomain, ".").concat(hostname);
|
|
@@ -3483,6 +3510,7 @@ var init_wistia_player = __esm({
|
|
|
3483
3510
|
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
3484
3511
|
var _trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(4755);
|
|
3485
3512
|
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5509);
|
|
3513
|
+
var _hosts_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5857);
|
|
3486
3514
|
var getSampleRatesByProductType = function getSampleRatesByProductType2(productType) {
|
|
3487
3515
|
switch (productType) {
|
|
3488
3516
|
case "carousel":
|
|
@@ -3492,8 +3520,11 @@ var init_wistia_player = __esm({
|
|
|
3492
3520
|
case "form":
|
|
3493
3521
|
case "transcript":
|
|
3494
3522
|
return 0.25;
|
|
3523
|
+
case "globalListener":
|
|
3524
|
+
case "other":
|
|
3525
|
+
case "player":
|
|
3495
3526
|
default:
|
|
3496
|
-
return
|
|
3527
|
+
return 0.01;
|
|
3497
3528
|
}
|
|
3498
3529
|
};
|
|
3499
3530
|
var IS_DEV_ENV = (
|
|
@@ -3505,36 +3536,39 @@ var init_wistia_player = __esm({
|
|
|
3505
3536
|
null
|
|
3506
3537
|
);
|
|
3507
3538
|
var configureSentry = function configureSentry2() {
|
|
3508
|
-
if (isNil(window.Sentry)) {
|
|
3539
|
+
if (isNil(window.Sentry) || isNil(window.Sentry.BrowserClient) || isNil(window.Sentry.makeFetchTransport) || isNil(window.Sentry.defaultStackParser) || isNil(window.Sentry.Scope)) {
|
|
3509
3540
|
return;
|
|
3510
3541
|
}
|
|
3511
|
-
window.Sentry.
|
|
3512
|
-
allowUrls: [/^https:\/\/fast.wistia.(?:com|net|io|st)\/.*$/],
|
|
3513
|
-
// Only allow exceptions that are captured from scripts that are served by Wistia
|
|
3542
|
+
var client = new window.Sentry.BrowserClient({
|
|
3514
3543
|
dsn: "https://a3591ba5e949a37083cc6f5a4191e903@o4505518331658240.ingest.us.sentry.io/4505794284290048",
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3544
|
+
transport: window.Sentry.makeFetchTransport,
|
|
3545
|
+
stackParser: window.Sentry.defaultStackParser,
|
|
3546
|
+
integrations: [],
|
|
3547
|
+
release: isNonEmptyString(TAGGED_VERSION) ? TAGGED_VERSION : CURRENT_SHA
|
|
3548
|
+
});
|
|
3549
|
+
var scope = new window.Sentry.Scope();
|
|
3550
|
+
scope.setClient(client);
|
|
3551
|
+
scope.setTags({
|
|
3552
|
+
pillar: "publish"
|
|
3523
3553
|
});
|
|
3554
|
+
Wistia._sentryScope = scope;
|
|
3555
|
+
client.init();
|
|
3524
3556
|
Wistia.isSentryInitialized = true;
|
|
3557
|
+
listenForGlobalErrors();
|
|
3558
|
+
listenForGlobalUnhandledRejections();
|
|
3525
3559
|
};
|
|
3526
3560
|
var initializeSentry = function initializeSentry2() {
|
|
3527
|
-
window.sentryOnLoad = function() {
|
|
3528
|
-
return configureSentry();
|
|
3529
|
-
};
|
|
3530
3561
|
if (isVisitorTrackingEnabled() !== true) {
|
|
3531
3562
|
return;
|
|
3532
3563
|
}
|
|
3533
|
-
if (!window.Sentry) {
|
|
3564
|
+
if (!window.Sentry || !Wistia.isSentryInitialized) {
|
|
3534
3565
|
var sentryLoader = document.createElement("script");
|
|
3535
|
-
sentryLoader.src = "https://
|
|
3566
|
+
sentryLoader.src = "https://browser.sentry-cdn.com/9.6.1/bundle.min.js";
|
|
3536
3567
|
sentryLoader.crossOrigin = "anonymous";
|
|
3537
|
-
sentryLoader.
|
|
3568
|
+
sentryLoader.integrity = "sha384-kbRmCeIl7Uxr+vT9YhSAdguCdd4L5QPRj7jzQTanorUVVlw/Y5X9vtzVyOEHLfpH";
|
|
3569
|
+
sentryLoader.onload = function() {
|
|
3570
|
+
return configureSentry();
|
|
3571
|
+
};
|
|
3538
3572
|
document.head.appendChild(sentryLoader);
|
|
3539
3573
|
}
|
|
3540
3574
|
};
|
|
@@ -3563,20 +3597,53 @@ var init_wistia_player = __esm({
|
|
|
3563
3597
|
if (!shouldSendToSentry) {
|
|
3564
3598
|
console.error(error);
|
|
3565
3599
|
} else if (isVisitorTrackingEnabled()) {
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
(_window$Sentry2 = window.Sentry) === null || _window$Sentry2 === void 0 ? void 0 : _window$Sentry2.captureException(error);
|
|
3574
|
-
});
|
|
3600
|
+
Wistia._sentryScope.clear();
|
|
3601
|
+
Wistia._sentryScope.setTag("pillar", "publish");
|
|
3602
|
+
Wistia._sentryScope.setTag("product", product);
|
|
3603
|
+
if (isNonEmptyRecord(details)) {
|
|
3604
|
+
Wistia._sentryScope.setTags(details);
|
|
3605
|
+
}
|
|
3606
|
+
Wistia._sentryScope.captureException(error);
|
|
3575
3607
|
}
|
|
3576
3608
|
} catch (err) {
|
|
3577
3609
|
console.error(err);
|
|
3578
3610
|
}
|
|
3579
3611
|
};
|
|
3612
|
+
var globalErrorHandler = function globalErrorHandler2(event) {
|
|
3613
|
+
var _event$error$source, _event$error;
|
|
3614
|
+
var eventError = event.error;
|
|
3615
|
+
if (!(eventError instanceof Error)) {
|
|
3616
|
+
return;
|
|
3617
|
+
}
|
|
3618
|
+
var eventErrorSource = (_event$error$source = (_event$error = event.error) === null || _event$error === void 0 ? void 0 : _event$error.source) !== null && _event$error$source !== void 0 ? _event$error$source : "";
|
|
3619
|
+
var fastHostName = appHostname("fast");
|
|
3620
|
+
if (eventErrorSource.includes(fastHostName)) {
|
|
3621
|
+
reportError2("globalListener", eventError);
|
|
3622
|
+
}
|
|
3623
|
+
};
|
|
3624
|
+
var globalUnhandledRejectionHandler = function globalUnhandledRejectionHandler2(event) {
|
|
3625
|
+
var _event$reason$stack, _event$reason;
|
|
3626
|
+
var eventReason = event.reason;
|
|
3627
|
+
if (!(eventReason instanceof Error)) {
|
|
3628
|
+
return;
|
|
3629
|
+
}
|
|
3630
|
+
var eventReasonStack = (_event$reason$stack = (_event$reason = event.reason) === null || _event$reason === void 0 ? void 0 : _event$reason.stack) !== null && _event$reason$stack !== void 0 ? _event$reason$stack : "";
|
|
3631
|
+
if (eventReasonStack.includes(appHostname("fast"))) {
|
|
3632
|
+
reportError2("globalListener", eventReason);
|
|
3633
|
+
}
|
|
3634
|
+
};
|
|
3635
|
+
var listenForGlobalErrors = function listenForGlobalErrors2() {
|
|
3636
|
+
if (!Wistia._isListeningForGlobalErrors) {
|
|
3637
|
+
window.addEventListener("error", globalErrorHandler);
|
|
3638
|
+
Wistia._isListeningForGlobalErrors = true;
|
|
3639
|
+
}
|
|
3640
|
+
};
|
|
3641
|
+
var listenForGlobalUnhandledRejections = function listenForGlobalUnhandledRejections2() {
|
|
3642
|
+
if (!Wistia._isListeningForGlobalUnhandledRejections) {
|
|
3643
|
+
window.addEventListener("unhandledrejection", globalUnhandledRejectionHandler);
|
|
3644
|
+
Wistia._isListeningForGlobalUnhandledRejections = true;
|
|
3645
|
+
}
|
|
3646
|
+
};
|
|
3580
3647
|
}
|
|
3581
3648
|
),
|
|
3582
3649
|
/***/
|
|
@@ -3852,6 +3919,129 @@ var init_wistia_player = __esm({
|
|
|
3852
3919
|
}
|
|
3853
3920
|
),
|
|
3854
3921
|
/***/
|
|
3922
|
+
2694: (
|
|
3923
|
+
/***/
|
|
3924
|
+
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
3925
|
+
__webpack_require__3.d(__webpack_exports__3, {
|
|
3926
|
+
/* harmony export */
|
|
3927
|
+
S: () => (
|
|
3928
|
+
/* binding */
|
|
3929
|
+
EventShepherd
|
|
3930
|
+
),
|
|
3931
|
+
/* harmony export */
|
|
3932
|
+
h: () => (
|
|
3933
|
+
/* binding */
|
|
3934
|
+
convertedEventNames
|
|
3935
|
+
)
|
|
3936
|
+
/* harmony export */
|
|
3937
|
+
});
|
|
3938
|
+
var _eventConstants_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2760);
|
|
3939
|
+
function _classCallCheck2(a, n) {
|
|
3940
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3941
|
+
}
|
|
3942
|
+
function _defineProperties2(e, r) {
|
|
3943
|
+
for (var t = 0; t < r.length; t++) {
|
|
3944
|
+
var o = r[t];
|
|
3945
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey2(o.key), o);
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
function _createClass2(e, r, t) {
|
|
3949
|
+
return r && _defineProperties2(e.prototype, r), t && _defineProperties2(e, t), Object.defineProperty(e, "prototype", { writable: false }), e;
|
|
3950
|
+
}
|
|
3951
|
+
function _defineProperty2(e, r, t) {
|
|
3952
|
+
return (r = _toPropertyKey2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
|
|
3953
|
+
}
|
|
3954
|
+
function _toPropertyKey2(t) {
|
|
3955
|
+
var i2 = _toPrimitive2(t, "string");
|
|
3956
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
3957
|
+
}
|
|
3958
|
+
function _toPrimitive2(t, r) {
|
|
3959
|
+
if ("object" != typeof t || !t) return t;
|
|
3960
|
+
var e = t[Symbol.toPrimitive];
|
|
3961
|
+
if (void 0 !== e) {
|
|
3962
|
+
var i2 = e.call(t, r || "default");
|
|
3963
|
+
if ("object" != typeof i2) return i2;
|
|
3964
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3965
|
+
}
|
|
3966
|
+
return ("string" === r ? String : Number)(t);
|
|
3967
|
+
}
|
|
3968
|
+
var convertedEventNames = {
|
|
3969
|
+
mutechange: _eventConstants_ts__WEBPACK_IMPORTED_MODULE_0__.Gd
|
|
3970
|
+
};
|
|
3971
|
+
var callbackDetailsConversions = {
|
|
3972
|
+
mutechange: function mutechange(detail) {
|
|
3973
|
+
return detail.isMuted;
|
|
3974
|
+
}
|
|
3975
|
+
};
|
|
3976
|
+
var EventShepherd = /* @__PURE__ */ function() {
|
|
3977
|
+
function EventShepherd2() {
|
|
3978
|
+
_classCallCheck2(this, EventShepherd2);
|
|
3979
|
+
_defineProperty2(this, "convertedEventsMap", {});
|
|
3980
|
+
}
|
|
3981
|
+
return _createClass2(EventShepherd2, [{
|
|
3982
|
+
key: "addListener",
|
|
3983
|
+
value: function addListener(eventName, element, callback) {
|
|
3984
|
+
var _convertedEventNames$;
|
|
3985
|
+
var normalizedEventName = (_convertedEventNames$ = convertedEventNames[eventName]) !== null && _convertedEventNames$ !== void 0 ? _convertedEventNames$ : eventName;
|
|
3986
|
+
if (!this.convertedEventsMap[normalizedEventName]) {
|
|
3987
|
+
this.convertedEventsMap[normalizedEventName] = [];
|
|
3988
|
+
}
|
|
3989
|
+
var eventListenerCallback = function eventListenerCallback2(customEvent) {
|
|
3990
|
+
if (callbackDetailsConversions[eventName]) {
|
|
3991
|
+
var convertedDetail = callbackDetailsConversions[eventName](customEvent.detail);
|
|
3992
|
+
callback(convertedDetail);
|
|
3993
|
+
} else {
|
|
3994
|
+
callback();
|
|
3995
|
+
}
|
|
3996
|
+
};
|
|
3997
|
+
this.convertedEventsMap[normalizedEventName].push({
|
|
3998
|
+
givenCallback: callback,
|
|
3999
|
+
eventListenerCallback
|
|
4000
|
+
});
|
|
4001
|
+
element.addEventListener(normalizedEventName, eventListenerCallback);
|
|
4002
|
+
}
|
|
4003
|
+
}, {
|
|
4004
|
+
key: "removeAllListeners",
|
|
4005
|
+
value: function removeAllListeners(element) {
|
|
4006
|
+
var _this = this;
|
|
4007
|
+
Object.keys(this.convertedEventsMap).forEach(function(eventName) {
|
|
4008
|
+
var _this$convertedEvents;
|
|
4009
|
+
(_this$convertedEvents = _this.convertedEventsMap[eventName]) === null || _this$convertedEvents === void 0 ? void 0 : _this$convertedEvents.forEach(function(storedCallbacks) {
|
|
4010
|
+
element.removeEventListener(eventName, storedCallbacks.eventListenerCallback);
|
|
4011
|
+
});
|
|
4012
|
+
_this.convertedEventsMap[eventName] = [];
|
|
4013
|
+
});
|
|
4014
|
+
}
|
|
4015
|
+
}, {
|
|
4016
|
+
key: "removeListener",
|
|
4017
|
+
value: function removeListener(eventName, element, callback) {
|
|
4018
|
+
var _convertedEventNames$2, _this2 = this;
|
|
4019
|
+
var normalizedEventName = (_convertedEventNames$2 = convertedEventNames[eventName]) !== null && _convertedEventNames$2 !== void 0 ? _convertedEventNames$2 : eventName;
|
|
4020
|
+
var indexesToRemove = [];
|
|
4021
|
+
if (callback) {
|
|
4022
|
+
element.removeEventListener(normalizedEventName, callback);
|
|
4023
|
+
if (this.convertedEventsMap[normalizedEventName]) {
|
|
4024
|
+
this.convertedEventsMap[normalizedEventName].forEach(function(storedCallbacks, index) {
|
|
4025
|
+
if (storedCallbacks.givenCallback === callback) {
|
|
4026
|
+
indexesToRemove.push(index);
|
|
4027
|
+
element.removeEventListener(normalizedEventName, storedCallbacks.eventListenerCallback);
|
|
4028
|
+
}
|
|
4029
|
+
});
|
|
4030
|
+
indexesToRemove.forEach(function(index) {
|
|
4031
|
+
if (_this2.convertedEventsMap[normalizedEventName]) {
|
|
4032
|
+
_this2.convertedEventsMap[normalizedEventName].splice(index, 1);
|
|
4033
|
+
}
|
|
4034
|
+
});
|
|
4035
|
+
}
|
|
4036
|
+
} else {
|
|
4037
|
+
this.convertedEventsMap[normalizedEventName] = [];
|
|
4038
|
+
}
|
|
4039
|
+
}
|
|
4040
|
+
}]);
|
|
4041
|
+
}();
|
|
4042
|
+
}
|
|
4043
|
+
),
|
|
4044
|
+
/***/
|
|
3855
4045
|
2721: (
|
|
3856
4046
|
/***/
|
|
3857
4047
|
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
@@ -3900,6 +4090,11 @@ var init_wistia_player = __esm({
|
|
|
3900
4090
|
AFTER_REPLACE_EVENT
|
|
3901
4091
|
),
|
|
3902
4092
|
/* harmony export */
|
|
4093
|
+
Gd: () => (
|
|
4094
|
+
/* binding */
|
|
4095
|
+
MUTE_CHANGE_EVENT
|
|
4096
|
+
),
|
|
4097
|
+
/* harmony export */
|
|
3903
4098
|
c5: () => (
|
|
3904
4099
|
/* binding */
|
|
3905
4100
|
API_READY_EVENT
|
|
@@ -3931,14 +4126,17 @@ var init_wistia_player = __esm({
|
|
|
3931
4126
|
)
|
|
3932
4127
|
/* harmony export */
|
|
3933
4128
|
});
|
|
3934
|
-
var IMPL_CREATED_EVENT = "impl-created";
|
|
3935
|
-
var INTERNAL_API_ON_FIND_EVENT = "internal-api-on-find";
|
|
3936
|
-
var INIT_EMBED_EVENT = "initembed";
|
|
3937
|
-
var API_READY_EVENT = "api-ready";
|
|
3938
4129
|
var AFTER_REPLACE_EVENT = "after-replace";
|
|
4130
|
+
var API_READY_EVENT = "api-ready";
|
|
3939
4131
|
var BEFORE_REPLACE_EVENT = "before-replace";
|
|
3940
|
-
var
|
|
4132
|
+
var BETWEENTIMES_EVENT_EV1 = "betweentimes";
|
|
4133
|
+
var CROSSTIME_EVENT_EV1 = "crosstime";
|
|
4134
|
+
var IMPL_CREATED_EVENT = "impl-created";
|
|
4135
|
+
var INIT_EMBED_EVENT = "initembed";
|
|
3941
4136
|
var INPUT_CONTEXT_CHANGE_EVENT = "input-context-change";
|
|
4137
|
+
var INTERNAL_API_ON_FIND_EVENT = "internal-api-on-find";
|
|
4138
|
+
var LOADED_MEDIA_DATA_EVENT = "loaded-media-data";
|
|
4139
|
+
var MUTE_CHANGE_EVENT = "mute-change";
|
|
3942
4140
|
}
|
|
3943
4141
|
),
|
|
3944
4142
|
/***/
|
|
@@ -3954,7 +4152,7 @@ var init_wistia_player = __esm({
|
|
|
3954
4152
|
/* harmony export */
|
|
3955
4153
|
yo: () => (
|
|
3956
4154
|
/* binding */
|
|
3957
|
-
|
|
4155
|
+
updateLocalStorage2
|
|
3958
4156
|
)
|
|
3959
4157
|
/* harmony export */
|
|
3960
4158
|
});
|
|
@@ -4029,7 +4227,7 @@ var init_wistia_player = __esm({
|
|
|
4029
4227
|
}
|
|
4030
4228
|
return obj;
|
|
4031
4229
|
};
|
|
4032
|
-
var
|
|
4230
|
+
var updateLocalStorage2 = function updateLocalStorage3(ns, fn) {
|
|
4033
4231
|
var obj = getLocalStorage(ns);
|
|
4034
4232
|
try {
|
|
4035
4233
|
fn(obj);
|
|
@@ -4052,12 +4250,76 @@ var init_wistia_player = __esm({
|
|
|
4052
4250
|
)
|
|
4053
4251
|
/* harmony export */
|
|
4054
4252
|
});
|
|
4055
|
-
var
|
|
4253
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(4586);
|
|
4056
4254
|
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(5509);
|
|
4057
4255
|
var _hosts_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5857);
|
|
4058
4256
|
var _media_data_transforms_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(3917);
|
|
4059
4257
|
var _remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(3411);
|
|
4060
|
-
var
|
|
4258
|
+
var _mediaDataError_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__3(959);
|
|
4259
|
+
var _embeds_wistiaPlayer_utilities_getPreferredLanguageIndex_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__3(4400);
|
|
4260
|
+
var _viewerPreferences_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(7438);
|
|
4261
|
+
function ownKeys2(e, r) {
|
|
4262
|
+
var t = Object.keys(e);
|
|
4263
|
+
if (Object.getOwnPropertySymbols) {
|
|
4264
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
4265
|
+
r && (o = o.filter(function(r2) {
|
|
4266
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
4267
|
+
})), t.push.apply(t, o);
|
|
4268
|
+
}
|
|
4269
|
+
return t;
|
|
4270
|
+
}
|
|
4271
|
+
function _objectSpread2(e) {
|
|
4272
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
4273
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
4274
|
+
r % 2 ? ownKeys2(Object(t), true).forEach(function(r2) {
|
|
4275
|
+
_defineProperty2(e, r2, t[r2]);
|
|
4276
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r2) {
|
|
4277
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
4278
|
+
});
|
|
4279
|
+
}
|
|
4280
|
+
return e;
|
|
4281
|
+
}
|
|
4282
|
+
function _defineProperty2(e, r, t) {
|
|
4283
|
+
return (r = _toPropertyKey2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
|
|
4284
|
+
}
|
|
4285
|
+
function _toPropertyKey2(t) {
|
|
4286
|
+
var i2 = _toPrimitive2(t, "string");
|
|
4287
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
4288
|
+
}
|
|
4289
|
+
function _toPrimitive2(t, r) {
|
|
4290
|
+
if ("object" != typeof t || !t) return t;
|
|
4291
|
+
var e = t[Symbol.toPrimitive];
|
|
4292
|
+
if (void 0 !== e) {
|
|
4293
|
+
var i2 = e.call(t, r || "default");
|
|
4294
|
+
if ("object" != typeof i2) return i2;
|
|
4295
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4296
|
+
}
|
|
4297
|
+
return ("string" === r ? String : Number)(t);
|
|
4298
|
+
}
|
|
4299
|
+
function _toConsumableArray(r) {
|
|
4300
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray2(r) || _nonIterableSpread();
|
|
4301
|
+
}
|
|
4302
|
+
function _nonIterableSpread() {
|
|
4303
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4304
|
+
}
|
|
4305
|
+
function _unsupportedIterableToArray2(r, a) {
|
|
4306
|
+
if (r) {
|
|
4307
|
+
if ("string" == typeof r) return _arrayLikeToArray2(r, a);
|
|
4308
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
4309
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r, a) : void 0;
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
function _iterableToArray(r) {
|
|
4313
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
4314
|
+
}
|
|
4315
|
+
function _arrayWithoutHoles(r) {
|
|
4316
|
+
if (Array.isArray(r)) return _arrayLikeToArray2(r);
|
|
4317
|
+
}
|
|
4318
|
+
function _arrayLikeToArray2(r, a) {
|
|
4319
|
+
(null == a || a > r.length) && (a = r.length);
|
|
4320
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
4321
|
+
return n;
|
|
4322
|
+
}
|
|
4061
4323
|
function _regeneratorRuntime2() {
|
|
4062
4324
|
"use strict";
|
|
4063
4325
|
_regeneratorRuntime2 = function _regeneratorRuntime3() {
|
|
@@ -4319,7 +4581,7 @@ var init_wistia_player = __esm({
|
|
|
4319
4581
|
});
|
|
4320
4582
|
};
|
|
4321
4583
|
}
|
|
4322
|
-
var
|
|
4584
|
+
var fetchUnlocalizedMediaData = /* @__PURE__ */ function() {
|
|
4323
4585
|
var _ref = _asyncToGenerator2(/* @__PURE__ */ _regeneratorRuntime2().mark(function _callee(hashedId) {
|
|
4324
4586
|
var _options$channelPassw, _options$plugin, _options$plugin$passw;
|
|
4325
4587
|
var options, cacheKey, mediaDataFromCache, host, url, channelPasswordParam, promise, _args = arguments;
|
|
@@ -4335,7 +4597,7 @@ var init_wistia_player = __esm({
|
|
|
4335
4597
|
}
|
|
4336
4598
|
return _context.abrupt("return", Promise.resolve(mediaDataFromCache));
|
|
4337
4599
|
case 5:
|
|
4338
|
-
if (!((0,
|
|
4600
|
+
if (!((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__.n9)(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._mediaDataPromises[cacheKey]) && options.skipCache !== true)) {
|
|
4339
4601
|
_context.next = 7;
|
|
4340
4602
|
break;
|
|
4341
4603
|
}
|
|
@@ -4343,21 +4605,24 @@ var init_wistia_player = __esm({
|
|
|
4343
4605
|
case 7:
|
|
4344
4606
|
host = (0, _hosts_js__WEBPACK_IMPORTED_MODULE_1__.Dd)(options);
|
|
4345
4607
|
url = new window.URL("https://".concat(host, "/embed/medias/").concat(hashedId, ".json"));
|
|
4346
|
-
if ((0,
|
|
4608
|
+
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__.n9)(options.channelId)) {
|
|
4347
4609
|
url.searchParams.set("channelId", options.channelId.toString());
|
|
4348
4610
|
}
|
|
4349
4611
|
channelPasswordParam = (_options$channelPassw = options.channelPassword) !== null && _options$channelPassw !== void 0 ? _options$channelPassw : (_options$plugin = options.plugin) === null || _options$plugin === void 0 ? void 0 : (_options$plugin$passw = _options$plugin.passwordProtectedChannel) === null || _options$plugin$passw === void 0 ? void 0 : _options$plugin$passw.password;
|
|
4350
|
-
if ((0,
|
|
4612
|
+
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__.n9)(channelPasswordParam)) {
|
|
4351
4613
|
url.searchParams.set("channelPassword", channelPasswordParam);
|
|
4352
4614
|
}
|
|
4353
|
-
if ((0,
|
|
4615
|
+
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__.n9)(options.password)) {
|
|
4354
4616
|
url.searchParams.set("password", options.password);
|
|
4355
4617
|
}
|
|
4618
|
+
if (options.deferFetchingToCarousel) {
|
|
4619
|
+
url.searchParams.set("defer_fetching_to_carousel", "true");
|
|
4620
|
+
}
|
|
4356
4621
|
promise = fetch(url.href).then(function(resp) {
|
|
4357
4622
|
return resp.json();
|
|
4358
4623
|
}).then(function(response) {
|
|
4359
4624
|
var _mediaData$hashedId;
|
|
4360
|
-
if ((0,
|
|
4625
|
+
if ((0, _mediaDataError_ts__WEBPACK_IMPORTED_MODULE_6__.V)(response)) {
|
|
4361
4626
|
return response;
|
|
4362
4627
|
}
|
|
4363
4628
|
var _ref2 = response, mediaData = _ref2.media;
|
|
@@ -4369,16 +4634,96 @@ var init_wistia_player = __esm({
|
|
|
4369
4634
|
});
|
|
4370
4635
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._mediaDataPromises[cacheKey] = promise;
|
|
4371
4636
|
return _context.abrupt("return", promise);
|
|
4372
|
-
case
|
|
4637
|
+
case 17:
|
|
4373
4638
|
case "end":
|
|
4374
4639
|
return _context.stop();
|
|
4375
4640
|
}
|
|
4376
4641
|
}, _callee);
|
|
4377
4642
|
}));
|
|
4378
|
-
return function
|
|
4643
|
+
return function fetchUnlocalizedMediaData2(_x) {
|
|
4379
4644
|
return _ref.apply(this, arguments);
|
|
4380
4645
|
};
|
|
4381
4646
|
}();
|
|
4647
|
+
var fetchMediaData = /* @__PURE__ */ function() {
|
|
4648
|
+
var _ref3 = _asyncToGenerator2(/* @__PURE__ */ _regeneratorRuntime2().mark(function _callee2(hashedId) {
|
|
4649
|
+
var options, mediaDataOrError, mediaData, typedViewerPreferences, localizationViewerPreferences, preferredLanguages, uniquePreferredLanguages, preferredLanguageIndex, _navigator$languages, preferredLocalization, _args2 = arguments;
|
|
4650
|
+
return _regeneratorRuntime2().wrap(function _callee2$(_context2) {
|
|
4651
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
4652
|
+
case 0:
|
|
4653
|
+
options = _args2.length > 1 && _args2[1] !== void 0 ? _args2[1] : {};
|
|
4654
|
+
_context2.next = 3;
|
|
4655
|
+
return fetchUnlocalizedMediaData(hashedId, options);
|
|
4656
|
+
case 3:
|
|
4657
|
+
mediaDataOrError = _context2.sent;
|
|
4658
|
+
if (!(0, _mediaDataError_ts__WEBPACK_IMPORTED_MODULE_6__.V)(mediaDataOrError)) {
|
|
4659
|
+
_context2.next = 6;
|
|
4660
|
+
break;
|
|
4661
|
+
}
|
|
4662
|
+
return _context2.abrupt("return", mediaDataOrError);
|
|
4663
|
+
case 6:
|
|
4664
|
+
mediaData = mediaDataOrError;
|
|
4665
|
+
if (!(mediaData.localizations == null || mediaData.localizations.length === 0)) {
|
|
4666
|
+
_context2.next = 9;
|
|
4667
|
+
break;
|
|
4668
|
+
}
|
|
4669
|
+
return _context2.abrupt("return", mediaData);
|
|
4670
|
+
case 9:
|
|
4671
|
+
typedViewerPreferences = (0, _viewerPreferences_js__WEBPACK_IMPORTED_MODULE_4__.hy)();
|
|
4672
|
+
localizationViewerPreferences = typedViewerPreferences.localization;
|
|
4673
|
+
preferredLanguages = [];
|
|
4674
|
+
if (options.overrideMediaLanguage != null) {
|
|
4675
|
+
preferredLanguages.push(options.overrideMediaLanguage);
|
|
4676
|
+
}
|
|
4677
|
+
if ((localizationViewerPreferences === null || localizationViewerPreferences === void 0 ? void 0 : localizationViewerPreferences.iso6392LanguageCode) != null) {
|
|
4678
|
+
preferredLanguages.push(localizationViewerPreferences.iso6392LanguageCode);
|
|
4679
|
+
}
|
|
4680
|
+
if (options.defaultMediaLanguage != null) {
|
|
4681
|
+
preferredLanguages.push(options.defaultMediaLanguage);
|
|
4682
|
+
}
|
|
4683
|
+
uniquePreferredLanguages = preferredLanguages.filter(function(lang, index) {
|
|
4684
|
+
return preferredLanguages.indexOf(lang) === index;
|
|
4685
|
+
});
|
|
4686
|
+
preferredLanguageIndex = (0, _embeds_wistiaPlayer_utilities_getPreferredLanguageIndex_ts__WEBPACK_IMPORTED_MODULE_7__.J)(mediaData.localizations.map(function(loc) {
|
|
4687
|
+
return loc.iso6392LanguageCode;
|
|
4688
|
+
}), uniquePreferredLanguages);
|
|
4689
|
+
if (preferredLanguageIndex === -1) {
|
|
4690
|
+
preferredLanguageIndex = (0, _embeds_wistiaPlayer_utilities_getPreferredLanguageIndex_ts__WEBPACK_IMPORTED_MODULE_7__.J)(mediaData.localizations.map(function(loc) {
|
|
4691
|
+
return loc.ietfLanguageTag;
|
|
4692
|
+
}), uniquePreferredLanguages);
|
|
4693
|
+
}
|
|
4694
|
+
if (preferredLanguageIndex === -1) {
|
|
4695
|
+
preferredLanguageIndex = (0, _embeds_wistiaPlayer_utilities_getPreferredLanguageIndex_ts__WEBPACK_IMPORTED_MODULE_7__.J)(
|
|
4696
|
+
mediaData.localizations.map(function(loc) {
|
|
4697
|
+
return loc.iso6392LanguageCode;
|
|
4698
|
+
}),
|
|
4699
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
4700
|
+
_toConsumableArray((_navigator$languages = navigator.languages) !== null && _navigator$languages !== void 0 ? _navigator$languages : ["en"])
|
|
4701
|
+
);
|
|
4702
|
+
}
|
|
4703
|
+
if (!(preferredLanguageIndex >= 0)) {
|
|
4704
|
+
_context2.next = 24;
|
|
4705
|
+
break;
|
|
4706
|
+
}
|
|
4707
|
+
preferredLocalization = mediaData.localizations[preferredLanguageIndex];
|
|
4708
|
+
if (!(mediaData.hashedId === preferredLocalization.hashedId)) {
|
|
4709
|
+
_context2.next = 23;
|
|
4710
|
+
break;
|
|
4711
|
+
}
|
|
4712
|
+
return _context2.abrupt("return", mediaData);
|
|
4713
|
+
case 23:
|
|
4714
|
+
return _context2.abrupt("return", fetchUnlocalizedMediaData(preferredLocalization.hashedId, _objectSpread2({}, options)));
|
|
4715
|
+
case 24:
|
|
4716
|
+
return _context2.abrupt("return", mediaData);
|
|
4717
|
+
case 25:
|
|
4718
|
+
case "end":
|
|
4719
|
+
return _context2.stop();
|
|
4720
|
+
}
|
|
4721
|
+
}, _callee2);
|
|
4722
|
+
}));
|
|
4723
|
+
return function fetchMediaData2(_x2) {
|
|
4724
|
+
return _ref3.apply(this, arguments);
|
|
4725
|
+
};
|
|
4726
|
+
}();
|
|
4382
4727
|
}
|
|
4383
4728
|
),
|
|
4384
4729
|
/***/
|
|
@@ -5728,19 +6073,62 @@ var init_wistia_player = __esm({
|
|
|
5728
6073
|
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
5729
6074
|
__webpack_require__3.d(__webpack_exports__3, {
|
|
5730
6075
|
/* harmony export */
|
|
5731
|
-
|
|
6076
|
+
qN: () => (
|
|
5732
6077
|
/* binding */
|
|
5733
6078
|
getCssGradient
|
|
5734
6079
|
),
|
|
5735
6080
|
/* harmony export */
|
|
5736
|
-
|
|
6081
|
+
yz: () => (
|
|
5737
6082
|
/* binding */
|
|
5738
6083
|
getGradientColor
|
|
5739
6084
|
)
|
|
5740
6085
|
/* harmony export */
|
|
5741
6086
|
});
|
|
5742
|
-
var
|
|
6087
|
+
var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(7350);
|
|
5743
6088
|
var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(5417);
|
|
6089
|
+
var _obj_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(731);
|
|
6090
|
+
function _slicedToArray2(r, e) {
|
|
6091
|
+
return _arrayWithHoles2(r) || _iterableToArrayLimit2(r, e) || _unsupportedIterableToArray2(r, e) || _nonIterableRest2();
|
|
6092
|
+
}
|
|
6093
|
+
function _nonIterableRest2() {
|
|
6094
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6095
|
+
}
|
|
6096
|
+
function _unsupportedIterableToArray2(r, a) {
|
|
6097
|
+
if (r) {
|
|
6098
|
+
if ("string" == typeof r) return _arrayLikeToArray2(r, a);
|
|
6099
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
6100
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r, a) : void 0;
|
|
6101
|
+
}
|
|
6102
|
+
}
|
|
6103
|
+
function _arrayLikeToArray2(r, a) {
|
|
6104
|
+
(null == a || a > r.length) && (a = r.length);
|
|
6105
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6106
|
+
return n;
|
|
6107
|
+
}
|
|
6108
|
+
function _iterableToArrayLimit2(r, l) {
|
|
6109
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
6110
|
+
if (null != t) {
|
|
6111
|
+
var e, n, i2, u, a = [], f = true, o = false;
|
|
6112
|
+
try {
|
|
6113
|
+
if (i2 = (t = t.call(r)).next, 0 === l) {
|
|
6114
|
+
if (Object(t) !== t) return;
|
|
6115
|
+
f = false;
|
|
6116
|
+
} else for (; !(f = (e = i2.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
6117
|
+
} catch (r2) {
|
|
6118
|
+
o = true, n = r2;
|
|
6119
|
+
} finally {
|
|
6120
|
+
try {
|
|
6121
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
6122
|
+
} finally {
|
|
6123
|
+
if (o) throw n;
|
|
6124
|
+
}
|
|
6125
|
+
}
|
|
6126
|
+
return a;
|
|
6127
|
+
}
|
|
6128
|
+
}
|
|
6129
|
+
function _arrayWithHoles2(r) {
|
|
6130
|
+
if (Array.isArray(r)) return r;
|
|
6131
|
+
}
|
|
5744
6132
|
var DEFAULT_ALPHA = 0.9;
|
|
5745
6133
|
var GRADIENT_COLOR_INDEX = 0;
|
|
5746
6134
|
var GRADIENT_PERCENTAGE_INDEX = 1;
|
|
@@ -5759,7 +6147,7 @@ var init_wistia_player = __esm({
|
|
|
5759
6147
|
return null;
|
|
5760
6148
|
}
|
|
5761
6149
|
var areAllColorsValid = gradient.colors.every(function(gradientColor) {
|
|
5762
|
-
return gradientColor[GRADIENT_COLOR_INDEX] && gradientColor[GRADIENT_PERCENTAGE_INDEX] >= 0 && gradientColor[GRADIENT_PERCENTAGE_INDEX] <= 1;
|
|
6150
|
+
return Boolean(gradientColor[GRADIENT_COLOR_INDEX] && gradientColor[GRADIENT_PERCENTAGE_INDEX] >= 0 && gradientColor[GRADIENT_PERCENTAGE_INDEX] <= 1);
|
|
5763
6151
|
});
|
|
5764
6152
|
if (!areAllColorsValid) {
|
|
5765
6153
|
return null;
|
|
@@ -5770,11 +6158,59 @@ var init_wistia_player = __esm({
|
|
|
5770
6158
|
};
|
|
5771
6159
|
var getGradientColor = function getGradientColor2(gradient) {
|
|
5772
6160
|
var index = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
5773
|
-
if (!(0,
|
|
6161
|
+
if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_2__.b)(gradient)) {
|
|
5774
6162
|
return null;
|
|
5775
6163
|
}
|
|
5776
6164
|
return gradient.colors[index][GRADIENT_COLOR_INDEX];
|
|
5777
6165
|
};
|
|
6166
|
+
var cleanGradient = function cleanGradient2(gradient) {
|
|
6167
|
+
var casted = cast(clone(gradient));
|
|
6168
|
+
var result = {
|
|
6169
|
+
colors: casted.colors.map(function(_ref) {
|
|
6170
|
+
var _ref2 = _slicedToArray2(_ref, 2), color = _ref2[0], percentage = _ref2[1];
|
|
6171
|
+
return [color.toString(), percentage];
|
|
6172
|
+
}),
|
|
6173
|
+
on: casted.on
|
|
6174
|
+
};
|
|
6175
|
+
return result;
|
|
6176
|
+
};
|
|
6177
|
+
}
|
|
6178
|
+
),
|
|
6179
|
+
/***/
|
|
6180
|
+
4400: (
|
|
6181
|
+
/***/
|
|
6182
|
+
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
6183
|
+
__webpack_require__3.d(__webpack_exports__3, {
|
|
6184
|
+
/* harmony export */
|
|
6185
|
+
J: () => (
|
|
6186
|
+
/* binding */
|
|
6187
|
+
getPreferredAvailableLanguageIndex
|
|
6188
|
+
)
|
|
6189
|
+
/* harmony export */
|
|
6190
|
+
});
|
|
6191
|
+
var getAlpha2Code = function getAlpha2Code2(iso6392Code) {
|
|
6192
|
+
return iso6392Code.split("-")[0];
|
|
6193
|
+
};
|
|
6194
|
+
var getPreferredAvailableLanguageIndex = function getPreferredAvailableLanguageIndex2(availableLanguages, preferredLanguages) {
|
|
6195
|
+
var exactMatch = preferredLanguages.find(function(preferred) {
|
|
6196
|
+
return availableLanguages.includes(preferred);
|
|
6197
|
+
});
|
|
6198
|
+
if (exactMatch != null) {
|
|
6199
|
+
return availableLanguages.indexOf(exactMatch);
|
|
6200
|
+
}
|
|
6201
|
+
var regionMatch = preferredLanguages.find(function(preferred) {
|
|
6202
|
+
var preferredAlpha2 = getAlpha2Code(preferred);
|
|
6203
|
+
return availableLanguages.some(function(lang) {
|
|
6204
|
+
return getAlpha2Code(lang) === preferredAlpha2;
|
|
6205
|
+
});
|
|
6206
|
+
});
|
|
6207
|
+
if (regionMatch != null) {
|
|
6208
|
+
return availableLanguages.findIndex(function(lang) {
|
|
6209
|
+
return getAlpha2Code(lang) === getAlpha2Code(regionMatch);
|
|
6210
|
+
});
|
|
6211
|
+
}
|
|
6212
|
+
return -1;
|
|
6213
|
+
};
|
|
5778
6214
|
}
|
|
5779
6215
|
),
|
|
5780
6216
|
/***/
|
|
@@ -5802,8 +6238,8 @@ var init_wistia_player = __esm({
|
|
|
5802
6238
|
__webpack_unused_export__ = isNotString;
|
|
5803
6239
|
const isEmptyString = (x) => (0, exports.Kg)(x) && x === "";
|
|
5804
6240
|
exports.jw = isEmptyString;
|
|
5805
|
-
const
|
|
5806
|
-
__webpack_unused_export__ =
|
|
6241
|
+
const isNonEmptyString2 = (x) => (0, exports.Kg)(x) && !(0, exports.jw)(x);
|
|
6242
|
+
__webpack_unused_export__ = isNonEmptyString2;
|
|
5807
6243
|
const isNumber2 = (x) => typeof x === "number";
|
|
5808
6244
|
exports.Et = isNumber2;
|
|
5809
6245
|
const isNotNumber = (x) => !(0, exports.Et)(x);
|
|
@@ -7164,6 +7600,9 @@ var init_wistia_player = __esm({
|
|
|
7164
7600
|
return null;
|
|
7165
7601
|
};
|
|
7166
7602
|
}
|
|
7603
|
+
if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.EventShepherdManager == null) {
|
|
7604
|
+
_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.EventShepherdManager = {};
|
|
7605
|
+
}
|
|
7167
7606
|
if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.mixin == null) {
|
|
7168
7607
|
_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.mixin = function(klass) {
|
|
7169
7608
|
var obj = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -8003,7 +8442,7 @@ var init_wistia_player = __esm({
|
|
|
8003
8442
|
return Boolean(isJsScriptInDom);
|
|
8004
8443
|
};
|
|
8005
8444
|
var pollForJsonp = /* @__PURE__ */ function() {
|
|
8006
|
-
var _ref = _asyncToGenerator2(/* @__PURE__ */ _regeneratorRuntime2().mark(function _callee(mediaId) {
|
|
8445
|
+
var _ref = _asyncToGenerator2(/* @__PURE__ */ _regeneratorRuntime2().mark(function _callee(mediaId, options) {
|
|
8007
8446
|
return _regeneratorRuntime2().wrap(function _callee$(_context) {
|
|
8008
8447
|
while (1) switch (_context.prev = _context.next) {
|
|
8009
8448
|
case 0:
|
|
@@ -8015,7 +8454,9 @@ var init_wistia_player = __esm({
|
|
|
8015
8454
|
if (jsonp.media) {
|
|
8016
8455
|
clearInterval(poll);
|
|
8017
8456
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_5__.ry)(mediaId, jsonp.media);
|
|
8018
|
-
|
|
8457
|
+
(0, _utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_7__.j)(mediaId, options).then(resolve).catch(function() {
|
|
8458
|
+
reject(new Error("Failed to fetch media data via jsonp"));
|
|
8459
|
+
});
|
|
8019
8460
|
return;
|
|
8020
8461
|
}
|
|
8021
8462
|
if ((0, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_8__.V)(jsonp)) {
|
|
@@ -8037,7 +8478,7 @@ var init_wistia_player = __esm({
|
|
|
8037
8478
|
}
|
|
8038
8479
|
}, _callee);
|
|
8039
8480
|
}));
|
|
8040
|
-
return function pollForJsonp2(_x) {
|
|
8481
|
+
return function pollForJsonp2(_x, _x2) {
|
|
8041
8482
|
return _ref.apply(this, arguments);
|
|
8042
8483
|
};
|
|
8043
8484
|
}();
|
|
@@ -8059,7 +8500,9 @@ var init_wistia_player = __esm({
|
|
|
8059
8500
|
).then(function(module2) {
|
|
8060
8501
|
var mediaData = module2.mediaData;
|
|
8061
8502
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_5__.ry)(mediaId, mediaData);
|
|
8062
|
-
resolve(
|
|
8503
|
+
(0, _utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_7__.j)(mediaId, options).then(resolve).catch(function() {
|
|
8504
|
+
reject(new Error("Failed to fetch media data via js script"));
|
|
8505
|
+
});
|
|
8063
8506
|
}).catch(function() {
|
|
8064
8507
|
reject(new Error("Failed to load js media data"));
|
|
8065
8508
|
});
|
|
@@ -8070,7 +8513,7 @@ var init_wistia_player = __esm({
|
|
|
8070
8513
|
}
|
|
8071
8514
|
}, _callee2);
|
|
8072
8515
|
}));
|
|
8073
|
-
return function getJsScript2(
|
|
8516
|
+
return function getJsScript2(_x3) {
|
|
8074
8517
|
return _ref2.apply(this, arguments);
|
|
8075
8518
|
};
|
|
8076
8519
|
}();
|
|
@@ -8091,54 +8534,61 @@ var init_wistia_player = __esm({
|
|
|
8091
8534
|
var getInitialMediaData = /* @__PURE__ */ function() {
|
|
8092
8535
|
var _ref3 = _asyncToGenerator2(/* @__PURE__ */ _regeneratorRuntime2().mark(function _callee3(mediaId) {
|
|
8093
8536
|
var _Wistia$_inlineMediaD;
|
|
8094
|
-
var options, inlineMediaData, clonedInlineMediaData, speedDemonPromises, mediaData, _fetchMediaDataDelaye, _fetchMediaDataDelaye2, delayedMediaDataPromise, delayedFetchTimeoutRef, _args3 = arguments;
|
|
8537
|
+
var options, mediaDataFromCache, inlineMediaData, clonedInlineMediaData, speedDemonPromises, mediaData, _fetchMediaDataDelaye, _fetchMediaDataDelaye2, delayedMediaDataPromise, delayedFetchTimeoutRef, _args3 = arguments;
|
|
8095
8538
|
return _regeneratorRuntime2().wrap(function _callee3$(_context3) {
|
|
8096
8539
|
while (1) switch (_context3.prev = _context3.next) {
|
|
8097
8540
|
case 0:
|
|
8098
8541
|
options = _args3.length > 1 && _args3[1] !== void 0 ? _args3[1] : {};
|
|
8542
|
+
mediaDataFromCache = (0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_5__.F2)(mediaId);
|
|
8543
|
+
if (!(mediaDataFromCache != null && options.skipCache !== true)) {
|
|
8544
|
+
_context3.next = 4;
|
|
8545
|
+
break;
|
|
8546
|
+
}
|
|
8547
|
+
return _context3.abrupt("return", (0, _utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_7__.j)(mediaId, options));
|
|
8548
|
+
case 4:
|
|
8099
8549
|
inlineMediaData = (_Wistia$_inlineMediaD = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s._inlineMediaData) === null || _Wistia$_inlineMediaD === void 0 ? void 0 : _Wistia$_inlineMediaD[mediaId];
|
|
8100
8550
|
if (!(inlineMediaData != null)) {
|
|
8101
|
-
_context3.next =
|
|
8551
|
+
_context3.next = 10;
|
|
8102
8552
|
break;
|
|
8103
8553
|
}
|
|
8104
8554
|
clonedInlineMediaData = (0, _utilities_obj_js__WEBPACK_IMPORTED_MODULE_6__.o8)(inlineMediaData);
|
|
8105
8555
|
(0, _utilities_media_data_transforms_js__WEBPACK_IMPORTED_MODULE_4__.M)(clonedInlineMediaData, options);
|
|
8106
8556
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_5__.ry)(mediaId, clonedInlineMediaData);
|
|
8107
|
-
return _context3.abrupt("return",
|
|
8108
|
-
case
|
|
8557
|
+
return _context3.abrupt("return", (0, _utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_7__.j)(mediaId, options));
|
|
8558
|
+
case 10:
|
|
8109
8559
|
speedDemonPromises = [];
|
|
8110
8560
|
if (doesJsonpExist(mediaId, options)) {
|
|
8111
|
-
speedDemonPromises.push(pollForJsonp(mediaId));
|
|
8561
|
+
speedDemonPromises.push(pollForJsonp(mediaId, options));
|
|
8112
8562
|
}
|
|
8113
8563
|
if (doesJsMediaDataScriptExist(mediaId, options)) {
|
|
8114
8564
|
speedDemonPromises.push(getJsScript(mediaId, options));
|
|
8115
8565
|
}
|
|
8116
8566
|
if (!(speedDemonPromises.length === 0)) {
|
|
8117
|
-
_context3.next =
|
|
8567
|
+
_context3.next = 19;
|
|
8118
8568
|
break;
|
|
8119
8569
|
}
|
|
8120
|
-
_context3.next =
|
|
8570
|
+
_context3.next = 16;
|
|
8121
8571
|
return (0, _utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_7__.j)(mediaId, options);
|
|
8122
|
-
case
|
|
8572
|
+
case 16:
|
|
8123
8573
|
mediaData = _context3.sent;
|
|
8124
|
-
_context3.next =
|
|
8574
|
+
_context3.next = 24;
|
|
8125
8575
|
break;
|
|
8126
|
-
case
|
|
8576
|
+
case 19:
|
|
8127
8577
|
_fetchMediaDataDelaye = fetchMediaDataDelayed(mediaId, options), _fetchMediaDataDelaye2 = _slicedToArray2(_fetchMediaDataDelaye, 2), delayedMediaDataPromise = _fetchMediaDataDelaye2[0], delayedFetchTimeoutRef = _fetchMediaDataDelaye2[1];
|
|
8128
|
-
_context3.next =
|
|
8578
|
+
_context3.next = 22;
|
|
8129
8579
|
return Promise.any([].concat(speedDemonPromises, [delayedMediaDataPromise]));
|
|
8130
|
-
case
|
|
8580
|
+
case 22:
|
|
8131
8581
|
mediaData = _context3.sent;
|
|
8132
8582
|
clearTimeout(delayedFetchTimeoutRef.current);
|
|
8133
|
-
case
|
|
8583
|
+
case 24:
|
|
8134
8584
|
return _context3.abrupt("return", mediaData);
|
|
8135
|
-
case
|
|
8585
|
+
case 25:
|
|
8136
8586
|
case "end":
|
|
8137
8587
|
return _context3.stop();
|
|
8138
8588
|
}
|
|
8139
8589
|
}, _callee3);
|
|
8140
8590
|
}));
|
|
8141
|
-
return function getInitialMediaData2(
|
|
8591
|
+
return function getInitialMediaData2(_x4) {
|
|
8142
8592
|
return _ref3.apply(this, arguments);
|
|
8143
8593
|
};
|
|
8144
8594
|
}();
|
|
@@ -8172,7 +8622,7 @@ var init_wistia_player = __esm({
|
|
|
8172
8622
|
/* harmony export */
|
|
8173
8623
|
U4: () => (
|
|
8174
8624
|
/* binding */
|
|
8175
|
-
|
|
8625
|
+
TAGGED_VERSION2
|
|
8176
8626
|
),
|
|
8177
8627
|
/* harmony export */
|
|
8178
8628
|
aY: () => (
|
|
@@ -8240,7 +8690,11 @@ var init_wistia_player = __esm({
|
|
|
8240
8690
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8241
8691
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
8242
8692
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8243
|
-
var
|
|
8693
|
+
var TAGGED_VERSION2 = "0.0.104";
|
|
8694
|
+
var CURRENT_SHA2 = (
|
|
8695
|
+
/* unused pure expression or super */
|
|
8696
|
+
null
|
|
8697
|
+
);
|
|
8244
8698
|
var DEFAULT_PROTOCOL = function() {
|
|
8245
8699
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
8246
8700
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -9155,20 +9609,15 @@ var init_wistia_player = __esm({
|
|
|
9155
9609
|
if (isFocused) {
|
|
9156
9610
|
overlayColor.lighten("15%");
|
|
9157
9611
|
}
|
|
9158
|
-
var
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
background: backgroundGradientCss,
|
|
9165
|
-
backgroundSize: "".concat(videoWidth, "px 100%"),
|
|
9166
|
-
backgroundPositionX: "center"
|
|
9167
|
-
};
|
|
9168
|
-
};
|
|
9612
|
+
var shouldUseGradient = backgroundGradientCss != null;
|
|
9613
|
+
var gradientStyles = shouldUseGradient ? {
|
|
9614
|
+
background: backgroundGradientCss,
|
|
9615
|
+
backgroundSize: "".concat(videoWidth, "px 100%"),
|
|
9616
|
+
backgroundPositionX: "center"
|
|
9617
|
+
} : {};
|
|
9169
9618
|
var overlayStyle = _objectSpread2(_objectSpread2({
|
|
9170
9619
|
backgroundColor: overlayColor.toRgba()
|
|
9171
|
-
}, gradientStyles
|
|
9620
|
+
}, gradientStyles), {}, {
|
|
9172
9621
|
height: "".concat(scaledHeight, "px"),
|
|
9173
9622
|
left: 0,
|
|
9174
9623
|
position: "absolute",
|
|
@@ -10505,6 +10954,45 @@ var init_wistia_player = __esm({
|
|
|
10505
10954
|
}
|
|
10506
10955
|
),
|
|
10507
10956
|
/***/
|
|
10957
|
+
7438: (
|
|
10958
|
+
/***/
|
|
10959
|
+
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
10960
|
+
__webpack_require__3.d(__webpack_exports__3, {
|
|
10961
|
+
/* harmony export */
|
|
10962
|
+
hy: () => (
|
|
10963
|
+
/* binding */
|
|
10964
|
+
getViewerPreferences
|
|
10965
|
+
)
|
|
10966
|
+
/* harmony export */
|
|
10967
|
+
});
|
|
10968
|
+
var utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(2917);
|
|
10969
|
+
var deleteViewerPreferences = function deleteViewerPreferences2() {
|
|
10970
|
+
removeLocalStorage(getLocalStorageKey());
|
|
10971
|
+
};
|
|
10972
|
+
var getLocalStorageKey = function getLocalStorageKey2() {
|
|
10973
|
+
return "wistia-viewer-preferences";
|
|
10974
|
+
};
|
|
10975
|
+
var getViewerPreferences = function getViewerPreferences2() {
|
|
10976
|
+
return (0, utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_0__.Lg)(getLocalStorageKey());
|
|
10977
|
+
};
|
|
10978
|
+
var getViewerPreference = function getViewerPreference2(preference) {
|
|
10979
|
+
var preferences = getViewerPreferences();
|
|
10980
|
+
if (!preferences) {
|
|
10981
|
+
return null;
|
|
10982
|
+
}
|
|
10983
|
+
return preferences[preference];
|
|
10984
|
+
};
|
|
10985
|
+
var setViewerPreference = function setViewerPreference2(preference, value) {
|
|
10986
|
+
updateLocalStorage(getLocalStorageKey(), function(obj) {
|
|
10987
|
+
if (obj.plugin) {
|
|
10988
|
+
delete obj.plugin;
|
|
10989
|
+
}
|
|
10990
|
+
obj[preference] = value;
|
|
10991
|
+
});
|
|
10992
|
+
};
|
|
10993
|
+
}
|
|
10994
|
+
),
|
|
10995
|
+
/***/
|
|
10508
10996
|
7715: (
|
|
10509
10997
|
/***/
|
|
10510
10998
|
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
@@ -13053,7 +13541,11 @@ var init_wistia_player = __esm({
|
|
|
13053
13541
|
});
|
|
13054
13542
|
var utilities_bindify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9061);
|
|
13055
13543
|
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5509);
|
|
13544
|
+
var _eventShepherd_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(2694);
|
|
13056
13545
|
if (!_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.bindable) {
|
|
13546
|
+
if (!_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager) {
|
|
13547
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager = {};
|
|
13548
|
+
}
|
|
13057
13549
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.bindable = {
|
|
13058
13550
|
bind: function bind(event, callback) {
|
|
13059
13551
|
if (event === "crosstime" && this.crossTime) {
|
|
@@ -13064,6 +13556,15 @@ var init_wistia_player = __esm({
|
|
|
13064
13556
|
this.betweenTimes.addBinding(arguments[1], arguments[2], arguments[3]);
|
|
13065
13557
|
return this;
|
|
13066
13558
|
}
|
|
13559
|
+
var embedElement = this.embedElement || this.container;
|
|
13560
|
+
if (Object.keys(_eventShepherd_ts__WEBPACK_IMPORTED_MODULE_2__.h).includes(event) && embedElement) {
|
|
13561
|
+
var id = identifierFromEmbedElement(embedElement);
|
|
13562
|
+
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id] === void 0) {
|
|
13563
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id] = new _eventShepherd_ts__WEBPACK_IMPORTED_MODULE_2__.S();
|
|
13564
|
+
}
|
|
13565
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id].addListener(event, embedElement, callback);
|
|
13566
|
+
return this;
|
|
13567
|
+
}
|
|
13067
13568
|
if (callback) {
|
|
13068
13569
|
utilities_bindify_js__WEBPACK_IMPORTED_MODULE_0__.oI.call(this, event, callback);
|
|
13069
13570
|
return this;
|
|
@@ -13090,6 +13591,15 @@ var init_wistia_player = __esm({
|
|
|
13090
13591
|
}
|
|
13091
13592
|
return this;
|
|
13092
13593
|
}
|
|
13594
|
+
var embedElement = this.embedElement || this.container;
|
|
13595
|
+
if (Object.keys(_eventShepherd_ts__WEBPACK_IMPORTED_MODULE_2__.h).includes(event) && embedElement) {
|
|
13596
|
+
var id = identifierFromEmbedElement(embedElement);
|
|
13597
|
+
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id] === void 0) {
|
|
13598
|
+
return this;
|
|
13599
|
+
}
|
|
13600
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id].removeListener(event, embedElement, callback);
|
|
13601
|
+
return this;
|
|
13602
|
+
}
|
|
13093
13603
|
if (callback) {
|
|
13094
13604
|
utilities_bindify_js__WEBPACK_IMPORTED_MODULE_0__.Nw.call(this, event, callback);
|
|
13095
13605
|
} else if (this._bindings) {
|
|
@@ -13115,6 +13625,17 @@ var init_wistia_player = __esm({
|
|
|
13115
13625
|
_this.betweenTimes.removeBinding(_arguments[1], _arguments[2], _arguments[3]);
|
|
13116
13626
|
};
|
|
13117
13627
|
}
|
|
13628
|
+
var embedElement = this.embedElement || this.container;
|
|
13629
|
+
if (Object.keys(_eventShepherd_ts__WEBPACK_IMPORTED_MODULE_2__.h).includes(event) && embedElement) {
|
|
13630
|
+
var id = identifierFromEmbedElement(embedElement);
|
|
13631
|
+
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id] === void 0) {
|
|
13632
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id] = new _eventShepherd_ts__WEBPACK_IMPORTED_MODULE_2__.S(embedElement);
|
|
13633
|
+
}
|
|
13634
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id].addListener(event, embedElement, fn);
|
|
13635
|
+
return function() {
|
|
13636
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id].removeListener(event, embedElement, fn);
|
|
13637
|
+
};
|
|
13638
|
+
}
|
|
13118
13639
|
return utilities_bindify_js__WEBPACK_IMPORTED_MODULE_0__.oI.call(this, event, fn);
|
|
13119
13640
|
},
|
|
13120
13641
|
off: function off(event, fn) {
|
|
@@ -13124,6 +13645,15 @@ var init_wistia_player = __esm({
|
|
|
13124
13645
|
if (event === "betweentimes" && this.betweenTimes) {
|
|
13125
13646
|
return this.betweenTimes.removeBinding(arguments[1], arguments[2], arguments[3]);
|
|
13126
13647
|
}
|
|
13648
|
+
var embedElement = this.embedElement || this.container;
|
|
13649
|
+
if (Object.keys(_eventShepherd_ts__WEBPACK_IMPORTED_MODULE_2__.h).includes(event) && embedElement) {
|
|
13650
|
+
var id = identifierFromEmbedElement(embedElement);
|
|
13651
|
+
if (_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id] === void 0) {
|
|
13652
|
+
return function() {
|
|
13653
|
+
};
|
|
13654
|
+
}
|
|
13655
|
+
return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__.s.EventShepherdManager[id].removeListener(event, embedElement, fn);
|
|
13656
|
+
}
|
|
13127
13657
|
return utilities_bindify_js__WEBPACK_IMPORTED_MODULE_0__.Nw.call(this, event, fn);
|
|
13128
13658
|
},
|
|
13129
13659
|
rebind: function rebind(event, callback) {
|
|
@@ -13159,6 +13689,14 @@ var init_wistia_player = __esm({
|
|
|
13159
13689
|
}
|
|
13160
13690
|
}
|
|
13161
13691
|
};
|
|
13692
|
+
var identifierFromEmbedElement = function identifierFromEmbedElement2(embedElement) {
|
|
13693
|
+
if (embedElement !== null && embedElement !== void 0 && embedElement.mediaId) {
|
|
13694
|
+
return embedElement.mediaId;
|
|
13695
|
+
}
|
|
13696
|
+
if (embedElement !== null && embedElement !== void 0 && embedElement.id) {
|
|
13697
|
+
return embedElement.id;
|
|
13698
|
+
}
|
|
13699
|
+
};
|
|
13162
13700
|
}
|
|
13163
13701
|
),
|
|
13164
13702
|
/***/
|
|
@@ -13326,8 +13864,8 @@ var init_wistia_player = __esm({
|
|
|
13326
13864
|
var calculatedPlayerLanguage = (_ref3 = (0, _shared_translations_js__WEBPACK_IMPORTED_MODULE_5__.Z0)(playerLanguage)) !== null && _ref3 !== void 0 ? _ref3 : (0, _shared_translations_js__WEBPACK_IMPORTED_MODULE_5__.Z0)("en-US");
|
|
13327
13865
|
var shouldShowBigPlayButton = bigPlayButton !== false && playButton !== false;
|
|
13328
13866
|
var shouldShowBpbTime = bpbTime === true || bpbTime === "true";
|
|
13329
|
-
var backgroundGradientCss = playerColorGradient !== null && playerColorGradient !== void 0 && playerColorGradient.on ? (0, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_8__.
|
|
13330
|
-
var playerColorOrGradientColor = playerColorGradient !== null && playerColorGradient !== void 0 && playerColorGradient.on && (0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_11__.b)(playerColorGradient) ? (_getGradientColor = (0, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_8__.
|
|
13867
|
+
var backgroundGradientCss = playerColorGradient !== null && playerColorGradient !== void 0 && playerColorGradient.on ? (0, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_8__.qN)(playerColorGradient) : void 0;
|
|
13868
|
+
var playerColorOrGradientColor = playerColorGradient !== null && playerColorGradient !== void 0 && playerColorGradient.on && (0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_11__.b)(playerColorGradient) ? (_getGradientColor = (0, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_8__.yz)(playerColorGradient)) !== null && _getGradientColor !== void 0 ? _getGradientColor : playerColor : playerColor;
|
|
13331
13869
|
var handleClick = function handleClick2() {
|
|
13332
13870
|
setIsLoading(true);
|
|
13333
13871
|
};
|
|
@@ -13447,7 +13985,7 @@ var init_wistia_player = __esm({
|
|
|
13447
13985
|
_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__2(2760);
|
|
13448
13986
|
_utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__2(3832);
|
|
13449
13987
|
_utilities_hosts_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__2(5857);
|
|
13450
|
-
|
|
13988
|
+
_utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__2(5393);
|
|
13451
13989
|
_utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__2(438);
|
|
13452
13990
|
_utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__2(3123);
|
|
13453
13991
|
_utilities_runScript_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__2(1248);
|
|
@@ -13462,12 +14000,12 @@ var init_wistia_player = __esm({
|
|
|
13462
14000
|
_utilities_wlog_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__2(6637);
|
|
13463
14001
|
_utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__2(2147);
|
|
13464
14002
|
_utilities_getInitialMediaData_ts__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__2(5833);
|
|
13465
|
-
|
|
14003
|
+
_utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__2(959);
|
|
13466
14004
|
_utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__2(3411);
|
|
13467
14005
|
_utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__2(4989);
|
|
13468
14006
|
_types_gradient_ts__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__2(7350);
|
|
13469
14007
|
requiredAttributes = ["media-id"];
|
|
13470
|
-
optionalPublicAttributes = ["aspect", "audio-description-control", "autoplay", "big-play-button", "branding", "controls-visible-on-load", "copy-link-and-thumbnail", "current-time", "do-not-track", "email", "end-video-behavior", "fullscreen-control", "muted", "playback-rate-control", "play-bar-control", "player-color", "playlist-links", "playlist-loop", "play-pause-control", "play-pause-notifier", "popover-animate-thumbnail", "popover-animation", "popover-border-color", "popover-border-radius", "popover-border-width", "popover-box-shadow", "popover-caption", "popover-caption-container", "popover-content", "popover-disable-autoplay", "popover-overlay-color", "popover-overlay-opacity", "popover-prevent-scroll", "popover-show-on-load", "poster", "preload", "quality-control", "quality-max", "quality-min", "resumable", "rounded-player", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
|
|
14008
|
+
optionalPublicAttributes = ["aspect", "audio-description-control", "autoplay", "big-play-button", "branding", "controls-visible-on-load", "copy-link-and-thumbnail", "current-time", "do-not-track", "email", "end-video-behavior", "fullscreen-control", "language", "muted", "playback-rate-control", "play-bar-control", "player-color", "playlist-links", "playlist-loop", "play-pause-control", "play-pause-notifier", "popover-animate-thumbnail", "popover-animation", "popover-border-color", "popover-border-radius", "popover-border-width", "popover-box-shadow", "popover-caption", "popover-caption-container", "popover-content", "popover-disable-autoplay", "popover-overlay-color", "popover-overlay-opacity", "popover-prevent-scroll", "popover-show-on-load", "poster", "preload", "quality-control", "quality-max", "quality-min", "resumable", "rounded-player", "seo", "settings-control", "silent-autoplay", "transparent-letterbox", "video-quality", "volume", "volume-control", "wistia-popover"];
|
|
13471
14009
|
optionalPrivateAttributes = ["big-play-button-border-radius", "control-bar-border-radius", "embed-host", "hls", "page-url", "player-border-radius", "player-force", "stats-url", "swatch", "unique-id", "use-web-component"];
|
|
13472
14010
|
defaultEmbedOptions = {
|
|
13473
14011
|
audioDescriptionControl: false,
|
|
@@ -13544,6 +14082,8 @@ var init_wistia_player = __esm({
|
|
|
13544
14082
|
_publicApiScript = /* @__PURE__ */ new WeakMap();
|
|
13545
14083
|
_resizeObserver = /* @__PURE__ */ new WeakMap();
|
|
13546
14084
|
_WistiaPlayer_brand = /* @__PURE__ */ new WeakSet();
|
|
14085
|
+
_handleAfterReplace = /* @__PURE__ */ new WeakMap();
|
|
14086
|
+
_handleBeforeReplace = /* @__PURE__ */ new WeakMap();
|
|
13547
14087
|
_handlePreloadThumbnailClick = /* @__PURE__ */ new WeakMap();
|
|
13548
14088
|
WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
|
|
13549
14089
|
function WistiaPlayer3() {
|
|
@@ -13574,8 +14114,18 @@ var init_wistia_player = __esm({
|
|
|
13574
14114
|
_classPrivateFieldInitSpec(_this2, _preloadThumbnailRoot, null);
|
|
13575
14115
|
_classPrivateFieldInitSpec(_this2, _publicApiScript, (0, _utilities_runScript_js__WEBPACK_IMPORTED_MODULE_14__.j)("".concat((0, _utilities_url_js__WEBPACK_IMPORTED_MODULE_18__.ff)(), "//").concat((0, _appHostname_js__WEBPACK_IMPORTED_MODULE_26__.N)("fast"), "/assets/external/publicApi.js")));
|
|
13576
14116
|
_classPrivateFieldInitSpec(_this2, _resizeObserver, null);
|
|
14117
|
+
_classPrivateFieldInitSpec(_this2, _handleAfterReplace, function() {
|
|
14118
|
+
_assertClassBrand(_WistiaPlayer_brand, _this2, _maybeInjectJsonLd).call(_this2);
|
|
14119
|
+
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__.gY)("__".concat(_this2.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, _this2).embedOptions);
|
|
14120
|
+
});
|
|
14121
|
+
_classPrivateFieldInitSpec(_this2, _handleBeforeReplace, function(event) {
|
|
14122
|
+
_this2.mediaId = event.detail.mediaId;
|
|
14123
|
+
_this2.uniqueId = _assertClassBrand(_WistiaPlayer_brand, _this2, _generateUniqueId).call(_this2, event.detail.mediaId);
|
|
14124
|
+
});
|
|
13577
14125
|
_classPrivateFieldInitSpec(_this2, _handlePreloadThumbnailClick, function() {
|
|
13578
|
-
|
|
14126
|
+
if (_classPrivateFieldGet(_playerType, _this2) !== "carouselHardWall" && _classPrivateFieldGet(_playerType, _this2) !== "notplayable" && _classPrivateFieldGet(_playerType, _this2) !== "passwordprotected") {
|
|
14127
|
+
_classPrivateFieldSet(_playPending, _this2, true);
|
|
14128
|
+
}
|
|
13579
14129
|
_assertClassBrand(_WistiaPlayer_brand, _this2, _renderPreloadThumbnail).call(_this2);
|
|
13580
14130
|
});
|
|
13581
14131
|
if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
|
|
@@ -13986,6 +14536,39 @@ var init_wistia_player = __esm({
|
|
|
13986
14536
|
var _classPrivateFieldGet25, _classPrivateFieldGet26;
|
|
13987
14537
|
return (_classPrivateFieldGet25 = (_classPrivateFieldGet26 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.isInstantHls()) !== null && _classPrivateFieldGet25 !== void 0 ? _classPrivateFieldGet25 : false;
|
|
13988
14538
|
}
|
|
14539
|
+
}, {
|
|
14540
|
+
key: "language",
|
|
14541
|
+
get: function get() {
|
|
14542
|
+
return _assertClassBrand(_WistiaPlayer_brand, this, _findLocalizationByLanguage).call(this, _classPrivateFieldGet(_playerData, this).mediaData.ietfLanguageTag);
|
|
14543
|
+
},
|
|
14544
|
+
set: function set(language) {
|
|
14545
|
+
var localization = _assertClassBrand(_WistiaPlayer_brand, this, _findLocalizationByLanguage).call(this, language);
|
|
14546
|
+
if (localization == null) {
|
|
14547
|
+
console.error("Language ".concat(language, " not found. Available languages for ").concat(this.mediaId, ": ").concat(JSON.stringify(this.languages.map(function(loc) {
|
|
14548
|
+
return loc.iso6392LanguageCode;
|
|
14549
|
+
}))));
|
|
14550
|
+
return;
|
|
14551
|
+
}
|
|
14552
|
+
var replaceOptions = {
|
|
14553
|
+
language: localization.iso6392LanguageCode
|
|
14554
|
+
};
|
|
14555
|
+
var wasPlaying = this.state === "playing";
|
|
14556
|
+
var wasBeforePlay = this.state === "beforeplay";
|
|
14557
|
+
var time = this.currentTime;
|
|
14558
|
+
if (!wasBeforePlay) {
|
|
14559
|
+
replaceOptions.time = time;
|
|
14560
|
+
}
|
|
14561
|
+
if (wasPlaying) {
|
|
14562
|
+
replaceOptions.autoPlay = true;
|
|
14563
|
+
}
|
|
14564
|
+
void this.replaceWithMedia(localization.hashedId, replaceOptions);
|
|
14565
|
+
}
|
|
14566
|
+
}, {
|
|
14567
|
+
key: "languages",
|
|
14568
|
+
get: function get() {
|
|
14569
|
+
var _classPrivateFieldGet27;
|
|
14570
|
+
return (_classPrivateFieldGet27 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : [];
|
|
14571
|
+
}
|
|
13989
14572
|
/**
|
|
13990
14573
|
* Returns all the mediaData set on the WistiaPlayer
|
|
13991
14574
|
* @returns {MediaData }
|
|
@@ -14020,8 +14603,8 @@ var init_wistia_player = __esm({
|
|
|
14020
14603
|
}, {
|
|
14021
14604
|
key: "muted",
|
|
14022
14605
|
get: function get() {
|
|
14023
|
-
var _ref7,
|
|
14024
|
-
return (_ref7 = (
|
|
14606
|
+
var _ref7, _classPrivateFieldGet28, _classPrivateFieldGet29;
|
|
14607
|
+
return (_ref7 = (_classPrivateFieldGet28 = (_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.isMuted()) !== null && _classPrivateFieldGet28 !== void 0 ? _classPrivateFieldGet28 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
14025
14608
|
},
|
|
14026
14609
|
set: function set(shouldMute) {
|
|
14027
14610
|
if (_classPrivateFieldGet(_impl, this)) {
|
|
@@ -14041,8 +14624,8 @@ var init_wistia_player = __esm({
|
|
|
14041
14624
|
}, {
|
|
14042
14625
|
key: "name",
|
|
14043
14626
|
get: function get() {
|
|
14044
|
-
var _ref8,
|
|
14045
|
-
return (_ref8 = (
|
|
14627
|
+
var _ref8, _classPrivateFieldGet30, _classPrivateFieldGet31, _classPrivateFieldGet32;
|
|
14628
|
+
return (_ref8 = (_classPrivateFieldGet30 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet30 !== void 0 ? _classPrivateFieldGet30 : (_classPrivateFieldGet31 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : (_classPrivateFieldGet32 = _classPrivateFieldGet31._mediaData) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.name) !== null && _ref8 !== void 0 ? _ref8 : void 0;
|
|
14046
14629
|
}
|
|
14047
14630
|
}, {
|
|
14048
14631
|
key: "paddingTop",
|
|
@@ -14059,8 +14642,8 @@ var init_wistia_player = __esm({
|
|
|
14059
14642
|
}, {
|
|
14060
14643
|
key: "paused",
|
|
14061
14644
|
get: function get() {
|
|
14062
|
-
var
|
|
14063
|
-
return ((
|
|
14645
|
+
var _classPrivateFieldGet33;
|
|
14646
|
+
return ((_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.state()) === "paused";
|
|
14064
14647
|
}
|
|
14065
14648
|
/**
|
|
14066
14649
|
* Returns the percent of the video that has been watched as a decimal between 0 and 1.
|
|
@@ -14069,8 +14652,8 @@ var init_wistia_player = __esm({
|
|
|
14069
14652
|
}, {
|
|
14070
14653
|
key: "percentWatched",
|
|
14071
14654
|
get: function get() {
|
|
14072
|
-
var
|
|
14073
|
-
return (
|
|
14655
|
+
var _classPrivateFieldGet34, _classPrivateFieldGet35;
|
|
14656
|
+
return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.percentWatched()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : 0;
|
|
14074
14657
|
}
|
|
14075
14658
|
/**
|
|
14076
14659
|
* Returns the playback rate of the video.
|
|
@@ -14079,12 +14662,12 @@ var init_wistia_player = __esm({
|
|
|
14079
14662
|
}, {
|
|
14080
14663
|
key: "playbackRate",
|
|
14081
14664
|
get: function get() {
|
|
14082
|
-
var _ref9,
|
|
14083
|
-
return (_ref9 = (
|
|
14665
|
+
var _ref9, _classPrivateFieldGet36, _classPrivateFieldGet37;
|
|
14666
|
+
return (_ref9 = (_classPrivateFieldGet36 = (_classPrivateFieldGet37 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet37 === void 0 ? void 0 : _classPrivateFieldGet37.playbackRate()) !== null && _classPrivateFieldGet36 !== void 0 ? _classPrivateFieldGet36 : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
14084
14667
|
},
|
|
14085
14668
|
set: function set(rate) {
|
|
14086
|
-
var
|
|
14087
|
-
(
|
|
14669
|
+
var _classPrivateFieldGet38;
|
|
14670
|
+
(_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.playbackRate(rate);
|
|
14088
14671
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
|
|
14089
14672
|
}
|
|
14090
14673
|
/**
|
|
@@ -14097,8 +14680,8 @@ var init_wistia_player = __esm({
|
|
|
14097
14680
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
|
|
14098
14681
|
},
|
|
14099
14682
|
set: function set(shouldDisplay) {
|
|
14100
|
-
var
|
|
14101
|
-
(
|
|
14683
|
+
var _classPrivateFieldGet39;
|
|
14684
|
+
(_classPrivateFieldGet39 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet39 === void 0 ? void 0 : _classPrivateFieldGet39.playbackRateControlEnabled(shouldDisplay);
|
|
14102
14685
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
|
|
14103
14686
|
}
|
|
14104
14687
|
/**
|
|
@@ -14111,8 +14694,8 @@ var init_wistia_player = __esm({
|
|
|
14111
14694
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
|
|
14112
14695
|
},
|
|
14113
14696
|
set: function set(shouldDisplay) {
|
|
14114
|
-
var
|
|
14115
|
-
(
|
|
14697
|
+
var _classPrivateFieldGet40;
|
|
14698
|
+
(_classPrivateFieldGet40 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet40 === void 0 ? void 0 : _classPrivateFieldGet40.playbarControlEnabled(shouldDisplay);
|
|
14116
14699
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
|
|
14117
14700
|
}
|
|
14118
14701
|
/**
|
|
@@ -14125,8 +14708,8 @@ var init_wistia_player = __esm({
|
|
|
14125
14708
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
|
|
14126
14709
|
},
|
|
14127
14710
|
set: function set(radius) {
|
|
14128
|
-
var
|
|
14129
|
-
(
|
|
14711
|
+
var _classPrivateFieldGet41;
|
|
14712
|
+
(_classPrivateFieldGet41 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.setPlayerBorderRadius(Number(radius));
|
|
14130
14713
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", radius);
|
|
14131
14714
|
}
|
|
14132
14715
|
/**
|
|
@@ -14139,13 +14722,13 @@ var init_wistia_player = __esm({
|
|
|
14139
14722
|
var _this$playerColorGrad;
|
|
14140
14723
|
if ((_this$playerColorGrad = this.playerColorGradient) !== null && _this$playerColorGrad !== void 0 && _this$playerColorGrad.on) {
|
|
14141
14724
|
var _getGradientColor;
|
|
14142
|
-
return (_getGradientColor = (0, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_1__.
|
|
14725
|
+
return (_getGradientColor = (0, _utilities_gradients_ts__WEBPACK_IMPORTED_MODULE_1__.yz)(this.playerColorGradient)) !== null && _getGradientColor !== void 0 ? _getGradientColor : _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
|
|
14143
14726
|
}
|
|
14144
14727
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
|
|
14145
14728
|
},
|
|
14146
14729
|
set: function set(newColor) {
|
|
14147
|
-
var
|
|
14148
|
-
(
|
|
14730
|
+
var _classPrivateFieldGet42;
|
|
14731
|
+
(_classPrivateFieldGet42 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet42 === void 0 ? void 0 : _classPrivateFieldGet42.playerColor(newColor);
|
|
14149
14732
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
|
|
14150
14733
|
}
|
|
14151
14734
|
/**
|
|
@@ -14158,11 +14741,11 @@ var init_wistia_player = __esm({
|
|
|
14158
14741
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColorGradient");
|
|
14159
14742
|
},
|
|
14160
14743
|
set: function set(gradient) {
|
|
14161
|
-
var
|
|
14744
|
+
var _classPrivateFieldGet43;
|
|
14162
14745
|
if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_28__.b)(gradient)) {
|
|
14163
14746
|
throw new Error("playerColorGradient must be a valid gradient object");
|
|
14164
14747
|
}
|
|
14165
|
-
(
|
|
14748
|
+
(_classPrivateFieldGet43 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.playerColorGradient(gradient);
|
|
14166
14749
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
|
|
14167
14750
|
}
|
|
14168
14751
|
/**
|
|
@@ -14218,8 +14801,8 @@ var init_wistia_player = __esm({
|
|
|
14218
14801
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
|
|
14219
14802
|
},
|
|
14220
14803
|
set: function set(shouldDisplay) {
|
|
14221
|
-
var
|
|
14222
|
-
(
|
|
14804
|
+
var _classPrivateFieldGet44;
|
|
14805
|
+
(_classPrivateFieldGet44 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet44 === void 0 ? void 0 : _classPrivateFieldGet44.playPauseControlEnabled(shouldDisplay);
|
|
14223
14806
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
|
|
14224
14807
|
}
|
|
14225
14808
|
/**
|
|
@@ -14234,8 +14817,8 @@ var init_wistia_player = __esm({
|
|
|
14234
14817
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
|
|
14235
14818
|
},
|
|
14236
14819
|
set: function set(shouldDisplay) {
|
|
14237
|
-
var
|
|
14238
|
-
(
|
|
14820
|
+
var _classPrivateFieldGet45;
|
|
14821
|
+
(_classPrivateFieldGet45 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.playPauseNotifierEnabled(shouldDisplay);
|
|
14239
14822
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
|
|
14240
14823
|
}
|
|
14241
14824
|
/**
|
|
@@ -14453,8 +15036,8 @@ var init_wistia_player = __esm({
|
|
|
14453
15036
|
}, {
|
|
14454
15037
|
key: "preload",
|
|
14455
15038
|
get: function get() {
|
|
14456
|
-
var _ref11,
|
|
14457
|
-
return (_ref11 = (
|
|
15039
|
+
var _ref11, _classPrivateFieldGet46, _classPrivateFieldGet47;
|
|
15040
|
+
return (_ref11 = (_classPrivateFieldGet46 = (_classPrivateFieldGet47 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.preloadValue()) !== null && _classPrivateFieldGet46 !== void 0 ? _classPrivateFieldGet46 : this.embedOptions.preload) !== null && _ref11 !== void 0 ? _ref11 : void 0;
|
|
14458
15041
|
},
|
|
14459
15042
|
set: function set(preloadValue) {
|
|
14460
15043
|
var prevVal = this.preload;
|
|
@@ -14474,8 +15057,8 @@ var init_wistia_player = __esm({
|
|
|
14474
15057
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
|
|
14475
15058
|
},
|
|
14476
15059
|
set: function set(shouldDisplay) {
|
|
14477
|
-
var
|
|
14478
|
-
(
|
|
15060
|
+
var _classPrivateFieldGet48;
|
|
15061
|
+
(_classPrivateFieldGet48 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.qualityControlEnabled(shouldDisplay);
|
|
14479
15062
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
|
|
14480
15063
|
}
|
|
14481
15064
|
/**
|
|
@@ -14488,8 +15071,8 @@ var init_wistia_player = __esm({
|
|
|
14488
15071
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
|
|
14489
15072
|
},
|
|
14490
15073
|
set: function set(quality) {
|
|
14491
|
-
var
|
|
14492
|
-
(
|
|
15074
|
+
var _classPrivateFieldGet49;
|
|
15075
|
+
(_classPrivateFieldGet49 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet49 === void 0 ? void 0 : _classPrivateFieldGet49.qualityMax(quality);
|
|
14493
15076
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
|
|
14494
15077
|
}
|
|
14495
15078
|
/**
|
|
@@ -14502,8 +15085,8 @@ var init_wistia_player = __esm({
|
|
|
14502
15085
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
|
|
14503
15086
|
},
|
|
14504
15087
|
set: function set(quality) {
|
|
14505
|
-
var
|
|
14506
|
-
(
|
|
15088
|
+
var _classPrivateFieldGet50;
|
|
15089
|
+
(_classPrivateFieldGet50 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet50 === void 0 ? void 0 : _classPrivateFieldGet50.qualityMin(quality);
|
|
14507
15090
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
|
|
14508
15091
|
}
|
|
14509
15092
|
/**
|
|
@@ -14513,8 +15096,8 @@ var init_wistia_player = __esm({
|
|
|
14513
15096
|
}, {
|
|
14514
15097
|
key: "readyState",
|
|
14515
15098
|
get: function get() {
|
|
14516
|
-
var
|
|
14517
|
-
return (
|
|
15099
|
+
var _classPrivateFieldGet51, _classPrivateFieldGet52;
|
|
15100
|
+
return (_classPrivateFieldGet51 = (_classPrivateFieldGet52 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : _classPrivateFieldGet52.getReadyState()) !== null && _classPrivateFieldGet51 !== void 0 ? _classPrivateFieldGet51 : 0;
|
|
14518
15101
|
}
|
|
14519
15102
|
/**
|
|
14520
15103
|
* Returns the current resumable status of the video.
|
|
@@ -14526,8 +15109,8 @@ var init_wistia_player = __esm({
|
|
|
14526
15109
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable");
|
|
14527
15110
|
},
|
|
14528
15111
|
set: function set(resumableState) {
|
|
14529
|
-
var
|
|
14530
|
-
(
|
|
15112
|
+
var _classPrivateFieldGet53;
|
|
15113
|
+
(_classPrivateFieldGet53 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet53 === void 0 ? void 0 : _classPrivateFieldGet53.setResumable(resumableState);
|
|
14531
15114
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
|
|
14532
15115
|
}
|
|
14533
15116
|
/**
|
|
@@ -14540,8 +15123,8 @@ var init_wistia_player = __esm({
|
|
|
14540
15123
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
|
|
14541
15124
|
},
|
|
14542
15125
|
set: function set(radius) {
|
|
14543
|
-
var
|
|
14544
|
-
(
|
|
15126
|
+
var _classPrivateFieldGet54;
|
|
15127
|
+
(_classPrivateFieldGet54 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : _classPrivateFieldGet54.setRoundedPlayer(Number(radius));
|
|
14545
15128
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", radius);
|
|
14546
15129
|
}
|
|
14547
15130
|
/**
|
|
@@ -14552,8 +15135,8 @@ var init_wistia_player = __esm({
|
|
|
14552
15135
|
}, {
|
|
14553
15136
|
key: "secondsWatched",
|
|
14554
15137
|
get: function get() {
|
|
14555
|
-
var
|
|
14556
|
-
return (
|
|
15138
|
+
var _classPrivateFieldGet55, _classPrivateFieldGet56;
|
|
15139
|
+
return (_classPrivateFieldGet55 = (_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.secondsWatched()) !== null && _classPrivateFieldGet55 !== void 0 ? _classPrivateFieldGet55 : 0;
|
|
14557
15140
|
}
|
|
14558
15141
|
/**
|
|
14559
15142
|
* Returns an array where each index represents the number of times the viewer has watched each second of the video.
|
|
@@ -14562,8 +15145,8 @@ var init_wistia_player = __esm({
|
|
|
14562
15145
|
}, {
|
|
14563
15146
|
key: "secondsWatchedVector",
|
|
14564
15147
|
get: function get() {
|
|
14565
|
-
var
|
|
14566
|
-
return (
|
|
15148
|
+
var _classPrivateFieldGet57, _classPrivateFieldGet58;
|
|
15149
|
+
return (_classPrivateFieldGet57 = (_classPrivateFieldGet58 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet58 === void 0 ? void 0 : _classPrivateFieldGet58.secondsWatchedVector()) !== null && _classPrivateFieldGet57 !== void 0 ? _classPrivateFieldGet57 : [];
|
|
14567
15150
|
}
|
|
14568
15151
|
/**
|
|
14569
15152
|
* Returns whether JSON+LD seo data will be injected.
|
|
@@ -14587,8 +15170,8 @@ var init_wistia_player = __esm({
|
|
|
14587
15170
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
|
|
14588
15171
|
},
|
|
14589
15172
|
set: function set(shouldDisplay) {
|
|
14590
|
-
var
|
|
14591
|
-
(
|
|
15173
|
+
var _classPrivateFieldGet59;
|
|
15174
|
+
(_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.settingsControlEnabled(shouldDisplay);
|
|
14592
15175
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
|
|
14593
15176
|
}
|
|
14594
15177
|
/**
|
|
@@ -14625,8 +15208,8 @@ var init_wistia_player = __esm({
|
|
|
14625
15208
|
}, {
|
|
14626
15209
|
key: "state",
|
|
14627
15210
|
get: function get() {
|
|
14628
|
-
var
|
|
14629
|
-
return (
|
|
15211
|
+
var _classPrivateFieldGet60, _classPrivateFieldGet61;
|
|
15212
|
+
return (_classPrivateFieldGet60 = (_classPrivateFieldGet61 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.state()) !== null && _classPrivateFieldGet60 !== void 0 ? _classPrivateFieldGet60 : defaultEmbedOptions.state;
|
|
14630
15213
|
}
|
|
14631
15214
|
/**
|
|
14632
15215
|
* Returns the stats url for the player.
|
|
@@ -14704,12 +15287,12 @@ var init_wistia_player = __esm({
|
|
|
14704
15287
|
}, {
|
|
14705
15288
|
key: "videoQuality",
|
|
14706
15289
|
get: function get() {
|
|
14707
|
-
var _ref12,
|
|
14708
|
-
return (_ref12 = (
|
|
15290
|
+
var _ref12, _classPrivateFieldGet62, _classPrivateFieldGet63;
|
|
15291
|
+
return (_ref12 = (_classPrivateFieldGet62 = (_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.getVideoQuality()) !== null && _classPrivateFieldGet62 !== void 0 ? _classPrivateFieldGet62 : this.embedOptions.videoQuality) !== null && _ref12 !== void 0 ? _ref12 : "auto";
|
|
14709
15292
|
},
|
|
14710
15293
|
set: function set(quality) {
|
|
14711
|
-
var
|
|
14712
|
-
(
|
|
15294
|
+
var _classPrivateFieldGet64;
|
|
15295
|
+
(_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.setVideoQuality(quality);
|
|
14713
15296
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
|
|
14714
15297
|
}
|
|
14715
15298
|
/**
|
|
@@ -14732,8 +15315,8 @@ var init_wistia_player = __esm({
|
|
|
14732
15315
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
|
|
14733
15316
|
},
|
|
14734
15317
|
set: function set(level) {
|
|
14735
|
-
var
|
|
14736
|
-
(
|
|
15318
|
+
var _classPrivateFieldGet65;
|
|
15319
|
+
(_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.volume(level);
|
|
14737
15320
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
|
|
14738
15321
|
}
|
|
14739
15322
|
/**
|
|
@@ -14748,8 +15331,8 @@ var init_wistia_player = __esm({
|
|
|
14748
15331
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
|
|
14749
15332
|
},
|
|
14750
15333
|
set: function set(shouldDisplay) {
|
|
14751
|
-
var
|
|
14752
|
-
(
|
|
15334
|
+
var _classPrivateFieldGet66;
|
|
15335
|
+
(_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.volumeControlEnabled(shouldDisplay);
|
|
14753
15336
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
|
|
14754
15337
|
}
|
|
14755
15338
|
/**
|
|
@@ -14776,11 +15359,11 @@ var init_wistia_player = __esm({
|
|
|
14776
15359
|
*/
|
|
14777
15360
|
function() {
|
|
14778
15361
|
var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
|
|
14779
|
-
var
|
|
15362
|
+
var _classPrivateFieldGet67, _this3 = this;
|
|
14780
15363
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14781
15364
|
while (1) switch (_context.prev = _context.next) {
|
|
14782
15365
|
case 0:
|
|
14783
|
-
return _context.abrupt("return", (
|
|
15366
|
+
return _context.abrupt("return", (_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.cancelFullscreen().then(function() {
|
|
14784
15367
|
_this3._fullscreenState.heightBeforeFullscreen = void 0;
|
|
14785
15368
|
_this3._fullscreenState.widthBeforeFullscreen = void 0;
|
|
14786
15369
|
}));
|
|
@@ -14806,11 +15389,11 @@ var init_wistia_player = __esm({
|
|
|
14806
15389
|
key: "createOverlay",
|
|
14807
15390
|
value: function() {
|
|
14808
15391
|
var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(name, options) {
|
|
14809
|
-
var
|
|
15392
|
+
var _classPrivateFieldGet68;
|
|
14810
15393
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
14811
15394
|
while (1) switch (_context2.prev = _context2.next) {
|
|
14812
15395
|
case 0:
|
|
14813
|
-
if (!((
|
|
15396
|
+
if (!((_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet68 !== void 0 && _classPrivateFieldGet68.defineOverlay)) {
|
|
14814
15397
|
_context2.next = 2;
|
|
14815
15398
|
break;
|
|
14816
15399
|
}
|
|
@@ -14839,11 +15422,11 @@ var init_wistia_player = __esm({
|
|
|
14839
15422
|
case 0:
|
|
14840
15423
|
addPlugin = /* @__PURE__ */ function() {
|
|
14841
15424
|
var _ref13 = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee3() {
|
|
14842
|
-
var
|
|
15425
|
+
var _classPrivateFieldGet69, _classPrivateFieldGet70;
|
|
14843
15426
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
14844
15427
|
while (1) switch (_context3.prev = _context3.next) {
|
|
14845
15428
|
case 0:
|
|
14846
|
-
return _context3.abrupt("return", (
|
|
15429
|
+
return _context3.abrupt("return", (_classPrivateFieldGet69 = (_classPrivateFieldGet70 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet70 === void 0 ? void 0 : _classPrivateFieldGet70.addPlugin(name, options)) !== null && _classPrivateFieldGet69 !== void 0 ? _classPrivateFieldGet69 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
|
|
14847
15430
|
case 1:
|
|
14848
15431
|
case "end":
|
|
14849
15432
|
return _context3.stop();
|
|
@@ -14889,11 +15472,11 @@ var init_wistia_player = __esm({
|
|
|
14889
15472
|
key: "deleteOverlay",
|
|
14890
15473
|
value: function() {
|
|
14891
15474
|
var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5(name) {
|
|
14892
|
-
var
|
|
15475
|
+
var _classPrivateFieldGet71;
|
|
14893
15476
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
14894
15477
|
while (1) switch (_context5.prev = _context5.next) {
|
|
14895
15478
|
case 0:
|
|
14896
|
-
if (!((
|
|
15479
|
+
if (!((_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet71 !== void 0 && _classPrivateFieldGet71.undefineOverlay)) {
|
|
14897
15480
|
_context5.next = 2;
|
|
14898
15481
|
break;
|
|
14899
15482
|
}
|
|
@@ -14915,11 +15498,11 @@ var init_wistia_player = __esm({
|
|
|
14915
15498
|
key: "disableControl",
|
|
14916
15499
|
value: function() {
|
|
14917
15500
|
var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee6(name) {
|
|
14918
|
-
var
|
|
15501
|
+
var _classPrivateFieldGet72;
|
|
14919
15502
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
14920
15503
|
while (1) switch (_context6.prev = _context6.next) {
|
|
14921
15504
|
case 0:
|
|
14922
|
-
if (!((
|
|
15505
|
+
if (!((_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet72 !== void 0 && _classPrivateFieldGet72.setControlEnabled)) {
|
|
14923
15506
|
_context6.next = 2;
|
|
14924
15507
|
break;
|
|
14925
15508
|
}
|
|
@@ -14941,11 +15524,11 @@ var init_wistia_player = __esm({
|
|
|
14941
15524
|
key: "enableControl",
|
|
14942
15525
|
value: function() {
|
|
14943
15526
|
var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee7(name) {
|
|
14944
|
-
var
|
|
15527
|
+
var _classPrivateFieldGet73;
|
|
14945
15528
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
14946
15529
|
while (1) switch (_context7.prev = _context7.next) {
|
|
14947
15530
|
case 0:
|
|
14948
|
-
if (!((
|
|
15531
|
+
if (!((_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet73 !== void 0 && _classPrivateFieldGet73.setControlEnabled)) {
|
|
14949
15532
|
_context7.next = 2;
|
|
14950
15533
|
break;
|
|
14951
15534
|
}
|
|
@@ -14967,16 +15550,16 @@ var init_wistia_player = __esm({
|
|
|
14967
15550
|
key: "enterInputContext",
|
|
14968
15551
|
value: function() {
|
|
14969
15552
|
var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee8(context) {
|
|
14970
|
-
var
|
|
15553
|
+
var _classPrivateFieldGet74, _this5 = this;
|
|
14971
15554
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
14972
15555
|
while (1) switch (_context8.prev = _context8.next) {
|
|
14973
15556
|
case 0:
|
|
14974
|
-
if (!((
|
|
15557
|
+
if (!((_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet74 !== void 0 && _classPrivateFieldGet74.enterInputContext)) {
|
|
14975
15558
|
_context8.next = 2;
|
|
14976
15559
|
break;
|
|
14977
15560
|
}
|
|
14978
15561
|
return _context8.abrupt("return", new Promise(function(resolve) {
|
|
14979
|
-
var
|
|
15562
|
+
var _classPrivateFieldGet75;
|
|
14980
15563
|
var _handler = function handler(event) {
|
|
14981
15564
|
var detail = event.detail;
|
|
14982
15565
|
if (detail.context === context) {
|
|
@@ -14985,7 +15568,7 @@ var init_wistia_player = __esm({
|
|
|
14985
15568
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.ve, _handler);
|
|
14986
15569
|
};
|
|
14987
15570
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.ve, _handler);
|
|
14988
|
-
(
|
|
15571
|
+
(_classPrivateFieldGet75 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet75 === void 0 ? void 0 : _classPrivateFieldGet75.enterInputContext(context);
|
|
14989
15572
|
}));
|
|
14990
15573
|
case 2:
|
|
14991
15574
|
return _context8.abrupt("return", Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
|
|
@@ -15004,11 +15587,11 @@ var init_wistia_player = __esm({
|
|
|
15004
15587
|
key: "exitInputContext",
|
|
15005
15588
|
value: function() {
|
|
15006
15589
|
var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(context) {
|
|
15007
|
-
var
|
|
15590
|
+
var _classPrivateFieldGet76;
|
|
15008
15591
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
15009
15592
|
while (1) switch (_context9.prev = _context9.next) {
|
|
15010
15593
|
case 0:
|
|
15011
|
-
if (!((
|
|
15594
|
+
if (!((_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet76 !== void 0 && _classPrivateFieldGet76.exitInputContext)) {
|
|
15012
15595
|
_context9.next = 2;
|
|
15013
15596
|
break;
|
|
15014
15597
|
}
|
|
@@ -15061,8 +15644,8 @@ var init_wistia_player = __esm({
|
|
|
15061
15644
|
while (1) switch (_context11.prev = _context11.next) {
|
|
15062
15645
|
case 0:
|
|
15063
15646
|
return _context11.abrupt("return", new Promise(function(resolve, reject) {
|
|
15064
|
-
var
|
|
15065
|
-
if ((
|
|
15647
|
+
var _classPrivateFieldGet77;
|
|
15648
|
+
if ((_classPrivateFieldGet77 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet77 !== void 0 && _classPrivateFieldGet77.plugin(name)) {
|
|
15066
15649
|
resolve(_classPrivateFieldGet(_api, _this6).plugin(name));
|
|
15067
15650
|
}
|
|
15068
15651
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -15082,11 +15665,11 @@ var init_wistia_player = __esm({
|
|
|
15082
15665
|
key: "hideOverlay",
|
|
15083
15666
|
value: function() {
|
|
15084
15667
|
var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee12(name) {
|
|
15085
|
-
var
|
|
15668
|
+
var _classPrivateFieldGet78;
|
|
15086
15669
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
15087
15670
|
while (1) switch (_context12.prev = _context12.next) {
|
|
15088
15671
|
case 0:
|
|
15089
|
-
if (!((
|
|
15672
|
+
if (!((_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet78 !== void 0 && _classPrivateFieldGet78.cancelOverlay)) {
|
|
15090
15673
|
_context12.next = 2;
|
|
15091
15674
|
break;
|
|
15092
15675
|
}
|
|
@@ -15113,8 +15696,8 @@ var init_wistia_player = __esm({
|
|
|
15113
15696
|
while (1) switch (_context13.prev = _context13.next) {
|
|
15114
15697
|
case 0:
|
|
15115
15698
|
return _context13.abrupt("return", new Promise(function(resolve, reject) {
|
|
15116
|
-
var
|
|
15117
|
-
if ((
|
|
15699
|
+
var _classPrivateFieldGet79;
|
|
15700
|
+
if ((_classPrivateFieldGet79 = _classPrivateFieldGet(_api, _this7)) !== null && _classPrivateFieldGet79 !== void 0 && _classPrivateFieldGet79.popover) {
|
|
15118
15701
|
_classPrivateFieldGet(_api, _this7).popover.hide();
|
|
15119
15702
|
resolve();
|
|
15120
15703
|
}
|
|
@@ -15135,11 +15718,11 @@ var init_wistia_player = __esm({
|
|
|
15135
15718
|
key: "pause",
|
|
15136
15719
|
value: function() {
|
|
15137
15720
|
var _pause = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee14() {
|
|
15138
|
-
var
|
|
15721
|
+
var _classPrivateFieldGet80;
|
|
15139
15722
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
15140
15723
|
while (1) switch (_context14.prev = _context14.next) {
|
|
15141
15724
|
case 0:
|
|
15142
|
-
return _context14.abrupt("return", (
|
|
15725
|
+
return _context14.abrupt("return", (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.pause());
|
|
15143
15726
|
case 1:
|
|
15144
15727
|
case "end":
|
|
15145
15728
|
return _context14.stop();
|
|
@@ -15155,11 +15738,11 @@ var init_wistia_player = __esm({
|
|
|
15155
15738
|
key: "play",
|
|
15156
15739
|
value: function() {
|
|
15157
15740
|
var _play = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee15() {
|
|
15158
|
-
var
|
|
15741
|
+
var _classPrivateFieldGet81;
|
|
15159
15742
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
15160
15743
|
while (1) switch (_context15.prev = _context15.next) {
|
|
15161
15744
|
case 0:
|
|
15162
|
-
return _context15.abrupt("return", (
|
|
15745
|
+
return _context15.abrupt("return", (_classPrivateFieldGet81 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.play());
|
|
15163
15746
|
case 1:
|
|
15164
15747
|
case "end":
|
|
15165
15748
|
return _context15.stop();
|
|
@@ -15175,11 +15758,11 @@ var init_wistia_player = __esm({
|
|
|
15175
15758
|
key: "releaseControls",
|
|
15176
15759
|
value: function() {
|
|
15177
15760
|
var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee16(name) {
|
|
15178
|
-
var
|
|
15761
|
+
var _classPrivateFieldGet82;
|
|
15179
15762
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
15180
15763
|
while (1) switch (_context16.prev = _context16.next) {
|
|
15181
15764
|
case 0:
|
|
15182
|
-
return _context16.abrupt("return", (
|
|
15765
|
+
return _context16.abrupt("return", (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.releaseControls(name));
|
|
15183
15766
|
case 1:
|
|
15184
15767
|
case "end":
|
|
15185
15768
|
return _context16.stop();
|
|
@@ -15202,27 +15785,17 @@ var init_wistia_player = __esm({
|
|
|
15202
15785
|
case 0:
|
|
15203
15786
|
options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
|
|
15204
15787
|
return _context17.abrupt("return", new Promise(function(resolve, reject) {
|
|
15205
|
-
var
|
|
15788
|
+
var _classPrivateFieldGet83;
|
|
15206
15789
|
if (!_classPrivateFieldGet(_api, _this8)) {
|
|
15207
15790
|
reject(new Error("api not ready to replace"));
|
|
15208
15791
|
}
|
|
15209
|
-
var _handleBeforeReplace = function handleBeforeReplace() {
|
|
15210
|
-
_this8.mediaId = mediaId;
|
|
15211
|
-
_this8.uniqueId = _assertClassBrand(_WistiaPlayer_brand, _this8, _generateUniqueId).call(_this8, mediaId);
|
|
15212
|
-
_this8.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.kY, _handleBeforeReplace);
|
|
15213
|
-
};
|
|
15214
|
-
var _handleAfterReplace = function handleAfterReplace() {
|
|
15215
|
-
_assertClassBrand(_WistiaPlayer_brand, _this8, _maybeInjectJsonLd).call(_this8);
|
|
15216
|
-
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__.gY)("__".concat(_this8.uniqueId, "_dom_options__"), _classPrivateFieldGet(_playerData, _this8).embedOptions);
|
|
15217
|
-
_this8.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace);
|
|
15218
|
-
void _this8.whenApiReady().then(function() {
|
|
15219
|
-
resolve();
|
|
15220
|
-
});
|
|
15221
|
-
};
|
|
15222
|
-
_this8.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.kY, _handleBeforeReplace);
|
|
15223
|
-
_this8.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace);
|
|
15224
15792
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.Z)(_classPrivateFieldGet(_jsonLdId, _this8));
|
|
15225
|
-
|
|
15793
|
+
var _handleAfterReplace2 = function handleAfterReplace() {
|
|
15794
|
+
_this8.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace2);
|
|
15795
|
+
resolve();
|
|
15796
|
+
};
|
|
15797
|
+
_this8.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.$1, _handleAfterReplace2);
|
|
15798
|
+
(_classPrivateFieldGet83 = _classPrivateFieldGet(_api, _this8)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.replaceWith(mediaId, options);
|
|
15226
15799
|
}));
|
|
15227
15800
|
case 2:
|
|
15228
15801
|
case "end":
|
|
@@ -15239,11 +15812,11 @@ var init_wistia_player = __esm({
|
|
|
15239
15812
|
key: "requestControls",
|
|
15240
15813
|
value: function() {
|
|
15241
15814
|
var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee18(name) {
|
|
15242
|
-
var
|
|
15815
|
+
var _classPrivateFieldGet84;
|
|
15243
15816
|
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
15244
15817
|
while (1) switch (_context18.prev = _context18.next) {
|
|
15245
15818
|
case 0:
|
|
15246
|
-
return _context18.abrupt("return", (
|
|
15819
|
+
return _context18.abrupt("return", (_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.requestControls(name));
|
|
15247
15820
|
case 1:
|
|
15248
15821
|
case "end":
|
|
15249
15822
|
return _context18.stop();
|
|
@@ -15259,11 +15832,11 @@ var init_wistia_player = __esm({
|
|
|
15259
15832
|
key: "requestFullscreen",
|
|
15260
15833
|
value: function() {
|
|
15261
15834
|
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee19() {
|
|
15262
|
-
var
|
|
15835
|
+
var _classPrivateFieldGet85;
|
|
15263
15836
|
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
15264
15837
|
while (1) switch (_context19.prev = _context19.next) {
|
|
15265
15838
|
case 0:
|
|
15266
|
-
if (!((
|
|
15839
|
+
if (!((_classPrivateFieldGet85 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet85 !== void 0 && _classPrivateFieldGet85.requestFullscreen)) {
|
|
15267
15840
|
_context19.next = 2;
|
|
15268
15841
|
break;
|
|
15269
15842
|
}
|
|
@@ -15285,11 +15858,11 @@ var init_wistia_player = __esm({
|
|
|
15285
15858
|
key: "showOverlay",
|
|
15286
15859
|
value: function() {
|
|
15287
15860
|
var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee20(name) {
|
|
15288
|
-
var
|
|
15861
|
+
var _classPrivateFieldGet86;
|
|
15289
15862
|
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
15290
15863
|
while (1) switch (_context20.prev = _context20.next) {
|
|
15291
15864
|
case 0:
|
|
15292
|
-
if (!((
|
|
15865
|
+
if (!((_classPrivateFieldGet86 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet86 !== void 0 && _classPrivateFieldGet86.requestOverlay)) {
|
|
15293
15866
|
_context20.next = 2;
|
|
15294
15867
|
break;
|
|
15295
15868
|
}
|
|
@@ -15316,8 +15889,8 @@ var init_wistia_player = __esm({
|
|
|
15316
15889
|
while (1) switch (_context21.prev = _context21.next) {
|
|
15317
15890
|
case 0:
|
|
15318
15891
|
return _context21.abrupt("return", new Promise(function(resolve, reject) {
|
|
15319
|
-
var
|
|
15320
|
-
if ((
|
|
15892
|
+
var _classPrivateFieldGet87;
|
|
15893
|
+
if ((_classPrivateFieldGet87 = _classPrivateFieldGet(_api, _this9)) !== null && _classPrivateFieldGet87 !== void 0 && _classPrivateFieldGet87.popover) {
|
|
15321
15894
|
_classPrivateFieldGet(_api, _this9).popover.show();
|
|
15322
15895
|
resolve();
|
|
15323
15896
|
}
|
|
@@ -15369,7 +15942,7 @@ var init_wistia_player = __esm({
|
|
|
15369
15942
|
key: "whenControlMounted",
|
|
15370
15943
|
value: function() {
|
|
15371
15944
|
var _whenControlMounted = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee23(handle) {
|
|
15372
|
-
var
|
|
15945
|
+
var _classPrivateFieldGet88;
|
|
15373
15946
|
var control;
|
|
15374
15947
|
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
15375
15948
|
while (1) switch (_context23.prev = _context23.next) {
|
|
@@ -15378,7 +15951,7 @@ var init_wistia_player = __esm({
|
|
|
15378
15951
|
return this.whenApiReady();
|
|
15379
15952
|
case 2:
|
|
15380
15953
|
_context23.next = 4;
|
|
15381
|
-
return (
|
|
15954
|
+
return (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.whenControlMounted(handle);
|
|
15382
15955
|
case 4:
|
|
15383
15956
|
control = _context23.sent;
|
|
15384
15957
|
if (control) {
|
|
@@ -15471,9 +16044,18 @@ var init_wistia_player = __esm({
|
|
|
15471
16044
|
};
|
|
15472
16045
|
_classPrivateFieldSet(_resizeObserver, this, new ResizeObserver(resizeCallback));
|
|
15473
16046
|
_classPrivateFieldGet(_resizeObserver, this).observe(this);
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
16047
|
+
var optsForFetch = {
|
|
16048
|
+
deferFetchingToCarousel: _assertClassBrand(_WistiaPlayer_brand, this, _deferMediaDataFetchingToCarouselEmbed).call(this),
|
|
16049
|
+
embedHost: (_this$embedHost = this.embedHost) !== null && _this$embedHost !== void 0 ? _this$embedHost : "",
|
|
16050
|
+
overrideMediaLanguage: this.embedOptions.language
|
|
16051
|
+
};
|
|
16052
|
+
this.getInitialMediaData(mediaId, optsForFetch).then(function(mediaDataOrError) {
|
|
16053
|
+
var _mediaData$hashedId;
|
|
16054
|
+
if ((0, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_31__.V)(mediaDataOrError)) {
|
|
16055
|
+
return;
|
|
16056
|
+
}
|
|
16057
|
+
var mediaData = mediaDataOrError;
|
|
16058
|
+
_this11.mediaId = (_mediaData$hashedId = mediaData.hashedId) !== null && _mediaData$hashedId !== void 0 ? _mediaData$hashedId : "";
|
|
15477
16059
|
_classPrivateFieldGet(_playerData, _this11).setMediaDataSource(mediaData);
|
|
15478
16060
|
_this11.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.rO, {
|
|
15479
16061
|
detail: {
|
|
@@ -15502,16 +16084,16 @@ var init_wistia_player = __esm({
|
|
|
15502
16084
|
}, {
|
|
15503
16085
|
key: "disconnectedCallback",
|
|
15504
16086
|
value: function disconnectedCallback() {
|
|
15505
|
-
var
|
|
16087
|
+
var _classPrivateFieldGet89, _classPrivateFieldGet90, _this$shadowRoot;
|
|
15506
16088
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
|
|
15507
16089
|
return removeListener();
|
|
15508
16090
|
});
|
|
15509
16091
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_23__.Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
15510
16092
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_25__.s3)(this.mediaId);
|
|
15511
|
-
(
|
|
16093
|
+
(_classPrivateFieldGet89 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.disconnect();
|
|
15512
16094
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
15513
16095
|
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_9__.iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
15514
|
-
(
|
|
16096
|
+
(_classPrivateFieldGet90 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.remove();
|
|
15515
16097
|
_classPrivateFieldSet(_api, this, null);
|
|
15516
16098
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
15517
16099
|
_classPrivateFieldSet(_preactRoot, this, null);
|
|
@@ -15522,9 +16104,10 @@ var init_wistia_player = __esm({
|
|
|
15522
16104
|
// Private methods
|
|
15523
16105
|
// --------------------------------------------------
|
|
15524
16106
|
/**
|
|
15525
|
-
*
|
|
15526
|
-
*
|
|
15527
|
-
*
|
|
16107
|
+
* Should the player defer fetching media data to a carousel embed?
|
|
16108
|
+
* Look for a connected carousel embed that is not inside a playlist embed.
|
|
16109
|
+
* If one is found, return true.
|
|
16110
|
+
* @returns {boolean}
|
|
15528
16111
|
*/
|
|
15529
16112
|
}], [{
|
|
15530
16113
|
key: "observedAttributes",
|