@wistia/wistia-player-react 0.0.21 → 0.0.22
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/WistiaPlayer.cjs
CHANGED
|
@@ -3104,7 +3104,7 @@ var init_wistia_player = __esm({
|
|
|
3104
3104
|
var _utilities_color_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__3(5417);
|
|
3105
3105
|
var _utilities_core_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(1627);
|
|
3106
3106
|
var _utilities_detect_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__3(7231);
|
|
3107
|
-
var
|
|
3107
|
+
var _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__3(1341);
|
|
3108
3108
|
var _utilities_interFontFamily_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__3(8213);
|
|
3109
3109
|
function _slicedToArray2(arr, i2) {
|
|
3110
3110
|
return _arrayWithHoles2(arr) || _iterableToArrayLimit2(arr, i2) || _unsupportedIterableToArray2(arr, i2) || _nonIterableRest2();
|
|
@@ -3256,7 +3256,7 @@ var init_wistia_player = __esm({
|
|
|
3256
3256
|
})), shouldDisplayDuration ? (0, preact__WEBPACK_IMPORTED_MODULE_0__2.h)("div", {
|
|
3257
3257
|
class: "w-bpb-time",
|
|
3258
3258
|
style: timeStyle
|
|
3259
|
-
}, (0,
|
|
3259
|
+
}, (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_7__.G5)(duration)) : null);
|
|
3260
3260
|
};
|
|
3261
3261
|
}
|
|
3262
3262
|
),
|
|
@@ -3356,14 +3356,14 @@ var init_wistia_player = __esm({
|
|
|
3356
3356
|
var utilities_interFontFamily_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__3(8213);
|
|
3357
3357
|
var utilities_color_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__3(5417);
|
|
3358
3358
|
var utilities_obj_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(731);
|
|
3359
|
-
var
|
|
3360
|
-
var
|
|
3361
|
-
var
|
|
3362
|
-
var
|
|
3363
|
-
var
|
|
3364
|
-
var
|
|
3365
|
-
var
|
|
3366
|
-
var
|
|
3359
|
+
var utilities_elem_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(7715);
|
|
3360
|
+
var preact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(5181);
|
|
3361
|
+
var utilities_detect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(7231);
|
|
3362
|
+
var utilities_isMouseDown_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__3(3745);
|
|
3363
|
+
var utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__3(7157);
|
|
3364
|
+
var _TimeBadge_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__3(9536);
|
|
3365
|
+
var _TouchEvents_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__3(1291);
|
|
3366
|
+
var _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__3(1341);
|
|
3367
3367
|
function _extends() {
|
|
3368
3368
|
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
3369
3369
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
@@ -3513,7 +3513,7 @@ var init_wistia_player = __esm({
|
|
|
3513
3513
|
return ("string" === r ? String : Number)(t);
|
|
3514
3514
|
}
|
|
3515
3515
|
(0, utilities_interNumbersFontFaceSemiBold_js__WEBPACK_IMPORTED_MODULE_1__.EH)();
|
|
3516
|
-
var detect = (0,
|
|
3516
|
+
var detect = (0, utilities_detect_js__WEBPACK_IMPORTED_MODULE_5__.o1)();
|
|
3517
3517
|
var PLAYBAR_SIZE_CALCULATION_OFFSET_TO_COUNTER_LINE_CAPPING = 1;
|
|
3518
3518
|
var ChapterMarkers;
|
|
3519
3519
|
var ChapterTitles;
|
|
@@ -3542,7 +3542,7 @@ var init_wistia_player = __esm({
|
|
|
3542
3542
|
if (onFocus) {
|
|
3543
3543
|
onFocus(e);
|
|
3544
3544
|
}
|
|
3545
|
-
if (!(0,
|
|
3545
|
+
if (!(0, utilities_isMouseDown_js__WEBPACK_IMPORTED_MODULE_6__.y)()) {
|
|
3546
3546
|
_this.setState({
|
|
3547
3547
|
isKeyboardFocused: true
|
|
3548
3548
|
});
|
|
@@ -3610,8 +3610,8 @@ var init_wistia_player = __esm({
|
|
|
3610
3610
|
dragMode: true,
|
|
3611
3611
|
wasBeforePlayOnDrag: _this.props.isBeforePlay
|
|
3612
3612
|
});
|
|
3613
|
-
(0,
|
|
3614
|
-
(0,
|
|
3613
|
+
(0, utilities_elem_js__WEBPACK_IMPORTED_MODULE_3__.elemBind)(document, "mousemove", _this.onMouseMoveDragging);
|
|
3614
|
+
(0, utilities_elem_js__WEBPACK_IMPORTED_MODULE_3__.elemBind)(document, "mouseup", _this.onMouseUpDragging);
|
|
3615
3615
|
});
|
|
3616
3616
|
_defineProperty2(_this, "onMouseMoveDragging", function(e) {
|
|
3617
3617
|
e.preventDefault();
|
|
@@ -3632,8 +3632,8 @@ var init_wistia_player = __esm({
|
|
|
3632
3632
|
isOverPlayhead: false
|
|
3633
3633
|
});
|
|
3634
3634
|
_this.handleWithProp("onDragEnd", e, percent);
|
|
3635
|
-
(0,
|
|
3636
|
-
(0,
|
|
3635
|
+
(0, utilities_elem_js__WEBPACK_IMPORTED_MODULE_3__.elemUnbind)(document, "mousemove", _this.onMouseMoveDragging);
|
|
3636
|
+
(0, utilities_elem_js__WEBPACK_IMPORTED_MODULE_3__.elemUnbind)(document, "mouseup", _this.onMouseUpDragging);
|
|
3637
3637
|
});
|
|
3638
3638
|
_defineProperty2(_this, "onTouchStart", function(e) {
|
|
3639
3639
|
e.preventDefault();
|
|
@@ -3701,7 +3701,7 @@ var init_wistia_player = __esm({
|
|
|
3701
3701
|
_this.startAnimLoopIfPlaying();
|
|
3702
3702
|
});
|
|
3703
3703
|
_defineProperty2(_this, "loadStoryboard", function() {
|
|
3704
|
-
return (0,
|
|
3704
|
+
return (0, utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_7__.$)("assets/external/vulcanV2Player/video/ui_components/Storyboard.js").then(function(moduleClass) {
|
|
3705
3705
|
Storyboard = moduleClass.Storyboard;
|
|
3706
3706
|
_this.setState({
|
|
3707
3707
|
loadedStoryboard: true
|
|
@@ -3709,7 +3709,7 @@ var init_wistia_player = __esm({
|
|
|
3709
3709
|
});
|
|
3710
3710
|
});
|
|
3711
3711
|
_defineProperty2(_this, "loadChapters", function() {
|
|
3712
|
-
return Promise.all([(0,
|
|
3712
|
+
return Promise.all([(0, utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_7__.$)("assets/external/".concat(UI_COMPONENTS_ROOT, "/ChapterMarkers.js")), (0, utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_7__.$)("assets/external/".concat(UI_COMPONENTS_ROOT, "/ChapterTitles.js"))]).then(function(_ref) {
|
|
3713
3713
|
var _ref2 = _slicedToArray2(_ref, 2), moduleChapterMarkers = _ref2[0], moduleChapterTitles = _ref2[1];
|
|
3714
3714
|
ChapterMarkers = moduleChapterMarkers.ChapterMarkers;
|
|
3715
3715
|
ChapterTitles = moduleChapterTitles.ChapterTitles;
|
|
@@ -3975,15 +3975,15 @@ var init_wistia_player = __esm({
|
|
|
3975
3975
|
var _this4 = this;
|
|
3976
3976
|
this.maybeCallOnResize();
|
|
3977
3977
|
this.oldWrapperElem = this.wrapperElem;
|
|
3978
|
-
return (0,
|
|
3978
|
+
return (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)("div", {
|
|
3979
3979
|
class: "".concat(W_PLAYBAR, "-wrapper w-css-reset w-css-reset-tree"),
|
|
3980
3980
|
style: this.wrapperStyle()
|
|
3981
|
-
}, this.props.shouldShowTime ? this.renderTime() : void 0, (0,
|
|
3981
|
+
}, this.props.shouldShowTime ? this.renderTime() : void 0, (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)("div", {
|
|
3982
3982
|
style: {
|
|
3983
3983
|
width: "100%",
|
|
3984
3984
|
position: "relative"
|
|
3985
3985
|
}
|
|
3986
|
-
}, (0,
|
|
3986
|
+
}, (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)("div", {
|
|
3987
3987
|
"aria-label": "Playbar",
|
|
3988
3988
|
"aria-orientation": "horizontal",
|
|
3989
3989
|
"aria-valuemax": this.props.duration,
|
|
@@ -4003,21 +4003,21 @@ var init_wistia_player = __esm({
|
|
|
4003
4003
|
role: "slider",
|
|
4004
4004
|
style: this.dragAreaStyle(),
|
|
4005
4005
|
tabindex: this.props.isVisible ? 0 : -1
|
|
4006
|
-
}, (0,
|
|
4006
|
+
}, (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)("canvas", {
|
|
4007
4007
|
height: this.canvasHeight(),
|
|
4008
4008
|
ref: function ref(el) {
|
|
4009
4009
|
return _this4.canvasEl = el;
|
|
4010
4010
|
},
|
|
4011
4011
|
style: this.canvasStyle(),
|
|
4012
4012
|
width: this.canvasWidth()
|
|
4013
|
-
}), (0,
|
|
4013
|
+
}), (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)("div", {
|
|
4014
4014
|
onMouseEnter: this.onMouseEnterPlayhead,
|
|
4015
4015
|
onMouseLeave: this.onMouseLeavePlayhead,
|
|
4016
4016
|
ref: function ref(el) {
|
|
4017
4017
|
return _this4.playheadEl = el;
|
|
4018
4018
|
},
|
|
4019
4019
|
style: this.playheadStyle()
|
|
4020
|
-
}), this.props.shouldShowStoryboard && typeof Storyboard !== "undefined" ? (0,
|
|
4020
|
+
}), this.props.shouldShowStoryboard && typeof Storyboard !== "undefined" ? (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)(Storyboard, _extends({}, this.props, {
|
|
4021
4021
|
hasChapters: this.state.loadedChapters,
|
|
4022
4022
|
isHovering: this.state.isHovering,
|
|
4023
4023
|
getDurationBeforeCuts: this.props.getDurationBeforeCuts,
|
|
@@ -4025,12 +4025,12 @@ var init_wistia_player = __esm({
|
|
|
4025
4025
|
hoverPercent: this.state.hoverPercent,
|
|
4026
4026
|
left: this.props.left + this.timeWidth() + this.timeLeftPadding() + this.leftBarMargin(),
|
|
4027
4027
|
width: this.unfilledBarWidth()
|
|
4028
|
-
})) : null, this.props.shouldShowTimeOnHover && this.state.isHovering && (0,
|
|
4028
|
+
})) : null, this.props.shouldShowTimeOnHover && this.state.isHovering && (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)(_TimeBadge_jsx__WEBPACK_IMPORTED_MODULE_8__.A, {
|
|
4029
4029
|
left: this.state.hoverPercent * this.unfilledBarWidth(),
|
|
4030
4030
|
time: this.getHoverTime(),
|
|
4031
4031
|
height: this.props.height,
|
|
4032
4032
|
widthOfPlaybar: this.unfilledBarWidth()
|
|
4033
|
-
})), this.props.chapters && this.props.chapters.length > 0 && typeof ChapterMarkers !== "undefined" && (0,
|
|
4033
|
+
})), this.props.chapters && this.props.chapters.length > 0 && typeof ChapterMarkers !== "undefined" && (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)("div", {
|
|
4034
4034
|
"aria-label": "Chapter Markers",
|
|
4035
4035
|
role: "toolbar",
|
|
4036
4036
|
style: {
|
|
@@ -4043,13 +4043,13 @@ var init_wistia_player = __esm({
|
|
|
4043
4043
|
position: "absolute",
|
|
4044
4044
|
width: "100%"
|
|
4045
4045
|
}
|
|
4046
|
-
}, (0,
|
|
4046
|
+
}, (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)(ChapterMarkers, _extends({}, this.props, {
|
|
4047
4047
|
onFocus: this.onFocusChapterMarkers,
|
|
4048
4048
|
paddingLeft: this.leftBarMargin(),
|
|
4049
4049
|
paddingRight: this.rightBarMargin(),
|
|
4050
4050
|
timeLeft: -10,
|
|
4051
4051
|
timeRight: -10
|
|
4052
|
-
})), this.props.shouldShowChapterTitles ? (0,
|
|
4052
|
+
})), this.props.shouldShowChapterTitles ? (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)(ChapterTitles, _extends({}, this.props, {
|
|
4053
4053
|
left: this.props.left + this.timeWidth() + this.timeLeftPadding() + this.leftBarMargin(),
|
|
4054
4054
|
width: this.unfilledBarWidth()
|
|
4055
4055
|
})) : null)));
|
|
@@ -4058,7 +4058,7 @@ var init_wistia_player = __esm({
|
|
|
4058
4058
|
key: "renderTime",
|
|
4059
4059
|
value: function renderTime() {
|
|
4060
4060
|
var _this5 = this;
|
|
4061
|
-
return (0,
|
|
4061
|
+
return (0, preact__WEBPACK_IMPORTED_MODULE_4__.h)("div", {
|
|
4062
4062
|
class: "".concat(W_PLAYBAR, "__time"),
|
|
4063
4063
|
style: this.timeStyle(),
|
|
4064
4064
|
ref: function ref(e) {
|
|
@@ -4072,7 +4072,7 @@ var init_wistia_player = __esm({
|
|
|
4072
4072
|
this.drawCanvas();
|
|
4073
4073
|
this.lastRenderedAt = Date.now();
|
|
4074
4074
|
if (detect.touchScreen && this.wrapperElem) {
|
|
4075
|
-
this.touchEvents = new
|
|
4075
|
+
this.touchEvents = new _TouchEvents_js__WEBPACK_IMPORTED_MODULE_9__.A(this.wrapperElem);
|
|
4076
4076
|
this.touchEvents.on("touchstart", this.onTouchStart);
|
|
4077
4077
|
}
|
|
4078
4078
|
this.maybeUpdateTimeText();
|
|
@@ -4098,7 +4098,7 @@ var init_wistia_player = __esm({
|
|
|
4098
4098
|
if (this.touchEvents) {
|
|
4099
4099
|
this.touchEvents.destroy();
|
|
4100
4100
|
}
|
|
4101
|
-
this.touchEvents = new
|
|
4101
|
+
this.touchEvents = new _TouchEvents_js__WEBPACK_IMPORTED_MODULE_9__.A(this.wrapperElem);
|
|
4102
4102
|
this.touchEvents.on("touchstart", this.onTouchStart);
|
|
4103
4103
|
}
|
|
4104
4104
|
if (props.isPlaying && !this.state.hasPlayed) {
|
|
@@ -4123,8 +4123,8 @@ var init_wistia_player = __esm({
|
|
|
4123
4123
|
}, {
|
|
4124
4124
|
key: "componentWillUnmount",
|
|
4125
4125
|
value: function componentWillUnmount() {
|
|
4126
|
-
(0,
|
|
4127
|
-
(0,
|
|
4126
|
+
(0, utilities_elem_js__WEBPACK_IMPORTED_MODULE_3__.elemUnbind)(document, "mousemove", this.onMouseMoveDragging);
|
|
4127
|
+
(0, utilities_elem_js__WEBPACK_IMPORTED_MODULE_3__.elemUnbind)(document, "mouseup", this.onMouseUpDragging);
|
|
4128
4128
|
if (this.touchEvents) {
|
|
4129
4129
|
this.touchEvents.destroy();
|
|
4130
4130
|
this.touchEvents = null;
|
|
@@ -4133,7 +4133,7 @@ var init_wistia_player = __esm({
|
|
|
4133
4133
|
}, {
|
|
4134
4134
|
key: "getHoverTime",
|
|
4135
4135
|
value: function getHoverTime() {
|
|
4136
|
-
return (0,
|
|
4136
|
+
return (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.G5)(Math.round(this.state.hoverPercent * this.props.duration));
|
|
4137
4137
|
}
|
|
4138
4138
|
}, {
|
|
4139
4139
|
key: "placeholderStyle",
|
|
@@ -4182,9 +4182,9 @@ var init_wistia_player = __esm({
|
|
|
4182
4182
|
key: "rightBarMargin",
|
|
4183
4183
|
value: function rightBarMargin() {
|
|
4184
4184
|
var _this$props4 = this.props, duration = _this$props4.duration, scale = _this$props4.scale;
|
|
4185
|
-
var normalDurationText = (0,
|
|
4185
|
+
var normalDurationText = (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.G5)(15 * 60);
|
|
4186
4186
|
var normalDurationWidth = normalDurationText.length * 7;
|
|
4187
|
-
var actualDurationText = (0,
|
|
4187
|
+
var actualDurationText = (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.G5)(duration);
|
|
4188
4188
|
var actualDurationWidth = actualDurationText.length * 7;
|
|
4189
4189
|
var mult = normalDurationWidth < actualDurationWidth ? normalDurationWidth / actualDurationWidth : 1;
|
|
4190
4190
|
return 10 * mult * scale;
|
|
@@ -4226,7 +4226,7 @@ var init_wistia_player = __esm({
|
|
|
4226
4226
|
if (!shouldShowTime) {
|
|
4227
4227
|
return 0;
|
|
4228
4228
|
}
|
|
4229
|
-
var durationText = (0,
|
|
4229
|
+
var durationText = (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.G5)(duration);
|
|
4230
4230
|
return durationText.length * 7 * scale;
|
|
4231
4231
|
}
|
|
4232
4232
|
}, {
|
|
@@ -4309,15 +4309,15 @@ var init_wistia_player = __esm({
|
|
|
4309
4309
|
var state = this.state;
|
|
4310
4310
|
var props = this.props;
|
|
4311
4311
|
if (state.dragMode || state.wasBeforePlayOnDrag && (this.props.isSeeking || !state.hasPlayed)) {
|
|
4312
|
-
return (0,
|
|
4312
|
+
return (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.G5)(state.dragPercent * props.duration);
|
|
4313
4313
|
}
|
|
4314
4314
|
if (state.hasPlayed || this.props.getCurrentTime() >= 1) {
|
|
4315
|
-
return (0,
|
|
4315
|
+
return (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.G5)(props.getCurrentTime());
|
|
4316
4316
|
}
|
|
4317
4317
|
if (props.resumableTime) {
|
|
4318
|
-
return (0,
|
|
4318
|
+
return (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.G5)(props.resumableTime);
|
|
4319
4319
|
}
|
|
4320
|
-
return (0,
|
|
4320
|
+
return (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.G5)(props.duration);
|
|
4321
4321
|
}
|
|
4322
4322
|
}, {
|
|
4323
4323
|
key: "ariaValueNow",
|
|
@@ -4330,12 +4330,12 @@ var init_wistia_player = __esm({
|
|
|
4330
4330
|
}, {
|
|
4331
4331
|
key: "ariaValueText",
|
|
4332
4332
|
value: function ariaValueText() {
|
|
4333
|
-
return (0,
|
|
4333
|
+
return (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_10__.NV)(this.props.getCurrentTime());
|
|
4334
4334
|
}
|
|
4335
4335
|
}, {
|
|
4336
4336
|
key: "cachePositionDetails",
|
|
4337
4337
|
value: function cachePositionDetails() {
|
|
4338
|
-
this.offset = (0,
|
|
4338
|
+
this.offset = (0, utilities_elem_js__WEBPACK_IMPORTED_MODULE_3__.elemOffset)(this.wrapperElem);
|
|
4339
4339
|
}
|
|
4340
4340
|
}, {
|
|
4341
4341
|
key: "getPercentFromPossiblyExternalMouseEvent",
|
|
@@ -4408,7 +4408,7 @@ var init_wistia_player = __esm({
|
|
|
4408
4408
|
this.emptyColor = new utilities_color_js__WEBPACK_IMPORTED_MODULE_12__.Q(color).lighten(40).alpha(0.3);
|
|
4409
4409
|
}
|
|
4410
4410
|
}]);
|
|
4411
|
-
}(
|
|
4411
|
+
}(preact__WEBPACK_IMPORTED_MODULE_4__.uA);
|
|
4412
4412
|
const __WEBPACK_DEFAULT_EXPORT__ = Playbar;
|
|
4413
4413
|
}
|
|
4414
4414
|
),
|
|
@@ -6457,9 +6457,9 @@ var init_wistia_player = __esm({
|
|
|
6457
6457
|
var preact__WEBPACK_IMPORTED_MODULE_0__2 = __webpack_require__3(5181);
|
|
6458
6458
|
var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(3817);
|
|
6459
6459
|
var utilities_interFontFamily_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(8213);
|
|
6460
|
-
var
|
|
6461
|
-
var
|
|
6462
|
-
var
|
|
6460
|
+
var utilities_useInterval_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(8584);
|
|
6461
|
+
var _shared_translations_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(4730);
|
|
6462
|
+
var _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(1341);
|
|
6463
6463
|
function _slicedToArray2(arr, i2) {
|
|
6464
6464
|
return _arrayWithHoles2(arr) || _iterableToArrayLimit2(arr, i2) || _unsupportedIterableToArray2(arr, i2) || _nonIterableRest2();
|
|
6465
6465
|
}
|
|
@@ -6503,7 +6503,7 @@ var init_wistia_player = __esm({
|
|
|
6503
6503
|
function _arrayWithHoles2(arr) {
|
|
6504
6504
|
if (Array.isArray(arr)) return arr;
|
|
6505
6505
|
}
|
|
6506
|
-
(0,
|
|
6506
|
+
(0, _shared_translations_js__WEBPACK_IMPORTED_MODULE_3__.Oj)("en-US", {
|
|
6507
6507
|
LIVE_STREAM_STATUS_COUNTDOWN: "Stream begins in",
|
|
6508
6508
|
LIVE_STREAM_STATUS_LIVE: "Live",
|
|
6509
6509
|
LIVE_STREAM_STATUS_LIVE_ARIA: "The stream is now live",
|
|
@@ -6529,7 +6529,7 @@ var init_wistia_player = __esm({
|
|
|
6529
6529
|
};
|
|
6530
6530
|
var day = date.toLocaleString(navigator.language, dayOptions);
|
|
6531
6531
|
var time = date.toLocaleString(navigator.language, timeOptions);
|
|
6532
|
-
return "".concat(day, " ").concat((0,
|
|
6532
|
+
return "".concat(day, " ").concat((0, _shared_translations_js__WEBPACK_IMPORTED_MODULE_3__.sC)(languageCode, "LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR"), " ").concat(time);
|
|
6533
6533
|
}
|
|
6534
6534
|
function InidicatorIcon(_ref) {
|
|
6535
6535
|
var state = _ref.state;
|
|
@@ -6588,7 +6588,7 @@ var init_wistia_player = __esm({
|
|
|
6588
6588
|
function isCloseToStarting(scheduledFor) {
|
|
6589
6589
|
if (!scheduledFor) return false;
|
|
6590
6590
|
var oneHour = 60 * 60;
|
|
6591
|
-
var diff = (0,
|
|
6591
|
+
var diff = (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_4__.G4)(/* @__PURE__ */ new Date(), scheduledFor);
|
|
6592
6592
|
return diff < oneHour;
|
|
6593
6593
|
}
|
|
6594
6594
|
function MountingPoint(_ref2) {
|
|
@@ -6683,7 +6683,7 @@ var init_wistia_player = __esm({
|
|
|
6683
6683
|
}, [state]);
|
|
6684
6684
|
(0, preact_hooks__WEBPACK_IMPORTED_MODULE_1__.vJ)(function() {
|
|
6685
6685
|
if (state === "countdown") {
|
|
6686
|
-
var remainingSeconds = (0,
|
|
6686
|
+
var remainingSeconds = (0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_4__.G4)(/* @__PURE__ */ new Date(), scheduledFor);
|
|
6687
6687
|
var ceiledSeconds = Math.ceil(remainingSeconds);
|
|
6688
6688
|
var remainingMinutes = Math.ceil(remainingSeconds / 60);
|
|
6689
6689
|
var lessThanAMinute = remainingSeconds / 60;
|
|
@@ -6696,7 +6696,7 @@ var init_wistia_player = __esm({
|
|
|
6696
6696
|
_this.props.setAriaLiveText(translationText);
|
|
6697
6697
|
}
|
|
6698
6698
|
}, [currentTime]);
|
|
6699
|
-
(0,
|
|
6699
|
+
(0, utilities_useInterval_js__WEBPACK_IMPORTED_MODULE_2__.$)(function() {
|
|
6700
6700
|
return setCurrentTime(/* @__PURE__ */ new Date());
|
|
6701
6701
|
}, state === "live" || state === "ended" ? null : 1e3);
|
|
6702
6702
|
var getStatusIndicatorAriaText = function getStatusIndicatorAriaText2() {
|
|
@@ -6723,12 +6723,12 @@ var init_wistia_player = __esm({
|
|
|
6723
6723
|
case "beforeStream":
|
|
6724
6724
|
return "".concat(translation("SCHEDULED_FOR"), " ").concat(formatScheduledFor(scheduledFor, playerLanguage.code));
|
|
6725
6725
|
case "countdown":
|
|
6726
|
-
return "".concat(translation("COUNTDOWN"), " ").concat((0,
|
|
6726
|
+
return "".concat(translation("COUNTDOWN"), " ").concat((0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_4__.G5)((0, _utilities_duration_ts__WEBPACK_IMPORTED_MODULE_4__.G4)(/* @__PURE__ */ new Date(), scheduledFor)));
|
|
6727
6727
|
default:
|
|
6728
6728
|
}
|
|
6729
6729
|
};
|
|
6730
6730
|
var translation = function translation2(key) {
|
|
6731
|
-
return (0,
|
|
6731
|
+
return (0, _shared_translations_js__WEBPACK_IMPORTED_MODULE_3__.sC)(playerLanguage.code, "LIVE_STREAM_STATUS_".concat(key));
|
|
6732
6732
|
};
|
|
6733
6733
|
return (0, preact__WEBPACK_IMPORTED_MODULE_0__2.h)(MountingPoint, {
|
|
6734
6734
|
scale,
|
|
@@ -9935,6 +9935,130 @@ var init_wistia_player = __esm({
|
|
|
9935
9935
|
}
|
|
9936
9936
|
),
|
|
9937
9937
|
/***/
|
|
9938
|
+
1341: (
|
|
9939
|
+
/***/
|
|
9940
|
+
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
9941
|
+
__webpack_require__3.d(__webpack_exports__3, {
|
|
9942
|
+
/* harmony export */
|
|
9943
|
+
G4: () => (
|
|
9944
|
+
/* binding */
|
|
9945
|
+
getSecondsRemaining
|
|
9946
|
+
),
|
|
9947
|
+
/* harmony export */
|
|
9948
|
+
G5: () => (
|
|
9949
|
+
/* binding */
|
|
9950
|
+
flexibleDuration
|
|
9951
|
+
),
|
|
9952
|
+
/* harmony export */
|
|
9953
|
+
NV: () => (
|
|
9954
|
+
/* binding */
|
|
9955
|
+
accessibilityDuration
|
|
9956
|
+
),
|
|
9957
|
+
/* harmony export */
|
|
9958
|
+
Rp: () => (
|
|
9959
|
+
/* binding */
|
|
9960
|
+
formattedDurationToSeconds
|
|
9961
|
+
),
|
|
9962
|
+
/* harmony export */
|
|
9963
|
+
ab: () => (
|
|
9964
|
+
/* binding */
|
|
9965
|
+
secondsConverter
|
|
9966
|
+
)
|
|
9967
|
+
/* harmony export */
|
|
9968
|
+
});
|
|
9969
|
+
var iso8601_duration__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(6633);
|
|
9970
|
+
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(4586);
|
|
9971
|
+
var SECONDS_IN_HOUR = 3600;
|
|
9972
|
+
var MINUTES_IN_HOUR = 60;
|
|
9973
|
+
var SECONDS_IN_MINUTE = 60;
|
|
9974
|
+
var padNumber = function padNumber2(num) {
|
|
9975
|
+
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
9976
|
+
var result = "".concat(num);
|
|
9977
|
+
while (result.length < length) {
|
|
9978
|
+
result = "0".concat(result);
|
|
9979
|
+
}
|
|
9980
|
+
return result;
|
|
9981
|
+
};
|
|
9982
|
+
var secondsConverter = function secondsConverter2(total, format) {
|
|
9983
|
+
var hours = 0;
|
|
9984
|
+
var minutes = 0;
|
|
9985
|
+
var seconds = 0;
|
|
9986
|
+
var remainingDuration = total;
|
|
9987
|
+
var useHours = format.includes("h");
|
|
9988
|
+
var useMinutes = format.includes("m");
|
|
9989
|
+
if (useHours && remainingDuration > 0) {
|
|
9990
|
+
hours += Math.floor(remainingDuration / SECONDS_IN_HOUR);
|
|
9991
|
+
remainingDuration %= SECONDS_IN_HOUR;
|
|
9992
|
+
}
|
|
9993
|
+
if (useMinutes && remainingDuration > 0) {
|
|
9994
|
+
minutes += Math.floor(remainingDuration / MINUTES_IN_HOUR);
|
|
9995
|
+
remainingDuration %= MINUTES_IN_HOUR;
|
|
9996
|
+
}
|
|
9997
|
+
seconds = Math.round(remainingDuration);
|
|
9998
|
+
if (useHours && minutes === MINUTES_IN_HOUR) {
|
|
9999
|
+
hours += 1;
|
|
10000
|
+
minutes = 0;
|
|
10001
|
+
}
|
|
10002
|
+
if (useMinutes && seconds === SECONDS_IN_MINUTE) {
|
|
10003
|
+
minutes += 1;
|
|
10004
|
+
seconds = 0;
|
|
10005
|
+
}
|
|
10006
|
+
return {
|
|
10007
|
+
hours,
|
|
10008
|
+
minutes,
|
|
10009
|
+
seconds
|
|
10010
|
+
};
|
|
10011
|
+
};
|
|
10012
|
+
var flexibleDuration = function flexibleDuration2(total) {
|
|
10013
|
+
var _secondsConverter = secondsConverter(total, "hms"), hours = _secondsConverter.hours, minutes = _secondsConverter.minutes, seconds = _secondsConverter.seconds;
|
|
10014
|
+
if (hours === 0) {
|
|
10015
|
+
return "".concat(minutes, ":").concat(padNumber(seconds, 2));
|
|
10016
|
+
}
|
|
10017
|
+
return "".concat(hours, ":").concat(padNumber(minutes, 2), ":").concat(padNumber(seconds, 2));
|
|
10018
|
+
};
|
|
10019
|
+
var formattedDurationToSeconds = function formattedDurationToSeconds2(dur) {
|
|
10020
|
+
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.gD)(dur) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.Et)(dur)) {
|
|
10021
|
+
return dur;
|
|
10022
|
+
}
|
|
10023
|
+
try {
|
|
10024
|
+
var parsed = (0, iso8601_duration__WEBPACK_IMPORTED_MODULE_0__.qg)(dur.toUpperCase());
|
|
10025
|
+
return (0, iso8601_duration__WEBPACK_IMPORTED_MODULE_0__.fP)(parsed);
|
|
10026
|
+
} catch (_e) {
|
|
10027
|
+
}
|
|
10028
|
+
try {
|
|
10029
|
+
var _parsed = (0, iso8601_duration__WEBPACK_IMPORTED_MODULE_0__.qg)("PT".concat(dur.toUpperCase()));
|
|
10030
|
+
return (0, iso8601_duration__WEBPACK_IMPORTED_MODULE_0__.fP)(_parsed);
|
|
10031
|
+
} catch (_e) {
|
|
10032
|
+
}
|
|
10033
|
+
return dur;
|
|
10034
|
+
};
|
|
10035
|
+
var accessibilityDuration = function accessibilityDuration2(duration) {
|
|
10036
|
+
var _secondsConverter2 = secondsConverter(duration, "hms"), hours = _secondsConverter2.hours, minutes = _secondsConverter2.minutes, seconds = _secondsConverter2.seconds;
|
|
10037
|
+
var zeroHours = hours === 0;
|
|
10038
|
+
var zeroMinutes = minutes === 0;
|
|
10039
|
+
if (zeroHours && zeroMinutes) {
|
|
10040
|
+
return "".concat(seconds, " second").concat(seconds === 1 ? "" : "s");
|
|
10041
|
+
}
|
|
10042
|
+
var hoursText = zeroHours ? "" : "".concat(hours, " hour").concat(hours === 1 ? "" : "s");
|
|
10043
|
+
var minText = zeroMinutes ? "" : "".concat(minutes, " minute").concat(hours === 1 ? "" : "s");
|
|
10044
|
+
return "".concat(hoursText, " ").concat(minText).trim();
|
|
10045
|
+
};
|
|
10046
|
+
var humanReadableDuration = function humanReadableDuration2(duration) {
|
|
10047
|
+
var _secondsConverter3 = secondsConverter(duration, "hms"), hours = _secondsConverter3.hours, minutes = _secondsConverter3.minutes, seconds = _secondsConverter3.seconds;
|
|
10048
|
+
var zeroHours = hours === 0;
|
|
10049
|
+
var zeroMinutes = minutes === 0;
|
|
10050
|
+
if (zeroHours && zeroMinutes) return "".concat(seconds, " Sec");
|
|
10051
|
+
var hoursText = zeroHours ? "" : "".concat(hours, " Hr");
|
|
10052
|
+
var minText = zeroMinutes ? "" : "".concat(minutes, " Min");
|
|
10053
|
+
return "".concat(hoursText, " ").concat(minText).trim();
|
|
10054
|
+
};
|
|
10055
|
+
var getSecondsRemaining = function getSecondsRemaining2(start, end) {
|
|
10056
|
+
var remaining = end.getTime() - start.getTime();
|
|
10057
|
+
return remaining / 1e3;
|
|
10058
|
+
};
|
|
10059
|
+
}
|
|
10060
|
+
),
|
|
10061
|
+
/***/
|
|
9938
10062
|
7157: (
|
|
9939
10063
|
/***/
|
|
9940
10064
|
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
@@ -10223,7 +10347,7 @@ var init_wistia_player = __esm({
|
|
|
10223
10347
|
case 0:
|
|
10224
10348
|
options = _args.length > 1 && _args[1] !== void 0 ? _args[1] : {};
|
|
10225
10349
|
host = (_options$host = options.host) !== null && _options$host !== void 0 ? _options$host : (0, _hosts_js__WEBPACK_IMPORTED_MODULE_0__.eV1HostWithPort)();
|
|
10226
|
-
taggedVersion = "0.0.
|
|
10350
|
+
taggedVersion = "0.0.22";
|
|
10227
10351
|
if (!(taggedVersion !== "" && taggedVersion.length > 0 && options.mediaData !== true)) {
|
|
10228
10352
|
_context.next = 5;
|
|
10229
10353
|
break;
|
|
@@ -10996,6 +11120,36 @@ var init_wistia_player = __esm({
|
|
|
10996
11120
|
}
|
|
10997
11121
|
),
|
|
10998
11122
|
/***/
|
|
11123
|
+
7229: (
|
|
11124
|
+
/***/
|
|
11125
|
+
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
11126
|
+
__webpack_require__3.d(__webpack_exports__3, {
|
|
11127
|
+
/* harmony export */
|
|
11128
|
+
J: () => (
|
|
11129
|
+
/* binding */
|
|
11130
|
+
secondsToIso8601Duration
|
|
11131
|
+
)
|
|
11132
|
+
/* harmony export */
|
|
11133
|
+
});
|
|
11134
|
+
var _duration_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(1341);
|
|
11135
|
+
var SECONDS_IN_MINUTE = 60;
|
|
11136
|
+
var secondsToIso8601Duration = function secondsToIso8601Duration2(totalSeconds) {
|
|
11137
|
+
var _secondsConverter = (0, _duration_ts__WEBPACK_IMPORTED_MODULE_0__.ab)(totalSeconds, "hms"), hours = _secondsConverter.hours, minutes = _secondsConverter.minutes, seconds = _secondsConverter.seconds;
|
|
11138
|
+
var result = "";
|
|
11139
|
+
if (hours) {
|
|
11140
|
+
result += "".concat(hours, "H");
|
|
11141
|
+
}
|
|
11142
|
+
if (minutes || totalSeconds > SECONDS_IN_MINUTE && seconds !== 0) {
|
|
11143
|
+
result += "".concat(minutes, "M");
|
|
11144
|
+
}
|
|
11145
|
+
if (seconds || totalSeconds === 0) {
|
|
11146
|
+
result += "".concat(seconds, "S");
|
|
11147
|
+
}
|
|
11148
|
+
return result;
|
|
11149
|
+
};
|
|
11150
|
+
}
|
|
11151
|
+
),
|
|
11152
|
+
/***/
|
|
10999
11153
|
3441: (
|
|
11000
11154
|
/***/
|
|
11001
11155
|
(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) => {
|
|
@@ -12117,7 +12271,7 @@ var init_wistia_player = __esm({
|
|
|
12117
12271
|
getChannelStorage = __webpack_require__3(3010).TI;
|
|
12118
12272
|
maybeLoadAndSetupEmbedLinksThrottled = __webpack_require__3(4621).v;
|
|
12119
12273
|
debounce = __webpack_require__3(251).s;
|
|
12120
|
-
formattedDurationToSeconds = __webpack_require__3(
|
|
12274
|
+
formattedDurationToSeconds = __webpack_require__3(1341).Rp;
|
|
12121
12275
|
inferQualityRangeFromOpts = __webpack_require__3(2370).N;
|
|
12122
12276
|
generateRelativeBlockCss = __webpack_require__3(4135).U;
|
|
12123
12277
|
ref7 = __webpack_require__3(3280), getEmbedOptionStore = ref7.getEmbedOptionStore, GLOBAL_ID_KEY = ref7.GLOBAL_ID_KEY;
|
|
@@ -16117,7 +16271,7 @@ var init_wistia_player = __esm({
|
|
|
16117
16271
|
if (this.isValidKey(this._eventKey)) {
|
|
16118
16272
|
return this._eventKey;
|
|
16119
16273
|
}
|
|
16120
|
-
this._eventKey = uniqId("
|
|
16274
|
+
this._eventKey = uniqId("f69ef2cef507a17feb9e99db684346e8".substring(0, 7) + "_");
|
|
16121
16275
|
this.publicApi.trigger("eventkeychange", this._eventKey);
|
|
16122
16276
|
return this._eventKey;
|
|
16123
16277
|
};
|
|
@@ -17588,7 +17742,7 @@ var init_wistia_player = __esm({
|
|
|
17588
17742
|
var first = (0, _util_getOrSetIsFirst_js__WEBPACK_IMPORTED_MODULE_3__.u)(_this.hashedId, _ds_index_js__WEBPACK_IMPORTED_MODULE_2__.p.Scope.LIVE_EVENT, "load");
|
|
17589
17743
|
_classPrivateFieldSet2(_playSession, _this, _ds_index_js__WEBPACK_IMPORTED_MODULE_2__.p.load(_classPrivateFieldGet2(_clockStart, _this), {
|
|
17590
17744
|
visitor_key: _classPrivateFieldGet2(_api2, _this).visitorKey(),
|
|
17591
|
-
session_key: (0, utilities_uniqId_js__WEBPACK_IMPORTED_MODULE_5__.b)("".concat("
|
|
17745
|
+
session_key: (0, utilities_uniqId_js__WEBPACK_IMPORTED_MODULE_5__.b)("".concat("f69ef2cef507a17feb9e99db684346e8".substring(0, 7), "_")),
|
|
17592
17746
|
embed_url: _classPrivateFieldGet2(_api2, _this)._attrs.pageUrl,
|
|
17593
17747
|
referrer_url: _classPrivateFieldGet2(_api2, _this)._attrs.referrerUrl,
|
|
17594
17748
|
account_id: mediaData.accountId,
|
|
@@ -21782,7 +21936,7 @@ var init_wistia_player = __esm({
|
|
|
21782
21936
|
}, {
|
|
21783
21937
|
key: "generate",
|
|
21784
21938
|
value: function generate() {
|
|
21785
|
-
return (0, utilities_uniqId_js__WEBPACK_IMPORTED_MODULE_4__.b)("".concat("
|
|
21939
|
+
return (0, utilities_uniqId_js__WEBPACK_IMPORTED_MODULE_4__.b)("".concat("f69ef2cef507a17feb9e99db684346e8".substring(0, 7), "_"));
|
|
21786
21940
|
}
|
|
21787
21941
|
}]);
|
|
21788
21942
|
}();
|
|
@@ -28648,7 +28802,7 @@ var init_wistia_player = __esm({
|
|
|
28648
28802
|
Object.keys(optionSources).forEach(function(key) {
|
|
28649
28803
|
optionSources[key] = ensureOptionsAreNonCircular(optionSources[key]);
|
|
28650
28804
|
});
|
|
28651
|
-
var playerVersion = "0.0.
|
|
28805
|
+
var playerVersion = "0.0.22".length > 0 ? "0.0.22" : _utilities_player_version_js__WEBPACK_IMPORTED_MODULE_44__.H;
|
|
28652
28806
|
var data = {
|
|
28653
28807
|
player_version: playerVersion,
|
|
28654
28808
|
media_key: this._mediaData.mediaKey,
|
|
@@ -36971,126 +37125,6 @@ var init_wistia_player = __esm({
|
|
|
36971
37125
|
}
|
|
36972
37126
|
),
|
|
36973
37127
|
/***/
|
|
36974
|
-
264: (
|
|
36975
|
-
/***/
|
|
36976
|
-
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
36977
|
-
__webpack_require__3.d(__webpack_exports__3, {
|
|
36978
|
-
/* harmony export */
|
|
36979
|
-
G4: () => (
|
|
36980
|
-
/* binding */
|
|
36981
|
-
getSecondsRemaining
|
|
36982
|
-
),
|
|
36983
|
-
/* harmony export */
|
|
36984
|
-
G5: () => (
|
|
36985
|
-
/* binding */
|
|
36986
|
-
flexibleDuration
|
|
36987
|
-
),
|
|
36988
|
-
/* harmony export */
|
|
36989
|
-
NV: () => (
|
|
36990
|
-
/* binding */
|
|
36991
|
-
accessibilityDuration
|
|
36992
|
-
),
|
|
36993
|
-
/* harmony export */
|
|
36994
|
-
Rp: () => (
|
|
36995
|
-
/* binding */
|
|
36996
|
-
formattedDurationToSeconds
|
|
36997
|
-
),
|
|
36998
|
-
/* harmony export */
|
|
36999
|
-
ab: () => (
|
|
37000
|
-
/* binding */
|
|
37001
|
-
secondsConverter
|
|
37002
|
-
)
|
|
37003
|
-
/* harmony export */
|
|
37004
|
-
});
|
|
37005
|
-
var iso8601_duration__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(6633);
|
|
37006
|
-
var _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(4586);
|
|
37007
|
-
var flexibleDuration = function flexibleDuration2(total) {
|
|
37008
|
-
var _secondsConverter = secondsConverter(total, "hms"), hours = _secondsConverter.hours, minutes = _secondsConverter.minutes, seconds = _secondsConverter.seconds;
|
|
37009
|
-
if (hours === 0) {
|
|
37010
|
-
return "".concat(minutes, ":").concat(padNumber(seconds, 2));
|
|
37011
|
-
}
|
|
37012
|
-
return "".concat(hours, ":").concat(padNumber(minutes, 2), ":").concat(padNumber(seconds, 2));
|
|
37013
|
-
};
|
|
37014
|
-
var formattedDurationToSeconds = function formattedDurationToSeconds2(dur) {
|
|
37015
|
-
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.gD)(dur) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_1__.Et)(dur)) {
|
|
37016
|
-
return dur;
|
|
37017
|
-
}
|
|
37018
|
-
try {
|
|
37019
|
-
var parsed = (0, iso8601_duration__WEBPACK_IMPORTED_MODULE_0__.qg)(dur.toUpperCase());
|
|
37020
|
-
return (0, iso8601_duration__WEBPACK_IMPORTED_MODULE_0__.fP)(parsed);
|
|
37021
|
-
} catch (e) {
|
|
37022
|
-
}
|
|
37023
|
-
try {
|
|
37024
|
-
var _parsed = (0, iso8601_duration__WEBPACK_IMPORTED_MODULE_0__.qg)("PT".concat(dur.toUpperCase()));
|
|
37025
|
-
return (0, iso8601_duration__WEBPACK_IMPORTED_MODULE_0__.fP)(_parsed);
|
|
37026
|
-
} catch (e) {
|
|
37027
|
-
}
|
|
37028
|
-
return dur;
|
|
37029
|
-
};
|
|
37030
|
-
var accessibilityDuration = function accessibilityDuration2(duration) {
|
|
37031
|
-
var _secondsConverter2 = secondsConverter(duration, "hms"), hours = _secondsConverter2.hours, minutes = _secondsConverter2.minutes, seconds = _secondsConverter2.seconds;
|
|
37032
|
-
var zeroHours = hours === 0;
|
|
37033
|
-
var zeroMinutes = minutes === 0;
|
|
37034
|
-
if (zeroHours && zeroMinutes) {
|
|
37035
|
-
return "".concat(seconds, " second").concat(seconds === 1 ? "" : "s");
|
|
37036
|
-
}
|
|
37037
|
-
var hoursText = zeroHours ? "" : "".concat(hours, " hour").concat(hours === 1 ? "" : "s");
|
|
37038
|
-
var minText = zeroMinutes ? "" : "".concat(minutes, " minute").concat(hours === 1 ? "" : "s");
|
|
37039
|
-
return "".concat(hoursText, " ").concat(minText).trim();
|
|
37040
|
-
};
|
|
37041
|
-
var humanReadableDuration = function humanReadableDuration2(duration) {
|
|
37042
|
-
var _secondsConverter3 = secondsConverter(duration, "hms"), hours = _secondsConverter3.hours, minutes = _secondsConverter3.minutes, seconds = _secondsConverter3.seconds;
|
|
37043
|
-
var zeroHours = hours === 0;
|
|
37044
|
-
var zeroMinutes = minutes === 0;
|
|
37045
|
-
if (zeroHours && zeroMinutes) return "".concat(seconds, " Sec");
|
|
37046
|
-
var hoursText = zeroHours ? "" : "".concat(hours, " Hr");
|
|
37047
|
-
var minText = zeroMinutes ? "" : "".concat(minutes, " Min");
|
|
37048
|
-
return "".concat(hoursText, " ").concat(minText).trim();
|
|
37049
|
-
};
|
|
37050
|
-
var padNumber = function padNumber2(num) {
|
|
37051
|
-
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
37052
|
-
var result = "".concat(num);
|
|
37053
|
-
while (result.length < length) {
|
|
37054
|
-
result = "0".concat(result);
|
|
37055
|
-
}
|
|
37056
|
-
return result;
|
|
37057
|
-
};
|
|
37058
|
-
var secondsConverter = function secondsConverter2(total, format) {
|
|
37059
|
-
var hours = 0;
|
|
37060
|
-
var minutes = 0;
|
|
37061
|
-
var seconds = 0;
|
|
37062
|
-
var useHours = /h/.test(format);
|
|
37063
|
-
var useMinutes = /m/.test(format);
|
|
37064
|
-
if (useHours && total > 0) {
|
|
37065
|
-
hours += Math.floor(total / 3600);
|
|
37066
|
-
total %= 3600;
|
|
37067
|
-
}
|
|
37068
|
-
if (useMinutes && total > 0) {
|
|
37069
|
-
minutes += Math.floor(total / 60);
|
|
37070
|
-
total %= 60;
|
|
37071
|
-
}
|
|
37072
|
-
seconds = Math.round(total);
|
|
37073
|
-
if (useHours && minutes === 60) {
|
|
37074
|
-
hours += 1;
|
|
37075
|
-
minutes = 0;
|
|
37076
|
-
}
|
|
37077
|
-
if (useMinutes && seconds === 60) {
|
|
37078
|
-
minutes += 1;
|
|
37079
|
-
seconds = 0;
|
|
37080
|
-
}
|
|
37081
|
-
return {
|
|
37082
|
-
hours,
|
|
37083
|
-
minutes,
|
|
37084
|
-
seconds
|
|
37085
|
-
};
|
|
37086
|
-
};
|
|
37087
|
-
var getSecondsRemaining = function getSecondsRemaining2(start, end) {
|
|
37088
|
-
var remaining = end.getTime() - start.getTime();
|
|
37089
|
-
return remaining / 1e3;
|
|
37090
|
-
};
|
|
37091
|
-
}
|
|
37092
|
-
),
|
|
37093
|
-
/***/
|
|
37094
37128
|
7715: (
|
|
37095
37129
|
/***/
|
|
37096
37130
|
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
@@ -39289,27 +39323,27 @@ var init_wistia_player = __esm({
|
|
|
39289
39323
|
)
|
|
39290
39324
|
/* harmony export */
|
|
39291
39325
|
});
|
|
39292
|
-
var utilities_iso8601Helper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(4162);
|
|
39293
39326
|
var utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__3(3441);
|
|
39294
|
-
var
|
|
39295
|
-
var
|
|
39296
|
-
var
|
|
39297
|
-
var
|
|
39327
|
+
var utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(731);
|
|
39328
|
+
var utilities_hosts_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5857);
|
|
39329
|
+
var utilities_assets_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(7209);
|
|
39330
|
+
var utilities_url_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__3(2671);
|
|
39331
|
+
var _iso8601Helper_ts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__3(7229);
|
|
39298
39332
|
var _normalizeChapters_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__3(9128);
|
|
39299
39333
|
var generateAudioJsonLd = function generateAudioJsonLd2(mediaData) {
|
|
39300
39334
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
39301
39335
|
var videoWidth = options.videoWidth, videoHeight = options.videoHeight;
|
|
39302
39336
|
var embedOptions = options.embedOptions;
|
|
39303
39337
|
if (!embedOptions) {
|
|
39304
|
-
embedOptions = (0,
|
|
39338
|
+
embedOptions = (0, utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__.cast)((0, utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__.clone)(mediaData.embedOptions));
|
|
39305
39339
|
}
|
|
39306
39340
|
var obj = {
|
|
39307
39341
|
"@context": "http://schema.org/",
|
|
39308
|
-
"@id": "https://".concat((0,
|
|
39342
|
+
"@id": "https://".concat((0, utilities_hosts_js__WEBPACK_IMPORTED_MODULE_1__.cdnFastWistiaNetHost)(), "/embed/iframe/").concat(mediaData.hashedId),
|
|
39309
39343
|
"@type": "AudioObject",
|
|
39310
|
-
duration: "PT".concat((0,
|
|
39344
|
+
duration: "PT".concat((0, _iso8601Helper_ts__WEBPACK_IMPORTED_MODULE_4__.J)(mediaData.duration)),
|
|
39311
39345
|
name: mediaData.name,
|
|
39312
|
-
thumbnailUrl: (0,
|
|
39346
|
+
thumbnailUrl: (0, utilities_assets_js__WEBPACK_IMPORTED_MODULE_2__.stillUrl)(mediaData.assets, {
|
|
39313
39347
|
ext: "jpg",
|
|
39314
39348
|
protocol: "https:",
|
|
39315
39349
|
videoWidth,
|
|
@@ -39328,7 +39362,7 @@ var init_wistia_player = __esm({
|
|
|
39328
39362
|
};
|
|
39329
39363
|
var generateEmbedUrl = function generateEmbedUrl2(mediaData, embedOptions) {
|
|
39330
39364
|
var _mediaData$embedOptio;
|
|
39331
|
-
var baseUrl = "https://".concat((0,
|
|
39365
|
+
var baseUrl = "https://".concat((0, utilities_hosts_js__WEBPACK_IMPORTED_MODULE_1__.cdnFastWistiaNetHost)(), "/embed/iframe/").concat(mediaData.hashedId);
|
|
39332
39366
|
if ((0, utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__.Vq)(mediaData, embedOptions) && !(0, utilities_keyMoments_ts__WEBPACK_IMPORTED_MODULE_5__.Qy)(embedOptions) && (_mediaData$embedOptio = mediaData.embedOptions.plugin) !== null && _mediaData$embedOptio !== void 0 && _mediaData$embedOptio.videoThumbnail) {
|
|
39333
39367
|
return "".concat(baseUrl, "?wseektoaction=true");
|
|
39334
39368
|
}
|
|
@@ -39338,17 +39372,17 @@ var init_wistia_player = __esm({
|
|
|
39338
39372
|
var assets = mediaData.assets;
|
|
39339
39373
|
if (mediaData.mediaType === "Audio") {
|
|
39340
39374
|
var _readyPublicMp3s$;
|
|
39341
|
-
return (_readyPublicMp3s$ = (0,
|
|
39375
|
+
return (_readyPublicMp3s$ = (0, utilities_assets_js__WEBPACK_IMPORTED_MODULE_2__.readyPublicMp3s)(assets)[0]) === null || _readyPublicMp3s$ === void 0 ? void 0 : _readyPublicMp3s$.url;
|
|
39342
39376
|
}
|
|
39343
|
-
var availableMp4s = (0,
|
|
39377
|
+
var availableMp4s = (0, utilities_assets_js__WEBPACK_IMPORTED_MODULE_2__.readyPublicMp4s)(assets);
|
|
39344
39378
|
if (availableMp4s.length === 0) {
|
|
39345
39379
|
return;
|
|
39346
39380
|
}
|
|
39347
|
-
var highestQuality = (0,
|
|
39381
|
+
var highestQuality = (0, utilities_assets_js__WEBPACK_IMPORTED_MODULE_2__.findClosestAssetByQuality)(availableMp4s, 1080);
|
|
39348
39382
|
if (!highestQuality) {
|
|
39349
39383
|
return;
|
|
39350
39384
|
}
|
|
39351
|
-
var url = new
|
|
39385
|
+
var url = new utilities_url_js__WEBPACK_IMPORTED_MODULE_3__.Url(highestQuality.url);
|
|
39352
39386
|
url.ext("m3u8");
|
|
39353
39387
|
return url.absolute();
|
|
39354
39388
|
};
|
|
@@ -39357,15 +39391,15 @@ var init_wistia_player = __esm({
|
|
|
39357
39391
|
var videoWidth = options.videoWidth, videoHeight = options.videoHeight;
|
|
39358
39392
|
var embedOptions = options.embedOptions;
|
|
39359
39393
|
if (!embedOptions) {
|
|
39360
|
-
embedOptions = (0,
|
|
39394
|
+
embedOptions = (0, utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__.cast)((0, utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__.clone)(mediaData.embedOptions));
|
|
39361
39395
|
}
|
|
39362
39396
|
var obj = {
|
|
39363
39397
|
"@context": "http://schema.org/",
|
|
39364
|
-
"@id": "https://".concat((0,
|
|
39398
|
+
"@id": "https://".concat((0, utilities_hosts_js__WEBPACK_IMPORTED_MODULE_1__.cdnFastWistiaNetHost)(), "/embed/iframe/").concat(mediaData.hashedId),
|
|
39365
39399
|
"@type": "VideoObject",
|
|
39366
|
-
duration: "PT".concat((0,
|
|
39400
|
+
duration: "PT".concat((0, _iso8601Helper_ts__WEBPACK_IMPORTED_MODULE_4__.J)(mediaData.duration)),
|
|
39367
39401
|
name: mediaData.name,
|
|
39368
|
-
thumbnailUrl: (0,
|
|
39402
|
+
thumbnailUrl: (0, utilities_assets_js__WEBPACK_IMPORTED_MODULE_2__.stillUrl)(mediaData.assets, {
|
|
39369
39403
|
ext: "jpg",
|
|
39370
39404
|
protocol: "https:",
|
|
39371
39405
|
videoWidth,
|
|
@@ -39554,35 +39588,6 @@ var init_wistia_player = __esm({
|
|
|
39554
39588
|
}
|
|
39555
39589
|
),
|
|
39556
39590
|
/***/
|
|
39557
|
-
4162: (
|
|
39558
|
-
/***/
|
|
39559
|
-
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
39560
|
-
__webpack_require__3.d(__webpack_exports__3, {
|
|
39561
|
-
/* harmony export */
|
|
39562
|
-
J: () => (
|
|
39563
|
-
/* binding */
|
|
39564
|
-
secondsToIso8601Duration
|
|
39565
|
-
)
|
|
39566
|
-
/* harmony export */
|
|
39567
|
-
});
|
|
39568
|
-
var _duration_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(264);
|
|
39569
|
-
var secondsToIso8601Duration = function secondsToIso8601Duration2(totalSeconds) {
|
|
39570
|
-
var _secondsConverter = (0, _duration_js__WEBPACK_IMPORTED_MODULE_0__.ab)(totalSeconds, "hms"), hours = _secondsConverter.hours, minutes = _secondsConverter.minutes, seconds = _secondsConverter.seconds;
|
|
39571
|
-
var result = "";
|
|
39572
|
-
if (hours) {
|
|
39573
|
-
result += "".concat(hours, "H");
|
|
39574
|
-
}
|
|
39575
|
-
if (minutes || totalSeconds > 60 && seconds !== 0) {
|
|
39576
|
-
result += "".concat(minutes, "M");
|
|
39577
|
-
}
|
|
39578
|
-
if (seconds || totalSeconds === 0) {
|
|
39579
|
-
result += "".concat(seconds, "S");
|
|
39580
|
-
}
|
|
39581
|
-
return result;
|
|
39582
|
-
};
|
|
39583
|
-
}
|
|
39584
|
-
),
|
|
39585
|
-
/***/
|
|
39586
39591
|
438: (
|
|
39587
39592
|
/***/
|
|
39588
39593
|
(__unused_webpack___webpack_module__2, __webpack_exports__3, __webpack_require__3) => {
|
|
@@ -42096,7 +42101,7 @@ var init_wistia_player = __esm({
|
|
|
42096
42101
|
/* harmony export */
|
|
42097
42102
|
});
|
|
42098
42103
|
var runScript = function runScript2(src2, timeout) {
|
|
42099
|
-
var taggedVersion = "0.0.
|
|
42104
|
+
var taggedVersion = "0.0.22";
|
|
42100
42105
|
return new Promise(function(resolve, reject) {
|
|
42101
42106
|
if (timeout == null) {
|
|
42102
42107
|
timeout = 8e3;
|