@desynova-digital/player 4.0.85 → 4.0.86

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.
Files changed (71) hide show
  1. package/Manager.js +8 -9
  2. package/actions/player.js +54 -3
  3. package/components/AudioMeter.js +27 -28
  4. package/components/BigPlayButton.js +16 -17
  5. package/components/ImageViewer.js +16 -17
  6. package/components/MarkerBar.js +16 -17
  7. package/components/Menu.js +2 -2
  8. package/components/Player.js +179 -107
  9. package/components/PlayerHeader.js +120 -65
  10. package/components/Playlist.js +14 -15
  11. package/components/PointersBar.js +19 -20
  12. package/components/PosterImage.js +1 -1
  13. package/components/SDOutline.js +2 -2
  14. package/components/Shortcut.js +85 -75
  15. package/components/Slider.js +33 -33
  16. package/components/TagsBar.js +15 -16
  17. package/components/Video.js +127 -123
  18. package/components/control-bar/AudioTracksMenuButton.js +14 -15
  19. package/components/control-bar/CameraButton.js +15 -16
  20. package/components/control-bar/CaptionControlMenuButton.js +19 -20
  21. package/components/control-bar/CommentsButton.js +16 -17
  22. package/components/control-bar/ControlBar.js +17 -18
  23. package/components/control-bar/EditorControlMenuButton.js +16 -17
  24. package/components/control-bar/ForwardControl.js +1 -1
  25. package/components/control-bar/ForwardReplayControl.js +15 -16
  26. package/components/control-bar/FullscreenToggle.js +24 -19
  27. package/components/control-bar/PlayToggle.js +15 -16
  28. package/components/control-bar/ReplayControl.js +1 -1
  29. package/components/control-bar/SettingsMenuButton.js +4 -4
  30. package/components/control-bar/SubtitleLanguagesMenuButton.js +14 -15
  31. package/components/control-bar/SubtitleMovementMenu.js +16 -17
  32. package/components/control-bar/VolumeMenuButton.js +16 -17
  33. package/components/control-bar/ZoomMenuButton.js +16 -17
  34. package/components/marking-controls/MarkInControl.js +15 -16
  35. package/components/marking-controls/MarkOutControl.js +15 -16
  36. package/components/marking-controls/MarkingAddButton.js +15 -16
  37. package/components/marking-controls/MarkingControl.js +2 -2
  38. package/components/marking-controls/MarkingDeleteButton.js +15 -16
  39. package/components/marking-controls/MarkingDuration.js +2 -2
  40. package/components/marking-controls/MarkingPreview.js +15 -16
  41. package/components/marking-controls/TimecodeFormatSelector.js +7 -7
  42. package/components/progress-bar/AudioWaveform.js +15 -16
  43. package/components/progress-bar/LoadProgressBar.js +1 -1
  44. package/components/progress-bar/MouseTimeDisplay.js +1 -1
  45. package/components/progress-bar/PlayProgressBar.js +2 -2
  46. package/components/progress-bar/ProgressControl.js +19 -20
  47. package/components/progress-bar/RenderCommentMarkers.js +186 -0
  48. package/components/progress-bar/SeekBar.js +31 -32
  49. package/components/progress-bar/Timeline.js +14 -15
  50. package/components/settings-menu-control/CameraControl.js +3 -3
  51. package/components/settings-menu-control/ChildMenuComponent.js +28 -29
  52. package/components/settings-menu-control/ParentMenuComponent.js +17 -18
  53. package/components/settings-menu-control/PlaybackRateControl.js +15 -16
  54. package/components/settings-menu-control/SafeAreaControl.js +15 -16
  55. package/components/settings-menu-control/SettingsMenu.js +12 -12
  56. package/components/time-controls/CurrentTimeDisplay.js +7 -7
  57. package/components/time-controls/DurationDisplay.js +2 -2
  58. package/components/time-controls/TimeDivider.js +2 -2
  59. package/components/volume-control/VolumeBar.js +24 -25
  60. package/components/volume-control/VolumeControl.js +1 -1
  61. package/components/volume-control/VolumeLevel.js +2 -2
  62. package/components/zoom-control/ZoomBar.js +23 -24
  63. package/components/zoom-control/ZoomLevel.js +2 -2
  64. package/index.js +2 -2
  65. package/package.json +1 -1
  66. package/reducers/operation.js +2 -2
  67. package/reducers/player.js +2 -2
  68. package/utils/browser.js +14 -14
  69. package/utils/dom.js +18 -18
  70. package/utils/fullscreen.js +5 -6
  71. package/utils/index.js +54 -54
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
15
+ 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."); }
16
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
19
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
20
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
21
+ /* ----------------------------------------------------------
22
+ TIMELINE MAIN WRAPPER
23
+ ---------------------------------------------------------- */
24
+ var MarkerTimeline = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n height: 15px;\n"])));
25
+
26
+ /* ----------------------------------------------------------
27
+ MARKER DOT (start dot)
28
+ ---------------------------------------------------------- */
29
+ var MarkerDot = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n bottom: -8px;\n transform: translateX(-50%);\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #47d2c7;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #0a0f18;\n font-weight: 700;\n font-size: 11px;\n cursor: pointer;\n z-index: 9000;\n\n &:hover {\n background: #3bbfb6;\n }\n"])));
30
+
31
+ /* ----------------------------------------------------------
32
+ END MARKER DOT (VISIBLE ONLY ON HOVER)
33
+ ---------------------------------------------------------- */
34
+ var EndMarkerDot = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n bottom: -8px;\n transform: translateX(-50%);\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #2ee8dd;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9000;\n opacity: 0;\n transition: opacity 0.15s ease-out;\n cursor: pointer;\n\n &::after {\n content: '';\n width: 10px;\n height: 10px;\n background: white;\n border-radius: 50%;\n }\n"])));
35
+
36
+ /* ----------------------------------------------------------
37
+ HORIZONTAL SEGMENT LINE
38
+ ---------------------------------------------------------- */
39
+ var MarkerLine = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n bottom: 4px;\n height: 3px;\n background: #47d2c7;\n border-radius: 2px;\n z-index: 8000;\n\n opacity: 0;\n transition: opacity 0.15s ease-out;\n"])));
40
+
41
+ /* ----------------------------------------------------------
42
+ HOVER BOX
43
+ ---------------------------------------------------------- */
44
+ var HoverBox = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n bottom: 30px;\n left: var(--left);\n transform: translateX(-50%);\n width: auto;\n min-width: 150px;\n max-width: 220px;\n max-height: 400px;\n background: #303f51;\n backdrop-filter: blur(12px);\n border-radius: 10px;\n padding: 0px 9px 8px 9px;\n color: white;\n z-index: 999999;\n box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);\n font-family: 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;\n overflow-y: auto;\n animation: fadeInBox 0.18s ease-out;\n"])));
45
+ var HoverHeader = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: calc(100% + 18px);\n position: relative;\n left: -9px;\n background: #3e6673;\n color: #46d7ff;\n font-size: 12px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.3px;\n padding: 10px 12px;\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n margin-bottom: 8px;\n"])));
46
+ var HoverComment = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n padding: 10px 0;\n position: relative;\n\n &:not(:last-child)::after {\n content: '';\n position: absolute;\n bottom: 0;\n left: -9px;\n width: calc(100% + 18px);\n height: 1px;\n background: rgba(255, 255, 255, 0.12);\n }\n"])));
47
+ var HoverName = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: 13px;\n font-weight: 700;\n color: #afb2ba;\n margin-bottom: 8px;\n"])));
48
+ var HoverTime = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-size: 11px;\n color: #afb2ba;\n margin-bottom: 5px;\n"])));
49
+ var HoverText = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-size: 13px;\n color: #fff;\n line-height: 1.35;\n display: -webkit-box;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])));
50
+
51
+ /* ----------------------------------------------------------
52
+ SAFE LEFT POSITION
53
+ ---------------------------------------------------------- */
54
+ var getSafeLeft = function getSafeLeft(percent) {
55
+ if (percent < 5) return 5;
56
+ if (percent > 95) return 95;
57
+ return percent;
58
+ };
59
+
60
+ /* ----------------------------------------------------------
61
+ TIME → PERCENT
62
+ ---------------------------------------------------------- */
63
+ var getMarkerPercent = function getMarkerPercent(time, duration, zoom) {
64
+ if (!duration || duration <= 0) return 0;
65
+ var percent = time / duration;
66
+ percent = percent >= 1 ? 1 : percent;
67
+ if (zoom > 0) return percent * 100 * zoom * 20;
68
+ return percent * 100;
69
+ };
70
+
71
+ /* ----------------------------------------------------------
72
+ MAIN COMPONENT
73
+ ---------------------------------------------------------- */
74
+ var RenderCommentMarkers = function RenderCommentMarkers(props) {
75
+ var _props$data = props.data,
76
+ data = _props$data === void 0 ? [] : _props$data,
77
+ _props$duration = props.duration,
78
+ duration = _props$duration === void 0 ? 100.0 : _props$duration,
79
+ _props$zoom = props.zoom,
80
+ zoom = _props$zoom === void 0 ? 0 : _props$zoom,
81
+ playerType = props.playerType,
82
+ onSegmentClick = props.onSegmentClick,
83
+ onRightMenuVisible = props.onRightMenuVisible,
84
+ actions = props.actions,
85
+ player = props.player;
86
+ if (!['snp_edit', 'pgm_edit'].includes(playerType)) return null;
87
+ var _useState = (0, _react.useState)(null),
88
+ _useState2 = _slicedToArray(_useState, 2),
89
+ hovered = _useState2[0],
90
+ setHovered = _useState2[1];
91
+ var _useState3 = (0, _react.useState)(false),
92
+ _useState4 = _slicedToArray(_useState3, 2),
93
+ hoverBoxHold = _useState4[0],
94
+ setHoverBoxHold = _useState4[1];
95
+ var _useState5 = (0, _react.useState)(null),
96
+ _useState6 = _slicedToArray(_useState5, 2),
97
+ selectedComment = _useState6[0],
98
+ setSelectedComment = _useState6[1];
99
+ var hideTimer = (0, _react.useRef)(null);
100
+ var startHideTimer = function startHideTimer() {
101
+ if (hideTimer.current) clearTimeout(hideTimer.current);
102
+ hideTimer.current = setTimeout(function () {
103
+ setHoverBoxHold(false);
104
+ setHovered(null);
105
+ setSelectedComment(null);
106
+ }, 2000);
107
+ };
108
+ var handleLeaveMarker = function handleLeaveMarker() {
109
+ if (!hoverBoxHold) startHideTimer();
110
+ };
111
+ if (!Array.isArray(data) || data.length === 0) return null;
112
+ var grouped = data.reduce(function (acc, item) {
113
+ var key = item.value.in_time;
114
+ if (!acc[key]) acc[key] = [];
115
+ acc[key].push(item);
116
+ return acc;
117
+ }, {});
118
+ return /*#__PURE__*/_react["default"].createElement(MarkerTimeline, null, Object.entries(grouped).map(function (_ref) {
119
+ var _comments$;
120
+ var _ref2 = _slicedToArray(_ref, 2),
121
+ time = _ref2[0],
122
+ comments = _ref2[1];
123
+ var start = comments[0].value.in_time;
124
+ var end = comments[0].value.out_time;
125
+ var startPercent = getMarkerPercent(start, duration, zoom);
126
+ var endPercent = end ? getMarkerPercent(end, duration, zoom) : null;
127
+ var initials = ((_comments$ = comments[0]) === null || _comments$ === void 0 || (_comments$ = _comments$.value) === null || _comments$ === void 0 || (_comments$ = _comments$.created_by) === null || _comments$ === void 0 || (_comments$ = _comments$.name) === null || _comments$ === void 0 || (_comments$ = _comments$.split(' ')) === null || _comments$ === void 0 || (_comments$ = _comments$.map(function (n) {
128
+ return n[0];
129
+ })) === null || _comments$ === void 0 || (_comments$ = _comments$.join('')) === null || _comments$ === void 0 || (_comments$ = _comments$.slice(0, 2)) === null || _comments$ === void 0 ? void 0 : _comments$.toUpperCase()) || 'CM';
130
+ var displayLabel = comments.length > 1 ? comments.length : initials;
131
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
132
+ key: time
133
+ }, endPercent !== null && /*#__PURE__*/_react["default"].createElement(MarkerLine, {
134
+ style: {
135
+ left: "".concat(startPercent, "%"),
136
+ width: "calc(".concat(endPercent - startPercent, "% )"),
137
+ opacity: hovered === time ? 1 : 0
138
+ }
139
+ }), /*#__PURE__*/_react["default"].createElement(MarkerDot, {
140
+ style: {
141
+ left: "".concat(startPercent, "%")
142
+ },
143
+ onMouseEnter: function onMouseEnter() {
144
+ return setHovered(time);
145
+ },
146
+ onMouseLeave: handleLeaveMarker,
147
+ onClick: function onClick(e) {
148
+ e.stopPropagation();
149
+ setHoverBoxHold(true);
150
+ setHovered(time);
151
+ setSelectedComment(comments);
152
+ }
153
+ }, displayLabel), endPercent !== null && /*#__PURE__*/_react["default"].createElement(EndMarkerDot, {
154
+ style: {
155
+ left: "".concat(endPercent, "%"),
156
+ opacity: hovered === time ? 1 : 0
157
+ }
158
+ }), hovered === time && /*#__PURE__*/_react["default"].createElement(HoverBox, {
159
+ tabIndex: 0,
160
+ style: {
161
+ '--left': "".concat(getSafeLeft(startPercent), "%")
162
+ },
163
+ onMouseEnter: function onMouseEnter() {
164
+ if (hideTimer.current) clearTimeout(hideTimer.current);
165
+ setHoverBoxHold(true);
166
+ },
167
+ onMouseLeave: function onMouseLeave() {
168
+ setHoverBoxHold(false);
169
+ startHideTimer();
170
+ }
171
+ }, comments.length > 1 && /*#__PURE__*/_react["default"].createElement(HoverHeader, null, comments.length, " COMMENTS"), comments.map(function (c) {
172
+ var _c$value$created_by;
173
+ return /*#__PURE__*/_react["default"].createElement(HoverComment, {
174
+ key: c.id,
175
+ onClick: function onClick(e) {
176
+ e.stopPropagation();
177
+ setSelectedComment(c);
178
+ onSegmentClick(c.value.in_time, c.value.out_time, false);
179
+ onRightMenuVisible(true);
180
+ actions.toggleRightBar(player, true);
181
+ }
182
+ }, /*#__PURE__*/_react["default"].createElement(HoverName, null, (_c$value$created_by = c.value.created_by) === null || _c$value$created_by === void 0 || (_c$value$created_by = _c$value$created_by.name) === null || _c$value$created_by === void 0 ? void 0 : _c$value$created_by.toUpperCase()), /*#__PURE__*/_react["default"].createElement(HoverTime, null, c.value.in_timecode, c.value.out_timecode ? " - ".concat(c.value.out_timecode) : ''), /*#__PURE__*/_react["default"].createElement(HoverText, null, c.value.remark || c.value.sub_title || c.value.title || '—'));
183
+ })));
184
+ }));
185
+ };
186
+ var _default = exports["default"] = RenderCommentMarkers;
@@ -15,24 +15,24 @@ var _Timeline = _interopRequireDefault(require("./Timeline"));
15
15
  var _MarkerBar = _interopRequireDefault(require("../MarkerBar"));
16
16
  var _TagsBar = _interopRequireDefault(require("../TagsBar"));
17
17
  var _templateObject, _templateObject2, _templateObject3, _templateObject4; // import AudioWaveform from './AudioWaveform';
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
- 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); }
22
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
- 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); } }
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
22
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
23
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
24
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
25
25
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
26
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
26
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
27
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
27
28
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
28
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
29
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
30
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
31
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
32
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
33
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
34
34
  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); }
35
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
35
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
36
36
  // import MouseTimeDisplay from './MouseTimeDisplay';
37
37
 
38
38
  var AdvancedControlBlock = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 46px;\n position: relative;\n cursor: pointer;\n z-index: 1;\n"])));
@@ -52,12 +52,11 @@ var propTypes = {
52
52
  theme: _propTypes.PropTypes.string
53
53
  };
54
54
  var SeekBar = exports["default"] = /*#__PURE__*/function (_Component) {
55
- _inherits(SeekBar, _Component);
56
55
  function SeekBar(props, context) {
57
56
  var _this;
58
57
  _classCallCheck(this, SeekBar);
59
58
  _this = _callSuper(this, SeekBar, [props, context]);
60
- _defineProperty(_assertThisInitialized(_this), "handleHoverScrub", function (event) {
59
+ _defineProperty(_this, "handleHoverScrub", function (event) {
61
60
  var hoverBox = _this.hoverBoxRef.current;
62
61
  var hoverImg = _this.hoverImageRef.current;
63
62
  if (!hoverBox || !hoverImg) return;
@@ -104,23 +103,23 @@ var SeekBar = exports["default"] = /*#__PURE__*/function (_Component) {
104
103
  var hoverHeight = hoverBox.offsetHeight;
105
104
  hoverBox.style.top = "".concat(containerTop - hoverHeight - 10, "px");
106
105
  });
107
- _defineProperty(_assertThisInitialized(_this), "showHoverPreview", function () {
106
+ _defineProperty(_this, "showHoverPreview", function () {
108
107
  if (_this.hoverBoxRef.current) {
109
108
  _this.hoverBoxRef.current.style.display = "block";
110
109
  }
111
110
  });
112
- _defineProperty(_assertThisInitialized(_this), "hideHoverPreview", function () {
111
+ _defineProperty(_this, "hideHoverPreview", function () {
113
112
  if (_this.hoverBoxRef.current) {
114
113
  _this.hoverBoxRef.current.style.display = "none";
115
114
  }
116
115
  });
117
- _this.getPercent = _this.getPercent.bind(_assertThisInitialized(_this));
118
- _this.getNewTime = _this.getNewTime.bind(_assertThisInitialized(_this));
119
- _this.stepForward = _this.stepForward.bind(_assertThisInitialized(_this));
120
- _this.stepBack = _this.stepBack.bind(_assertThisInitialized(_this));
121
- _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_this));
122
- _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));
123
- _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_this));
116
+ _this.getPercent = _this.getPercent.bind(_this);
117
+ _this.getNewTime = _this.getNewTime.bind(_this);
118
+ _this.stepForward = _this.stepForward.bind(_this);
119
+ _this.stepBack = _this.stepBack.bind(_this);
120
+ _this.handleMouseDown = _this.handleMouseDown.bind(_this);
121
+ _this.handleMouseMove = _this.handleMouseMove.bind(_this);
122
+ _this.handleMouseUp = _this.handleMouseUp.bind(_this);
124
123
  _this.state = {
125
124
  sliderActive: false
126
125
  };
@@ -128,7 +127,8 @@ var SeekBar = exports["default"] = /*#__PURE__*/function (_Component) {
128
127
  _this.hoverImageRef = /*#__PURE__*/_react["default"].createRef();
129
128
  return _this;
130
129
  }
131
- _createClass(SeekBar, [{
130
+ _inherits(SeekBar, _Component);
131
+ return _createClass(SeekBar, [{
132
132
  key: "componentDidMount",
133
133
  value: function componentDidMount() {}
134
134
  }, {
@@ -140,11 +140,11 @@ var SeekBar = exports["default"] = /*#__PURE__*/function (_Component) {
140
140
  }
141
141
  }
142
142
 
143
- /**
144
- * Get percentage of video played
145
- *
146
- * @return {Number} Percentage played
147
- * @method getPercent
143
+ /**
144
+ * Get percentage of video played
145
+ *
146
+ * @return {Number} Percentage played
147
+ * @method getPercent
148
148
  */
149
149
  }, {
150
150
  key: "getPercent",
@@ -333,7 +333,6 @@ var SeekBar = exports["default"] = /*#__PURE__*/function (_Component) {
333
333
  })))) : null));
334
334
  }
335
335
  }]);
336
- return SeekBar;
337
336
  }(_react.Component);
338
337
  SeekBar.displayName = 'SeekBar';
339
338
  SeekBar.propTypes = propTypes;
@@ -11,22 +11,22 @@ var _propTypes = require("prop-types");
11
11
  var _components = require("@desynova-digital/components");
12
12
  var _utils = require("../../utils");
13
13
  var _templateObject;
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
- 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); } }
19
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
18
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
19
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
21
21
  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); }
22
22
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
23
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
24
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
24
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
25
25
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
26
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
27
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
28
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
29
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
30
30
  var propTypes = {
31
31
  player: _propTypes.PropTypes.instanceOf(Object),
32
32
  initialTime: _propTypes.PropTypes.number,
@@ -40,7 +40,6 @@ var TimelineBlock = _styledComponents["default"].div(_templateObject || (_templa
40
40
  return maxWidth || '100%';
41
41
  }, _components.Icon.Element);
42
42
  var Timeline = exports["default"] = /*#__PURE__*/function (_Component) {
43
- _inherits(Timeline, _Component);
44
43
  function Timeline(props) {
45
44
  var _this;
46
45
  _classCallCheck(this, Timeline);
@@ -51,7 +50,8 @@ var Timeline = exports["default"] = /*#__PURE__*/function (_Component) {
51
50
  };
52
51
  return _this;
53
52
  }
54
- _createClass(Timeline, [{
53
+ _inherits(Timeline, _Component);
54
+ return _createClass(Timeline, [{
55
55
  key: "componentDidMount",
56
56
  value: function componentDidMount() {
57
57
  var zoom = this.props.zoom;
@@ -146,7 +146,6 @@ var Timeline = exports["default"] = /*#__PURE__*/function (_Component) {
146
146
  }));
147
147
  }
148
148
  }]);
149
- return Timeline;
150
149
  }(_react.Component);
151
150
  Timeline.propTypes = propTypes;
152
151
  Timeline.displayName = 'Timeline';
@@ -12,10 +12,10 @@ var _components = require("@desynova-digital/components");
12
12
  var _tokens = require("@desynova-digital/tokens");
13
13
  var _utils = require("../../utils");
14
14
  var _templateObject;
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
19
19
  var propTypes = {
20
20
  actions: _propTypes["default"].object.isRequired,
21
21
  player: _propTypes["default"].object.isRequired,
@@ -13,22 +13,22 @@ var _tokens = require("@desynova-digital/tokens");
13
13
  var _SafeAreaControl = _interopRequireDefault(require("./SafeAreaControl"));
14
14
  var _PlaybackRateControl = _interopRequireDefault(require("./PlaybackRateControl"));
15
15
  var _templateObject, _templateObject2;
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
- 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); } }
21
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
21
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
23
  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); }
24
24
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
25
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
26
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
26
27
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
28
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
29
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
30
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
31
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
32
32
  var propTypes = {
33
33
  actions: _propTypes.PropTypes.instanceOf(Object),
34
34
  player: _propTypes.PropTypes.instanceOf(Object),
@@ -57,21 +57,21 @@ var MainMenuBlock = (0, _styledComponents["default"])('div')(_templateObject2 ||
57
57
  return props.theme ? " ".concat(_tokens.colors[props.theme].videoPlayer.rgbaThemeColor) : 'rgba(0, 206, 198, 0.1)';
58
58
  });
59
59
  var ChildMenuButton = /*#__PURE__*/function (_Component) {
60
- _inherits(ChildMenuButton, _Component);
61
60
  function ChildMenuButton(props, context) {
62
61
  var _this;
63
62
  _classCallCheck(this, ChildMenuButton);
64
63
  _this = _callSuper(this, ChildMenuButton, [props, context]);
65
- _this.changeCaption = _this.changeCaption.bind(_assertThisInitialized(_this));
66
- _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
67
- _this.stopCaption = _this.stopCaption.bind(_assertThisInitialized(_this));
68
- _this.renderContentByHeader = _this.renderContentByHeader.bind(_assertThisInitialized(_this));
64
+ _this.changeCaption = _this.changeCaption.bind(_this);
65
+ _this.handleChange = _this.handleChange.bind(_this);
66
+ _this.stopCaption = _this.stopCaption.bind(_this);
67
+ _this.renderContentByHeader = _this.renderContentByHeader.bind(_this);
69
68
  return _this;
70
69
  }
71
- /**
72
- * This function is used to change the state used to stop subtitles and also change the value of subtitle to be off
70
+ /**
71
+ * This function is used to change the state used to stop subtitles and also change the value of subtitle to be off
73
72
  */
74
- _createClass(ChildMenuButton, [{
73
+ _inherits(ChildMenuButton, _Component);
74
+ return _createClass(ChildMenuButton, [{
75
75
  key: "stopCaption",
76
76
  value: function stopCaption() {
77
77
  var _this$props = this.props,
@@ -83,9 +83,9 @@ var ChildMenuButton = /*#__PURE__*/function (_Component) {
83
83
  }
84
84
  handleStatus();
85
85
  }
86
- /**
87
- *
88
- * @param {string} value this is the value that we will be stored in our state and also call function used to change subtitle shown in our player
86
+ /**
87
+ *
88
+ * @param {string} value this is the value that we will be stored in our state and also call function used to change subtitle shown in our player
89
89
  */
90
90
  }, {
91
91
  key: "changeCaption",
@@ -104,8 +104,8 @@ var ChildMenuButton = /*#__PURE__*/function (_Component) {
104
104
  handleStatus();
105
105
  }
106
106
 
107
- /**
108
- * This function is used to change the states that are responsible for showing settings menu or subtitle menu.
107
+ /**
108
+ * This function is used to change the states that are responsible for showing settings menu or subtitle menu.
109
109
  */
110
110
  }, {
111
111
  key: "handleChange",
@@ -114,9 +114,9 @@ var ChildMenuButton = /*#__PURE__*/function (_Component) {
114
114
  handleStatus();
115
115
  }
116
116
 
117
- /**
118
- *
119
- * @returns This function returns the mapping of children according to the value of mainHeader props
117
+ /**
118
+ *
119
+ * @returns This function returns the mapping of children according to the value of mainHeader props
120
120
  */
121
121
  }, {
122
122
  key: "renderContentByHeader",
@@ -272,7 +272,6 @@ var ChildMenuButton = /*#__PURE__*/function (_Component) {
272
272
  })), this.renderContentByHeader());
273
273
  }
274
274
  }]);
275
- return ChildMenuButton;
276
275
  }(_react.Component);
277
276
  ChildMenuButton.propTypes = propTypes;
278
277
  ChildMenuButton.displayName = 'ChildMenuButton';