@wistia/wistia-player 0.0.19 → 0.0.21
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/media/players/vulcanV2Player/shared/ui_components/BigPlayButton.d.ts +28 -0
- package/dist/types/embeds/media/players/vulcanV2Player/shared/ui_components/BigPlayButton.d.ts.map +1 -0
- package/dist/types/embeds/media/players/vulcanV2Player/shared/ui_components/svgs/BigPlayButtonSVG.d.ts +9 -0
- package/dist/types/embeds/media/players/vulcanV2Player/shared/ui_components/svgs/BigPlayButtonSVG.d.ts.map +1 -0
- package/dist/types/embeds/media/players/vulcanV2Player/shared/ui_components/svgs/OldBigPlayButtonSVG.d.ts +9 -0
- package/dist/types/embeds/media/players/vulcanV2Player/shared/ui_components/svgs/OldBigPlayButtonSVG.d.ts.map +1 -0
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts +9 -1
- package/dist/types/embeds/wistiaPlayer/WistiaPlayer.d.ts.map +1 -1
- package/dist/types/embeds/wistiaPlayer/components/PreloadThumbnail.d.ts +9 -0
- package/dist/types/embeds/wistiaPlayer/components/PreloadThumbnail.d.ts.map +1 -0
- package/dist/types/embeds/wistiaPlayer/hooks/usePlayerData.d.ts +14 -0
- package/dist/types/embeds/wistiaPlayer/hooks/usePlayerData.d.ts.map +1 -0
- package/dist/types/embeds/wistiaPlayer/utilities/PlayerDataHandler.d.ts +49 -0
- package/dist/types/embeds/wistiaPlayer/utilities/PlayerDataHandler.d.ts.map +1 -0
- package/dist/types/embeds/wistiaPlayer/utilities/constants.d.ts +3 -0
- package/dist/types/embeds/wistiaPlayer/utilities/constants.d.ts.map +1 -0
- package/dist/types/types/player-api-types.d.ts +17 -5
- package/dist/types/types/player-api-types.d.ts.map +1 -1
- package/dist/types/types/plugins.d.ts +25 -0
- package/dist/types/types/plugins.d.ts.map +1 -0
- package/dist/types/utilities/roundedPlayerDefaults.d.ts +26 -0
- package/dist/types/utilities/roundedPlayerDefaults.d.ts.map +1 -0
- package/dist/wistia-player.js +1299 -449
- package/dist/wistia-player.js.map +1 -1
- package/package.json +13 -13
package/dist/wistia-player.js
CHANGED
|
@@ -1,37 +1,69 @@
|
|
|
1
1
|
/******/ var __webpack_modules__ = ({
|
|
2
2
|
|
|
3
3
|
/***/ 4586:
|
|
4
|
-
/***/ ((__unused_webpack_module,
|
|
4
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* harmony export */ });
|
|
11
|
-
/* unused harmony exports isNull, isNotNull, isUndefined, isNotUndefined, isString, isEmptyString, isNonEmptyString, isRecord, isEmptyRecord, isNonEmptyRecord, isArray, isEmptyArray, isNonEmptyArray, isFunction, isBoolean, isVoid, isError, hasKey */
|
|
6
|
+
var __webpack_unused_export__;
|
|
7
|
+
|
|
8
|
+
__webpack_unused_export__ = ({ value: true });
|
|
9
|
+
__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;
|
|
12
10
|
const isNull = (x) => x === null;
|
|
13
|
-
|
|
11
|
+
exports.kZ = isNull;
|
|
12
|
+
const isNotNull = (x) => !(0, exports.kZ)(x);
|
|
13
|
+
__webpack_unused_export__ = isNotNull;
|
|
14
14
|
const isUndefined = (x) => x === undefined;
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
exports.b0 = isUndefined;
|
|
16
|
+
const isNotUndefined = (x) => !(0, exports.b0)(x);
|
|
17
|
+
__webpack_unused_export__ = isNotUndefined;
|
|
18
|
+
const isNil = (x) => (0, exports.kZ)(x) || (0, exports.b0)(x);
|
|
19
|
+
exports.gD = isNil;
|
|
20
|
+
const isNotNil = (x) => !(0, exports.gD)(x);
|
|
21
|
+
exports.n9 = isNotNil;
|
|
18
22
|
const isString = (x) => typeof x === 'string';
|
|
19
|
-
|
|
20
|
-
const
|
|
23
|
+
exports.Kg = isString;
|
|
24
|
+
const isNotString = (x) => !(0, exports.Kg)(x);
|
|
25
|
+
__webpack_unused_export__ = isNotString;
|
|
26
|
+
const isEmptyString = (x) => (0, exports.Kg)(x) && x === '';
|
|
27
|
+
exports.jw = isEmptyString;
|
|
28
|
+
const isNonEmptyString = (x) => (0, exports.Kg)(x) && !(0, exports.jw)(x);
|
|
29
|
+
__webpack_unused_export__ = isNonEmptyString;
|
|
21
30
|
const isNumber = (x) => typeof x === 'number';
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
const
|
|
31
|
+
exports.Et = isNumber;
|
|
32
|
+
const isNotNumber = (x) => !(0, exports.Et)(x);
|
|
33
|
+
__webpack_unused_export__ = isNotNumber;
|
|
34
|
+
const isNaN = (x) => Number.isNaN(x);
|
|
35
|
+
__webpack_unused_export__ = isNaN;
|
|
36
|
+
const isInteger = (x) => Number.isInteger(x);
|
|
37
|
+
__webpack_unused_export__ = isInteger;
|
|
38
|
+
const isRecord = (x) => (0, exports.n9)(x) && typeof x === 'object' && !(x instanceof Array);
|
|
39
|
+
exports.u4 = isRecord;
|
|
40
|
+
const isEmptyRecord = (x) => (0, exports.u4)(x) && Object.keys(x).length === 0;
|
|
41
|
+
__webpack_unused_export__ = isEmptyRecord;
|
|
42
|
+
const isNonEmptyRecord = (x) => (0, exports.u4)(x) && Object.keys(x).length > 0;
|
|
43
|
+
exports.uu = isNonEmptyRecord;
|
|
44
|
+
const isArray = (x) => (0, exports.n9)(x) && typeof x === 'object' && x instanceof Array;
|
|
45
|
+
exports.cy = isArray;
|
|
46
|
+
const isNotArray = (x) => !(0, exports.cy)(x);
|
|
47
|
+
__webpack_unused_export__ = isNotArray;
|
|
48
|
+
const isEmptyArray = (x) => (0, exports.cy)(x) && x.length === 0;
|
|
49
|
+
__webpack_unused_export__ = isEmptyArray;
|
|
50
|
+
const isNonEmptyArray = (x) => (0, exports.cy)(x) && x.length > 0;
|
|
51
|
+
__webpack_unused_export__ = isNonEmptyArray;
|
|
52
|
+
const isFunction = (x) => (0, exports.n9)(x) && typeof x === 'function';
|
|
53
|
+
exports.Tn = isFunction;
|
|
54
|
+
const isNotFunction = (x) => !(0, exports.Tn)(x);
|
|
55
|
+
__webpack_unused_export__ = isNotFunction;
|
|
56
|
+
const isBoolean = (x) => (0, exports.n9)(x) && typeof x === 'boolean';
|
|
57
|
+
exports.Lm = isBoolean;
|
|
58
|
+
const isNotBoolean = (x) => !(0, exports.Lm)(x);
|
|
59
|
+
__webpack_unused_export__ = isNotBoolean;
|
|
30
60
|
// eslint-disable-next-line no-void
|
|
31
61
|
const isVoid = (x) => x === void 0;
|
|
62
|
+
__webpack_unused_export__ = isVoid;
|
|
32
63
|
const isError = (error) => {
|
|
33
|
-
return
|
|
64
|
+
return (0, exports.n9)(error) && error instanceof Error;
|
|
34
65
|
};
|
|
66
|
+
__webpack_unused_export__ = isError;
|
|
35
67
|
/**
|
|
36
68
|
* Curried function that tests if an input is an object
|
|
37
69
|
* _and_ that a key that was passed in is a property of that object
|
|
@@ -40,7 +72,8 @@ const isError = (error) => {
|
|
|
40
72
|
* @returns A function that takes an unknown input and then tests if the
|
|
41
73
|
* input is an object and whether the key is a property of that object or not
|
|
42
74
|
*/
|
|
43
|
-
const hasKey = (x, key) =>
|
|
75
|
+
const hasKey = (x, key) => (0, exports.uu)(x) && key in x;
|
|
76
|
+
__webpack_unused_export__ = hasKey;
|
|
44
77
|
|
|
45
78
|
|
|
46
79
|
/***/ }),
|
|
@@ -1767,8 +1800,9 @@ var LoadingSVG = /*#__PURE__*/function (_Component) {
|
|
|
1767
1800
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1768
1801
|
|
|
1769
1802
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1770
|
-
/* harmony export */
|
|
1803
|
+
/* harmony export */ Fn: () => (/* binding */ BigPlayButton)
|
|
1771
1804
|
/* harmony export */ });
|
|
1805
|
+
/* unused harmony exports BASE_BUTTON_WIDTH, BASE_BUTTON_HEIGHT */
|
|
1772
1806
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
1773
1807
|
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3817);
|
|
1774
1808
|
/* harmony import */ var _svgs_OldBigPlayButtonSVG_tsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1549);
|
|
@@ -1796,13 +1830,17 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
1796
1830
|
|
|
1797
1831
|
|
|
1798
1832
|
var detect = (0,_utilities_detect_js__WEBPACK_IMPORTED_MODULE_6__/* .cachedDetect */ .o1)();
|
|
1833
|
+
var BASE_BUTTON_WIDTH = 125;
|
|
1834
|
+
var BASE_BUTTON_HEIGHT = 80;
|
|
1799
1835
|
var BASE_FONT_SIZE = 18;
|
|
1800
1836
|
var BASE_LINE_HEIGHT = 30;
|
|
1801
1837
|
var ALPHA_MIX_BLEND_MODE = 0.7;
|
|
1802
1838
|
var ALPHA_NO_MIX_BLEND_MODE = 0.85;
|
|
1803
1839
|
var BigPlayButton = function BigPlayButton(_ref) {
|
|
1804
|
-
var baseHeight = _ref.baseHeight,
|
|
1805
|
-
|
|
1840
|
+
var _ref$baseHeight = _ref.baseHeight,
|
|
1841
|
+
baseHeight = _ref$baseHeight === void 0 ? BASE_BUTTON_HEIGHT : _ref$baseHeight,
|
|
1842
|
+
_ref$baseWidth = _ref.baseWidth,
|
|
1843
|
+
baseWidth = _ref$baseWidth === void 0 ? BASE_BUTTON_WIDTH : _ref$baseWidth,
|
|
1806
1844
|
borderRadius = _ref.borderRadius,
|
|
1807
1845
|
buttonTabIndex = _ref.buttonTabIndex,
|
|
1808
1846
|
color = _ref.color,
|
|
@@ -1847,6 +1885,8 @@ var BigPlayButton = function BigPlayButton(_ref) {
|
|
|
1847
1885
|
top: "calc(50% + ".concat((topNudgeFraction || 0) * 100, "% - ").concat(controlBarDistance, "px)")
|
|
1848
1886
|
};
|
|
1849
1887
|
var buttonStyle = {
|
|
1888
|
+
backgroundColor: 'transparent',
|
|
1889
|
+
border: 0,
|
|
1850
1890
|
cursor: 'pointer',
|
|
1851
1891
|
height: "".concat(scaledHeight, "px"),
|
|
1852
1892
|
boxShadow: 'none',
|
|
@@ -1904,8 +1944,8 @@ var BigPlayButton = function BigPlayButton(_ref) {
|
|
|
1904
1944
|
style: buttonStyle,
|
|
1905
1945
|
onMouseEnter: handleIsFocused,
|
|
1906
1946
|
onMouseLeave: handleNotFocused,
|
|
1907
|
-
|
|
1908
|
-
|
|
1947
|
+
onFocusIn: handleIsFocused,
|
|
1948
|
+
onFocusOut: handleNotFocused,
|
|
1909
1949
|
"aria-label": ariaLabel,
|
|
1910
1950
|
tabIndex: buttonTabIndex,
|
|
1911
1951
|
type: "button"
|
|
@@ -3062,6 +3102,103 @@ var Playbar = /*#__PURE__*/function (_Component) {
|
|
|
3062
3102
|
|
|
3063
3103
|
/***/ }),
|
|
3064
3104
|
|
|
3105
|
+
/***/ 707:
|
|
3106
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3107
|
+
|
|
3108
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3109
|
+
/* harmony export */ y: () => (/* binding */ RoundedVolumeButton)
|
|
3110
|
+
/* harmony export */ });
|
|
3111
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
3112
|
+
/* harmony import */ var _utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(280);
|
|
3113
|
+
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
3114
|
+
|
|
3115
|
+
|
|
3116
|
+
var OPACITY_TRANSITION = 'opacity 100ms';
|
|
3117
|
+
var RoundedVolumeButton = function RoundedVolumeButton(_ref) {
|
|
3118
|
+
var volume = _ref.volume;
|
|
3119
|
+
var svgAttrs = (0,_utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__/* .standardSvgAttrs */ .I)({
|
|
3120
|
+
width: 40,
|
|
3121
|
+
height: 34,
|
|
3122
|
+
ariaHidden: true,
|
|
3123
|
+
styleOverride: {
|
|
3124
|
+
fill: 'none'
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
var sharedAttrs = {
|
|
3128
|
+
stroke: '#fff',
|
|
3129
|
+
'stroke-width': 2,
|
|
3130
|
+
'stroke-linecap': 'round',
|
|
3131
|
+
'stroke-linejoin': 'round'
|
|
3132
|
+
};
|
|
3133
|
+
var waveCount = function waveCount() {
|
|
3134
|
+
var vol = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : volume;
|
|
3135
|
+
if (vol > 0.66) {
|
|
3136
|
+
return 2;
|
|
3137
|
+
}
|
|
3138
|
+
if (vol > 0.33) {
|
|
3139
|
+
return 1;
|
|
3140
|
+
}
|
|
3141
|
+
if (vol > 0) {
|
|
3142
|
+
return 0;
|
|
3143
|
+
}
|
|
3144
|
+
return -1; // muted
|
|
3145
|
+
};
|
|
3146
|
+
var positioningOffset = function positioningOffset() {
|
|
3147
|
+
var wc = waveCount();
|
|
3148
|
+
if (wc === 0) {
|
|
3149
|
+
return 7;
|
|
3150
|
+
}
|
|
3151
|
+
if (wc < 2) {
|
|
3152
|
+
return 3;
|
|
3153
|
+
}
|
|
3154
|
+
return 1.25;
|
|
3155
|
+
};
|
|
3156
|
+
var speakerGroupStyle = function speakerGroupStyle() {
|
|
3157
|
+
return {
|
|
3158
|
+
transform: "translateX(".concat(positioningOffset(), "px)"),
|
|
3159
|
+
transition: 'transform 100ms'
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
var waveXStyle = function waveXStyle() {
|
|
3163
|
+
return {
|
|
3164
|
+
opacity: waveCount() < 0 ? 1 : 0,
|
|
3165
|
+
transition: OPACITY_TRANSITION
|
|
3166
|
+
};
|
|
3167
|
+
};
|
|
3168
|
+
var wave1Style = function wave1Style() {
|
|
3169
|
+
return {
|
|
3170
|
+
opacity: waveCount() >= 1 ? 1 : 0,
|
|
3171
|
+
transition: OPACITY_TRANSITION
|
|
3172
|
+
};
|
|
3173
|
+
};
|
|
3174
|
+
var wave2Style = function wave2Style() {
|
|
3175
|
+
return {
|
|
3176
|
+
opacity: waveCount() >= 2 ? 1 : 0,
|
|
3177
|
+
transition: OPACITY_TRANSITION
|
|
3178
|
+
};
|
|
3179
|
+
};
|
|
3180
|
+
return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("svg", svgAttrs, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("g", {
|
|
3181
|
+
style: speakerGroupStyle()
|
|
3182
|
+
}, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3183
|
+
d: "M15.8 13.9995C15.3 14.4995 14.4 14.7995 13.8 14.7995H12.2C11.5 14.7995 11 15.2995 11 15.9995V17.5995C11 18.2995 11.5 18.7995 12.2 18.7995H13.8C14.5 18.7995 15.4 19.1995 15.8 19.5995L18.2 21.3999C18.5296 21.6472 19 21.412 19 20.9999V12.154C19 11.7163 18.4774 11.4899 18.1581 11.7892L15.8 13.9995Z",
|
|
3184
|
+
fill: "white"
|
|
3185
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("g", sharedAttrs, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3186
|
+
d: "M22 11.5C22 11.5 23.1 14 23.1 16.5C23.1 19 22 21.5 22 21.5",
|
|
3187
|
+
style: wave1Style()
|
|
3188
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3189
|
+
d: "M26 9C26 9 27.7 12.8 27.7 16.5C27.7 20.2 26 24 26 24",
|
|
3190
|
+
style: wave2Style()
|
|
3191
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("g", {
|
|
3192
|
+
style: waveXStyle()
|
|
3193
|
+
}, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3194
|
+
d: "M22 14L27 19"
|
|
3195
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3196
|
+
d: "M27 14L22 19"
|
|
3197
|
+
})))));
|
|
3198
|
+
};
|
|
3199
|
+
|
|
3200
|
+
/***/ }),
|
|
3201
|
+
|
|
3065
3202
|
/***/ 9536:
|
|
3066
3203
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3067
3204
|
|
|
@@ -3771,6 +3908,52 @@ var fontSize = function fontSize(component) {
|
|
|
3771
3908
|
|
|
3772
3909
|
/***/ }),
|
|
3773
3910
|
|
|
3911
|
+
/***/ 7038:
|
|
3912
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3913
|
+
|
|
3914
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3915
|
+
/* harmony export */ _: () => (/* binding */ RoundedAudioDescriptionButton)
|
|
3916
|
+
/* harmony export */ });
|
|
3917
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
3918
|
+
/* harmony import */ var _utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(280);
|
|
3919
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
var RoundedAudioDescriptionButton = function RoundedAudioDescriptionButton(_ref) {
|
|
3923
|
+
var onMouseEnter = _ref.onMouseEnter;
|
|
3924
|
+
var stroke = {
|
|
3925
|
+
stroke: '#ffffff',
|
|
3926
|
+
'stroke-width': '1.8',
|
|
3927
|
+
'stroke-linecap': 'round',
|
|
3928
|
+
'stroke-linejoin': 'round'
|
|
3929
|
+
};
|
|
3930
|
+
var svgAttrs = (0,_utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__/* .standardSvgAttrs */ .I)({
|
|
3931
|
+
width: 40,
|
|
3932
|
+
height: 34,
|
|
3933
|
+
ariaHidden: true,
|
|
3934
|
+
styleOverride: {
|
|
3935
|
+
fill: 'none'
|
|
3936
|
+
}
|
|
3937
|
+
});
|
|
3938
|
+
return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("svg", _extends({}, svgAttrs, {
|
|
3939
|
+
onMouseEnter: onMouseEnter
|
|
3940
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("g", stroke, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3941
|
+
"fill-rule": "evenodd",
|
|
3942
|
+
"clip-rule": "evenodd",
|
|
3943
|
+
d: "M19.7 14.6C21.9 14.6 22.7 16 22.7 17.4C22.7 18.7 22 20.2 19.7 20.2H18.2V14.6H19.7Z"
|
|
3944
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3945
|
+
d: "M10 20.2L12.6 14.6L15 20.2"
|
|
3946
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3947
|
+
d: "M10.5 19H14.5"
|
|
3948
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3949
|
+
d: "M27.5 24.8C29.7 22.7 30.7 19.9 30.7 17.4C30.7 14.7 29.7 12.1 27.5 10"
|
|
3950
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
3951
|
+
d: "M24.6 12.9C26 14.1 26.6 15.7 26.6 17.4C26.6 19 26.1 20.7 24.6 21.9"
|
|
3952
|
+
})));
|
|
3953
|
+
};
|
|
3954
|
+
|
|
3955
|
+
/***/ }),
|
|
3956
|
+
|
|
3774
3957
|
/***/ 8822:
|
|
3775
3958
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3776
3959
|
|
|
@@ -3846,6 +4029,55 @@ var CaptionsButton = /*#__PURE__*/function (_Component) {
|
|
|
3846
4029
|
|
|
3847
4030
|
/***/ }),
|
|
3848
4031
|
|
|
4032
|
+
/***/ 6955:
|
|
4033
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4034
|
+
|
|
4035
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4036
|
+
/* harmony export */ b: () => (/* binding */ RoundedCaptionsButton)
|
|
4037
|
+
/* harmony export */ });
|
|
4038
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
4039
|
+
/* harmony import */ var _utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(280);
|
|
4040
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4041
|
+
|
|
4042
|
+
|
|
4043
|
+
var RoundedCaptionsButton = function RoundedCaptionsButton(_ref) {
|
|
4044
|
+
var filled = _ref.filled,
|
|
4045
|
+
color = _ref.color;
|
|
4046
|
+
var svgAttrs = (0,_utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__/* .standardSvgAttrs */ .I)({
|
|
4047
|
+
width: 40,
|
|
4048
|
+
height: 34,
|
|
4049
|
+
ariaHidden: true,
|
|
4050
|
+
styleOverride: {
|
|
4051
|
+
fill: 'none'
|
|
4052
|
+
}
|
|
4053
|
+
});
|
|
4054
|
+
var background = {
|
|
4055
|
+
fill: filled ? '#fff' : 'none',
|
|
4056
|
+
stroke: '#ffffff'
|
|
4057
|
+
};
|
|
4058
|
+
var captionsCharacters = {
|
|
4059
|
+
fill: 'none',
|
|
4060
|
+
stroke: filled ? "#".concat(color) : '#fff'
|
|
4061
|
+
};
|
|
4062
|
+
return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("svg", svgAttrs, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", _extends({
|
|
4063
|
+
"fill-rule": "evenodd",
|
|
4064
|
+
"clip-rule": "evenodd",
|
|
4065
|
+
d: "M31 21.9811C31 23.5912 29.6 25 28 25H12C10.4 25 9 23.5912 9 21.9811V12.0189C9 10.4088 10.4 9 12 9H28C29.6 9 31 10.4088 31 12.0189V21.9811Z",
|
|
4066
|
+
"stroke-width": "2",
|
|
4067
|
+
"stroke-linecap": "round"
|
|
4068
|
+
}, background)), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", _extends({
|
|
4069
|
+
d: "M18.4 18.7C17.9 19.4 17.3 19.9 16.3 19.9C15 19.9 13.9 18.8 13.9 17.1C13.9 15.5 14.9 14.3 16.3 14.3C17.3 14.3 17.9 14.8 18.3 15.5",
|
|
4070
|
+
"stroke-width": "1.8",
|
|
4071
|
+
"stroke-linecap": "round"
|
|
4072
|
+
}, captionsCharacters)), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", _extends({
|
|
4073
|
+
d: "M25.8 18.7C25.3 19.4 24.7 19.9 23.7 19.9C22.4 19.9 21.3 18.8 21.3 17.1C21.3 15.5 22.3 14.3 23.7 14.3C24.7 14.3 25.3 14.8 25.7 15.5",
|
|
4074
|
+
"stroke-width": "1.8",
|
|
4075
|
+
"stroke-linecap": "round"
|
|
4076
|
+
}, captionsCharacters)));
|
|
4077
|
+
};
|
|
4078
|
+
|
|
4079
|
+
/***/ }),
|
|
4080
|
+
|
|
3849
4081
|
/***/ 6233:
|
|
3850
4082
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3851
4083
|
|
|
@@ -4065,6 +4297,52 @@ var FullscreenButton = /*#__PURE__*/function (_Component) {
|
|
|
4065
4297
|
|
|
4066
4298
|
/***/ }),
|
|
4067
4299
|
|
|
4300
|
+
/***/ 1220:
|
|
4301
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4302
|
+
|
|
4303
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4304
|
+
/* harmony export */ D: () => (/* binding */ RoundedFullscreenButton)
|
|
4305
|
+
/* harmony export */ });
|
|
4306
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
4307
|
+
/* harmony import */ var _utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(280);
|
|
4308
|
+
|
|
4309
|
+
|
|
4310
|
+
var RoundedFullscreenButton = function RoundedFullscreenButton() {
|
|
4311
|
+
var svgAttrs = (0,_utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__/* .standardSvgAttrs */ .I)({
|
|
4312
|
+
width: 40,
|
|
4313
|
+
height: 34,
|
|
4314
|
+
ariaHidden: true,
|
|
4315
|
+
styleOverride: {
|
|
4316
|
+
fill: 'none'
|
|
4317
|
+
}
|
|
4318
|
+
});
|
|
4319
|
+
var stroke = {
|
|
4320
|
+
stroke: 'white',
|
|
4321
|
+
'stroke-width': '2',
|
|
4322
|
+
'stroke-linecap': 'round',
|
|
4323
|
+
'stroke-linejoin': 'round'
|
|
4324
|
+
};
|
|
4325
|
+
return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("svg", svgAttrs, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("rect", {
|
|
4326
|
+
x: "14",
|
|
4327
|
+
y: "13",
|
|
4328
|
+
width: "12",
|
|
4329
|
+
height: "8",
|
|
4330
|
+
rx: "1.5",
|
|
4331
|
+
stroke: "white",
|
|
4332
|
+
"stroke-width": "2"
|
|
4333
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("g", stroke, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
4334
|
+
d: "M10 13V11C10 9.89543 10.8954 9 12 9H14"
|
|
4335
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
4336
|
+
d: "M30 13V11C30 9.89543 29.1046 9 28 9H26"
|
|
4337
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
4338
|
+
d: "M30 21L30 23C30 24.1046 29.1046 25 28 25L26 25"
|
|
4339
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
4340
|
+
d: "M10 21L10 23C10 24.1046 10.8954 25 12 25L14 25"
|
|
4341
|
+
})));
|
|
4342
|
+
};
|
|
4343
|
+
|
|
4344
|
+
/***/ }),
|
|
4345
|
+
|
|
4068
4346
|
/***/ 1339:
|
|
4069
4347
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4070
4348
|
|
|
@@ -4353,6 +4631,36 @@ function LiveStreamStatus(_ref5) {
|
|
|
4353
4631
|
|
|
4354
4632
|
/***/ }),
|
|
4355
4633
|
|
|
4634
|
+
/***/ 5403:
|
|
4635
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4636
|
+
|
|
4637
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4638
|
+
/* harmony export */ t: () => (/* binding */ RoundedSettingsButton)
|
|
4639
|
+
/* harmony export */ });
|
|
4640
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
4641
|
+
/* harmony import */ var _utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(280);
|
|
4642
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4643
|
+
|
|
4644
|
+
|
|
4645
|
+
var RoundedSettingsButton = function RoundedSettingsButton(_ref) {
|
|
4646
|
+
var onMouseEnter = _ref.onMouseEnter;
|
|
4647
|
+
var svgAttrs = (0,_utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__/* .standardSvgAttrs */ .I)({
|
|
4648
|
+
width: 40,
|
|
4649
|
+
height: 34,
|
|
4650
|
+
ariaHidden: true
|
|
4651
|
+
});
|
|
4652
|
+
return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("svg", _extends({}, svgAttrs, {
|
|
4653
|
+
onMouseEnter: onMouseEnter
|
|
4654
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
4655
|
+
"fill-rule": "evenodd",
|
|
4656
|
+
"clip-rule": "evenodd",
|
|
4657
|
+
d: "M26.4 15.4H28.3C28.7 15.4 29 15.7 29 16.1V16.7C29 17.1 28.7 17.4 28.3 17.4H26.4C26 17.4 25.6 17.7 25.5 18.1L25.1 19.2C25 19.5 25 20 25.3 20.3L26.6 21.6C26.9 21.9 26.9 22.3 26.6 22.6L26.2 23C25.9 23.3 25.5 23.3 25.2 23L23.9 21.7C23.6 21.5 23.1 21.4 22.8 21.6L21.7 22.1C21.3 22.2 21 22.6 21 23V24.7C21 25.1 20.7 25.4 20.3 25.4H19.7C19.3 25.4 19 25.1 19 24.7V23C19 22.6 18.7 22.2 18.3 22.1L17.1 21.6C16.8 21.5 16.3 21.5 16 21.8L14.8 23C14.5 23.3 14.1 23.3 13.8 23L13.4 22.6C13.1 22.3 13.1 21.9 13.4 21.6L14.6 20.4C14.8 20.1 14.9 19.6 14.7 19.3L14.2 18.1C14.1 17.7 13.7 17.4 13.3 17.4H11.7C11.3 17.4 11 17.1 11 16.7V16.1C11 15.7 11.3 15.4 11.7 15.4H13.3C13.7 15.4 14.1 15.1 14.2 14.7L14.7 13.5C14.9 13.2 14.9 12.7 14.6 12.4L13.4 11.2C13.1 10.9 13.1 10.5 13.4 10.2L13.8 9.8C14.1 9.5 14.5 9.5 14.8 9.8L16 11C16.3 11.3 16.8 11.4 17.1 11.2L18.3 10.7C18.7 10.6 19 10.2 19 9.8V8.1C19 7.7 19.3 7.4 19.7 7.4H20.3C20.7 7.4 21 7.7 21 8.1V9.8C21 10.2 21.3 10.6 21.7 10.7L22.8 11.2C23.1 11.4 23.6 11.4 23.9 11.1L25.2 9.8C25.5 9.5 25.9 9.5 26.2 9.8L26.6 10.2C26.9 10.5 26.9 10.9 26.6 11.2L25.3 12.5C25 12.8 24.9 13.3 25.1 13.6L25.5 14.7C25.6 15.1 26 15.4 26.4 15.4ZM19.9 20.4C22 20.4 23.8 18.7 23.8 16.5C23.8 14.3 22.1 12.6 19.9 12.6C17.7 12.6 16 14.4 16 16.5C16 18.6 17.7 20.4 19.9 20.4Z",
|
|
4658
|
+
fill: "white"
|
|
4659
|
+
}));
|
|
4660
|
+
};
|
|
4661
|
+
|
|
4662
|
+
/***/ }),
|
|
4663
|
+
|
|
4356
4664
|
/***/ 9287:
|
|
4357
4665
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4358
4666
|
|
|
@@ -4685,23 +4993,21 @@ var ControlBarButton = /*#__PURE__*/function (_Component) {
|
|
|
4685
4993
|
var _this$props = this.props,
|
|
4686
4994
|
controlBarBorderRadius = _this$props.controlBarBorderRadius,
|
|
4687
4995
|
extraPaddingWhenRounded = _this$props.extraPaddingWhenRounded,
|
|
4688
|
-
isActuallyLink = _this$props.isActuallyLink
|
|
4689
|
-
scale = _this$props.scale;
|
|
4996
|
+
isActuallyLink = _this$props.isActuallyLink;
|
|
4690
4997
|
var bgColor = new utilities_color_js__WEBPACK_IMPORTED_MODULE_6__/* .Color */ .Q('#000');
|
|
4691
4998
|
var alphaVal = isHovering && !this.props.disabled ? 0.2 : 0;
|
|
4692
4999
|
bgColor.alpha(alphaVal);
|
|
4693
5000
|
var rightMostExtraPaddingWhenRounded = this.props.isRightMostControl ? extraPaddingWhenRounded : 0;
|
|
4694
|
-
var scaledRadius = controlBarBorderRadius * scale;
|
|
4695
5001
|
var linkOverrideStyles = isActuallyLink ? {
|
|
4696
5002
|
display: 'block',
|
|
4697
5003
|
outline: 'none'
|
|
4698
5004
|
} : {};
|
|
4699
5005
|
return _objectSpread({
|
|
4700
5006
|
backgroundColor: bgColor.toRgba(),
|
|
4701
|
-
borderBottomLeftRadius: this.props.isLeftMostControl ? "".concat(
|
|
4702
|
-
borderBottomRightRadius: this.props.isRightMostControl ? "".concat(
|
|
4703
|
-
borderTopLeftRadius: this.props.isLeftMostControl ? "".concat(
|
|
4704
|
-
borderTopRightRadius: this.props.isRightMostControl ? "".concat(
|
|
5007
|
+
borderBottomLeftRadius: this.props.isLeftMostControl ? "".concat(controlBarBorderRadius, "px") : 0,
|
|
5008
|
+
borderBottomRightRadius: this.props.isRightMostControl ? "".concat(controlBarBorderRadius, "px") : 0,
|
|
5009
|
+
borderTopLeftRadius: this.props.isLeftMostControl ? "".concat(controlBarBorderRadius, "px") : 0,
|
|
5010
|
+
borderTopRightRadius: this.props.isRightMostControl ? "".concat(controlBarBorderRadius, "px") : 0,
|
|
4705
5011
|
boxShadow: isKeyboardFocused ? '0 0 0 2px #fff inset' : 'none',
|
|
4706
5012
|
cursor: this.props.disabled ? 'not-allowed' : 'pointer',
|
|
4707
5013
|
height: '100%',
|
|
@@ -5802,6 +6108,50 @@ var RawHTMLStub = /*#__PURE__*/function (_Component) {
|
|
|
5802
6108
|
|
|
5803
6109
|
/***/ }),
|
|
5804
6110
|
|
|
6111
|
+
/***/ 4795:
|
|
6112
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6113
|
+
|
|
6114
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6115
|
+
/* harmony export */ r: () => (/* binding */ RoundedSmallPlayButton)
|
|
6116
|
+
/* harmony export */ });
|
|
6117
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
6118
|
+
/* harmony import */ var _utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(280);
|
|
6119
|
+
|
|
6120
|
+
|
|
6121
|
+
var RoundedSmallPlayButton = function RoundedSmallPlayButton(_ref) {
|
|
6122
|
+
var isPlaying = _ref.isPlaying,
|
|
6123
|
+
_ref$svgStyle = _ref.svgStyle,
|
|
6124
|
+
svgStyle = _ref$svgStyle === void 0 ? {} : _ref$svgStyle,
|
|
6125
|
+
_ref$marginLeft = _ref.marginLeft,
|
|
6126
|
+
marginLeft = _ref$marginLeft === void 0 ? 0 : _ref$marginLeft;
|
|
6127
|
+
var svgAttrs = (0,_utilities_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__/* .standardSvgAttrs */ .I)({
|
|
6128
|
+
width: 40,
|
|
6129
|
+
height: 34,
|
|
6130
|
+
ariaHidden: true,
|
|
6131
|
+
styleOverride: svgStyle
|
|
6132
|
+
});
|
|
6133
|
+
return (
|
|
6134
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
6135
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
6136
|
+
style: {
|
|
6137
|
+
width: '100%',
|
|
6138
|
+
height: '100%',
|
|
6139
|
+
marginLeft: marginLeft !== null && marginLeft !== void 0 ? marginLeft : 0
|
|
6140
|
+
}
|
|
6141
|
+
}, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("svg", svgAttrs, isPlaying ? (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
6142
|
+
"fill-rule": "evenodd",
|
|
6143
|
+
"clip-rule": "evenodd",
|
|
6144
|
+
d: "M16.5 11C15.6716 11 15 11.6716 15 12.5V22.5C15 23.3284 15.6716 24 16.5 24H17.5C18.3284 24 19 23.3284 19 22.5V12.5C19 11.6716 18.3284 11 17.5 11H16.5ZM23.5 11C22.6716 11 22 11.6716 22 12.5V22.5C22 23.3284 22.6716 24 23.5 24H24.5C25.3284 24 26 23.3284 26 22.5V12.5C26 11.6716 25.3284 11 24.5 11H23.5Z",
|
|
6145
|
+
fill: "white"
|
|
6146
|
+
}) : (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("path", {
|
|
6147
|
+
d: "M24.888 16.1913C25.4371 16.5906 25.4371 17.4094 24.888 17.8087L16.5882 23.845C15.9272 24.3257 15 23.8535 15 23.0362V10.9638C15 10.1465 15.9272 9.67433 16.5882 10.155L24.888 16.1913Z",
|
|
6148
|
+
fill: "white"
|
|
6149
|
+
})))
|
|
6150
|
+
);
|
|
6151
|
+
};
|
|
6152
|
+
|
|
6153
|
+
/***/ }),
|
|
6154
|
+
|
|
5805
6155
|
/***/ 1168:
|
|
5806
6156
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5807
6157
|
|
|
@@ -6186,6 +6536,330 @@ var Thumbnail = /*#__PURE__*/function (_Component) {
|
|
|
6186
6536
|
|
|
6187
6537
|
/***/ }),
|
|
6188
6538
|
|
|
6539
|
+
/***/ 9804:
|
|
6540
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6541
|
+
|
|
6542
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6543
|
+
/* harmony export */ u: () => (/* binding */ PreloadThumbnail)
|
|
6544
|
+
/* harmony export */ });
|
|
6545
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
6546
|
+
/* harmony import */ var _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2721);
|
|
6547
|
+
/* harmony import */ var _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1512);
|
|
6548
|
+
/* harmony import */ var _media_players_vulcanV2Player_shared_ui_components_BigPlayButton_tsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6906);
|
|
6549
|
+
/* harmony import */ var _shared_ProgressiveThumbnail_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3164);
|
|
6550
|
+
/* harmony import */ var _shared_translations_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4730);
|
|
6551
|
+
/* harmony import */ var _utilities_assets_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7209);
|
|
6552
|
+
/* harmony import */ var _utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3123);
|
|
6553
|
+
|
|
6554
|
+
|
|
6555
|
+
|
|
6556
|
+
|
|
6557
|
+
|
|
6558
|
+
|
|
6559
|
+
|
|
6560
|
+
|
|
6561
|
+
var PreloadThumbnail = function PreloadThumbnail(_ref) {
|
|
6562
|
+
var _ref2;
|
|
6563
|
+
var isSwatchEnabled = _ref.isSwatchEnabled,
|
|
6564
|
+
mediaId = _ref.mediaId,
|
|
6565
|
+
playerWidth = _ref.playerWidth;
|
|
6566
|
+
var _usePlayerData = (0,_hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_1__/* .usePlayerData */ .$)(),
|
|
6567
|
+
embedOptions = _usePlayerData.embedOptions,
|
|
6568
|
+
mediaData = _usePlayerData.mediaData;
|
|
6569
|
+
var bigPlayButtonBorderRadius = embedOptions.bigPlayButtonBorderRadius,
|
|
6570
|
+
controlBarBorderRadius = embedOptions.controlBarBorderRadius,
|
|
6571
|
+
controlsVisibleOnLoad = embedOptions.controlsVisibleOnLoad,
|
|
6572
|
+
floatingControlBar = embedOptions.floatingControlBar,
|
|
6573
|
+
newRoundedIcons = embedOptions.newRoundedIcons,
|
|
6574
|
+
noMixBlendMode = embedOptions.noMixBlendMode,
|
|
6575
|
+
playerBorderRadius = embedOptions.playerBorderRadius,
|
|
6576
|
+
playerColor = embedOptions.playerColor,
|
|
6577
|
+
playerLanguage = embedOptions.playerLanguage,
|
|
6578
|
+
roundedPlayer = embedOptions.roundedPlayer,
|
|
6579
|
+
thumbnailAltText = embedOptions.thumbnailAltText,
|
|
6580
|
+
transparentLetterbox = embedOptions.transparentLetterbox;
|
|
6581
|
+
var aspectRatio = mediaData.aspectRatio,
|
|
6582
|
+
assets = mediaData.assets,
|
|
6583
|
+
duration = mediaData.duration,
|
|
6584
|
+
mediaType = mediaData.mediaType,
|
|
6585
|
+
name = mediaData.name;
|
|
6586
|
+
var height = playerWidth / (aspectRatio !== null && aspectRatio !== void 0 ? aspectRatio : _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_6__/* .DEFAULT_ASPECT */ .R);
|
|
6587
|
+
var defaultControlBarDistance = (0,_utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_7__.getDefaultControlBarDistance)({
|
|
6588
|
+
controlBarBorderRadius: controlBarBorderRadius,
|
|
6589
|
+
floatingControlBar: floatingControlBar,
|
|
6590
|
+
roundedPlayer: roundedPlayer
|
|
6591
|
+
});
|
|
6592
|
+
var calculatedControlBarDistance = controlsVisibleOnLoad ? _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_6__/* .CONTROL_BAR_HEIGHT */ .E / 2 + defaultControlBarDistance : defaultControlBarDistance;
|
|
6593
|
+
var defaultBigPlayButtonBorderRadius = (0,_utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_7__.getDefaultBigPlayButtonBorderRadius)({
|
|
6594
|
+
bigPlayButtonBorderRadius: bigPlayButtonBorderRadius,
|
|
6595
|
+
roundedPlayer: roundedPlayer
|
|
6596
|
+
});
|
|
6597
|
+
var defaultPlayerBorderRadius = (0,_utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_7__.getDefaultPlayerBorderRadius)({
|
|
6598
|
+
playerBorderRadius: playerBorderRadius,
|
|
6599
|
+
roundedPlayer: roundedPlayer
|
|
6600
|
+
});
|
|
6601
|
+
var backgroundColor = transparentLetterbox === true || defaultPlayerBorderRadius > 0 ? 'transparent' : undefined;
|
|
6602
|
+
var thumbnailAssets = (0,_utilities_assets_js__WEBPACK_IMPORTED_MODULE_5__.thumbnailAssets)(assets, {});
|
|
6603
|
+
var calculatedPlayerLanguage = (_ref2 = (0,_shared_translations_js__WEBPACK_IMPORTED_MODULE_4__/* .getLanguage */ .Z0)(playerLanguage)) !== null && _ref2 !== void 0 ? _ref2 : (0,_shared_translations_js__WEBPACK_IMPORTED_MODULE_4__/* .getLanguage */ .Z0)('en-US');
|
|
6604
|
+
return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .FK, null, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(_shared_ProgressiveThumbnail_jsx__WEBPACK_IMPORTED_MODULE_3__/* .ProgressiveThumbnail */ .E, {
|
|
6605
|
+
backgroundColor: backgroundColor,
|
|
6606
|
+
images: thumbnailAssets,
|
|
6607
|
+
isVisible: true,
|
|
6608
|
+
hashedId: mediaId,
|
|
6609
|
+
playerBorderRadius: defaultPlayerBorderRadius,
|
|
6610
|
+
swatchEnabled: isSwatchEnabled,
|
|
6611
|
+
uiHasRendered: false,
|
|
6612
|
+
thumbnailAltText: thumbnailAltText !== null && thumbnailAltText !== void 0 ? thumbnailAltText : '',
|
|
6613
|
+
height: "".concat(height, "px")
|
|
6614
|
+
}), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(_media_players_vulcanV2Player_shared_ui_components_BigPlayButton_tsx__WEBPACK_IMPORTED_MODULE_2__/* .BigPlayButton */ .Fn, {
|
|
6615
|
+
borderRadius: defaultBigPlayButtonBorderRadius,
|
|
6616
|
+
buttonTabIndex: 0,
|
|
6617
|
+
color: playerColor,
|
|
6618
|
+
controlBarDistance: calculatedControlBarDistance,
|
|
6619
|
+
duration: duration !== null && duration !== void 0 ? duration : 0,
|
|
6620
|
+
hasNewRoundedIcons: newRoundedIcons // TODO: Remove once rounded icons are fully released
|
|
6621
|
+
,
|
|
6622
|
+
isLiveMedia: mediaType === 'LiveStream',
|
|
6623
|
+
isVisible: true,
|
|
6624
|
+
noMixBlendMode: noMixBlendMode,
|
|
6625
|
+
playerLanguage: calculatedPlayerLanguage,
|
|
6626
|
+
scale: 1,
|
|
6627
|
+
showBpbTime: false,
|
|
6628
|
+
videoName: name !== null && name !== void 0 ? name : ''
|
|
6629
|
+
}));
|
|
6630
|
+
};
|
|
6631
|
+
|
|
6632
|
+
/***/ }),
|
|
6633
|
+
|
|
6634
|
+
/***/ 2721:
|
|
6635
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6636
|
+
|
|
6637
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6638
|
+
/* harmony export */ $: () => (/* binding */ usePlayerData),
|
|
6639
|
+
/* harmony export */ z: () => (/* binding */ PlayerDataProvider)
|
|
6640
|
+
/* harmony export */ });
|
|
6641
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
6642
|
+
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3817);
|
|
6643
|
+
|
|
6644
|
+
|
|
6645
|
+
var PlayerDataContext = (0,preact__WEBPACK_IMPORTED_MODULE_0__/* .createContext */ .q6)(null);
|
|
6646
|
+
var PlayerDataProvider = function PlayerDataProvider(_ref) {
|
|
6647
|
+
var children = _ref.children,
|
|
6648
|
+
embedOptions = _ref.embedOptions,
|
|
6649
|
+
mediaData = _ref.mediaData;
|
|
6650
|
+
return (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(PlayerDataContext.Provider, {
|
|
6651
|
+
value: {
|
|
6652
|
+
embedOptions: embedOptions,
|
|
6653
|
+
mediaData: mediaData
|
|
6654
|
+
}
|
|
6655
|
+
}, children);
|
|
6656
|
+
};
|
|
6657
|
+
var usePlayerData = function usePlayerData() {
|
|
6658
|
+
var context = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useContext */ .NT)(PlayerDataContext);
|
|
6659
|
+
if (context == null) {
|
|
6660
|
+
throw new Error('usePlayerData must be used within a PlayerDataProvider');
|
|
6661
|
+
}
|
|
6662
|
+
return context;
|
|
6663
|
+
};
|
|
6664
|
+
|
|
6665
|
+
/***/ }),
|
|
6666
|
+
|
|
6667
|
+
/***/ 6462:
|
|
6668
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6669
|
+
|
|
6670
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6671
|
+
/* harmony export */ I: () => (/* binding */ PlayerDataHandler)
|
|
6672
|
+
/* harmony export */ });
|
|
6673
|
+
/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8089);
|
|
6674
|
+
/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_0__);
|
|
6675
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6676
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6677
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6678
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6679
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6680
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
6681
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
6682
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
6683
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
6684
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
6685
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
6686
|
+
|
|
6687
|
+
var _embedOptionOverrides = /*#__PURE__*/new WeakMap();
|
|
6688
|
+
var _embedOptions = /*#__PURE__*/new WeakMap();
|
|
6689
|
+
var _mediaData = /*#__PURE__*/new WeakMap();
|
|
6690
|
+
var _sourceEmbedOptions = /*#__PURE__*/new WeakMap();
|
|
6691
|
+
var _sourceMediaData = /*#__PURE__*/new WeakMap();
|
|
6692
|
+
var _PlayerDataHandler_brand = /*#__PURE__*/new WeakSet();
|
|
6693
|
+
var PlayerDataHandler = /*#__PURE__*/function () {
|
|
6694
|
+
function PlayerDataHandler() {
|
|
6695
|
+
_classCallCheck(this, PlayerDataHandler);
|
|
6696
|
+
/**
|
|
6697
|
+
* Merge the source embed options together to create a single source of truth of embed options
|
|
6698
|
+
* @private
|
|
6699
|
+
* @returns {void}
|
|
6700
|
+
*/
|
|
6701
|
+
_classPrivateMethodInitSpec(this, _PlayerDataHandler_brand);
|
|
6702
|
+
// Embed options set after initialization which override the embed options
|
|
6703
|
+
// gathered from the source data
|
|
6704
|
+
_classPrivateFieldInitSpec(this, _embedOptionOverrides, {});
|
|
6705
|
+
// Merged embed options gathered from source data
|
|
6706
|
+
_classPrivateFieldInitSpec(this, _embedOptions, {});
|
|
6707
|
+
// Merged media data gathered from source data
|
|
6708
|
+
_classPrivateFieldInitSpec(this, _mediaData, {});
|
|
6709
|
+
// Source data which is used to create the final embed options
|
|
6710
|
+
_classPrivateFieldInitSpec(this, _sourceEmbedOptions, {
|
|
6711
|
+
domOptions: {},
|
|
6712
|
+
inlineMediaDataOptions: {},
|
|
6713
|
+
serverMediaDataOptions: {},
|
|
6714
|
+
wistiaWindowOptions: {}
|
|
6715
|
+
});
|
|
6716
|
+
// Source data which is used to create the final media data
|
|
6717
|
+
_classPrivateFieldInitSpec(this, _sourceMediaData, {
|
|
6718
|
+
serverData: {},
|
|
6719
|
+
inlineData: {}
|
|
6720
|
+
});
|
|
6721
|
+
}
|
|
6722
|
+
return _createClass(PlayerDataHandler, [{
|
|
6723
|
+
key: "embedOptions",
|
|
6724
|
+
get:
|
|
6725
|
+
/**
|
|
6726
|
+
* Returns the final embed options which are a merge of all the source data and the overrides
|
|
6727
|
+
* @returns {EmbedOptions}
|
|
6728
|
+
* @readonly
|
|
6729
|
+
*/
|
|
6730
|
+
function get() {
|
|
6731
|
+
return _classPrivateFieldGet(_embedOptions, this);
|
|
6732
|
+
}
|
|
6733
|
+
|
|
6734
|
+
/**
|
|
6735
|
+
* Returns the final media data which is a merge of all the source data
|
|
6736
|
+
* @returns {MediaData}
|
|
6737
|
+
* @readonly
|
|
6738
|
+
*/
|
|
6739
|
+
}, {
|
|
6740
|
+
key: "mediaData",
|
|
6741
|
+
get: function get() {
|
|
6742
|
+
// Our embed options can be overridden after our initial source data fetches
|
|
6743
|
+
// Make sure the embed options within the media data are up to date
|
|
6744
|
+
_classPrivateFieldGet(_mediaData, this).embedOptions = _classPrivateFieldGet(_embedOptions, this);
|
|
6745
|
+
return _classPrivateFieldGet(_mediaData, this);
|
|
6746
|
+
}
|
|
6747
|
+
|
|
6748
|
+
/**
|
|
6749
|
+
* Sets the source data for the embed options set on the <wistia-player> DOM element
|
|
6750
|
+
* @param {EmbedOptions} data
|
|
6751
|
+
* @returns {void}
|
|
6752
|
+
*/
|
|
6753
|
+
}, {
|
|
6754
|
+
key: "setDomEmbedOptionSource",
|
|
6755
|
+
value: function setDomEmbedOptionSource(data) {
|
|
6756
|
+
_classPrivateFieldGet(_sourceEmbedOptions, this).domOptions = data;
|
|
6757
|
+
_assertClassBrand(_PlayerDataHandler_brand, this, _updatePlayerEmbedOptions).call(this);
|
|
6758
|
+
}
|
|
6759
|
+
|
|
6760
|
+
/**
|
|
6761
|
+
* Sets the source data for the media data set inline on the window
|
|
6762
|
+
* @param {MediaData} data
|
|
6763
|
+
* @returns {void}
|
|
6764
|
+
*/
|
|
6765
|
+
}, {
|
|
6766
|
+
key: "setInlineMediaDataSource",
|
|
6767
|
+
value: function setInlineMediaDataSource(data) {
|
|
6768
|
+
var _data$embedOptions;
|
|
6769
|
+
_classPrivateFieldGet(_sourceMediaData, this).inlineData = data;
|
|
6770
|
+
_classPrivateFieldGet(_sourceEmbedOptions, this).inlineMediaDataOptions = (_data$embedOptions = data.embedOptions) !== null && _data$embedOptions !== void 0 ? _data$embedOptions : {};
|
|
6771
|
+
_assertClassBrand(_PlayerDataHandler_brand, this, _updatePlayerMediaData).call(this);
|
|
6772
|
+
}
|
|
6773
|
+
|
|
6774
|
+
/**
|
|
6775
|
+
* Sets the source data for the media data fetched from the server
|
|
6776
|
+
* @param {MediaData} data
|
|
6777
|
+
* @returns {void}
|
|
6778
|
+
*/
|
|
6779
|
+
}, {
|
|
6780
|
+
key: "setServerMediaDataSource",
|
|
6781
|
+
value: function setServerMediaDataSource(data) {
|
|
6782
|
+
var _data$embedOptions2;
|
|
6783
|
+
_classPrivateFieldGet(_sourceMediaData, this).serverData = data;
|
|
6784
|
+
_classPrivateFieldGet(_sourceEmbedOptions, this).serverMediaDataOptions = (_data$embedOptions2 = data.embedOptions) !== null && _data$embedOptions2 !== void 0 ? _data$embedOptions2 : {};
|
|
6785
|
+
_assertClassBrand(_PlayerDataHandler_brand, this, _updatePlayerMediaData).call(this);
|
|
6786
|
+
}
|
|
6787
|
+
|
|
6788
|
+
/**
|
|
6789
|
+
* Sets the source data for the embed options set on the window via wistiaOptions
|
|
6790
|
+
* @param {EmbedOptions} data
|
|
6791
|
+
* @returns {void}
|
|
6792
|
+
*/
|
|
6793
|
+
}, {
|
|
6794
|
+
key: "setWistiaWindowEmbedOptionSource",
|
|
6795
|
+
value: function setWistiaWindowEmbedOptionSource(data) {
|
|
6796
|
+
_classPrivateFieldGet(_sourceEmbedOptions, this).wistiaWindowOptions = data;
|
|
6797
|
+
_assertClassBrand(_PlayerDataHandler_brand, this, _updatePlayerEmbedOptions).call(this);
|
|
6798
|
+
}
|
|
6799
|
+
|
|
6800
|
+
/**
|
|
6801
|
+
* Updates the embed option overrides which will be merged with the source embed option data
|
|
6802
|
+
* This merge can happen more frequently than our finite source data sets, which is why it's separate.
|
|
6803
|
+
* That way we don't have to re-merge the source data every time we update the overrides.
|
|
6804
|
+
* @param {EmbedOptions} data
|
|
6805
|
+
* @returns {void}
|
|
6806
|
+
*/
|
|
6807
|
+
}, {
|
|
6808
|
+
key: "updateEmbedOptionOverrides",
|
|
6809
|
+
value: function updateEmbedOptionOverrides(data) {
|
|
6810
|
+
_classPrivateFieldSet(_embedOptionOverrides, this, lodash_merge__WEBPACK_IMPORTED_MODULE_0___default()(_classPrivateFieldGet(_embedOptionOverrides, this), data));
|
|
6811
|
+
_classPrivateFieldSet(_embedOptions, this, lodash_merge__WEBPACK_IMPORTED_MODULE_0___default()(_classPrivateFieldGet(_embedOptions, this), _classPrivateFieldGet(_embedOptionOverrides, this)));
|
|
6812
|
+
}
|
|
6813
|
+
}]);
|
|
6814
|
+
}();
|
|
6815
|
+
function _updatePlayerEmbedOptions() {
|
|
6816
|
+
var _classPrivateFieldGet2 = _classPrivateFieldGet(_sourceMediaData, this),
|
|
6817
|
+
inlineData = _classPrivateFieldGet2.inlineData;
|
|
6818
|
+
var _classPrivateFieldGet3 = _classPrivateFieldGet(_sourceEmbedOptions, this),
|
|
6819
|
+
serverMediaDataOptions = _classPrivateFieldGet3.serverMediaDataOptions,
|
|
6820
|
+
wistiaWindowOptions = _classPrivateFieldGet3.wistiaWindowOptions,
|
|
6821
|
+
inlineMediaDataOptions = _classPrivateFieldGet3.inlineMediaDataOptions,
|
|
6822
|
+
domOptions = _classPrivateFieldGet3.domOptions;
|
|
6823
|
+
var hasInlineMediaData = inlineData && Object.keys(inlineData).length > 0;
|
|
6824
|
+
|
|
6825
|
+
// Merge the embed options together to create a single source of truth of embed options
|
|
6826
|
+
_classPrivateFieldSet(_embedOptions, this, lodash_merge__WEBPACK_IMPORTED_MODULE_0___default()(hasInlineMediaData === true ? inlineMediaDataOptions !== null && inlineMediaDataOptions !== void 0 ? inlineMediaDataOptions : {} : serverMediaDataOptions !== null && serverMediaDataOptions !== void 0 ? serverMediaDataOptions : {}, wistiaWindowOptions !== null && wistiaWindowOptions !== void 0 ? wistiaWindowOptions : {}, domOptions !== null && domOptions !== void 0 ? domOptions : {}, _classPrivateFieldGet(_embedOptionOverrides, this)));
|
|
6827
|
+
|
|
6828
|
+
// Make sure the embed options within the media data are up to date
|
|
6829
|
+
_classPrivateFieldGet(_mediaData, this).embedOptions = _classPrivateFieldGet(_embedOptions, this);
|
|
6830
|
+
}
|
|
6831
|
+
/**
|
|
6832
|
+
* Merge the source media data together to create a single source of truth of media data
|
|
6833
|
+
* This will also update the embed options from the media data
|
|
6834
|
+
* @private
|
|
6835
|
+
* @returns {void}
|
|
6836
|
+
*/
|
|
6837
|
+
function _updatePlayerMediaData() {
|
|
6838
|
+
// Choose the media data we'll use based on whether we have inline data or not
|
|
6839
|
+
var _classPrivateFieldGet4 = _classPrivateFieldGet(_sourceMediaData, this),
|
|
6840
|
+
inlineData = _classPrivateFieldGet4.inlineData,
|
|
6841
|
+
serverData = _classPrivateFieldGet4.serverData;
|
|
6842
|
+
var hasInlineMediaData = inlineData && Object.keys(inlineData).length > 0;
|
|
6843
|
+
_classPrivateFieldSet(_mediaData, this, hasInlineMediaData ? inlineData : serverData !== null && serverData !== void 0 ? serverData : {});
|
|
6844
|
+
_assertClassBrand(_PlayerDataHandler_brand, this, _updatePlayerEmbedOptions).call(this);
|
|
6845
|
+
}
|
|
6846
|
+
|
|
6847
|
+
/***/ }),
|
|
6848
|
+
|
|
6849
|
+
/***/ 1512:
|
|
6850
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6851
|
+
|
|
6852
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6853
|
+
/* harmony export */ E: () => (/* binding */ CONTROL_BAR_HEIGHT),
|
|
6854
|
+
/* harmony export */ R: () => (/* binding */ DEFAULT_ASPECT)
|
|
6855
|
+
/* harmony export */ });
|
|
6856
|
+
var CONTROL_BAR_HEIGHT = 34;
|
|
6857
|
+
|
|
6858
|
+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
6859
|
+
var DEFAULT_ASPECT = 16 / 9;
|
|
6860
|
+
|
|
6861
|
+
/***/ }),
|
|
6862
|
+
|
|
6189
6863
|
/***/ 7323:
|
|
6190
6864
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6191
6865
|
|
|
@@ -6326,7 +7000,7 @@ var dynamicImport = /*#__PURE__*/function () {
|
|
|
6326
7000
|
case 0:
|
|
6327
7001
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
6328
7002
|
host = (_options$host = options.host) !== null && _options$host !== void 0 ? _options$host : (0,_hosts_js__WEBPACK_IMPORTED_MODULE_0__.eV1HostWithPort)(); // @ts-expect-error webpack should resolve this for us
|
|
6329
|
-
taggedVersion = "0.0.
|
|
7003
|
+
taggedVersion = "0.0.21";
|
|
6330
7004
|
if (!(taggedVersion !== '' && taggedVersion.length > 0 && options.mediaData !== true)) {
|
|
6331
7005
|
_context.next = 5;
|
|
6332
7006
|
break;
|
|
@@ -6871,6 +7545,155 @@ var inferPageUrl = function inferPageUrl() {
|
|
|
6871
7545
|
|
|
6872
7546
|
/***/ }),
|
|
6873
7547
|
|
|
7548
|
+
/***/ 3441:
|
|
7549
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7550
|
+
|
|
7551
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7552
|
+
/* harmony export */ CR: () => (/* binding */ seekToAction),
|
|
7553
|
+
/* harmony export */ Qy: () => (/* binding */ shouldAddClipsFromChapters),
|
|
7554
|
+
/* harmony export */ Vq: () => (/* binding */ shouldAddKeyMoments),
|
|
7555
|
+
/* harmony export */ oG: () => (/* binding */ clipsFromChapters)
|
|
7556
|
+
/* harmony export */ });
|
|
7557
|
+
/* harmony import */ var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4586);
|
|
7558
|
+
/* harmony import */ var _normalizeChapters_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9128);
|
|
7559
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
7560
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7561
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7562
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7563
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7564
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7565
|
+
|
|
7566
|
+
|
|
7567
|
+
// Google got mad that the default chapter title is (of course) not very
|
|
7568
|
+
// descriptive, and wanted us to make sure it's never used for Key Moments.
|
|
7569
|
+
var DEFAULT_CHAPTER_TITLE = 'Chapter Title';
|
|
7570
|
+
var MINIMUM_DURATION = 30;
|
|
7571
|
+
var shouldAddClipsFromChapters = function shouldAddClipsFromChapters(embedOptions) {
|
|
7572
|
+
var chapters = (0,_normalizeChapters_ts__WEBPACK_IMPORTED_MODULE_0__/* .normalizeChapters */ .a)(embedOptions);
|
|
7573
|
+
if (!chapters) {
|
|
7574
|
+
return false;
|
|
7575
|
+
}
|
|
7576
|
+
var chapterList = chapters.chapterList;
|
|
7577
|
+
|
|
7578
|
+
// the `on` property must be explicitly false to disable
|
|
7579
|
+
return chapters.on !== false && chapters.on !== 'false' && Array.isArray(chapterList) && chapterList.length > 0;
|
|
7580
|
+
};
|
|
7581
|
+
|
|
7582
|
+
// keyMoments should only be limited by a few factors:
|
|
7583
|
+
// 1. a turnstile is blocking content
|
|
7584
|
+
// 2. it's password protected
|
|
7585
|
+
// 3. the video is really short
|
|
7586
|
+
// 4. only available for VOD, not Live
|
|
7587
|
+
// Then, there are two different _types_ of key moments. If we have chapters
|
|
7588
|
+
// we will use the Clips format to specifically tell google the timestamps we think
|
|
7589
|
+
// are important. Otherwise, we will use the SeekToAction field along with the wtime
|
|
7590
|
+
// param to allow Google to search through the video for key moments
|
|
7591
|
+
var shouldAddKeyMoments = function shouldAddKeyMoments(mediaData, embedOptions) {
|
|
7592
|
+
var _embedOptions$plugin;
|
|
7593
|
+
if (embedOptions.keyMoments === false) {
|
|
7594
|
+
return false;
|
|
7595
|
+
}
|
|
7596
|
+
var duration = mediaData.duration,
|
|
7597
|
+
type = mediaData.type;
|
|
7598
|
+
var _ref = (_embedOptions$plugin = embedOptions.plugin) !== null && _embedOptions$plugin !== void 0 ? _embedOptions$plugin : {},
|
|
7599
|
+
passwordProtectedVideo = _ref.passwordProtectedVideo,
|
|
7600
|
+
turnstilePlugin = _ref['requireEmail-v1'];
|
|
7601
|
+
var isLiveStream = type === 'LiveStream';
|
|
7602
|
+
var passwordEnabled = (passwordProtectedVideo === null || passwordProtectedVideo === void 0 ? void 0 : passwordProtectedVideo.on) === true || (passwordProtectedVideo === null || passwordProtectedVideo === void 0 ? void 0 : passwordProtectedVideo.on) === 'true';
|
|
7603
|
+
var turnstileBlocksContent = turnstilePlugin && turnstilePlugin.on !== false && turnstilePlugin.time !== 'end' && !turnstilePlugin.persistentTurnstile;
|
|
7604
|
+
return Boolean(!passwordEnabled && !turnstileBlocksContent && !isLiveStream && typeof duration === 'number' && duration >= MINIMUM_DURATION);
|
|
7605
|
+
};
|
|
7606
|
+
var sortedFilteredChapters = function sortedFilteredChapters(chapterList) {
|
|
7607
|
+
var chapterExistsAtTime = {};
|
|
7608
|
+
return _toConsumableArray(chapterList).sort(function (firstChapter, secondChapter) {
|
|
7609
|
+
return firstChapter.time - secondChapter.time;
|
|
7610
|
+
}).filter(function (_ref2) {
|
|
7611
|
+
var time = _ref2.time,
|
|
7612
|
+
title = _ref2.title,
|
|
7613
|
+
deleted = _ref2.deleted;
|
|
7614
|
+
if (Boolean(chapterExistsAtTime[time]) || deleted || title === DEFAULT_CHAPTER_TITLE) {
|
|
7615
|
+
return false;
|
|
7616
|
+
}
|
|
7617
|
+
chapterExistsAtTime[time] = true;
|
|
7618
|
+
return true;
|
|
7619
|
+
});
|
|
7620
|
+
};
|
|
7621
|
+
var clipsFromChapters = function clipsFromChapters(chapterList, baseUrl, mediaDuration) {
|
|
7622
|
+
if (!Array.isArray(chapterList) || chapterList.length === 0) {
|
|
7623
|
+
return [];
|
|
7624
|
+
}
|
|
7625
|
+
var clips = sortedFilteredChapters(chapterList).map(function (chapter, index, chapters) {
|
|
7626
|
+
var time = chapter.time,
|
|
7627
|
+
title = chapter.title;
|
|
7628
|
+
var url = new window.URL(baseUrl);
|
|
7629
|
+
var floorTime = Math.floor(time);
|
|
7630
|
+
var nextChapter = chapters[index + 1];
|
|
7631
|
+
var endOffsetTime = (0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__/* .isNotNil */ .n9)(nextChapter) ? nextChapter.time : mediaDuration;
|
|
7632
|
+
|
|
7633
|
+
// wtime does not support decimals
|
|
7634
|
+
url.searchParams.append('wtime', "".concat(floorTime, "s"));
|
|
7635
|
+
|
|
7636
|
+
// https://schema.org/Clip
|
|
7637
|
+
return {
|
|
7638
|
+
'@type': 'Clip',
|
|
7639
|
+
endOffset: Math.floor(endOffsetTime),
|
|
7640
|
+
name: title,
|
|
7641
|
+
startOffset: floorTime,
|
|
7642
|
+
url: url.toString()
|
|
7643
|
+
};
|
|
7644
|
+
});
|
|
7645
|
+
return clips;
|
|
7646
|
+
};
|
|
7647
|
+
// https://developers.google.com/search/docs/advanced/structured-data/video#seek
|
|
7648
|
+
var seekToAction = function seekToAction() {
|
|
7649
|
+
var url = new window.URL(window.location.href);
|
|
7650
|
+
// if wtime is already on the url as query param, it will be overwritten here. This is only for the JSON+LD though.
|
|
7651
|
+
url.searchParams.append('wtime', '{seek_to_second_number}');
|
|
7652
|
+
return {
|
|
7653
|
+
'@type': 'SeekToAction',
|
|
7654
|
+
target: "".concat(url.toString().replace('%7Bseek_to_second_number%7D', '{seek_to_second_number}')),
|
|
7655
|
+
// we need to replace the encoded uri with the direct string
|
|
7656
|
+
'startOffset-input': 'required name=seek_to_second_number'
|
|
7657
|
+
};
|
|
7658
|
+
};
|
|
7659
|
+
|
|
7660
|
+
/***/ }),
|
|
7661
|
+
|
|
7662
|
+
/***/ 9128:
|
|
7663
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7664
|
+
|
|
7665
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7666
|
+
/* harmony export */ a: () => (/* binding */ normalizeChapters)
|
|
7667
|
+
/* harmony export */ });
|
|
7668
|
+
/* harmony import */ var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4586);
|
|
7669
|
+
// chapters has two ways of being defined in embed options.
|
|
7670
|
+
// The current way is as an object inside `embedOptions.plugin`
|
|
7671
|
+
// The old way was as root embed options like `chaptersOn` and `chapterList`.
|
|
7672
|
+
// This function normalizes the old root embed option format to an object
|
|
7673
|
+
// like the current model
|
|
7674
|
+
|
|
7675
|
+
|
|
7676
|
+
var normalizeChapters = function normalizeChapters(embedOptions) {
|
|
7677
|
+
var plugin = embedOptions.plugin,
|
|
7678
|
+
chaptersOn = embedOptions.chaptersOn,
|
|
7679
|
+
chapterList = embedOptions.chapterList;
|
|
7680
|
+
if (plugin !== null && plugin !== void 0 && plugin.chapters) {
|
|
7681
|
+
return plugin.chapters;
|
|
7682
|
+
}
|
|
7683
|
+
var areChaptersOn = chaptersOn === true || chaptersOn === 'true';
|
|
7684
|
+
if ((0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__/* .isNotNil */ .n9)(chapterList) || areChaptersOn) {
|
|
7685
|
+
var hasChapters = (0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__/* .isNotNil */ .n9)(chapterList) && chapterList.length > 0;
|
|
7686
|
+
var list = hasChapters ? chapterList : [];
|
|
7687
|
+
return {
|
|
7688
|
+
on: chaptersOn,
|
|
7689
|
+
chapterList: list
|
|
7690
|
+
};
|
|
7691
|
+
}
|
|
7692
|
+
return undefined;
|
|
7693
|
+
};
|
|
7694
|
+
|
|
7695
|
+
/***/ }),
|
|
7696
|
+
|
|
6874
7697
|
/***/ 49:
|
|
6875
7698
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6876
7699
|
|
|
@@ -12301,7 +13124,7 @@ VideoTrackerSession = (function() {
|
|
|
12301
13124
|
if (this.isValidKey(this._eventKey)) {
|
|
12302
13125
|
return this._eventKey;
|
|
12303
13126
|
}
|
|
12304
|
-
this._eventKey = uniqId(("
|
|
13127
|
+
this._eventKey = uniqId(("44e92c664881d490b3de0523a8a420a8".substring(0, 7)) + "_");
|
|
12305
13128
|
this.publicApi.trigger('eventkeychange', this._eventKey);
|
|
12306
13129
|
return this._eventKey;
|
|
12307
13130
|
};
|
|
@@ -14414,13 +15237,15 @@ module.exports = merge;
|
|
|
14414
15237
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14415
15238
|
|
|
14416
15239
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15240
|
+
/* harmony export */ FK: () => (/* binding */ k),
|
|
14417
15241
|
/* harmony export */ XX: () => (/* binding */ B),
|
|
14418
15242
|
/* harmony export */ fF: () => (/* binding */ l),
|
|
14419
|
-
/* harmony export */ h: () => (/* binding */
|
|
15243
|
+
/* harmony export */ h: () => (/* binding */ _),
|
|
15244
|
+
/* harmony export */ q6: () => (/* binding */ G),
|
|
14420
15245
|
/* harmony export */ uA: () => (/* binding */ b)
|
|
14421
15246
|
/* harmony export */ });
|
|
14422
|
-
/* unused harmony exports
|
|
14423
|
-
var n,l,u,t,i,o,r,f,e,c={},s=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function v(n,l){for(var u in l)n[u]=l[u];return n}function p(n){var l=n.parentNode;l&&l.removeChild(n)}function y(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d(l,f,i,o,null)}function d(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function _(){return{current:null}}function g(n){return n.children}function b(n,l){this.props=n,this.context=l}function m(n,l){if(null==l)return n.__?m(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?m(n):null}function w(n,u,t){var i,o=n.__v,r=o.__e,f=n.__P;if(f)return(i=v({},o)).__v=o.__v+1,l.vnode&&l.vnode(i),M(f,i,o,n.__n,void 0!==f.ownerSVGElement,32&o.__u?[r]:null,u,null==r?m(o):r,!!(32&o.__u),t),i.__v=o.__v,i.__.__k[i.__i]=i,i.__d=void 0,i.__e!=r&&k(i),i}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function x(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!C.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(C)}function C(){var n,u,t,o=[],r=[];for(i.sort(f);n=i.shift();)n.__d&&(t=i.length,u=w(n,o,r)||u,0===t||i.length>t?(j(o,u,r),r.length=o.length=0,u=void 0,i.sort(f)):u&&l.__c&&l.__c(u,s));u&&j(o,u,r),C.__r=0}function P(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s,b=l.length;for(u.__d=e,S(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c:g[y.__i]||c,y.__i=v,M(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&N(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?e=$(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_}function S(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d(null,i,null,null,null):h(i)?d(g,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=I(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m(o)),O(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m(o)),O(o,o))}function $(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=$(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(h(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function I(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a.test(l)?u:u+"px"}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?L:D,o)):n.removeEventListener(l,o?L:D,o);else{if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u))}}function D(n){if(this.l){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l.event?l.event(n):n)}}function L(n){if(this.l)return this.l[n.type+!0](l.event?l.event(n):n)}function M(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,w,k,x,C,S,$,H,I,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof A)try{if(k=u.props,x=(a=A.contextType)&&i[a.__c],C=a?x?x.props.value:a.__:i,t.__c?w=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(k,C):(u.__c=p=new b(k,C),p.constructor=A,p.render=q),x&&x.sub(p),p.props=k,p.state||(p.state={}),p.context=C,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v({},p.__s)),v(p.__s,A.getDerivedStateFromProps(k,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==A.getDerivedStateFromProps&&k!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,C),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,C)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=k,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u)}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,C),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m)})}if(p.context=C,p.props=k,p.__P=n,p.__e=!1,$=l.__r,H=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[]}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=v(v({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),P(n,h(T=null!=a&&a.type===g&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),w&&(p.__E=p.__=null)}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=l.diffed)&&a(u)}function j(n,u,t){for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function z(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,w=t.props,k=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(k);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,k.is&&k),r=null,e=!1}if(null===x)w===k||e&&l.data===k||(l.data=k);else{if(r=r&&n.call(l.childNodes),w=t.props||c,!e&&null!=r)for(w={},a=0;a<l.attributes.length;a++)w[(_=l.attributes[a]).name]=_.value;for(a in w)_=w[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in k||A(l,a,null,_,o));for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||w[a]===_||A(l,a,_,w[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),P(l,h(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==w[a])&&A(l,a,g,w[a],!1),a="checked",void 0!==b&&b!==l[a]&&A(l,a,b,w[a],!1))}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,t)}}function O(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null,n.__c=void 0}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&O(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p(n.__e),n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],M(t,u=(!o&&i||t).__k=y(g,null,[u]),r||c,c,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),u.__d=void 0,j(f,u,e)}function E(n,l){B(n,l,E)}function F(l,u,t){var i,o,r,f,e=v({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),d(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+e++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,x(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof n&&(n=n(v({},u),this.props)),n&&v(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),x(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),x(this))},b.prototype.render=g,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},C.__r=0,e=0;
|
|
15247
|
+
/* unused harmony exports cloneElement, createElement, createRef, hydrate, isValidElement, toChildArray */
|
|
15248
|
+
var n,l,u,t,i,o,r,f,e,c,s,a,h={},p=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){var l=n.parentNode;l&&l.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function k(n){return n.children}function b(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?x(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!P.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(P)}function P(){var n,u,t,o,r,e,c,s;for(i.sort(f);n=i.shift();)n.__d&&(u=i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&C(o)),i.length>u&&i.sort(f));P.__r=0}function S(n,l,u,t,i,o,r,f,e,c,s){var a,v,y,d,w,_=t&&t.__k||p,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&"boolean"!=typeof y&&"function"!=typeof y&&(v=-1===y.__i?h:_[y.__i]||h,y.__i=a,O(n,y,v,i,o,r,f,e,c,s),d=y.__e,y.ref&&v.ref!=y.ref&&(v.ref&&N(v.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||v.__k===y.__k?e=I(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y(i)?g(k,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=L(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a=f-r:f==r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r&&a++,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o))}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=x(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||v.test(l)?u:u+"px"}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=e,n.addEventListener(l,o?s:c,o)):n.removeEventListener(l,o?s:c,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=e++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,p,v,w,_,g,m,x,C,M,P,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,M):(u.__c=h=new b(m,M),h.constructor=T,h.render=q),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,T.getDerivedStateFromProps(m,h.__s))),v=h.props,w=h.state,h.__v=u,p)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==T.getDerivedStateFromProps&&m!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,M)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,M),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,w,_)})}if(h.context=M,h.props=m,h.__P=n,h.__e=!1,$=l.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),x&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,w)),S(n,y(L=null!=a&&a.type===k&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r){for(u.__u|=c?160:32;e&&8===e.nodeType&&e.nextSibling;)e=e.nextSibling;r[r.indexOf(e)]=null,u.__e=e}else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function z(l,u,t,i,o,r,f,e,c){var s,a,p,v,d,_,g,m=t.props,k=u.props,b=u.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(s=0;s<r.length;s++)if((d=r[s])&&"setAttribute"in d==!!b&&(b?d.localName===b:3===d.nodeType)){l=d,r[s]=null;break}if(null==l){if(null===b)return document.createTextNode(k);l=document.createElementNS(o,b,k.is&&k),r=null,e=!1}if(null===b)m===k||e&&l.data===k||(l.data=k);else{if(r=r&&n.call(l.childNodes),m=t.props||h,!e&&null!=r)for(m={},s=0;s<l.attributes.length;s++)m[(d=l.attributes[s]).name]=d.value;for(s in m)if(d=m[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if("key"!==s&&!(s in k)){if("value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k)continue;A(l,s,null,d,o)}for(s in k)d=k[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?_=d:"checked"==s?g=d:"key"===s||e&&"function"!=typeof d||m[s]===d||A(l,s,d,m[s],o);if(a)e||p&&(a.__html===p.__html||a.__html===l.innerHTML)||(l.innerHTML=a.__html),u.__k=[];else if(p&&(l.innerHTML=""),S(l,y(v)?v:[v],u,t,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,r,f,r?r[0]:t.__k&&x(t,0),e,c),null!=r)for(s=r.length;s--;)null!=r[s]&&w(r[s]);e||(s="value",void 0!==_&&(_!==l[s]||"progress"===b&&!_||"option"===b&&_!==m[s])&&A(l,s,_,m[s],o),s="checked",void 0!==g&&g!==l[s]&&A(l,s,g,m[s],o))}return l}function N(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function V(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_(k,null,[u]),r||h,h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function D(n,l){B(n,l,D)}function E(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=p.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},b.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,e=0,c=F(!1),s=F(!0),a=0;
|
|
14424
15249
|
//# sourceMappingURL=preact.module.js.map
|
|
14425
15250
|
|
|
14426
15251
|
|
|
@@ -14430,14 +15255,15 @@ var n,l,u,t,i,o,r,f,e,c={},s=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine
|
|
|
14430
15255
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14431
15256
|
|
|
14432
15257
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14433
|
-
/* harmony export */ J0: () => (/* binding */
|
|
14434
|
-
/* harmony export */
|
|
14435
|
-
/* harmony export */
|
|
14436
|
-
/* harmony export */
|
|
15258
|
+
/* harmony export */ J0: () => (/* binding */ h),
|
|
15259
|
+
/* harmony export */ NT: () => (/* binding */ x),
|
|
15260
|
+
/* harmony export */ WO: () => (/* binding */ p),
|
|
15261
|
+
/* harmony export */ li: () => (/* binding */ A),
|
|
15262
|
+
/* harmony export */ vJ: () => (/* binding */ y)
|
|
14437
15263
|
/* harmony export */ });
|
|
14438
|
-
/* unused harmony exports useCallback,
|
|
15264
|
+
/* unused harmony exports useCallback, useDebugValue, useErrorBoundary, useId, useImperativeHandle, useLayoutEffect, useMemo */
|
|
14439
15265
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
14440
|
-
var t,r,u,i,o=0,f=[],c=
|
|
15266
|
+
var t,r,u,i,o=0,f=[],c=preact__WEBPACK_IMPORTED_MODULE_0__/* .options */ .fF,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,s=c.__;function d(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return o=1,p(D,n)}function p(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function y(n,u){var i=d(t++,3);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__H.__h.push(i))}function _(n,u){var i=d(t++,4);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__h.push(i))}function A(n){return o=5,T(function(){return{current:n}},[])}function F(n,t,r){o=6,_(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function T(n,r){var u=d(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){c.useDebugValue&&c.useDebugValue(t?t(n):n)}function b(n){var u=d(t++,10),i=h();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function j(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],c.__e(t,n.__v)}}c.__b=function(n){r=null,e&&e(n)},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t)},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),u=r=null},c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],c.__e(r,n.__v)}}),l&&l(n,t)},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&c.__e(t,r.__v))};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return"function"==typeof t?t(n):t}
|
|
14441
15267
|
//# sourceMappingURL=hooks.module.js.map
|
|
14442
15268
|
|
|
14443
15269
|
|
|
@@ -14516,7 +15342,7 @@ var LiveMediaTracker = /*#__PURE__*/function () {
|
|
|
14516
15342
|
var first = (0,_util_getOrSetIsFirst_js__WEBPACK_IMPORTED_MODULE_3__/* .getOrSetIsFirst */ .u)(_this.hashedId, _ds_index_js__WEBPACK_IMPORTED_MODULE_2__/* .PlaySession */ .p.Scope.LIVE_EVENT, 'load');
|
|
14517
15343
|
_classPrivateFieldSet(_playSession, _this, _ds_index_js__WEBPACK_IMPORTED_MODULE_2__/* .PlaySession */ .p.load(_classPrivateFieldGet(_clockStart, _this), {
|
|
14518
15344
|
visitor_key: _classPrivateFieldGet(_api, _this).visitorKey(),
|
|
14519
|
-
session_key: (0,utilities_uniqId_js__WEBPACK_IMPORTED_MODULE_5__/* .uniqId */ .b)("".concat("
|
|
15345
|
+
session_key: (0,utilities_uniqId_js__WEBPACK_IMPORTED_MODULE_5__/* .uniqId */ .b)("".concat("44e92c664881d490b3de0523a8a420a8".substring(0, 7), "_")),
|
|
14520
15346
|
embed_url: _classPrivateFieldGet(_api, _this)._attrs.pageUrl,
|
|
14521
15347
|
referrer_url: _classPrivateFieldGet(_api, _this)._attrs.referrerUrl,
|
|
14522
15348
|
account_id: mediaData.accountId,
|
|
@@ -18732,7 +19558,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
18732
19558
|
}, {
|
|
18733
19559
|
key: "generate",
|
|
18734
19560
|
value: function generate() {
|
|
18735
|
-
return (0,utilities_uniqId_js__WEBPACK_IMPORTED_MODULE_4__/* .uniqId */ .b)("".concat("
|
|
19561
|
+
return (0,utilities_uniqId_js__WEBPACK_IMPORTED_MODULE_4__/* .uniqId */ .b)("".concat("44e92c664881d490b3de0523a8a420a8".substring(0, 7), "_"));
|
|
18736
19562
|
}
|
|
18737
19563
|
}]);
|
|
18738
19564
|
}();
|
|
@@ -24722,7 +25548,7 @@ if (!wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__/* .Wistia */ .s.VulcanV2Pl
|
|
|
24722
25548
|
});
|
|
24723
25549
|
|
|
24724
25550
|
// Use the tagged version if it's available, otherwise use the fallback player version
|
|
24725
|
-
var playerVersion = true && "0.0.
|
|
25551
|
+
var playerVersion = true && "0.0.21".length > 0 ? "0.0.21" : _utilities_player_version_js__WEBPACK_IMPORTED_MODULE_44__/* .PLAYER_VERSION */ .H;
|
|
24726
25552
|
var data = {
|
|
24727
25553
|
player_version: playerVersion,
|
|
24728
25554
|
media_key: this._mediaData.mediaKey,
|
|
@@ -25914,6 +26740,7 @@ var PlaybarControlBase = /*#__PURE__*/function (_Control) {
|
|
|
25914
26740
|
/* harmony import */ var _shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9668);
|
|
25915
26741
|
/* harmony import */ var _shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8480);
|
|
25916
26742
|
/* harmony import */ var _shared_translations_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4730);
|
|
26743
|
+
/* harmony import */ var _shared_RoundedSmallPlayButton_tsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4795);
|
|
25917
26744
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25918
26745
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
25919
26746
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -25937,6 +26764,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
25937
26764
|
|
|
25938
26765
|
|
|
25939
26766
|
|
|
26767
|
+
|
|
25940
26768
|
var _SmallPlayButtonControl_brand = /*#__PURE__*/new WeakSet();
|
|
25941
26769
|
var SmallPlayButtonControl = /*#__PURE__*/function (_Control) {
|
|
25942
26770
|
function SmallPlayButtonControl(_video) {
|
|
@@ -25949,15 +26777,26 @@ var SmallPlayButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
25949
26777
|
return;
|
|
25950
26778
|
}
|
|
25951
26779
|
_this.setButtonLabel(_assertClassBrand(_SmallPlayButtonControl_brand, _this, _getTranslation).call(_this));
|
|
25952
|
-
|
|
25953
|
-
|
|
25954
|
-
|
|
25955
|
-
|
|
25956
|
-
|
|
25957
|
-
|
|
25958
|
-
|
|
25959
|
-
|
|
25960
|
-
|
|
26780
|
+
var marginLeft = !(_this.video.state() === 'playing') ? "".concat(_this.props.scale * 1.5, "px") : 0;
|
|
26781
|
+
if (_this.video.hasNewRoundedIcons()) {
|
|
26782
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(_shared_RoundedSmallPlayButton_tsx__WEBPACK_IMPORTED_MODULE_7__/* .RoundedSmallPlayButton */ .r, {
|
|
26783
|
+
isPlaying: _this.video.state() === 'playing',
|
|
26784
|
+
svgStyle: {
|
|
26785
|
+
verticalAlign: 'top'
|
|
26786
|
+
},
|
|
26787
|
+
marginLeft: marginLeft
|
|
26788
|
+
}), _this.buttonRoot);
|
|
26789
|
+
} else {
|
|
26790
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
|
|
26791
|
+
style: _this.wrapperStyle()
|
|
26792
|
+
}, (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(_shared_SmallPlayButton_jsx__WEBPACK_IMPORTED_MODULE_3__/* .SmallPlayButton */ .q, {
|
|
26793
|
+
isPlaying: _this.video.state() === 'playing',
|
|
26794
|
+
noPadding: true,
|
|
26795
|
+
svgStyle: {
|
|
26796
|
+
verticalAlign: 'top'
|
|
26797
|
+
}
|
|
26798
|
+
})), _this.buttonRoot);
|
|
26799
|
+
}
|
|
25961
26800
|
_this.reactMounts = [_this.rootElem];
|
|
25962
26801
|
});
|
|
25963
26802
|
_defineProperty(_this, "onClickButton", function () {
|
|
@@ -26093,6 +26932,7 @@ var shouldShowAsBeforePlay = function shouldShowAsBeforePlay(video) {
|
|
|
26093
26932
|
/* harmony import */ var _shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9668);
|
|
26094
26933
|
/* harmony import */ var _shared_translations_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4730);
|
|
26095
26934
|
/* harmony import */ var _utilities_isMouseDown_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3745);
|
|
26935
|
+
/* harmony import */ var _RoundedAudioDescriptionButton_tsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7038);
|
|
26096
26936
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
26097
26937
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26098
26938
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
@@ -26117,6 +26957,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
26117
26957
|
|
|
26118
26958
|
|
|
26119
26959
|
|
|
26960
|
+
|
|
26120
26961
|
(0,_shared_translations_js__WEBPACK_IMPORTED_MODULE_8__/* .defineTranslations */ .Oj)('en-US', {
|
|
26121
26962
|
AUDIO_DESCRIPTION_HIDE_MENU: 'Hide audio description menu',
|
|
26122
26963
|
AUDIO_DESCRIPTION_SHOW_MENU: 'Show audio description menu'
|
|
@@ -26200,7 +27041,11 @@ var AudioDescriptionControl = /*#__PURE__*/function (_Control) {
|
|
|
26200
27041
|
key: "renderButton",
|
|
26201
27042
|
value: function renderButton() {
|
|
26202
27043
|
this.updateButtonLabel();
|
|
26203
|
-
(
|
|
27044
|
+
if (this.video.hasNewRoundedIcons()) {
|
|
27045
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(_RoundedAudioDescriptionButton_tsx__WEBPACK_IMPORTED_MODULE_10__/* .RoundedAudioDescriptionButton */ ._, null), this.buttonRoot);
|
|
27046
|
+
} else {
|
|
27047
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(_AudioDescriptionButton_jsx__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, null), this.buttonRoot);
|
|
27048
|
+
}
|
|
26204
27049
|
this.reactMounts.button = [this.buttonRoot];
|
|
26205
27050
|
}
|
|
26206
27051
|
}, {
|
|
@@ -26450,8 +27295,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
26450
27295
|
|
|
26451
27296
|
|
|
26452
27297
|
|
|
26453
|
-
var BASE_WIDTH = 125;
|
|
26454
|
-
var BASE_HEIGHT = 80;
|
|
26455
27298
|
var BigPlayButtonControl = /*#__PURE__*/function (_Control) {
|
|
26456
27299
|
function BigPlayButtonControl(video) {
|
|
26457
27300
|
var _this;
|
|
@@ -26462,10 +27305,8 @@ var BigPlayButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
26462
27305
|
return;
|
|
26463
27306
|
}
|
|
26464
27307
|
var buttonTabIndex = !_this.video.publicApi.popover || _this.video.publicApi.popover.isVisible() ? 0 : -1;
|
|
26465
|
-
var BigPlayButtonWithOnClick = (0,_higher_order_components_withOnClick_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)(_shared_ui_components_BigPlayButton_tsx__WEBPACK_IMPORTED_MODULE_3__/* .BigPlayButton */ .
|
|
27308
|
+
var BigPlayButtonWithOnClick = (0,_higher_order_components_withOnClick_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)(_shared_ui_components_BigPlayButton_tsx__WEBPACK_IMPORTED_MODULE_3__/* .BigPlayButton */ .Fn);
|
|
26466
27309
|
(0,preact__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(BigPlayButtonWithOnClick, {
|
|
26467
|
-
baseHeight: BASE_HEIGHT,
|
|
26468
|
-
baseWidth: BASE_WIDTH,
|
|
26469
27310
|
borderRadius: _this.props.bigPlayButtonBorderRadius,
|
|
26470
27311
|
buttonTabIndex: buttonTabIndex,
|
|
26471
27312
|
color: _this.video.playerColor(),
|
|
@@ -26606,9 +27447,10 @@ BigPlayButtonControl.type = 'above-control-bar';
|
|
|
26606
27447
|
/* harmony import */ var utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7157);
|
|
26607
27448
|
/* harmony import */ var _shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7967);
|
|
26608
27449
|
/* harmony import */ var _CaptionsButton_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8822);
|
|
26609
|
-
/* harmony import */ var
|
|
26610
|
-
/* harmony import */ var
|
|
26611
|
-
/* harmony import */ var
|
|
27450
|
+
/* harmony import */ var _RoundedCaptionsButton_tsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6955);
|
|
27451
|
+
/* harmony import */ var _shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9668);
|
|
27452
|
+
/* harmony import */ var _shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8480);
|
|
27453
|
+
/* harmony import */ var _shared_translations_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4730);
|
|
26612
27454
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26613
27455
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
26614
27456
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -26633,6 +27475,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
26633
27475
|
|
|
26634
27476
|
|
|
26635
27477
|
|
|
27478
|
+
|
|
26636
27479
|
// import { CaptionsV3Menu } from './CaptionsV3Menu.jsx';
|
|
26637
27480
|
|
|
26638
27481
|
|
|
@@ -26645,7 +27488,7 @@ var TRANSLATIONS = {
|
|
|
26645
27488
|
CAPTIONS_TURN_OFF: 'Turn off captions',
|
|
26646
27489
|
CAPTIONS_TURN_ON: 'Turn on captions'
|
|
26647
27490
|
};
|
|
26648
|
-
(0,
|
|
27491
|
+
(0,_shared_translations_js__WEBPACK_IMPORTED_MODULE_8__/* .defineTranslations */ .Oj)('en-US', TRANSLATIONS);
|
|
26649
27492
|
var DISABLED = 'disabled';
|
|
26650
27493
|
var ON = 'on';
|
|
26651
27494
|
var OFF = 'off';
|
|
@@ -26767,7 +27610,7 @@ var CaptionsV3ButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
26767
27610
|
return _createClass(CaptionsV3ButtonControl, [{
|
|
26768
27611
|
key: "destroy",
|
|
26769
27612
|
value: function destroy() {
|
|
26770
|
-
(0,
|
|
27613
|
+
(0,_shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_6__/* .destroyControl */ .cm)(this);
|
|
26771
27614
|
}
|
|
26772
27615
|
}, {
|
|
26773
27616
|
key: "mountButton",
|
|
@@ -26788,16 +27631,23 @@ var CaptionsV3ButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
26788
27631
|
}, {
|
|
26789
27632
|
key: "renderButton",
|
|
26790
27633
|
value: function renderButton() {
|
|
26791
|
-
var _this$captionsV3Contr2;
|
|
26792
27634
|
if (this.video._inNativeMode() || !this.buttonRoot) {
|
|
26793
27635
|
return;
|
|
26794
27636
|
}
|
|
26795
27637
|
this.updateButtonLabel();
|
|
26796
|
-
(
|
|
26797
|
-
|
|
26798
|
-
|
|
26799
|
-
|
|
26800
|
-
|
|
27638
|
+
if (this.video.hasNewRoundedIcons()) {
|
|
27639
|
+
var _this$captionsV3Contr2;
|
|
27640
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(_RoundedCaptionsButton_tsx__WEBPACK_IMPORTED_MODULE_5__/* .RoundedCaptionsButton */ .b, {
|
|
27641
|
+
color: this.video.playerColor(),
|
|
27642
|
+
filled: Boolean((_this$captionsV3Contr2 = this.captionsV3Control) === null || _this$captionsV3Contr2 === void 0 ? void 0 : _this$captionsV3Contr2.selectedTrack)
|
|
27643
|
+
}), this.buttonRoot);
|
|
27644
|
+
} else {
|
|
27645
|
+
var _this$captionsV3Contr3;
|
|
27646
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(_CaptionsButton_jsx__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
27647
|
+
color: this.video.playerColor(),
|
|
27648
|
+
filled: Boolean((_this$captionsV3Contr3 = this.captionsV3Control) === null || _this$captionsV3Contr3 === void 0 ? void 0 : _this$captionsV3Contr3.selectedTrack)
|
|
27649
|
+
}), this.buttonRoot);
|
|
27650
|
+
}
|
|
26801
27651
|
this.reactMounts.button = [this.buttonRoot];
|
|
26802
27652
|
}
|
|
26803
27653
|
|
|
@@ -26817,7 +27667,7 @@ var CaptionsV3ButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
26817
27667
|
value: function updateButtonLabel() {
|
|
26818
27668
|
var translationKeys = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ON, 'CAPTIONS_TURN_OFF'), OFF, 'CAPTIONS_TURN_ON'), MENU_CLOSED, 'CAPTIONS_SHOW_MENU'), MENU_OPEN, 'CAPTIONS_HIDE_MENU'), DISABLED, 'CAPTIONS_DISABLED');
|
|
26819
27669
|
var key = translationKeys[_classPrivateFieldGet(_buttonState, this)];
|
|
26820
|
-
var text = (0,
|
|
27670
|
+
var text = (0,_shared_translations_js__WEBPACK_IMPORTED_MODULE_8__/* .getTranslation */ .sC)(this.props.playerLanguage.code, key);
|
|
26821
27671
|
this.setButtonLabel(text);
|
|
26822
27672
|
}
|
|
26823
27673
|
}]);
|
|
@@ -26828,7 +27678,7 @@ function _loadCaptionsV() {
|
|
|
26828
27678
|
return _classPrivateFieldGet(_captionsV3Promise, this);
|
|
26829
27679
|
}
|
|
26830
27680
|
_classPrivateFieldSet(_captionsV3Promise, this, (0,utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_2__/* .dynamicImport */ .$)('assets/external/captions-v3.js').then(function (moduleClass) {
|
|
26831
|
-
(0,
|
|
27681
|
+
(0,_shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_7__/* .defineControl */ .X)(moduleClass.CaptionsV3Control);
|
|
26832
27682
|
return _this2.video.whenControlMounted('captionsV3');
|
|
26833
27683
|
}).then(function () {
|
|
26834
27684
|
_this2.captionsV3Control = _this2.video.controls.captionsV3;
|
|
@@ -26841,7 +27691,7 @@ CaptionsV3ButtonControl.sortValue = 50;
|
|
|
26841
27691
|
CaptionsV3ButtonControl.shouldMount = function (video) {
|
|
26842
27692
|
return video.isLiveMedia();
|
|
26843
27693
|
};
|
|
26844
|
-
(0,
|
|
27694
|
+
(0,_shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_7__/* .defineControl */ .X)(CaptionsV3ButtonControl);
|
|
26845
27695
|
|
|
26846
27696
|
/***/ }),
|
|
26847
27697
|
|
|
@@ -27242,9 +28092,10 @@ FocusOutlineControl.sortValue = 100;
|
|
|
27242
28092
|
/* harmony import */ var utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7231);
|
|
27243
28093
|
/* harmony import */ var _shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7967);
|
|
27244
28094
|
/* harmony import */ var _FullscreenButton_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2379);
|
|
27245
|
-
/* harmony import */ var
|
|
27246
|
-
/* harmony import */ var
|
|
27247
|
-
/* harmony import */ var
|
|
28095
|
+
/* harmony import */ var _RoundedFullscreenButton_tsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1220);
|
|
28096
|
+
/* harmony import */ var _shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9668);
|
|
28097
|
+
/* harmony import */ var _shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8480);
|
|
28098
|
+
/* harmony import */ var _shared_translations_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4730);
|
|
27248
28099
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27249
28100
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
27250
28101
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -27266,9 +28117,10 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
27266
28117
|
|
|
27267
28118
|
|
|
27268
28119
|
|
|
28120
|
+
|
|
27269
28121
|
var detect = (0,utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__/* .cachedDetect */ .o1)();
|
|
27270
28122
|
var F_KEY = 70;
|
|
27271
|
-
(0,
|
|
28123
|
+
(0,_shared_translations_js__WEBPACK_IMPORTED_MODULE_8__/* .defineTranslations */ .Oj)('en-US', {
|
|
27272
28124
|
FULLSCREEN_DOUBLE_TAP: 'Double-tap to zoom in or out',
|
|
27273
28125
|
FULLSCREEN_TITLE_WHEN_IN_FULLSCREEN: 'Unfullscreen',
|
|
27274
28126
|
FULLSCREEN_TITLE_WHEN_NOT_IN_FULLSCREEN: 'Fullscreen'
|
|
@@ -27306,7 +28158,7 @@ var FullscreenButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
27306
28158
|
return _createClass(FullscreenButtonControl, [{
|
|
27307
28159
|
key: "destroy",
|
|
27308
28160
|
value: function destroy() {
|
|
27309
|
-
(0,
|
|
28161
|
+
(0,_shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_6__/* .destroyControl */ .cm)(this);
|
|
27310
28162
|
}
|
|
27311
28163
|
}, {
|
|
27312
28164
|
key: "inFullscreen",
|
|
@@ -27351,13 +28203,17 @@ var FullscreenButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
27351
28203
|
}
|
|
27352
28204
|
var label = this.inFullscreen() ? this.translate('TITLE_WHEN_IN_FULLSCREEN') : this.translate('TITLE_WHEN_NOT_IN_FULLSCREEN');
|
|
27353
28205
|
this.setButtonLabel(label);
|
|
27354
|
-
(
|
|
28206
|
+
if (this.video.hasNewRoundedIcons()) {
|
|
28207
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(_RoundedFullscreenButton_tsx__WEBPACK_IMPORTED_MODULE_5__/* .RoundedFullscreenButton */ .D, null), this.buttonElem);
|
|
28208
|
+
} else {
|
|
28209
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(_FullscreenButton_jsx__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, null), this.buttonElem);
|
|
28210
|
+
}
|
|
27355
28211
|
this.reactMounts = [this.buttonElem];
|
|
27356
28212
|
}
|
|
27357
28213
|
}, {
|
|
27358
28214
|
key: "translate",
|
|
27359
28215
|
value: function translate(key) {
|
|
27360
|
-
return (0,
|
|
28216
|
+
return (0,_shared_translations_js__WEBPACK_IMPORTED_MODULE_8__/* .getTranslation */ .sC)(this.props.playerLanguage.code, "FULLSCREEN_".concat(key));
|
|
27361
28217
|
}
|
|
27362
28218
|
}, {
|
|
27363
28219
|
key: "toggleFullscreen",
|
|
@@ -27376,7 +28232,7 @@ var FullscreenButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
27376
28232
|
FullscreenButtonControl.handle = 'fullscreenControl';
|
|
27377
28233
|
FullscreenButtonControl.type = 'control-bar-right';
|
|
27378
28234
|
FullscreenButtonControl.sortValue = 1000;
|
|
27379
|
-
(0,
|
|
28235
|
+
(0,_shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_7__/* .defineControl */ .X)(FullscreenButtonControl);
|
|
27380
28236
|
var supportsRealFullscreen = function supportsRealFullscreen() {
|
|
27381
28237
|
return detect.fullscreenEnabled;
|
|
27382
28238
|
};
|
|
@@ -27520,6 +28376,7 @@ LiveStreamStatusControl.shouldMount = function (video) {
|
|
|
27520
28376
|
/* harmony import */ var _shared_SmallPlayButton_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1168);
|
|
27521
28377
|
/* harmony import */ var _shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9668);
|
|
27522
28378
|
/* harmony import */ var _shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8480);
|
|
28379
|
+
/* harmony import */ var _shared_RoundedSmallPlayButton_tsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4795);
|
|
27523
28380
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27524
28381
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
27525
28382
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -27541,6 +28398,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
27541
28398
|
|
|
27542
28399
|
|
|
27543
28400
|
|
|
28401
|
+
|
|
27544
28402
|
var detect = (0,utilities_detect_js__WEBPACK_IMPORTED_MODULE_3__/* .cachedDetect */ .o1)();
|
|
27545
28403
|
var PlayPauseNotifierControl = /*#__PURE__*/function (_Control) {
|
|
27546
28404
|
function PlayPauseNotifierControl(video) {
|
|
@@ -27621,7 +28479,9 @@ var PlayPauseNotifierControl = /*#__PURE__*/function (_Control) {
|
|
|
27621
28479
|
(0,preact__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
|
|
27622
28480
|
class: "w-play-pause-notifier",
|
|
27623
28481
|
style: this.rootStyle()
|
|
27624
|
-
}, (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(
|
|
28482
|
+
}, this.video.hasNewRoundedIcons() ? (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(_shared_RoundedSmallPlayButton_tsx__WEBPACK_IMPORTED_MODULE_8__/* .RoundedSmallPlayButton */ .r, {
|
|
28483
|
+
isPlaying: !this.isPlaying
|
|
28484
|
+
}) : (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)("div", {
|
|
27625
28485
|
style: this.graphicStyle()
|
|
27626
28486
|
}, (0,preact__WEBPACK_IMPORTED_MODULE_1__.h)(_shared_SmallPlayButton_jsx__WEBPACK_IMPORTED_MODULE_5__/* .SmallPlayButton */ .q, {
|
|
27627
28487
|
isPlaying: !this.isPlaying,
|
|
@@ -27896,6 +28756,7 @@ PlaybarlessProgressIndicatorControl.shouldMount = function (publicApi) {
|
|
|
27896
28756
|
/* harmony import */ var _shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9668);
|
|
27897
28757
|
/* harmony import */ var _shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8480);
|
|
27898
28758
|
/* harmony import */ var _shared_translations_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4730);
|
|
28759
|
+
/* harmony import */ var _RoundedSettingsButton_tsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5403);
|
|
27899
28760
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27900
28761
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27901
28762
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -27924,6 +28785,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
27924
28785
|
|
|
27925
28786
|
|
|
27926
28787
|
|
|
28788
|
+
|
|
27927
28789
|
(0,_shared_translations_js__WEBPACK_IMPORTED_MODULE_8__/* .defineTranslations */ .Oj)('en-US', {
|
|
27928
28790
|
SETTINGS_PLAYBACK_RATE_TITLE: 'Speed',
|
|
27929
28791
|
SETTINGS_QUALITY_AUTO: 'Auto',
|
|
@@ -28037,9 +28899,15 @@ var SettingsControl = /*#__PURE__*/function (_Control) {
|
|
|
28037
28899
|
value: function renderButton() {
|
|
28038
28900
|
this.setButtonLabel(this.translate('TITLE'));
|
|
28039
28901
|
this.updateButtonLabel();
|
|
28040
|
-
(
|
|
28041
|
-
|
|
28042
|
-
|
|
28902
|
+
if (this.video.hasNewRoundedIcons()) {
|
|
28903
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_2__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_2__.h)(_RoundedSettingsButton_tsx__WEBPACK_IMPORTED_MODULE_9__/* .RoundedSettingsButton */ .t, {
|
|
28904
|
+
onMouseEnter: this.onMouseEnterButton
|
|
28905
|
+
}), this.buttonRoot);
|
|
28906
|
+
} else {
|
|
28907
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_2__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_2__.h)(_SettingsButton_jsx__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
28908
|
+
onMouseEnter: this.onMouseEnterButton
|
|
28909
|
+
}), this.buttonRoot);
|
|
28910
|
+
}
|
|
28043
28911
|
this.reactMounts.button = [this.buttonRoot];
|
|
28044
28912
|
}
|
|
28045
28913
|
}, {
|
|
@@ -28412,7 +29280,8 @@ ThumbnailControl.sortValue = 1000;
|
|
|
28412
29280
|
/* harmony import */ var _shared_control_definitions_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8480);
|
|
28413
29281
|
/* harmony import */ var _shared_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9668);
|
|
28414
29282
|
/* harmony import */ var _shared_ui_components_VolumeButton_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8064);
|
|
28415
|
-
/* harmony import */ var
|
|
29283
|
+
/* harmony import */ var _shared_ui_components_RoundedVolumeButton_tsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(707);
|
|
29284
|
+
/* harmony import */ var _shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7967);
|
|
28416
29285
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
28417
29286
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
28418
29287
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -28436,6 +29305,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
28436
29305
|
|
|
28437
29306
|
|
|
28438
29307
|
|
|
29308
|
+
|
|
28439
29309
|
var detect = (0,utilities_detect_js__WEBPACK_IMPORTED_MODULE_3__/* .cachedDetect */ .o1)();
|
|
28440
29310
|
var UP_KEY = 38;
|
|
28441
29311
|
var DOWN_KEY = 40;
|
|
@@ -28596,9 +29466,15 @@ var VolumeButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
28596
29466
|
return;
|
|
28597
29467
|
}
|
|
28598
29468
|
this.setButtonLabel(this.video.isMuted() ? this.translate('TITLE_WHEN_MUTED') : this.translate('TITLE_WHEN_UNMUTED'));
|
|
28599
|
-
(
|
|
28600
|
-
|
|
28601
|
-
|
|
29469
|
+
if (this.video.hasNewRoundedIcons()) {
|
|
29470
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_2__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_2__.h)(_shared_ui_components_RoundedVolumeButton_tsx__WEBPACK_IMPORTED_MODULE_9__/* .RoundedVolumeButton */ .y, {
|
|
29471
|
+
volume: this.video.isMuted() ? 0 : this.video.volume()
|
|
29472
|
+
}), this.buttonRoot);
|
|
29473
|
+
} else {
|
|
29474
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_2__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_2__.h)(_shared_ui_components_VolumeButton_jsx__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A, {
|
|
29475
|
+
volume: this.video.isMuted() ? 0 : this.video.volume()
|
|
29476
|
+
}), this.buttonRoot);
|
|
29477
|
+
}
|
|
28602
29478
|
this.reactMounts.button = [this.buttonRoot];
|
|
28603
29479
|
}
|
|
28604
29480
|
}, {
|
|
@@ -28636,7 +29512,7 @@ var VolumeButtonControl = /*#__PURE__*/function (_Control) {
|
|
|
28636
29512
|
}
|
|
28637
29513
|
}
|
|
28638
29514
|
}]);
|
|
28639
|
-
}(
|
|
29515
|
+
}(_shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .A);
|
|
28640
29516
|
VolumeButtonControl.shouldMount = function (video) {
|
|
28641
29517
|
var volumeOpt = video._attrs.volumeControl;
|
|
28642
29518
|
return (volumeOpt === true || volumeOpt == null) && !detect.iphone && !detect.ipad && !detect.android;
|
|
@@ -33563,12 +34439,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33563
34439
|
/* harmony export */ removeInjectedJsonLd: () => (/* binding */ removeInjectedJsonLd)
|
|
33564
34440
|
/* harmony export */ });
|
|
33565
34441
|
/* harmony import */ var utilities_iso8601Helper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4162);
|
|
33566
|
-
/* harmony import */ var
|
|
33567
|
-
/* harmony import */ var
|
|
33568
|
-
/* harmony import */ var
|
|
33569
|
-
/* harmony import */ var
|
|
33570
|
-
/* harmony import */ var
|
|
33571
|
-
/* harmony import */ var
|
|
34442
|
+
/* harmony import */ var utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3441);
|
|
34443
|
+
/* harmony import */ var utilities_obj_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(731);
|
|
34444
|
+
/* harmony import */ var utilities_hosts_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5857);
|
|
34445
|
+
/* harmony import */ var utilities_assets_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7209);
|
|
34446
|
+
/* harmony import */ var utilities_url_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2671);
|
|
34447
|
+
/* harmony import */ var _normalizeChapters_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9128);
|
|
33572
34448
|
|
|
33573
34449
|
|
|
33574
34450
|
|
|
@@ -33582,15 +34458,15 @@ var generateAudioJsonLd = function generateAudioJsonLd(mediaData) {
|
|
|
33582
34458
|
videoHeight = options.videoHeight;
|
|
33583
34459
|
var embedOptions = options.embedOptions;
|
|
33584
34460
|
if (!embedOptions) {
|
|
33585
|
-
embedOptions = (0,
|
|
34461
|
+
embedOptions = (0,utilities_obj_js__WEBPACK_IMPORTED_MODULE_1__.cast)((0,utilities_obj_js__WEBPACK_IMPORTED_MODULE_1__.clone)(mediaData.embedOptions));
|
|
33586
34462
|
}
|
|
33587
34463
|
var obj = {
|
|
33588
34464
|
'@context': 'http://schema.org/',
|
|
33589
|
-
'@id': "https://".concat((0,
|
|
34465
|
+
'@id': "https://".concat((0,utilities_hosts_js__WEBPACK_IMPORTED_MODULE_2__.cdnFastWistiaNetHost)(), "/embed/iframe/").concat(mediaData.hashedId),
|
|
33590
34466
|
'@type': 'AudioObject',
|
|
33591
34467
|
duration: "PT".concat((0,utilities_iso8601Helper_js__WEBPACK_IMPORTED_MODULE_0__/* .secondsToIso8601Duration */ .J)(mediaData.duration)),
|
|
33592
34468
|
name: mediaData.name,
|
|
33593
|
-
thumbnailUrl: (0,
|
|
34469
|
+
thumbnailUrl: (0,utilities_assets_js__WEBPACK_IMPORTED_MODULE_3__.stillUrl)(mediaData.assets, {
|
|
33594
34470
|
ext: 'jpg',
|
|
33595
34471
|
protocol: 'https:',
|
|
33596
34472
|
videoWidth: videoWidth,
|
|
@@ -33611,11 +34487,11 @@ var generateAudioJsonLd = function generateAudioJsonLd(mediaData) {
|
|
|
33611
34487
|
};
|
|
33612
34488
|
var generateEmbedUrl = function generateEmbedUrl(mediaData, embedOptions) {
|
|
33613
34489
|
var _mediaData$embedOptio;
|
|
33614
|
-
var baseUrl = "https://".concat((0,
|
|
34490
|
+
var baseUrl = "https://".concat((0,utilities_hosts_js__WEBPACK_IMPORTED_MODULE_2__.cdnFastWistiaNetHost)(), "/embed/iframe/").concat(mediaData.hashedId);
|
|
33615
34491
|
// if we're doing SeekToAction for Google KeyMoments AND video thumbnail
|
|
33616
34492
|
// is enabled, we need to attach a query param so that it is disabled when
|
|
33617
34493
|
// Google tries to crawl it
|
|
33618
|
-
if ((0,
|
|
34494
|
+
if ((0,utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__/* .shouldAddKeyMoments */ .Vq)(mediaData, embedOptions) && !(0,utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__/* .shouldAddClipsFromChapters */ .Qy)(embedOptions) && (_mediaData$embedOptio = mediaData.embedOptions.plugin) !== null && _mediaData$embedOptio !== void 0 && _mediaData$embedOptio.videoThumbnail) {
|
|
33619
34495
|
return "".concat(baseUrl, "?wseektoaction=true");
|
|
33620
34496
|
}
|
|
33621
34497
|
return baseUrl;
|
|
@@ -33627,17 +34503,17 @@ var generateContentUrl = function generateContentUrl(mediaData) {
|
|
|
33627
34503
|
var assets = mediaData.assets;
|
|
33628
34504
|
if (mediaData.mediaType === 'Audio') {
|
|
33629
34505
|
var _readyPublicMp3s$;
|
|
33630
|
-
return (_readyPublicMp3s$ = (0,
|
|
34506
|
+
return (_readyPublicMp3s$ = (0,utilities_assets_js__WEBPACK_IMPORTED_MODULE_3__.readyPublicMp3s)(assets)[0]) === null || _readyPublicMp3s$ === void 0 ? void 0 : _readyPublicMp3s$.url;
|
|
33631
34507
|
}
|
|
33632
|
-
var availableMp4s = (0,
|
|
34508
|
+
var availableMp4s = (0,utilities_assets_js__WEBPACK_IMPORTED_MODULE_3__.readyPublicMp4s)(assets);
|
|
33633
34509
|
if (availableMp4s.length === 0) {
|
|
33634
34510
|
return;
|
|
33635
34511
|
}
|
|
33636
|
-
var highestQuality = (0,
|
|
34512
|
+
var highestQuality = (0,utilities_assets_js__WEBPACK_IMPORTED_MODULE_3__.findClosestAssetByQuality)(availableMp4s, 1080);
|
|
33637
34513
|
if (!highestQuality) {
|
|
33638
34514
|
return;
|
|
33639
34515
|
}
|
|
33640
|
-
var url = new
|
|
34516
|
+
var url = new utilities_url_js__WEBPACK_IMPORTED_MODULE_4__.Url(highestQuality.url);
|
|
33641
34517
|
url.ext('m3u8');
|
|
33642
34518
|
return url.absolute();
|
|
33643
34519
|
};
|
|
@@ -33647,15 +34523,15 @@ var generateVideoJsonLd = function generateVideoJsonLd(mediaData) {
|
|
|
33647
34523
|
videoHeight = options.videoHeight;
|
|
33648
34524
|
var embedOptions = options.embedOptions;
|
|
33649
34525
|
if (!embedOptions) {
|
|
33650
|
-
embedOptions = (0,
|
|
34526
|
+
embedOptions = (0,utilities_obj_js__WEBPACK_IMPORTED_MODULE_1__.cast)((0,utilities_obj_js__WEBPACK_IMPORTED_MODULE_1__.clone)(mediaData.embedOptions));
|
|
33651
34527
|
}
|
|
33652
34528
|
var obj = {
|
|
33653
34529
|
'@context': 'http://schema.org/',
|
|
33654
|
-
'@id': "https://".concat((0,
|
|
34530
|
+
'@id': "https://".concat((0,utilities_hosts_js__WEBPACK_IMPORTED_MODULE_2__.cdnFastWistiaNetHost)(), "/embed/iframe/").concat(mediaData.hashedId),
|
|
33655
34531
|
'@type': 'VideoObject',
|
|
33656
34532
|
duration: "PT".concat((0,utilities_iso8601Helper_js__WEBPACK_IMPORTED_MODULE_0__/* .secondsToIso8601Duration */ .J)(mediaData.duration)),
|
|
33657
34533
|
name: mediaData.name,
|
|
33658
|
-
thumbnailUrl: (0,
|
|
34534
|
+
thumbnailUrl: (0,utilities_assets_js__WEBPACK_IMPORTED_MODULE_3__.stillUrl)(mediaData.assets, {
|
|
33659
34535
|
ext: 'jpg',
|
|
33660
34536
|
protocol: 'https:',
|
|
33661
34537
|
videoWidth: videoWidth,
|
|
@@ -33677,16 +34553,16 @@ var generateVideoJsonLd = function generateVideoJsonLd(mediaData) {
|
|
|
33677
34553
|
if (mediaData.captions && mediaData.captions[0]) {
|
|
33678
34554
|
obj.transcript = mediaData.captions[0].text;
|
|
33679
34555
|
}
|
|
33680
|
-
if ((0,
|
|
34556
|
+
if ((0,utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__/* .shouldAddKeyMoments */ .Vq)(mediaData, embedOptions)) {
|
|
33681
34557
|
// keyMoments come in two flavors.
|
|
33682
34558
|
// A. If we have chapters, then we will manually define the key moments via the "Clip" schema property
|
|
33683
34559
|
// B. If we don't, we will use the "SeekToAction" property that lets google parse via `wtime`
|
|
33684
|
-
if ((0,
|
|
33685
|
-
var chapters = (0,
|
|
34560
|
+
if ((0,utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__/* .shouldAddClipsFromChapters */ .Qy)(embedOptions)) {
|
|
34561
|
+
var chapters = (0,_normalizeChapters_ts__WEBPACK_IMPORTED_MODULE_6__/* .normalizeChapters */ .a)(embedOptions);
|
|
33686
34562
|
var chapterList = chapters.chapterList;
|
|
33687
|
-
obj.hasPart = (0,
|
|
34563
|
+
obj.hasPart = (0,utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__/* .clipsFromChapters */ .oG)(chapterList, location.href, mediaData.duration);
|
|
33688
34564
|
} else {
|
|
33689
|
-
obj.potentialAction = (0,
|
|
34565
|
+
obj.potentialAction = (0,utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__/* .seekToAction */ .CR)();
|
|
33690
34566
|
}
|
|
33691
34567
|
}
|
|
33692
34568
|
return obj;
|
|
@@ -34588,119 +35464,6 @@ var xhrHasBeenTamperedWith = function xhrHasBeenTamperedWith() {
|
|
|
34588
35464
|
|
|
34589
35465
|
/***/ }),
|
|
34590
35466
|
|
|
34591
|
-
/***/ 7688:
|
|
34592
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
34593
|
-
|
|
34594
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34595
|
-
/* harmony export */ CR: () => (/* binding */ seekToAction),
|
|
34596
|
-
/* harmony export */ Qy: () => (/* binding */ shouldAddClipsFromChapters),
|
|
34597
|
-
/* harmony export */ Vq: () => (/* binding */ shouldAddKeyMoments),
|
|
34598
|
-
/* harmony export */ oG: () => (/* binding */ clipsFromChapters)
|
|
34599
|
-
/* harmony export */ });
|
|
34600
|
-
/* harmony import */ var utilities_url_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2671);
|
|
34601
|
-
/* harmony import */ var _normalizeChapters_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1487);
|
|
34602
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
34603
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
34604
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
34605
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
34606
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
34607
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
34608
|
-
|
|
34609
|
-
|
|
34610
|
-
|
|
34611
|
-
// Google got mad that the default chapter title is (of course) not very
|
|
34612
|
-
// descriptive, and wanted us to make sure it's never used for Key Moments.
|
|
34613
|
-
var DEFAULT_CHAPTER_TITLE = 'Chapter Title';
|
|
34614
|
-
var shouldAddClipsFromChapters = function shouldAddClipsFromChapters(embedOptions) {
|
|
34615
|
-
var chapters = (0,_normalizeChapters_js__WEBPACK_IMPORTED_MODULE_1__/* .normalizeChapters */ .a)(embedOptions);
|
|
34616
|
-
if (!chapters) {
|
|
34617
|
-
return false;
|
|
34618
|
-
}
|
|
34619
|
-
var chapterList = chapters.chapterList;
|
|
34620
|
-
|
|
34621
|
-
// the `on` property must be explicitly false to disable
|
|
34622
|
-
return chapters.on !== false && chapters.on !== 'false' && (chapterList === null || chapterList === void 0 ? void 0 : chapterList.length) > 0;
|
|
34623
|
-
};
|
|
34624
|
-
|
|
34625
|
-
// keyMoments should only be limited by a few factors:
|
|
34626
|
-
// 1. a turnstile is blocking content
|
|
34627
|
-
// 2. it's password protected
|
|
34628
|
-
// 3. the video is really short
|
|
34629
|
-
// 4. only available for VOD, not Live
|
|
34630
|
-
// Then, there are two different _types_ of key moments. If we have chapters
|
|
34631
|
-
// we will use the Clips format to specifically tell google the timestamps we think
|
|
34632
|
-
// are important. Otherwise, we will use the SeekToAction field along with the wtime
|
|
34633
|
-
// param to allow Google to search through the video for key moments
|
|
34634
|
-
var shouldAddKeyMoments = function shouldAddKeyMoments(mediaData, embedOptions) {
|
|
34635
|
-
if (embedOptions.keyMoments === false) {
|
|
34636
|
-
return false;
|
|
34637
|
-
}
|
|
34638
|
-
var duration = mediaData.duration,
|
|
34639
|
-
type = mediaData.type;
|
|
34640
|
-
var _ref = embedOptions.plugin || {},
|
|
34641
|
-
passwordProtectedVideo = _ref.passwordProtectedVideo,
|
|
34642
|
-
turnstilePlugin = _ref['requireEmail-v1'];
|
|
34643
|
-
var isLiveStream = type === 'LiveStream';
|
|
34644
|
-
var passwordEnabled = (passwordProtectedVideo === null || passwordProtectedVideo === void 0 ? void 0 : passwordProtectedVideo.on) === true || (passwordProtectedVideo === null || passwordProtectedVideo === void 0 ? void 0 : passwordProtectedVideo.on) === 'true';
|
|
34645
|
-
var turnstileBlocksContent = turnstilePlugin && turnstilePlugin.on !== false && turnstilePlugin.time !== 'end' && !turnstilePlugin.persistentTurnstile;
|
|
34646
|
-
return Boolean(!passwordEnabled && !turnstileBlocksContent && !isLiveStream && duration >= 30);
|
|
34647
|
-
};
|
|
34648
|
-
var sortedFilteredChapters = function sortedFilteredChapters(chapterList) {
|
|
34649
|
-
var chapterExistsAtTime = {};
|
|
34650
|
-
return _toConsumableArray(chapterList).sort(function (a, b) {
|
|
34651
|
-
return a.time - b.time;
|
|
34652
|
-
}).filter(function (_ref2) {
|
|
34653
|
-
var time = _ref2.time,
|
|
34654
|
-
title = _ref2.title,
|
|
34655
|
-
deleted = _ref2.deleted;
|
|
34656
|
-
if (chapterExistsAtTime[time] || deleted || title === DEFAULT_CHAPTER_TITLE) {
|
|
34657
|
-
return false;
|
|
34658
|
-
}
|
|
34659
|
-
chapterExistsAtTime[time] = true;
|
|
34660
|
-
return true;
|
|
34661
|
-
});
|
|
34662
|
-
};
|
|
34663
|
-
var clipsFromChapters = function clipsFromChapters(chapterList, baseUrl, mediaDuration) {
|
|
34664
|
-
if (!chapterList || chapterList.length === 0) {
|
|
34665
|
-
return;
|
|
34666
|
-
}
|
|
34667
|
-
var clips = sortedFilteredChapters(chapterList).map(function (chapter, index, chapters) {
|
|
34668
|
-
var time = chapter.time,
|
|
34669
|
-
title = chapter.title;
|
|
34670
|
-
var url = new utilities_url_js__WEBPACK_IMPORTED_MODULE_0__.Url(baseUrl);
|
|
34671
|
-
var floorTime = Math.floor(time);
|
|
34672
|
-
var endOffsetTime = chapters[index + 1] ? chapters[index + 1].time : mediaDuration;
|
|
34673
|
-
|
|
34674
|
-
// wtime does not support decimals
|
|
34675
|
-
url.params.wtime = "".concat(floorTime, "s");
|
|
34676
|
-
|
|
34677
|
-
// https://schema.org/Clip
|
|
34678
|
-
return {
|
|
34679
|
-
'@type': 'Clip',
|
|
34680
|
-
endOffset: Math.floor(endOffsetTime),
|
|
34681
|
-
name: title,
|
|
34682
|
-
startOffset: floorTime,
|
|
34683
|
-
url: url.absolute()
|
|
34684
|
-
};
|
|
34685
|
-
});
|
|
34686
|
-
return clips;
|
|
34687
|
-
};
|
|
34688
|
-
|
|
34689
|
-
// https://developers.google.com/search/docs/advanced/structured-data/video#seek
|
|
34690
|
-
var seekToAction = function seekToAction() {
|
|
34691
|
-
var url = new utilities_url_js__WEBPACK_IMPORTED_MODULE_0__.Url(location.href);
|
|
34692
|
-
// if wtime is already on the url as query param, it will be overwritten here. This is only for the JSON+LD though.
|
|
34693
|
-
url.params.wtime = '{seek_to_second_number}';
|
|
34694
|
-
return {
|
|
34695
|
-
'@type': 'SeekToAction',
|
|
34696
|
-
target: "".concat(url.absolute().replace('%7Bseek_to_second_number%7D', '{seek_to_second_number}')),
|
|
34697
|
-
// we need to replace the encoded uri with the direct string
|
|
34698
|
-
'startOffset-input': 'required name=seek_to_second_number'
|
|
34699
|
-
};
|
|
34700
|
-
};
|
|
34701
|
-
|
|
34702
|
-
/***/ }),
|
|
34703
|
-
|
|
34704
35467
|
/***/ 3695:
|
|
34705
35468
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
34706
35469
|
|
|
@@ -35219,36 +35982,6 @@ var updateLocalStorage = function updateLocalStorage(ns, fn) {
|
|
|
35219
35982
|
|
|
35220
35983
|
/***/ }),
|
|
35221
35984
|
|
|
35222
|
-
/***/ 1487:
|
|
35223
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
35224
|
-
|
|
35225
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35226
|
-
/* harmony export */ a: () => (/* binding */ normalizeChapters)
|
|
35227
|
-
/* harmony export */ });
|
|
35228
|
-
// chapters has two ways of being defined in embed options.
|
|
35229
|
-
// The current way is as an object inside `embedOptions.plugin`
|
|
35230
|
-
// The old way was as root embed options like `chaptersOn` and `chapterList`.
|
|
35231
|
-
// This function normalizes the old root embed option format to an object
|
|
35232
|
-
// like the current model
|
|
35233
|
-
var normalizeChapters = function normalizeChapters(embedOptions) {
|
|
35234
|
-
var plugin = embedOptions.plugin,
|
|
35235
|
-
chaptersOn = embedOptions.chaptersOn,
|
|
35236
|
-
chapterList = embedOptions.chapterList;
|
|
35237
|
-
if (plugin !== null && plugin !== void 0 && plugin.chapters) {
|
|
35238
|
-
return plugin.chapters;
|
|
35239
|
-
}
|
|
35240
|
-
if (chapterList || chaptersOn) {
|
|
35241
|
-
var list = chapterList && chapterList.length > 0 ? chapterList : [];
|
|
35242
|
-
return {
|
|
35243
|
-
on: chaptersOn,
|
|
35244
|
-
chapterList: list
|
|
35245
|
-
};
|
|
35246
|
-
}
|
|
35247
|
-
return undefined;
|
|
35248
|
-
};
|
|
35249
|
-
|
|
35250
|
-
/***/ }),
|
|
35251
|
-
|
|
35252
35985
|
/***/ 731:
|
|
35253
35986
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
35254
35987
|
|
|
@@ -36311,7 +37044,7 @@ var root = rootTest;
|
|
|
36311
37044
|
// fire and forget.
|
|
36312
37045
|
// run a script and immediately remove it from the DOM.
|
|
36313
37046
|
var runScript = function runScript(src, timeout) {
|
|
36314
|
-
var taggedVersion = "0.0.
|
|
37047
|
+
var taggedVersion = "0.0.21";
|
|
36315
37048
|
return new Promise(function (resolve, reject) {
|
|
36316
37049
|
if (timeout == null) {
|
|
36317
37050
|
timeout = 8000;
|
|
@@ -38863,36 +39596,38 @@ if (Wistia.mixin == null) {
|
|
|
38863
39596
|
/******/
|
|
38864
39597
|
/************************************************************************/
|
|
38865
39598
|
var __webpack_exports__ = {};
|
|
38866
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
38867
|
-
(() => {
|
|
38868
39599
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38869
39600
|
/* harmony export */ $: () => (/* binding */ WistiaPlayer),
|
|
38870
39601
|
/* harmony export */ A: () => (/* binding */ wistiaSwatchElement)
|
|
38871
39602
|
/* harmony export */ });
|
|
38872
|
-
/* harmony import */ var
|
|
38873
|
-
/* harmony import */ var
|
|
38874
|
-
/* harmony import */ var
|
|
38875
|
-
/* harmony import */ var
|
|
38876
|
-
/* harmony import */ var
|
|
38877
|
-
/* harmony import */ var
|
|
38878
|
-
/* harmony import */ var
|
|
38879
|
-
/* harmony import */ var
|
|
38880
|
-
/* harmony import */ var
|
|
38881
|
-
/* harmony import */ var
|
|
38882
|
-
/* harmony import */ var
|
|
38883
|
-
/* harmony import */ var
|
|
38884
|
-
/* harmony import */ var
|
|
38885
|
-
/* harmony import */ var
|
|
38886
|
-
/* harmony import */ var
|
|
38887
|
-
/* harmony import */ var
|
|
38888
|
-
/* harmony import */ var
|
|
38889
|
-
/* harmony import */ var
|
|
38890
|
-
/* harmony import */ var
|
|
38891
|
-
/* harmony import */ var
|
|
38892
|
-
/* harmony import */ var
|
|
38893
|
-
/* harmony import */ var
|
|
38894
|
-
/* harmony import */ var
|
|
38895
|
-
/* harmony import */ var
|
|
39603
|
+
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5181);
|
|
39604
|
+
/* harmony import */ var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(4586);
|
|
39605
|
+
/* harmony import */ var _components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9804);
|
|
39606
|
+
/* harmony import */ var _hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2721);
|
|
39607
|
+
/* harmony import */ var _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(1512);
|
|
39608
|
+
/* harmony import */ var _utilities_PlayerDataHandler_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6462);
|
|
39609
|
+
/* harmony import */ var _utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(7323);
|
|
39610
|
+
/* harmony import */ var _utilities_detect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7231);
|
|
39611
|
+
/* harmony import */ var _utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7157);
|
|
39612
|
+
/* harmony import */ var _utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3280);
|
|
39613
|
+
/* harmony import */ var _utilities_elem_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7715);
|
|
39614
|
+
/* harmony import */ var _utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(2760);
|
|
39615
|
+
/* harmony import */ var _utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3832);
|
|
39616
|
+
/* harmony import */ var _utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3065);
|
|
39617
|
+
/* harmony import */ var _utilities_hosts_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5857);
|
|
39618
|
+
/* harmony import */ var _utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(5393);
|
|
39619
|
+
/* harmony import */ var _utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(3123);
|
|
39620
|
+
/* harmony import */ var _utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(7211);
|
|
39621
|
+
/* harmony import */ var _utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(1161);
|
|
39622
|
+
/* harmony import */ var _utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4755);
|
|
39623
|
+
/* harmony import */ var _utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(4997);
|
|
39624
|
+
/* harmony import */ var _utilities_wistiaOptions_ts__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(9392);
|
|
39625
|
+
/* harmony import */ var _utilities_wistiaQueue_ts__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(541);
|
|
39626
|
+
/* harmony import */ var _utilities_wlog_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(6637);
|
|
39627
|
+
/* harmony import */ var _media_modules_all_modules_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(1867);
|
|
39628
|
+
/* harmony import */ var _media_modules_init_coffee__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(651);
|
|
39629
|
+
/* harmony import */ var _media_modules_init_coffee__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_media_modules_init_coffee__WEBPACK_IMPORTED_MODULE_18__);
|
|
39630
|
+
/* harmony import */ var _external_vulcanV2Player_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(8423);
|
|
38896
39631
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
38897
39632
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
38898
39633
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -38943,6 +39678,11 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
38943
39678
|
|
|
38944
39679
|
|
|
38945
39680
|
|
|
39681
|
+
|
|
39682
|
+
|
|
39683
|
+
|
|
39684
|
+
|
|
39685
|
+
|
|
38946
39686
|
|
|
38947
39687
|
|
|
38948
39688
|
|
|
@@ -38965,8 +39705,8 @@ var defaultEmbedOptions = {
|
|
|
38965
39705
|
audioDescriptionControl: false,
|
|
38966
39706
|
autoplay: false,
|
|
38967
39707
|
bigPlayButton: true,
|
|
38968
|
-
bigPlayButtonBorderRadius:
|
|
38969
|
-
controlBarBorderRadius:
|
|
39708
|
+
bigPlayButtonBorderRadius: undefined,
|
|
39709
|
+
controlBarBorderRadius: undefined,
|
|
38970
39710
|
controlsVisibleOnLoad: true,
|
|
38971
39711
|
copyLinkAndThumbnail: true,
|
|
38972
39712
|
currentTime: 0,
|
|
@@ -38975,7 +39715,7 @@ var defaultEmbedOptions = {
|
|
|
38975
39715
|
fullscreenControl: true,
|
|
38976
39716
|
hls: true,
|
|
38977
39717
|
playBarControl: true,
|
|
38978
|
-
playerBorderRadius:
|
|
39718
|
+
playerBorderRadius: undefined,
|
|
38979
39719
|
playerColor: '636155',
|
|
38980
39720
|
playPauseControl: true,
|
|
38981
39721
|
playPauseNotifier: true,
|
|
@@ -39001,7 +39741,7 @@ var defaultEmbedOptions = {
|
|
|
39001
39741
|
qualityMax: undefined,
|
|
39002
39742
|
qualityMin: undefined,
|
|
39003
39743
|
resumable: 'auto',
|
|
39004
|
-
roundedPlayer:
|
|
39744
|
+
roundedPlayer: undefined,
|
|
39005
39745
|
seo: true,
|
|
39006
39746
|
settingsControl: true,
|
|
39007
39747
|
silentAutoplay: false,
|
|
@@ -39012,13 +39752,29 @@ var defaultEmbedOptions = {
|
|
|
39012
39752
|
volumeControl: true,
|
|
39013
39753
|
wistiaPopover: false
|
|
39014
39754
|
};
|
|
39755
|
+
|
|
39756
|
+
/**
|
|
39757
|
+
* Returns the swatch url for a given mediaId
|
|
39758
|
+
* @param {string} mediaId
|
|
39759
|
+
* @param {string} embedHost
|
|
39760
|
+
* @returns {string}
|
|
39761
|
+
*/
|
|
39762
|
+
var getSwatchUrl = function getSwatchUrl(mediaId) {
|
|
39763
|
+
var embedHost = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
39764
|
+
var fastHost = (0,_utilities_hosts_js__WEBPACK_IMPORTED_MODULE_10__.cdnFastWistiaComHost)(embedHost);
|
|
39765
|
+
return "https://".concat(fastHost, "/embed/medias/").concat(mediaId, "/swatch");
|
|
39766
|
+
};
|
|
39015
39767
|
var _api = /*#__PURE__*/new WeakMap();
|
|
39016
39768
|
var _fullscreenState = /*#__PURE__*/new WeakMap();
|
|
39017
39769
|
var _logger = /*#__PURE__*/new WeakMap();
|
|
39018
39770
|
var _oldEngine = /*#__PURE__*/new WeakMap();
|
|
39771
|
+
var _playerData = /*#__PURE__*/new WeakMap();
|
|
39019
39772
|
var _usingFullscreenContainer = /*#__PURE__*/new WeakMap();
|
|
39020
39773
|
var _hasElementConnectedToDOM = /*#__PURE__*/new WeakMap();
|
|
39021
|
-
var
|
|
39774
|
+
var _paddingTop = /*#__PURE__*/new WeakMap();
|
|
39775
|
+
var _preactRoot = /*#__PURE__*/new WeakMap();
|
|
39776
|
+
var _preloadAspectRatio = /*#__PURE__*/new WeakMap();
|
|
39777
|
+
var _preloadThumbnailRoot = /*#__PURE__*/new WeakMap();
|
|
39022
39778
|
var _WistiaPlayer_brand = /*#__PURE__*/new WeakSet();
|
|
39023
39779
|
var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
39024
39780
|
/**
|
|
@@ -39044,19 +39800,24 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39044
39800
|
_classPrivateFieldInitSpec(_this3, _logger, void 0);
|
|
39045
39801
|
// private value used during the replace flow to pass along the old engine.
|
|
39046
39802
|
_classPrivateFieldInitSpec(_this3, _oldEngine, void 0);
|
|
39803
|
+
_classPrivateFieldInitSpec(_this3, _playerData, void 0);
|
|
39047
39804
|
// when in fullscreen we wrap the web-component in a wrapper element so that
|
|
39048
39805
|
// we can safely replace the web-component without destroying the video and/or leave fullscreen
|
|
39049
39806
|
_classPrivateFieldInitSpec(_this3, _usingFullscreenContainer, false);
|
|
39050
39807
|
_classPrivateFieldInitSpec(_this3, _hasElementConnectedToDOM, false);
|
|
39051
|
-
_classPrivateFieldInitSpec(_this3,
|
|
39808
|
+
_classPrivateFieldInitSpec(_this3, _paddingTop, '0px');
|
|
39809
|
+
_classPrivateFieldInitSpec(_this3, _preactRoot, null);
|
|
39810
|
+
_classPrivateFieldInitSpec(_this3, _preloadAspectRatio, undefined);
|
|
39811
|
+
_classPrivateFieldInitSpec(_this3, _preloadThumbnailRoot, null);
|
|
39052
39812
|
_this3.attachShadow({
|
|
39053
39813
|
mode: 'open'
|
|
39054
39814
|
});
|
|
39055
39815
|
_this3.dispatchEvent(new CustomEvent('load-start'));
|
|
39056
|
-
|
|
39816
|
+
_this3.paddingTop = getComputedStyle(_this3).paddingTop;
|
|
39057
39817
|
|
|
39058
39818
|
// Set up a prefixed logger
|
|
39059
|
-
_classPrivateFieldSet(_logger, _this3,
|
|
39819
|
+
_classPrivateFieldSet(_logger, _this3, _utilities_wlog_js__WEBPACK_IMPORTED_MODULE_16__/* .wlog */ .ct.getPrefixedFunctions('WistiaPlayer'));
|
|
39820
|
+
_classPrivateFieldSet(_playerData, _this3, new _utilities_PlayerDataHandler_ts__WEBPACK_IMPORTED_MODULE_3__/* .PlayerDataHandler */ .I());
|
|
39060
39821
|
|
|
39061
39822
|
// Wistia global setup if this is the first time we've seen a Wistia player
|
|
39062
39823
|
if (window.Wistia && window.Wistia.wistia === undefined) {
|
|
@@ -39128,8 +39889,9 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39128
39889
|
}, {
|
|
39129
39890
|
key: "aspect",
|
|
39130
39891
|
get: function get() {
|
|
39131
|
-
var _ref, _this$api$_impl$aspec, _this$api, _this$api$_impl;
|
|
39132
|
-
|
|
39892
|
+
var _ref, _ref2, _this$api$_impl$aspec, _this$api, _this$api$_impl;
|
|
39893
|
+
var fallbackAspect = !Number.isNaN(this.offsetWidth / this.offsetHeight) && Number.isFinite(this.offsetWidth / this.offsetHeight) ? this.offsetWidth / this.offsetHeight : _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_20__/* .DEFAULT_ASPECT */ .R;
|
|
39894
|
+
return (_ref = (_ref2 = (_this$api$_impl$aspec = (_this$api = this.api) === null || _this$api === void 0 ? void 0 : (_this$api$_impl = _this$api._impl) === null || _this$api$_impl === void 0 ? void 0 : _this$api$_impl.aspect()) !== null && _this$api$_impl$aspec !== void 0 ? _this$api$_impl$aspec : this.embedOptions.aspect) !== null && _ref2 !== void 0 ? _ref2 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'aspect')) !== null && _ref !== void 0 ? _ref : fallbackAspect;
|
|
39133
39895
|
}
|
|
39134
39896
|
|
|
39135
39897
|
/**
|
|
@@ -39143,7 +39905,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39143
39905
|
_assertClassBrand(_WistiaPlayer_brand, this, _setSyncedEmbedOption).call(this, 'aspect', newAspect);
|
|
39144
39906
|
|
|
39145
39907
|
// By re-setting width to the same value, we trigger the aspect ratio to be recalculated.
|
|
39146
|
-
(_this$api2 = this.api) === null || _this$api2 === void 0 ? void 0 : (_this$api2$_impl = _this$api2._impl) === null || _this$api2$_impl === void 0 ? void 0 : _this$api2$_impl.width((0,
|
|
39908
|
+
(_this$api2 = this.api) === null || _this$api2 === void 0 ? void 0 : (_this$api2$_impl = _this$api2._impl) === null || _this$api2$_impl === void 0 ? void 0 : _this$api2$_impl.width((0,_utilities_elem_js__WEBPACK_IMPORTED_MODULE_7__.elemWidth)(this), {
|
|
39147
39909
|
constrain: true
|
|
39148
39910
|
});
|
|
39149
39911
|
}
|
|
@@ -39369,8 +40131,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39369
40131
|
}, {
|
|
39370
40132
|
key: "currentTime",
|
|
39371
40133
|
get: function get() {
|
|
39372
|
-
var
|
|
39373
|
-
return (
|
|
40134
|
+
var _ref3, _ref4, _this$api10, _this$api10$_impl;
|
|
40135
|
+
return (_ref3 = (_ref4 = (_this$api10 = this.api) === null || _this$api10 === void 0 ? void 0 : (_this$api10$_impl = _this$api10._impl) === null || _this$api10$_impl === void 0 ? void 0 : _this$api10$_impl.time()) !== null && _ref4 !== void 0 ? _ref4 : this.embedOptions.currentTime) !== null && _ref3 !== void 0 ? _ref3 : 0;
|
|
39374
40136
|
}
|
|
39375
40137
|
|
|
39376
40138
|
/**
|
|
@@ -39427,8 +40189,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39427
40189
|
}, {
|
|
39428
40190
|
key: "email",
|
|
39429
40191
|
get: function get() {
|
|
39430
|
-
var
|
|
39431
|
-
return (
|
|
40192
|
+
var _ref5, _ref6, _extractEmailFromPara, _classPrivateGetter2;
|
|
40193
|
+
return (_ref5 = (_ref6 = (_extractEmailFromPara = (0,_utilities_extractEmailFromParams_ts__WEBPACK_IMPORTED_MODULE_8__/* .extractEmailFromParams */ .i)(_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl))) !== null && _extractEmailFromPara !== void 0 ? _extractEmailFromPara : (_classPrivateGetter2 = (0,_utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_13__/* .getWistiaLocalStorage */ .y1)()[_classPrivateGetter(_WistiaPlayer_brand, this, _get_pageUrl)]) === null || _classPrivateGetter2 === void 0 ? void 0 : _classPrivateGetter2.trackEmail) !== null && _ref6 !== void 0 ? _ref6 : this.embedOptions.email) !== null && _ref5 !== void 0 ? _ref5 : undefined;
|
|
39432
40194
|
}
|
|
39433
40195
|
|
|
39434
40196
|
/**
|
|
@@ -39476,8 +40238,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39476
40238
|
}, {
|
|
39477
40239
|
key: "embedOptions",
|
|
39478
40240
|
get: function get() {
|
|
39479
|
-
|
|
39480
|
-
return (_classPrivateFieldGet4 = _classPrivateFieldGet(_mediaData, this).embedOptions) !== null && _classPrivateFieldGet4 !== void 0 ? _classPrivateFieldGet4 : {};
|
|
40241
|
+
return _classPrivateFieldGet(_playerData, this).embedOptions;
|
|
39481
40242
|
}
|
|
39482
40243
|
|
|
39483
40244
|
/**
|
|
@@ -39624,8 +40385,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39624
40385
|
}, {
|
|
39625
40386
|
key: "muted",
|
|
39626
40387
|
get: function get() {
|
|
39627
|
-
var
|
|
39628
|
-
return (
|
|
40388
|
+
var _ref7, _classPrivateFieldGet4, _classPrivateFieldGet5, _classPrivateFieldGet6;
|
|
40389
|
+
return (_ref7 = (_classPrivateFieldGet4 = (_classPrivateFieldGet5 = _classPrivateFieldGet(_api, this)) === null || _classPrivateFieldGet5 === void 0 ? void 0 : (_classPrivateFieldGet6 = _classPrivateFieldGet5._impl) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.isMuted()) !== null && _classPrivateFieldGet4 !== void 0 ? _classPrivateFieldGet4 : this.embedOptions.muted) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
39629
40390
|
}
|
|
39630
40391
|
|
|
39631
40392
|
/**
|
|
@@ -39654,8 +40415,16 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39654
40415
|
}, {
|
|
39655
40416
|
key: "name",
|
|
39656
40417
|
get: function get() {
|
|
39657
|
-
var
|
|
39658
|
-
return (
|
|
40418
|
+
var _ref8, _classPrivateFieldGet7, _this$api18, _this$api18$_mediaDat;
|
|
40419
|
+
return (_ref8 = (_classPrivateFieldGet7 = _classPrivateFieldGet(_playerData, this).mediaData.name) !== null && _classPrivateFieldGet7 !== void 0 ? _classPrivateFieldGet7 : (_this$api18 = this.api) === null || _this$api18 === void 0 ? void 0 : (_this$api18$_mediaDat = _this$api18._mediaData) === null || _this$api18$_mediaDat === void 0 ? void 0 : _this$api18$_mediaDat.name) !== null && _ref8 !== void 0 ? _ref8 : undefined;
|
|
40420
|
+
}
|
|
40421
|
+
}, {
|
|
40422
|
+
key: "paddingTop",
|
|
40423
|
+
get: function get() {
|
|
40424
|
+
return _classPrivateFieldGet(_paddingTop, this);
|
|
40425
|
+
},
|
|
40426
|
+
set: function set(paddingTop) {
|
|
40427
|
+
_classPrivateFieldSet(_paddingTop, this, paddingTop);
|
|
39659
40428
|
}
|
|
39660
40429
|
|
|
39661
40430
|
/**
|
|
@@ -39687,8 +40456,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39687
40456
|
}, {
|
|
39688
40457
|
key: "playbackRate",
|
|
39689
40458
|
get: function get() {
|
|
39690
|
-
var
|
|
39691
|
-
return (
|
|
40459
|
+
var _ref9, _this$api$_impl$playb, _this$api21, _this$api21$_impl;
|
|
40460
|
+
return (_ref9 = (_this$api$_impl$playb = (_this$api21 = this.api) === null || _this$api21 === void 0 ? void 0 : (_this$api21$_impl = _this$api21._impl) === null || _this$api21$_impl === void 0 ? void 0 : _this$api21$_impl.playbackRate()) !== null && _this$api$_impl$playb !== void 0 ? _this$api$_impl$playb : this.embedOptions.playbackRate) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
39692
40461
|
}
|
|
39693
40462
|
|
|
39694
40463
|
/**
|
|
@@ -39800,8 +40569,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
39800
40569
|
}, {
|
|
39801
40570
|
key: "playerForce",
|
|
39802
40571
|
get: function get() {
|
|
39803
|
-
var
|
|
39804
|
-
return (
|
|
40572
|
+
var _ref10;
|
|
40573
|
+
return (_ref10 = this.getAttribute('player-force')) !== null && _ref10 !== void 0 ? _ref10 : undefined;
|
|
39805
40574
|
}
|
|
39806
40575
|
|
|
39807
40576
|
/**
|
|
@@ -40240,8 +41009,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
40240
41009
|
}, {
|
|
40241
41010
|
key: "preload",
|
|
40242
41011
|
get: function get() {
|
|
40243
|
-
var
|
|
40244
|
-
return (
|
|
41012
|
+
var _ref11, _this$api$_impl$prelo, _this$api29, _this$api29$_impl;
|
|
41013
|
+
return (_ref11 = (_this$api$_impl$prelo = (_this$api29 = this.api) === null || _this$api29 === void 0 ? void 0 : (_this$api29$_impl = _this$api29._impl) === null || _this$api29$_impl === void 0 ? void 0 : _this$api29$_impl.preloadValue()) !== null && _this$api$_impl$prelo !== void 0 ? _this$api$_impl$prelo : this.embedOptions.preload) !== null && _ref11 !== void 0 ? _ref11 : undefined;
|
|
40245
41014
|
}
|
|
40246
41015
|
|
|
40247
41016
|
/**
|
|
@@ -40266,6 +41035,18 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
40266
41035
|
this.setAttribute('preload', preloadValue);
|
|
40267
41036
|
}
|
|
40268
41037
|
|
|
41038
|
+
/**
|
|
41039
|
+
* Returns whether the player should show a thumbnail and play button while it is loading.
|
|
41040
|
+
* TODO: This is a temporary option for development and will be removed in the future.
|
|
41041
|
+
* @returns {boolean}
|
|
41042
|
+
*/
|
|
41043
|
+
}, {
|
|
41044
|
+
key: "preloadThumbnail",
|
|
41045
|
+
get: function get() {
|
|
41046
|
+
var _ref12;
|
|
41047
|
+
return (_ref12 = _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'preload-thumbnail')) !== null && _ref12 !== void 0 ? _ref12 : false;
|
|
41048
|
+
}
|
|
41049
|
+
|
|
40269
41050
|
/**
|
|
40270
41051
|
* If set to true, the quality control will appear in the setting control.
|
|
40271
41052
|
* @returns {boolean}
|
|
@@ -40617,8 +41398,8 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
40617
41398
|
}, {
|
|
40618
41399
|
key: "videoQuality",
|
|
40619
41400
|
get: function get() {
|
|
40620
|
-
var
|
|
40621
|
-
return (
|
|
41401
|
+
var _ref13, _this$api$_impl$getVi, _this$api40, _this$api40$_impl;
|
|
41402
|
+
return (_ref13 = (_this$api$_impl$getVi = (_this$api40 = this.api) === null || _this$api40 === void 0 ? void 0 : (_this$api40$_impl = _this$api40._impl) === null || _this$api40$_impl === void 0 ? void 0 : _this$api40$_impl.getVideoQuality()) !== null && _this$api$_impl$getVi !== void 0 ? _this$api$_impl$getVi : this.embedOptions.videoQuality) !== null && _ref13 !== void 0 ? _ref13 : 'auto';
|
|
40622
41403
|
}
|
|
40623
41404
|
|
|
40624
41405
|
/**
|
|
@@ -40751,13 +41532,13 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
40751
41532
|
case 0:
|
|
40752
41533
|
_classPrivateSetter(_WistiaPlayer_brand, _set_usingFullscreenContainer, this, false);
|
|
40753
41534
|
parent = this.parentNode;
|
|
40754
|
-
if ((0,
|
|
41535
|
+
if ((0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_21__/* .isNotNil */ .n9)(this._fullscreenState.widthBeforeFullscreen)) {
|
|
40755
41536
|
this.style.width = this._fullscreenState.widthBeforeFullscreen;
|
|
40756
41537
|
(_this$api44 = this.api) === null || _this$api44 === void 0 ? void 0 : (_this$api44$_impl = _this$api44._impl) === null || _this$api44$_impl === void 0 ? void 0 : _this$api44$_impl.width(parseFloat(this._fullscreenState.widthBeforeFullscreen), {
|
|
40757
41538
|
fullscreen: true
|
|
40758
41539
|
});
|
|
40759
41540
|
}
|
|
40760
|
-
if ((0,
|
|
41541
|
+
if ((0,_wistia_type_guards__WEBPACK_IMPORTED_MODULE_21__/* .isNotNil */ .n9)(this._fullscreenState.heightBeforeFullscreen)) {
|
|
40761
41542
|
this.style.height = this._fullscreenState.heightBeforeFullscreen;
|
|
40762
41543
|
(_this$api45 = this.api) === null || _this$api45 === void 0 ? void 0 : (_this$api45$_impl = _this$api45._impl) === null || _this$api45$_impl === void 0 ? void 0 : _this$api45$_impl.height(parseFloat(this._fullscreenState.heightBeforeFullscreen), {
|
|
40763
41544
|
fullscreen: true
|
|
@@ -40831,7 +41612,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
40831
41612
|
while (1) switch (_context5.prev = _context5.next) {
|
|
40832
41613
|
case 0:
|
|
40833
41614
|
addPlugin = /*#__PURE__*/function () {
|
|
40834
|
-
var
|
|
41615
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
40835
41616
|
var _this5$api$addPlugin, _this5$api;
|
|
40836
41617
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
40837
41618
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -40844,7 +41625,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
40844
41625
|
}, _callee4);
|
|
40845
41626
|
}));
|
|
40846
41627
|
return function addPlugin() {
|
|
40847
|
-
return
|
|
41628
|
+
return _ref14.apply(this, arguments);
|
|
40848
41629
|
};
|
|
40849
41630
|
}();
|
|
40850
41631
|
if (!this.api) {
|
|
@@ -40855,14 +41636,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
40855
41636
|
case 3:
|
|
40856
41637
|
return _context5.abrupt("return", new Promise(function (resolve, reject) {
|
|
40857
41638
|
var handler = function handler() {
|
|
40858
|
-
_this5.removeEventListener(
|
|
41639
|
+
_this5.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .API_READY_EVENT */ .c5, handler);
|
|
40859
41640
|
addPlugin().then(function (plugin) {
|
|
40860
41641
|
return resolve(plugin);
|
|
40861
41642
|
}).catch(function (err) {
|
|
40862
41643
|
reject(err);
|
|
40863
41644
|
});
|
|
40864
41645
|
};
|
|
40865
|
-
_this5.addEventListener(
|
|
41646
|
+
_this5.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .API_READY_EVENT */ .c5, handler);
|
|
40866
41647
|
}));
|
|
40867
41648
|
case 4:
|
|
40868
41649
|
case "end":
|
|
@@ -41167,11 +41948,11 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
41167
41948
|
reject(new Error('api not ready to replace'));
|
|
41168
41949
|
}
|
|
41169
41950
|
var handler = function handler() {
|
|
41170
|
-
_this7.removeEventListener(
|
|
41951
|
+
_this7.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .AFTER_REPLACE_EVENT */ .$1, handler);
|
|
41171
41952
|
_this7.mediaId = mediaId;
|
|
41172
41953
|
resolve();
|
|
41173
41954
|
};
|
|
41174
|
-
_this7.addEventListener(
|
|
41955
|
+
_this7.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .AFTER_REPLACE_EVENT */ .$1, handler);
|
|
41175
41956
|
(_this7$api = _this7.api) === null || _this7$api === void 0 ? void 0 : _this7$api.replaceWith(mediaId, options);
|
|
41176
41957
|
}));
|
|
41177
41958
|
case 2:
|
|
@@ -41385,24 +42166,24 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
41385
42166
|
}
|
|
41386
42167
|
var mediaId = this.getAttribute('media-id');
|
|
41387
42168
|
if (mediaId == null) {
|
|
41388
|
-
(0,
|
|
42169
|
+
(0,_utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_11__.countMetric)('player/failure/init-failed');
|
|
41389
42170
|
throw new Error('media-id attribute is required');
|
|
41390
42171
|
}
|
|
41391
42172
|
if ((_window$Wistia = window.Wistia) !== null && _window$Wistia !== void 0 && _window$Wistia._inlineMediaData) {
|
|
41392
|
-
|
|
42173
|
+
_classPrivateFieldGet(_playerData, this).setInlineMediaDataSource(window.Wistia._inlineMediaData[this.mediaId]);
|
|
41393
42174
|
}
|
|
41394
42175
|
|
|
41395
42176
|
// Allows for all bulk setting of embed options and mediaData
|
|
41396
42177
|
window.wistiaOptions = (_window$wistiaOptions = window.wistiaOptions) !== null && _window$wistiaOptions !== void 0 ? _window$wistiaOptions : {};
|
|
41397
|
-
var opts = (0,
|
|
41398
|
-
|
|
42178
|
+
var opts = (0,_utilities_wistiaOptions_ts__WEBPACK_IMPORTED_MODULE_14__/* .getWistiaOptions */ .C)(this.mediaId);
|
|
42179
|
+
_classPrivateFieldGet(_playerData, this).setWistiaWindowEmbedOptionSource(opts);
|
|
41399
42180
|
|
|
41400
42181
|
// Add the media id to the logger now that we have it
|
|
41401
|
-
_classPrivateFieldSet(_logger, this,
|
|
42182
|
+
_classPrivateFieldSet(_logger, this, _utilities_wlog_js__WEBPACK_IMPORTED_MODULE_16__/* .wlog */ .ct.getPrefixedFunctions("WistiaPlayer ".concat(mediaId)));
|
|
41402
42183
|
|
|
41403
42184
|
// If the player was created from our React wrapper component, send a tracking event
|
|
41404
42185
|
if (this.getAttribute('react') === 'true') {
|
|
41405
|
-
(0,
|
|
42186
|
+
(0,_utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_11__.countMetric)('player/initembed.react');
|
|
41406
42187
|
}
|
|
41407
42188
|
|
|
41408
42189
|
// if we're coming from a legacy E-v1.js embed, it is likely to already have JSONP on the page.
|
|
@@ -41417,7 +42198,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
41417
42198
|
} else {
|
|
41418
42199
|
var _window$Wistia2, _window$Wistia2$_inli;
|
|
41419
42200
|
_classPrivateFieldGet(_logger, this).info('initialize embed');
|
|
41420
|
-
(0,
|
|
42201
|
+
(0,_utilities_wistiaQueue_ts__WEBPACK_IMPORTED_MODULE_15__/* .maybeStartWistiaQueue */ .z)();
|
|
41421
42202
|
|
|
41422
42203
|
// Generate a unique id for this embed in case there are
|
|
41423
42204
|
// multiple embeds with the same hashed id on the page
|
|
@@ -41429,31 +42210,16 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
41429
42210
|
// Gather any attributes set on the element and save them so the public api can use them
|
|
41430
42211
|
_assertClassBrand(_WistiaPlayer_brand, this, _saveInitialAttributesFromDomOptions).call(this);
|
|
41431
42212
|
if ((_window$Wistia2 = window.Wistia) !== null && _window$Wistia2 !== void 0 && (_window$Wistia2$_inli = _window$Wistia2._inlineMediaData) !== null && _window$Wistia2$_inli !== void 0 && _window$Wistia2$_inli[this.mediaId]) {
|
|
41432
|
-
_assertClassBrand(_WistiaPlayer_brand, this,
|
|
41433
|
-
videoFoam: true
|
|
41434
|
-
});
|
|
41435
|
-
// Create and save the public api instance
|
|
41436
|
-
_assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, mediaId, {
|
|
41437
|
-
mediaData: _classPrivateFieldGet(_mediaData, this),
|
|
41438
|
-
container: this.uniqueId
|
|
41439
|
-
});
|
|
42213
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _initPlayerEmbed).call(this);
|
|
41440
42214
|
} else {
|
|
41441
42215
|
var _this$embedHost;
|
|
41442
|
-
(0,
|
|
42216
|
+
(0,_utilities_fetchMediaData_ts__WEBPACK_IMPORTED_MODULE_9__/* .fetchMediaData */ .j)(mediaId, {
|
|
41443
42217
|
embedHost: (_this$embedHost = this.embedHost) !== null && _this$embedHost !== void 0 ? _this$embedHost : ''
|
|
41444
42218
|
}).then(function (mediaData) {
|
|
41445
|
-
|
|
41446
|
-
_assertClassBrand(_WistiaPlayer_brand, _this10,
|
|
41447
|
-
videoFoam: true
|
|
41448
|
-
});
|
|
41449
|
-
|
|
41450
|
-
// Create and save the public api instance
|
|
41451
|
-
_assertClassBrand(_WistiaPlayer_brand, _this10, _initPublicApi).call(_this10, mediaId, {
|
|
41452
|
-
container: _this10.uniqueId,
|
|
41453
|
-
mediaData: _classPrivateFieldGet(_mediaData, _this10)
|
|
41454
|
-
});
|
|
42219
|
+
_classPrivateFieldGet(_playerData, _this10).setServerMediaDataSource(mediaData);
|
|
42220
|
+
_assertClassBrand(_WistiaPlayer_brand, _this10, _initPlayerEmbed).call(_this10);
|
|
41455
42221
|
}).catch(function (error) {
|
|
41456
|
-
(0,
|
|
42222
|
+
(0,_utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_11__.countMetric)('player/failure/init-failed');
|
|
41457
42223
|
throw new Error(error.message);
|
|
41458
42224
|
});
|
|
41459
42225
|
}
|
|
@@ -41461,7 +42227,14 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
41461
42227
|
|
|
41462
42228
|
// Add our responsive embed template to the shadow DOM
|
|
41463
42229
|
if (this.shadowRoot) {
|
|
41464
|
-
|
|
42230
|
+
var _ref15;
|
|
42231
|
+
// If an aspect attribute is set on the element, use that immediately to set the container of the embed
|
|
42232
|
+
_classPrivateFieldSet(_preloadAspectRatio, this, (_ref15 = _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'aspect')) !== null && _ref15 !== void 0 ? _ref15 : _utilities_constants_ts__WEBPACK_IMPORTED_MODULE_20__/* .DEFAULT_ASPECT */ .R);
|
|
42233
|
+
|
|
42234
|
+
// Render the embed template as soon as we can
|
|
42235
|
+
_classPrivateFieldSet(_preactRoot, this, document.createElement('div'));
|
|
42236
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _renderEmbedTemplate).call(this);
|
|
42237
|
+
this.shadowRoot.append(_classPrivateFieldGet(_preactRoot, this));
|
|
41465
42238
|
}
|
|
41466
42239
|
_classPrivateFieldSet(_hasElementConnectedToDOM, this, true);
|
|
41467
42240
|
}
|
|
@@ -41491,7 +42264,7 @@ var WistiaPlayer = /*#__PURE__*/function (_HTMLElement) {
|
|
|
41491
42264
|
*/
|
|
41492
42265
|
function _get_pageUrl(_this) {
|
|
41493
42266
|
var _this$getAttribute3;
|
|
41494
|
-
return (_this$getAttribute3 = _this.getAttribute('page-url')) !== null && _this$getAttribute3 !== void 0 ? _this$getAttribute3 : (0,
|
|
42267
|
+
return (_this$getAttribute3 = _this.getAttribute('page-url')) !== null && _this$getAttribute3 !== void 0 ? _this$getAttribute3 : (0,_utilities_inferPageUrl_ts__WEBPACK_IMPORTED_MODULE_23__/* .inferPageUrl */ .H)();
|
|
41495
42268
|
}
|
|
41496
42269
|
function _set_usingFullscreenContainer(_this2, val) {
|
|
41497
42270
|
_classPrivateFieldSet(_usingFullscreenContainer, _this2, val);
|
|
@@ -41501,26 +42274,6 @@ function _camelCaseToKebabCase(camelCaseString) {
|
|
|
41501
42274
|
return (idx !== undefined ? '-' : '') + letter.toLowerCase();
|
|
41502
42275
|
});
|
|
41503
42276
|
}
|
|
41504
|
-
/**
|
|
41505
|
-
* Creates a template for the embed code
|
|
41506
|
-
* @returns {HTMLTemplateElement}
|
|
41507
|
-
*/
|
|
41508
|
-
function _createEmbedTemplate() {
|
|
41509
|
-
var _this$embedHost2;
|
|
41510
|
-
var template = document.createElement('template');
|
|
41511
|
-
var fastHost = (0,_utilities_hosts_js__WEBPACK_IMPORTED_MODULE_1__.cdnFastWistiaComHost)((_this$embedHost2 = this.embedHost) !== null && _this$embedHost2 !== void 0 ? _this$embedHost2 : '');
|
|
41512
|
-
var swatchUrl = "https://".concat(fastHost, "/embed/medias/").concat(this.mediaId, "/swatch");
|
|
41513
|
-
|
|
41514
|
-
// If this is a popover and it renders a thumbnail in its container, we'll want to show a swatch
|
|
41515
|
-
var popoverContent = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, 'popoverContent');
|
|
41516
|
-
var isPopoverWithThumbnail = this.wistiaPopover && (popoverContent === undefined || popoverContent === '' || popoverContent === 'thumbnail');
|
|
41517
|
-
var shouldDisplaySwatch = this.swatch !== false && (!this.wistiaPopover || isPopoverWithThumbnail);
|
|
41518
|
-
var swatch = shouldDisplaySwatch ? /* html */"\n <div\n style=\"height: 100%; left: 0; position: absolute; top: 0; width: 100%\"\n class=\"wistia_swatch\"\n >\n <div\n style=\"height: 100%; position: relative; width: 100%\"\n >\n <div\n style=\"\n height: 100%;\n left: 0;\n overflow: hidden;\n position: absolute;\n top: 0;\n width: 100%;\n \"\n >\n <img\n src=\"".concat(swatchUrl, "\"\n style=\"filter: blur(5px); height: 100%; object-fit: contain; width: 100%\"\n alt=\"\"\n aria-hidden=\"true\"\n onload=\"this.parentNode.style.opacity=1;\"\n />\n </div>\n </div>\n </div>\n ") : '';
|
|
41519
|
-
|
|
41520
|
-
// web components always default to display: inline, which we don't want.
|
|
41521
|
-
template.innerHTML = /* html */"\n <style>\n :host {\n display: flex;\n position: relative;\n }\n </style>\n\n ".concat(swatch, "\n ");
|
|
41522
|
-
return template;
|
|
41523
|
-
}
|
|
41524
42277
|
/**
|
|
41525
42278
|
* Generates a unique id for the embed
|
|
41526
42279
|
* @param {number | string} mediaId - The media id
|
|
@@ -41548,7 +42301,7 @@ function _generateUniqueId(mediaId) {
|
|
|
41548
42301
|
* @returns {boolean | number | string | null}
|
|
41549
42302
|
*/
|
|
41550
42303
|
function _getSyncedEmbedOption(key) {
|
|
41551
|
-
var
|
|
42304
|
+
var _ref18, _ref19;
|
|
41552
42305
|
// If the public api is ready, use it as the source of truth
|
|
41553
42306
|
if (this.api && key in this.api._attrs) {
|
|
41554
42307
|
return this.api._attrs[key];
|
|
@@ -41556,7 +42309,7 @@ function _getSyncedEmbedOption(key) {
|
|
|
41556
42309
|
|
|
41557
42310
|
// Otherwise check this element's embed config for a value and fallback
|
|
41558
42311
|
// to the default embed options as a last resort
|
|
41559
|
-
return (
|
|
42312
|
+
return (_ref18 = (_ref19 = this.embedOptions[key]) !== null && _ref19 !== void 0 ? _ref19 : _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, _assertClassBrand(_WistiaPlayer_brand, this, _camelCaseToKebabCase).call(this, key))) !== null && _ref18 !== void 0 ? _ref18 : defaultEmbedOptions[key];
|
|
41560
42313
|
}
|
|
41561
42314
|
/**
|
|
41562
42315
|
* Gets the value of an attribute if it exists, returns null if not
|
|
@@ -41582,6 +42335,24 @@ function _getValueFromAttribute(name) {
|
|
|
41582
42335
|
return this.getAttribute(name);
|
|
41583
42336
|
}
|
|
41584
42337
|
}
|
|
42338
|
+
/**
|
|
42339
|
+
* Handles initialization of the player for fresh Aurora embeds
|
|
42340
|
+
* @returns {void}
|
|
42341
|
+
*/
|
|
42342
|
+
function _initPlayerEmbed() {
|
|
42343
|
+
_classPrivateFieldGet(_playerData, this).updateEmbedOptionOverrides({
|
|
42344
|
+
videoFoam: true
|
|
42345
|
+
});
|
|
42346
|
+
if (this.preloadThumbnail) {
|
|
42347
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
42348
|
+
}
|
|
42349
|
+
|
|
42350
|
+
// Create and save the public api instance
|
|
42351
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _initPublicApi).call(this, this.mediaId, {
|
|
42352
|
+
container: this.uniqueId,
|
|
42353
|
+
mediaData: _classPrivateFieldGet(_playerData, this).mediaData
|
|
42354
|
+
});
|
|
42355
|
+
}
|
|
41585
42356
|
/**
|
|
41586
42357
|
* Initializes the public api instance and sends a ready event
|
|
41587
42358
|
* @param {number | string} mediaId - The media id
|
|
@@ -41595,23 +42366,25 @@ function _initPublicApi(mediaId, options) {
|
|
|
41595
42366
|
var _window = window,
|
|
41596
42367
|
Wistia = _window.Wistia;
|
|
41597
42368
|
if (!(Wistia !== null && Wistia !== void 0 && Wistia.PublicApi)) {
|
|
41598
|
-
(0,
|
|
42369
|
+
(0,_utilities_simpleMetrics_js__WEBPACK_IMPORTED_MODULE_11__.countMetric)('player/failure/init-failed');
|
|
41599
42370
|
throw new Error('Wistia.PublicApi is not defined');
|
|
41600
42371
|
}
|
|
41601
42372
|
_classPrivateFieldSet(_api, this, new Wistia.PublicApi(mediaId, options));
|
|
41602
42373
|
(_this$api58 = this.api) === null || _this$api58 === void 0 ? void 0 : _this$api58.embedded(function () {
|
|
41603
42374
|
void _assertClassBrand(_WistiaPlayer_brand, _this11, _maybeInitializeMux).call(_this11);
|
|
42375
|
+
_classPrivateFieldSet(_preloadAspectRatio, _this11, undefined);
|
|
42376
|
+
_assertClassBrand(_WistiaPlayer_brand, _this11, _renderEmbedTemplate).call(_this11);
|
|
41604
42377
|
});
|
|
41605
42378
|
(_this$api59 = this.api) === null || _this$api59 === void 0 ? void 0 : _this$api59.ready(function () {
|
|
41606
42379
|
// event for public consumption, exposed on our event types
|
|
41607
|
-
_this11.dispatchEvent(new CustomEvent(
|
|
42380
|
+
_this11.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .API_READY_EVENT */ .c5, {
|
|
41608
42381
|
detail: {
|
|
41609
42382
|
mediaId: mediaId
|
|
41610
42383
|
}
|
|
41611
42384
|
}));
|
|
41612
42385
|
|
|
41613
42386
|
// event for internal consumption, not exposed on our event types
|
|
41614
|
-
_this11.dispatchEvent(new CustomEvent(
|
|
42387
|
+
_this11.dispatchEvent(new CustomEvent(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .INTERNAL_API_ON_FIND_EVENT */ .iP, {
|
|
41615
42388
|
detail: {
|
|
41616
42389
|
mediaId: mediaId,
|
|
41617
42390
|
api: _this11.api
|
|
@@ -41620,13 +42393,18 @@ function _initPublicApi(mediaId, options) {
|
|
|
41620
42393
|
|
|
41621
42394
|
// Sync embed options from the public api back to the embed config
|
|
41622
42395
|
if (_this11.api) {
|
|
41623
|
-
Object.entries(_this11.api._attrs).forEach(function (
|
|
41624
|
-
var
|
|
41625
|
-
key =
|
|
41626
|
-
value =
|
|
41627
|
-
|
|
42396
|
+
Object.entries(_this11.api._attrs).forEach(function (_ref20) {
|
|
42397
|
+
var _ref21 = _slicedToArray(_ref20, 2),
|
|
42398
|
+
key = _ref21[0],
|
|
42399
|
+
value = _ref21[1];
|
|
42400
|
+
_classPrivateFieldGet(_playerData, _this11).updateEmbedOptionOverrides(_defineProperty({}, key, value));
|
|
41628
42401
|
});
|
|
41629
42402
|
}
|
|
42403
|
+
|
|
42404
|
+
// Updates our PlayerDataProvider and re-renders the thumbnail with the new embed options
|
|
42405
|
+
if (_this11.preloadThumbnail) {
|
|
42406
|
+
_assertClassBrand(_WistiaPlayer_brand, _this11, _renderPreloadThumbnail).call(_this11);
|
|
42407
|
+
}
|
|
41630
42408
|
});
|
|
41631
42409
|
}
|
|
41632
42410
|
/**
|
|
@@ -41650,7 +42428,7 @@ function _maybeInitializeMux() {
|
|
|
41650
42428
|
}
|
|
41651
42429
|
function _maybeInitializeMux2() {
|
|
41652
42430
|
_maybeInitializeMux2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
41653
|
-
var
|
|
42431
|
+
var _this16 = this;
|
|
41654
42432
|
var shouldRandomEnableMux, shouldEnableMuxForPlayer, embedType, mux;
|
|
41655
42433
|
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
41656
42434
|
while (1) switch (_context22.prev = _context22.next) {
|
|
@@ -41661,15 +42439,15 @@ function _maybeInitializeMux2() {
|
|
|
41661
42439
|
}
|
|
41662
42440
|
return _context22.abrupt("return");
|
|
41663
42441
|
case 2:
|
|
41664
|
-
shouldRandomEnableMux = (0,
|
|
41665
|
-
shouldEnableMuxForPlayer = (0,
|
|
42442
|
+
shouldRandomEnableMux = (0,_utilities_coinFlip_ts__WEBPACK_IMPORTED_MODULE_24__/* .didWinCoinFlip */ .k)(_utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_25__/* .MUX_PERCENTAGE_TO_ENABLE */ ._);
|
|
42443
|
+
shouldEnableMuxForPlayer = (0,_utilities_shouldEnableMux_ts__WEBPACK_IMPORTED_MODULE_25__/* .shouldEnableMux */ .J)(this.api, shouldRandomEnableMux) && (0,_utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_12__/* .isVisitorTrackingEnabled */ .D5)();
|
|
41666
42444
|
embedType = this.useWebComponent ? 'translated-web-component' : 'web-component';
|
|
41667
42445
|
if (!shouldEnableMuxForPlayer) {
|
|
41668
42446
|
_context22.next = 11;
|
|
41669
42447
|
break;
|
|
41670
42448
|
}
|
|
41671
42449
|
_context22.next = 8;
|
|
41672
|
-
return (0,
|
|
42450
|
+
return (0,_utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_5__/* .dynamicImport */ .$)('assets/external/wistia-mux.js');
|
|
41673
42451
|
case 8:
|
|
41674
42452
|
mux = _context22.sent;
|
|
41675
42453
|
mux.init(this.api, {
|
|
@@ -41678,8 +42456,8 @@ function _maybeInitializeMux2() {
|
|
|
41678
42456
|
this.addEventListener('visitor-tracking-change', function (event) {
|
|
41679
42457
|
var isTrackingEnabled = event.detail.isTrackingEnabled;
|
|
41680
42458
|
if (!isTrackingEnabled) {
|
|
41681
|
-
var
|
|
41682
|
-
(
|
|
42459
|
+
var _this16$api, _this16$api$mux;
|
|
42460
|
+
(_this16$api = _this16.api) === null || _this16$api === void 0 ? void 0 : (_this16$api$mux = _this16$api.mux) === null || _this16$api$mux === void 0 ? void 0 : _this16$api$mux.destroy();
|
|
41683
42461
|
}
|
|
41684
42462
|
});
|
|
41685
42463
|
case 11:
|
|
@@ -41690,41 +42468,119 @@ function _maybeInitializeMux2() {
|
|
|
41690
42468
|
}));
|
|
41691
42469
|
return _maybeInitializeMux2.apply(this, arguments);
|
|
41692
42470
|
}
|
|
42471
|
+
/**
|
|
42472
|
+
* Renders a template for the embed code
|
|
42473
|
+
* @returns {HTMLTemplateElement}
|
|
42474
|
+
*/
|
|
42475
|
+
function _renderEmbedTemplate() {
|
|
42476
|
+
var _this$embedHost2,
|
|
42477
|
+
_this12 = this;
|
|
42478
|
+
if (!_classPrivateFieldGet(_preactRoot, this)) {
|
|
42479
|
+
return;
|
|
42480
|
+
}
|
|
42481
|
+
var swatchUrl = getSwatchUrl(this.mediaId, (_this$embedHost2 = this.embedHost) !== null && _this$embedHost2 !== void 0 ? _this$embedHost2 : '');
|
|
42482
|
+
var swatchHeight = '100%';
|
|
42483
|
+
if (parseFloat(_classPrivateFieldGet(_paddingTop, this)) !== 0 && _classPrivateFieldGet(_paddingTop, this) !== '') {
|
|
42484
|
+
swatchHeight = "".concat(parseFloat(_classPrivateFieldGet(_paddingTop, this)), "px");
|
|
42485
|
+
}
|
|
42486
|
+
var playerBorderRadius = (0,_utilities_roundedPlayerDefaults_ts__WEBPACK_IMPORTED_MODULE_26__.getDefaultPlayerBorderRadius)({
|
|
42487
|
+
playerBorderRadius: this.playerBorderRadius,
|
|
42488
|
+
roundedPlayer: this.roundedPlayer
|
|
42489
|
+
});
|
|
42490
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .FK, null, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("style", null, ":host {\n display: flex;\n position: relative;\n ".concat(_classPrivateFieldGet(_preloadAspectRatio, this) !== undefined && "aspect-ratio: ".concat(_classPrivateFieldGet(_preloadAspectRatio, this), ";"), "\n }")), _assertClassBrand(_WistiaPlayer_brand, this, _shouldDisplaySwatch).call(this) && (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
42491
|
+
style: {
|
|
42492
|
+
height: swatchHeight,
|
|
42493
|
+
left: 0,
|
|
42494
|
+
position: 'absolute',
|
|
42495
|
+
top: 0,
|
|
42496
|
+
width: '100%'
|
|
42497
|
+
},
|
|
42498
|
+
class: "wistia_swatch"
|
|
42499
|
+
}, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
42500
|
+
style: {
|
|
42501
|
+
height: '100%',
|
|
42502
|
+
position: 'relative',
|
|
42503
|
+
width: '100%'
|
|
42504
|
+
}
|
|
42505
|
+
}, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
42506
|
+
style: {
|
|
42507
|
+
height: '100%',
|
|
42508
|
+
left: 0,
|
|
42509
|
+
overflow: 'hidden',
|
|
42510
|
+
position: 'absolute',
|
|
42511
|
+
top: 0,
|
|
42512
|
+
width: '100%',
|
|
42513
|
+
borderRadius: "".concat(playerBorderRadius, "px")
|
|
42514
|
+
}
|
|
42515
|
+
}, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("img", {
|
|
42516
|
+
src: swatchUrl,
|
|
42517
|
+
style: {
|
|
42518
|
+
filter: 'blur(5px)',
|
|
42519
|
+
height: '100%',
|
|
42520
|
+
objectFit: 'contain',
|
|
42521
|
+
width: '100%'
|
|
42522
|
+
},
|
|
42523
|
+
alt: "",
|
|
42524
|
+
"aria-hidden": "true"
|
|
42525
|
+
})))), (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
42526
|
+
ref: function ref(_ref22) {
|
|
42527
|
+
_classPrivateFieldSet(_preloadThumbnailRoot, _this12, _ref22);
|
|
42528
|
+
}
|
|
42529
|
+
})), _classPrivateFieldGet(_preactRoot, this));
|
|
42530
|
+
}
|
|
42531
|
+
/**
|
|
42532
|
+
* Renders a progressive thumbnail and a big play button as soon as possible,
|
|
42533
|
+
* while the rest of the player is loading.
|
|
42534
|
+
* @returns {void}
|
|
42535
|
+
*/
|
|
42536
|
+
function _renderPreloadThumbnail() {
|
|
42537
|
+
if (!_classPrivateFieldGet(_preloadThumbnailRoot, this)) {
|
|
42538
|
+
return;
|
|
42539
|
+
}
|
|
42540
|
+
(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .XX)((0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(_hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_2__/* .PlayerDataProvider */ .z, {
|
|
42541
|
+
embedOptions: _classPrivateFieldGet(_playerData, this).embedOptions,
|
|
42542
|
+
mediaData: _classPrivateFieldGet(_playerData, this).mediaData
|
|
42543
|
+
}, (0,preact__WEBPACK_IMPORTED_MODULE_0__.h)(_components_PreloadThumbnail_tsx__WEBPACK_IMPORTED_MODULE_1__/* .PreloadThumbnail */ .u, {
|
|
42544
|
+
isSwatchEnabled: _assertClassBrand(_WistiaPlayer_brand, this, _shouldDisplaySwatch).call(this),
|
|
42545
|
+
mediaId: this.mediaId,
|
|
42546
|
+
playerWidth: this.offsetWidth
|
|
42547
|
+
})), _classPrivateFieldGet(_preloadThumbnailRoot, this));
|
|
42548
|
+
}
|
|
41693
42549
|
/**
|
|
41694
42550
|
* Runs any methods associated with set attributes when the element is connected to the DOM
|
|
41695
42551
|
* @returns {void}
|
|
41696
42552
|
* @private
|
|
41697
42553
|
*/
|
|
41698
42554
|
function _runMethodsFromAttributes() {
|
|
41699
|
-
var
|
|
42555
|
+
var _this13 = this;
|
|
41700
42556
|
// We have to wait until the api is ready to set the current time
|
|
41701
42557
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'current-time') !== null) {
|
|
41702
42558
|
var setInitialCurrentTime = function setInitialCurrentTime() {
|
|
41703
|
-
var
|
|
41704
|
-
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand,
|
|
41705
|
-
var isClosedPopover = (
|
|
41706
|
-
var isMobile = (0,
|
|
41707
|
-
var shouldDelayUntilPlay =
|
|
41708
|
-
void ((
|
|
42559
|
+
var _ref23, _this13$api, _this13$api2;
|
|
42560
|
+
var newTime = Number(_assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, 'current-time'));
|
|
42561
|
+
var isClosedPopover = (_ref23 = ((_this13$api = _this13.api) === null || _this13$api === void 0 ? void 0 : _this13$api.popover) && !_this13.api.popover.isVisible()) !== null && _ref23 !== void 0 ? _ref23 : false;
|
|
42562
|
+
var isMobile = (0,_utilities_detect_js__WEBPACK_IMPORTED_MODULE_4__/* .detectIsMobile */ .GS)();
|
|
42563
|
+
var shouldDelayUntilPlay = _this13.state !== 'playing' && (isMobile || isClosedPopover);
|
|
42564
|
+
void ((_this13$api2 = _this13.api) === null || _this13$api2 === void 0 ? void 0 : _this13$api2.time(newTime, {
|
|
41709
42565
|
lazy: shouldDelayUntilPlay
|
|
41710
42566
|
}));
|
|
41711
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
41712
|
-
|
|
42567
|
+
_assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, 'currentTime', newTime);
|
|
42568
|
+
_this13.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .API_READY_EVENT */ .c5, setInitialCurrentTime);
|
|
41713
42569
|
};
|
|
41714
|
-
this.addEventListener(
|
|
42570
|
+
this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .API_READY_EVENT */ .c5, setInitialCurrentTime);
|
|
41715
42571
|
}
|
|
41716
42572
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'email') !== null) {
|
|
41717
42573
|
_assertClassBrand(_WistiaPlayer_brand, this, _updateEmail).call(this, _assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'email'));
|
|
41718
42574
|
}
|
|
41719
42575
|
if (_assertClassBrand(_WistiaPlayer_brand, this, _getValueFromAttribute).call(this, 'video-quality') !== null) {
|
|
41720
42576
|
var setVideoQualityFromAttribute = function setVideoQualityFromAttribute() {
|
|
41721
|
-
var
|
|
41722
|
-
var newQuality = _assertClassBrand(_WistiaPlayer_brand,
|
|
41723
|
-
(
|
|
41724
|
-
_assertClassBrand(_WistiaPlayer_brand,
|
|
41725
|
-
|
|
42577
|
+
var _this13$api3, _this13$api3$_impl;
|
|
42578
|
+
var newQuality = _assertClassBrand(_WistiaPlayer_brand, _this13, _getValueFromAttribute).call(_this13, 'video-quality');
|
|
42579
|
+
(_this13$api3 = _this13.api) === null || _this13$api3 === void 0 ? void 0 : (_this13$api3$_impl = _this13$api3._impl) === null || _this13$api3$_impl === void 0 ? void 0 : _this13$api3$_impl.setVideoQuality(newQuality);
|
|
42580
|
+
_assertClassBrand(_WistiaPlayer_brand, _this13, _setSyncedEmbedOption).call(_this13, 'videoQuality', newQuality);
|
|
42581
|
+
_this13.removeEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .API_READY_EVENT */ .c5, setVideoQualityFromAttribute);
|
|
41726
42582
|
};
|
|
41727
|
-
this.addEventListener(
|
|
42583
|
+
this.addEventListener(_utilities_eventConstants_ts__WEBPACK_IMPORTED_MODULE_22__/* .API_READY_EVENT */ .c5, setVideoQualityFromAttribute);
|
|
41728
42584
|
}
|
|
41729
42585
|
}
|
|
41730
42586
|
/**
|
|
@@ -41733,37 +42589,19 @@ function _runMethodsFromAttributes() {
|
|
|
41733
42589
|
* @private
|
|
41734
42590
|
*/
|
|
41735
42591
|
function _saveInitialAttributesFromDomOptions() {
|
|
41736
|
-
var
|
|
41737
|
-
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function (
|
|
41738
|
-
var
|
|
41739
|
-
value =
|
|
41740
|
-
return [_assertClassBrand(_WistiaPlayer_brand,
|
|
42592
|
+
var _this14 = this;
|
|
42593
|
+
var domOptions = Object.fromEntries(Object.entries(this.attributes).map(function (_ref24) {
|
|
42594
|
+
var _ref25 = _slicedToArray(_ref24, 2),
|
|
42595
|
+
value = _ref25[1];
|
|
42596
|
+
return [_assertClassBrand(_WistiaPlayer_brand, _this14, _kebabCaseToCamelCase).call(_this14, value.name), _assertClassBrand(_WistiaPlayer_brand, _this14, _getValueFromAttribute).call(_this14, value.name)];
|
|
41741
42597
|
}));
|
|
42598
|
+
_classPrivateFieldGet(_playerData, this).setDomEmbedOptionSource(domOptions);
|
|
41742
42599
|
|
|
41743
|
-
//
|
|
41744
|
-
|
|
41745
|
-
var finalOptions = _objectSpread(_objectSpread({}, domOptions), this.embedOptions);
|
|
42600
|
+
// Override the embed options from other sources with the options from the DOM
|
|
42601
|
+
var finalOptions = _objectSpread(_objectSpread({}, this.embedOptions), domOptions);
|
|
41746
42602
|
|
|
41747
42603
|
// The public api uses this store when it gathers options from our many different sources
|
|
41748
|
-
(0,
|
|
41749
|
-
}
|
|
41750
|
-
/**
|
|
41751
|
-
*
|
|
41752
|
-
* @param {EmbedOptions} obj embed options to merge in
|
|
41753
|
-
*/
|
|
41754
|
-
function _setEmbedOptions(obj) {
|
|
41755
|
-
var _classPrivateFieldGet9 = _classPrivateFieldGet(_mediaData, this),
|
|
41756
|
-
embedOptions = _classPrivateFieldGet9.embedOptions;
|
|
41757
|
-
var newEmbedOptions = lodash_merge__WEBPACK_IMPORTED_MODULE_0___default()(embedOptions, obj);
|
|
41758
|
-
_classPrivateFieldGet(_mediaData, this).embedOptions = newEmbedOptions;
|
|
41759
|
-
}
|
|
41760
|
-
/**
|
|
41761
|
-
*
|
|
41762
|
-
* @param {MediaData} obj mediaData to merge in
|
|
41763
|
-
*/
|
|
41764
|
-
function _setMediaData(obj) {
|
|
41765
|
-
var newMediaData = lodash_merge__WEBPACK_IMPORTED_MODULE_0___default()(_classPrivateFieldGet(_mediaData, this), obj);
|
|
41766
|
-
_classPrivateFieldSet(_mediaData, this, newMediaData);
|
|
42604
|
+
(0,_utilities_embedOptionStore_ts__WEBPACK_IMPORTED_MODULE_6__.setEmbedOptionStore)("__".concat(this.uniqueId, "_dom_options__"), finalOptions);
|
|
41767
42605
|
}
|
|
41768
42606
|
/**
|
|
41769
42607
|
* Sets both the value of an embed option from the public api
|
|
@@ -41781,7 +42619,22 @@ function _setSyncedEmbedOption(key, value) {
|
|
|
41781
42619
|
if (this.api) {
|
|
41782
42620
|
this.api._attrs[key] = value;
|
|
41783
42621
|
}
|
|
41784
|
-
|
|
42622
|
+
_classPrivateFieldGet(_playerData, this).updateEmbedOptionOverrides(_defineProperty({}, key, value));
|
|
42623
|
+
|
|
42624
|
+
// Updates our PlayerDataProvider and re-renders the thumbnail with the new embed option
|
|
42625
|
+
if (this.preloadThumbnail) {
|
|
42626
|
+
_assertClassBrand(_WistiaPlayer_brand, this, _renderPreloadThumbnail).call(this);
|
|
42627
|
+
}
|
|
42628
|
+
}
|
|
42629
|
+
/**
|
|
42630
|
+
* Determines if a swatch should be displayed based on the embed options
|
|
42631
|
+
* @returns {boolean}
|
|
42632
|
+
*/
|
|
42633
|
+
function _shouldDisplaySwatch() {
|
|
42634
|
+
// If this is a popover and it renders a thumbnail in its container, we'll want to show a swatch
|
|
42635
|
+
var popoverContent = _assertClassBrand(_WistiaPlayer_brand, this, _getSyncedEmbedOption).call(this, 'popoverContent');
|
|
42636
|
+
var isPopoverWithThumbnail = this.wistiaPopover && (popoverContent === undefined || popoverContent === '' || popoverContent === 'thumbnail');
|
|
42637
|
+
return this.swatch !== false && (!this.wistiaPopover || isPopoverWithThumbnail);
|
|
41785
42638
|
}
|
|
41786
42639
|
/**
|
|
41787
42640
|
* Saves new email within localstorage and dispatches an emailchange event
|
|
@@ -41791,10 +42644,10 @@ function _setSyncedEmbedOption(key, value) {
|
|
|
41791
42644
|
* @private
|
|
41792
42645
|
*/
|
|
41793
42646
|
function _updateEmail(email) {
|
|
41794
|
-
var
|
|
41795
|
-
(0,
|
|
42647
|
+
var _this15 = this;
|
|
42648
|
+
(0,_utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_13__/* .updateWistiaLocalStorage */ .$B)(function (localStorage) {
|
|
41796
42649
|
// eslint-disable-next-line no-param-reassign
|
|
41797
|
-
localStorage[_classPrivateGetter(_WistiaPlayer_brand,
|
|
42650
|
+
localStorage[_classPrivateGetter(_WistiaPlayer_brand, _this15, _get_pageUrl)] = _objectSpread(_objectSpread({}, localStorage[_classPrivateGetter(_WistiaPlayer_brand, _this15, _get_pageUrl)]), {}, {
|
|
41798
42651
|
trackEmail: email
|
|
41799
42652
|
});
|
|
41800
42653
|
});
|
|
@@ -41805,7 +42658,7 @@ function _updateEmail(email) {
|
|
|
41805
42658
|
}));
|
|
41806
42659
|
}
|
|
41807
42660
|
var getSwatchMetaData = /*#__PURE__*/function () {
|
|
41808
|
-
var
|
|
42661
|
+
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(url) {
|
|
41809
42662
|
var swatch;
|
|
41810
42663
|
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
41811
42664
|
while (1) switch (_context20.prev = _context20.next) {
|
|
@@ -41823,7 +42676,7 @@ var getSwatchMetaData = /*#__PURE__*/function () {
|
|
|
41823
42676
|
}, _callee20);
|
|
41824
42677
|
}));
|
|
41825
42678
|
return function getSwatchMetaData(_x17) {
|
|
41826
|
-
return
|
|
42679
|
+
return _ref16.apply(this, arguments);
|
|
41827
42680
|
};
|
|
41828
42681
|
}();
|
|
41829
42682
|
|
|
@@ -41834,37 +42687,34 @@ var getSwatchMetaData = /*#__PURE__*/function () {
|
|
|
41834
42687
|
* @returns {Promise<HTMLStyleElement>}
|
|
41835
42688
|
*/
|
|
41836
42689
|
var wistiaSwatchElement = /*#__PURE__*/function () {
|
|
41837
|
-
var
|
|
41838
|
-
var
|
|
42690
|
+
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(mediaId, embedHost) {
|
|
42691
|
+
var swatchUrl, swatchImg, naturalHeight, naturalWidth, ratio, style;
|
|
41839
42692
|
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
41840
42693
|
while (1) switch (_context21.prev = _context21.next) {
|
|
41841
42694
|
case 0:
|
|
41842
|
-
|
|
41843
|
-
|
|
41844
|
-
_context21.next = 4;
|
|
42695
|
+
swatchUrl = getSwatchUrl(mediaId, embedHost);
|
|
42696
|
+
_context21.next = 3;
|
|
41845
42697
|
return getSwatchMetaData(swatchUrl);
|
|
41846
|
-
case
|
|
42698
|
+
case 3:
|
|
41847
42699
|
swatchImg = _context21.sent;
|
|
41848
42700
|
naturalHeight = swatchImg.naturalHeight, naturalWidth = swatchImg.naturalWidth;
|
|
41849
42701
|
ratio = naturalHeight / naturalWidth * 100;
|
|
41850
42702
|
style = document.createElement('style');
|
|
41851
42703
|
style.innerHTML = "\n wistia-player[media-id='".concat(mediaId, "']:not(:defined) {\n padding: ").concat(ratio, "% 0 0 0;\n background: url(").concat(swatchUrl, ");\n background-size: contain;\n filter: blur(5px);\n display: block;\n }\n ");
|
|
41852
42704
|
return _context21.abrupt("return", style);
|
|
41853
|
-
case
|
|
42705
|
+
case 9:
|
|
41854
42706
|
case "end":
|
|
41855
42707
|
return _context21.stop();
|
|
41856
42708
|
}
|
|
41857
42709
|
}, _callee21);
|
|
41858
42710
|
}));
|
|
41859
42711
|
return function wistiaSwatchElement(_x18, _x19) {
|
|
41860
|
-
return
|
|
42712
|
+
return _ref17.apply(this, arguments);
|
|
41861
42713
|
};
|
|
41862
42714
|
}();
|
|
41863
42715
|
if (customElements.get('wistia-player') === undefined) {
|
|
41864
42716
|
customElements.define('wistia-player', WistiaPlayer);
|
|
41865
42717
|
}
|
|
41866
|
-
})();
|
|
41867
|
-
|
|
41868
42718
|
var __webpack_exports__WistiaPlayer = __webpack_exports__.$;
|
|
41869
42719
|
var __webpack_exports__wistiaSwatchElement = __webpack_exports__.A;
|
|
41870
42720
|
export { __webpack_exports__WistiaPlayer as WistiaPlayer, __webpack_exports__wistiaSwatchElement as wistiaSwatchElement };
|