@desynova-digital/player 3.13.16 → 3.13.18

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 (57) hide show
  1. package/Manager.js +9 -10
  2. package/actions/player.js +15 -30
  3. package/actions/video.js +25 -50
  4. package/colors.js +1 -2
  5. package/components/AudioMeter.js +12 -14
  6. package/components/BigPlayButton.js +12 -14
  7. package/components/ImageViewer.js +13 -15
  8. package/components/MarkerBar.js +12 -14
  9. package/components/Player.js +14 -16
  10. package/components/PlayerHeader.js +12 -14
  11. package/components/Playlist.js +15 -14
  12. package/components/PointersBar.js +14 -16
  13. package/components/PosterImage.js +1 -2
  14. package/components/Shortcut.js +280 -106
  15. package/components/Slider.js +12 -14
  16. package/components/TagsBar.js +12 -14
  17. package/components/Video.js +14 -17
  18. package/components/control-bar/AudioTracksMenuButton.js +11 -13
  19. package/components/control-bar/CameraButton.js +12 -14
  20. package/components/control-bar/CommentsButton.js +12 -14
  21. package/components/control-bar/ControlBar.js +12 -14
  22. package/components/control-bar/EditorControlMenuButton.js +12 -14
  23. package/components/control-bar/ForwardControl.js +1 -2
  24. package/components/control-bar/ForwardReplayControl.js +13 -15
  25. package/components/control-bar/FullscreenToggle.js +12 -14
  26. package/components/control-bar/PlayToggle.js +12 -14
  27. package/components/control-bar/ReplayControl.js +1 -2
  28. package/components/control-bar/SubtitleLanguagesMenuButton.js +11 -13
  29. package/components/control-bar/SubtitleMovementMenu.js +12 -14
  30. package/components/control-bar/VolumeMenuButton.js +12 -14
  31. package/components/control-bar/ZoomMenuButton.js +12 -14
  32. package/components/marking-controls/MarkInControl.js +12 -14
  33. package/components/marking-controls/MarkOutControl.js +12 -14
  34. package/components/marking-controls/MarkingAddButton.js +12 -14
  35. package/components/marking-controls/MarkingDeleteButton.js +12 -14
  36. package/components/marking-controls/MarkingPreview.js +12 -14
  37. package/components/progress-bar/AudioWaveform.js +12 -14
  38. package/components/progress-bar/MouseTimeDisplay.js +1 -2
  39. package/components/progress-bar/ProgressControl.js +12 -14
  40. package/components/progress-bar/SeekBar.js +12 -14
  41. package/components/progress-bar/Timeline.js +12 -14
  42. package/components/settings-menu-control/PlaybackRateControl.js +12 -14
  43. package/components/settings-menu-control/SafeAreaControl.js +12 -14
  44. package/components/time-controls/CurrentTimeDisplay.js +1 -2
  45. package/components/time-controls/DurationDisplay.js +1 -2
  46. package/components/volume-control/VolumeBar.js +12 -14
  47. package/components/volume-control/VolumeLevel.js +1 -2
  48. package/components/zoom-control/ZoomBar.js +12 -14
  49. package/components/zoom-control/ZoomLevel.js +1 -2
  50. package/index.js +3 -3
  51. package/package.json +1 -1
  52. package/reducers/index.js +2 -4
  53. package/reducers/operation.js +6 -7
  54. package/reducers/player.js +6 -8
  55. package/utils/browser.js +4 -8
  56. package/utils/fullscreen.js +4 -5
  57. package/utils/index.js +6 -7
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports["default"] = void 0;
8
7
  var _react = require("react");
9
8
  var _propTypes = require("prop-types");
10
- 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; }
9
+ var _lodash = require("lodash");
10
+ var _hotkeysJs = _interopRequireDefault(require("hotkeys-js"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ 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); }
11
13
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12
14
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
15
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -17,15 +19,16 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
17
19
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
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); } }
19
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; }
20
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
22
- 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); }
23
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
22
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
25
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); }
26
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
27
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
28
25
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
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 _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; }
30
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
31
+ 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); }
29
32
  var propTypes = {
30
33
  clickable: _propTypes.PropTypes.bool,
31
34
  dblclickable: _propTypes.PropTypes.bool,
@@ -46,13 +49,86 @@ var defaultProps = {
46
49
  player: {},
47
50
  shortcuts: []
48
51
  };
49
- var Shortcut = /*#__PURE__*/function (_Component) {
52
+ var Shortcut = exports["default"] = /*#__PURE__*/function (_Component) {
50
53
  _inherits(Shortcut, _Component);
51
- var _super = _createSuper(Shortcut);
52
54
  function Shortcut(props, context) {
53
55
  var _this;
54
56
  _classCallCheck(this, Shortcut);
55
- _this = _super.call(this, props, context);
57
+ _this = _callSuper(this, Shortcut, [props, context]);
58
+ _defineProperty(_assertThisInitialized(_this), "debounceKeyFunc", (0, _lodash.debounce)(function (keyCode) {
59
+ _this.handleKeyMovement(keyCode);
60
+ }));
61
+ /**
62
+ *
63
+ * @param {number} keyCode the keycode for the specific key's functionality
64
+ * @param {boolean} currentTimeRequired currentTime value required or not to perform key functionality
65
+ *common function to handle the key functionalies. eg-> W Key and Q key functionalities
66
+ */
67
+ _defineProperty(_assertThisInitialized(_this), "handleKeyMovement", function (keyCode) {
68
+ var _this$props$markers$, _this$props$playerSel, _this$props$player, _this$props$player2;
69
+ var frameRateNumber = parseInt(_this.props.frameRate);
70
+ var timeAfterOverlap;
71
+ var keyPressHandle = _this.defaultShortcuts.find(function (shortcut) {
72
+ return shortcut.keyCode === keyCode;
73
+ });
74
+ var ans = _this.findAdjacentMarkers((_this$props$markers$ = _this.props.markers[0]) === null || _this$props$markers$ === void 0 ? void 0 : _this$props$markers$.values, (_this$props$playerSel = _this.props.playerSelectedMarker) === null || _this$props$playerSel === void 0 ? void 0 : _this$props$playerSel.data);
75
+ if (((_this$props$player = _this.props.player) === null || _this$props$player === void 0 ? void 0 : _this$props$player.currentTime) >= (ans === null || ans === void 0 ? void 0 : ans.in_time_forward)) {
76
+ timeAfterOverlap = ans.in_time_forward - 1 / frameRateNumber;
77
+ }
78
+ if (((_this$props$player2 = _this.props.player) === null || _this$props$player2 === void 0 ? void 0 : _this$props$player2.currentTime) <= (ans === null || ans === void 0 ? void 0 : ans.out_time_behind)) {
79
+ timeAfterOverlap = ans.out_time_behind + 1 / frameRateNumber;
80
+ }
81
+ if (keyPressHandle) {
82
+ keyPressHandle.handle(_this.props.player, _this.props.actions, {
83
+ timeAfterOverlap: timeAfterOverlap
84
+ });
85
+ }
86
+ });
87
+ /**
88
+ *
89
+ * @param {event} event
90
+ * @param {function} handleKeyMovement function to call Q and W key functionality
91
+ * @param {function} debounceKeyFunc to handle the debounced I and O key functionality
92
+ * @param {string} keyParameter to identify the key combo pressed
93
+ * this function executed the Q and W key functionality first and then performs I and O key functionality provided 3 key combo is still pressed
94
+ * Once we leave the keyCombo isCalled variable is set to false. This ensures that on the next combo press we will again execute Q/W key combo first.
95
+ */
96
+ _defineProperty(_assertThisInitialized(_this), "createThreeKeyCombo", function (event, handleKeyMovement, debounceKeyFunc, keyParameter) {
97
+ if (!_this.isCalled) {
98
+ handleKeyMovement();
99
+ }
100
+ if (event.type === 'keydown') {
101
+ debounceKeyFunc();
102
+ _this.isCalled = true;
103
+ }
104
+ if (event.type === 'keyup') {
105
+ _this.isCalled = false;
106
+ }
107
+ });
108
+ _defineProperty(_assertThisInitialized(_this), "threeKeyCombo1", (0, _lodash.debounce)(function (event) {
109
+ return _this.createThreeKeyCombo(event, _this.handleKeyMovement.bind(_assertThisInitialized(_this), 87), _this.debounceKeyFunc.bind(_assertThisInitialized(_this), 79), 'Ctrl + O + Right');
110
+ }, 0, {
111
+ leading: true,
112
+ trailing: true
113
+ }));
114
+ _defineProperty(_assertThisInitialized(_this), "threeKeyCombo2", (0, _lodash.debounce)(function (event) {
115
+ return _this.createThreeKeyCombo(event, _this.handleKeyMovement.bind(_assertThisInitialized(_this), 87), _this.debounceKeyFunc.bind(_assertThisInitialized(_this), 79), 'Ctrl + O + Left');
116
+ }, 0, {
117
+ leading: true,
118
+ trailing: true
119
+ }));
120
+ _defineProperty(_assertThisInitialized(_this), "threeKeyCombo3", (0, _lodash.debounce)(function (event) {
121
+ return _this.createThreeKeyCombo(event, _this.handleKeyMovement.bind(_assertThisInitialized(_this), 81), _this.debounceKeyFunc.bind(_assertThisInitialized(_this), 73), 'Ctrl + I + Right');
122
+ }, 0, {
123
+ leading: true,
124
+ trailing: true
125
+ }));
126
+ _defineProperty(_assertThisInitialized(_this), "threeKeyCombo4", (0, _lodash.debounce)(function (event) {
127
+ return _this.createThreeKeyCombo(event, _this.handleKeyMovement.bind(_assertThisInitialized(_this), 81), _this.debounceKeyFunc.bind(_assertThisInitialized(_this), 73), 'Ctrl + I + Left');
128
+ }, 0, {
129
+ leading: true,
130
+ trailing: true
131
+ }));
56
132
  _this.intervalRewind = null;
57
133
  _this.defaultShortcuts = [{
58
134
  keyCode: 32,
@@ -80,7 +156,8 @@ var Shortcut = /*#__PURE__*/function (_Component) {
80
156
  keyCode: 37,
81
157
  // Left arrow
82
158
  handle: function handle(player, actions, frameRate) {
83
- if (!player.hasStarted) {
159
+ var leftMarker = _this.props.playerSelectedMarker.leftMarker;
160
+ if (!player.hasStarted && !(leftMarker > -1)) {
84
161
  return;
85
162
  }
86
163
  actions.replay(1 / frameRate, {
@@ -115,7 +192,8 @@ var Shortcut = /*#__PURE__*/function (_Component) {
115
192
  keyCode: 39,
116
193
  // Right arrow
117
194
  handle: function handle(player, actions, frameRate) {
118
- if (!player.hasStarted) {
195
+ var leftMarker = _this.props.playerSelectedMarker.leftMarker;
196
+ if (!player.hasStarted && !(leftMarker > -1)) {
119
197
  return;
120
198
  }
121
199
  actions.forward(1 / frameRate, {
@@ -173,39 +251,47 @@ var Shortcut = /*#__PURE__*/function (_Component) {
173
251
  if (playerReadOnlyMode || disablePlayerActions.includes('marking_controls')) {
174
252
  return;
175
253
  }
176
- if (playerType !== 'panel') {
177
- var createPoint = true;
178
- if (markers && markers.length && markers[0].values && markers[0].values.length) {
179
- var markerArr = markers[0].values;
180
- if (Object.keys(player.selectedMarker).length) {
181
- markerArr = markerArr.filter(function (marker) {
182
- return marker.start_time !== player.selectedMarker.leftMarker && marker.end_time !== player.selectedMarker.rightMarker;
254
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
255
+ args[_key - 2] = arguments[_key];
256
+ }
257
+ var isOverLapTime = args[0].timeAfterOverlap;
258
+ if (isOverLapTime) {
259
+ onAddMarker(args[0].timeAfterOverlap, playerSelectedMarker.rightMarker, 'update');
260
+ } else {
261
+ if (playerType !== 'panel') {
262
+ var createPoint = true;
263
+ if (markers && markers.length && markers[0].values && markers[0].values.length) {
264
+ var markerArr = markers[0].values;
265
+ if (Object.keys(player.selectedMarker).length) {
266
+ markerArr = markerArr.filter(function (marker) {
267
+ return marker.start_time !== player.selectedMarker.leftMarker && marker.end_time !== player.selectedMarker.rightMarker;
268
+ });
269
+ }
270
+ markerArr.filter(function (marker) {
271
+ if (player.currentTime >= marker.start_time && player.currentTime <= marker.end_time || playerSelectedMarker.leftMarker > -1 && player.currentTime > marker.start_time && playerSelectedMarker.leftMarker < marker.start_time || playerSelectedMarker.leftMarker > -1 && player.currentTime < marker.start_time && playerSelectedMarker.leftMarker > marker.end_time) {
272
+ createPoint = false;
273
+ }
183
274
  });
184
275
  }
185
- markerArr.filter(function (marker) {
186
- if (player.currentTime >= marker.start_time && player.currentTime <= marker.end_time || playerSelectedMarker.leftMarker > -1 && player.currentTime > marker.start_time && playerSelectedMarker.leftMarker < marker.start_time || playerSelectedMarker.leftMarker > -1 && player.currentTime < marker.start_time && playerSelectedMarker.leftMarker > marker.end_time) {
187
- createPoint = false;
188
- }
189
- });
190
- }
191
- if (!createPoint && playerSelectedMarker.markerType === 'update' && player.currentTime > player.selectedMarker.leftMarker && player.currentTime < player.selectedMarker.rightMarker) {
192
- createPoint = true;
193
- }
194
- if (createPoint) {
195
- if (playerSelectedMarker.rightMarker < 0 || playerSelectedMarker.rightMarker > -1 && player.currentTime < playerSelectedMarker.rightMarker) {
196
- // actions.handleMarkerPointChange(
197
- // player.markerType !== 'update' ? 'add' : 'update',
198
- // 'left',
199
- // player.currentTime
200
- // );
201
- var data = {
202
- markerType: playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length ? 'update' : 'add',
203
- markerPos: 'left',
204
- currentTime: player.currentTime
205
- };
206
- onAddMarker(player.currentTime, -1, '', true, data);
207
- if (playerSelectedMarker.leftMarker > -1 && playerSelectedMarker.rightMarker > -1 && (!playerSelectedMarker.markerCreate || playerSelectedMarker.markerType === 'update' || playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length)) {
208
- onAddMarker(player.currentTime, playerSelectedMarker.rightMarker, 'update');
276
+ if (!createPoint && playerSelectedMarker.markerType === 'update' && player.currentTime > player.selectedMarker.leftMarker && player.currentTime < player.selectedMarker.rightMarker) {
277
+ createPoint = true;
278
+ }
279
+ if (createPoint) {
280
+ if (playerSelectedMarker.rightMarker < 0 || playerSelectedMarker.rightMarker > -1 && player.currentTime < playerSelectedMarker.rightMarker) {
281
+ // actions.handleMarkerPointChange(
282
+ // player.markerType !== 'update' ? 'add' : 'update',
283
+ // 'left',
284
+ // player.currentTime
285
+ // );
286
+ var data = {
287
+ markerType: playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length ? 'update' : 'add',
288
+ markerPos: 'left',
289
+ currentTime: player.currentTime
290
+ };
291
+ onAddMarker(player.currentTime, -1, '', true, data);
292
+ if (playerSelectedMarker.leftMarker > -1 && playerSelectedMarker.rightMarker > -1 && (!playerSelectedMarker.markerCreate || playerSelectedMarker.markerType === 'update' || playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length)) {
293
+ onAddMarker(player.currentTime, playerSelectedMarker.rightMarker, 'update');
294
+ }
209
295
  }
210
296
  }
211
297
  }
@@ -226,50 +312,62 @@ var Shortcut = /*#__PURE__*/function (_Component) {
226
312
  if (playerReadOnlyMode || disablePlayerActions.includes('marking_controls')) {
227
313
  return;
228
314
  }
229
- var createPoint = true;
230
- if (playerType !== 'panel') {
231
- if (markers && markers.length && markers[0].values && markers[0].values.length) {
232
- var markerArr = markers[0].values;
233
- if (Object.keys(player.selectedMarker).length) {
234
- markerArr = markerArr.filter(function (marker) {
235
- return marker.start_time !== player.selectedMarker.leftMarker && marker.end_time !== player.selectedMarker.rightMarker;
315
+ for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
316
+ args[_key2 - 2] = arguments[_key2];
317
+ }
318
+ var isOverLapTime = args[0].timeAfterOverlap;
319
+ if (isOverLapTime) {
320
+ var data = {
321
+ markerType: playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length ? 'update' : 'add',
322
+ markerPos: 'right',
323
+ currentTime: args[0].timeAfterOverlap
324
+ };
325
+ onAddMarker(playerSelectedMarker.leftMarker, args[0].timeAfterOverlap, 'update', false, data);
326
+ } else {
327
+ var createPoint = true;
328
+ if (playerType !== 'panel') {
329
+ if (markers && markers.length && markers[0].values && markers[0].values.length) {
330
+ var markerArr = markers[0].values;
331
+ if (Object.keys(player.selectedMarker).length) {
332
+ markerArr = markerArr.filter(function (marker) {
333
+ return marker.start_time !== player.selectedMarker.leftMarker && marker.end_time !== player.selectedMarker.rightMarker;
334
+ });
335
+ }
336
+ markerArr.filter(function (marker) {
337
+ if (player.currentTime >= marker.start_time && player.currentTime <= marker.end_time || playerSelectedMarker.leftMarker > -1 && player.currentTime > marker.start_time && playerSelectedMarker.leftMarker < marker.start_time || playerSelectedMarker.leftMarker > -1 && player.currentTime < marker.start_time && playerSelectedMarker.leftMarker > marker.end_time) {
338
+ createPoint = false;
339
+ }
236
340
  });
237
341
  }
238
- markerArr.filter(function (marker) {
239
- if (player.currentTime >= marker.start_time && player.currentTime <= marker.end_time || playerSelectedMarker.leftMarker > -1 && player.currentTime > marker.start_time && playerSelectedMarker.leftMarker < marker.start_time || playerSelectedMarker.leftMarker > -1 && player.currentTime < marker.start_time && playerSelectedMarker.leftMarker > marker.end_time) {
240
- createPoint = false;
342
+ if (!createPoint && playerSelectedMarker.markerType === 'update' && player.currentTime > player.selectedMarker.leftMarker && player.currentTime < player.selectedMarker.rightMarker) {
343
+ createPoint = true;
344
+ }
345
+ if (createPoint && playerSelectedMarker.leftMarker > -1 && player.currentTime > playerSelectedMarker.leftMarker) {
346
+ // actions.handleMarkerPointChange(
347
+ // markerType: player.markerType !== 'update' ? 'add' : 'update',
348
+ // markerPos: 'right',
349
+ // currentTime: player.currentTime
350
+ // );
351
+ var _data = {
352
+ markerType: playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length ? 'update' : 'add',
353
+ markerPos: 'right',
354
+ currentTime: player.currentTime
355
+ };
356
+ if (playerSelectedMarker.leftMarker > -1 && playerSelectedMarker.rightMarker > -1 && (!playerSelectedMarker.markerCreate || playerSelectedMarker.markerType === 'update' || playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length)) {
357
+ onAddMarker(playerSelectedMarker.leftMarker, player.currentTime, 'update', false, _data);
241
358
  }
242
- });
243
- }
244
- if (!createPoint && playerSelectedMarker.markerType === 'update' && player.currentTime > player.selectedMarker.leftMarker && player.currentTime < player.selectedMarker.rightMarker) {
245
- createPoint = true;
246
- }
247
- if (createPoint && playerSelectedMarker.leftMarker > -1 && player.currentTime > playerSelectedMarker.leftMarker) {
248
- // actions.handleMarkerPointChange(
249
- // markerType: player.markerType !== 'update' ? 'add' : 'update',
250
- // markerPos: 'right',
251
- // currentTime: player.currentTime
252
- // );
253
- var data = {
254
- markerType: playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length ? 'update' : 'add',
255
- markerPos: 'right',
256
- currentTime: player.currentTime
257
- };
258
- if (playerSelectedMarker.leftMarker > -1 && playerSelectedMarker.rightMarker > -1 && (!playerSelectedMarker.markerCreate || playerSelectedMarker.markerType === 'update' || playerSelectedMarker.data && Object.keys(playerSelectedMarker.data).length)) {
259
- onAddMarker(playerSelectedMarker.leftMarker, player.currentTime, 'update', false, data);
359
+ //Commented for CN-632.
360
+ // if (player.controlType === 'default') {
361
+ // onMarkerSelect(player.leftMarker, player.currentTime);
362
+ // }
260
363
  }
261
- //Commented for CN-632.
262
- // if (player.controlType === 'default') {
263
- // onMarkerSelect(player.leftMarker, player.currentTime);
264
- // }
265
364
  }
266
- }
267
-
268
- if (playerSelectedMarker.leftMarker > -1 && player.currentTime > -1 && playerSelectedMarker.markerCreate && createPoint && player.currentTime > playerSelectedMarker.leftMarker) {
269
- // actions.handleMarkerPointChange('create');
270
- onAddMarker(playerSelectedMarker.leftMarker, player.currentTime, '', false, {
271
- markerType: 'create'
272
- });
365
+ if (playerSelectedMarker.leftMarker > -1 && player.currentTime > -1 && playerSelectedMarker.markerCreate && createPoint && player.currentTime > playerSelectedMarker.leftMarker) {
366
+ // actions.handleMarkerPointChange('create');
367
+ onAddMarker(playerSelectedMarker.leftMarker, player.currentTime, '', false, {
368
+ markerType: 'create'
369
+ });
370
+ }
273
371
  }
274
372
  }
275
373
  }, {
@@ -361,8 +459,43 @@ var Shortcut = /*#__PURE__*/function (_Component) {
361
459
  actions.seek(rightMarker);
362
460
  }
363
461
  }
462
+ }, {
463
+ keyCode: 219,
464
+ //'ctrl + ['
465
+ ctrl: true,
466
+ handle: function handle(player, actions, frameRate, e, markers) {
467
+ var _this$props3 = _this.props,
468
+ leftMarker = _this$props3.playerSelectedMarker.leftMarker,
469
+ onTagClick = _this$props3.onTagClick;
470
+ var newIndex = markers.findIndex(function (item) {
471
+ return item.in_time === leftMarker;
472
+ }) - 1;
473
+ if (leftMarker > -1 && newIndex > -1) {
474
+ var _markers$newIndex, _markers$newIndex2, _markers$newIndex3;
475
+ actions.seek((_markers$newIndex = markers[newIndex]) === null || _markers$newIndex === void 0 ? void 0 : _markers$newIndex.start_time);
476
+ onTagClick((_markers$newIndex2 = markers[newIndex]) === null || _markers$newIndex2 === void 0 ? void 0 : _markers$newIndex2.start_time, (_markers$newIndex3 = markers[newIndex]) === null || _markers$newIndex3 === void 0 ? void 0 : _markers$newIndex3.end_time, markers[newIndex]);
477
+ }
478
+ }
479
+ }, {
480
+ keyCode: 221,
481
+ //'ctrl + ]'
482
+ ctrl: true,
483
+ handle: function handle(player, actions, frameRate, e, markers) {
484
+ var _this$props4 = _this.props,
485
+ leftMarker = _this$props4.playerSelectedMarker.leftMarker,
486
+ onTagClick = _this$props4.onTagClick;
487
+ var newIndex = markers.findIndex(function (item) {
488
+ return item.in_time === leftMarker;
489
+ }) + 1;
490
+ if (leftMarker > -1 && newIndex < markers.length) {
491
+ var _markers$newIndex4, _markers$newIndex5, _markers$newIndex6;
492
+ actions.seek((_markers$newIndex4 = markers[newIndex]) === null || _markers$newIndex4 === void 0 ? void 0 : _markers$newIndex4.start_time);
493
+ onTagClick((_markers$newIndex5 = markers[newIndex]) === null || _markers$newIndex5 === void 0 ? void 0 : _markers$newIndex5.start_time, (_markers$newIndex6 = markers[newIndex]) === null || _markers$newIndex6 === void 0 ? void 0 : _markers$newIndex6.end_time, markers[newIndex]);
494
+ }
495
+ }
364
496
  }];
365
497
  _this.shortcuts = _toConsumableArray(_this.defaultShortcuts);
498
+ _this.isCalled = false;
366
499
  _this.mergeShortcuts = _this.mergeShortcuts.bind(_assertThisInitialized(_this));
367
500
  _this.handleKeyPress = _this.handleKeyPress.bind(_assertThisInitialized(_this));
368
501
  _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
@@ -373,17 +506,53 @@ var Shortcut = /*#__PURE__*/function (_Component) {
373
506
  key: "componentDidMount",
374
507
  value: function componentDidMount() {
375
508
  this.mergeShortcuts();
509
+ (0, _hotkeysJs["default"])('ctrl+i+left, ctrl+left+i, i+ctrl+left, i+left+ ctrl, left+ ctrl+ i, left+i+ ctrl', {
510
+ keyup: true,
511
+ keydown: true
512
+ }, this.threeKeyCombo4);
513
+ (0, _hotkeysJs["default"])('ctrl+i+right,ctrl+right+i,i+ctrl+right,i+right+ctrl,right+ctrl+i,right+i+ctrl', {
514
+ keyup: true,
515
+ keydown: true
516
+ }, this.threeKeyCombo3);
517
+ (0, _hotkeysJs["default"])('ctrl+o+left,ctrl+left+o,o+ctrl+left,o+left+ctrl,left+ctrl+o,left+o+ctrl', {
518
+ keyup: true,
519
+ keydown: true
520
+ }, this.threeKeyCombo2);
521
+ (0, _hotkeysJs["default"])('ctrl+o+right,ctrl+right+o,o+ctrl+right,o+right+ctrl,right+ctrl+o,right+o+ctrl', {
522
+ keyup: true,
523
+ keydown: true
524
+ }, this.threeKeyCombo1);
376
525
  document.addEventListener('keydown', this.handleKeyPress);
377
526
  document.addEventListener('click', this.handleClick);
378
527
  document.addEventListener('dblclick', this.handleDoubleClick);
379
528
  }
529
+ }, {
530
+ key: "findAdjacentMarkers",
531
+ value: function findAdjacentMarkers(markers, selectedMarker) {
532
+ if (markers) {
533
+ var index = markers === null || markers === void 0 ? void 0 : markers.findIndex(function (marker) {
534
+ return marker.in_time === selectedMarker.in_time && marker.out_time === selectedMarker.out_time;
535
+ });
536
+ if (index !== -1) {
537
+ var adjacentMarkerForward = markers[index + 1];
538
+ var adjacentMarkerBehind = markers[index - 1];
539
+ var result = {
540
+ in_time_forward: adjacentMarkerForward ? adjacentMarkerForward.in_time : undefined,
541
+ out_time_behind: adjacentMarkerBehind ? adjacentMarkerBehind.out_time : undefined
542
+ };
543
+ return result;
544
+ }
545
+ } else {
546
+ return undefined;
547
+ }
548
+ }
380
549
  }, {
381
550
  key: "componentDidUpdate",
382
551
  value: function componentDidUpdate(prevProps) {
383
- var _this$props3 = this.props,
384
- shortcuts = _this$props3.shortcuts,
385
- player = _this$props3.player,
386
- frameRate = _this$props3.frameRate;
552
+ var _this$props5 = this.props,
553
+ shortcuts = _this$props5.shortcuts,
554
+ player = _this$props5.player,
555
+ frameRate = _this$props5.frameRate;
387
556
  if (prevProps.shortcuts !== shortcuts) {
388
557
  this.mergeShortcuts();
389
558
  }
@@ -396,6 +565,10 @@ var Shortcut = /*#__PURE__*/function (_Component) {
396
565
  }, {
397
566
  key: "componentWillUnmount",
398
567
  value: function componentWillUnmount() {
568
+ _hotkeysJs["default"].unbind('ctrl+i+left, ctrl+left+i, i+ctrl+left, i+left+ ctrl, left+ ctrl+ i, left+i+ ctrl');
569
+ _hotkeysJs["default"].unbind('ctrl+i+right,ctrl+right+i,i+ctrl+right,i+right+ctrl,right+ctrl+i,right+i+ctrl');
570
+ _hotkeysJs["default"].unbind('ctrl+o+left,ctrl+left+o,o+ctrl+left,o+left+ctrl,left+ctrl+o,left+o+ctrl');
571
+ _hotkeysJs["default"].unbind('ctrl+o+right,ctrl+right+o,o+ctrl+right,o+right+ctrl,right+ctrl+o,right+o+ctrl');
399
572
  document.removeEventListener('keydown', this.handleKeyPress);
400
573
  document.removeEventListener('click', this.handleClick);
401
574
  document.removeEventListener('dblclick', this.handleDoubleClick);
@@ -403,10 +576,10 @@ var Shortcut = /*#__PURE__*/function (_Component) {
403
576
  }, {
404
577
  key: "rewindVideo",
405
578
  value: function rewindVideo() {
406
- var _this$props4 = this.props,
407
- player = _this$props4.player,
408
- actions = _this$props4.actions,
409
- frameRate = _this$props4.frameRate;
579
+ var _this$props6 = this.props,
580
+ player = _this$props6.player,
581
+ actions = _this$props6.actions,
582
+ frameRate = _this$props6.frameRate;
410
583
  if (player.currentTime == 0 || !player.rewindActive) {
411
584
  clearInterval(this.intervalRewind);
412
585
  this.intervalRewind = null;
@@ -535,10 +708,11 @@ var Shortcut = /*#__PURE__*/function (_Component) {
535
708
  }, {
536
709
  key: "handleKeyPress",
537
710
  value: function handleKeyPress(e) {
538
- var _this$props5 = this.props,
539
- player = _this$props5.player,
540
- actions = _this$props5.actions,
541
- frameRate = _this$props5.frameRate;
711
+ var _this$props7 = this.props,
712
+ player = _this$props7.player,
713
+ actions = _this$props7.actions,
714
+ frameRate = _this$props7.frameRate,
715
+ markers = _this$props7.markers;
542
716
  if (!player.isActive) {
543
717
  return;
544
718
  }
@@ -559,7 +733,8 @@ var Shortcut = /*#__PURE__*/function (_Component) {
559
733
  return true;
560
734
  })[0];
561
735
  if (shortcut) {
562
- shortcut.handle(player, actions, frameRate);
736
+ var _markers$;
737
+ shortcut.handle(player, actions, frameRate, e, (_markers$ = markers[0]) === null || _markers$ === void 0 ? void 0 : _markers$.values);
563
738
  e.preventDefault();
564
739
  }
565
740
  }
@@ -576,10 +751,10 @@ var Shortcut = /*#__PURE__*/function (_Component) {
576
751
  }, {
577
752
  key: "handleClick",
578
753
  value: function handleClick(e) {
579
- var _this$props6 = this.props,
580
- player = _this$props6.player,
581
- actions = _this$props6.actions,
582
- clickable = _this$props6.clickable;
754
+ var _this$props8 = this.props,
755
+ player = _this$props8.player,
756
+ actions = _this$props8.actions,
757
+ clickable = _this$props8.clickable;
583
758
  if (!this.canBeClicked(player, e) || !clickable) {
584
759
  return;
585
760
  }
@@ -589,10 +764,10 @@ var Shortcut = /*#__PURE__*/function (_Component) {
589
764
  }, {
590
765
  key: "handleDoubleClick",
591
766
  value: function handleDoubleClick(e) {
592
- var _this$props7 = this.props,
593
- player = _this$props7.player,
594
- actions = _this$props7.actions,
595
- dblclickable = _this$props7.dblclickable;
767
+ var _this$props9 = this.props,
768
+ player = _this$props9.player,
769
+ actions = _this$props9.actions,
770
+ dblclickable = _this$props9.dblclickable;
596
771
  if (!this.canBeClicked(player, e) || !dblclickable) {
597
772
  return;
598
773
  }
@@ -612,7 +787,6 @@ var Shortcut = /*#__PURE__*/function (_Component) {
612
787
  }]);
613
788
  return Shortcut;
614
789
  }(_react.Component);
615
- exports["default"] = Shortcut;
616
790
  Shortcut.propTypes = propTypes;
617
791
  Shortcut.defaultProps = defaultProps;
618
792
  Shortcut.displayName = 'Shortcut';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -13,20 +13,20 @@ var _colors = _interopRequireDefault(require("../colors"));
13
13
  var Dom = _interopRequireWildcard(require("../utils/dom"));
14
14
  var _templateObject;
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
19
  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); } }
20
20
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
23
- 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); }
24
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
22
+ 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); }
23
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
26
24
  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); }
27
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
29
26
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
+ 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); }
29
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
30
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
31
31
  var propTypes = {
32
32
  onMouseDown: _propTypes.PropTypes.func,
@@ -65,13 +65,12 @@ var defaultProps = {
65
65
  valuetext: ''
66
66
  };
67
67
  var SliderBlock = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n z-index: 2;\n width: 100%;\n height: 100%;\n background: ", ";\n"])), _colors["default"].dark.base);
68
- var Slider = /*#__PURE__*/function (_Component) {
68
+ var Slider = exports["default"] = /*#__PURE__*/function (_Component) {
69
69
  _inherits(Slider, _Component);
70
- var _super = _createSuper(Slider);
71
70
  function Slider(props, context) {
72
71
  var _this;
73
72
  _classCallCheck(this, Slider);
74
- _this = _super.call(this, props, context);
73
+ _this = _callSuper(this, Slider, [props, context]);
75
74
  _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_this));
76
75
  _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));
77
76
  _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_this));
@@ -268,7 +267,6 @@ var Slider = /*#__PURE__*/function (_Component) {
268
267
  }]);
269
268
  return Slider;
270
269
  }(_react.Component);
271
- exports["default"] = Slider;
272
270
  Slider.propTypes = propTypes;
273
271
  Slider.defaultProps = defaultProps;
274
272
  Slider.displayName = 'Slider';