@desynova-digital/player 3.9.6 → 3.9.8
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 +26 -50
- package/actions/player.js +58 -89
- package/actions/video.js +70 -69
- package/colors.js +13 -13
- package/components/AudioMeter.js +138 -182
- package/components/BigPlayButton.js +48 -72
- package/components/ImageViewer.js +120 -165
- package/components/MarkerBar.js +64 -75
- package/components/Menu.js +30 -57
- package/components/Player.js +266 -326
- package/components/PlayerHeader.js +213 -348
- package/components/Playlist.js +50 -89
- package/components/PointersBar.js +131 -203
- package/components/PosterImage.js +12 -22
- package/components/SDOutline.js +32 -54
- package/components/Shortcut.js +135 -140
- package/components/Slider.js +85 -128
- package/components/TagsBar.js +45 -62
- package/components/Video.js +479 -655
- package/components/control-bar/AudioTracksMenuButton.js +63 -86
- package/components/control-bar/CameraButton.js +65 -76
- package/components/control-bar/CommentsButton.js +97 -136
- package/components/control-bar/ControlBar.js +171 -164
- package/components/control-bar/EditorControlMenuButton.js +180 -280
- package/components/control-bar/ForwardControl.js +7 -11
- package/components/control-bar/ForwardReplayControl.js +41 -55
- package/components/control-bar/FullscreenToggle.js +48 -67
- package/components/control-bar/PlayToggle.js +39 -54
- package/components/control-bar/ReplayControl.js +7 -11
- package/components/control-bar/SettingsMenuButton.js +19 -29
- package/components/control-bar/SubtitleLanguagesMenuButton.js +90 -119
- package/components/control-bar/SubtitleMovementMenu.js +128 -0
- package/components/control-bar/VolumeMenuButton.js +71 -96
- package/components/control-bar/ZoomMenuButton.js +57 -81
- package/components/marking-controls/MarkInControl.js +49 -65
- package/components/marking-controls/MarkOutControl.js +53 -69
- package/components/marking-controls/MarkingAddButton.js +41 -54
- package/components/marking-controls/MarkingControl.js +58 -107
- package/components/marking-controls/MarkingDeleteButton.js +39 -51
- package/components/marking-controls/MarkingDuration.js +23 -56
- package/components/marking-controls/MarkingPreview.js +39 -51
- package/components/progress-bar/AudioWaveform.js +48 -64
- package/components/progress-bar/LoadProgressBar.js +14 -37
- package/components/progress-bar/MouseTimeDisplay.js +14 -30
- package/components/progress-bar/PlayProgressBar.js +23 -41
- package/components/progress-bar/ProgressControl.js +82 -141
- package/components/progress-bar/SeekBar.js +101 -169
- package/components/progress-bar/Timeline.js +57 -81
- package/components/settings-menu-control/PlaybackRateControl.js +70 -115
- package/components/settings-menu-control/SafeAreaControl.js +49 -65
- package/components/settings-menu-control/SettingsMenu.js +26 -50
- package/components/time-controls/CurrentTimeDisplay.js +15 -34
- package/components/time-controls/DurationDisplay.js +14 -33
- package/components/time-controls/TimeDivider.js +12 -28
- package/components/volume-control/VolumeBar.js +84 -118
- package/components/volume-control/VolumeControl.js +7 -23
- package/components/volume-control/VolumeLevel.js +19 -36
- package/components/zoom-control/ZoomBar.js +79 -111
- package/components/zoom-control/ZoomLevel.js +24 -36
- package/index.js +204 -149
- package/package.json +5 -1
- package/reducers/index.js +12 -14
- package/reducers/operation.js +14 -14
- package/reducers/player.js +40 -42
- package/utils/browser.js +10 -5
- package/utils/dom.js +4 -15
- package/utils/fullscreen.js +24 -24
- package/utils/index.js +35 -46
|
@@ -1,44 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
var _styledComponents2 = _interopRequireDefault(_styledComponents);
|
|
18
|
-
|
|
19
|
-
var _propTypes = require('prop-types');
|
|
20
|
-
|
|
21
|
-
var _Slider = require('../Slider');
|
|
22
|
-
|
|
23
|
-
var _Slider2 = _interopRequireDefault(_Slider);
|
|
24
|
-
|
|
25
|
-
var _ZoomLevel = require('./ZoomLevel');
|
|
26
|
-
|
|
27
|
-
var _ZoomLevel2 = _interopRequireDefault(_ZoomLevel);
|
|
28
|
-
|
|
29
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
|
-
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _propTypes = require("prop-types");
|
|
11
|
+
var _Slider = _interopRequireDefault(require("../Slider"));
|
|
12
|
+
var _ZoomLevel = _interopRequireDefault(require("./ZoomLevel"));
|
|
13
|
+
var _templateObject;
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32
|
-
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
19
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
22
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
23
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
24
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
26
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
27
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
28
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
29
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
30
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
31
|
+
var ZoomControlBar = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 100%;\n position: relative;\n cursor: pointer;\n z-index: 1;\n width: 100%;\n"])));
|
|
42
32
|
var propTypes = {
|
|
43
33
|
actions: _propTypes.PropTypes.instanceOf(Object),
|
|
44
34
|
player: _propTypes.PropTypes.instanceOf(Object),
|
|
@@ -46,89 +36,78 @@ var propTypes = {
|
|
|
46
36
|
onFocus: _propTypes.PropTypes.func,
|
|
47
37
|
onBlur: _propTypes.PropTypes.func
|
|
48
38
|
};
|
|
49
|
-
|
|
50
|
-
var ZoomBar = function (_Component) {
|
|
39
|
+
var ZoomBar = /*#__PURE__*/function (_Component) {
|
|
51
40
|
_inherits(ZoomBar, _Component);
|
|
52
|
-
|
|
41
|
+
var _super = _createSuper(ZoomBar);
|
|
53
42
|
function ZoomBar(props, context) {
|
|
43
|
+
var _this;
|
|
54
44
|
_classCallCheck(this, ZoomBar);
|
|
55
|
-
|
|
56
|
-
var _this = _possibleConstructorReturn(this, (ZoomBar.__proto__ || Object.getPrototypeOf(ZoomBar)).call(this, props, context));
|
|
57
|
-
|
|
45
|
+
_this = _super.call(this, props, context);
|
|
58
46
|
_this.state = {
|
|
59
47
|
percentage: '0%'
|
|
60
48
|
};
|
|
61
|
-
|
|
62
|
-
_this.
|
|
63
|
-
_this.
|
|
64
|
-
_this.
|
|
65
|
-
_this.
|
|
66
|
-
_this.
|
|
67
|
-
_this.
|
|
68
|
-
_this.
|
|
69
|
-
_this.handleClick = _this.handleClick.bind(_this);
|
|
49
|
+
_this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));
|
|
50
|
+
_this.handlePercentageChange = _this.handlePercentageChange.bind(_assertThisInitialized(_this));
|
|
51
|
+
_this.getPercent = _this.getPercent.bind(_assertThisInitialized(_this));
|
|
52
|
+
_this.stepForward = _this.stepForward.bind(_assertThisInitialized(_this));
|
|
53
|
+
_this.stepBack = _this.stepBack.bind(_assertThisInitialized(_this));
|
|
54
|
+
_this.handleFocus = _this.handleFocus.bind(_assertThisInitialized(_this));
|
|
55
|
+
_this.handleBlur = _this.handleBlur.bind(_assertThisInitialized(_this));
|
|
56
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
70
57
|
return _this;
|
|
71
58
|
}
|
|
72
|
-
|
|
73
59
|
_createClass(ZoomBar, [{
|
|
74
|
-
key:
|
|
60
|
+
key: "componentDidMount",
|
|
75
61
|
value: function componentDidMount() {}
|
|
76
62
|
}, {
|
|
77
|
-
key:
|
|
63
|
+
key: "getPercent",
|
|
78
64
|
value: function getPercent() {
|
|
79
65
|
var player = this.props.player;
|
|
80
|
-
|
|
81
66
|
return player.zoom;
|
|
82
67
|
}
|
|
83
68
|
}, {
|
|
84
|
-
key:
|
|
69
|
+
key: "handleMouseMove",
|
|
85
70
|
value: function handleMouseMove(event) {
|
|
86
71
|
var actions = this.props.actions;
|
|
87
|
-
|
|
88
72
|
var distance = this.slider.calculateDistance(event);
|
|
89
73
|
actions.handleZoomChange(distance);
|
|
90
74
|
}
|
|
91
75
|
}, {
|
|
92
|
-
key:
|
|
76
|
+
key: "stepForward",
|
|
93
77
|
value: function stepForward() {
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
78
|
+
var _this$props = this.props,
|
|
79
|
+
player = _this$props.player,
|
|
80
|
+
actions = _this$props.actions;
|
|
98
81
|
actions.handleZoomChange(player.zoom + 0.1);
|
|
99
82
|
}
|
|
100
83
|
}, {
|
|
101
|
-
key:
|
|
84
|
+
key: "stepBack",
|
|
102
85
|
value: function stepBack() {
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
86
|
+
var _this$props2 = this.props,
|
|
87
|
+
player = _this$props2.player,
|
|
88
|
+
actions = _this$props2.actions;
|
|
107
89
|
actions.handleZoomChange(player.zoom - 0.1);
|
|
108
90
|
}
|
|
109
91
|
}, {
|
|
110
|
-
key:
|
|
92
|
+
key: "handleFocus",
|
|
111
93
|
value: function handleFocus(e) {
|
|
112
94
|
var onFocus = this.props.onFocus;
|
|
113
|
-
|
|
114
95
|
if (onFocus) {
|
|
115
96
|
onFocus(e);
|
|
116
97
|
}
|
|
117
98
|
}
|
|
118
99
|
}, {
|
|
119
|
-
key:
|
|
100
|
+
key: "handleBlur",
|
|
120
101
|
value: function handleBlur(e) {
|
|
121
102
|
var onBlur = this.props.onBlur;
|
|
122
|
-
|
|
123
103
|
if (onBlur) {
|
|
124
104
|
onBlur(e);
|
|
125
105
|
}
|
|
126
106
|
}
|
|
127
107
|
}, {
|
|
128
|
-
key:
|
|
108
|
+
key: "handlePercentageChange",
|
|
129
109
|
value: function handlePercentageChange(percent) {
|
|
130
110
|
var percentage = this.state.percentage;
|
|
131
|
-
|
|
132
111
|
if (percent !== percentage) {
|
|
133
112
|
this.setState({
|
|
134
113
|
percentage: percent
|
|
@@ -136,54 +115,43 @@ var ZoomBar = function (_Component) {
|
|
|
136
115
|
}
|
|
137
116
|
}
|
|
138
117
|
}, {
|
|
139
|
-
key:
|
|
118
|
+
key: "handleClick",
|
|
140
119
|
value: function handleClick(event) {
|
|
141
120
|
event.stopPropagation();
|
|
142
121
|
}
|
|
143
122
|
}, {
|
|
144
|
-
key:
|
|
123
|
+
key: "render",
|
|
145
124
|
value: function render() {
|
|
146
125
|
var _this2 = this;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
vertical = _props3.vertical;
|
|
151
|
-
|
|
152
|
-
|
|
126
|
+
var _this$props3 = this.props,
|
|
127
|
+
player = _this$props3.player,
|
|
128
|
+
vertical = _this$props3.vertical;
|
|
153
129
|
var zoom = (player.zoom * 100).toFixed(2);
|
|
154
|
-
return
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
stepForward: this.stepForward,
|
|
175
|
-
stepBack: this.stepBack
|
|
176
|
-
}, this.props),
|
|
177
|
-
_react2.default.createElement(_ZoomLevel2.default, _extends({ vertical: vertical }, this.props))
|
|
178
|
-
)
|
|
179
|
-
);
|
|
130
|
+
return /*#__PURE__*/_react["default"].createElement(ZoomControlBar, null, /*#__PURE__*/_react["default"].createElement(_Slider["default"], _extends({
|
|
131
|
+
ref: function ref(c) {
|
|
132
|
+
_this2.slider = c;
|
|
133
|
+
},
|
|
134
|
+
label: "zoom level",
|
|
135
|
+
valuenow: zoom,
|
|
136
|
+
valuetext: "".concat(zoom, "%"),
|
|
137
|
+
onMouseMove: this.handleMouseMove,
|
|
138
|
+
onFocus: this.handleFocus,
|
|
139
|
+
onBlur: this.handleBlur,
|
|
140
|
+
onClick: this.handleClick,
|
|
141
|
+
sliderActive: this.handleFocus,
|
|
142
|
+
sliderInactive: this.handleBlur,
|
|
143
|
+
getPercent: this.getPercent,
|
|
144
|
+
onPercentageChange: this.handlePercentageChange,
|
|
145
|
+
stepForward: this.stepForward,
|
|
146
|
+
stepBack: this.stepBack
|
|
147
|
+
}, this.props), /*#__PURE__*/_react["default"].createElement(_ZoomLevel["default"], _extends({
|
|
148
|
+
vertical: vertical
|
|
149
|
+
}, this.props))));
|
|
180
150
|
}
|
|
181
151
|
}]);
|
|
182
|
-
|
|
183
152
|
return ZoomBar;
|
|
184
153
|
}(_react.Component);
|
|
185
|
-
|
|
186
154
|
ZoomBar.displayName = 'ZoomBar';
|
|
187
155
|
ZoomBar.propTypes = propTypes;
|
|
188
|
-
|
|
189
|
-
exports
|
|
156
|
+
var _default = ZoomBar;
|
|
157
|
+
exports["default"] = _default;
|
|
@@ -1,68 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
var _propTypes = require(
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _styledComponents2 = _interopRequireDefault(_styledComponents);
|
|
16
|
-
|
|
17
|
-
var _colors = require('../../colors');
|
|
18
|
-
|
|
19
|
-
var _colors2 = _interopRequireDefault(_colors);
|
|
20
|
-
|
|
21
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _propTypes = require("prop-types");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _colors = _interopRequireDefault(require("../../colors"));
|
|
11
|
+
var _templateObject;
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
23
14
|
var propTypes = {
|
|
24
15
|
playerType: _propTypes.PropTypes.oneOf(['dubbing_review', 'clipping_default', 'default', 'tagging', 'qc', 'subtitle', 'snp_edit', 'archive', 'restore', 'clipping', 'storyboard', 'panel']),
|
|
25
16
|
percentage: _propTypes.PropTypes.string,
|
|
26
17
|
vertical: _propTypes.PropTypes.bool
|
|
27
18
|
};
|
|
28
|
-
|
|
29
19
|
var defaultProps = {
|
|
30
20
|
percentage: '100%',
|
|
31
21
|
vertical: false
|
|
32
22
|
};
|
|
33
|
-
|
|
34
|
-
var ZoomLevelBar = _styledComponents2.default.div.withConfig({
|
|
35
|
-
displayName: 'ZoomLevel__ZoomLevelBar',
|
|
36
|
-
componentId: 'sc-1t9ozlh-0'
|
|
37
|
-
})(['position:absolute;width:100%;height:100%;left:0;top:', ';bottom:', ';background:', ';&:after{content:\'\';width:8px;height:8px;position:absolute;background:', ';border-radius:100%;right:-3px;top:-3px;box-shadow:0 0 14px 1px ', ';}'], function (props) {
|
|
23
|
+
var ZoomLevelBar = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: ", ";\n bottom: ", ";\n background: ", ";\n &:after {\n content: '';\n width: 8px;\n height: 8px;\n position: absolute;\n background: ", ";\n border-radius: 100%;\n right: -3px;\n top: -3px;\n box-shadow: 0 0 14px 1px\n ", ";\n }\n"])), function (props) {
|
|
38
24
|
return props.vertical ? 'initial' : '0px';
|
|
39
25
|
}, function (props) {
|
|
40
26
|
return props.vertical ? '0px' : 'initial';
|
|
41
27
|
}, function (props) {
|
|
42
|
-
return
|
|
28
|
+
return _colors["default"].common.video[props.assetType].base;
|
|
43
29
|
}, function (props) {
|
|
44
|
-
return
|
|
30
|
+
return _colors["default"].common.video[props.assetType].base;
|
|
45
31
|
}, function (props) {
|
|
46
|
-
return
|
|
32
|
+
return _colors["default"].common.video[props.assetType].base;
|
|
47
33
|
});
|
|
48
|
-
|
|
49
34
|
function ZoomLevel(_ref) {
|
|
50
35
|
var percentage = _ref.percentage,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
36
|
+
vertical = _ref.vertical,
|
|
37
|
+
playerType = _ref.playerType,
|
|
38
|
+
assetType = _ref.assetType;
|
|
55
39
|
var style = {};
|
|
56
40
|
if (vertical) {
|
|
57
41
|
style.height = percentage;
|
|
58
42
|
} else {
|
|
59
43
|
style.width = percentage;
|
|
60
44
|
}
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
return /*#__PURE__*/_react["default"].createElement(ZoomLevelBar, {
|
|
46
|
+
style: style,
|
|
47
|
+
playerType: playerType,
|
|
48
|
+
vertical: vertical,
|
|
49
|
+
assetType: assetType
|
|
50
|
+
});
|
|
63
51
|
}
|
|
64
|
-
|
|
65
52
|
ZoomLevel.propTypes = propTypes;
|
|
66
53
|
ZoomLevel.defaultProps = defaultProps;
|
|
67
54
|
ZoomLevel.displayName = 'ZoomLevel';
|
|
68
|
-
|
|
55
|
+
var _default = ZoomLevel;
|
|
56
|
+
exports["default"] = _default;
|