@wistia/wistia-player-react 0.0.113 → 0.0.114
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.
|
@@ -971,6 +971,9 @@ function _updateEmail(email) {
|
|
|
971
971
|
}));
|
|
972
972
|
}
|
|
973
973
|
function _updateMediaData(mediaData) {
|
|
974
|
+
if ((0, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_31__.V)(mediaData)) {
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
974
977
|
_classPrivateFieldGet(_playerData, this).setMediaDataSource(mediaData);
|
|
975
978
|
_classPrivateFieldSet(_playerType, this, (0, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__.$F)(_classPrivateFieldGet(_judyContext, this), _classPrivateFieldGet(_playerData, this).mediaData, _classPrivateFieldGet(_playerData, this).embedOptions));
|
|
976
979
|
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
@@ -1379,7 +1382,10 @@ var init_wistia_player = __esm({
|
|
|
1379
1382
|
if (mediaData.mediaType === "Audio") {
|
|
1380
1383
|
return "engines/simple_audio.js";
|
|
1381
1384
|
}
|
|
1382
|
-
|
|
1385
|
+
var isApple = detect.safari || detect.ios.version > 0;
|
|
1386
|
+
var allowsSameOrigin = window.origin !== "null";
|
|
1387
|
+
var restrictedBySameOrigin = isApple && !allowsSameOrigin;
|
|
1388
|
+
if (allowHls && detect.nativeHls && (detect.managedMediaSource === false || restrictedBySameOrigin)) {
|
|
1383
1389
|
logger.info(NATIVE_HLS_VIDEO);
|
|
1384
1390
|
return "engines/native_hls_video.js";
|
|
1385
1391
|
}
|
|
@@ -2504,7 +2510,7 @@ var init_wistia_player = __esm({
|
|
|
2504
2510
|
)
|
|
2505
2511
|
/* harmony export */
|
|
2506
2512
|
});
|
|
2507
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(
|
|
2513
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
|
|
2508
2514
|
var isMediaDataError = function isMediaDataError2(mediaData) {
|
|
2509
2515
|
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(mediaData.error)) {
|
|
2510
2516
|
return false;
|
|
@@ -2538,7 +2544,7 @@ var init_wistia_player = __esm({
|
|
|
2538
2544
|
)
|
|
2539
2545
|
/* harmony export */
|
|
2540
2546
|
});
|
|
2541
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(
|
|
2547
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(9814);
|
|
2542
2548
|
var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(5417);
|
|
2543
2549
|
var _sentryUtils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(2621);
|
|
2544
2550
|
function _toConsumableArray(r) {
|
|
@@ -4280,7 +4286,7 @@ var init_wistia_player = __esm({
|
|
|
4280
4286
|
)
|
|
4281
4287
|
/* harmony export */
|
|
4282
4288
|
});
|
|
4283
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(
|
|
4289
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(9814);
|
|
4284
4290
|
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(5509);
|
|
4285
4291
|
var _hosts_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5857);
|
|
4286
4292
|
var _media_data_transforms_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(3917);
|
|
@@ -5129,7 +5135,7 @@ var init_wistia_player = __esm({
|
|
|
5129
5135
|
)
|
|
5130
5136
|
/* harmony export */
|
|
5131
5137
|
});
|
|
5132
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(
|
|
5138
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(9814);
|
|
5133
5139
|
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(5509);
|
|
5134
5140
|
var _wlog_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(6637);
|
|
5135
5141
|
var _objectHasOwn = function(object, property) {
|
|
@@ -5193,7 +5199,7 @@ var init_wistia_player = __esm({
|
|
|
5193
5199
|
)
|
|
5194
5200
|
/* harmony export */
|
|
5195
5201
|
});
|
|
5196
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(
|
|
5202
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(9814);
|
|
5197
5203
|
var _normalizeChapters_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9128);
|
|
5198
5204
|
function _toConsumableArray(r) {
|
|
5199
5205
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray2(r) || _nonIterableSpread();
|
|
@@ -5675,7 +5681,7 @@ var init_wistia_player = __esm({
|
|
|
5675
5681
|
var utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(731);
|
|
5676
5682
|
var utilities_url_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(2671);
|
|
5677
5683
|
var utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(7231);
|
|
5678
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(
|
|
5684
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(9814);
|
|
5679
5685
|
var _assets_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(7209);
|
|
5680
5686
|
function _toConsumableArray(r) {
|
|
5681
5687
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray2(r) || _nonIterableSpread();
|
|
@@ -6248,73 +6254,6 @@ var init_wistia_player = __esm({
|
|
|
6248
6254
|
}
|
|
6249
6255
|
),
|
|
6250
6256
|
/***/
|
|
6251
|
-
4586: (
|
|
6252
|
-
/***/
|
|
6253
|
-
(__unused_webpack_module, exports) => {
|
|
6254
|
-
var __webpack_unused_export__;
|
|
6255
|
-
__webpack_unused_export__ = { value: true };
|
|
6256
|
-
__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.Lm = __webpack_unused_export__ = exports.Tn = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.cy = exports.uu = __webpack_unused_export__ = exports.u4 = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.Et = __webpack_unused_export__ = exports.jw = __webpack_unused_export__ = exports.Kg = exports.n9 = exports.gD = __webpack_unused_export__ = exports.b0 = __webpack_unused_export__ = exports.kZ = void 0;
|
|
6257
|
-
const isNull = (x) => x === null;
|
|
6258
|
-
exports.kZ = isNull;
|
|
6259
|
-
const isNotNull = (x) => !(0, exports.kZ)(x);
|
|
6260
|
-
__webpack_unused_export__ = isNotNull;
|
|
6261
|
-
const isUndefined = (x) => x === void 0;
|
|
6262
|
-
exports.b0 = isUndefined;
|
|
6263
|
-
const isNotUndefined = (x) => !(0, exports.b0)(x);
|
|
6264
|
-
__webpack_unused_export__ = isNotUndefined;
|
|
6265
|
-
const isNil2 = (x) => (0, exports.kZ)(x) || (0, exports.b0)(x);
|
|
6266
|
-
exports.gD = isNil2;
|
|
6267
|
-
const isNotNil = (x) => !(0, exports.gD)(x);
|
|
6268
|
-
exports.n9 = isNotNil;
|
|
6269
|
-
const isString = (x) => typeof x === "string";
|
|
6270
|
-
exports.Kg = isString;
|
|
6271
|
-
const isNotString = (x) => !(0, exports.Kg)(x);
|
|
6272
|
-
__webpack_unused_export__ = isNotString;
|
|
6273
|
-
const isEmptyString = (x) => (0, exports.Kg)(x) && x === "";
|
|
6274
|
-
exports.jw = isEmptyString;
|
|
6275
|
-
const isNonEmptyString2 = (x) => (0, exports.Kg)(x) && !(0, exports.jw)(x);
|
|
6276
|
-
__webpack_unused_export__ = isNonEmptyString2;
|
|
6277
|
-
const isNumber2 = (x) => typeof x === "number";
|
|
6278
|
-
exports.Et = isNumber2;
|
|
6279
|
-
const isNotNumber = (x) => !(0, exports.Et)(x);
|
|
6280
|
-
__webpack_unused_export__ = isNotNumber;
|
|
6281
|
-
const isNaN2 = (x) => Number.isNaN(x);
|
|
6282
|
-
__webpack_unused_export__ = isNaN2;
|
|
6283
|
-
const isInteger = (x) => Number.isInteger(x);
|
|
6284
|
-
__webpack_unused_export__ = isInteger;
|
|
6285
|
-
const isRecord = (x) => (0, exports.n9)(x) && typeof x === "object" && !(x instanceof Array);
|
|
6286
|
-
exports.u4 = isRecord;
|
|
6287
|
-
const isEmptyRecord = (x) => (0, exports.u4)(x) && Object.keys(x).length === 0;
|
|
6288
|
-
__webpack_unused_export__ = isEmptyRecord;
|
|
6289
|
-
const isNonEmptyRecord2 = (x) => (0, exports.u4)(x) && Object.keys(x).length > 0;
|
|
6290
|
-
exports.uu = isNonEmptyRecord2;
|
|
6291
|
-
const isArray2 = (x) => (0, exports.n9)(x) && typeof x === "object" && x instanceof Array;
|
|
6292
|
-
exports.cy = isArray2;
|
|
6293
|
-
const isNotArray = (x) => !(0, exports.cy)(x);
|
|
6294
|
-
__webpack_unused_export__ = isNotArray;
|
|
6295
|
-
const isEmptyArray = (x) => (0, exports.cy)(x) && x.length === 0;
|
|
6296
|
-
__webpack_unused_export__ = isEmptyArray;
|
|
6297
|
-
const isNonEmptyArray = (x) => (0, exports.cy)(x) && x.length > 0;
|
|
6298
|
-
__webpack_unused_export__ = isNonEmptyArray;
|
|
6299
|
-
const isFunction = (x) => (0, exports.n9)(x) && typeof x === "function";
|
|
6300
|
-
exports.Tn = isFunction;
|
|
6301
|
-
const isNotFunction = (x) => !(0, exports.Tn)(x);
|
|
6302
|
-
__webpack_unused_export__ = isNotFunction;
|
|
6303
|
-
const isBoolean = (x) => (0, exports.n9)(x) && typeof x === "boolean";
|
|
6304
|
-
exports.Lm = isBoolean;
|
|
6305
|
-
const isNotBoolean = (x) => !(0, exports.Lm)(x);
|
|
6306
|
-
__webpack_unused_export__ = isNotBoolean;
|
|
6307
|
-
const isVoid = (x) => x === void 0;
|
|
6308
|
-
__webpack_unused_export__ = isVoid;
|
|
6309
|
-
const isError = (error) => {
|
|
6310
|
-
return (0, exports.n9)(error) && error instanceof Error;
|
|
6311
|
-
};
|
|
6312
|
-
__webpack_unused_export__ = isError;
|
|
6313
|
-
const hasKey = (x, key) => (0, exports.uu)(x) && key in x;
|
|
6314
|
-
__webpack_unused_export__ = hasKey;
|
|
6315
|
-
}
|
|
6316
|
-
),
|
|
6317
|
-
/***/
|
|
6318
6257
|
4635: (
|
|
6319
6258
|
/***/
|
|
6320
6259
|
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
@@ -8735,7 +8674,7 @@ var init_wistia_player = __esm({
|
|
|
8735
8674
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8736
8675
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
8737
8676
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8738
|
-
var TAGGED_VERSION2 = "0.0.
|
|
8677
|
+
var TAGGED_VERSION2 = "0.0.114";
|
|
8739
8678
|
var CURRENT_SHA2 = (
|
|
8740
8679
|
/* unused pure expression or super */
|
|
8741
8680
|
null
|
|
@@ -10461,6 +10400,11 @@ var init_wistia_player = __esm({
|
|
|
10461
10400
|
}, options);
|
|
10462
10401
|
return one(assets, options);
|
|
10463
10402
|
};
|
|
10403
|
+
var hasAnyReadyHdrAssets = function hasAnyReadyHdrAssets2(assets) {
|
|
10404
|
+
return assets.some(function(asset) {
|
|
10405
|
+
return asset.type === "hdr_video" && asset.status === READY && asset.public && asset.container === "mp4";
|
|
10406
|
+
});
|
|
10407
|
+
};
|
|
10464
10408
|
var mp4 = function mp42(assets, options) {
|
|
10465
10409
|
return onePublicReadyWithContainer(assets, "mp4", options);
|
|
10466
10410
|
};
|
|
@@ -10731,6 +10675,17 @@ var init_wistia_player = __esm({
|
|
|
10731
10675
|
var touchScreen = function touchScreen2() {
|
|
10732
10676
|
return iosVersion() > 0 || android() || ipad();
|
|
10733
10677
|
};
|
|
10678
|
+
var HDRCodecSupport = function HDRCodecSupport2() {
|
|
10679
|
+
var _window$MediaSource$i, _window$MediaSource, _window$MediaSource$i2, _window$MediaSource$i3, _window$MediaSource2, _window$MediaSource2$, _window$MediaSource$i4, _window$MediaSource3, _window$MediaSource3$;
|
|
10680
|
+
return {
|
|
10681
|
+
hevc: (_window$MediaSource$i = (_window$MediaSource = window.MediaSource) === null || _window$MediaSource === void 0 ? void 0 : (_window$MediaSource$i2 = _window$MediaSource.isTypeSupported) === null || _window$MediaSource$i2 === void 0 ? void 0 : _window$MediaSource$i2.call(_window$MediaSource, 'video/mp4; codecs="hvc1.2.4.L153.B0"')) !== null && _window$MediaSource$i !== void 0 ? _window$MediaSource$i : false,
|
|
10682
|
+
// // HEVC Main10
|
|
10683
|
+
av1: (_window$MediaSource$i3 = (_window$MediaSource2 = window.MediaSource) === null || _window$MediaSource2 === void 0 ? void 0 : (_window$MediaSource2$ = _window$MediaSource2.isTypeSupported) === null || _window$MediaSource2$ === void 0 ? void 0 : _window$MediaSource2$.call(_window$MediaSource2, 'video/mp4; codecs="av01.0.08M.10.0.110.09.16.09"')) !== null && _window$MediaSource$i3 !== void 0 ? _window$MediaSource$i3 : false,
|
|
10684
|
+
// AV1 10-bit Main, PQ (HDR10)
|
|
10685
|
+
vp92: (_window$MediaSource$i4 = (_window$MediaSource3 = window.MediaSource) === null || _window$MediaSource3 === void 0 ? void 0 : (_window$MediaSource3$ = _window$MediaSource3.isTypeSupported) === null || _window$MediaSource3$ === void 0 ? void 0 : _window$MediaSource3$.call(_window$MediaSource3, 'video/mp4; codecs="vp09.02.10.10.01.09.16.09"')) !== null && _window$MediaSource$i4 !== void 0 ? _window$MediaSource$i4 : false
|
|
10686
|
+
// // VP9 Profile 2 (10-bit)
|
|
10687
|
+
};
|
|
10688
|
+
};
|
|
10734
10689
|
var HDRSupported = function HDRSupported2() {
|
|
10735
10690
|
var _window$matchMedia, _window;
|
|
10736
10691
|
if ((_window$matchMedia = (_window = window).matchMedia) !== null && _window$matchMedia !== void 0 && _window$matchMedia.call(_window, "(dynamic-range: high)").matches) {
|
|
@@ -10846,6 +10801,10 @@ var init_wistia_player = __esm({
|
|
|
10846
10801
|
var fullscreenEnabled = function fullscreenEnabled2() {
|
|
10847
10802
|
return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
|
|
10848
10803
|
};
|
|
10804
|
+
var managedMediaSource = function managedMediaSource2() {
|
|
10805
|
+
var _window$ManagedMediaS;
|
|
10806
|
+
return "ManagedMediaSource" in window && typeof ((_window$ManagedMediaS = window.ManagedMediaSource) === null || _window$ManagedMediaS === void 0 ? void 0 : _window$ManagedMediaS.isTypeSupported) === "function";
|
|
10807
|
+
};
|
|
10849
10808
|
var browserPrefixes = ["WebKit", "Moz", "O", "Ms", ""];
|
|
10850
10809
|
var mutationObserver = function mutationObserver2() {
|
|
10851
10810
|
for (var i2 = 0; i2 < browserPrefixes.length; i2++) {
|
|
@@ -10914,6 +10873,7 @@ var init_wistia_player = __esm({
|
|
|
10914
10873
|
firefox: firefox(),
|
|
10915
10874
|
gearvr: gearvr(),
|
|
10916
10875
|
hdr: HDRSupported(),
|
|
10876
|
+
hdrCodecs: HDRCodecSupport(),
|
|
10917
10877
|
android: android(),
|
|
10918
10878
|
oldandroid: oldandroid(),
|
|
10919
10879
|
iphone: iphone(),
|
|
@@ -10932,6 +10892,7 @@ var init_wistia_player = __esm({
|
|
|
10932
10892
|
hoverIsNatural: hoverIsNatural(),
|
|
10933
10893
|
touchScreen: touchScreen(),
|
|
10934
10894
|
video: html5Video(),
|
|
10895
|
+
managedMediaSource: managedMediaSource(),
|
|
10935
10896
|
mediaSource: mediaSource(),
|
|
10936
10897
|
nativeHls: nativeHls(),
|
|
10937
10898
|
localstorage: localStorage2(),
|
|
@@ -13568,7 +13529,7 @@ var init_wistia_player = __esm({
|
|
|
13568
13529
|
)
|
|
13569
13530
|
/* harmony export */
|
|
13570
13531
|
});
|
|
13571
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(
|
|
13532
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
|
|
13572
13533
|
var normalizeChapters = function normalizeChapters2(embedOptions) {
|
|
13573
13534
|
var plugin = embedOptions.plugin, chaptersOn = embedOptions.chaptersOn, chapterList = embedOptions.chapterList;
|
|
13574
13535
|
if (plugin !== null && plugin !== void 0 && plugin.chapters) {
|
|
@@ -13968,6 +13929,60 @@ var init_wistia_player = __esm({
|
|
|
13968
13929
|
}));
|
|
13969
13930
|
};
|
|
13970
13931
|
}
|
|
13932
|
+
),
|
|
13933
|
+
/***/
|
|
13934
|
+
9814: (
|
|
13935
|
+
/***/
|
|
13936
|
+
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
13937
|
+
__webpack_require__3.d(__webpack_exports__3, {
|
|
13938
|
+
/* harmony export */
|
|
13939
|
+
gD: () => (
|
|
13940
|
+
/* binding */
|
|
13941
|
+
isNil2
|
|
13942
|
+
),
|
|
13943
|
+
/* harmony export */
|
|
13944
|
+
n9: () => (
|
|
13945
|
+
/* binding */
|
|
13946
|
+
isNotNil
|
|
13947
|
+
)
|
|
13948
|
+
/* harmony export */
|
|
13949
|
+
});
|
|
13950
|
+
var FALSY_VALUES = [false, 0, -0, 0n, "", null, void 0, Number.NaN];
|
|
13951
|
+
var isNull = (value) => value === null;
|
|
13952
|
+
var isNotNull = (value) => !isNull(value);
|
|
13953
|
+
var isUndefined = (value) => value === void 0;
|
|
13954
|
+
var isNotUndefined = (value) => !isUndefined(value);
|
|
13955
|
+
var isNil2 = (value) => isNull(value) || isUndefined(value);
|
|
13956
|
+
var isNotNil = (value) => !isNil2(value);
|
|
13957
|
+
var isString = (value) => typeof value === "string";
|
|
13958
|
+
var isNotString = (value) => !isString(value);
|
|
13959
|
+
var isEmptyString = (value) => isString(value) && value === "";
|
|
13960
|
+
var isNonEmptyString2 = (value) => isString(value) && !isEmptyString(value);
|
|
13961
|
+
var isNumber2 = (value) => typeof value === "number";
|
|
13962
|
+
var isNotNumber = (value) => !isNumber2(value);
|
|
13963
|
+
var isNaN2 = (value) => Number.isNaN(value);
|
|
13964
|
+
var isInteger = (value) => Number.isInteger(value);
|
|
13965
|
+
var isRecord = (value) => isNotNil(value) && typeof value === "object" && !(value instanceof Array);
|
|
13966
|
+
var isNotRecord = (value) => !isRecord(value);
|
|
13967
|
+
var isEmptyRecord = (value) => isRecord(value) && Object.keys(value).length === 0;
|
|
13968
|
+
var isNonEmptyRecord2 = (value) => isRecord(value) && Object.keys(value).length > 0;
|
|
13969
|
+
var isArray2 = (value) => isNotNil(value) && typeof value === "object" && value instanceof Array;
|
|
13970
|
+
var isNotArray = (value) => !isArray2(value);
|
|
13971
|
+
var isEmptyArray = (value) => isArray2(value) && value.length === 0;
|
|
13972
|
+
var isNonEmptyArray = (value) => isArray2(value) && value.length > 0;
|
|
13973
|
+
var isFunction = (value) => isNotNil(value) && typeof value === "function";
|
|
13974
|
+
var isNotFunction = (value) => !isFunction(value);
|
|
13975
|
+
var isBoolean = (value) => isNotNil(value) && typeof value === "boolean";
|
|
13976
|
+
var isNotBoolean = (value) => !isBoolean(value);
|
|
13977
|
+
var isVoid = (value) => value === void 0;
|
|
13978
|
+
var isNotVoid = (value) => !isVoid(value);
|
|
13979
|
+
var isError = (value) => {
|
|
13980
|
+
return isNotNil(value) && value instanceof Error;
|
|
13981
|
+
};
|
|
13982
|
+
var isFalsy = (value) => FALSY_VALUES.includes(value) || Number.isNaN(value);
|
|
13983
|
+
var isTruthy = (value) => !FALSY_VALUES.includes(value) && !Number.isNaN(value);
|
|
13984
|
+
var hasKey = (value, key) => isNonEmptyRecord2(value) && key in value;
|
|
13985
|
+
}
|
|
13971
13986
|
)
|
|
13972
13987
|
/******/
|
|
13973
13988
|
};
|
|
@@ -16277,7 +16292,7 @@ var init_wistia_player = __esm({
|
|
|
16277
16292
|
return;
|
|
16278
16293
|
}
|
|
16279
16294
|
var mediaData = mediaDataOrError;
|
|
16280
|
-
_this14.mediaId = (_mediaData$hashedId = mediaData.hashedId) !== null && _mediaData$hashedId !== void 0 ? _mediaData$hashedId :
|
|
16295
|
+
_this14.mediaId = (_mediaData$hashedId = mediaData.hashedId) !== null && _mediaData$hashedId !== void 0 ? _mediaData$hashedId : _this14.mediaId;
|
|
16281
16296
|
_classPrivateFieldGet(_playerData, _this14).setMediaDataSource(mediaData);
|
|
16282
16297
|
_this14.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.rO, {
|
|
16283
16298
|
detail: {
|
|
@@ -16517,3 +16532,10 @@ var WistiaPlayer2 = (0, import_react2.forwardRef)(
|
|
|
16517
16532
|
}
|
|
16518
16533
|
);
|
|
16519
16534
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
16535
|
+
/*
|
|
16536
|
+
* @license @wistia/type-guards v0.9.1
|
|
16537
|
+
*
|
|
16538
|
+
* Copyright (c) 2023-2025, Wistia, Inc. and its affiliates.
|
|
16539
|
+
*
|
|
16540
|
+
* This source code is unlicensed, all rights reserved.
|
|
16541
|
+
*/
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { forwardRef, Suspense, lazy, Fragment } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var WistiaPlayerWrapper = lazy(
|
|
10
|
-
async () => import("./WistiaPlayerWrapper-
|
|
10
|
+
async () => import("./WistiaPlayerWrapper-SODP2R77.mjs").then((module) => ({
|
|
11
11
|
default: module.WistiaPlayerWrapper
|
|
12
12
|
}))
|
|
13
13
|
);
|
|
@@ -22,7 +22,7 @@ var WistiaPlayerWrapper = forwardRef(
|
|
|
22
22
|
setSwatchAspectRatio(ratio);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
void import("./wistia-player-
|
|
25
|
+
void import("./wistia-player-JIBG6B7J.mjs");
|
|
26
26
|
void customElements.whenDefined("wistia-player").then(() => {
|
|
27
27
|
setIsWistiaPlayerDefined(true);
|
|
28
28
|
});
|
|
@@ -400,7 +400,10 @@ var __webpack_modules__ = {
|
|
|
400
400
|
if (mediaData.mediaType === "Audio") {
|
|
401
401
|
return "engines/simple_audio.js";
|
|
402
402
|
}
|
|
403
|
-
|
|
403
|
+
var isApple = detect.safari || detect.ios.version > 0;
|
|
404
|
+
var allowsSameOrigin = window.origin !== "null";
|
|
405
|
+
var restrictedBySameOrigin = isApple && !allowsSameOrigin;
|
|
406
|
+
if (allowHls && detect.nativeHls && (detect.managedMediaSource === false || restrictedBySameOrigin)) {
|
|
404
407
|
logger.info(NATIVE_HLS_VIDEO);
|
|
405
408
|
return "engines/native_hls_video.js";
|
|
406
409
|
}
|
|
@@ -1525,7 +1528,7 @@ var __webpack_modules__ = {
|
|
|
1525
1528
|
)
|
|
1526
1529
|
/* harmony export */
|
|
1527
1530
|
});
|
|
1528
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(
|
|
1531
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
|
|
1529
1532
|
var isMediaDataError = function isMediaDataError2(mediaData) {
|
|
1530
1533
|
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(mediaData.error)) {
|
|
1531
1534
|
return false;
|
|
@@ -1559,7 +1562,7 @@ var __webpack_modules__ = {
|
|
|
1559
1562
|
)
|
|
1560
1563
|
/* harmony export */
|
|
1561
1564
|
});
|
|
1562
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(
|
|
1565
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(9814);
|
|
1563
1566
|
var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(5417);
|
|
1564
1567
|
var _sentryUtils_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(2621);
|
|
1565
1568
|
function _toConsumableArray(r) {
|
|
@@ -3301,7 +3304,7 @@ var __webpack_modules__ = {
|
|
|
3301
3304
|
)
|
|
3302
3305
|
/* harmony export */
|
|
3303
3306
|
});
|
|
3304
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(
|
|
3307
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(9814);
|
|
3305
3308
|
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(5509);
|
|
3306
3309
|
var _hosts_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5857);
|
|
3307
3310
|
var _media_data_transforms_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(3917);
|
|
@@ -4150,7 +4153,7 @@ var __webpack_modules__ = {
|
|
|
4150
4153
|
)
|
|
4151
4154
|
/* harmony export */
|
|
4152
4155
|
});
|
|
4153
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(
|
|
4156
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(9814);
|
|
4154
4157
|
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(5509);
|
|
4155
4158
|
var _wlog_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(6637);
|
|
4156
4159
|
var _objectHasOwn = function(object, property) {
|
|
@@ -4214,7 +4217,7 @@ var __webpack_modules__ = {
|
|
|
4214
4217
|
)
|
|
4215
4218
|
/* harmony export */
|
|
4216
4219
|
});
|
|
4217
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(
|
|
4220
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(9814);
|
|
4218
4221
|
var _normalizeChapters_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9128);
|
|
4219
4222
|
function _toConsumableArray(r) {
|
|
4220
4223
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray2(r) || _nonIterableSpread();
|
|
@@ -4696,7 +4699,7 @@ var __webpack_modules__ = {
|
|
|
4696
4699
|
var utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(731);
|
|
4697
4700
|
var utilities_url_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(2671);
|
|
4698
4701
|
var utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(7231);
|
|
4699
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(
|
|
4702
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(9814);
|
|
4700
4703
|
var _assets_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(7209);
|
|
4701
4704
|
function _toConsumableArray(r) {
|
|
4702
4705
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray2(r) || _nonIterableSpread();
|
|
@@ -5269,73 +5272,6 @@ var __webpack_modules__ = {
|
|
|
5269
5272
|
}
|
|
5270
5273
|
),
|
|
5271
5274
|
/***/
|
|
5272
|
-
4586: (
|
|
5273
|
-
/***/
|
|
5274
|
-
(__unused_webpack_module, exports) => {
|
|
5275
|
-
var __webpack_unused_export__;
|
|
5276
|
-
__webpack_unused_export__ = { value: true };
|
|
5277
|
-
__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.Lm = __webpack_unused_export__ = exports.Tn = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.cy = exports.uu = __webpack_unused_export__ = exports.u4 = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.Et = __webpack_unused_export__ = exports.jw = __webpack_unused_export__ = exports.Kg = exports.n9 = exports.gD = __webpack_unused_export__ = exports.b0 = __webpack_unused_export__ = exports.kZ = void 0;
|
|
5278
|
-
const isNull = (x) => x === null;
|
|
5279
|
-
exports.kZ = isNull;
|
|
5280
|
-
const isNotNull = (x) => !(0, exports.kZ)(x);
|
|
5281
|
-
__webpack_unused_export__ = isNotNull;
|
|
5282
|
-
const isUndefined = (x) => x === void 0;
|
|
5283
|
-
exports.b0 = isUndefined;
|
|
5284
|
-
const isNotUndefined = (x) => !(0, exports.b0)(x);
|
|
5285
|
-
__webpack_unused_export__ = isNotUndefined;
|
|
5286
|
-
const isNil2 = (x) => (0, exports.kZ)(x) || (0, exports.b0)(x);
|
|
5287
|
-
exports.gD = isNil2;
|
|
5288
|
-
const isNotNil = (x) => !(0, exports.gD)(x);
|
|
5289
|
-
exports.n9 = isNotNil;
|
|
5290
|
-
const isString = (x) => typeof x === "string";
|
|
5291
|
-
exports.Kg = isString;
|
|
5292
|
-
const isNotString = (x) => !(0, exports.Kg)(x);
|
|
5293
|
-
__webpack_unused_export__ = isNotString;
|
|
5294
|
-
const isEmptyString = (x) => (0, exports.Kg)(x) && x === "";
|
|
5295
|
-
exports.jw = isEmptyString;
|
|
5296
|
-
const isNonEmptyString2 = (x) => (0, exports.Kg)(x) && !(0, exports.jw)(x);
|
|
5297
|
-
__webpack_unused_export__ = isNonEmptyString2;
|
|
5298
|
-
const isNumber2 = (x) => typeof x === "number";
|
|
5299
|
-
exports.Et = isNumber2;
|
|
5300
|
-
const isNotNumber = (x) => !(0, exports.Et)(x);
|
|
5301
|
-
__webpack_unused_export__ = isNotNumber;
|
|
5302
|
-
const isNaN2 = (x) => Number.isNaN(x);
|
|
5303
|
-
__webpack_unused_export__ = isNaN2;
|
|
5304
|
-
const isInteger = (x) => Number.isInteger(x);
|
|
5305
|
-
__webpack_unused_export__ = isInteger;
|
|
5306
|
-
const isRecord = (x) => (0, exports.n9)(x) && typeof x === "object" && !(x instanceof Array);
|
|
5307
|
-
exports.u4 = isRecord;
|
|
5308
|
-
const isEmptyRecord = (x) => (0, exports.u4)(x) && Object.keys(x).length === 0;
|
|
5309
|
-
__webpack_unused_export__ = isEmptyRecord;
|
|
5310
|
-
const isNonEmptyRecord2 = (x) => (0, exports.u4)(x) && Object.keys(x).length > 0;
|
|
5311
|
-
exports.uu = isNonEmptyRecord2;
|
|
5312
|
-
const isArray2 = (x) => (0, exports.n9)(x) && typeof x === "object" && x instanceof Array;
|
|
5313
|
-
exports.cy = isArray2;
|
|
5314
|
-
const isNotArray = (x) => !(0, exports.cy)(x);
|
|
5315
|
-
__webpack_unused_export__ = isNotArray;
|
|
5316
|
-
const isEmptyArray = (x) => (0, exports.cy)(x) && x.length === 0;
|
|
5317
|
-
__webpack_unused_export__ = isEmptyArray;
|
|
5318
|
-
const isNonEmptyArray = (x) => (0, exports.cy)(x) && x.length > 0;
|
|
5319
|
-
__webpack_unused_export__ = isNonEmptyArray;
|
|
5320
|
-
const isFunction = (x) => (0, exports.n9)(x) && typeof x === "function";
|
|
5321
|
-
exports.Tn = isFunction;
|
|
5322
|
-
const isNotFunction = (x) => !(0, exports.Tn)(x);
|
|
5323
|
-
__webpack_unused_export__ = isNotFunction;
|
|
5324
|
-
const isBoolean = (x) => (0, exports.n9)(x) && typeof x === "boolean";
|
|
5325
|
-
exports.Lm = isBoolean;
|
|
5326
|
-
const isNotBoolean = (x) => !(0, exports.Lm)(x);
|
|
5327
|
-
__webpack_unused_export__ = isNotBoolean;
|
|
5328
|
-
const isVoid = (x) => x === void 0;
|
|
5329
|
-
__webpack_unused_export__ = isVoid;
|
|
5330
|
-
const isError = (error) => {
|
|
5331
|
-
return (0, exports.n9)(error) && error instanceof Error;
|
|
5332
|
-
};
|
|
5333
|
-
__webpack_unused_export__ = isError;
|
|
5334
|
-
const hasKey = (x, key) => (0, exports.uu)(x) && key in x;
|
|
5335
|
-
__webpack_unused_export__ = hasKey;
|
|
5336
|
-
}
|
|
5337
|
-
),
|
|
5338
|
-
/***/
|
|
5339
5275
|
4635: (
|
|
5340
5276
|
/***/
|
|
5341
5277
|
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
@@ -7756,7 +7692,7 @@ var __webpack_modules__ = {
|
|
|
7756
7692
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7757
7693
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
7758
7694
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7759
|
-
var TAGGED_VERSION2 = "0.0.
|
|
7695
|
+
var TAGGED_VERSION2 = "0.0.114";
|
|
7760
7696
|
var CURRENT_SHA2 = (
|
|
7761
7697
|
/* unused pure expression or super */
|
|
7762
7698
|
null
|
|
@@ -9482,6 +9418,11 @@ var __webpack_modules__ = {
|
|
|
9482
9418
|
}, options);
|
|
9483
9419
|
return one(assets, options);
|
|
9484
9420
|
};
|
|
9421
|
+
var hasAnyReadyHdrAssets = function hasAnyReadyHdrAssets2(assets) {
|
|
9422
|
+
return assets.some(function(asset) {
|
|
9423
|
+
return asset.type === "hdr_video" && asset.status === READY && asset.public && asset.container === "mp4";
|
|
9424
|
+
});
|
|
9425
|
+
};
|
|
9485
9426
|
var mp4 = function mp42(assets, options) {
|
|
9486
9427
|
return onePublicReadyWithContainer(assets, "mp4", options);
|
|
9487
9428
|
};
|
|
@@ -9752,6 +9693,17 @@ var __webpack_modules__ = {
|
|
|
9752
9693
|
var touchScreen = function touchScreen2() {
|
|
9753
9694
|
return iosVersion() > 0 || android() || ipad();
|
|
9754
9695
|
};
|
|
9696
|
+
var HDRCodecSupport = function HDRCodecSupport2() {
|
|
9697
|
+
var _window$MediaSource$i, _window$MediaSource, _window$MediaSource$i2, _window$MediaSource$i3, _window$MediaSource2, _window$MediaSource2$, _window$MediaSource$i4, _window$MediaSource3, _window$MediaSource3$;
|
|
9698
|
+
return {
|
|
9699
|
+
hevc: (_window$MediaSource$i = (_window$MediaSource = window.MediaSource) === null || _window$MediaSource === void 0 ? void 0 : (_window$MediaSource$i2 = _window$MediaSource.isTypeSupported) === null || _window$MediaSource$i2 === void 0 ? void 0 : _window$MediaSource$i2.call(_window$MediaSource, 'video/mp4; codecs="hvc1.2.4.L153.B0"')) !== null && _window$MediaSource$i !== void 0 ? _window$MediaSource$i : false,
|
|
9700
|
+
// // HEVC Main10
|
|
9701
|
+
av1: (_window$MediaSource$i3 = (_window$MediaSource2 = window.MediaSource) === null || _window$MediaSource2 === void 0 ? void 0 : (_window$MediaSource2$ = _window$MediaSource2.isTypeSupported) === null || _window$MediaSource2$ === void 0 ? void 0 : _window$MediaSource2$.call(_window$MediaSource2, 'video/mp4; codecs="av01.0.08M.10.0.110.09.16.09"')) !== null && _window$MediaSource$i3 !== void 0 ? _window$MediaSource$i3 : false,
|
|
9702
|
+
// AV1 10-bit Main, PQ (HDR10)
|
|
9703
|
+
vp92: (_window$MediaSource$i4 = (_window$MediaSource3 = window.MediaSource) === null || _window$MediaSource3 === void 0 ? void 0 : (_window$MediaSource3$ = _window$MediaSource3.isTypeSupported) === null || _window$MediaSource3$ === void 0 ? void 0 : _window$MediaSource3$.call(_window$MediaSource3, 'video/mp4; codecs="vp09.02.10.10.01.09.16.09"')) !== null && _window$MediaSource$i4 !== void 0 ? _window$MediaSource$i4 : false
|
|
9704
|
+
// // VP9 Profile 2 (10-bit)
|
|
9705
|
+
};
|
|
9706
|
+
};
|
|
9755
9707
|
var HDRSupported = function HDRSupported2() {
|
|
9756
9708
|
var _window$matchMedia, _window;
|
|
9757
9709
|
if ((_window$matchMedia = (_window = window).matchMedia) !== null && _window$matchMedia !== void 0 && _window$matchMedia.call(_window, "(dynamic-range: high)").matches) {
|
|
@@ -9867,6 +9819,10 @@ var __webpack_modules__ = {
|
|
|
9867
9819
|
var fullscreenEnabled = function fullscreenEnabled2() {
|
|
9868
9820
|
return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
|
|
9869
9821
|
};
|
|
9822
|
+
var managedMediaSource = function managedMediaSource2() {
|
|
9823
|
+
var _window$ManagedMediaS;
|
|
9824
|
+
return "ManagedMediaSource" in window && typeof ((_window$ManagedMediaS = window.ManagedMediaSource) === null || _window$ManagedMediaS === void 0 ? void 0 : _window$ManagedMediaS.isTypeSupported) === "function";
|
|
9825
|
+
};
|
|
9870
9826
|
var browserPrefixes = ["WebKit", "Moz", "O", "Ms", ""];
|
|
9871
9827
|
var mutationObserver = function mutationObserver2() {
|
|
9872
9828
|
for (var i2 = 0; i2 < browserPrefixes.length; i2++) {
|
|
@@ -9935,6 +9891,7 @@ var __webpack_modules__ = {
|
|
|
9935
9891
|
firefox: firefox(),
|
|
9936
9892
|
gearvr: gearvr(),
|
|
9937
9893
|
hdr: HDRSupported(),
|
|
9894
|
+
hdrCodecs: HDRCodecSupport(),
|
|
9938
9895
|
android: android(),
|
|
9939
9896
|
oldandroid: oldandroid(),
|
|
9940
9897
|
iphone: iphone(),
|
|
@@ -9953,6 +9910,7 @@ var __webpack_modules__ = {
|
|
|
9953
9910
|
hoverIsNatural: hoverIsNatural(),
|
|
9954
9911
|
touchScreen: touchScreen(),
|
|
9955
9912
|
video: html5Video(),
|
|
9913
|
+
managedMediaSource: managedMediaSource(),
|
|
9956
9914
|
mediaSource: mediaSource(),
|
|
9957
9915
|
nativeHls: nativeHls(),
|
|
9958
9916
|
localstorage: localStorage2(),
|
|
@@ -12589,7 +12547,7 @@ var __webpack_modules__ = {
|
|
|
12589
12547
|
)
|
|
12590
12548
|
/* harmony export */
|
|
12591
12549
|
});
|
|
12592
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(
|
|
12550
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(9814);
|
|
12593
12551
|
var normalizeChapters = function normalizeChapters2(embedOptions) {
|
|
12594
12552
|
var plugin = embedOptions.plugin, chaptersOn = embedOptions.chaptersOn, chapterList = embedOptions.chapterList;
|
|
12595
12553
|
if (plugin !== null && plugin !== void 0 && plugin.chapters) {
|
|
@@ -12989,6 +12947,60 @@ var __webpack_modules__ = {
|
|
|
12989
12947
|
}));
|
|
12990
12948
|
};
|
|
12991
12949
|
}
|
|
12950
|
+
),
|
|
12951
|
+
/***/
|
|
12952
|
+
9814: (
|
|
12953
|
+
/***/
|
|
12954
|
+
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
12955
|
+
__webpack_require__3.d(__webpack_exports__3, {
|
|
12956
|
+
/* harmony export */
|
|
12957
|
+
gD: () => (
|
|
12958
|
+
/* binding */
|
|
12959
|
+
isNil2
|
|
12960
|
+
),
|
|
12961
|
+
/* harmony export */
|
|
12962
|
+
n9: () => (
|
|
12963
|
+
/* binding */
|
|
12964
|
+
isNotNil
|
|
12965
|
+
)
|
|
12966
|
+
/* harmony export */
|
|
12967
|
+
});
|
|
12968
|
+
var FALSY_VALUES = [false, 0, -0, 0n, "", null, void 0, Number.NaN];
|
|
12969
|
+
var isNull = (value) => value === null;
|
|
12970
|
+
var isNotNull = (value) => !isNull(value);
|
|
12971
|
+
var isUndefined = (value) => value === void 0;
|
|
12972
|
+
var isNotUndefined = (value) => !isUndefined(value);
|
|
12973
|
+
var isNil2 = (value) => isNull(value) || isUndefined(value);
|
|
12974
|
+
var isNotNil = (value) => !isNil2(value);
|
|
12975
|
+
var isString = (value) => typeof value === "string";
|
|
12976
|
+
var isNotString = (value) => !isString(value);
|
|
12977
|
+
var isEmptyString = (value) => isString(value) && value === "";
|
|
12978
|
+
var isNonEmptyString2 = (value) => isString(value) && !isEmptyString(value);
|
|
12979
|
+
var isNumber2 = (value) => typeof value === "number";
|
|
12980
|
+
var isNotNumber = (value) => !isNumber2(value);
|
|
12981
|
+
var isNaN2 = (value) => Number.isNaN(value);
|
|
12982
|
+
var isInteger = (value) => Number.isInteger(value);
|
|
12983
|
+
var isRecord = (value) => isNotNil(value) && typeof value === "object" && !(value instanceof Array);
|
|
12984
|
+
var isNotRecord = (value) => !isRecord(value);
|
|
12985
|
+
var isEmptyRecord = (value) => isRecord(value) && Object.keys(value).length === 0;
|
|
12986
|
+
var isNonEmptyRecord2 = (value) => isRecord(value) && Object.keys(value).length > 0;
|
|
12987
|
+
var isArray2 = (value) => isNotNil(value) && typeof value === "object" && value instanceof Array;
|
|
12988
|
+
var isNotArray = (value) => !isArray2(value);
|
|
12989
|
+
var isEmptyArray = (value) => isArray2(value) && value.length === 0;
|
|
12990
|
+
var isNonEmptyArray = (value) => isArray2(value) && value.length > 0;
|
|
12991
|
+
var isFunction = (value) => isNotNil(value) && typeof value === "function";
|
|
12992
|
+
var isNotFunction = (value) => !isFunction(value);
|
|
12993
|
+
var isBoolean = (value) => isNotNil(value) && typeof value === "boolean";
|
|
12994
|
+
var isNotBoolean = (value) => !isBoolean(value);
|
|
12995
|
+
var isVoid = (value) => value === void 0;
|
|
12996
|
+
var isNotVoid = (value) => !isVoid(value);
|
|
12997
|
+
var isError = (value) => {
|
|
12998
|
+
return isNotNil(value) && value instanceof Error;
|
|
12999
|
+
};
|
|
13000
|
+
var isFalsy = (value) => FALSY_VALUES.includes(value) || Number.isNaN(value);
|
|
13001
|
+
var isTruthy = (value) => !FALSY_VALUES.includes(value) && !Number.isNaN(value);
|
|
13002
|
+
var hasKey = (value, key) => isNonEmptyRecord2(value) && key in value;
|
|
13003
|
+
}
|
|
12992
13004
|
)
|
|
12993
13005
|
/******/
|
|
12994
13006
|
};
|
|
@@ -15776,7 +15788,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
|
|
|
15776
15788
|
return;
|
|
15777
15789
|
}
|
|
15778
15790
|
var mediaData = mediaDataOrError;
|
|
15779
|
-
_this14.mediaId = (_mediaData$hashedId = mediaData.hashedId) !== null && _mediaData$hashedId !== void 0 ? _mediaData$hashedId :
|
|
15791
|
+
_this14.mediaId = (_mediaData$hashedId = mediaData.hashedId) !== null && _mediaData$hashedId !== void 0 ? _mediaData$hashedId : _this14.mediaId;
|
|
15780
15792
|
_classPrivateFieldGet(_playerData, _this14).setMediaDataSource(mediaData);
|
|
15781
15793
|
_this14.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_29__.rO, {
|
|
15782
15794
|
detail: {
|
|
@@ -16222,6 +16234,9 @@ function _updateEmail(email) {
|
|
|
16222
16234
|
}));
|
|
16223
16235
|
}
|
|
16224
16236
|
function _updateMediaData(mediaData) {
|
|
16237
|
+
if ((0, _utilities_mediaDataError_ts__WEBPACK_IMPORTED_MODULE_31__.V)(mediaData)) {
|
|
16238
|
+
return;
|
|
16239
|
+
}
|
|
16225
16240
|
_classPrivateFieldGet(_playerData, this).setMediaDataSource(mediaData);
|
|
16226
16241
|
_classPrivateFieldSet(_playerType, this, (0, _utilities_judy_js__WEBPACK_IMPORTED_MODULE_13__.$F)(_classPrivateFieldGet(_judyContext, this), _classPrivateFieldGet(_playerData, this).mediaData, _classPrivateFieldGet(_playerData, this).embedOptions));
|
|
16227
16242
|
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
@@ -16284,3 +16299,10 @@ export {
|
|
|
16284
16299
|
__webpack_exports__wistiaSwatchElement as wistiaSwatchElement
|
|
16285
16300
|
};
|
|
16286
16301
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
16302
|
+
/*
|
|
16303
|
+
* @license @wistia/type-guards v0.9.1
|
|
16304
|
+
*
|
|
16305
|
+
* Copyright (c) 2023-2025, Wistia, Inc. and its affiliates.
|
|
16306
|
+
*
|
|
16307
|
+
* This source code is unlicensed, all rights reserved.
|
|
16308
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/wistia-player-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.114",
|
|
4
4
|
"packageManager": "yarn@4.5.3",
|
|
5
5
|
"description": "An embeddable wistia-player web component and React wrapper to add responsive, lightweight, and SEO-friendly videos to your site.",
|
|
6
6
|
"keywords": [
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"start:dev:yalc": "run build:react:dev --watch --yalc"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@wistia/wistia-player": "0.0.
|
|
48
|
+
"@wistia/wistia-player": "0.0.114"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@babel/core": "^7.26.9",
|
|
52
52
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
53
53
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
54
|
-
"@babel/preset-env": "^7.
|
|
54
|
+
"@babel/preset-env": "^7.27.2",
|
|
55
55
|
"@babel/preset-react": "^7.26.3",
|
|
56
56
|
"@babel/preset-typescript": "^7.27.0",
|
|
57
57
|
"@types/react": "^18.3.12",
|
|
58
58
|
"babel-plugin-transform-object-hasown": "^1.1.0",
|
|
59
|
-
"esbuild": "^0.25.
|
|
59
|
+
"esbuild": "^0.25.3",
|
|
60
60
|
"npm-run-all": "^4.1.5",
|
|
61
61
|
"react": "^18.3.1",
|
|
62
62
|
"read-package-json": "^7.0.1",
|