@wistia/wistia-player-react 0.7.2 → 0.7.4
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.
|
@@ -1580,6 +1580,11 @@ var __webpack_modules__ = {
|
|
|
1580
1580
|
getContrast
|
|
1581
1581
|
),
|
|
1582
1582
|
/* harmony export */
|
|
1583
|
+
cO: () => (
|
|
1584
|
+
/* binding */
|
|
1585
|
+
DEFAULT_PLAYER_COLOR2
|
|
1586
|
+
),
|
|
1587
|
+
/* harmony export */
|
|
1583
1588
|
hu: () => (
|
|
1584
1589
|
/* binding */
|
|
1585
1590
|
getVideoPlayerIconColor
|
|
@@ -1623,6 +1628,7 @@ var __webpack_modules__ = {
|
|
|
1623
1628
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
1624
1629
|
return n;
|
|
1625
1630
|
}
|
|
1631
|
+
var DEFAULT_PLAYER_COLOR2 = "#2949E5";
|
|
1626
1632
|
var colorContrastRatiosByShape = {
|
|
1627
1633
|
nonText: 3,
|
|
1628
1634
|
// 3:1 - https://www.w3.org/TR/WCAG21/#non-text-contrast
|
|
@@ -1826,6 +1832,24 @@ var __webpack_modules__ = {
|
|
|
1826
1832
|
}
|
|
1827
1833
|
return adjustColorForProperContrast(_playerColor, _playerColor, "paragraphText");
|
|
1828
1834
|
};
|
|
1835
|
+
var SHADE = 0.8;
|
|
1836
|
+
var getBackgroundColorFromPlayerColor = function getBackgroundColorFromPlayerColor2() {
|
|
1837
|
+
var color = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_PLAYER_COLOR2;
|
|
1838
|
+
return new Color(color).shade(SHADE).toHexWithHash();
|
|
1839
|
+
};
|
|
1840
|
+
var isDarkColor = function isDarkColor2(color) {
|
|
1841
|
+
return new Color(color).getRelativeLuminance() < 0.15;
|
|
1842
|
+
};
|
|
1843
|
+
var isVeryDarkColor = function isVeryDarkColor2(color) {
|
|
1844
|
+
return new Color(color).getRelativeLuminance() < 0.05;
|
|
1845
|
+
};
|
|
1846
|
+
var isLightColor = function isLightColor2(color) {
|
|
1847
|
+
return new Color(color).getRelativeLuminance() >= 0.8;
|
|
1848
|
+
};
|
|
1849
|
+
var isMidToneColor = function isMidToneColor2(color) {
|
|
1850
|
+
var relativeLuminance = new Color(color).getRelativeLuminance();
|
|
1851
|
+
return relativeLuminance > 0.13 && relativeLuminance < 0.75;
|
|
1852
|
+
};
|
|
1829
1853
|
},
|
|
1830
1854
|
/***/
|
|
1831
1855
|
1161(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) {
|
|
@@ -5686,8 +5710,9 @@ var __webpack_modules__ = {
|
|
|
5686
5710
|
/* harmony export */
|
|
5687
5711
|
});
|
|
5688
5712
|
var _types_gradient_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(7350);
|
|
5689
|
-
var
|
|
5690
|
-
var
|
|
5713
|
+
var _color_utils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(998);
|
|
5714
|
+
var _color_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5417);
|
|
5715
|
+
var _obj_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(731);
|
|
5691
5716
|
function _slicedToArray2(r, e) {
|
|
5692
5717
|
return _arrayWithHoles2(r) || _iterableToArrayLimit2(r, e) || _unsupportedIterableToArray2(r, e) || _nonIterableRest2();
|
|
5693
5718
|
}
|
|
@@ -5734,12 +5759,12 @@ var __webpack_modules__ = {
|
|
|
5734
5759
|
var GRADIENT_COLOR_INDEX = 0;
|
|
5735
5760
|
var GRADIENT_PERCENTAGE_INDEX = 1;
|
|
5736
5761
|
var DEFAULT_GRADIENT = {
|
|
5737
|
-
colors: [[
|
|
5762
|
+
colors: [[_color_utils_ts__WEBPACK_IMPORTED_MODULE_1__.cO, 0], ["#6A84FF", 1]],
|
|
5738
5763
|
on: true
|
|
5739
5764
|
};
|
|
5740
5765
|
var hexToRGBA = function hexToRGBA2(hex) {
|
|
5741
5766
|
var alpha = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : DEFAULT_ALPHA;
|
|
5742
|
-
var color = new
|
|
5767
|
+
var color = new _color_js__WEBPACK_IMPORTED_MODULE_2__.Q1(hex);
|
|
5743
5768
|
var colorWithAlpha = color.alpha(alpha);
|
|
5744
5769
|
return colorWithAlpha.toRgba();
|
|
5745
5770
|
};
|
|
@@ -5779,6 +5804,12 @@ var __webpack_modules__ = {
|
|
|
5779
5804
|
};
|
|
5780
5805
|
return result;
|
|
5781
5806
|
};
|
|
5807
|
+
var getPlayerColorOrFirstGradientStop = function getPlayerColorOrFirstGradientStop2(playerColor, gradient) {
|
|
5808
|
+
if (!isGradient(gradient) || !gradient.on) {
|
|
5809
|
+
return playerColor !== null && playerColor !== void 0 ? playerColor : DEFAULT_PLAYER_COLOR;
|
|
5810
|
+
}
|
|
5811
|
+
return addHashToHex(getGradientColor(gradient));
|
|
5812
|
+
};
|
|
5782
5813
|
},
|
|
5783
5814
|
/***/
|
|
5784
5815
|
4400(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
|
|
@@ -7228,7 +7259,7 @@ var __webpack_modules__ = {
|
|
|
7228
7259
|
}
|
|
7229
7260
|
}]);
|
|
7230
7261
|
})();
|
|
7231
|
-
var
|
|
7262
|
+
var addHashToHex2 = function addHashToHex3(hex) {
|
|
7232
7263
|
if (isNil(hex)) {
|
|
7233
7264
|
return;
|
|
7234
7265
|
}
|
|
@@ -8232,8 +8263,8 @@ var __webpack_modules__ = {
|
|
|
8232
8263
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8233
8264
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
8234
8265
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8235
|
-
var TAGGED_VERSION = "0.7.
|
|
8236
|
-
var CURRENT_SHA = "
|
|
8266
|
+
var TAGGED_VERSION = "0.7.4";
|
|
8267
|
+
var CURRENT_SHA = "cd6d5f204d2705b44830dc62fffa01754c68f1d5";
|
|
8237
8268
|
var DEFAULT_PROTOCOL = (function() {
|
|
8238
8269
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
8239
8270
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -10411,11 +10442,11 @@ var __webpack_modules__ = {
|
|
|
10411
10442
|
/* harmony export */
|
|
10412
10443
|
b: () => (
|
|
10413
10444
|
/* binding */
|
|
10414
|
-
|
|
10445
|
+
isGradient2
|
|
10415
10446
|
)
|
|
10416
10447
|
/* harmony export */
|
|
10417
10448
|
});
|
|
10418
|
-
var
|
|
10449
|
+
var isGradient2 = function isGradient3(value) {
|
|
10419
10450
|
if (typeof value !== "object" || value === null) {
|
|
10420
10451
|
return false;
|
|
10421
10452
|
}
|
|
@@ -14301,6 +14332,16 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14301
14332
|
get: function get() {
|
|
14302
14333
|
return _classPrivateFieldGet(_api, this);
|
|
14303
14334
|
}
|
|
14335
|
+
/**
|
|
14336
|
+
* Returns the description of the video, as used in the JSON-LD schema
|
|
14337
|
+
* @returns {string}
|
|
14338
|
+
*/
|
|
14339
|
+
}, {
|
|
14340
|
+
key: "description",
|
|
14341
|
+
get: function get() {
|
|
14342
|
+
var _ref5, _classPrivateFieldGet24, _classPrivateFieldGet25, _classPrivateFieldGet26;
|
|
14343
|
+
return (_ref5 = (_classPrivateFieldGet24 = _classPrivateFieldGet(_playerData, this).mediaData.seoDescription) !== null && _classPrivateFieldGet24 !== void 0 ? _classPrivateFieldGet24 : (_classPrivateFieldGet25 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet25 === void 0 ? void 0 : (_classPrivateFieldGet26 = _classPrivateFieldGet25._mediaData) === null || _classPrivateFieldGet26 === void 0 ? void 0 : _classPrivateFieldGet26.seoDescription) !== null && _ref5 !== void 0 ? _ref5 : "";
|
|
14344
|
+
}
|
|
14304
14345
|
/**
|
|
14305
14346
|
* Returns the status of the do not track embed option that controls whether the player
|
|
14306
14347
|
* sends tracking pings.
|
|
@@ -14321,8 +14362,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14321
14362
|
}, {
|
|
14322
14363
|
key: "duration",
|
|
14323
14364
|
get: function get() {
|
|
14324
|
-
var
|
|
14325
|
-
return (
|
|
14365
|
+
var _classPrivateFieldGet27, _classPrivateFieldGet28;
|
|
14366
|
+
return (_classPrivateFieldGet27 = (_classPrivateFieldGet28 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet28 === void 0 ? void 0 : _classPrivateFieldGet28.duration()) !== null && _classPrivateFieldGet27 !== void 0 ? _classPrivateFieldGet27 : 0;
|
|
14326
14367
|
}
|
|
14327
14368
|
/**
|
|
14328
14369
|
* Returns the email associated with this viewing session.
|
|
@@ -14335,8 +14376,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14335
14376
|
}, {
|
|
14336
14377
|
key: "email",
|
|
14337
14378
|
get: function get() {
|
|
14338
|
-
var
|
|
14339
|
-
return (
|
|
14379
|
+
var _ref6, _ref7, _extractEmailFromPara, _classPrivateGetter2;
|
|
14380
|
+
return (_ref6 = (_ref7 = (_extractEmailFromPara = (0, _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_16__.i)(_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl))) !== null && _extractEmailFromPara !== void 0 ? _extractEmailFromPara : (_classPrivateGetter2 = (0, _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_27__.y1)()[_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl)]) === null || _classPrivateGetter2 === void 0 ? void 0 : _classPrivateGetter2.trackEmail) !== null && _ref7 !== void 0 ? _ref7 : this.embedOptions.email) !== null && _ref6 !== void 0 ? _ref6 : void 0;
|
|
14340
14381
|
},
|
|
14341
14382
|
set: function set(newEmail) {
|
|
14342
14383
|
if (this.email === newEmail) {
|
|
@@ -14376,8 +14417,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14376
14417
|
}, {
|
|
14377
14418
|
key: "ended",
|
|
14378
14419
|
get: function get() {
|
|
14379
|
-
var
|
|
14380
|
-
return ((
|
|
14420
|
+
var _classPrivateFieldGet29;
|
|
14421
|
+
return ((_classPrivateFieldGet29 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet29 === void 0 ? void 0 : _classPrivateFieldGet29.state()) === "ended";
|
|
14381
14422
|
}
|
|
14382
14423
|
/**
|
|
14383
14424
|
* Returns the current end video behavior value
|
|
@@ -14390,11 +14431,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14390
14431
|
},
|
|
14391
14432
|
set: function set(behavior) {
|
|
14392
14433
|
if (behavior === "loop") {
|
|
14393
|
-
var
|
|
14394
|
-
(
|
|
14434
|
+
var _classPrivateFieldGet30;
|
|
14435
|
+
(_classPrivateFieldGet30 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet30 === void 0 ? void 0 : _classPrivateFieldGet30.addLoopBehavior();
|
|
14395
14436
|
} else {
|
|
14396
|
-
var
|
|
14397
|
-
(
|
|
14437
|
+
var _classPrivateFieldGet31;
|
|
14438
|
+
(_classPrivateFieldGet31 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet31 === void 0 ? void 0 : _classPrivateFieldGet31.removeLoopBehavior();
|
|
14398
14439
|
}
|
|
14399
14440
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "endVideoBehavior", behavior);
|
|
14400
14441
|
}
|
|
@@ -14405,8 +14446,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14405
14446
|
}, {
|
|
14406
14447
|
key: "eventKey",
|
|
14407
14448
|
get: function get() {
|
|
14408
|
-
var
|
|
14409
|
-
return (
|
|
14449
|
+
var _classPrivateFieldGet32;
|
|
14450
|
+
return (_classPrivateFieldGet32 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet32 === void 0 ? void 0 : _classPrivateFieldGet32.eventKey();
|
|
14410
14451
|
}
|
|
14411
14452
|
/**
|
|
14412
14453
|
* Returns how the video should be sized within its container.
|
|
@@ -14430,8 +14471,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14430
14471
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "fullscreenControl");
|
|
14431
14472
|
},
|
|
14432
14473
|
set: function set(shouldDisplay) {
|
|
14433
|
-
var
|
|
14434
|
-
(
|
|
14474
|
+
var _classPrivateFieldGet33;
|
|
14475
|
+
(_classPrivateFieldGet33 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet33 === void 0 ? void 0 : _classPrivateFieldGet33.fullscreenControlEnabled(shouldDisplay);
|
|
14435
14476
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "fullscreenControl", shouldDisplay);
|
|
14436
14477
|
}
|
|
14437
14478
|
/**
|
|
@@ -14454,14 +14495,14 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14454
14495
|
}, {
|
|
14455
14496
|
key: "inFullscreen",
|
|
14456
14497
|
get: function get() {
|
|
14457
|
-
var
|
|
14458
|
-
return (
|
|
14498
|
+
var _classPrivateFieldGet34, _classPrivateFieldGet35;
|
|
14499
|
+
return (_classPrivateFieldGet34 = (_classPrivateFieldGet35 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet35 === void 0 ? void 0 : _classPrivateFieldGet35.inFullscreen()) !== null && _classPrivateFieldGet34 !== void 0 ? _classPrivateFieldGet34 : false;
|
|
14459
14500
|
}
|
|
14460
14501
|
}, {
|
|
14461
14502
|
key: "inputContext",
|
|
14462
14503
|
get: function get() {
|
|
14463
|
-
var
|
|
14464
|
-
return (
|
|
14504
|
+
var _classPrivateFieldGet36;
|
|
14505
|
+
return (_classPrivateFieldGet36 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet36 === void 0 ? void 0 : _classPrivateFieldGet36.getInputContext();
|
|
14465
14506
|
}
|
|
14466
14507
|
/**
|
|
14467
14508
|
* Returns whether instantHLS is enabled for the video.
|
|
@@ -14470,26 +14511,26 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14470
14511
|
}, {
|
|
14471
14512
|
key: "instantHls",
|
|
14472
14513
|
get: function get() {
|
|
14473
|
-
var
|
|
14474
|
-
return (
|
|
14514
|
+
var _classPrivateFieldGet37, _classPrivateFieldGet38;
|
|
14515
|
+
return (_classPrivateFieldGet37 = (_classPrivateFieldGet38 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet38 === void 0 ? void 0 : _classPrivateFieldGet38.isInstantHls()) !== null && _classPrivateFieldGet37 !== void 0 ? _classPrivateFieldGet37 : false;
|
|
14475
14516
|
}
|
|
14476
14517
|
// the publicApi returns a language object, but you are not allowed to pass that object as a type when setting the language
|
|
14477
14518
|
// eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs
|
|
14478
14519
|
}, {
|
|
14479
14520
|
key: "language",
|
|
14480
14521
|
get: function get() {
|
|
14481
|
-
var
|
|
14482
|
-
return (
|
|
14522
|
+
var _classPrivateFieldGet39, _classPrivateFieldGet40;
|
|
14523
|
+
return (_classPrivateFieldGet39 = (_classPrivateFieldGet40 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet40 === void 0 ? void 0 : _classPrivateFieldGet40.language()) !== null && _classPrivateFieldGet39 !== void 0 ? _classPrivateFieldGet39 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
14483
14524
|
},
|
|
14484
14525
|
set: function set(language) {
|
|
14485
|
-
var
|
|
14486
|
-
(
|
|
14526
|
+
var _classPrivateFieldGet41;
|
|
14527
|
+
(_classPrivateFieldGet41 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet41 === void 0 ? void 0 : _classPrivateFieldGet41.language(language);
|
|
14487
14528
|
}
|
|
14488
14529
|
}, {
|
|
14489
14530
|
key: "languages",
|
|
14490
14531
|
get: function get() {
|
|
14491
|
-
var
|
|
14492
|
-
return (
|
|
14532
|
+
var _classPrivateFieldGet42, _classPrivateFieldGet43;
|
|
14533
|
+
return (_classPrivateFieldGet42 = (_classPrivateFieldGet43 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet43 === void 0 ? void 0 : _classPrivateFieldGet43.languages()) !== null && _classPrivateFieldGet42 !== void 0 ? _classPrivateFieldGet42 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
|
|
14493
14534
|
}
|
|
14494
14535
|
/**
|
|
14495
14536
|
* Returns all the mediaData set on the WistiaPlayer
|
|
@@ -14525,8 +14566,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14525
14566
|
}, {
|
|
14526
14567
|
key: "mediaLanguage",
|
|
14527
14568
|
get: function get() {
|
|
14528
|
-
var
|
|
14529
|
-
return (
|
|
14569
|
+
var _classPrivateFieldGet44, _classPrivateFieldGet45;
|
|
14570
|
+
return (_classPrivateFieldGet44 = (_classPrivateFieldGet45 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet45 === void 0 ? void 0 : _classPrivateFieldGet45.mediaLanguage()) !== null && _classPrivateFieldGet44 !== void 0 ? _classPrivateFieldGet44 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
14530
14571
|
}
|
|
14531
14572
|
/**
|
|
14532
14573
|
* Changes the language of the media stream/content.
|
|
@@ -14536,18 +14577,18 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14536
14577
|
}, {
|
|
14537
14578
|
key: "mediaLanguageCode",
|
|
14538
14579
|
get: function get() {
|
|
14539
|
-
var
|
|
14540
|
-
return (
|
|
14580
|
+
var _classPrivateFieldGet46, _classPrivateFieldGet47;
|
|
14581
|
+
return (_classPrivateFieldGet46 = (_classPrivateFieldGet47 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet47 === void 0 ? void 0 : _classPrivateFieldGet47.mediaLanguageCode()) !== null && _classPrivateFieldGet46 !== void 0 ? _classPrivateFieldGet46 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this).wistiaLanguageCode;
|
|
14541
14582
|
},
|
|
14542
14583
|
set: function set(languageCode) {
|
|
14543
|
-
var
|
|
14544
|
-
(
|
|
14584
|
+
var _classPrivateFieldGet48;
|
|
14585
|
+
(_classPrivateFieldGet48 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet48 === void 0 ? void 0 : _classPrivateFieldGet48.mediaLanguageCode(languageCode);
|
|
14545
14586
|
}
|
|
14546
14587
|
}, {
|
|
14547
14588
|
key: "mediaLanguages",
|
|
14548
14589
|
get: function get() {
|
|
14549
|
-
var
|
|
14550
|
-
return (
|
|
14590
|
+
var _classPrivateFieldGet49, _classPrivateFieldGet50;
|
|
14591
|
+
return (_classPrivateFieldGet49 = (_classPrivateFieldGet50 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet50 === void 0 ? void 0 : _classPrivateFieldGet50.mediaLanguages()) !== null && _classPrivateFieldGet49 !== void 0 ? _classPrivateFieldGet49 : [_assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this)];
|
|
14551
14592
|
}
|
|
14552
14593
|
/**
|
|
14553
14594
|
* Returns if player is currently muted
|
|
@@ -14556,8 +14597,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14556
14597
|
}, {
|
|
14557
14598
|
key: "muted",
|
|
14558
14599
|
get: function get() {
|
|
14559
|
-
var
|
|
14560
|
-
return (
|
|
14600
|
+
var _ref8, _classPrivateFieldGet51, _classPrivateFieldGet52;
|
|
14601
|
+
return (_ref8 = (_classPrivateFieldGet51 = (_classPrivateFieldGet52 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet52 === void 0 ? void 0 : _classPrivateFieldGet52.isMuted()) !== null && _classPrivateFieldGet51 !== void 0 ? _classPrivateFieldGet51 : this.embedOptions.muted) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
14561
14602
|
},
|
|
14562
14603
|
set: function set(shouldMute) {
|
|
14563
14604
|
if (_classPrivateFieldGet(_impl, this)) {
|
|
@@ -14577,8 +14618,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14577
14618
|
}, {
|
|
14578
14619
|
key: "name",
|
|
14579
14620
|
get: function get() {
|
|
14580
|
-
var
|
|
14581
|
-
return (
|
|
14621
|
+
var _ref9, _classPrivateFieldGet53, _classPrivateFieldGet54, _classPrivateFieldGet55;
|
|
14622
|
+
return (_ref9 = (_classPrivateFieldGet53 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet53 !== void 0 ? _classPrivateFieldGet53 : (_classPrivateFieldGet54 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet54 === void 0 ? void 0 : (_classPrivateFieldGet55 = _classPrivateFieldGet54._mediaData) === null || _classPrivateFieldGet55 === void 0 ? void 0 : _classPrivateFieldGet55.name) !== null && _ref9 !== void 0 ? _ref9 : void 0;
|
|
14582
14623
|
}
|
|
14583
14624
|
/**
|
|
14584
14625
|
* Returns the status of the opaqueControls embed option, which determines
|
|
@@ -14592,9 +14633,9 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14592
14633
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "opaqueControls");
|
|
14593
14634
|
},
|
|
14594
14635
|
set: function set(opaqueControls) {
|
|
14595
|
-
var
|
|
14636
|
+
var _classPrivateFieldGet56;
|
|
14596
14637
|
var valueAsBoolean = Boolean(opaqueControls);
|
|
14597
|
-
(
|
|
14638
|
+
(_classPrivateFieldGet56 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet56 === void 0 ? void 0 : _classPrivateFieldGet56.opaqueControls(valueAsBoolean);
|
|
14598
14639
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "opaqueControls", valueAsBoolean);
|
|
14599
14640
|
}
|
|
14600
14641
|
}, {
|
|
@@ -14612,8 +14653,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14612
14653
|
}, {
|
|
14613
14654
|
key: "paused",
|
|
14614
14655
|
get: function get() {
|
|
14615
|
-
var
|
|
14616
|
-
return ((
|
|
14656
|
+
var _classPrivateFieldGet57;
|
|
14657
|
+
return ((_classPrivateFieldGet57 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet57 === void 0 ? void 0 : _classPrivateFieldGet57.state()) === "paused";
|
|
14617
14658
|
}
|
|
14618
14659
|
/**
|
|
14619
14660
|
* Returns the percent of the video that has been watched as a decimal between 0 and 1.
|
|
@@ -14622,8 +14663,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14622
14663
|
}, {
|
|
14623
14664
|
key: "percentWatched",
|
|
14624
14665
|
get: function get() {
|
|
14625
|
-
var
|
|
14626
|
-
return (
|
|
14666
|
+
var _classPrivateFieldGet58, _classPrivateFieldGet59;
|
|
14667
|
+
return (_classPrivateFieldGet58 = (_classPrivateFieldGet59 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet59 === void 0 ? void 0 : _classPrivateFieldGet59.percentWatched()) !== null && _classPrivateFieldGet58 !== void 0 ? _classPrivateFieldGet58 : 0;
|
|
14627
14668
|
}
|
|
14628
14669
|
/**
|
|
14629
14670
|
* Returns the playback rate of the video.
|
|
@@ -14632,12 +14673,12 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14632
14673
|
}, {
|
|
14633
14674
|
key: "playbackRate",
|
|
14634
14675
|
get: function get() {
|
|
14635
|
-
var
|
|
14636
|
-
return (
|
|
14676
|
+
var _ref0, _classPrivateFieldGet60, _classPrivateFieldGet61;
|
|
14677
|
+
return (_ref0 = (_classPrivateFieldGet60 = (_classPrivateFieldGet61 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet61 === void 0 ? void 0 : _classPrivateFieldGet61.playbackRate()) !== null && _classPrivateFieldGet60 !== void 0 ? _classPrivateFieldGet60 : this.embedOptions.playbackRate) !== null && _ref0 !== void 0 ? _ref0 : 1;
|
|
14637
14678
|
},
|
|
14638
14679
|
set: function set(rate) {
|
|
14639
|
-
var
|
|
14640
|
-
(
|
|
14680
|
+
var _classPrivateFieldGet62;
|
|
14681
|
+
(_classPrivateFieldGet62 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet62 === void 0 ? void 0 : _classPrivateFieldGet62.playbackRate(rate);
|
|
14641
14682
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRate", rate);
|
|
14642
14683
|
}
|
|
14643
14684
|
/**
|
|
@@ -14650,8 +14691,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14650
14691
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playbackRateControl");
|
|
14651
14692
|
},
|
|
14652
14693
|
set: function set(shouldDisplay) {
|
|
14653
|
-
var
|
|
14654
|
-
(
|
|
14694
|
+
var _classPrivateFieldGet63;
|
|
14695
|
+
(_classPrivateFieldGet63 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet63 === void 0 ? void 0 : _classPrivateFieldGet63.playbackRateControlEnabled(shouldDisplay);
|
|
14655
14696
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playbackRateControl", shouldDisplay);
|
|
14656
14697
|
}
|
|
14657
14698
|
/**
|
|
@@ -14664,8 +14705,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14664
14705
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playBarControl");
|
|
14665
14706
|
},
|
|
14666
14707
|
set: function set(shouldDisplay) {
|
|
14667
|
-
var
|
|
14668
|
-
(
|
|
14708
|
+
var _classPrivateFieldGet64;
|
|
14709
|
+
(_classPrivateFieldGet64 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet64 === void 0 ? void 0 : _classPrivateFieldGet64.playbarControlEnabled(shouldDisplay);
|
|
14669
14710
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playBarControl", shouldDisplay);
|
|
14670
14711
|
}
|
|
14671
14712
|
/**
|
|
@@ -14678,8 +14719,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14678
14719
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerBorderRadius");
|
|
14679
14720
|
},
|
|
14680
14721
|
set: function set(radius) {
|
|
14681
|
-
var
|
|
14682
|
-
(
|
|
14722
|
+
var _classPrivateFieldGet65;
|
|
14723
|
+
(_classPrivateFieldGet65 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet65 === void 0 ? void 0 : _classPrivateFieldGet65.setPlayerBorderRadius(Number(radius));
|
|
14683
14724
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerBorderRadius", Number(radius));
|
|
14684
14725
|
}
|
|
14685
14726
|
/**
|
|
@@ -14697,8 +14738,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14697
14738
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playerColor");
|
|
14698
14739
|
},
|
|
14699
14740
|
set: function set(newColor) {
|
|
14700
|
-
var
|
|
14701
|
-
(
|
|
14741
|
+
var _classPrivateFieldGet66;
|
|
14742
|
+
(_classPrivateFieldGet66 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet66 === void 0 ? void 0 : _classPrivateFieldGet66.playerColor(newColor);
|
|
14702
14743
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColor", newColor);
|
|
14703
14744
|
}
|
|
14704
14745
|
/**
|
|
@@ -14715,11 +14756,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14715
14756
|
return void 0;
|
|
14716
14757
|
},
|
|
14717
14758
|
set: function set(gradient) {
|
|
14718
|
-
var
|
|
14759
|
+
var _classPrivateFieldGet67;
|
|
14719
14760
|
if (!(0, _types_gradient_ts__WEBPACK_IMPORTED_MODULE_36__.b)(gradient)) {
|
|
14720
14761
|
throw new Error("playerColorGradient must be a valid gradient object");
|
|
14721
14762
|
}
|
|
14722
|
-
(
|
|
14763
|
+
(_classPrivateFieldGet67 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet67 === void 0 ? void 0 : _classPrivateFieldGet67.playerColorGradient(gradient);
|
|
14723
14764
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playerColorGradient", gradient);
|
|
14724
14765
|
}
|
|
14725
14766
|
/**
|
|
@@ -14732,8 +14773,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14732
14773
|
}, {
|
|
14733
14774
|
key: "playerForce",
|
|
14734
14775
|
get: function get() {
|
|
14735
|
-
var
|
|
14736
|
-
return (
|
|
14776
|
+
var _ref1;
|
|
14777
|
+
return (_ref1 = this.getAttribute("player-force")) !== null && _ref1 !== void 0 ? _ref1 : void 0;
|
|
14737
14778
|
},
|
|
14738
14779
|
set: function set(newPlayer) {
|
|
14739
14780
|
_classPrivateFieldGet(_logger, this).info("set playerForce", newPlayer);
|
|
@@ -14777,8 +14818,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14777
14818
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseControl");
|
|
14778
14819
|
},
|
|
14779
14820
|
set: function set(shouldDisplay) {
|
|
14780
|
-
var
|
|
14781
|
-
(
|
|
14821
|
+
var _classPrivateFieldGet68;
|
|
14822
|
+
(_classPrivateFieldGet68 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet68 === void 0 ? void 0 : _classPrivateFieldGet68.playPauseControlEnabled(shouldDisplay);
|
|
14782
14823
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseControl", shouldDisplay);
|
|
14783
14824
|
}
|
|
14784
14825
|
/**
|
|
@@ -14793,8 +14834,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
14793
14834
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "playPauseNotifier");
|
|
14794
14835
|
},
|
|
14795
14836
|
set: function set(shouldDisplay) {
|
|
14796
|
-
var
|
|
14797
|
-
(
|
|
14837
|
+
var _classPrivateFieldGet69;
|
|
14838
|
+
(_classPrivateFieldGet69 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet69 === void 0 ? void 0 : _classPrivateFieldGet69.playPauseNotifierEnabled(shouldDisplay);
|
|
14798
14839
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "playPauseNotifier", shouldDisplay);
|
|
14799
14840
|
}
|
|
14800
14841
|
/**
|
|
@@ -15014,8 +15055,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15014
15055
|
}, {
|
|
15015
15056
|
key: "preload",
|
|
15016
15057
|
get: function get() {
|
|
15017
|
-
var
|
|
15018
|
-
return (
|
|
15058
|
+
var _ref10, _classPrivateFieldGet70, _classPrivateFieldGet71;
|
|
15059
|
+
return (_ref10 = (_classPrivateFieldGet70 = (_classPrivateFieldGet71 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet71 === void 0 ? void 0 : _classPrivateFieldGet71.preloadValue()) !== null && _classPrivateFieldGet70 !== void 0 ? _classPrivateFieldGet70 : this.embedOptions.preload) !== null && _ref10 !== void 0 ? _ref10 : "metadata";
|
|
15019
15060
|
},
|
|
15020
15061
|
set: function set(preloadValue) {
|
|
15021
15062
|
var prevVal = this.preload;
|
|
@@ -15035,8 +15076,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15035
15076
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityControl");
|
|
15036
15077
|
},
|
|
15037
15078
|
set: function set(shouldDisplay) {
|
|
15038
|
-
var
|
|
15039
|
-
(
|
|
15079
|
+
var _classPrivateFieldGet72;
|
|
15080
|
+
(_classPrivateFieldGet72 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet72 === void 0 ? void 0 : _classPrivateFieldGet72.qualityControlEnabled(shouldDisplay);
|
|
15040
15081
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityControl", shouldDisplay);
|
|
15041
15082
|
}
|
|
15042
15083
|
/**
|
|
@@ -15049,8 +15090,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15049
15090
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMax");
|
|
15050
15091
|
},
|
|
15051
15092
|
set: function set(quality) {
|
|
15052
|
-
var
|
|
15053
|
-
(
|
|
15093
|
+
var _classPrivateFieldGet73;
|
|
15094
|
+
(_classPrivateFieldGet73 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet73 === void 0 ? void 0 : _classPrivateFieldGet73.qualityMax(quality);
|
|
15054
15095
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMax", quality);
|
|
15055
15096
|
}
|
|
15056
15097
|
/**
|
|
@@ -15063,8 +15104,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15063
15104
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "qualityMin");
|
|
15064
15105
|
},
|
|
15065
15106
|
set: function set(quality) {
|
|
15066
|
-
var
|
|
15067
|
-
(
|
|
15107
|
+
var _classPrivateFieldGet74;
|
|
15108
|
+
(_classPrivateFieldGet74 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet74 === void 0 ? void 0 : _classPrivateFieldGet74.qualityMin(quality);
|
|
15068
15109
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "qualityMin", quality);
|
|
15069
15110
|
}
|
|
15070
15111
|
/**
|
|
@@ -15074,8 +15115,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15074
15115
|
}, {
|
|
15075
15116
|
key: "readyState",
|
|
15076
15117
|
get: function get() {
|
|
15077
|
-
var
|
|
15078
|
-
return (
|
|
15118
|
+
var _classPrivateFieldGet75, _classPrivateFieldGet76;
|
|
15119
|
+
return (_classPrivateFieldGet75 = (_classPrivateFieldGet76 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet76 === void 0 ? void 0 : _classPrivateFieldGet76.getReadyState()) !== null && _classPrivateFieldGet75 !== void 0 ? _classPrivateFieldGet75 : 0;
|
|
15079
15120
|
}
|
|
15080
15121
|
/**
|
|
15081
15122
|
* Returns the current resumable status of the video.
|
|
@@ -15088,8 +15129,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15088
15129
|
return (_assertClassBrand$cal = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "resumable")) !== null && _assertClassBrand$cal !== void 0 ? _assertClassBrand$cal : "auto";
|
|
15089
15130
|
},
|
|
15090
15131
|
set: function set(resumableState) {
|
|
15091
|
-
var
|
|
15092
|
-
(
|
|
15132
|
+
var _classPrivateFieldGet77;
|
|
15133
|
+
(_classPrivateFieldGet77 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet77 === void 0 ? void 0 : _classPrivateFieldGet77.setResumable(resumableState);
|
|
15093
15134
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "resumable", resumableState);
|
|
15094
15135
|
}
|
|
15095
15136
|
/**
|
|
@@ -15102,8 +15143,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15102
15143
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "roundedPlayer");
|
|
15103
15144
|
},
|
|
15104
15145
|
set: function set(radius) {
|
|
15105
|
-
var
|
|
15106
|
-
(
|
|
15146
|
+
var _classPrivateFieldGet78;
|
|
15147
|
+
(_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.setRoundedPlayer(Number(radius));
|
|
15107
15148
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "roundedPlayer", Number(radius));
|
|
15108
15149
|
}
|
|
15109
15150
|
/**
|
|
@@ -15114,8 +15155,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15114
15155
|
}, {
|
|
15115
15156
|
key: "secondsWatched",
|
|
15116
15157
|
get: function get() {
|
|
15117
|
-
var
|
|
15118
|
-
return (
|
|
15158
|
+
var _classPrivateFieldGet79, _classPrivateFieldGet80;
|
|
15159
|
+
return (_classPrivateFieldGet79 = (_classPrivateFieldGet80 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet80 === void 0 ? void 0 : _classPrivateFieldGet80.secondsWatched()) !== null && _classPrivateFieldGet79 !== void 0 ? _classPrivateFieldGet79 : 0;
|
|
15119
15160
|
}
|
|
15120
15161
|
/**
|
|
15121
15162
|
* Returns an array where each index represents the number of times the viewer has watched each second of the video.
|
|
@@ -15124,8 +15165,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15124
15165
|
}, {
|
|
15125
15166
|
key: "secondsWatchedVector",
|
|
15126
15167
|
get: function get() {
|
|
15127
|
-
var
|
|
15128
|
-
return (
|
|
15168
|
+
var _classPrivateFieldGet81, _classPrivateFieldGet82;
|
|
15169
|
+
return (_classPrivateFieldGet81 = (_classPrivateFieldGet82 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet82 === void 0 ? void 0 : _classPrivateFieldGet82.secondsWatchedVector()) !== null && _classPrivateFieldGet81 !== void 0 ? _classPrivateFieldGet81 : [];
|
|
15129
15170
|
}
|
|
15130
15171
|
/**
|
|
15131
15172
|
* Returns whether JSON+LD seo data will be injected.
|
|
@@ -15149,8 +15190,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15149
15190
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "settingsControl");
|
|
15150
15191
|
},
|
|
15151
15192
|
set: function set(shouldDisplay) {
|
|
15152
|
-
var
|
|
15153
|
-
(
|
|
15193
|
+
var _classPrivateFieldGet83;
|
|
15194
|
+
(_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.settingsControlEnabled(shouldDisplay);
|
|
15154
15195
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "settingsControl", shouldDisplay);
|
|
15155
15196
|
}
|
|
15156
15197
|
/**
|
|
@@ -15172,10 +15213,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15172
15213
|
}, {
|
|
15173
15214
|
key: "sourceLanguage",
|
|
15174
15215
|
get: function get() {
|
|
15175
|
-
var
|
|
15176
|
-
return (
|
|
15216
|
+
var _classPrivateFieldGet84, _classPrivateFieldGet85, _classPrivateFieldGet86;
|
|
15217
|
+
return (_classPrivateFieldGet84 = (_classPrivateFieldGet85 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet85 === void 0 ? void 0 : _classPrivateFieldGet85.find(function(loc) {
|
|
15177
15218
|
return loc.isOriginal;
|
|
15178
|
-
})) !== null &&
|
|
15219
|
+
})) !== null && _classPrivateFieldGet84 !== void 0 ? _classPrivateFieldGet84 : (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86[0];
|
|
15179
15220
|
}
|
|
15180
15221
|
/**
|
|
15181
15222
|
* Returns the source media id for the player. If a player has different localized versions,
|
|
@@ -15195,8 +15236,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15195
15236
|
}, {
|
|
15196
15237
|
key: "state",
|
|
15197
15238
|
get: function get() {
|
|
15198
|
-
var
|
|
15199
|
-
return (
|
|
15239
|
+
var _classPrivateFieldGet87, _classPrivateFieldGet88;
|
|
15240
|
+
return (_classPrivateFieldGet87 = (_classPrivateFieldGet88 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet88 === void 0 ? void 0 : _classPrivateFieldGet88.state()) !== null && _classPrivateFieldGet87 !== void 0 ? _classPrivateFieldGet87 : defaultEmbedOptions.state;
|
|
15200
15241
|
}
|
|
15201
15242
|
/**
|
|
15202
15243
|
* Returns the stats url for the player.
|
|
@@ -15278,12 +15319,12 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15278
15319
|
}, {
|
|
15279
15320
|
key: "videoQuality",
|
|
15280
15321
|
get: function get() {
|
|
15281
|
-
var
|
|
15282
|
-
return (
|
|
15322
|
+
var _ref11, _classPrivateFieldGet89, _classPrivateFieldGet90;
|
|
15323
|
+
return (_ref11 = (_classPrivateFieldGet89 = (_classPrivateFieldGet90 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet90 === void 0 ? void 0 : _classPrivateFieldGet90.getVideoQuality()) !== null && _classPrivateFieldGet89 !== void 0 ? _classPrivateFieldGet89 : this.embedOptions.videoQuality) !== null && _ref11 !== void 0 ? _ref11 : "auto";
|
|
15283
15324
|
},
|
|
15284
15325
|
set: function set(quality) {
|
|
15285
|
-
var
|
|
15286
|
-
(
|
|
15326
|
+
var _classPrivateFieldGet91;
|
|
15327
|
+
(_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.setVideoQuality(quality);
|
|
15287
15328
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "videoQuality", quality);
|
|
15288
15329
|
}
|
|
15289
15330
|
/**
|
|
@@ -15306,8 +15347,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15306
15347
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volume");
|
|
15307
15348
|
},
|
|
15308
15349
|
set: function set(level) {
|
|
15309
|
-
var
|
|
15310
|
-
(
|
|
15350
|
+
var _classPrivateFieldGet92;
|
|
15351
|
+
(_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.volume(level);
|
|
15311
15352
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volume", level);
|
|
15312
15353
|
}
|
|
15313
15354
|
/**
|
|
@@ -15322,8 +15363,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15322
15363
|
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, "volumeControl");
|
|
15323
15364
|
},
|
|
15324
15365
|
set: function set(shouldDisplay) {
|
|
15325
|
-
var
|
|
15326
|
-
(
|
|
15366
|
+
var _classPrivateFieldGet93;
|
|
15367
|
+
(_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volumeControlEnabled(shouldDisplay);
|
|
15327
15368
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, "volumeControl", shouldDisplay);
|
|
15328
15369
|
}
|
|
15329
15370
|
/**
|
|
@@ -15369,11 +15410,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15369
15410
|
key: "cancelFullscreen",
|
|
15370
15411
|
value: (function() {
|
|
15371
15412
|
var _cancelFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
|
|
15372
|
-
var
|
|
15413
|
+
var _classPrivateFieldGet94, _this3 = this;
|
|
15373
15414
|
return _regenerator().w(function(_context) {
|
|
15374
15415
|
while (1) switch (_context.n) {
|
|
15375
15416
|
case 0:
|
|
15376
|
-
return _context.a(2, (
|
|
15417
|
+
return _context.a(2, (_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.cancelFullscreen().then(function() {
|
|
15377
15418
|
_this3._fullscreenState.heightBeforeFullscreen = void 0;
|
|
15378
15419
|
_this3._fullscreenState.widthBeforeFullscreen = void 0;
|
|
15379
15420
|
}));
|
|
@@ -15389,11 +15430,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15389
15430
|
key: "createOverlay",
|
|
15390
15431
|
value: (function() {
|
|
15391
15432
|
var _createOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee2(name, options) {
|
|
15392
|
-
var
|
|
15433
|
+
var _classPrivateFieldGet95;
|
|
15393
15434
|
return _regenerator().w(function(_context2) {
|
|
15394
15435
|
while (1) switch (_context2.n) {
|
|
15395
15436
|
case 0:
|
|
15396
|
-
if (!((
|
|
15437
|
+
if (!((_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet95 !== void 0 && _classPrivateFieldGet95.defineOverlay)) {
|
|
15397
15438
|
_context2.n = 1;
|
|
15398
15439
|
break;
|
|
15399
15440
|
}
|
|
@@ -15418,17 +15459,17 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15418
15459
|
while (1) switch (_context5.n) {
|
|
15419
15460
|
case 0:
|
|
15420
15461
|
addPlugin = /* @__PURE__ */ (function() {
|
|
15421
|
-
var
|
|
15422
|
-
var
|
|
15462
|
+
var _ref12 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee3() {
|
|
15463
|
+
var _classPrivateFieldGet96, _classPrivateFieldGet97;
|
|
15423
15464
|
return _regenerator().w(function(_context3) {
|
|
15424
15465
|
while (1) switch (_context3.n) {
|
|
15425
15466
|
case 0:
|
|
15426
|
-
return _context3.a(2, (
|
|
15467
|
+
return _context3.a(2, (_classPrivateFieldGet96 = (_classPrivateFieldGet97 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet97 === void 0 ? void 0 : _classPrivateFieldGet97.addPlugin(name, options)) !== null && _classPrivateFieldGet96 !== void 0 ? _classPrivateFieldGet96 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
|
|
15427
15468
|
}
|
|
15428
15469
|
}, _callee3);
|
|
15429
15470
|
}));
|
|
15430
15471
|
return function addPlugin2() {
|
|
15431
|
-
return
|
|
15472
|
+
return _ref12.apply(this, arguments);
|
|
15432
15473
|
};
|
|
15433
15474
|
})();
|
|
15434
15475
|
if (!_classPrivateFieldGet(_api, this)) {
|
|
@@ -15468,11 +15509,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15468
15509
|
key: "deleteOverlay",
|
|
15469
15510
|
value: (function() {
|
|
15470
15511
|
var _deleteOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee6(name) {
|
|
15471
|
-
var
|
|
15512
|
+
var _classPrivateFieldGet98;
|
|
15472
15513
|
return _regenerator().w(function(_context6) {
|
|
15473
15514
|
while (1) switch (_context6.n) {
|
|
15474
15515
|
case 0:
|
|
15475
|
-
if (!((
|
|
15516
|
+
if (!((_classPrivateFieldGet98 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet98 !== void 0 && _classPrivateFieldGet98.undefineOverlay)) {
|
|
15476
15517
|
_context6.n = 1;
|
|
15477
15518
|
break;
|
|
15478
15519
|
}
|
|
@@ -15491,11 +15532,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15491
15532
|
key: "disableControl",
|
|
15492
15533
|
value: (function() {
|
|
15493
15534
|
var _disableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee7(name) {
|
|
15494
|
-
var
|
|
15535
|
+
var _classPrivateFieldGet99;
|
|
15495
15536
|
return _regenerator().w(function(_context7) {
|
|
15496
15537
|
while (1) switch (_context7.n) {
|
|
15497
15538
|
case 0:
|
|
15498
|
-
if (!((
|
|
15539
|
+
if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.setControlEnabled)) {
|
|
15499
15540
|
_context7.n = 1;
|
|
15500
15541
|
break;
|
|
15501
15542
|
}
|
|
@@ -15514,11 +15555,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15514
15555
|
key: "enableControl",
|
|
15515
15556
|
value: (function() {
|
|
15516
15557
|
var _enableControl = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee8(name) {
|
|
15517
|
-
var
|
|
15558
|
+
var _classPrivateFieldGet100;
|
|
15518
15559
|
return _regenerator().w(function(_context8) {
|
|
15519
15560
|
while (1) switch (_context8.n) {
|
|
15520
15561
|
case 0:
|
|
15521
|
-
if (!((
|
|
15562
|
+
if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
|
|
15522
15563
|
_context8.n = 1;
|
|
15523
15564
|
break;
|
|
15524
15565
|
}
|
|
@@ -15537,16 +15578,16 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15537
15578
|
key: "enterInputContext",
|
|
15538
15579
|
value: (function() {
|
|
15539
15580
|
var _enterInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee9(context) {
|
|
15540
|
-
var
|
|
15581
|
+
var _classPrivateFieldGet101, _this5 = this;
|
|
15541
15582
|
return _regenerator().w(function(_context9) {
|
|
15542
15583
|
while (1) switch (_context9.n) {
|
|
15543
15584
|
case 0:
|
|
15544
|
-
if (!((
|
|
15585
|
+
if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.enterInputContext)) {
|
|
15545
15586
|
_context9.n = 1;
|
|
15546
15587
|
break;
|
|
15547
15588
|
}
|
|
15548
15589
|
return _context9.a(2, new Promise(function(resolve) {
|
|
15549
|
-
var
|
|
15590
|
+
var _classPrivateFieldGet102;
|
|
15550
15591
|
var _handler = function handler(event) {
|
|
15551
15592
|
var detail = event.detail;
|
|
15552
15593
|
if (detail.context === context) {
|
|
@@ -15555,7 +15596,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15555
15596
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
|
|
15556
15597
|
};
|
|
15557
15598
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.ve, _handler);
|
|
15558
|
-
(
|
|
15599
|
+
(_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet102 === void 0 ? void 0 : _classPrivateFieldGet102.enterInputContext(context);
|
|
15559
15600
|
}));
|
|
15560
15601
|
case 1:
|
|
15561
15602
|
return _context9.a(2, Promise.reject(new Error('input context of name "'.concat(context, '" cannot be enabled at this time'))));
|
|
@@ -15571,11 +15612,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15571
15612
|
key: "exitInputContext",
|
|
15572
15613
|
value: (function() {
|
|
15573
15614
|
var _exitInputContext = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee0(context) {
|
|
15574
|
-
var
|
|
15615
|
+
var _classPrivateFieldGet103;
|
|
15575
15616
|
return _regenerator().w(function(_context0) {
|
|
15576
15617
|
while (1) switch (_context0.n) {
|
|
15577
15618
|
case 0:
|
|
15578
|
-
if (!((
|
|
15619
|
+
if (!((_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet103 !== void 0 && _classPrivateFieldGet103.exitInputContext)) {
|
|
15579
15620
|
_context0.n = 1;
|
|
15580
15621
|
break;
|
|
15581
15622
|
}
|
|
@@ -15622,8 +15663,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15622
15663
|
while (1) switch (_context10.n) {
|
|
15623
15664
|
case 0:
|
|
15624
15665
|
return _context10.a(2, new Promise(function(resolve, reject) {
|
|
15625
|
-
var
|
|
15626
|
-
if ((
|
|
15666
|
+
var _classPrivateFieldGet104;
|
|
15667
|
+
if ((_classPrivateFieldGet104 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
|
|
15627
15668
|
resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
|
|
15628
15669
|
}
|
|
15629
15670
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -15640,7 +15681,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15640
15681
|
key: "getRemapTime",
|
|
15641
15682
|
value: (function() {
|
|
15642
15683
|
var _getRemapTime = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee11() {
|
|
15643
|
-
var
|
|
15684
|
+
var _classPrivateFieldGet105, _this7 = this;
|
|
15644
15685
|
var _t, _t2, _t3;
|
|
15645
15686
|
return _regenerator().w(function(_context11) {
|
|
15646
15687
|
while (1) switch (_context11.n) {
|
|
@@ -15660,11 +15701,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15660
15701
|
});
|
|
15661
15702
|
return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
|
|
15662
15703
|
case 2:
|
|
15663
|
-
if (!((
|
|
15704
|
+
if (!((_classPrivateFieldGet105 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet105 !== void 0)) {
|
|
15664
15705
|
_context11.n = 3;
|
|
15665
15706
|
break;
|
|
15666
15707
|
}
|
|
15667
|
-
|
|
15708
|
+
_classPrivateFieldGet105;
|
|
15668
15709
|
_context11.n = 5;
|
|
15669
15710
|
break;
|
|
15670
15711
|
case 3:
|
|
@@ -15672,8 +15713,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15672
15713
|
_t2 = _cachedRemapTime;
|
|
15673
15714
|
_t3 = this;
|
|
15674
15715
|
_context11.n = 4;
|
|
15675
|
-
return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(
|
|
15676
|
-
var remapTime =
|
|
15716
|
+
return (0, _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_12__.$)("assets/external/timeMapping.js").then(function(_ref14) {
|
|
15717
|
+
var remapTime = _ref14.remapTime;
|
|
15677
15718
|
return function(fromLanguage, toLanguage, fromTime) {
|
|
15678
15719
|
var fromTimeInMilliseconds = fromTime * 1e3;
|
|
15679
15720
|
var fromLocalization = _assertClassBrand(_WistiaPlayer_brand, _this7, _findLocalizationByLanguage).call(_this7, fromLanguage);
|
|
@@ -15701,11 +15742,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15701
15742
|
key: "hideOverlay",
|
|
15702
15743
|
value: (function() {
|
|
15703
15744
|
var _hideOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee12(name) {
|
|
15704
|
-
var
|
|
15745
|
+
var _classPrivateFieldGet106;
|
|
15705
15746
|
return _regenerator().w(function(_context12) {
|
|
15706
15747
|
while (1) switch (_context12.n) {
|
|
15707
15748
|
case 0:
|
|
15708
|
-
if (!((
|
|
15749
|
+
if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet106 !== void 0 && _classPrivateFieldGet106.cancelOverlay)) {
|
|
15709
15750
|
_context12.n = 1;
|
|
15710
15751
|
break;
|
|
15711
15752
|
}
|
|
@@ -15729,8 +15770,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15729
15770
|
while (1) switch (_context13.n) {
|
|
15730
15771
|
case 0:
|
|
15731
15772
|
return _context13.a(2, new Promise(function(resolve, reject) {
|
|
15732
|
-
var
|
|
15733
|
-
if ((
|
|
15773
|
+
var _classPrivateFieldGet107;
|
|
15774
|
+
if ((_classPrivateFieldGet107 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.popover) {
|
|
15734
15775
|
_classPrivateFieldGet(_api, _this8).popover.hide();
|
|
15735
15776
|
resolve();
|
|
15736
15777
|
}
|
|
@@ -15747,14 +15788,14 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15747
15788
|
}, {
|
|
15748
15789
|
key: "languagesToLocalizations",
|
|
15749
15790
|
value: function languagesToLocalizations(languages) {
|
|
15750
|
-
var
|
|
15751
|
-
return (
|
|
15791
|
+
var _classPrivateFieldGet108, _classPrivateFieldGet109;
|
|
15792
|
+
return (_classPrivateFieldGet108 = (_classPrivateFieldGet109 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet109 === void 0 ? void 0 : _classPrivateFieldGet109.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet108 !== void 0 ? _classPrivateFieldGet108 : [];
|
|
15752
15793
|
}
|
|
15753
15794
|
}, {
|
|
15754
15795
|
key: "languageToLocalization",
|
|
15755
15796
|
value: function languageToLocalization(language) {
|
|
15756
|
-
var
|
|
15757
|
-
return (
|
|
15797
|
+
var _classPrivateFieldGet110, _classPrivateFieldGet111;
|
|
15798
|
+
return (_classPrivateFieldGet110 = (_classPrivateFieldGet111 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet111 === void 0 ? void 0 : _classPrivateFieldGet111.languageToLocalization(language)) !== null && _classPrivateFieldGet110 !== void 0 ? _classPrivateFieldGet110 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
15758
15799
|
}
|
|
15759
15800
|
/**
|
|
15760
15801
|
* Pauses the video.
|
|
@@ -15766,11 +15807,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15766
15807
|
key: "pause",
|
|
15767
15808
|
value: (function() {
|
|
15768
15809
|
var _pause = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee14() {
|
|
15769
|
-
var
|
|
15810
|
+
var _classPrivateFieldGet112;
|
|
15770
15811
|
return _regenerator().w(function(_context14) {
|
|
15771
15812
|
while (1) switch (_context14.n) {
|
|
15772
15813
|
case 0:
|
|
15773
|
-
return _context14.a(2, (
|
|
15814
|
+
return _context14.a(2, (_classPrivateFieldGet112 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.pause());
|
|
15774
15815
|
}
|
|
15775
15816
|
}, _callee14, this);
|
|
15776
15817
|
}));
|
|
@@ -15783,11 +15824,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15783
15824
|
key: "play",
|
|
15784
15825
|
value: (function() {
|
|
15785
15826
|
var _play = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee15() {
|
|
15786
|
-
var
|
|
15827
|
+
var _classPrivateFieldGet113;
|
|
15787
15828
|
return _regenerator().w(function(_context15) {
|
|
15788
15829
|
while (1) switch (_context15.n) {
|
|
15789
15830
|
case 0:
|
|
15790
|
-
return _context15.a(2, (
|
|
15831
|
+
return _context15.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.play());
|
|
15791
15832
|
}
|
|
15792
15833
|
}, _callee15, this);
|
|
15793
15834
|
}));
|
|
@@ -15800,11 +15841,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15800
15841
|
key: "releaseControls",
|
|
15801
15842
|
value: (function() {
|
|
15802
15843
|
var _releaseControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee16(name) {
|
|
15803
|
-
var
|
|
15844
|
+
var _classPrivateFieldGet114;
|
|
15804
15845
|
return _regenerator().w(function(_context16) {
|
|
15805
15846
|
while (1) switch (_context16.n) {
|
|
15806
15847
|
case 0:
|
|
15807
|
-
return _context16.a(2, (
|
|
15848
|
+
return _context16.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.releaseControls(name));
|
|
15808
15849
|
}
|
|
15809
15850
|
}, _callee16, this);
|
|
15810
15851
|
}));
|
|
@@ -15817,10 +15858,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15817
15858
|
key: "removeAllEventListeners",
|
|
15818
15859
|
value: function removeAllEventListeners() {
|
|
15819
15860
|
var _this9 = this;
|
|
15820
|
-
Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(
|
|
15821
|
-
var
|
|
15822
|
-
listeners.forEach(function(
|
|
15823
|
-
var listener =
|
|
15861
|
+
Object.entries(_classPrivateFieldGet(_eventListeners, this)).forEach(function(_ref15) {
|
|
15862
|
+
var _ref16 = _slicedToArray(_ref15, 2), type = _ref16[0], listeners = _ref16[1];
|
|
15863
|
+
listeners.forEach(function(_ref17) {
|
|
15864
|
+
var listener = _ref17.listener, options = _ref17.options;
|
|
15824
15865
|
_this9.removeEventListener(type, listener, options);
|
|
15825
15866
|
});
|
|
15826
15867
|
});
|
|
@@ -15865,7 +15906,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15865
15906
|
case 0:
|
|
15866
15907
|
options = _args17.length > 1 && _args17[1] !== void 0 ? _args17[1] : {};
|
|
15867
15908
|
return _context17.a(2, new Promise(function(resolve, reject) {
|
|
15868
|
-
var
|
|
15909
|
+
var _classPrivateFieldGet115;
|
|
15869
15910
|
if (!_classPrivateFieldGet(_api, _this0)) {
|
|
15870
15911
|
reject(new Error("api not ready to replace"));
|
|
15871
15912
|
}
|
|
@@ -15875,7 +15916,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15875
15916
|
resolve();
|
|
15876
15917
|
};
|
|
15877
15918
|
_this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _handleAfterReplace2);
|
|
15878
|
-
(
|
|
15919
|
+
(_classPrivateFieldGet115 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.replaceWith(mediaId, options);
|
|
15879
15920
|
}));
|
|
15880
15921
|
}
|
|
15881
15922
|
}, _callee17);
|
|
@@ -15889,11 +15930,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15889
15930
|
key: "requestControls",
|
|
15890
15931
|
value: (function() {
|
|
15891
15932
|
var _requestControls = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee18(name) {
|
|
15892
|
-
var
|
|
15933
|
+
var _classPrivateFieldGet116;
|
|
15893
15934
|
return _regenerator().w(function(_context18) {
|
|
15894
15935
|
while (1) switch (_context18.n) {
|
|
15895
15936
|
case 0:
|
|
15896
|
-
return _context18.a(2, (
|
|
15937
|
+
return _context18.a(2, (_classPrivateFieldGet116 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.requestControls(name));
|
|
15897
15938
|
}
|
|
15898
15939
|
}, _callee18, this);
|
|
15899
15940
|
}));
|
|
@@ -15906,11 +15947,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15906
15947
|
key: "requestFullscreen",
|
|
15907
15948
|
value: (function() {
|
|
15908
15949
|
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee19() {
|
|
15909
|
-
var
|
|
15950
|
+
var _classPrivateFieldGet117;
|
|
15910
15951
|
return _regenerator().w(function(_context19) {
|
|
15911
15952
|
while (1) switch (_context19.n) {
|
|
15912
15953
|
case 0:
|
|
15913
|
-
if (!((
|
|
15954
|
+
if (!((_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet117 !== void 0 && _classPrivateFieldGet117.requestFullscreen)) {
|
|
15914
15955
|
_context19.n = 1;
|
|
15915
15956
|
break;
|
|
15916
15957
|
}
|
|
@@ -15929,11 +15970,11 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15929
15970
|
key: "showOverlay",
|
|
15930
15971
|
value: (function() {
|
|
15931
15972
|
var _showOverlay = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee20(name) {
|
|
15932
|
-
var
|
|
15973
|
+
var _classPrivateFieldGet118;
|
|
15933
15974
|
return _regenerator().w(function(_context20) {
|
|
15934
15975
|
while (1) switch (_context20.n) {
|
|
15935
15976
|
case 0:
|
|
15936
|
-
if (!((
|
|
15977
|
+
if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestOverlay)) {
|
|
15937
15978
|
_context20.n = 1;
|
|
15938
15979
|
break;
|
|
15939
15980
|
}
|
|
@@ -15957,8 +15998,8 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
15957
15998
|
while (1) switch (_context21.n) {
|
|
15958
15999
|
case 0:
|
|
15959
16000
|
return _context21.a(2, new Promise(function(resolve, reject) {
|
|
15960
|
-
var
|
|
15961
|
-
if ((
|
|
16001
|
+
var _classPrivateFieldGet119;
|
|
16002
|
+
if ((_classPrivateFieldGet119 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.popover) {
|
|
15962
16003
|
_classPrivateFieldGet(_api, _this1).popover.show();
|
|
15963
16004
|
resolve();
|
|
15964
16005
|
}
|
|
@@ -16182,7 +16223,7 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
16182
16223
|
}, {
|
|
16183
16224
|
key: "disconnectedCallback",
|
|
16184
16225
|
value: function disconnectedCallback() {
|
|
16185
|
-
var
|
|
16226
|
+
var _classPrivateFieldGet120, _classPrivateFieldGet121, _this$shadowRoot;
|
|
16186
16227
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function(removeListener) {
|
|
16187
16228
|
return removeListener();
|
|
16188
16229
|
});
|
|
@@ -16190,10 +16231,10 @@ var WistiaPlayer = /* @__PURE__ */ (function(_HTMLElement) {
|
|
|
16190
16231
|
_classPrivateFieldSet(_eventListeners, this, {});
|
|
16191
16232
|
(0, _utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__.Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
16192
16233
|
(0, _utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__.s3)(this.mediaId);
|
|
16193
|
-
(
|
|
16234
|
+
(_classPrivateFieldGet120 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet120 === void 0 ? void 0 : _classPrivateFieldGet120.disconnect();
|
|
16194
16235
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
16195
16236
|
(0, _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__.iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
16196
|
-
(
|
|
16237
|
+
(_classPrivateFieldGet121 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.remove();
|
|
16197
16238
|
_classPrivateFieldSet(_api, this, null);
|
|
16198
16239
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
16199
16240
|
_classPrivateFieldSet(_preactRoot, this, null);
|
|
@@ -16240,11 +16281,11 @@ function _deferMediaDataFetchingToCarouselEmbed() {
|
|
|
16240
16281
|
return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
16241
16282
|
}
|
|
16242
16283
|
function _findLocalizationByLanguage(language) {
|
|
16243
|
-
var
|
|
16284
|
+
var _classPrivateFieldGet122;
|
|
16244
16285
|
if (language == null) {
|
|
16245
16286
|
return void 0;
|
|
16246
16287
|
}
|
|
16247
|
-
return (
|
|
16288
|
+
return (_classPrivateFieldGet122 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.find(function(localization) {
|
|
16248
16289
|
return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
|
|
16249
16290
|
});
|
|
16250
16291
|
}
|
|
@@ -16253,11 +16294,11 @@ function _generateUniqueId(mediaId) {
|
|
|
16253
16294
|
return (0, _utilities_seqid_js__WEBPACK_IMPORTED_MODULE_22__.h)(prefix);
|
|
16254
16295
|
}
|
|
16255
16296
|
function _getSyncedEmbedOption(key) {
|
|
16256
|
-
var
|
|
16297
|
+
var _ref20, _ref21;
|
|
16257
16298
|
if (_classPrivateFieldGet(_impl, this) && key in _classPrivateFieldGet(_impl, this)._attrs) {
|
|
16258
16299
|
return _classPrivateFieldGet(_impl, this)._attrs[key];
|
|
16259
16300
|
}
|
|
16260
|
-
return (
|
|
16301
|
+
return (_ref20 = (_ref21 = this.embedOptions[key]) !== null && _ref21 !== void 0 ? _ref21 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, (0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__.$)(key))) !== null && _ref20 !== void 0 ? _ref20 : defaultEmbedOptions[key];
|
|
16261
16302
|
}
|
|
16262
16303
|
function _getValueFromAttribute(name) {
|
|
16263
16304
|
if (!this.hasAttribute(name)) {
|
|
@@ -16275,8 +16316,8 @@ function _getValueFromAttribute(name) {
|
|
|
16275
16316
|
return this.getAttribute(name);
|
|
16276
16317
|
}
|
|
16277
16318
|
}
|
|
16278
|
-
function _initPlayerEmbed(
|
|
16279
|
-
var container =
|
|
16319
|
+
function _initPlayerEmbed(_ref22) {
|
|
16320
|
+
var container = _ref22.container, mediaData = _ref22.mediaData;
|
|
16280
16321
|
if (!_classPrivateFieldGet(_hasElementConnectedToDOM, this)) {
|
|
16281
16322
|
return;
|
|
16282
16323
|
}
|
|
@@ -16289,8 +16330,8 @@ function _initPlayerEmbed(_ref21) {
|
|
|
16289
16330
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
16290
16331
|
}
|
|
16291
16332
|
if ("attachInternals" in HTMLElement.prototype && "states" in ElementInternals.prototype) {
|
|
16292
|
-
var
|
|
16293
|
-
(
|
|
16333
|
+
var _classPrivateFieldGet123;
|
|
16334
|
+
(_classPrivateFieldGet123 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.states.delete("--initializing");
|
|
16294
16335
|
}
|
|
16295
16336
|
void _assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
|
|
16296
16337
|
container,
|
|
@@ -16336,10 +16377,10 @@ function _initPublicApi2() {
|
|
|
16336
16377
|
_this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
|
|
16337
16378
|
});
|
|
16338
16379
|
_classPrivateFieldGet(_api, this).ready(function() {
|
|
16339
|
-
var
|
|
16340
|
-
(
|
|
16380
|
+
var _classPrivateFieldGet130, _classPrivateFieldGet131;
|
|
16381
|
+
(_classPrivateFieldGet130 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet130 === void 0 ? void 0 : _classPrivateFieldGet130.disconnect();
|
|
16341
16382
|
_classPrivateFieldSet(_resizeObserver, _this19, null);
|
|
16342
|
-
(
|
|
16383
|
+
(_classPrivateFieldGet131 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.remove();
|
|
16343
16384
|
_this19.removeEventListener("click", _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
|
|
16344
16385
|
_this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__.c5, {
|
|
16345
16386
|
detail: {
|
|
@@ -16354,8 +16395,8 @@ function _initPublicApi2() {
|
|
|
16354
16395
|
}));
|
|
16355
16396
|
_assertClassBrand(_WistiaPlayer_brand, _this19, _maybeSetupLLMOptimizedEmbed).call(_this19);
|
|
16356
16397
|
if (_classPrivateFieldGet(_impl, _this19)) {
|
|
16357
|
-
Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(
|
|
16358
|
-
var
|
|
16398
|
+
Object.entries(_classPrivateFieldGet(_impl, _this19)._attrs).forEach(function(_ref27) {
|
|
16399
|
+
var _ref28 = _slicedToArray(_ref27, 2), key = _ref28[0], value = _ref28[1];
|
|
16359
16400
|
_classPrivateFieldGet(_playerData, _this19).updateEmbedOptionOverrides(_defineProperty({}, key, value));
|
|
16360
16401
|
});
|
|
16361
16402
|
}
|
|
@@ -16411,8 +16452,8 @@ function _maybeInitializeMux2() {
|
|
|
16411
16452
|
this.addEventListener("visitor-tracking-change", function(event) {
|
|
16412
16453
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
16413
16454
|
if (!isTrackingEnabled) {
|
|
16414
|
-
var
|
|
16415
|
-
(
|
|
16455
|
+
var _classPrivateFieldGet133, _classPrivateFieldGet134;
|
|
16456
|
+
(_classPrivateFieldGet133 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet133 === void 0 ? void 0 : (_classPrivateFieldGet134 = _classPrivateFieldGet133.mux) === null || _classPrivateFieldGet134 === void 0 ? void 0 : _classPrivateFieldGet134.destroy();
|
|
16416
16457
|
}
|
|
16417
16458
|
});
|
|
16418
16459
|
case 6:
|
|
@@ -16506,8 +16547,8 @@ function _renderEmbedTemplate() {
|
|
|
16506
16547
|
alt: "",
|
|
16507
16548
|
"aria-hidden": "true"
|
|
16508
16549
|
})))), (0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
16509
|
-
ref: function ref(
|
|
16510
|
-
_classPrivateFieldSet(_preloadThumbnailRoot, _this13,
|
|
16550
|
+
ref: function ref(_ref23) {
|
|
16551
|
+
_classPrivateFieldSet(_preloadThumbnailRoot, _this13, _ref23);
|
|
16511
16552
|
}
|
|
16512
16553
|
})), _classPrivateFieldGet(_preactRoot, this));
|
|
16513
16554
|
}
|
|
@@ -16516,8 +16557,8 @@ function _renderPreloadThumbnail() {
|
|
|
16516
16557
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
16517
16558
|
return;
|
|
16518
16559
|
}
|
|
16519
|
-
var
|
|
16520
|
-
var
|
|
16560
|
+
var _classPrivateFieldGet124 = _classPrivateFieldGet(_playerData, this).mediaData, assets = _classPrivateFieldGet124.assets, mediaType = _classPrivateFieldGet124.mediaType, carouselHardWall = _classPrivateFieldGet124.carouselHardWall;
|
|
16561
|
+
var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).embedOptions, autoPlay = _classPrivateFieldGet125.autoPlay, plugin = _classPrivateFieldGet125.plugin;
|
|
16521
16562
|
if (carouselHardWall) {
|
|
16522
16563
|
return;
|
|
16523
16564
|
}
|
|
@@ -16553,12 +16594,12 @@ function _runMethodsFromAttributes() {
|
|
|
16553
16594
|
var _this14 = this;
|
|
16554
16595
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "current-time") !== null) {
|
|
16555
16596
|
this.whenApiReady().then(function() {
|
|
16556
|
-
var
|
|
16597
|
+
var _ref24, _classPrivateFieldGet126, _classPrivateFieldGet127;
|
|
16557
16598
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "current-time"));
|
|
16558
|
-
var isClosedPopover = (
|
|
16599
|
+
var isClosedPopover = (_ref24 = ((_classPrivateFieldGet126 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet126 === void 0 ? void 0 : _classPrivateFieldGet126.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref24 !== void 0 ? _ref24 : false;
|
|
16559
16600
|
var isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__.GS)();
|
|
16560
16601
|
var shouldDelayUntilPlay = _this14.state !== "playing" && (isMobile || isClosedPopover);
|
|
16561
|
-
void ((
|
|
16602
|
+
void ((_classPrivateFieldGet127 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.time(newTime, {
|
|
16562
16603
|
lazy: shouldDelayUntilPlay
|
|
16563
16604
|
}));
|
|
16564
16605
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "currentTime", newTime);
|
|
@@ -16570,9 +16611,9 @@ function _runMethodsFromAttributes() {
|
|
|
16570
16611
|
}
|
|
16571
16612
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, "video-quality") !== null) {
|
|
16572
16613
|
this.whenApiReady().then(function() {
|
|
16573
|
-
var
|
|
16614
|
+
var _classPrivateFieldGet128;
|
|
16574
16615
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, "video-quality");
|
|
16575
|
-
(
|
|
16616
|
+
(_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.setVideoQuality(newQuality);
|
|
16576
16617
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, "videoQuality", newQuality);
|
|
16577
16618
|
}).catch(function(_error) {
|
|
16578
16619
|
});
|
|
@@ -16580,8 +16621,8 @@ function _runMethodsFromAttributes() {
|
|
|
16580
16621
|
}
|
|
16581
16622
|
function _saveInitialAttributesFromDomOptions() {
|
|
16582
16623
|
var _this15 = this;
|
|
16583
|
-
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(
|
|
16584
|
-
var
|
|
16624
|
+
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function(_ref25) {
|
|
16625
|
+
var _ref26 = _slicedToArray(_ref25, 2), value = _ref26[1];
|
|
16585
16626
|
return [(0, _utilities_camelCaseToKebabCase_ts__WEBPACK_IMPORTED_MODULE_35__.b)(value.name), _assertClassBrand(_WistiaPlayer_brand, _this15, _getValueFromAttribute).call(_this15, value.name)];
|
|
16586
16627
|
}));
|
|
16587
16628
|
_classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
|
|
@@ -16654,7 +16695,7 @@ function _updateMediaData(mediaData) {
|
|
|
16654
16695
|
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
16655
16696
|
}
|
|
16656
16697
|
var getSwatchMetaData = /* @__PURE__ */ (function() {
|
|
16657
|
-
var
|
|
16698
|
+
var _ref18 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee25(url) {
|
|
16658
16699
|
var swatch;
|
|
16659
16700
|
return _regenerator().w(function(_context25) {
|
|
16660
16701
|
while (1) switch (_context25.n) {
|
|
@@ -16669,11 +16710,11 @@ var getSwatchMetaData = /* @__PURE__ */ (function() {
|
|
|
16669
16710
|
}, _callee25);
|
|
16670
16711
|
}));
|
|
16671
16712
|
return function getSwatchMetaData2(_x18) {
|
|
16672
|
-
return
|
|
16713
|
+
return _ref18.apply(this, arguments);
|
|
16673
16714
|
};
|
|
16674
16715
|
})();
|
|
16675
16716
|
var wistiaSwatchElement = /* @__PURE__ */ (function() {
|
|
16676
|
-
var
|
|
16717
|
+
var _ref19 = _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee26(mediaId, embedHost) {
|
|
16677
16718
|
var swatchUrl, swatchImg, naturalHeight, naturalWidth, ratio, style;
|
|
16678
16719
|
return _regenerator().w(function(_context26) {
|
|
16679
16720
|
while (1) switch (_context26.n) {
|
|
@@ -16692,7 +16733,7 @@ var wistiaSwatchElement = /* @__PURE__ */ (function() {
|
|
|
16692
16733
|
}, _callee26);
|
|
16693
16734
|
}));
|
|
16694
16735
|
return function wistiaSwatchElement2(_x19, _x20) {
|
|
16695
|
-
return
|
|
16736
|
+
return _ref19.apply(this, arguments);
|
|
16696
16737
|
};
|
|
16697
16738
|
})();
|
|
16698
16739
|
if (customElements.get("wistia-player") === void 0) {
|