@desynova-digital/player 4.0.105 → 4.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Manager.js +8 -9
- package/actions/player.js +1 -1
- package/components/AudioMeter.js +29 -30
- package/components/BigPlayButton.js +16 -17
- package/components/ImageViewer.js +16 -17
- package/components/MarkerBar.js +16 -17
- package/components/Menu.js +2 -2
- package/components/Player.js +51 -52
- package/components/PlayerHeader.js +25 -26
- package/components/Playlist.js +14 -15
- package/components/PointersBar.js +19 -20
- package/components/PosterImage.js +1 -1
- package/components/SDOutline.js +7 -7
- package/components/Shortcut.js +69 -70
- package/components/Slider.js +33 -33
- package/components/TagsBar.js +15 -16
- package/components/Video.js +123 -124
- package/components/control-bar/AudioTracksMenuButton.js +14 -15
- package/components/control-bar/CameraButton.js +15 -16
- package/components/control-bar/CaptionControlMenuButton.js +19 -20
- package/components/control-bar/CommentsButton.js +16 -17
- package/components/control-bar/ControlBar.js +18 -19
- package/components/control-bar/EditorControlMenuButton.js +16 -17
- package/components/control-bar/ForwardControl.js +1 -1
- package/components/control-bar/ForwardReplayControl.js +15 -16
- package/components/control-bar/FullscreenToggle.js +15 -16
- package/components/control-bar/PlayToggle.js +15 -16
- package/components/control-bar/ReplayControl.js +1 -1
- package/components/control-bar/SettingsMenuButton.js +4 -4
- package/components/control-bar/SubtitleLanguagesMenuButton.js +14 -15
- package/components/control-bar/SubtitleMovementMenu.js +16 -17
- package/components/control-bar/VolumeMenuButton.js +16 -17
- package/components/control-bar/ZoomMenuButton.js +16 -17
- package/components/marking-controls/MarkInControl.js +15 -16
- package/components/marking-controls/MarkOutControl.js +15 -16
- package/components/marking-controls/MarkingAddButton.js +15 -16
- package/components/marking-controls/MarkingControl.js +2 -2
- package/components/marking-controls/MarkingDeleteButton.js +15 -16
- package/components/marking-controls/MarkingDuration.js +2 -2
- package/components/marking-controls/MarkingPreview.js +15 -16
- package/components/marking-controls/TimecodeFormatSelector.js +7 -7
- package/components/progress-bar/AudioWaveform.js +15 -16
- package/components/progress-bar/LoadProgressBar.js +1 -1
- package/components/progress-bar/MouseTimeDisplay.js +1 -1
- package/components/progress-bar/PlayProgressBar.js +2 -2
- package/components/progress-bar/ProgressControl.js +102 -51
- package/components/progress-bar/RenderCommentMarkers.js +23 -23
- package/components/progress-bar/SeekBar.js +36 -43
- package/components/progress-bar/Timeline.js +14 -15
- package/components/settings-menu-control/CameraControl.js +3 -3
- package/components/settings-menu-control/ChildMenuComponent.js +28 -29
- package/components/settings-menu-control/ParentMenuComponent.js +17 -18
- package/components/settings-menu-control/PlaybackRateControl.js +15 -16
- package/components/settings-menu-control/SafeAreaControl.js +15 -16
- package/components/settings-menu-control/SettingsMenu.js +12 -12
- package/components/time-controls/CurrentTimeDisplay.js +7 -7
- package/components/time-controls/DurationDisplay.js +2 -2
- package/components/time-controls/TimeDivider.js +2 -2
- package/components/volume-control/VolumeBar.js +24 -25
- package/components/volume-control/VolumeControl.js +1 -1
- package/components/volume-control/VolumeLevel.js +2 -2
- package/components/zoom-control/ZoomBar.js +23 -24
- package/components/zoom-control/ZoomLevel.js +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
- package/reducers/operation.js +2 -2
- package/reducers/player.js +2 -2
- package/utils/browser.js +14 -14
- package/utils/dom.js +18 -18
- package/utils/fullscreen.js +5 -6
- package/utils/index.js +54 -54
|
@@ -9,22 +9,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _components = require("@desynova-digital/components");
|
|
11
11
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
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); }
|
|
14
|
-
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 &&
|
|
15
|
-
function _slicedToArray(
|
|
14
|
+
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; }
|
|
15
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
16
|
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."); }
|
|
17
|
-
function _unsupportedIterableToArray(
|
|
18
|
-
function _arrayLikeToArray(
|
|
17
|
+
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; } }
|
|
18
|
+
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; }
|
|
19
19
|
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; } }
|
|
20
|
-
function _arrayWithHoles(
|
|
21
|
-
function _taggedTemplateLiteral(
|
|
22
|
-
/* ----------------------------------------------------------
|
|
23
|
-
TIMELINE MAIN WRAPPER
|
|
20
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
22
|
+
/* ----------------------------------------------------------
|
|
23
|
+
TIMELINE MAIN WRAPPER
|
|
24
24
|
---------------------------------------------------------- */
|
|
25
25
|
var MarkerTimeline = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n height: 18px;\n"])));
|
|
26
|
-
/* ----------------------------------------------------------
|
|
27
|
-
Marker Dot
|
|
26
|
+
/* ----------------------------------------------------------
|
|
27
|
+
Marker Dot
|
|
28
28
|
---------------------------------------------------------- */
|
|
29
29
|
var MarkerDot = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n bottom: -6px;\n transform: translateX(-50%);\n width: 22px;\n height: 22px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n color: #0c141d;\n z-index: ", ";\n pointer-events: auto;\n\n font-family: SFUIText-Medium;\n font-size: 10px;\n font-weight: 500;\n line-height: 12px;\n\n &::before {\n content: '';\n position: absolute;\n width: 32px;\n height: 32px;\n top: -6px;\n left: -6px;\n }\n\n /* --- NEW top vertical line --- */\n &::after {\n content: '';\n position: absolute;\n top: -5px;\n left: 50%;\n transform: translateX(-50%);\n width: 1.5px;\n height: 5px;\n background: #bfbfbf;\n opacity: ", ";\n transition: opacity 0.15s ease-out;\n }\n\n ", "\n"])), function (p) {
|
|
30
30
|
return p.isHovered ? 2 : 1;
|
|
@@ -34,18 +34,18 @@ var MarkerDot = _styledComponents["default"].div(_templateObject2 || (_templateO
|
|
|
34
34
|
return p.multi ? "\n background: linear-gradient(90deg, #A56EFC 0%, #2EBF91 100%);\n padding: 1px;\n\n & > div.inner {\n background: #061014;\n color: #fff;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n display:flex;\n align-items:center;\n justify-content:center;\n }\n " : "\n background: #00CEC6;\n\n &:hover {\n background: #3bbfb6;\n }\n ";
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
/* ----------------------------------------------------------
|
|
38
|
-
END MARKER DOT
|
|
37
|
+
/* ----------------------------------------------------------
|
|
38
|
+
END MARKER DOT
|
|
39
39
|
---------------------------------------------------------- */
|
|
40
40
|
var EndMarkerDot = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n bottom: -6px;\n transform: translateX(-50%);\n width: 24px; /* bigger like your screenshot */\n height: 24px;\n border-radius: 50%;\n background: #47d2c7; /* teal outer circle */\n border: 2px solid #00b9b0; /* ring / boundary */\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 2;\n opacity: 0;\n transition: opacity 0.15s ease-out;\n\n &::after {\n content: '';\n width: 6px; /* inner white dot */\n height: 6px;\n background: #ffffff;\n border-radius: 50%;\n }\n\n &::before {\n content: '';\n position: absolute;\n top: -5px;\n left: 50%;\n transform: translateX(-50%);\n width: 1.5px;\n height: 5px;\n background: #bfbfbf;\n opacity: 1;\n\n transition: opacity 0.15s ease-out;\n }\n"])));
|
|
41
41
|
|
|
42
|
-
/* ----------------------------------------------------------
|
|
43
|
-
SEGMENT LINE
|
|
42
|
+
/* ----------------------------------------------------------
|
|
43
|
+
SEGMENT LINE
|
|
44
44
|
---------------------------------------------------------- */
|
|
45
45
|
var MarkerLine = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n bottom: 4px;\n height: 1px;\n background: #47d2c7;\n border-radius: 1px;\n opacity: 0;\n transition: opacity 0.15s ease-out;\n"])));
|
|
46
46
|
|
|
47
|
-
/* ----------------------------------------------------------
|
|
48
|
-
HOVER BOX
|
|
47
|
+
/* ----------------------------------------------------------
|
|
48
|
+
HOVER BOX
|
|
49
49
|
---------------------------------------------------------- */
|
|
50
50
|
|
|
51
51
|
var HoverScroll = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow-y: auto;\n max-height: 360px; /* 400 total - header height */\n\n /* Hide scrollbar everywhere */\n scrollbar-width: none;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n"])));
|
|
@@ -56,8 +56,8 @@ var HoverName = _styledComponents["default"].div(_templateObject9 || (_templateO
|
|
|
56
56
|
var HoverTime = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-family: SFUIText-Regular;\n font-size: 11px;\n color: #9fa4ad;\n margin-bottom: 6px;\n"])));
|
|
57
57
|
var HoverText = _styledComponents["default"].div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-family: SFUIText-Light;\n font-size: 14px;\n font-weight: 300;\n color: #ffffff;\n line-height: 18px;\n display: block;\n white-space: normal;\n overflow: visible;\n text-overflow: unset;\n\n /* FIX */\n width: 100%;\n max-width: 100%;\n box-sizing: border-box;\n"])));
|
|
58
58
|
|
|
59
|
-
/* ----------------------------------------------------------
|
|
60
|
-
UTILITIES (FIXED)
|
|
59
|
+
/* ----------------------------------------------------------
|
|
60
|
+
UTILITIES (FIXED)
|
|
61
61
|
---------------------------------------------------------- */
|
|
62
62
|
var clampPx = function clampPx(px, containerWidth) {
|
|
63
63
|
var SAFE = 10;
|
|
@@ -76,8 +76,8 @@ var getSafeLeftPx = function getSafeLeftPx(percent, containerWidth) {
|
|
|
76
76
|
return "".concat(clampPx(px, containerWidth), "px");
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
/* ----------------------------------------------------------
|
|
80
|
-
HOVER BOX CLAMP
|
|
79
|
+
/* ----------------------------------------------------------
|
|
80
|
+
HOVER BOX CLAMP
|
|
81
81
|
---------------------------------------------------------- */
|
|
82
82
|
var clampHoverBoxLeft = function clampHoverBoxLeft(rawLeftPx, boxWidth, containerWidth) {
|
|
83
83
|
var SAFE = 10;
|
|
@@ -85,8 +85,8 @@ var clampHoverBoxLeft = function clampHoverBoxLeft(rawLeftPx, boxWidth, containe
|
|
|
85
85
|
return Math.max(SAFE, Math.min(rawLeftPx, max));
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
/* ----------------------------------------------------------
|
|
89
|
-
MAIN COMPONENT
|
|
88
|
+
/* ----------------------------------------------------------
|
|
89
|
+
MAIN COMPONENT
|
|
90
90
|
---------------------------------------------------------- */
|
|
91
91
|
var RenderCommentMarkers = function RenderCommentMarkers(_ref) {
|
|
92
92
|
var _ref$data = _ref.data,
|
|
@@ -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(
|
|
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 &&
|
|
21
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
22
|
-
function _classCallCheck(
|
|
23
|
-
function _defineProperties(
|
|
24
|
-
function _createClass(
|
|
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(
|
|
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(
|
|
29
|
-
function
|
|
30
|
-
function
|
|
31
|
-
function
|
|
32
|
-
function
|
|
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(
|
|
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(
|
|
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,35 +103,36 @@ 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(
|
|
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(
|
|
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(
|
|
118
|
-
_this.getNewTime = _this.getNewTime.bind(
|
|
119
|
-
_this.stepForward = _this.stepForward.bind(
|
|
120
|
-
_this.stepBack = _this.stepBack.bind(
|
|
121
|
-
_this.handleMouseDown = _this.handleMouseDown.bind(
|
|
122
|
-
_this.handleMouseMove = _this.handleMouseMove.bind(
|
|
123
|
-
_this.handleMouseUp = _this.handleMouseUp.bind(
|
|
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
|
};
|
|
127
126
|
_this.hoverBoxRef = /*#__PURE__*/_react["default"].createRef();
|
|
128
127
|
_this.hoverImageRef = /*#__PURE__*/_react["default"].createRef();
|
|
129
|
-
_this.ensureInitialScroll = _this.ensureInitialScroll.bind(
|
|
130
|
-
_this.observeSeekbar = _this.observeSeekbar.bind(
|
|
131
|
-
_this.disconnectObserver = _this.disconnectObserver.bind(
|
|
128
|
+
_this.ensureInitialScroll = _this.ensureInitialScroll.bind(_this);
|
|
129
|
+
_this.observeSeekbar = _this.observeSeekbar.bind(_this);
|
|
130
|
+
_this.disconnectObserver = _this.disconnectObserver.bind(_this);
|
|
132
131
|
_this.lastObservedWidth = 0;
|
|
133
132
|
return _this;
|
|
134
133
|
}
|
|
135
|
-
|
|
134
|
+
_inherits(SeekBar, _Component);
|
|
135
|
+
return _createClass(SeekBar, [{
|
|
136
136
|
key: "componentDidMount",
|
|
137
137
|
value: function componentDidMount() {
|
|
138
138
|
this.ensureInitialScroll();
|
|
@@ -157,11 +157,11 @@ var SeekBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
157
157
|
this.disconnectObserver();
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
/**
|
|
161
|
-
* Get percentage of video played
|
|
162
|
-
*
|
|
163
|
-
* @return {Number} Percentage played
|
|
164
|
-
* @method getPercent
|
|
160
|
+
/**
|
|
161
|
+
* Get percentage of video played
|
|
162
|
+
*
|
|
163
|
+
* @return {Number} Percentage played
|
|
164
|
+
* @method getPercent
|
|
165
165
|
*/
|
|
166
166
|
}, {
|
|
167
167
|
key: "ensureInitialScroll",
|
|
@@ -347,18 +347,12 @@ var SeekBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
347
347
|
onMouseDown: this.handleMouseDown,
|
|
348
348
|
onMouseMove: function onMouseMove(e) {
|
|
349
349
|
_this4.handleMouseMove(e); // existing seeking
|
|
350
|
-
|
|
350
|
+
// this.handleHoverScrub(e); // NEW preview scrub
|
|
351
351
|
},
|
|
352
352
|
onMouseUp: this.handleMouseUp,
|
|
353
353
|
onMouseEnter: this.showHoverPreview,
|
|
354
354
|
onMouseLeave: this.hideHoverPreview
|
|
355
|
-
},
|
|
356
|
-
ref: this.hoverBoxRef
|
|
357
|
-
}, /*#__PURE__*/_react["default"].createElement(HoverPreviewImage, {
|
|
358
|
-
ref: this.hoverImageRef,
|
|
359
|
-
src: this.props.iframeURL,
|
|
360
|
-
draggable: false
|
|
361
|
-
})), /*#__PURE__*/_react["default"].createElement(SliderBlock, {
|
|
355
|
+
}, /*#__PURE__*/_react["default"].createElement(SliderBlock, {
|
|
362
356
|
playerType: playerType,
|
|
363
357
|
isFullscreen: isFullscreen
|
|
364
358
|
}, /*#__PURE__*/_react["default"].createElement(_Slider["default"], _extends({}, this.props, {
|
|
@@ -391,7 +385,6 @@ var SeekBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
391
385
|
})))) : null));
|
|
392
386
|
}
|
|
393
387
|
}]);
|
|
394
|
-
return SeekBar;
|
|
395
388
|
}(_react.Component);
|
|
396
389
|
SeekBar.displayName = 'SeekBar';
|
|
397
390
|
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(
|
|
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 &&
|
|
17
|
-
function _classCallCheck(
|
|
18
|
-
function _defineProperties(
|
|
19
|
-
function _createClass(
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? 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(
|
|
24
|
-
function _assertThisInitialized(
|
|
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(
|
|
27
|
-
function _inherits(
|
|
28
|
-
function _setPrototypeOf(
|
|
29
|
-
function _taggedTemplateLiteral(
|
|
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
|
-
|
|
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(
|
|
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 &&
|
|
18
|
-
function _taggedTemplateLiteral(
|
|
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(
|
|
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 &&
|
|
19
|
-
function _classCallCheck(
|
|
20
|
-
function _defineProperties(
|
|
21
|
-
function _createClass(
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? 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(
|
|
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(
|
|
28
|
-
function
|
|
29
|
-
function
|
|
30
|
-
function
|
|
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(
|
|
66
|
-
_this.handleChange = _this.handleChange.bind(
|
|
67
|
-
_this.stopCaption = _this.stopCaption.bind(
|
|
68
|
-
_this.renderContentByHeader = _this.renderContentByHeader.bind(
|
|
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
|
-
|
|
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';
|
|
@@ -12,22 +12,22 @@ var _components = require("@desynova-digital/components");
|
|
|
12
12
|
var _tokens = require("@desynova-digital/tokens");
|
|
13
13
|
var _lodash = require("lodash");
|
|
14
14
|
var _templateObject, _templateObject2;
|
|
15
|
-
function _interopRequireDefault(
|
|
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 &&
|
|
18
|
-
function _classCallCheck(
|
|
19
|
-
function _defineProperties(
|
|
20
|
-
function _createClass(
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
19
|
+
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); } }
|
|
20
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
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
23
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
24
|
-
function _possibleConstructorReturn(
|
|
24
|
+
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); }
|
|
25
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
25
26
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
|
-
function _getPrototypeOf(
|
|
27
|
-
function
|
|
28
|
-
function
|
|
29
|
-
function
|
|
30
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
27
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
28
|
+
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); }
|
|
29
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
30
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
31
31
|
var propTypes = {
|
|
32
32
|
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
33
33
|
player: _propTypes.PropTypes.instanceOf(Object),
|
|
@@ -46,18 +46,18 @@ var ParentMenuBlock = (0, _styledComponents["default"])('div')(_templateObject |
|
|
|
46
46
|
});
|
|
47
47
|
var RightContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute; /* Position absolutely */\n right: 0; /* Align to the right */\n display: flex;\n align-items: center;\n p {\n font-family: SFUIText-Medium;\n margin-right: 10px;\n white-space: nowrap;\n }\n i {\n display: flex;\n align-items: center;\n }\n"])));
|
|
48
48
|
var ParentMenuControl = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
49
|
-
_inherits(ParentMenuControl, _Component);
|
|
50
49
|
function ParentMenuControl(props) {
|
|
51
50
|
var _this;
|
|
52
51
|
_classCallCheck(this, ParentMenuControl);
|
|
53
52
|
_this = _callSuper(this, ParentMenuControl, [props]);
|
|
54
|
-
_this.handleClick = _this.handleClick.bind(
|
|
53
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
|
55
54
|
return _this;
|
|
56
55
|
}
|
|
57
|
-
/**
|
|
58
|
-
* This function is used to change the states that are responsible for showing settings menu or subtitle menu.
|
|
56
|
+
/**
|
|
57
|
+
* This function is used to change the states that are responsible for showing settings menu or subtitle menu.
|
|
59
58
|
*/
|
|
60
|
-
|
|
59
|
+
_inherits(ParentMenuControl, _Component);
|
|
60
|
+
return _createClass(ParentMenuControl, [{
|
|
61
61
|
key: "handleClick",
|
|
62
62
|
value: function handleClick() {
|
|
63
63
|
var handleStatus = this.props.handleStatus;
|
|
@@ -90,7 +90,6 @@ var ParentMenuControl = exports["default"] = /*#__PURE__*/function (_Component)
|
|
|
90
90
|
}))) : null;
|
|
91
91
|
}
|
|
92
92
|
}]);
|
|
93
|
-
return ParentMenuControl;
|
|
94
93
|
}(_react.Component);
|
|
95
94
|
ParentMenuControl.propTypes = propTypes;
|
|
96
95
|
ParentMenuControl.displayName = 'ParentMenuControl';
|