@desynova-digital/player 4.0.85 → 4.0.87
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 +54 -3
- package/components/AudioMeter.js +27 -28
- 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 +210 -110
- package/components/PlayerHeader.js +117 -64
- package/components/Playlist.js +14 -15
- package/components/PointersBar.js +19 -20
- package/components/PosterImage.js +1 -1
- package/components/SDOutline.js +11 -4
- package/components/Shortcut.js +85 -75
- package/components/Slider.js +33 -33
- package/components/TagsBar.js +15 -16
- package/components/Video.js +124 -122
- 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 +17 -18
- 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 +24 -19
- 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 +19 -20
- package/components/progress-bar/RenderCommentMarkers.js +186 -0
- package/components/progress-bar/SeekBar.js +31 -32
- 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
|
@@ -10,24 +10,25 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
var _components = require("@desynova-digital/components");
|
|
12
12
|
var _colors = _interopRequireDefault(require("../colors"));
|
|
13
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
14
|
-
function _interopRequireDefault(
|
|
13
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
18
|
-
function _classCallCheck(
|
|
19
|
-
function _defineProperties(
|
|
20
|
-
function _createClass(
|
|
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); }
|
|
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 _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); }
|
|
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; }
|
|
23
21
|
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(
|
|
22
|
+
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); }
|
|
23
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
25
24
|
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
|
|
25
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
26
|
+
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); }
|
|
27
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
28
|
+
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; }
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
|
+
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); }
|
|
31
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
31
32
|
var propTypes = {
|
|
32
33
|
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
33
34
|
onPlayerClose: _propTypes.PropTypes.func,
|
|
@@ -60,40 +61,74 @@ var VideoTitle = _styledComponents["default"].button(_templateObject2 || (_templ
|
|
|
60
61
|
var isShowPageAvailable = _ref.isShowPageAvailable;
|
|
61
62
|
return isShowPageAvailable ? 'pointer' : 'default';
|
|
62
63
|
});
|
|
63
|
-
var
|
|
64
|
-
var
|
|
64
|
+
var IconButton = (0, _styledComponents["default"])(_components.Button)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 8px;\n padding: 4px;\n border: 1px solid ", ";\n transition: all 0.2s ease;\n\n /* Icon color */\n svg path {\n fill: ", " !important;\n }\n\n &:hover {\n background: ", ";\n border-color: ", ";\n\n svg path {\n fill: ", " !important;\n }\n }\n\n &:active {\n background: ", ";\n }\n"])), function (_ref2) {
|
|
65
|
+
var isRightMenuVisible = _ref2.isRightMenuVisible;
|
|
66
|
+
return isRightMenuVisible ? '#ffffff' : '#0bbec5';
|
|
67
|
+
}, function (_ref3) {
|
|
68
|
+
var isRightMenuVisible = _ref3.isRightMenuVisible;
|
|
69
|
+
return isRightMenuVisible ? '#e0e0e0' : '#0bbec5';
|
|
70
|
+
}, function (_ref4) {
|
|
71
|
+
var isRightMenuVisible = _ref4.isRightMenuVisible;
|
|
72
|
+
return isRightMenuVisible ? '#0bbec5' : '#ffffff';
|
|
73
|
+
}, function (_ref5) {
|
|
74
|
+
var isRightMenuVisible = _ref5.isRightMenuVisible;
|
|
75
|
+
return isRightMenuVisible ? '#f5fefe' : '#09aab1';
|
|
76
|
+
}, function (_ref6) {
|
|
77
|
+
var isRightMenuVisible = _ref6.isRightMenuVisible;
|
|
78
|
+
return isRightMenuVisible ? '#c9f0f0' : '#09aab1';
|
|
79
|
+
}, function (_ref7) {
|
|
80
|
+
var isRightMenuVisible = _ref7.isRightMenuVisible;
|
|
81
|
+
return isRightMenuVisible ? '#089ca2' : '#ffffff';
|
|
82
|
+
}, function (_ref8) {
|
|
83
|
+
var isRightMenuVisible = _ref8.isRightMenuVisible;
|
|
84
|
+
return isRightMenuVisible ? '#e7f8f8' : '#088f96';
|
|
85
|
+
});
|
|
86
|
+
var PlayerDetails = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: 20px;\n text-align: left;\n .video-bottom-container {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n .video-sub-title {\n color: #afb2ba;\n font-size: 10px;\n font-family: SFUIText-Medium;\n margin-right: 5px;\n }\n .version-category {\n font-size: 10px;\n letter-spacing: 0.4px;\n color: #fff;\n font-family: SFUIText-Regular;\n text-transform: uppercase;\n }\n .versions-dropdown-block {\n position: relative;\n &:hover {\n .active-version {\n cursor: pointer;\n border-color: #00cec6 !important;\n }\n .versions-dropdown-container {\n visibility: visible;\n opacity: 1;\n }\n }\n .active-version {\n transition: all 350ms ease-in-out;\n border: 1px solid #fff;\n border-radius: 10px;\n margin-left: 5px;\n padding: 3px 10px;\n color: #fff;\n font-size: 10px;\n font-family: SFUIText-Regular;\n font-weight: bold;\n pointer-events: none;\n }\n .versions-dropdown-container {\n padding-top: 15px;\n position: absolute;\n top: 13px;\n left: 50%;\n transform: translateX(-50%);\n visibility: hidden;\n opacity: 0;\n transition: all 450ms ease-in-out;\n &:after {\n content: '';\n border-bottom: 6px solid #00cec6;\n border-right: 6px solid transparent;\n border-left: 6px solid transparent;\n position: absolute;\n top: 9px;\n left: 50%;\n transform: translateX(-50%);\n }\n .versions-container {\n overflow-y: auto;\n overflow-x: hidden;\n max-height: 204px;\n box-shadow: 0px 12px 24px rgb(0 0 0 / 20%);\n min-width: 250px;\n background: #fff;\n border-radius: 10px;\n .ingest-versions-container {\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n padding: 10px 15px;\n .ingest-version-block {\n display: flex;\n justify-content: space-between;\n align-items: center;\n .upload-type {\n width: 6px;\n height: 6px;\n border-radius: 100%;\n overflow: hidden;\n left: 5px;\n position: absolute;\n }\n .ingest-version-name {\n color: #182738;\n font-size: 11px;\n font-family: SFUIText-Regular;\n font-weight: bold;\n margin-right: 10px;\n }\n .video-versions-container {\n display: inline-flex;\n align-items: center;\n .more-dropdown-icon {\n padding-top: 8px;\n cursor: pointer;\n }\n path {\n fill: #182738;\n }\n }\n }\n }\n &::-webkit-scrollbar {\n width: 5px;\n background-color: #6d6a6a;\n }\n }\n }\n }\n .video-time-block {\n margin-left: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n .tv-time,\n .ott-time {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 10px;\n p {\n margin-left: 5px;\n color: rgb(175, 178, 186);\n font-family: 'SFUIText-Regular';\n font-size: 10px;\n align-self: self-end;\n }\n }\n }\n }\n"])));
|
|
87
|
+
var VersionBlock = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-family: SFUIText-Regular;\n font-weight: bold;\n font-size: 10px;\n line-height: 1.2;\n border-radius: 100%;\n width: 30px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n background: ", ";\n color: ", ";\n &.active {\n background: ", ";\n color: #ffffff;\n pointer-events: none;\n }\n margin-right: 10px;\n"])), function (props) {
|
|
65
88
|
return props.upload_type === 'fc' ? 'rgba(0, 206, 198, 0.1)' : 'rgba(255, 99, 39, 0.1)';
|
|
66
89
|
}, function (props) {
|
|
67
90
|
return props.upload_type === 'fc' ? '#00CEC6' : '#FF6327';
|
|
68
91
|
}, function (props) {
|
|
69
92
|
return props.upload_type === 'fc' ? '#00cec6' : '#FF6327';
|
|
70
93
|
});
|
|
71
|
-
var PlayerType = _styledComponents["default"].div(
|
|
72
|
-
var QCReportButton = (0, _styledComponents["default"])(_components.Button)(
|
|
73
|
-
var BackButton = (0, _styledComponents["default"])(_components.Button)(
|
|
94
|
+
var PlayerType = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: auto;\n margin-right: 15px;\n display: flex;\n ", " {\n padding: 7px;\n background-color: rgba(255, 255, 255, 0.1);\n border: none;\n }\n"])), _components.Button.Element);
|
|
95
|
+
var QCReportButton = (0, _styledComponents["default"])(_components.Button)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n pointer-events: all !important;\n margin-right: 10px;\n"])));
|
|
96
|
+
var BackButton = (0, _styledComponents["default"])(_components.Button)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background: ", ";\n border: none;\n margin: 10px;\n margin-right: 0;\n width: 40px;\n height: 40px;\n &:hover,\n &:focus {\n background: ", ";\n }\n ", " {\n transform: translate(-50%, -50%);\n top: 50%;\n left: 50%;\n position: absolute;\n }\n"])), function (props) {
|
|
74
97
|
return _colors["default"].common.video[props.assetType].base;
|
|
75
98
|
}, function (props) {
|
|
76
99
|
return _colors["default"].common.video[props.assetType].base;
|
|
77
100
|
}, _components.Icon.Element);
|
|
78
101
|
var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
79
|
-
_inherits(PlayerHeader, _Component);
|
|
80
102
|
function PlayerHeader(props, context) {
|
|
81
103
|
var _this;
|
|
82
104
|
_classCallCheck(this, PlayerHeader);
|
|
83
105
|
_this = _callSuper(this, PlayerHeader, [props, context]);
|
|
106
|
+
_defineProperty(_this, "handleRightMenuVisibility", function () {
|
|
107
|
+
var _this$props = _this.props,
|
|
108
|
+
isRightMenuVisible = _this$props.isRightMenuVisible,
|
|
109
|
+
onRightMenuVisible = _this$props.onRightMenuVisible,
|
|
110
|
+
actions = _this$props.actions,
|
|
111
|
+
player = _this$props.player;
|
|
112
|
+
var newVisibility = !isRightMenuVisible;
|
|
113
|
+
// Ask parent to update its state
|
|
114
|
+
onRightMenuVisible(newVisibility);
|
|
115
|
+
// Trigger UI change based on the NEW value
|
|
116
|
+
actions.toggleRightBar(player, newVisibility);
|
|
117
|
+
});
|
|
84
118
|
_this.state = {
|
|
85
119
|
versionIndex: -1,
|
|
86
120
|
updatedVersionsList: []
|
|
87
121
|
};
|
|
88
|
-
_this.handleClick = _this.handleClick.bind(
|
|
122
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
|
89
123
|
return _this;
|
|
90
124
|
}
|
|
91
|
-
|
|
125
|
+
_inherits(PlayerHeader, _Component);
|
|
126
|
+
return _createClass(PlayerHeader, [{
|
|
92
127
|
key: "componentDidMount",
|
|
93
128
|
value: function componentDidMount() {
|
|
94
|
-
var _this$
|
|
95
|
-
versions = _this$
|
|
96
|
-
activeVersion = _this$
|
|
129
|
+
var _this$props2 = this.props,
|
|
130
|
+
versions = _this$props2.versions,
|
|
131
|
+
activeVersion = _this$props2.activeVersion;
|
|
97
132
|
if (versions && versions.length) {
|
|
98
133
|
this.updateVersion(versions, activeVersion);
|
|
99
134
|
}
|
|
@@ -101,10 +136,10 @@ var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
101
136
|
}, {
|
|
102
137
|
key: "handleClick",
|
|
103
138
|
value: function handleClick() {
|
|
104
|
-
var _this$
|
|
105
|
-
onPlayerClose = _this$
|
|
106
|
-
onPlayerChange = _this$
|
|
107
|
-
controlType = _this$
|
|
139
|
+
var _this$props3 = this.props,
|
|
140
|
+
onPlayerClose = _this$props3.onPlayerClose,
|
|
141
|
+
onPlayerChange = _this$props3.onPlayerChange,
|
|
142
|
+
controlType = _this$props3.controlType;
|
|
108
143
|
if (controlType !== 'default') {
|
|
109
144
|
onPlayerChange();
|
|
110
145
|
} else {
|
|
@@ -116,19 +151,19 @@ var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
116
151
|
}, {
|
|
117
152
|
key: "openQCReport",
|
|
118
153
|
value: function openQCReport() {
|
|
119
|
-
var _this$
|
|
120
|
-
onReportClick = _this$
|
|
121
|
-
actions = _this$
|
|
154
|
+
var _this$props4 = this.props,
|
|
155
|
+
onReportClick = _this$props4.onReportClick,
|
|
156
|
+
actions = _this$props4.actions;
|
|
122
157
|
if (onReportClick) {
|
|
123
158
|
actions.pause();
|
|
124
159
|
onReportClick();
|
|
125
160
|
}
|
|
126
161
|
}
|
|
127
162
|
|
|
128
|
-
/**
|
|
129
|
-
* saves the index of version that is expanded.
|
|
130
|
-
* @param {Number} index index of the versionList
|
|
131
|
-
|
|
163
|
+
/**
|
|
164
|
+
* saves the index of version that is expanded.
|
|
165
|
+
* @param {Number} index index of the versionList
|
|
166
|
+
*/
|
|
132
167
|
}, {
|
|
133
168
|
key: "saveIndexOfVersion",
|
|
134
169
|
value: function saveIndexOfVersion(index) {
|
|
@@ -139,10 +174,10 @@ var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
139
174
|
});
|
|
140
175
|
}
|
|
141
176
|
|
|
142
|
-
/**
|
|
143
|
-
* returns the object with active version at the first element in object
|
|
144
|
-
* @param {Object} version object containing complete version list.
|
|
145
|
-
* @param {Object} activeVersion object containing currently active version.
|
|
177
|
+
/**
|
|
178
|
+
* returns the object with active version at the first element in object
|
|
179
|
+
* @param {Object} version object containing complete version list.
|
|
180
|
+
* @param {Object} activeVersion object containing currently active version.
|
|
146
181
|
*/
|
|
147
182
|
}, {
|
|
148
183
|
key: "updateVersion",
|
|
@@ -151,9 +186,9 @@ var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
151
186
|
updatedVersionsList.map(function (ele, index) {
|
|
152
187
|
ele.versions.map(function (versionsList, innerIndex) {
|
|
153
188
|
if (versionsList.ingest_db_id === activeVersion.ingest_db_id) {
|
|
154
|
-
var tempData = updatedVersionsList[index][
|
|
155
|
-
updatedVersionsList[index][
|
|
156
|
-
updatedVersionsList[index][
|
|
189
|
+
var tempData = updatedVersionsList[index]['versions'][innerIndex];
|
|
190
|
+
updatedVersionsList[index]['versions'].splice(innerIndex, 1);
|
|
191
|
+
updatedVersionsList[index]['versions'].unshift(tempData);
|
|
157
192
|
}
|
|
158
193
|
});
|
|
159
194
|
});
|
|
@@ -164,9 +199,9 @@ var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
164
199
|
}, {
|
|
165
200
|
key: "componentDidUpdate",
|
|
166
201
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
167
|
-
var _this$
|
|
168
|
-
versions = _this$
|
|
169
|
-
activeVersion = _this$
|
|
202
|
+
var _this$props5 = this.props,
|
|
203
|
+
versions = _this$props5.versions,
|
|
204
|
+
activeVersion = _this$props5.activeVersion;
|
|
170
205
|
if (activeVersion.ingest_db_id !== prevProps.activeVersion.ingest_db_id || !prevState.updatedVersionsList.length) {
|
|
171
206
|
if (versions && versions.length) {
|
|
172
207
|
this.updateVersion(versions, activeVersion);
|
|
@@ -177,26 +212,29 @@ var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
177
212
|
key: "render",
|
|
178
213
|
value: function render() {
|
|
179
214
|
var _this2 = this;
|
|
180
|
-
var _this$
|
|
181
|
-
videoDetails = _this$
|
|
182
|
-
versionClick = _this$
|
|
183
|
-
activeVersion = _this$
|
|
184
|
-
onTitleClick = _this$
|
|
185
|
-
_this$
|
|
186
|
-
userActivity = _this$
|
|
187
|
-
isFullscreen = _this$
|
|
188
|
-
playerType = _this$
|
|
189
|
-
qcReportAvailable = _this$
|
|
190
|
-
openSharePopup = _this$
|
|
191
|
-
isShareAvailable = _this$
|
|
192
|
-
isUserGuest = _this$
|
|
215
|
+
var _this$props6 = this.props,
|
|
216
|
+
videoDetails = _this$props6.videoDetails,
|
|
217
|
+
versionClick = _this$props6.versionClick,
|
|
218
|
+
activeVersion = _this$props6.activeVersion,
|
|
219
|
+
onTitleClick = _this$props6.onTitleClick,
|
|
220
|
+
_this$props6$player = _this$props6.player,
|
|
221
|
+
userActivity = _this$props6$player.userActivity,
|
|
222
|
+
isFullscreen = _this$props6$player.isFullscreen,
|
|
223
|
+
playerType = _this$props6.playerType,
|
|
224
|
+
qcReportAvailable = _this$props6.qcReportAvailable,
|
|
225
|
+
openSharePopup = _this$props6.openSharePopup,
|
|
226
|
+
isShareAvailable = _this$props6.isShareAvailable,
|
|
227
|
+
isUserGuest = _this$props6.isUserGuest,
|
|
228
|
+
isRightMenuVisible = _this$props6.isRightMenuVisible;
|
|
193
229
|
var _this$state = this.state,
|
|
194
230
|
versionIndex = _this$state.versionIndex,
|
|
195
231
|
updatedVersionsList = _this$state.updatedVersionsList;
|
|
196
232
|
return /*#__PURE__*/_react["default"].createElement(PlayerHeaderBlock, {
|
|
197
233
|
className: "player-header-block",
|
|
198
234
|
active: userActivity,
|
|
199
|
-
player: playerType
|
|
235
|
+
player: playerType,
|
|
236
|
+
isFullscreen: isFullscreen,
|
|
237
|
+
isRightMenuVisible: isRightMenuVisible
|
|
200
238
|
}, !isFullscreen && !isUserGuest && /*#__PURE__*/_react["default"].createElement(BackButton, _extends({
|
|
201
239
|
display: "rounded",
|
|
202
240
|
appearance: "cta",
|
|
@@ -291,7 +329,10 @@ var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
291
329
|
width: 16,
|
|
292
330
|
height: 12,
|
|
293
331
|
color: "#afb2ba"
|
|
294
|
-
}), /*#__PURE__*/_react["default"].createElement("p", null, videoDetails.ottTime)) : null))), /*#__PURE__*/_react["default"].createElement(PlayerType,
|
|
332
|
+
}), /*#__PURE__*/_react["default"].createElement("p", null, videoDetails.ottTime)) : null))), /*#__PURE__*/_react["default"].createElement(PlayerType, {
|
|
333
|
+
isFullscreen: isFullscreen,
|
|
334
|
+
isRightMenuVisible: isRightMenuVisible
|
|
335
|
+
}, !isFullscreen && !isUserGuest && isShareAvailable && playerType === 'default' && /*#__PURE__*/_react["default"].createElement(_components.Button, _extends({
|
|
295
336
|
display: "rounded",
|
|
296
337
|
appearance: "cta",
|
|
297
338
|
icon: "share",
|
|
@@ -326,10 +367,22 @@ var PlayerHeader = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
326
367
|
style: {
|
|
327
368
|
pointerEvents: 'none'
|
|
328
369
|
}
|
|
329
|
-
}, this.props)) : null
|
|
370
|
+
}, this.props)) : null, isFullscreen ? /*#__PURE__*/_react["default"].createElement(IconButton, {
|
|
371
|
+
isRightMenuVisible: isRightMenuVisible,
|
|
372
|
+
display: "rounded",
|
|
373
|
+
appearance: "cta",
|
|
374
|
+
icon: "toggle-fullscreen",
|
|
375
|
+
width: 25,
|
|
376
|
+
height: 25,
|
|
377
|
+
iconWidth: 24,
|
|
378
|
+
iconHeight: 24,
|
|
379
|
+
tabIndex: "1",
|
|
380
|
+
onClick: function onClick() {
|
|
381
|
+
return _this2.handleRightMenuVisibility();
|
|
382
|
+
}
|
|
383
|
+
}) : null));
|
|
330
384
|
}
|
|
331
385
|
}]);
|
|
332
|
-
return PlayerHeader;
|
|
333
386
|
}(_react.Component);
|
|
334
387
|
PlayerHeader.propTypes = propTypes;
|
|
335
388
|
PlayerHeader.displayName = 'PlayerHeader';
|
package/components/Playlist.js
CHANGED
|
@@ -10,22 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
var _components = require("@desynova-digital/components");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3;
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
14
|
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); }
|
|
15
|
-
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 &&
|
|
16
|
-
function _classCallCheck(
|
|
17
|
-
function _defineProperties(
|
|
18
|
-
function _createClass(
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
15
|
+
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; }
|
|
16
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
+
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); } }
|
|
18
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
20
|
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); }
|
|
21
21
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
|
-
function _possibleConstructorReturn(
|
|
23
|
-
function _assertThisInitialized(
|
|
22
|
+
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); }
|
|
23
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
24
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
-
function _getPrototypeOf(
|
|
26
|
-
function _inherits(
|
|
27
|
-
function _setPrototypeOf(
|
|
28
|
-
function _taggedTemplateLiteral(
|
|
25
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
26
|
+
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); }
|
|
27
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
28
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
29
29
|
/*
|
|
30
30
|
* import { play } from '../actions/player';
|
|
31
31
|
* import { colors } from '@desynova-digital/tokens';
|
|
@@ -52,12 +52,12 @@ var PlaylistCard = (0, _styledComponents["default"])('div')(_templateObject3 ||
|
|
|
52
52
|
return props.active ? 'none' : 'all';
|
|
53
53
|
});
|
|
54
54
|
var Playlist = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
55
|
-
_inherits(Playlist, _Component);
|
|
56
55
|
function Playlist(props, context) {
|
|
57
56
|
_classCallCheck(this, Playlist);
|
|
58
57
|
return _callSuper(this, Playlist, [props, context]);
|
|
59
58
|
}
|
|
60
|
-
|
|
59
|
+
_inherits(Playlist, _Component);
|
|
60
|
+
return _createClass(Playlist, [{
|
|
61
61
|
key: "componentDidMount",
|
|
62
62
|
value: function componentDidMount() {}
|
|
63
63
|
}, {
|
|
@@ -89,7 +89,6 @@ var Playlist = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
89
89
|
})) : null);
|
|
90
90
|
}
|
|
91
91
|
}]);
|
|
92
|
-
return Playlist;
|
|
93
92
|
}(_react.Component);
|
|
94
93
|
Playlist.propTypes = propTypes;
|
|
95
94
|
Playlist.displayName = 'Playlist';
|
|
@@ -15,28 +15,28 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
15
15
|
/* eslint-disable jsx-a11y/mouse-events-have-key-events */
|
|
16
16
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
17
17
|
/* eslint-disable react/no-array-index-key */
|
|
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 &&
|
|
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
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
|
-
function _defineProperty(
|
|
24
|
-
function _classCallCheck(
|
|
25
|
-
function _defineProperties(
|
|
26
|
-
function _createClass(
|
|
27
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
23
|
+
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; }
|
|
24
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
25
|
+
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); } }
|
|
26
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
28
|
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
29
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
30
|
-
function _possibleConstructorReturn(
|
|
30
|
+
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); }
|
|
31
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
31
32
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
32
|
-
function _getPrototypeOf(
|
|
33
|
-
function
|
|
34
|
-
function
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* import
|
|
39
|
-
* import colors from '../colors';
|
|
33
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
34
|
+
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); }
|
|
35
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
36
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
37
|
+
/*
|
|
38
|
+
* import { colors } from '@desynova-digital/tokens';
|
|
39
|
+
* import colors from '../colors';
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
var propTypes = {
|
|
@@ -63,12 +63,11 @@ var ToolTipStyles = _styledComponents["default"].div(_templateObject5 || (_templ
|
|
|
63
63
|
return props.tooltipPointer ? props.tooltipPointer + 'px' : '50%';
|
|
64
64
|
});
|
|
65
65
|
var PointersBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
66
|
-
_inherits(PointersBar, _Component);
|
|
67
66
|
function PointersBar(props) {
|
|
68
67
|
var _this;
|
|
69
68
|
_classCallCheck(this, PointersBar);
|
|
70
69
|
_this = _callSuper(this, PointersBar, [props]);
|
|
71
|
-
_this.getPointerStyle = _this.getPointerStyle.bind(
|
|
70
|
+
_this.getPointerStyle = _this.getPointerStyle.bind(_this);
|
|
72
71
|
_this.state = {
|
|
73
72
|
tooltip: {
|
|
74
73
|
isVisible: false
|
|
@@ -90,7 +89,8 @@ var PointersBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
90
89
|
// this.renderComp = 0;
|
|
91
90
|
// return true;
|
|
92
91
|
// }
|
|
93
|
-
|
|
92
|
+
_inherits(PointersBar, _Component);
|
|
93
|
+
return _createClass(PointersBar, [{
|
|
94
94
|
key: "componentDidUpdate",
|
|
95
95
|
value: function componentDidUpdate(prevProps) {
|
|
96
96
|
if (prevProps.zoom !== this.props.zoom) {
|
|
@@ -302,7 +302,6 @@ var PointersBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
302
302
|
}))));
|
|
303
303
|
}
|
|
304
304
|
}]);
|
|
305
|
-
return PointersBar;
|
|
306
305
|
}(_react.Component);
|
|
307
306
|
PointersBar.propTypes = propTypes;
|
|
308
307
|
PointersBar.defaultProps = defaultProps;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _propTypes = require("prop-types");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
var propTypes = {
|
|
11
11
|
poster: _propTypes.PropTypes.string,
|
|
12
12
|
player: _propTypes.PropTypes.instanceOf(Object),
|
package/components/SDOutline.js
CHANGED
|
@@ -9,14 +9,18 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
9
9
|
var _propTypes = require("prop-types");
|
|
10
10
|
var _colors = _interopRequireDefault(require("../colors"));
|
|
11
11
|
var _templateObject, _templateObject2;
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _taggedTemplateLiteral(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
14
14
|
var propTypes = {
|
|
15
15
|
player: _propTypes.PropTypes.instanceOf(Object),
|
|
16
16
|
actions: _propTypes.PropTypes.instanceOf(Object)
|
|
17
17
|
};
|
|
18
18
|
var SDPlayerBorder = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n opacity: 0.3;\n border: solid 1px ", ";\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n -o-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n position: absolute;\n // padding-left: 75%;\n // height: 100%;\n height: ", ";\n padding-left: ", "\n"])), _colors["default"].common.base.white, function (props) {
|
|
19
|
-
|
|
19
|
+
if (props.isFullscreen && props.isRightMenuVisible) {
|
|
20
|
+
return props.heightRatio ? "calc(75% * ".concat(props.heightRatio, ")") : '75%';
|
|
21
|
+
} else {
|
|
22
|
+
return props.heightRatio ? "calc(100% * ".concat(props.heightRatio, ")") : '100%';
|
|
23
|
+
}
|
|
20
24
|
}, function (props) {
|
|
21
25
|
return props.paddingLeftPercent ? "calc(".concat(props.paddingLeftPercent, " * ").concat(props.paddingLeftRatio, ")") : '75%';
|
|
22
26
|
});
|
|
@@ -28,7 +32,8 @@ function SDOutline(_ref) {
|
|
|
28
32
|
paddingLeftPercent = _ref.paddingLeftPercent,
|
|
29
33
|
paddingLeftRatio = _ref.paddingLeftRatio,
|
|
30
34
|
text = _ref.text,
|
|
31
|
-
keyData = _ref.keyData
|
|
35
|
+
keyData = _ref.keyData,
|
|
36
|
+
isRightMenuVisible = _ref.isRightMenuVisible;
|
|
32
37
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(SDPlayerBorder, {
|
|
33
38
|
style: !player[keyData] ? {
|
|
34
39
|
display: 'none'
|
|
@@ -38,6 +43,8 @@ function SDOutline(_ref) {
|
|
|
38
43
|
heightRatio: heightRatio,
|
|
39
44
|
paddingLeftPercent: paddingLeftPercent,
|
|
40
45
|
paddingLeftRatio: paddingLeftRatio,
|
|
46
|
+
isFullscreen: player.isFullscreen,
|
|
47
|
+
isRightMenuVisible: isRightMenuVisible,
|
|
41
48
|
onClick: function onClick() {
|
|
42
49
|
if (player.paused) {
|
|
43
50
|
actions.play();
|