@wistia/wistia-player 0.7.9 → 0.7.11
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.
- package/dist/types/embeds/carousel/styles/CarouselHeaderStyles.d.ts +2 -2
- package/dist/types/embeds/carousel/styles/CarouselHeaderStyles.d.ts.map +1 -1
- package/dist/types/embeds/carousel/styles/CarouselItemStyles.d.ts +3 -3
- package/dist/types/embeds/carousel/styles/CarouselItemStyles.d.ts.map +1 -1
- package/dist/types/embeds/carousel/utils/getNormalizedCarouselBackgroundColor.d.ts +7 -0
- package/dist/types/embeds/carousel/utils/getNormalizedCarouselBackgroundColor.d.ts.map +1 -0
- package/dist/types/embeds/carousel/webComponents/WistiaCarousel.d.ts +6 -1
- package/dist/types/embeds/carousel/webComponents/WistiaCarousel.d.ts.map +1 -1
- package/dist/types/embeds/carousel/webComponents/WistiaCarouselItem.d.ts.map +1 -1
- package/dist/types/embeds/carousel/webComponents/WistiaChannelCarousel.d.ts +4 -0
- package/dist/types/embeds/carousel/webComponents/WistiaChannelCarousel.d.ts.map +1 -1
- package/dist/types/embeds/channel/utilities/channelColorPalette.d.ts.map +1 -1
- package/dist/types/embeds/channel/utilities/getNormalizedChannelBackgroundColor.d.ts +7 -0
- package/dist/types/embeds/channel/utilities/getNormalizedChannelBackgroundColor.d.ts.map +1 -0
- package/dist/types/embeds/forms/types.d.ts +1 -1
- package/dist/types/embeds/forms/types.d.ts.map +1 -1
- package/dist/types/embeds/playlist/WistiaPlaylist.d.ts.map +1 -1
- package/dist/types/embeds/shared/components/HardWall/HardWallStyles.d.ts +1 -1
- package/dist/types/embeds/shared/components/HardWall/HardWallStyles.d.ts.map +1 -1
- package/dist/types/embeds/shared/components/HardWall/PasswordForm.d.ts.map +1 -1
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts +16 -0
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts.map +1 -1
- package/dist/types/types/EmbedOptions.d.ts +1 -0
- package/dist/types/types/EmbedOptions.d.ts.map +1 -1
- package/dist/types/types/events.d.ts +5 -1
- package/dist/types/types/events.d.ts.map +1 -1
- package/dist/types/types/player-api-types.d.ts +2 -0
- package/dist/types/types/player-api-types.d.ts.map +1 -1
- package/dist/types/utilities/colors/getBrandDarkBackgroundColor.d.ts +3 -0
- package/dist/types/utilities/colors/getBrandDarkBackgroundColor.d.ts.map +1 -0
- package/dist/types/utilities/colors/getBrandLightBackgroundColor.d.ts +3 -0
- package/dist/types/utilities/colors/getBrandLightBackgroundColor.d.ts.map +1 -0
- package/dist/types/utilities/eventConstants.d.ts +1 -0
- package/dist/types/utilities/eventConstants.d.ts.map +1 -1
- package/dist/wistia-player.js +128 -96
- package/dist/wistia-player.js.map +1 -1
- package/package.json +2 -2
package/dist/wistia-player.js
CHANGED
|
@@ -3528,7 +3528,7 @@ var usePlayerData = function usePlayerData() {
|
|
|
3528
3528
|
/* harmony export */ rO: () => (/* binding */ LOADED_MEDIA_DATA_EVENT),
|
|
3529
3529
|
/* harmony export */ ve: () => (/* binding */ INPUT_CONTEXT_CHANGE_EVENT)
|
|
3530
3530
|
/* harmony export */ });
|
|
3531
|
-
/* unused harmony exports BETWEENTIMES_EVENT_EV1, CROSSTIME_EVENT_EV1, EMBED_OPTIONS_CHANGED_EVENT, INIT_EMBED_EVENT, TIME_UPDATE_EVENT */
|
|
3531
|
+
/* unused harmony exports BETWEENTIMES_EVENT_EV1, CROSSTIME_EVENT_EV1, EMBED_OPTIONS_CHANGED_EVENT, INIT_EMBED_EVENT, PLAYER_COLOR_CHANGE_EVENT, TIME_UPDATE_EVENT */
|
|
3532
3532
|
var AFTER_REPLACE_EVENT = 'after-replace';
|
|
3533
3533
|
var API_READY_EVENT = 'api-ready';
|
|
3534
3534
|
var BEFORE_REPLACE_EVENT = 'before-replace';
|
|
@@ -3541,6 +3541,7 @@ var INPUT_CONTEXT_CHANGE_EVENT = 'input-context-change';
|
|
|
3541
3541
|
var INTERNAL_API_ON_FIND_EVENT = 'internal-api-on-find';
|
|
3542
3542
|
var LOADED_MEDIA_DATA_EVENT = 'loaded-media-data';
|
|
3543
3543
|
var MUTE_CHANGE_EVENT = 'mute-change';
|
|
3544
|
+
var PLAYER_COLOR_CHANGE_EVENT = 'playercolorchange';
|
|
3544
3545
|
var TIME_UPDATE_EVENT = 'time-update';
|
|
3545
3546
|
|
|
3546
3547
|
/***/ },
|
|
@@ -7337,8 +7338,8 @@ var PROD_EMBED_HOST = 'embed.wistia.com';
|
|
|
7337
7338
|
var PROD_SSL_EMBED_HOST = 'embed-ssl.wistia.com';
|
|
7338
7339
|
var PROD_FASTLY_SSL_HOST = 'embed-fastly.wistia.com';
|
|
7339
7340
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7340
|
-
var TAGGED_VERSION = "0.7.
|
|
7341
|
-
var CURRENT_SHA = "
|
|
7341
|
+
var TAGGED_VERSION = "0.7.11" || 0;
|
|
7342
|
+
var CURRENT_SHA = "e2b1e0432986d2868cf12a063602f2fbf0b88593" || 0;
|
|
7342
7343
|
var DEFAULT_PROTOCOL = function () {
|
|
7343
7344
|
if (typeof window !== 'undefined' && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location) {
|
|
7344
7345
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location.protocol;
|
|
@@ -15456,7 +15457,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
15456
15457
|
var requiredAttributes = ['media-id'];
|
|
15457
15458
|
|
|
15458
15459
|
// Optional attributes surfaced in documentation to our customers.
|
|
15459
|
-
var optionalPublicAttributes = ['aspect', 'audio-description-control', 'autoplay', 'big-play-button', 'branding', 'contrast-icons', 'controls-visible-on-load', 'copy-link-and-thumbnail', 'current-time', 'do-not-track', 'email', 'end-video-behavior', 'fit-strategy', 'fullscreen-control', 'language', 'muted', 'opaque-controls', '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', 'rounded-playlist', 'seo', 'settings-control', 'silent-autoplay', 'transparent-letterbox', 'video-quality', 'volume', 'volume-control', 'wistia-popover'];
|
|
15460
|
+
var optionalPublicAttributes = ['aspect', 'audio-description-control', 'autoplay', 'big-play-button', 'branding', 'contrast-icons', 'controls-visible-on-load', 'copy-link-and-thumbnail', 'current-time', 'do-not-track', 'email', 'end-video-behavior', 'fit-strategy', 'fullscreen-control', 'language', 'muted', 'opaque-controls', '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', 'rounded-playlist', 'rotate-to-fullscreen', 'seo', 'settings-control', 'silent-autoplay', 'transparent-letterbox', 'video-quality', 'volume', 'volume-control', 'wistia-popover'];
|
|
15460
15461
|
|
|
15461
15462
|
// Optional attributes used by Wistia developers.
|
|
15462
15463
|
var 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'];
|
|
@@ -15503,6 +15504,7 @@ var defaultEmbedOptions = {
|
|
|
15503
15504
|
qualityMax: undefined,
|
|
15504
15505
|
qualityMin: undefined,
|
|
15505
15506
|
resumable: 'auto',
|
|
15507
|
+
rotateToFullscreen: false,
|
|
15506
15508
|
roundedPlayer: undefined,
|
|
15507
15509
|
seo: true,
|
|
15508
15510
|
settingsControl: true,
|
|
@@ -17187,6 +17189,33 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17187
17189
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'resumable', resumableState);
|
|
17188
17190
|
}
|
|
17189
17191
|
|
|
17192
|
+
/**
|
|
17193
|
+
* Returns whether the player enters fullscreen when a touch device is rotated
|
|
17194
|
+
* to landscape while the video is playing (and exits on rotate back to
|
|
17195
|
+
* portrait). Opt-in; off by default.
|
|
17196
|
+
* @returns {boolean}
|
|
17197
|
+
*/
|
|
17198
|
+
}, {
|
|
17199
|
+
key: "rotateToFullscreen",
|
|
17200
|
+
get: function get() {
|
|
17201
|
+
return _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, 'rotateToFullscreen');
|
|
17202
|
+
}
|
|
17203
|
+
|
|
17204
|
+
/**
|
|
17205
|
+
* Sets whether the player enters fullscreen when a touch device is rotated to
|
|
17206
|
+
* landscape while the video is playing. This is an embedder-set config, not a
|
|
17207
|
+
* viewer-facing control. Set it before play; changing it after the player has
|
|
17208
|
+
* initialized has no effect on the already-bound orientation listener.
|
|
17209
|
+
* @param {boolean} shouldRotateToFullscreen
|
|
17210
|
+
* @returns {void}
|
|
17211
|
+
*/,
|
|
17212
|
+
set: function set(shouldRotateToFullscreen) {
|
|
17213
|
+
var _classPrivateFieldGet78;
|
|
17214
|
+
var attrAsBoolean = shouldRotateToFullscreen === 'true' || shouldRotateToFullscreen === true;
|
|
17215
|
+
(_classPrivateFieldGet78 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet78 === void 0 ? void 0 : _classPrivateFieldGet78.rotateToFullscreen(attrAsBoolean);
|
|
17216
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'rotateToFullscreen', attrAsBoolean);
|
|
17217
|
+
}
|
|
17218
|
+
|
|
17190
17219
|
/**
|
|
17191
17220
|
* Returns a value which controls all rounded corners of the player.
|
|
17192
17221
|
* @returns {number}
|
|
@@ -17203,11 +17232,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17203
17232
|
* @returns {void}
|
|
17204
17233
|
*/,
|
|
17205
17234
|
set: function set(radius) {
|
|
17206
|
-
var
|
|
17235
|
+
var _classPrivateFieldGet79;
|
|
17207
17236
|
// ensure the value is a number, since this is potentially coming from outside the player,
|
|
17208
17237
|
// we can't guarantee they have given us the right type
|
|
17209
17238
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
17210
|
-
(
|
|
17239
|
+
(_classPrivateFieldGet79 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet79 === void 0 ? void 0 : _classPrivateFieldGet79.setRoundedPlayer(Number(radius));
|
|
17211
17240
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-conversion
|
|
17212
17241
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'roundedPlayer', Number(radius));
|
|
17213
17242
|
}
|
|
@@ -17220,8 +17249,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17220
17249
|
}, {
|
|
17221
17250
|
key: "secondsWatched",
|
|
17222
17251
|
get: function get() {
|
|
17223
|
-
var
|
|
17224
|
-
return (
|
|
17252
|
+
var _classPrivateFieldGet80, _classPrivateFieldGet81;
|
|
17253
|
+
return (_classPrivateFieldGet80 = (_classPrivateFieldGet81 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet81 === void 0 ? void 0 : _classPrivateFieldGet81.secondsWatched()) !== null && _classPrivateFieldGet80 !== void 0 ? _classPrivateFieldGet80 : 0;
|
|
17225
17254
|
}
|
|
17226
17255
|
|
|
17227
17256
|
/**
|
|
@@ -17231,8 +17260,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17231
17260
|
}, {
|
|
17232
17261
|
key: "secondsWatchedVector",
|
|
17233
17262
|
get: function get() {
|
|
17234
|
-
var
|
|
17235
|
-
return (
|
|
17263
|
+
var _classPrivateFieldGet82, _classPrivateFieldGet83;
|
|
17264
|
+
return (_classPrivateFieldGet82 = (_classPrivateFieldGet83 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet83 === void 0 ? void 0 : _classPrivateFieldGet83.secondsWatchedVector()) !== null && _classPrivateFieldGet82 !== void 0 ? _classPrivateFieldGet82 : [];
|
|
17236
17265
|
}
|
|
17237
17266
|
|
|
17238
17267
|
/**
|
|
@@ -17272,8 +17301,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17272
17301
|
* @returns {void}
|
|
17273
17302
|
*/,
|
|
17274
17303
|
set: function set(shouldDisplay) {
|
|
17275
|
-
var
|
|
17276
|
-
(
|
|
17304
|
+
var _classPrivateFieldGet84;
|
|
17305
|
+
(_classPrivateFieldGet84 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet84 === void 0 ? void 0 : _classPrivateFieldGet84.settingsControlEnabled(shouldDisplay);
|
|
17277
17306
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'settingsControl', shouldDisplay);
|
|
17278
17307
|
}
|
|
17279
17308
|
|
|
@@ -17303,10 +17332,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17303
17332
|
}, {
|
|
17304
17333
|
key: "sourceLanguage",
|
|
17305
17334
|
get: function get() {
|
|
17306
|
-
var
|
|
17307
|
-
return (
|
|
17335
|
+
var _classPrivateFieldGet85, _classPrivateFieldGet86, _classPrivateFieldGet87;
|
|
17336
|
+
return (_classPrivateFieldGet85 = (_classPrivateFieldGet86 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet86 === void 0 ? void 0 : _classPrivateFieldGet86.find(function (loc) {
|
|
17308
17337
|
return loc.isOriginal;
|
|
17309
|
-
})) !== null &&
|
|
17338
|
+
})) !== null && _classPrivateFieldGet85 !== void 0 ? _classPrivateFieldGet85 : (_classPrivateFieldGet87 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet87 === void 0 ? void 0 : _classPrivateFieldGet87[0];
|
|
17310
17339
|
}
|
|
17311
17340
|
|
|
17312
17341
|
/**
|
|
@@ -17328,8 +17357,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17328
17357
|
}, {
|
|
17329
17358
|
key: "state",
|
|
17330
17359
|
get: function get() {
|
|
17331
|
-
var
|
|
17332
|
-
return (
|
|
17360
|
+
var _classPrivateFieldGet88, _classPrivateFieldGet89;
|
|
17361
|
+
return (_classPrivateFieldGet88 = (_classPrivateFieldGet89 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet89 === void 0 ? void 0 : _classPrivateFieldGet89.state()) !== null && _classPrivateFieldGet88 !== void 0 ? _classPrivateFieldGet88 : defaultEmbedOptions.state;
|
|
17333
17362
|
}
|
|
17334
17363
|
|
|
17335
17364
|
/**
|
|
@@ -17449,8 +17478,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17449
17478
|
}, {
|
|
17450
17479
|
key: "videoQuality",
|
|
17451
17480
|
get: function get() {
|
|
17452
|
-
var _ref11,
|
|
17453
|
-
return (_ref11 = (
|
|
17481
|
+
var _ref11, _classPrivateFieldGet90, _classPrivateFieldGet91;
|
|
17482
|
+
return (_ref11 = (_classPrivateFieldGet90 = (_classPrivateFieldGet91 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet91 === void 0 ? void 0 : _classPrivateFieldGet91.getVideoQuality()) !== null && _classPrivateFieldGet90 !== void 0 ? _classPrivateFieldGet90 : this.embedOptions.videoQuality) !== null && _ref11 !== void 0 ? _ref11 : 'auto';
|
|
17454
17483
|
}
|
|
17455
17484
|
|
|
17456
17485
|
/**
|
|
@@ -17459,8 +17488,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17459
17488
|
* @returns {void}
|
|
17460
17489
|
*/,
|
|
17461
17490
|
set: function set(quality) {
|
|
17462
|
-
var
|
|
17463
|
-
(
|
|
17491
|
+
var _classPrivateFieldGet92;
|
|
17492
|
+
(_classPrivateFieldGet92 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet92 === void 0 ? void 0 : _classPrivateFieldGet92.setVideoQuality(quality);
|
|
17464
17493
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'videoQuality', quality);
|
|
17465
17494
|
}
|
|
17466
17495
|
|
|
@@ -17491,8 +17520,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17491
17520
|
* @returns {void}
|
|
17492
17521
|
*/,
|
|
17493
17522
|
set: function set(level) {
|
|
17494
|
-
var
|
|
17495
|
-
(
|
|
17523
|
+
var _classPrivateFieldGet93;
|
|
17524
|
+
(_classPrivateFieldGet93 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet93 === void 0 ? void 0 : _classPrivateFieldGet93.volume(level);
|
|
17496
17525
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'volume', level);
|
|
17497
17526
|
}
|
|
17498
17527
|
|
|
@@ -17514,8 +17543,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17514
17543
|
* @returns {void}
|
|
17515
17544
|
*/,
|
|
17516
17545
|
set: function set(shouldDisplay) {
|
|
17517
|
-
var
|
|
17518
|
-
(
|
|
17546
|
+
var _classPrivateFieldGet94;
|
|
17547
|
+
(_classPrivateFieldGet94 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet94 === void 0 ? void 0 : _classPrivateFieldGet94.volumeControlEnabled(shouldDisplay);
|
|
17519
17548
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'volumeControl', shouldDisplay);
|
|
17520
17549
|
}
|
|
17521
17550
|
|
|
@@ -17569,12 +17598,12 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17569
17598
|
key: "cancelFullscreen",
|
|
17570
17599
|
value: (function () {
|
|
17571
17600
|
var _cancelFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
17572
|
-
var
|
|
17601
|
+
var _classPrivateFieldGet95,
|
|
17573
17602
|
_this3 = this;
|
|
17574
17603
|
return _regenerator().w(function (_context) {
|
|
17575
17604
|
while (1) switch (_context.n) {
|
|
17576
17605
|
case 0:
|
|
17577
|
-
return _context.a(2, (
|
|
17606
|
+
return _context.a(2, (_classPrivateFieldGet95 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet95 === void 0 ? void 0 : _classPrivateFieldGet95.cancelFullscreen().then(function () {
|
|
17578
17607
|
_this3._fullscreenState.heightBeforeFullscreen = undefined;
|
|
17579
17608
|
_this3._fullscreenState.widthBeforeFullscreen = undefined;
|
|
17580
17609
|
}));
|
|
@@ -17597,11 +17626,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17597
17626
|
key: "createOverlay",
|
|
17598
17627
|
value: (function () {
|
|
17599
17628
|
var _createOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(name, options) {
|
|
17600
|
-
var
|
|
17629
|
+
var _classPrivateFieldGet96;
|
|
17601
17630
|
return _regenerator().w(function (_context2) {
|
|
17602
17631
|
while (1) switch (_context2.n) {
|
|
17603
17632
|
case 0:
|
|
17604
|
-
if (!((
|
|
17633
|
+
if (!((_classPrivateFieldGet96 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet96 !== void 0 && _classPrivateFieldGet96.defineOverlay)) {
|
|
17605
17634
|
_context2.n = 1;
|
|
17606
17635
|
break;
|
|
17607
17636
|
}
|
|
@@ -17634,11 +17663,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17634
17663
|
case 0:
|
|
17635
17664
|
addPlugin = /*#__PURE__*/function () {
|
|
17636
17665
|
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
17637
|
-
var
|
|
17666
|
+
var _classPrivateFieldGet97, _classPrivateFieldGet98;
|
|
17638
17667
|
return _regenerator().w(function (_context3) {
|
|
17639
17668
|
while (1) switch (_context3.n) {
|
|
17640
17669
|
case 0:
|
|
17641
|
-
return _context3.a(2, (
|
|
17670
|
+
return _context3.a(2, (_classPrivateFieldGet97 = (_classPrivateFieldGet98 = _classPrivateFieldGet(_api, _this4)) === null || _classPrivateFieldGet98 === void 0 ? void 0 : _classPrivateFieldGet98.addPlugin(name, options)) !== null && _classPrivateFieldGet97 !== void 0 ? _classPrivateFieldGet97 : Promise.reject(new Error("plugin ".concat(name, " cannot be defined"))));
|
|
17642
17671
|
}
|
|
17643
17672
|
}, _callee3);
|
|
17644
17673
|
}));
|
|
@@ -17690,11 +17719,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17690
17719
|
key: "deleteOverlay",
|
|
17691
17720
|
value: (function () {
|
|
17692
17721
|
var _deleteOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(name) {
|
|
17693
|
-
var
|
|
17722
|
+
var _classPrivateFieldGet99;
|
|
17694
17723
|
return _regenerator().w(function (_context6) {
|
|
17695
17724
|
while (1) switch (_context6.n) {
|
|
17696
17725
|
case 0:
|
|
17697
|
-
if (!((
|
|
17726
|
+
if (!((_classPrivateFieldGet99 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet99 !== void 0 && _classPrivateFieldGet99.undefineOverlay)) {
|
|
17698
17727
|
_context6.n = 1;
|
|
17699
17728
|
break;
|
|
17700
17729
|
}
|
|
@@ -17719,11 +17748,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17719
17748
|
key: "disableControl",
|
|
17720
17749
|
value: (function () {
|
|
17721
17750
|
var _disableControl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(name) {
|
|
17722
|
-
var
|
|
17751
|
+
var _classPrivateFieldGet100;
|
|
17723
17752
|
return _regenerator().w(function (_context7) {
|
|
17724
17753
|
while (1) switch (_context7.n) {
|
|
17725
17754
|
case 0:
|
|
17726
|
-
if (!((
|
|
17755
|
+
if (!((_classPrivateFieldGet100 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet100 !== void 0 && _classPrivateFieldGet100.setControlEnabled)) {
|
|
17727
17756
|
_context7.n = 1;
|
|
17728
17757
|
break;
|
|
17729
17758
|
}
|
|
@@ -17748,11 +17777,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17748
17777
|
key: "enableControl",
|
|
17749
17778
|
value: (function () {
|
|
17750
17779
|
var _enableControl = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(name) {
|
|
17751
|
-
var
|
|
17780
|
+
var _classPrivateFieldGet101;
|
|
17752
17781
|
return _regenerator().w(function (_context8) {
|
|
17753
17782
|
while (1) switch (_context8.n) {
|
|
17754
17783
|
case 0:
|
|
17755
|
-
if (!((
|
|
17784
|
+
if (!((_classPrivateFieldGet101 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet101 !== void 0 && _classPrivateFieldGet101.setControlEnabled)) {
|
|
17756
17785
|
_context8.n = 1;
|
|
17757
17786
|
break;
|
|
17758
17787
|
}
|
|
@@ -17771,17 +17800,17 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17771
17800
|
key: "enterInputContext",
|
|
17772
17801
|
value: function () {
|
|
17773
17802
|
var _enterInputContext = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(context) {
|
|
17774
|
-
var
|
|
17803
|
+
var _classPrivateFieldGet102,
|
|
17775
17804
|
_this5 = this;
|
|
17776
17805
|
return _regenerator().w(function (_context9) {
|
|
17777
17806
|
while (1) switch (_context9.n) {
|
|
17778
17807
|
case 0:
|
|
17779
|
-
if (!((
|
|
17808
|
+
if (!((_classPrivateFieldGet102 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet102 !== void 0 && _classPrivateFieldGet102.enterInputContext)) {
|
|
17780
17809
|
_context9.n = 1;
|
|
17781
17810
|
break;
|
|
17782
17811
|
}
|
|
17783
17812
|
return _context9.a(2, new Promise(function (resolve) {
|
|
17784
|
-
var
|
|
17813
|
+
var _classPrivateFieldGet103;
|
|
17785
17814
|
var _handler = function handler(event) {
|
|
17786
17815
|
var detail = event.detail;
|
|
17787
17816
|
if (detail.context === context) {
|
|
@@ -17790,7 +17819,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17790
17819
|
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .INPUT_CONTEXT_CHANGE_EVENT */ .ve, _handler);
|
|
17791
17820
|
};
|
|
17792
17821
|
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .INPUT_CONTEXT_CHANGE_EVENT */ .ve, _handler);
|
|
17793
|
-
(
|
|
17822
|
+
(_classPrivateFieldGet103 = _classPrivateFieldGet(_impl, _this5)) === null || _classPrivateFieldGet103 === void 0 ? void 0 : _classPrivateFieldGet103.enterInputContext(context);
|
|
17794
17823
|
}));
|
|
17795
17824
|
case 1:
|
|
17796
17825
|
return _context9.a(2, Promise.reject(new Error("input context of name \"".concat(context, "\" cannot be enabled at this time"))));
|
|
@@ -17806,11 +17835,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17806
17835
|
key: "exitInputContext",
|
|
17807
17836
|
value: function () {
|
|
17808
17837
|
var _exitInputContext = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(context) {
|
|
17809
|
-
var
|
|
17838
|
+
var _classPrivateFieldGet104;
|
|
17810
17839
|
return _regenerator().w(function (_context0) {
|
|
17811
17840
|
while (1) switch (_context0.n) {
|
|
17812
17841
|
case 0:
|
|
17813
|
-
if (!((
|
|
17842
|
+
if (!((_classPrivateFieldGet104 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet104 !== void 0 && _classPrivateFieldGet104.exitInputContext)) {
|
|
17814
17843
|
_context0.n = 1;
|
|
17815
17844
|
break;
|
|
17816
17845
|
}
|
|
@@ -17863,8 +17892,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17863
17892
|
while (1) switch (_context10.n) {
|
|
17864
17893
|
case 0:
|
|
17865
17894
|
return _context10.a(2, new Promise(function (resolve, reject) {
|
|
17866
|
-
var
|
|
17867
|
-
if ((
|
|
17895
|
+
var _classPrivateFieldGet105;
|
|
17896
|
+
if ((_classPrivateFieldGet105 = _classPrivateFieldGet(_api, _this6)) !== null && _classPrivateFieldGet105 !== void 0 && _classPrivateFieldGet105.plugin && name in _classPrivateFieldGet(_api, _this6).plugin) {
|
|
17868
17897
|
resolve(_classPrivateFieldGet(_api, _this6).plugin[name]);
|
|
17869
17898
|
}
|
|
17870
17899
|
reject(new Error("plugin ".concat(name, " is not defined")));
|
|
@@ -17888,7 +17917,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17888
17917
|
key: "getRemapTime",
|
|
17889
17918
|
value: (function () {
|
|
17890
17919
|
var _getRemapTime = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
17891
|
-
var
|
|
17920
|
+
var _classPrivateFieldGet106,
|
|
17892
17921
|
_this7 = this;
|
|
17893
17922
|
var _t, _t2, _t3;
|
|
17894
17923
|
return _regenerator().w(function (_context11) {
|
|
@@ -17909,11 +17938,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17909
17938
|
});
|
|
17910
17939
|
return _context11.a(2, _classPrivateFieldGet(_cachedRemapTime, this));
|
|
17911
17940
|
case 2:
|
|
17912
|
-
if (!((
|
|
17941
|
+
if (!((_classPrivateFieldGet106 = _classPrivateFieldGet(_cachedRemapTime, this)) !== null && _classPrivateFieldGet106 !== void 0)) {
|
|
17913
17942
|
_context11.n = 3;
|
|
17914
17943
|
break;
|
|
17915
17944
|
}
|
|
17916
|
-
|
|
17945
|
+
_classPrivateFieldGet106;
|
|
17917
17946
|
_context11.n = 5;
|
|
17918
17947
|
break;
|
|
17919
17948
|
case 3:
|
|
@@ -17956,11 +17985,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17956
17985
|
key: "hideOverlay",
|
|
17957
17986
|
value: (function () {
|
|
17958
17987
|
var _hideOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(name) {
|
|
17959
|
-
var
|
|
17988
|
+
var _classPrivateFieldGet107;
|
|
17960
17989
|
return _regenerator().w(function (_context12) {
|
|
17961
17990
|
while (1) switch (_context12.n) {
|
|
17962
17991
|
case 0:
|
|
17963
|
-
if (!((
|
|
17992
|
+
if (!((_classPrivateFieldGet107 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet107 !== void 0 && _classPrivateFieldGet107.cancelOverlay)) {
|
|
17964
17993
|
_context12.n = 1;
|
|
17965
17994
|
break;
|
|
17966
17995
|
}
|
|
@@ -17990,8 +18019,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
17990
18019
|
while (1) switch (_context13.n) {
|
|
17991
18020
|
case 0:
|
|
17992
18021
|
return _context13.a(2, new Promise(function (resolve, reject) {
|
|
17993
|
-
var
|
|
17994
|
-
if ((
|
|
18022
|
+
var _classPrivateFieldGet108;
|
|
18023
|
+
if ((_classPrivateFieldGet108 = _classPrivateFieldGet(_api, _this8)) !== null && _classPrivateFieldGet108 !== void 0 && _classPrivateFieldGet108.popover) {
|
|
17995
18024
|
_classPrivateFieldGet(_api, _this8).popover.hide();
|
|
17996
18025
|
resolve();
|
|
17997
18026
|
}
|
|
@@ -18008,14 +18037,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18008
18037
|
}, {
|
|
18009
18038
|
key: "languagesToLocalizations",
|
|
18010
18039
|
value: function languagesToLocalizations(languages) {
|
|
18011
|
-
var
|
|
18012
|
-
return (
|
|
18040
|
+
var _classPrivateFieldGet109, _classPrivateFieldGet110;
|
|
18041
|
+
return (_classPrivateFieldGet109 = (_classPrivateFieldGet110 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet110 === void 0 ? void 0 : _classPrivateFieldGet110.languagesToLocalizations(languages)) !== null && _classPrivateFieldGet109 !== void 0 ? _classPrivateFieldGet109 : [];
|
|
18013
18042
|
}
|
|
18014
18043
|
}, {
|
|
18015
18044
|
key: "languageToLocalization",
|
|
18016
18045
|
value: function languageToLocalization(language) {
|
|
18017
|
-
var
|
|
18018
|
-
return (
|
|
18046
|
+
var _classPrivateFieldGet111, _classPrivateFieldGet112;
|
|
18047
|
+
return (_classPrivateFieldGet111 = (_classPrivateFieldGet112 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet112 === void 0 ? void 0 : _classPrivateFieldGet112.languageToLocalization(language)) !== null && _classPrivateFieldGet111 !== void 0 ? _classPrivateFieldGet111 : _assertClassBrand(_WistiaPlayer_brand, this, _defaultLocalization).call(this);
|
|
18019
18048
|
}
|
|
18020
18049
|
|
|
18021
18050
|
/**
|
|
@@ -18028,11 +18057,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18028
18057
|
key: "pause",
|
|
18029
18058
|
value: (function () {
|
|
18030
18059
|
var _pause = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
|
|
18031
|
-
var
|
|
18060
|
+
var _classPrivateFieldGet113;
|
|
18032
18061
|
return _regenerator().w(function (_context14) {
|
|
18033
18062
|
while (1) switch (_context14.n) {
|
|
18034
18063
|
case 0:
|
|
18035
|
-
return _context14.a(2, (
|
|
18064
|
+
return _context14.a(2, (_classPrivateFieldGet113 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet113 === void 0 ? void 0 : _classPrivateFieldGet113.pause());
|
|
18036
18065
|
}
|
|
18037
18066
|
}, _callee14, this);
|
|
18038
18067
|
}));
|
|
@@ -18051,11 +18080,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18051
18080
|
key: "play",
|
|
18052
18081
|
value: (function () {
|
|
18053
18082
|
var _play = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15() {
|
|
18054
|
-
var
|
|
18083
|
+
var _classPrivateFieldGet114;
|
|
18055
18084
|
return _regenerator().w(function (_context15) {
|
|
18056
18085
|
while (1) switch (_context15.n) {
|
|
18057
18086
|
case 0:
|
|
18058
|
-
return _context15.a(2, (
|
|
18087
|
+
return _context15.a(2, (_classPrivateFieldGet114 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet114 === void 0 ? void 0 : _classPrivateFieldGet114.play());
|
|
18059
18088
|
}
|
|
18060
18089
|
}, _callee15, this);
|
|
18061
18090
|
}));
|
|
@@ -18073,11 +18102,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18073
18102
|
key: "releaseControls",
|
|
18074
18103
|
value: (function () {
|
|
18075
18104
|
var _releaseControls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(name) {
|
|
18076
|
-
var
|
|
18105
|
+
var _classPrivateFieldGet115;
|
|
18077
18106
|
return _regenerator().w(function (_context16) {
|
|
18078
18107
|
while (1) switch (_context16.n) {
|
|
18079
18108
|
case 0:
|
|
18080
|
-
return _context16.a(2, (
|
|
18109
|
+
return _context16.a(2, (_classPrivateFieldGet115 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet115 === void 0 ? void 0 : _classPrivateFieldGet115.releaseControls(name));
|
|
18081
18110
|
}
|
|
18082
18111
|
}, _callee16, this);
|
|
18083
18112
|
}));
|
|
@@ -18156,7 +18185,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18156
18185
|
case 0:
|
|
18157
18186
|
options = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : {};
|
|
18158
18187
|
return _context17.a(2, new Promise(function (resolve, reject) {
|
|
18159
|
-
var
|
|
18188
|
+
var _classPrivateFieldGet116;
|
|
18160
18189
|
if (!_classPrivateFieldGet(_api, _this0)) {
|
|
18161
18190
|
reject(new Error('api not ready to replace'));
|
|
18162
18191
|
}
|
|
@@ -18166,7 +18195,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18166
18195
|
resolve();
|
|
18167
18196
|
};
|
|
18168
18197
|
_this0.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .AFTER_REPLACE_EVENT */ .$1, _handleAfterReplace2);
|
|
18169
|
-
(
|
|
18198
|
+
(_classPrivateFieldGet116 = _classPrivateFieldGet(_api, _this0)) === null || _classPrivateFieldGet116 === void 0 ? void 0 : _classPrivateFieldGet116.replaceWith(mediaId, options);
|
|
18170
18199
|
}));
|
|
18171
18200
|
}
|
|
18172
18201
|
}, _callee17);
|
|
@@ -18185,11 +18214,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18185
18214
|
key: "requestControls",
|
|
18186
18215
|
value: (function () {
|
|
18187
18216
|
var _requestControls = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(name) {
|
|
18188
|
-
var
|
|
18217
|
+
var _classPrivateFieldGet117;
|
|
18189
18218
|
return _regenerator().w(function (_context18) {
|
|
18190
18219
|
while (1) switch (_context18.n) {
|
|
18191
18220
|
case 0:
|
|
18192
|
-
return _context18.a(2, (
|
|
18221
|
+
return _context18.a(2, (_classPrivateFieldGet117 = _classPrivateFieldGet(_impl, this)) === null || _classPrivateFieldGet117 === void 0 ? void 0 : _classPrivateFieldGet117.requestControls(name));
|
|
18193
18222
|
}
|
|
18194
18223
|
}, _callee18, this);
|
|
18195
18224
|
}));
|
|
@@ -18207,11 +18236,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18207
18236
|
key: "requestFullscreen",
|
|
18208
18237
|
value: (function () {
|
|
18209
18238
|
var _requestFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19() {
|
|
18210
|
-
var
|
|
18239
|
+
var _classPrivateFieldGet118;
|
|
18211
18240
|
return _regenerator().w(function (_context19) {
|
|
18212
18241
|
while (1) switch (_context19.n) {
|
|
18213
18242
|
case 0:
|
|
18214
|
-
if (!((
|
|
18243
|
+
if (!((_classPrivateFieldGet118 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet118 !== void 0 && _classPrivateFieldGet118.requestFullscreen)) {
|
|
18215
18244
|
_context19.n = 1;
|
|
18216
18245
|
break;
|
|
18217
18246
|
}
|
|
@@ -18236,11 +18265,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18236
18265
|
key: "showOverlay",
|
|
18237
18266
|
value: (function () {
|
|
18238
18267
|
var _showOverlay = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(name) {
|
|
18239
|
-
var
|
|
18268
|
+
var _classPrivateFieldGet119;
|
|
18240
18269
|
return _regenerator().w(function (_context20) {
|
|
18241
18270
|
while (1) switch (_context20.n) {
|
|
18242
18271
|
case 0:
|
|
18243
|
-
if (!((
|
|
18272
|
+
if (!((_classPrivateFieldGet119 = _classPrivateFieldGet(_impl, this)) !== null && _classPrivateFieldGet119 !== void 0 && _classPrivateFieldGet119.requestOverlay)) {
|
|
18244
18273
|
_context20.n = 1;
|
|
18245
18274
|
break;
|
|
18246
18275
|
}
|
|
@@ -18270,8 +18299,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18270
18299
|
while (1) switch (_context21.n) {
|
|
18271
18300
|
case 0:
|
|
18272
18301
|
return _context21.a(2, new Promise(function (resolve, reject) {
|
|
18273
|
-
var
|
|
18274
|
-
if ((
|
|
18302
|
+
var _classPrivateFieldGet120;
|
|
18303
|
+
if ((_classPrivateFieldGet120 = _classPrivateFieldGet(_api, _this1)) !== null && _classPrivateFieldGet120 !== void 0 && _classPrivateFieldGet120.popover) {
|
|
18275
18304
|
_classPrivateFieldGet(_api, _this1).popover.show();
|
|
18276
18305
|
resolve();
|
|
18277
18306
|
}
|
|
@@ -18535,7 +18564,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18535
18564
|
}, {
|
|
18536
18565
|
key: "disconnectedCallback",
|
|
18537
18566
|
value: function disconnectedCallback() {
|
|
18538
|
-
var
|
|
18567
|
+
var _classPrivateFieldGet121, _classPrivateFieldGet122, _this$shadowRoot;
|
|
18539
18568
|
_classPrivateFieldGet(_removeEventListeners, this).forEach(function (removeListener) {
|
|
18540
18569
|
return removeListener();
|
|
18541
18570
|
});
|
|
@@ -18543,10 +18572,10 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
18543
18572
|
_classPrivateFieldSet(_eventListeners, this, {});
|
|
18544
18573
|
(0,_utilities_injectJsonLd_js__WEBPACK_IMPORTED_MODULE_31__/* .removeInjectedJsonLd */ .Z)(_classPrivateFieldGet(_jsonLdId, this));
|
|
18545
18574
|
(0,_utilities_remote_data_cache_ts__WEBPACK_IMPORTED_MODULE_34__/* .uncacheMediaData */ .s3)(this.mediaId);
|
|
18546
|
-
(
|
|
18575
|
+
(_classPrivateFieldGet121 = _classPrivateFieldGet(_resizeObserver, this)) === null || _classPrivateFieldGet121 === void 0 ? void 0 : _classPrivateFieldGet121.disconnect();
|
|
18547
18576
|
_classPrivateFieldSet(_resizeObserver, this, null);
|
|
18548
18577
|
(0,_utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_13__/* .removeEmbedOptionStore */ .iU)("__".concat(this.uniqueId, "_dom_options__"));
|
|
18549
|
-
(
|
|
18578
|
+
(_classPrivateFieldGet122 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet122 === void 0 ? void 0 : _classPrivateFieldGet122.remove();
|
|
18550
18579
|
_classPrivateFieldSet(_api, this, null);
|
|
18551
18580
|
(_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.replaceChildren();
|
|
18552
18581
|
_classPrivateFieldSet(_preactRoot, this, null);
|
|
@@ -18603,14 +18632,17 @@ function _defaultLocalization() {
|
|
|
18603
18632
|
* @returns {boolean}
|
|
18604
18633
|
*/
|
|
18605
18634
|
function _deferMediaDataFetchingToCarouselEmbed() {
|
|
18635
|
+
if (!(0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__/* .isNonEmptyString */ .uI)(this.id)) {
|
|
18636
|
+
return false;
|
|
18637
|
+
}
|
|
18606
18638
|
return !!document.querySelector("wistia-channel-carousel[player-dom-id=\"".concat(this.id, "\"]:not([is-inside-playlist-embed=\"true\"][channel-id])"));
|
|
18607
18639
|
}
|
|
18608
18640
|
function _findLocalizationByLanguage(language) {
|
|
18609
|
-
var
|
|
18641
|
+
var _classPrivateFieldGet123;
|
|
18610
18642
|
if (language == null) {
|
|
18611
18643
|
return undefined;
|
|
18612
18644
|
}
|
|
18613
|
-
return (
|
|
18645
|
+
return (_classPrivateFieldGet123 = _classPrivateFieldGet(_playerData, this).mediaData.localizations) === null || _classPrivateFieldGet123 === void 0 ? void 0 : _classPrivateFieldGet123.find(function (localization) {
|
|
18614
18646
|
return localization.wistiaLanguageCode === language || localization.bcp47LanguageTag === language;
|
|
18615
18647
|
});
|
|
18616
18648
|
}
|
|
@@ -18689,8 +18721,8 @@ function _initPlayerEmbed(_ref22) {
|
|
|
18689
18721
|
_assertClassBrand(_WistiaPlayer_brand, this, _maybeInjectJsonLd).call(this);
|
|
18690
18722
|
}
|
|
18691
18723
|
if ('attachInternals' in HTMLElement.prototype && 'states' in ElementInternals.prototype) {
|
|
18692
|
-
var
|
|
18693
|
-
(
|
|
18724
|
+
var _classPrivateFieldGet124;
|
|
18725
|
+
(_classPrivateFieldGet124 = _classPrivateFieldGet(_internals, this)) === null || _classPrivateFieldGet124 === void 0 ? void 0 : _classPrivateFieldGet124.states.delete('--initializing');
|
|
18694
18726
|
}
|
|
18695
18727
|
|
|
18696
18728
|
// Create and save the public api instance
|
|
@@ -18746,10 +18778,10 @@ function _initPublicApi2() {
|
|
|
18746
18778
|
_this19.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .AFTER_REPLACE_EVENT */ .$1, _classPrivateFieldGet(_handleAfterReplace, _this19));
|
|
18747
18779
|
});
|
|
18748
18780
|
_classPrivateFieldGet(_api, this).ready(function () {
|
|
18749
|
-
var
|
|
18750
|
-
(
|
|
18781
|
+
var _classPrivateFieldGet131, _classPrivateFieldGet132;
|
|
18782
|
+
(_classPrivateFieldGet131 = _classPrivateFieldGet(_resizeObserver, _this19)) === null || _classPrivateFieldGet131 === void 0 ? void 0 : _classPrivateFieldGet131.disconnect();
|
|
18751
18783
|
_classPrivateFieldSet(_resizeObserver, _this19, null);
|
|
18752
|
-
(
|
|
18784
|
+
(_classPrivateFieldGet132 = _classPrivateFieldGet(_preloadThumbnailRoot, _this19)) === null || _classPrivateFieldGet132 === void 0 ? void 0 : _classPrivateFieldGet132.remove();
|
|
18753
18785
|
_this19.removeEventListener('click', _classPrivateFieldGet(_handlePreloadThumbnailClick, _this19));
|
|
18754
18786
|
// event for public consumption, exposed on our event types
|
|
18755
18787
|
_this19.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_15__/* .API_READY_EVENT */ .c5, {
|
|
@@ -18840,8 +18872,8 @@ function _maybeInitializeMux2() {
|
|
|
18840
18872
|
this.addEventListener('visitor-tracking-change', function (event) {
|
|
18841
18873
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
18842
18874
|
if (!isTrackingEnabled) {
|
|
18843
|
-
var
|
|
18844
|
-
(
|
|
18875
|
+
var _classPrivateFieldGet134, _classPrivateFieldGet135;
|
|
18876
|
+
(_classPrivateFieldGet134 = _classPrivateFieldGet(_api, _this20)) === null || _classPrivateFieldGet134 === void 0 ? void 0 : (_classPrivateFieldGet135 = _classPrivateFieldGet134.mux) === null || _classPrivateFieldGet135 === void 0 ? void 0 : _classPrivateFieldGet135.destroy();
|
|
18845
18877
|
}
|
|
18846
18878
|
});
|
|
18847
18879
|
case 6:
|
|
@@ -18960,13 +18992,13 @@ function _renderPreloadThumbnail() {
|
|
|
18960
18992
|
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
18961
18993
|
return;
|
|
18962
18994
|
}
|
|
18963
|
-
var
|
|
18964
|
-
assets =
|
|
18965
|
-
mediaType =
|
|
18966
|
-
carouselHardWall =
|
|
18967
|
-
var
|
|
18968
|
-
autoPlay =
|
|
18969
|
-
plugin =
|
|
18995
|
+
var _classPrivateFieldGet125 = _classPrivateFieldGet(_playerData, this).mediaData,
|
|
18996
|
+
assets = _classPrivateFieldGet125.assets,
|
|
18997
|
+
mediaType = _classPrivateFieldGet125.mediaType,
|
|
18998
|
+
carouselHardWall = _classPrivateFieldGet125.carouselHardWall;
|
|
18999
|
+
var _classPrivateFieldGet126 = _classPrivateFieldGet(_playerData, this).embedOptions,
|
|
19000
|
+
autoPlay = _classPrivateFieldGet126.autoPlay,
|
|
19001
|
+
plugin = _classPrivateFieldGet126.plugin;
|
|
18970
19002
|
|
|
18971
19003
|
// Don't render the preload thumbnail if we're going to show a carousel hard wall player.
|
|
18972
19004
|
if (carouselHardWall) {
|
|
@@ -19013,12 +19045,12 @@ function _runMethodsFromAttributes() {
|
|
|
19013
19045
|
// We have to wait until the api is ready to set the current time
|
|
19014
19046
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'current-time') !== null) {
|
|
19015
19047
|
this.whenApiReady().then(function () {
|
|
19016
|
-
var _ref24,
|
|
19048
|
+
var _ref24, _classPrivateFieldGet127, _classPrivateFieldGet128;
|
|
19017
19049
|
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, 'current-time'));
|
|
19018
|
-
var isClosedPopover = (_ref24 = ((
|
|
19050
|
+
var isClosedPopover = (_ref24 = ((_classPrivateFieldGet127 = _classPrivateFieldGet(_api, _this14)) === null || _classPrivateFieldGet127 === void 0 ? void 0 : _classPrivateFieldGet127.popover) && !_classPrivateFieldGet(_api, _this14).popover.isVisible()) !== null && _ref24 !== void 0 ? _ref24 : false;
|
|
19019
19051
|
var isMobile = (0,_utilities_detect_js__WEBPACK_IMPORTED_MODULE_11__/* .detectIsMobile */ .GS)();
|
|
19020
19052
|
var shouldDelayUntilPlay = _this14.state !== 'playing' && (isMobile || isClosedPopover);
|
|
19021
|
-
void ((
|
|
19053
|
+
void ((_classPrivateFieldGet128 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet128 === void 0 ? void 0 : _classPrivateFieldGet128.time(newTime, {
|
|
19022
19054
|
lazy: shouldDelayUntilPlay
|
|
19023
19055
|
}));
|
|
19024
19056
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, 'currentTime', newTime);
|
|
@@ -19031,9 +19063,9 @@ function _runMethodsFromAttributes() {
|
|
|
19031
19063
|
}
|
|
19032
19064
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'video-quality') !== null) {
|
|
19033
19065
|
this.whenApiReady().then(function () {
|
|
19034
|
-
var
|
|
19066
|
+
var _classPrivateFieldGet129;
|
|
19035
19067
|
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, 'video-quality');
|
|
19036
|
-
(
|
|
19068
|
+
(_classPrivateFieldGet129 = _classPrivateFieldGet(_impl, _this14)) === null || _classPrivateFieldGet129 === void 0 ? void 0 : _classPrivateFieldGet129.setVideoQuality(newQuality);
|
|
19037
19069
|
_assertClassBrand(_WistiaPlayer_brand, _this14, _setSyncedEmbedOption).call(_this14, 'videoQuality', newQuality);
|
|
19038
19070
|
})
|
|
19039
19071
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|