@appquality/unguess-design-system 3.1.78 → 3.1.79
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/CHANGELOG.md +16 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +555 -240
- package/build/stories/buttons/button/index.stories.d.ts +0 -1
- package/build/stories/buttons/utils.d.ts +27 -27
- package/build/stories/chat/index.stories.d.ts +0 -1
- package/build/stories/dropdowns/select/index.stories.d.ts +0 -1
- package/build/stories/editor/index.stories.d.ts +0 -1
- package/build/stories/highlight/_types.d.ts +36 -0
- package/build/stories/highlight/index.d.ts +10 -0
- package/build/stories/highlight/index.stories.d.ts +16 -0
- package/build/stories/player/_types.d.ts +13 -0
- package/build/stories/player/index.stories.d.ts +1 -2
- package/build/stories/player/parts/bookmark.d.ts +2 -0
- package/build/stories/player/parts/controls.d.ts +6 -2
- package/build/stories/player/parts/controlsCenterGroup.d.ts +4 -1
- package/build/stories/player/parts/progress.d.ts +11 -0
- package/build/stories/player/parts/progressContext.d.ts +16 -0
- package/package.json +1 -1
- package/yarn-error.log +0 -13958
package/build/index.js
CHANGED
|
@@ -329,8 +329,8 @@ const UgContainerCard = styled__default["default"](reactNotifications.Well) `
|
|
|
329
329
|
`;
|
|
330
330
|
const ContainerCard = (props) => jsxRuntime.jsx(UgContainerCard, Object.assign({}, props));
|
|
331
331
|
|
|
332
|
-
var _a, _b, _c, _d, _e, _f, _g$
|
|
333
|
-
const components = Object.assign(Object.assign(Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.components), { chrome: Object.assign(Object.assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: Object.assign(Object.assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }), nav: Object.assign(Object.assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: Object.assign(Object.assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: Object.assign(Object.assign({}, (_h = (_g$
|
|
332
|
+
var _a, _b, _c, _d, _e, _f, _g$d, _h;
|
|
333
|
+
const components = Object.assign(Object.assign(Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.components), { chrome: Object.assign(Object.assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: Object.assign(Object.assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }), nav: Object.assign(Object.assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: Object.assign(Object.assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: Object.assign(Object.assign({}, (_h = (_g$d = reactTheming.DEFAULT_THEME.components) === null || _g$d === void 0 ? void 0 : _g$d.notification) === null || _h === void 0 ? void 0 : _h.well), { padding: "16px" }) }) }), cardCmponentStyle), { "text.primary": () => ({
|
|
334
334
|
color: getColor(colors.primaryHue, 600),
|
|
335
335
|
}), "text.success": () => ({
|
|
336
336
|
color: getColor(colors.successHue, 700),
|
|
@@ -838,8 +838,8 @@ Tag.Close = StyledClose;
|
|
|
838
838
|
Tag.SecondaryText = StyledSpan;
|
|
839
839
|
|
|
840
840
|
var _path$z;
|
|
841
|
-
function _extends$
|
|
842
|
-
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
841
|
+
function _extends$M() { _extends$M = 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$M.apply(this, arguments); }
|
|
842
|
+
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
843
843
|
width: 24,
|
|
844
844
|
height: 24,
|
|
845
845
|
viewBox: "0 0 24 24",
|
|
@@ -851,8 +851,8 @@ const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
851
851
|
})));
|
|
852
852
|
|
|
853
853
|
var _path$y;
|
|
854
|
-
function _extends$
|
|
855
|
-
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
854
|
+
function _extends$L() { _extends$L = 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$L.apply(this, arguments); }
|
|
855
|
+
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
856
856
|
width: 24,
|
|
857
857
|
height: 24,
|
|
858
858
|
viewBox: "0 0 24 24",
|
|
@@ -864,8 +864,8 @@ const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
864
864
|
})));
|
|
865
865
|
|
|
866
866
|
var _path$x;
|
|
867
|
-
function _extends$
|
|
868
|
-
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
867
|
+
function _extends$K() { _extends$K = 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$K.apply(this, arguments); }
|
|
868
|
+
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
869
869
|
width: 24,
|
|
870
870
|
height: 24,
|
|
871
871
|
viewBox: "0 0 24 24",
|
|
@@ -877,8 +877,8 @@ const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
877
877
|
})));
|
|
878
878
|
|
|
879
879
|
var _rect$4, _path$w, _path2$b, _path3$4;
|
|
880
|
-
function _extends$
|
|
881
|
-
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
880
|
+
function _extends$J() { _extends$J = 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$J.apply(this, arguments); }
|
|
881
|
+
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
882
882
|
width: 24,
|
|
883
883
|
height: 24,
|
|
884
884
|
viewBox: "0 0 24 24",
|
|
@@ -901,8 +901,8 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
901
901
|
})));
|
|
902
902
|
|
|
903
903
|
var _rect$3, _path$v, _path2$a;
|
|
904
|
-
function _extends$
|
|
905
|
-
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
904
|
+
function _extends$I() { _extends$I = 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$I.apply(this, arguments); }
|
|
905
|
+
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
906
906
|
width: 24,
|
|
907
907
|
height: 24,
|
|
908
908
|
viewBox: "0 0 24 24",
|
|
@@ -926,8 +926,8 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
926
926
|
})));
|
|
927
927
|
|
|
928
928
|
var _rect$2, _path$u, _path2$9;
|
|
929
|
-
function _extends$
|
|
930
|
-
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
929
|
+
function _extends$H() { _extends$H = 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$H.apply(this, arguments); }
|
|
930
|
+
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
931
931
|
width: 24,
|
|
932
932
|
height: 24,
|
|
933
933
|
viewBox: "0 0 24 24",
|
|
@@ -953,8 +953,8 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
953
953
|
})));
|
|
954
954
|
|
|
955
955
|
var _rect$1, _path$t, _path2$8, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
|
|
956
|
-
function _extends$
|
|
957
|
-
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
956
|
+
function _extends$G() { _extends$G = 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$G.apply(this, arguments); }
|
|
957
|
+
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
958
958
|
width: 24,
|
|
959
959
|
height: 24,
|
|
960
960
|
viewBox: "0 0 24 24",
|
|
@@ -997,15 +997,15 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
997
997
|
fill: "#FFB65A"
|
|
998
998
|
})));
|
|
999
999
|
|
|
1000
|
-
var _g$
|
|
1001
|
-
function _extends$
|
|
1002
|
-
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1000
|
+
var _g$c, _path$s, _path2$7, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
1001
|
+
function _extends$F() { _extends$F = 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$F.apply(this, arguments); }
|
|
1002
|
+
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
1003
1003
|
width: 24,
|
|
1004
1004
|
height: 24,
|
|
1005
1005
|
viewBox: "0 0 24 24",
|
|
1006
1006
|
fill: "none",
|
|
1007
1007
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1008
|
-
}, props), _g$
|
|
1008
|
+
}, props), _g$c || (_g$c = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1009
1009
|
opacity: 0.3
|
|
1010
1010
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1011
1011
|
opacity: 0.3,
|
|
@@ -1067,15 +1067,15 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
|
|
|
1067
1067
|
fill: "#ECF4F2"
|
|
1068
1068
|
})));
|
|
1069
1069
|
|
|
1070
|
-
var _g$
|
|
1071
|
-
function _extends$
|
|
1072
|
-
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1070
|
+
var _g$b, _path$r;
|
|
1071
|
+
function _extends$E() { _extends$E = 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$E.apply(this, arguments); }
|
|
1072
|
+
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
1073
1073
|
width: 24,
|
|
1074
1074
|
height: 24,
|
|
1075
1075
|
viewBox: "0 0 24 24",
|
|
1076
1076
|
fill: "none",
|
|
1077
1077
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1078
|
-
}, props), _g$
|
|
1078
|
+
}, props), _g$b || (_g$b = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1079
1079
|
opacity: 0.3
|
|
1080
1080
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1081
1081
|
opacity: 0.3,
|
|
@@ -1942,15 +1942,15 @@ const WaffleChart = ({ height, width, data, total, tooltip, }) => {
|
|
|
1942
1942
|
} }) })));
|
|
1943
1943
|
};
|
|
1944
1944
|
|
|
1945
|
-
var _g$
|
|
1946
|
-
function _extends$
|
|
1947
|
-
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1945
|
+
var _g$a, _defs$4;
|
|
1946
|
+
function _extends$D() { _extends$D = 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$D.apply(this, arguments); }
|
|
1947
|
+
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
1948
1948
|
width: 27,
|
|
1949
1949
|
height: 26,
|
|
1950
1950
|
viewBox: "0 0 27 26",
|
|
1951
1951
|
fill: "none",
|
|
1952
1952
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1953
|
-
}, props), _g$
|
|
1953
|
+
}, props), _g$a || (_g$a = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1954
1954
|
clipPath: "url(#clip0_21_19131)"
|
|
1955
1955
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1956
1956
|
d: "M26.5525 13C26.5525 20.1796 20.6084 26 13.2762 26C5.94481 26 0 20.1796 0 13C0 5.82111 5.94481 0 13.2762 0C20.6084 0 26.5525 5.82111 26.5525 13Z",
|
|
@@ -1966,15 +1966,15 @@ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1966
1966
|
fill: "white"
|
|
1967
1967
|
})))));
|
|
1968
1968
|
|
|
1969
|
-
var _g$
|
|
1970
|
-
function _extends$
|
|
1971
|
-
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1969
|
+
var _g$9, _defs$3;
|
|
1970
|
+
function _extends$C() { _extends$C = 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$C.apply(this, arguments); }
|
|
1971
|
+
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
1972
1972
|
width: 27,
|
|
1973
1973
|
height: 26,
|
|
1974
1974
|
viewBox: "0 0 27 26",
|
|
1975
1975
|
fill: "none",
|
|
1976
1976
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1977
|
-
}, props), _g$
|
|
1977
|
+
}, props), _g$9 || (_g$9 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1978
1978
|
clipPath: "url(#clip0_21_19130)"
|
|
1979
1979
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1980
1980
|
d: "M26.5525 13C26.5525 20.1796 20.6084 26 13.2762 26C5.94481 26 0 20.1796 0 13C0 5.82111 5.94481 0 13.2762 0C20.6084 0 26.5525 5.82111 26.5525 13Z",
|
|
@@ -1990,15 +1990,15 @@ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1990
1990
|
fill: "white"
|
|
1991
1991
|
})))));
|
|
1992
1992
|
|
|
1993
|
-
var _g$
|
|
1994
|
-
function _extends$
|
|
1995
|
-
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1993
|
+
var _g$8, _defs$2;
|
|
1994
|
+
function _extends$B() { _extends$B = 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$B.apply(this, arguments); }
|
|
1995
|
+
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1996
1996
|
width: 27,
|
|
1997
1997
|
height: 26,
|
|
1998
1998
|
viewBox: "0 0 27 26",
|
|
1999
1999
|
fill: "none",
|
|
2000
2000
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2001
|
-
}, props), _g$
|
|
2001
|
+
}, props), _g$8 || (_g$8 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2002
2002
|
clipPath: "url(#clip0_21_19129)"
|
|
2003
2003
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2004
2004
|
d: "M26.5525 13C26.5525 20.1796 20.6084 26 13.2762 26C5.94481 26 0 20.1796 0 13C0 5.82111 5.94481 0 13.2762 0C20.6084 0 26.5525 5.82111 26.5525 13Z",
|
|
@@ -2020,15 +2020,15 @@ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2020
2020
|
fill: "white"
|
|
2021
2021
|
})))));
|
|
2022
2022
|
|
|
2023
|
-
var _g$
|
|
2024
|
-
function _extends$
|
|
2025
|
-
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2023
|
+
var _g$7, _defs$1;
|
|
2024
|
+
function _extends$A() { _extends$A = 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$A.apply(this, arguments); }
|
|
2025
|
+
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2026
2026
|
width: 27,
|
|
2027
2027
|
height: 26,
|
|
2028
2028
|
viewBox: "0 0 27 26",
|
|
2029
2029
|
fill: "none",
|
|
2030
2030
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2031
|
-
}, props), _g$
|
|
2031
|
+
}, props), _g$7 || (_g$7 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2032
2032
|
clipPath: "url(#clip0_21_19127)"
|
|
2033
2033
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2034
2034
|
d: "M26.5525 13C26.5525 20.1796 20.6084 26 13.2762 26C5.94481 26 0 20.1796 0 13C0 5.82111 5.94481 0 13.2762 0C20.6084 0 26.5525 5.82111 26.5525 13Z",
|
|
@@ -2050,15 +2050,15 @@ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2050
2050
|
fill: "white"
|
|
2051
2051
|
})))));
|
|
2052
2052
|
|
|
2053
|
-
var _g$
|
|
2054
|
-
function _extends$
|
|
2055
|
-
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2053
|
+
var _g$6, _defs;
|
|
2054
|
+
function _extends$z() { _extends$z = 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$z.apply(this, arguments); }
|
|
2055
|
+
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2056
2056
|
width: 26,
|
|
2057
2057
|
height: 26,
|
|
2058
2058
|
viewBox: "0 0 26 26",
|
|
2059
2059
|
fill: "none",
|
|
2060
2060
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2061
|
-
}, props), _g$
|
|
2061
|
+
}, props), _g$6 || (_g$6 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2062
2062
|
clipPath: "url(#clip0_21_19125)"
|
|
2063
2063
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2064
2064
|
d: "M25.2051 13C25.2051 20.1796 19.5626 26 12.6025 26C5.64314 26 0 20.1796 0 13C0 5.82111 5.64314 0 12.6025 0C19.5626 0 25.2051 5.82111 25.2051 13Z",
|
|
@@ -2672,8 +2672,8 @@ const ChatTitle = styled__default["default"](Title$1) `
|
|
|
2672
2672
|
`;
|
|
2673
2673
|
|
|
2674
2674
|
var _path$q;
|
|
2675
|
-
function _extends$
|
|
2676
|
-
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2675
|
+
function _extends$y() { _extends$y = 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$y.apply(this, arguments); }
|
|
2676
|
+
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
2677
2677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2678
2678
|
width: 16,
|
|
2679
2679
|
height: 16,
|
|
@@ -2685,8 +2685,8 @@ const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
2685
2685
|
})));
|
|
2686
2686
|
|
|
2687
2687
|
var _path$p;
|
|
2688
|
-
function _extends$
|
|
2689
|
-
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2688
|
+
function _extends$x() { _extends$x = 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$x.apply(this, arguments); }
|
|
2689
|
+
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
2690
2690
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2691
2691
|
width: 16,
|
|
2692
2692
|
height: 16,
|
|
@@ -2701,8 +2701,8 @@ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2701
2701
|
})));
|
|
2702
2702
|
|
|
2703
2703
|
var _path$o, _path2$6;
|
|
2704
|
-
function _extends$
|
|
2705
|
-
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2704
|
+
function _extends$w() { _extends$w = 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$w.apply(this, arguments); }
|
|
2705
|
+
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
2706
2706
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2707
2707
|
width: 16,
|
|
2708
2708
|
height: 16,
|
|
@@ -2719,15 +2719,15 @@ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
2719
2719
|
d: "M5.5 12C6.5 11 7 9.5 7 8V6m4.5 6c1-1 1.5-2.5 1.5-4V6"
|
|
2720
2720
|
})));
|
|
2721
2721
|
|
|
2722
|
-
var _g$
|
|
2723
|
-
function _extends$
|
|
2724
|
-
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2722
|
+
var _g$5;
|
|
2723
|
+
function _extends$v() { _extends$v = 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$v.apply(this, arguments); }
|
|
2724
|
+
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
2725
2725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2726
2726
|
width: 16,
|
|
2727
2727
|
height: 16,
|
|
2728
2728
|
focusable: "false",
|
|
2729
2729
|
viewBox: "0 0 16 16"
|
|
2730
|
-
}, props), _g$
|
|
2730
|
+
}, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2731
2731
|
transform: "translate(-464 -332)"
|
|
2732
2732
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2733
2733
|
width: 16,
|
|
@@ -2747,15 +2747,15 @@ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2747
2747
|
transform: "translate(474.469 331)"
|
|
2748
2748
|
}))));
|
|
2749
2749
|
|
|
2750
|
-
var _g$
|
|
2751
|
-
function _extends$
|
|
2752
|
-
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2750
|
+
var _g$4;
|
|
2751
|
+
function _extends$u() { _extends$u = 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$u.apply(this, arguments); }
|
|
2752
|
+
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
2753
2753
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2754
2754
|
width: 16,
|
|
2755
2755
|
height: 16,
|
|
2756
2756
|
focusable: "false",
|
|
2757
2757
|
viewBox: "0 0 16 16"
|
|
2758
|
-
}, props), _g$
|
|
2758
|
+
}, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2759
2759
|
transform: "translate(-464 -332)"
|
|
2760
2760
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2761
2761
|
width: 16,
|
|
@@ -2775,15 +2775,15 @@ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2775
2775
|
transform: "translate(469.359 331)"
|
|
2776
2776
|
}))));
|
|
2777
2777
|
|
|
2778
|
-
var _g$
|
|
2779
|
-
function _extends$
|
|
2780
|
-
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2778
|
+
var _g$3;
|
|
2779
|
+
function _extends$t() { _extends$t = 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$t.apply(this, arguments); }
|
|
2780
|
+
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2781
2781
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2782
2782
|
width: 16,
|
|
2783
2783
|
height: 16,
|
|
2784
2784
|
focusable: "false",
|
|
2785
2785
|
viewBox: "0 0 16 16"
|
|
2786
|
-
}, props), _g$
|
|
2786
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2787
2787
|
transform: "translate(-464 -332)"
|
|
2788
2788
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2789
2789
|
width: 16,
|
|
@@ -2851,8 +2851,8 @@ const Tooltip = styled__default["default"](TooltipComponent) `
|
|
|
2851
2851
|
`;
|
|
2852
2852
|
|
|
2853
2853
|
var _path$n;
|
|
2854
|
-
function _extends$
|
|
2855
|
-
const SvgAtFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2854
|
+
function _extends$s() { _extends$s = 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$s.apply(this, arguments); }
|
|
2855
|
+
const SvgAtFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
2856
2856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2857
2857
|
width: 16,
|
|
2858
2858
|
height: 16,
|
|
@@ -3272,8 +3272,8 @@ const UgClose$1 = styled__default["default"](reactNotifications.Close) `
|
|
|
3272
3272
|
const Close = (props) => jsxRuntime.jsx(UgClose$1, Object.assign({}, props));
|
|
3273
3273
|
|
|
3274
3274
|
var _circle;
|
|
3275
|
-
function _extends$
|
|
3276
|
-
const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3275
|
+
function _extends$r() { _extends$r = 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$r.apply(this, arguments); }
|
|
3276
|
+
const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
3277
3277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3278
3278
|
width: 16,
|
|
3279
3279
|
height: 16,
|
|
@@ -3699,15 +3699,15 @@ const Hint = styled__default["default"](reactForms.Hint) ``;
|
|
|
3699
3699
|
**/
|
|
3700
3700
|
const Input = React.forwardRef((props, ref) => jsxRuntime.jsx(UgInput, Object.assign({ ref: ref }, props)));
|
|
3701
3701
|
|
|
3702
|
-
var _g$
|
|
3703
|
-
function _extends$
|
|
3704
|
-
const SvgNotesStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3702
|
+
var _g$2;
|
|
3703
|
+
function _extends$q() { _extends$q = 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$q.apply(this, arguments); }
|
|
3704
|
+
const SvgNotesStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
3705
3705
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3706
3706
|
width: 16,
|
|
3707
3707
|
height: 16,
|
|
3708
3708
|
focusable: "false",
|
|
3709
3709
|
viewBox: "0 0 16 16"
|
|
3710
|
-
}, props), _g$
|
|
3710
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3711
3711
|
fill: "none",
|
|
3712
3712
|
stroke: "currentColor"
|
|
3713
3713
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -3820,8 +3820,8 @@ const UgRadio = styled__default["default"](reactForms.Radio) ``;
|
|
|
3820
3820
|
const Radio = (props) => jsxRuntime.jsx(UgRadio, Object.assign({}, props));
|
|
3821
3821
|
|
|
3822
3822
|
var _path$m;
|
|
3823
|
-
function _extends$
|
|
3824
|
-
const SvgCheckLg = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3823
|
+
function _extends$p() { _extends$p = 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$p.apply(this, arguments); }
|
|
3824
|
+
const SvgCheckLg = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
3825
3825
|
width: 16,
|
|
3826
3826
|
height: 16,
|
|
3827
3827
|
viewBox: "0 0 16 16",
|
|
@@ -3912,6 +3912,98 @@ const UgGrid = styled__default["default"](reactGrid.Grid) `
|
|
|
3912
3912
|
*/
|
|
3913
3913
|
const Grid = (props) => jsxRuntime.jsx(UgGrid, Object.assign({}, props));
|
|
3914
3914
|
|
|
3915
|
+
const StyledWord = styled__default["default"](reactTypography.Span) `
|
|
3916
|
+
font-size: ${({ theme, size }) => theme.fontSizes[size !== null && size !== void 0 ? size : "md"]};
|
|
3917
|
+
padding: ${({ theme }) => theme.space.xxs} 0;
|
|
3918
|
+
|
|
3919
|
+
${({ observation, theme }) => {
|
|
3920
|
+
var _a, _b;
|
|
3921
|
+
return observation &&
|
|
3922
|
+
`
|
|
3923
|
+
user-select: none;
|
|
3924
|
+
background-color: ${(_a = observation.backgroundColor) !== null && _a !== void 0 ? _a : getColor(theme.palette.azure, 700, undefined, 0.5)};
|
|
3925
|
+
color: ${(_b = observation.color) !== null && _b !== void 0 ? _b : "white"};
|
|
3926
|
+
padding: 0 2px;
|
|
3927
|
+
|
|
3928
|
+
&:focus {
|
|
3929
|
+
outline: none;
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
+ span:not([observation]) {
|
|
3933
|
+
margin-left: 2px;
|
|
3934
|
+
}
|
|
3935
|
+
`;
|
|
3936
|
+
}}
|
|
3937
|
+
`;
|
|
3938
|
+
const ActiveWord = styled__default["default"].span `
|
|
3939
|
+
background-color: ${({ theme }) => getColor(theme.palette.fuschia, 700, undefined, 0.5)};
|
|
3940
|
+
border-radius: ${({ theme }) => theme.borderRadii.lg};
|
|
3941
|
+
padding: 0 2px;
|
|
3942
|
+
`;
|
|
3943
|
+
const WordsContainer = styled__default["default"].div `
|
|
3944
|
+
${StyledWord}, span {
|
|
3945
|
+
&::selection {
|
|
3946
|
+
background-color: ${({ theme }) => getColor(theme.palette.kale, 700, undefined, 0.5)};
|
|
3947
|
+
}
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3950
|
+
observation:first-of-type {
|
|
3951
|
+
border-top-left-radius: ${({ theme }) => theme.borderRadii.lg};
|
|
3952
|
+
border-bottom-left-radius: ${({ theme }) => theme.borderRadii.lg};
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
observation:last-of-type {
|
|
3956
|
+
border-top-right-radius: ${({ theme }) => theme.borderRadii.lg};
|
|
3957
|
+
border-bottom-right-radius: ${({ theme }) => theme.borderRadii.lg};
|
|
3958
|
+
}
|
|
3959
|
+
`;
|
|
3960
|
+
/**
|
|
3961
|
+
* Use Highlight to use highlight interation on any text element
|
|
3962
|
+
*/
|
|
3963
|
+
const Highlight = (props) => {
|
|
3964
|
+
const ref = React.useRef(null);
|
|
3965
|
+
const handleSelectionChange = React.useCallback(() => {
|
|
3966
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3967
|
+
const activeSelection = document.getSelection();
|
|
3968
|
+
const text = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.toString();
|
|
3969
|
+
if (!activeSelection || !text) {
|
|
3970
|
+
return;
|
|
3971
|
+
}
|
|
3972
|
+
const anchorNode = (_a = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
3973
|
+
const focusNode = (_b = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.focusNode) === null || _b === void 0 ? void 0 : _b.parentElement;
|
|
3974
|
+
if (anchorNode &&
|
|
3975
|
+
focusNode &&
|
|
3976
|
+
((_c = ref.current) === null || _c === void 0 ? void 0 : _c.contains(anchorNode)) && // Selection starts inside the ref
|
|
3977
|
+
((_d = ref.current) === null || _d === void 0 ? void 0 : _d.contains(focusNode)) // Selection ends inside the ref
|
|
3978
|
+
) {
|
|
3979
|
+
const selectionPart = {
|
|
3980
|
+
from: Math.min(Number.parseFloat((_e = anchorNode.getAttribute("data-start")) !== null && _e !== void 0 ? _e : "0"), Number.parseFloat((_f = focusNode.getAttribute("data-start")) !== null && _f !== void 0 ? _f : "0")),
|
|
3981
|
+
to: Math.max(Number.parseFloat((_g = anchorNode.getAttribute("data-end")) !== null && _g !== void 0 ? _g : "0"), Number.parseFloat((_h = focusNode.getAttribute("data-end")) !== null && _h !== void 0 ? _h : "0")),
|
|
3982
|
+
};
|
|
3983
|
+
(_j = props === null || props === void 0 ? void 0 : props.handleSelection) === null || _j === void 0 ? void 0 : _j.call(props, Object.assign(Object.assign({}, selectionPart), { text }));
|
|
3984
|
+
}
|
|
3985
|
+
}, [props]);
|
|
3986
|
+
React.useEffect(() => {
|
|
3987
|
+
if (ref.current === null)
|
|
3988
|
+
return;
|
|
3989
|
+
document.addEventListener("selectionchange", handleSelectionChange);
|
|
3990
|
+
return () => {
|
|
3991
|
+
document.removeEventListener("selectionchange", handleSelectionChange);
|
|
3992
|
+
};
|
|
3993
|
+
}, [ref, props, handleSelectionChange]);
|
|
3994
|
+
return jsxRuntime.jsx(WordsContainer, Object.assign({ ref: ref }, { children: props.children }));
|
|
3995
|
+
};
|
|
3996
|
+
const Word = (props) => {
|
|
3997
|
+
var _a;
|
|
3998
|
+
const isActive = props.currentTime &&
|
|
3999
|
+
props.currentTime >= props.start &&
|
|
4000
|
+
props.currentTime < props.end;
|
|
4001
|
+
// Is there an observation that contains this word?
|
|
4002
|
+
const observation = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.find((obs) => props.start >= obs.start && props.end <= obs.end);
|
|
4003
|
+
return (jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { observation: observation, "data-start": props.start, "data-end": props.end, className: !!observation ? "highlighted" : "" }, (!!observation ? { tag: "observation" } : {}), { children: [isActive ? jsxRuntime.jsx(ActiveWord, { children: props.children }) : props.children, !observation && " "] })));
|
|
4004
|
+
};
|
|
4005
|
+
Highlight.Word = Word;
|
|
4006
|
+
|
|
3915
4007
|
const UgModalBody = styled__default["default"](reactModals.Body) `
|
|
3916
4008
|
color: ${({ theme }) => theme.palette.grey["800"]};
|
|
3917
4009
|
`;
|
|
@@ -4015,8 +4107,8 @@ const Spinner = (props) => jsxRuntime.jsx(UgSpinner, Object.assign({}, props));
|
|
|
4015
4107
|
const Dots = (props) => jsxRuntime.jsx(reactLoaders.Dots, Object.assign({}, props));
|
|
4016
4108
|
|
|
4017
4109
|
var _path$l;
|
|
4018
|
-
function _extends$
|
|
4019
|
-
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4110
|
+
function _extends$o() { _extends$o = 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$o.apply(this, arguments); }
|
|
4111
|
+
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
4020
4112
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4021
4113
|
width: 16,
|
|
4022
4114
|
height: 16,
|
|
@@ -4114,8 +4206,8 @@ const Logo = (props) => {
|
|
|
4114
4206
|
};
|
|
4115
4207
|
|
|
4116
4208
|
var _path$k;
|
|
4117
|
-
function _extends$
|
|
4118
|
-
const SvgPlus = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4209
|
+
function _extends$n() { _extends$n = 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$n.apply(this, arguments); }
|
|
4210
|
+
const SvgPlus = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
4119
4211
|
width: 16,
|
|
4120
4212
|
height: 16,
|
|
4121
4213
|
viewBox: "0 0 16 16",
|
|
@@ -4253,8 +4345,8 @@ const HeaderItemText = (props) => jsxRuntime.jsx(UgHeaderItemText, Object.assign
|
|
|
4253
4345
|
const HeaderItemIcon = (props) => (jsxRuntime.jsx(reactChrome.HeaderItemIcon, Object.assign({}, props)));
|
|
4254
4346
|
|
|
4255
4347
|
var _path$j;
|
|
4256
|
-
function _extends$
|
|
4257
|
-
const SvgMenuStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4348
|
+
function _extends$m() { _extends$m = 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$m.apply(this, arguments); }
|
|
4349
|
+
const SvgMenuStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
4258
4350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4259
4351
|
width: 16,
|
|
4260
4352
|
height: 16,
|
|
@@ -4343,8 +4435,8 @@ Header.HeaderItemText = HeaderItemText;
|
|
|
4343
4435
|
Header.HeaderItemIcon = HeaderItemIcon;
|
|
4344
4436
|
|
|
4345
4437
|
var _path$i;
|
|
4346
|
-
function _extends$
|
|
4347
|
-
const SvgChevronDownStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4438
|
+
function _extends$l() { _extends$l = 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$l.apply(this, arguments); }
|
|
4439
|
+
const SvgChevronDownStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
4348
4440
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4349
4441
|
width: 16,
|
|
4350
4442
|
height: 16,
|
|
@@ -4431,8 +4523,8 @@ const NavItemIcon = (props) => jsxRuntime.jsx(UgNavIcon, Object.assign({}, props
|
|
|
4431
4523
|
const NavItemText = (props) => (jsxRuntime.jsx(reactChrome.NavItemText, Object.assign({}, props, { children: jsxRuntime.jsx(Ellipsis, Object.assign({ style: { width: "158px" } }, { children: props.children })) })));
|
|
4432
4524
|
|
|
4433
4525
|
var _path$h;
|
|
4434
|
-
function _extends$
|
|
4435
|
-
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4526
|
+
function _extends$k() { _extends$k = 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$k.apply(this, arguments); }
|
|
4527
|
+
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
4436
4528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4437
4529
|
width: 16,
|
|
4438
4530
|
height: 16,
|
|
@@ -4726,81 +4818,262 @@ PageHeader.Description = MainDescription;
|
|
|
4726
4818
|
PageHeader.Meta = MainMeta;
|
|
4727
4819
|
PageHeader.Footer = StyledFooter;
|
|
4728
4820
|
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
`;
|
|
4746
|
-
const PlayerTooltip = (_a) => {
|
|
4747
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
4748
|
-
return (jsxRuntime.jsx(Wrapper, Object.assign({}, props, { children: jsxRuntime.jsx(Content, { children: children }) })));
|
|
4749
|
-
};
|
|
4821
|
+
var _path$g, _path2$5;
|
|
4822
|
+
function _extends$j() { _extends$j = 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$j.apply(this, arguments); }
|
|
4823
|
+
const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
4824
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4825
|
+
width: 16,
|
|
4826
|
+
height: 16,
|
|
4827
|
+
focusable: "false",
|
|
4828
|
+
viewBox: "0 0 16 16"
|
|
4829
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4830
|
+
stroke: "currentColor",
|
|
4831
|
+
strokeLinecap: "round",
|
|
4832
|
+
d: "M11.5 10l4-4m-4 0l4 4"
|
|
4833
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4834
|
+
fill: "currentColor",
|
|
4835
|
+
d: "M9 15.29c-.26 0-.51-.1-.71-.29l-4-4H1c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h3.29l4-4a1.002 1.002 0 011.71.71V14.3a.986.986 0 01-1 .99z"
|
|
4836
|
+
})));
|
|
4750
4837
|
|
|
4751
|
-
var _path$
|
|
4838
|
+
var _path$f, _path2$4;
|
|
4752
4839
|
function _extends$i() { _extends$i = 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$i.apply(this, arguments); }
|
|
4753
|
-
const
|
|
4840
|
+
const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
4754
4841
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4755
4842
|
width: 16,
|
|
4756
4843
|
height: 16,
|
|
4757
4844
|
focusable: "false",
|
|
4758
4845
|
viewBox: "0 0 16 16"
|
|
4759
|
-
}, props), _path$
|
|
4846
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4760
4847
|
fill: "currentColor",
|
|
4761
|
-
d: "
|
|
4848
|
+
d: "M9 15.29c-.26 0-.51-.1-.71-.29l-4-4H1c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h3.29l4-4a1.002 1.002 0 011.71.71V14.3a.986.986 0 01-1 .99z"
|
|
4849
|
+
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4850
|
+
fill: "none",
|
|
4851
|
+
stroke: "currentColor",
|
|
4852
|
+
strokeLinecap: "round",
|
|
4853
|
+
d: "M11.77 9.77c.45-.45.73-1.08.73-1.77s-.28-1.31-.73-1.77m2.17 5.6c.97-.99 1.56-2.34 1.56-3.83 0-1.52-.62-2.89-1.61-3.89"
|
|
4762
4854
|
})));
|
|
4763
4855
|
|
|
4764
|
-
|
|
4856
|
+
const AudioButton = () => {
|
|
4857
|
+
const [hasAudio, setHasAudio] = React.useState(false);
|
|
4858
|
+
const { isMuted, setMuted, context } = Video.useVideoContext();
|
|
4859
|
+
const { player } = context;
|
|
4860
|
+
const checkAudio = (video) => {
|
|
4861
|
+
if (!video) {
|
|
4862
|
+
return false;
|
|
4863
|
+
}
|
|
4864
|
+
const videohasAudio = video.mozHasAudio ||
|
|
4865
|
+
Boolean(video.webkitAudioDecodedByteCount) ||
|
|
4866
|
+
Boolean(video.audioTracks && video.audioTracks.length);
|
|
4867
|
+
setHasAudio(videohasAudio);
|
|
4868
|
+
};
|
|
4869
|
+
const hasVolume = (video) => {
|
|
4870
|
+
if (!video) {
|
|
4871
|
+
return false;
|
|
4872
|
+
}
|
|
4873
|
+
return video.volume > 0;
|
|
4874
|
+
};
|
|
4875
|
+
React.useEffect(() => {
|
|
4876
|
+
if (player && (player === null || player === void 0 ? void 0 : player.ref)) {
|
|
4877
|
+
setMuted(!hasVolume(player.ref.current));
|
|
4878
|
+
checkAudio(player.ref.current);
|
|
4879
|
+
}
|
|
4880
|
+
}, [context.isPlaying, isMuted]);
|
|
4881
|
+
return (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, disabled: !hasAudio, onClick: () => {
|
|
4882
|
+
if (player === null || player === void 0 ? void 0 : player.ref.current) {
|
|
4883
|
+
player.ref.current.volume = player.ref.current.volume > 0 ? 0 : 1;
|
|
4884
|
+
setMuted(!player.ref.current.volume);
|
|
4885
|
+
}
|
|
4886
|
+
} }, { children: isMuted || !hasAudio ? jsxRuntime.jsx(SvgVolumeMutedFill, {}) : jsxRuntime.jsx(SvgVolumeUnmutedFill, {}) })));
|
|
4887
|
+
};
|
|
4888
|
+
|
|
4889
|
+
const ProgressContext = React.createContext(null);
|
|
4890
|
+
const ProgressContextProvider = ({ children, }) => {
|
|
4891
|
+
const [isGrabbing, setIsGrabbing] = React.useState(false);
|
|
4892
|
+
const [fromEnd, setFromEnd] = React.useState(false);
|
|
4893
|
+
const [activeBookmark, setactiveBookmark] = React.useState(undefined);
|
|
4894
|
+
const progressContextValue = React.useMemo(() => ({
|
|
4895
|
+
isGrabbing,
|
|
4896
|
+
fromEnd,
|
|
4897
|
+
activeBookmark,
|
|
4898
|
+
setIsGrabbing,
|
|
4899
|
+
setFromEnd,
|
|
4900
|
+
setactiveBookmark,
|
|
4901
|
+
reset: () => {
|
|
4902
|
+
setIsGrabbing(false);
|
|
4903
|
+
setFromEnd(false);
|
|
4904
|
+
setactiveBookmark(undefined);
|
|
4905
|
+
},
|
|
4906
|
+
}), [isGrabbing, fromEnd, activeBookmark]);
|
|
4907
|
+
return (jsxRuntime.jsx(ProgressContext.Provider, Object.assign({ value: progressContextValue }, { children: children })));
|
|
4908
|
+
};
|
|
4909
|
+
const useProgressContext = () => {
|
|
4910
|
+
const context = React.useContext(ProgressContext);
|
|
4911
|
+
if (!context)
|
|
4912
|
+
throw new Error("Provider not found for ProgressContextProvider");
|
|
4913
|
+
return context; // Now we can use the context in the component, SAFELY.
|
|
4914
|
+
};
|
|
4915
|
+
|
|
4916
|
+
var _g$1;
|
|
4765
4917
|
function _extends$h() { _extends$h = 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$h.apply(this, arguments); }
|
|
4766
|
-
const
|
|
4918
|
+
const SvgGrip = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
4767
4919
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4768
4920
|
width: 16,
|
|
4769
4921
|
height: 16,
|
|
4770
4922
|
focusable: "false",
|
|
4771
4923
|
viewBox: "0 0 16 16"
|
|
4772
|
-
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4924
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4773
4925
|
fill: "currentColor"
|
|
4774
4926
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4775
|
-
width:
|
|
4776
|
-
height:
|
|
4777
|
-
x:
|
|
4927
|
+
width: 2,
|
|
4928
|
+
height: 2,
|
|
4929
|
+
x: 5,
|
|
4778
4930
|
y: 1,
|
|
4779
|
-
rx:
|
|
4780
|
-
ry:
|
|
4931
|
+
rx: 0.5,
|
|
4932
|
+
ry: 0.5
|
|
4781
4933
|
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4782
|
-
width:
|
|
4783
|
-
height:
|
|
4934
|
+
width: 2,
|
|
4935
|
+
height: 2,
|
|
4784
4936
|
x: 9,
|
|
4785
4937
|
y: 1,
|
|
4786
|
-
rx:
|
|
4787
|
-
ry:
|
|
4938
|
+
rx: 0.5,
|
|
4939
|
+
ry: 0.5
|
|
4940
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4941
|
+
width: 2,
|
|
4942
|
+
height: 2,
|
|
4943
|
+
x: 5,
|
|
4944
|
+
y: 5,
|
|
4945
|
+
rx: 0.5,
|
|
4946
|
+
ry: 0.5
|
|
4947
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4948
|
+
width: 2,
|
|
4949
|
+
height: 2,
|
|
4950
|
+
x: 9,
|
|
4951
|
+
y: 5,
|
|
4952
|
+
rx: 0.5,
|
|
4953
|
+
ry: 0.5
|
|
4954
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4955
|
+
width: 2,
|
|
4956
|
+
height: 2,
|
|
4957
|
+
x: 5,
|
|
4958
|
+
y: 9,
|
|
4959
|
+
rx: 0.5,
|
|
4960
|
+
ry: 0.5
|
|
4961
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4962
|
+
width: 2,
|
|
4963
|
+
height: 2,
|
|
4964
|
+
x: 9,
|
|
4965
|
+
y: 9,
|
|
4966
|
+
rx: 0.5,
|
|
4967
|
+
ry: 0.5
|
|
4968
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4969
|
+
width: 2,
|
|
4970
|
+
height: 2,
|
|
4971
|
+
x: 5,
|
|
4972
|
+
y: 13,
|
|
4973
|
+
rx: 0.5,
|
|
4974
|
+
ry: 0.5
|
|
4975
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4976
|
+
width: 2,
|
|
4977
|
+
height: 2,
|
|
4978
|
+
x: 9,
|
|
4979
|
+
y: 13,
|
|
4980
|
+
rx: 0.5,
|
|
4981
|
+
ry: 0.5
|
|
4788
4982
|
}))));
|
|
4789
4983
|
|
|
4790
|
-
|
|
4984
|
+
const activeBookMark = styled.css `
|
|
4985
|
+
height: 250%;
|
|
4986
|
+
transform: translateY(-30%);
|
|
4987
|
+
`;
|
|
4988
|
+
const Rect = styled.styled.div `
|
|
4989
|
+
position: absolute;
|
|
4990
|
+
height: 110%;
|
|
4991
|
+
background-color: ${({ hue, theme }) => hue || theme.palette.grey[800]};
|
|
4992
|
+
z-index: 1;
|
|
4993
|
+
border-radius: 3px;
|
|
4994
|
+
&:hover {
|
|
4995
|
+
${activeBookMark}
|
|
4996
|
+
}
|
|
4997
|
+
color: white;
|
|
4998
|
+
${({ isActive }) => isActive && activeBookMark}
|
|
4999
|
+
`;
|
|
5000
|
+
const StyledGrabber = styled.styled.div `
|
|
5001
|
+
position: absolute;
|
|
5002
|
+
${({ isEnd }) => isEnd
|
|
5003
|
+
? `
|
|
5004
|
+
right: 0;
|
|
5005
|
+
border-top-right-radius: 3px;
|
|
5006
|
+
border-bottom-right-radius: 3px;
|
|
5007
|
+
`
|
|
5008
|
+
: `
|
|
5009
|
+
left: 0;
|
|
5010
|
+
border-top-left-radius: 3px;
|
|
5011
|
+
border-bottom-left-radius: 3px;
|
|
5012
|
+
`}
|
|
5013
|
+
height: 100%;
|
|
5014
|
+
width: 6px;
|
|
5015
|
+
background-color: ${({ theme }) => theme.palette.grey[800]};
|
|
5016
|
+
z-index: 2;
|
|
5017
|
+
cursor: ew-resize;
|
|
5018
|
+
|
|
5019
|
+
div {
|
|
5020
|
+
display: flex;
|
|
5021
|
+
justify-content: center;
|
|
5022
|
+
align-items: center;
|
|
5023
|
+
height: 100%;
|
|
5024
|
+
width: 100%;
|
|
5025
|
+
svg {
|
|
5026
|
+
width: auto;
|
|
5027
|
+
height: 50%;
|
|
5028
|
+
fill: ${({ theme }) => theme.palette.grey[200]};
|
|
5029
|
+
}
|
|
5030
|
+
}
|
|
5031
|
+
`;
|
|
5032
|
+
const Grabber = (props) => {
|
|
5033
|
+
const { observation } = props;
|
|
5034
|
+
const { setIsGrabbing, setactiveBookmark, setFromEnd } = useProgressContext();
|
|
5035
|
+
const handleDragStart = (e) => {
|
|
5036
|
+
setIsGrabbing(true);
|
|
5037
|
+
setactiveBookmark(observation);
|
|
5038
|
+
setFromEnd(!!props.isEnd);
|
|
5039
|
+
e.preventDefault();
|
|
5040
|
+
e.stopPropagation();
|
|
5041
|
+
};
|
|
5042
|
+
return (jsxRuntime.jsx(StyledGrabber, Object.assign({ isEnd: props.isEnd, onMouseDown: handleDragStart, onMouseMove: props.handleMouseMove }, { children: jsxRuntime.jsx("div", { children: jsxRuntime.jsx(SvgGrip, {}) }) })));
|
|
5043
|
+
};
|
|
5044
|
+
const Bookmark = (props) => {
|
|
5045
|
+
var _a, _b;
|
|
5046
|
+
const { start, end, hue, label } = props;
|
|
5047
|
+
const { context } = Video.useVideoContext();
|
|
5048
|
+
const videoStart = context.part.start || 0;
|
|
5049
|
+
const videoEnd = context.part.end || ((_a = context.player) === null || _a === void 0 ? void 0 : _a.totalTime) || 0;
|
|
5050
|
+
const duration = videoEnd - videoStart || ((_b = context.player) === null || _b === void 0 ? void 0 : _b.totalTime) || 0; //relative
|
|
5051
|
+
const { activeBookmark } = useProgressContext();
|
|
5052
|
+
if (!context.player || !context.player.ref) {
|
|
5053
|
+
return null;
|
|
5054
|
+
}
|
|
5055
|
+
if (start > videoEnd || start < videoStart)
|
|
5056
|
+
return null;
|
|
5057
|
+
return (jsxRuntime.jsx(Tooltip, Object.assign({ content: label, type: "light", size: "large" }, { children: jsxRuntime.jsxs(Rect, Object.assign({ isActive: activeBookmark && activeBookmark.id === props.id, hue: hue, style: {
|
|
5058
|
+
left: `${((start - videoStart) / duration) * 100}%`,
|
|
5059
|
+
width: `${((end - start) / duration) * 100}%`,
|
|
5060
|
+
} }, { children: [jsxRuntime.jsx(Grabber, { observation: props }), jsxRuntime.jsx(Grabber, { isEnd: true, observation: props })] })) })));
|
|
5061
|
+
};
|
|
5062
|
+
|
|
5063
|
+
var _path$e, _path2$3, _path3$1;
|
|
4791
5064
|
function _extends$g() { _extends$g = 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$g.apply(this, arguments); }
|
|
4792
|
-
const
|
|
5065
|
+
const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
4793
5066
|
width: 16,
|
|
4794
5067
|
height: 16,
|
|
4795
5068
|
viewBox: "0 0 16 16",
|
|
4796
5069
|
fill: "none",
|
|
4797
5070
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4798
|
-
}, props), _path$
|
|
5071
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4799
5072
|
fillRule: "evenodd",
|
|
4800
5073
|
clipRule: "evenodd",
|
|
4801
|
-
d: "
|
|
5074
|
+
d: "M4.34099 3.5C5.25886 2.85974 6.34919 2.5 7.5 2.5C10.5477 2.5 13 4.95228 13 8C13 11.0477 10.5477 13.5 7.5 13.5C5.79771 13.5 4.25432 12.7171 3.18087 11.3753C2.83586 10.944 2.20657 10.8741 1.7753 11.2191C1.34404 11.5641 1.27412 12.1934 1.61913 12.6247C3.06275 14.4292 5.17372 15.5 7.5 15.5C11.6523 15.5 15 12.1523 15 8C15 3.84772 11.6523 0.5 7.5 0.5C5.84359 0.5 4.28318 1.04496 3 2.00147V1C3 0.447715 2.55229 0 2 0C1.44771 0 1 0.447715 1 1V4C1 4.85228 1.64772 5.5 2.5 5.5H5.5C6.05229 5.5 6.5 5.05228 6.5 4.5C6.5 3.94772 6.05229 3.5 5.5 3.5H4.34099Z",
|
|
4802
5075
|
fill: "currentColor"
|
|
4803
|
-
})), _path2$
|
|
5076
|
+
})), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4804
5077
|
d: "M5.5 7.63073V7.07008H6.67566V11H6.02566V7.63073H5.5Z",
|
|
4805
5078
|
fill: "currentColor"
|
|
4806
5079
|
})), _path3$1 || (_path3$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4808,20 +5081,20 @@ const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createEleme
|
|
|
4808
5081
|
fill: "currentColor"
|
|
4809
5082
|
})));
|
|
4810
5083
|
|
|
4811
|
-
var _path$
|
|
5084
|
+
var _path$d, _path2$2, _path3;
|
|
4812
5085
|
function _extends$f() { _extends$f = 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$f.apply(this, arguments); }
|
|
4813
|
-
const
|
|
5086
|
+
const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
4814
5087
|
width: 16,
|
|
4815
5088
|
height: 16,
|
|
4816
5089
|
viewBox: "0 0 16 16",
|
|
4817
5090
|
fill: "none",
|
|
4818
5091
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4819
|
-
}, props), _path$
|
|
5092
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4820
5093
|
fillRule: "evenodd",
|
|
4821
5094
|
clipRule: "evenodd",
|
|
4822
|
-
d: "
|
|
5095
|
+
d: "M11.659 3.5C10.7411 2.85974 9.65081 2.5 8.5 2.5C5.45228 2.5 3 4.95228 3 8C3 11.0477 5.45228 13.5 8.5 13.5C10.2023 13.5 11.7457 12.7171 12.8191 11.3753C13.1641 10.944 13.7934 10.8741 14.2247 11.2191C14.656 11.5641 14.7259 12.1934 14.3809 12.6247C12.9372 14.4292 10.8263 15.5 8.5 15.5C4.34772 15.5 1 12.1523 1 8C1 3.84772 4.34772 0.5 8.5 0.5C10.1564 0.5 11.7168 1.04496 13 2.00147V1C13 0.447715 13.4477 0 14 0C14.5523 0 15 0.447715 15 1V4C15 4.85228 14.3523 5.5 13.5 5.5H10.5C9.94771 5.5 9.5 5.05228 9.5 4.5C9.5 3.94772 9.94771 3.5 10.5 3.5H11.659Z",
|
|
4823
5096
|
fill: "currentColor"
|
|
4824
|
-
})), _path2$
|
|
5097
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4825
5098
|
d: "M5.5 7.63073V7.07008H6.67566V11H6.02566V7.63073H5.5Z",
|
|
4826
5099
|
fill: "currentColor"
|
|
4827
5100
|
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4829,18 +5102,57 @@ const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement(
|
|
|
4829
5102
|
fill: "currentColor"
|
|
4830
5103
|
})));
|
|
4831
5104
|
|
|
4832
|
-
var
|
|
5105
|
+
var _g;
|
|
4833
5106
|
function _extends$e() { _extends$e = 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$e.apply(this, arguments); }
|
|
4834
|
-
const
|
|
5107
|
+
const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
5108
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5109
|
+
width: 16,
|
|
5110
|
+
height: 16,
|
|
5111
|
+
focusable: "false",
|
|
5112
|
+
viewBox: "0 0 16 16"
|
|
5113
|
+
}, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
5114
|
+
fill: "currentColor"
|
|
5115
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
5116
|
+
width: 4,
|
|
5117
|
+
height: 14,
|
|
5118
|
+
x: 3,
|
|
5119
|
+
y: 1,
|
|
5120
|
+
rx: 1,
|
|
5121
|
+
ry: 1
|
|
5122
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
5123
|
+
width: 4,
|
|
5124
|
+
height: 14,
|
|
5125
|
+
x: 9,
|
|
5126
|
+
y: 1,
|
|
5127
|
+
rx: 1,
|
|
5128
|
+
ry: 1
|
|
5129
|
+
}))));
|
|
5130
|
+
|
|
5131
|
+
var _path$c;
|
|
5132
|
+
function _extends$d() { _extends$d = 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$d.apply(this, arguments); }
|
|
5133
|
+
const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
5134
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5135
|
+
width: 16,
|
|
5136
|
+
height: 16,
|
|
5137
|
+
focusable: "false",
|
|
5138
|
+
viewBox: "0 0 16 16"
|
|
5139
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
5140
|
+
fill: "currentColor",
|
|
5141
|
+
d: "M6 15.79c-.13 0-.26-.03-.38-.08a.977.977 0 01-.62-.92V1.21a1 1 0 01.62-.93C6 .12 6.42.21 6.71.5l6.44 6.44c.58.58.58 1.54 0 2.12L6.71 15.5c-.19.19-.45.29-.71.29z"
|
|
5142
|
+
})));
|
|
5143
|
+
|
|
5144
|
+
var _path$b, _path2$1;
|
|
5145
|
+
function _extends$c() { _extends$c = 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$c.apply(this, arguments); }
|
|
5146
|
+
const SvgPreviousFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
4835
5147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4836
5148
|
width: 16,
|
|
4837
5149
|
height: 16,
|
|
4838
5150
|
focusable: "false",
|
|
4839
5151
|
viewBox: "0 0 24 24"
|
|
4840
|
-
}, props), _path$
|
|
5152
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4841
5153
|
d: "M2.75 20C2.75 20.5523 3.19772 21 3.75 21C4.30228 21 4.75 20.5523 4.75 20L4.75 4C4.75 3.44772 4.30229 3 3.75 3C3.19772 3 2.75 3.44772 2.75 4V20Z",
|
|
4842
5154
|
fill: "currentColor"
|
|
4843
|
-
})), _path2$
|
|
5155
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4844
5156
|
d: "M20.75 19.0526C20.75 20.4774 19.1383 21.305 17.9803 20.4748L7.51062 12.9682C6.50574 12.2477 6.54467 10.7407 7.5854 10.073L18.0551 3.35665C19.2198 2.60946 20.75 3.44583 20.75 4.82961L20.75 19.0526Z",
|
|
4845
5157
|
fill: "currentColor"
|
|
4846
5158
|
})));
|
|
@@ -4871,7 +5183,7 @@ const StyledDiv$4 = styled__default["default"].div `
|
|
|
4871
5183
|
display: flex;
|
|
4872
5184
|
align-items: center;
|
|
4873
5185
|
`;
|
|
4874
|
-
const ControlsGroupCenter = () => {
|
|
5186
|
+
const ControlsGroupCenter = ({ onCutHandler, isCutting, }) => {
|
|
4875
5187
|
var _a;
|
|
4876
5188
|
const [playBackRate, setPlayBackRate] = React.useState(1);
|
|
4877
5189
|
const { context, togglePlay } = Video.useVideoContext();
|
|
@@ -4912,89 +5224,12 @@ const ControlsGroupCenter = () => {
|
|
|
4912
5224
|
videoRef.playbackRate = newSpeed;
|
|
4913
5225
|
}
|
|
4914
5226
|
e.stopPropagation();
|
|
4915
|
-
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
right: 0;
|
|
4922
|
-
|
|
4923
|
-
padding: 0 ${({ theme }) => theme.space.xs};
|
|
4924
|
-
|
|
4925
|
-
span {
|
|
4926
|
-
color: ${({ theme }) => theme.palette.grey[300]};
|
|
4927
|
-
}
|
|
4928
|
-
`;
|
|
4929
|
-
const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$3, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [current, "/", duration] })) }));
|
|
4930
|
-
|
|
4931
|
-
var _path$c, _path2$2;
|
|
4932
|
-
function _extends$d() { _extends$d = 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$d.apply(this, arguments); }
|
|
4933
|
-
const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
4934
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4935
|
-
width: 16,
|
|
4936
|
-
height: 16,
|
|
4937
|
-
focusable: "false",
|
|
4938
|
-
viewBox: "0 0 16 16"
|
|
4939
|
-
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4940
|
-
stroke: "currentColor",
|
|
4941
|
-
strokeLinecap: "round",
|
|
4942
|
-
d: "M11.5 10l4-4m-4 0l4 4"
|
|
4943
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4944
|
-
fill: "currentColor",
|
|
4945
|
-
d: "M9 15.29c-.26 0-.51-.1-.71-.29l-4-4H1c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h3.29l4-4a1.002 1.002 0 011.71.71V14.3a.986.986 0 01-1 .99z"
|
|
4946
|
-
})));
|
|
4947
|
-
|
|
4948
|
-
var _path$b, _path2$1;
|
|
4949
|
-
function _extends$c() { _extends$c = 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$c.apply(this, arguments); }
|
|
4950
|
-
const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
4951
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4952
|
-
width: 16,
|
|
4953
|
-
height: 16,
|
|
4954
|
-
focusable: "false",
|
|
4955
|
-
viewBox: "0 0 16 16"
|
|
4956
|
-
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4957
|
-
fill: "currentColor",
|
|
4958
|
-
d: "M9 15.29c-.26 0-.51-.1-.71-.29l-4-4H1c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h3.29l4-4a1.002 1.002 0 011.71.71V14.3a.986.986 0 01-1 .99z"
|
|
4959
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4960
|
-
fill: "none",
|
|
4961
|
-
stroke: "currentColor",
|
|
4962
|
-
strokeLinecap: "round",
|
|
4963
|
-
d: "M11.77 9.77c.45-.45.73-1.08.73-1.77s-.28-1.31-.73-1.77m2.17 5.6c.97-.99 1.56-2.34 1.56-3.83 0-1.52-.62-2.89-1.61-3.89"
|
|
4964
|
-
})));
|
|
4965
|
-
|
|
4966
|
-
const AudioButton = () => {
|
|
4967
|
-
const [hasAudio, setHasAudio] = React.useState(false);
|
|
4968
|
-
const { isMuted, setMuted, context } = Video.useVideoContext();
|
|
4969
|
-
const { player } = context;
|
|
4970
|
-
const checkAudio = (video) => {
|
|
4971
|
-
if (!video) {
|
|
4972
|
-
return false;
|
|
4973
|
-
}
|
|
4974
|
-
console.log("hasAudio?", video);
|
|
4975
|
-
const videohasAudio = video.mozHasAudio ||
|
|
4976
|
-
Boolean(video.webkitAudioDecodedByteCount) ||
|
|
4977
|
-
Boolean(video.audioTracks && video.audioTracks.length);
|
|
4978
|
-
setHasAudio(videohasAudio);
|
|
4979
|
-
};
|
|
4980
|
-
const hasVolume = (video) => {
|
|
4981
|
-
if (!video) {
|
|
4982
|
-
return false;
|
|
4983
|
-
}
|
|
4984
|
-
return video.volume > 0;
|
|
4985
|
-
};
|
|
4986
|
-
React.useEffect(() => {
|
|
4987
|
-
if (player && (player === null || player === void 0 ? void 0 : player.ref)) {
|
|
4988
|
-
setMuted(!hasVolume(player.ref.current));
|
|
4989
|
-
checkAudio(player.ref.current);
|
|
4990
|
-
}
|
|
4991
|
-
}, [context.isPlaying, isMuted]);
|
|
4992
|
-
return (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, disabled: !hasAudio, onClick: () => {
|
|
4993
|
-
if (player === null || player === void 0 ? void 0 : player.ref.current) {
|
|
4994
|
-
player.ref.current.volume = player.ref.current.volume > 0 ? 0 : 1;
|
|
4995
|
-
setMuted(!player.ref.current.volume);
|
|
4996
|
-
}
|
|
4997
|
-
} }, { children: isMuted || !hasAudio ? jsxRuntime.jsx(SvgVolumeMutedFill, {}) : jsxRuntime.jsx(SvgVolumeUnmutedFill, {}) })));
|
|
5227
|
+
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) })), onCutHandler && (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
5228
|
+
if (videoRef) {
|
|
5229
|
+
onCutHandler(videoRef.currentTime);
|
|
5230
|
+
}
|
|
5231
|
+
e.stopPropagation();
|
|
5232
|
+
} }, { children: jsxRuntime.jsx(SM, Object.assign({ isBold: true }, { children: isCutting ? '🛑' : '✂️' })) })))] }));
|
|
4998
5233
|
};
|
|
4999
5234
|
|
|
5000
5235
|
var _path$a;
|
|
@@ -5094,6 +5329,55 @@ const FullScreenButton = ({ container, }) => {
|
|
|
5094
5329
|
}, disabled: !canGoFullScreen() }, { children: document.fullscreenElement || isFullScreen ? (jsxRuntime.jsx(SvgMinimizeStroke, {})) : (jsxRuntime.jsx(SvgMaximizeStroke, {})) })));
|
|
5095
5330
|
};
|
|
5096
5331
|
|
|
5332
|
+
const StyledProgress = styled.styled(Progress) `
|
|
5333
|
+
width: 100%;
|
|
5334
|
+
border-radius: 0;
|
|
5335
|
+
color: ${({ theme }) => theme.palette.kale[700]};
|
|
5336
|
+
cursor: pointer;
|
|
5337
|
+
> div {
|
|
5338
|
+
border-radius: 0;
|
|
5339
|
+
}
|
|
5340
|
+
`;
|
|
5341
|
+
const ProgressBar = React.forwardRef((props, ref) => {
|
|
5342
|
+
const { progress, handleSkipAhead } = props;
|
|
5343
|
+
return (jsxRuntime.jsx(StyledProgress, { className: "progress-bar-1", ref: ref, value: progress, onClick: (e) => handleSkipAhead(e.clientX) }));
|
|
5344
|
+
});
|
|
5345
|
+
|
|
5346
|
+
const StyledDiv$3 = styled__default["default"].div `
|
|
5347
|
+
position: absolute;
|
|
5348
|
+
bottom: ${({ theme }) => theme.space.sm};
|
|
5349
|
+
right: 0;
|
|
5350
|
+
|
|
5351
|
+
padding: 0 ${({ theme }) => theme.space.xs};
|
|
5352
|
+
|
|
5353
|
+
span {
|
|
5354
|
+
color: ${({ theme }) => theme.palette.grey[300]};
|
|
5355
|
+
}
|
|
5356
|
+
`;
|
|
5357
|
+
const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$3, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [current, "/", duration] })) }));
|
|
5358
|
+
|
|
5359
|
+
const Wrapper = styled__default["default"].div `
|
|
5360
|
+
position: absolute;
|
|
5361
|
+
bottom: ${({ theme }) => theme.space.sm};
|
|
5362
|
+
z-index: 1;
|
|
5363
|
+
`;
|
|
5364
|
+
const Content = styled__default["default"].div `
|
|
5365
|
+
display: flex;
|
|
5366
|
+
background-color: ${({ theme }) => theme.palette.grey[800]};
|
|
5367
|
+
border-radius: 2px;
|
|
5368
|
+
width: auto;
|
|
5369
|
+
padding: 2px 4px;
|
|
5370
|
+
display: inline-flex;
|
|
5371
|
+
color: white;
|
|
5372
|
+
align-items: center;
|
|
5373
|
+
justify-content: center;
|
|
5374
|
+
min-height: 16px;
|
|
5375
|
+
`;
|
|
5376
|
+
const PlayerTooltip = (_a) => {
|
|
5377
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
5378
|
+
return (jsxRuntime.jsx(Wrapper, Object.assign({}, props, { children: jsxRuntime.jsx(Content, { children: children }) })));
|
|
5379
|
+
};
|
|
5380
|
+
|
|
5097
5381
|
const ControlsWrapper = styled__default["default"].div `
|
|
5098
5382
|
position: absolute;
|
|
5099
5383
|
bottom: 0;
|
|
@@ -5104,15 +5388,6 @@ const ControlsWrapper = styled__default["default"].div `
|
|
|
5104
5388
|
${({ isPlaying }) => isPlaying && "display: none;"}
|
|
5105
5389
|
z-index: 2;
|
|
5106
5390
|
`;
|
|
5107
|
-
const StyledProgress = styled__default["default"](Progress) `
|
|
5108
|
-
width: 100%;
|
|
5109
|
-
border-radius: 0;
|
|
5110
|
-
color: ${({ theme }) => theme.palette.kale[700]};
|
|
5111
|
-
cursor: pointer;
|
|
5112
|
-
> div {
|
|
5113
|
-
border-radius: 0;
|
|
5114
|
-
}
|
|
5115
|
-
`;
|
|
5116
5391
|
const StyledTooltip = styled__default["default"](PlayerTooltip) `
|
|
5117
5392
|
display: none;
|
|
5118
5393
|
`;
|
|
@@ -5131,18 +5406,23 @@ const StyledDiv$2 = styled__default["default"].div `
|
|
|
5131
5406
|
display: flex;
|
|
5132
5407
|
align-items: center;
|
|
5133
5408
|
`;
|
|
5134
|
-
const Controls = ({ container, }) => {
|
|
5409
|
+
const Controls = ({ container, onCutHandler, bookmarks, isCutting, onBookMarkUpdated, }) => {
|
|
5135
5410
|
var _a, _b, _c;
|
|
5136
5411
|
const [progress, setProgress] = React.useState(0);
|
|
5137
5412
|
const [tooltipMargin, setTooltipMargin] = React.useState(0);
|
|
5138
5413
|
const [tooltipLabel, setTooltipLabel] = React.useState("00:00");
|
|
5414
|
+
const [marks, setMarks] = React.useState(bookmarks);
|
|
5139
5415
|
const progressRef = React.useRef(null);
|
|
5140
5416
|
const { context, setCurrentTime } = Video.useVideoContext();
|
|
5417
|
+
const { reset, isGrabbing, activeBookmark, fromEnd } = useProgressContext();
|
|
5418
|
+
React.useEffect(() => {
|
|
5419
|
+
setMarks(bookmarks);
|
|
5420
|
+
}, [bookmarks]);
|
|
5141
5421
|
const relCurrentTime = ((_a = context.player) === null || _a === void 0 ? void 0 : _a.currentTime)
|
|
5142
5422
|
? ((_b = context.player) === null || _b === void 0 ? void 0 : _b.currentTime) - context.part.start
|
|
5143
5423
|
: 0;
|
|
5144
5424
|
const duration = context.part.end - context.part.start || ((_c = context.player) === null || _c === void 0 ? void 0 : _c.totalTime) || 0; //relative
|
|
5145
|
-
const getVideoPositionFromEvent = (clientX) => {
|
|
5425
|
+
const getVideoPositionFromEvent = React.useCallback((clientX) => {
|
|
5146
5426
|
if (progressRef && progressRef.current && duration) {
|
|
5147
5427
|
const bounds = progressRef.current.getBoundingClientRect();
|
|
5148
5428
|
const x = clientX - bounds.left;
|
|
@@ -5150,12 +5430,18 @@ const Controls = ({ container, }) => {
|
|
|
5150
5430
|
return videoPositionSecs;
|
|
5151
5431
|
}
|
|
5152
5432
|
return 0;
|
|
5153
|
-
};
|
|
5433
|
+
}, [progressRef, duration]);
|
|
5434
|
+
const getProgress = React.useCallback((currentTime) => {
|
|
5435
|
+
const current = currentTime - (context.part.start || 0);
|
|
5436
|
+
if (duration === 0)
|
|
5437
|
+
return 0;
|
|
5438
|
+
return (current / duration) * 100;
|
|
5439
|
+
}, [context.part.start, duration]);
|
|
5154
5440
|
const handleSkipAhead = React.useCallback((pageX) => {
|
|
5155
5441
|
const time = getVideoPositionFromEvent(pageX) + (context.part.start || 0);
|
|
5156
5442
|
setCurrentTime(time);
|
|
5157
5443
|
setProgress(getProgress(time));
|
|
5158
|
-
}, [
|
|
5444
|
+
}, [getVideoPositionFromEvent, context.part.start, setCurrentTime, getProgress]);
|
|
5159
5445
|
const onMouseEvent = (e) => {
|
|
5160
5446
|
if (progressRef && progressRef.current) {
|
|
5161
5447
|
const tooltipWidth = 40;
|
|
@@ -5166,20 +5452,47 @@ const Controls = ({ container, }) => {
|
|
|
5166
5452
|
const videoTargetDuration = getVideoPositionFromEvent(e.clientX);
|
|
5167
5453
|
setTooltipMargin(newTooltipMargin);
|
|
5168
5454
|
setTooltipLabel(formatDuration(videoTargetDuration));
|
|
5455
|
+
if (isGrabbing) {
|
|
5456
|
+
handleBookmarkUpdate(marginX, progressRef.current.clientWidth);
|
|
5457
|
+
}
|
|
5169
5458
|
}
|
|
5170
5459
|
};
|
|
5460
|
+
const handleBookmarkUpdate = React.useCallback((newX, clientW) => {
|
|
5461
|
+
if (!activeBookmark || !marks)
|
|
5462
|
+
return;
|
|
5463
|
+
const currentObsIndex = marks.findIndex((mark) => mark.id === activeBookmark.id);
|
|
5464
|
+
const value = (newX / clientW) * duration + context.part.start;
|
|
5465
|
+
const updatedMark = Object.assign(Object.assign({}, marks[currentObsIndex]), (!!fromEnd ? { end: value } : { start: value }));
|
|
5466
|
+
const newMarks = [
|
|
5467
|
+
...marks.slice(0, currentObsIndex),
|
|
5468
|
+
updatedMark,
|
|
5469
|
+
...marks.slice(currentObsIndex + 1),
|
|
5470
|
+
];
|
|
5471
|
+
setMarks(newMarks);
|
|
5472
|
+
onBookMarkUpdated === null || onBookMarkUpdated === void 0 ? void 0 : onBookMarkUpdated(updatedMark);
|
|
5473
|
+
}, [
|
|
5474
|
+
activeBookmark,
|
|
5475
|
+
context.part.start,
|
|
5476
|
+
duration,
|
|
5477
|
+
fromEnd,
|
|
5478
|
+
onBookMarkUpdated,
|
|
5479
|
+
marks,
|
|
5480
|
+
]);
|
|
5171
5481
|
React.useEffect(() => {
|
|
5172
5482
|
var _a;
|
|
5173
5483
|
const currentTime = ((_a = context.player) === null || _a === void 0 ? void 0 : _a.currentTime) || 0;
|
|
5174
5484
|
setProgress(getProgress(currentTime));
|
|
5175
|
-
}, [context.player]);
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
return (
|
|
5181
|
-
|
|
5182
|
-
|
|
5485
|
+
}, [context.player, getProgress]);
|
|
5486
|
+
React.useEffect(() => {
|
|
5487
|
+
if (!marks)
|
|
5488
|
+
return;
|
|
5489
|
+
document.addEventListener("mouseup", reset);
|
|
5490
|
+
return () => {
|
|
5491
|
+
document.removeEventListener("mouseup", reset);
|
|
5492
|
+
};
|
|
5493
|
+
}, [reset, marks]);
|
|
5494
|
+
return (jsxRuntime.jsxs(ControlsWrapper, Object.assign({ isPlaying: context.isPlaying }, { children: [jsxRuntime.jsxs(ProgressContainer, Object.assign({ onMouseEnter: onMouseEvent, onMouseMove: onMouseEvent, onMouseLeave: onMouseEvent }, { children: [jsxRuntime.jsx(StyledTooltip, Object.assign({ style: { marginLeft: `${tooltipMargin}px` } }, { children: tooltipLabel })), jsxRuntime.jsx(TimeLabel, { current: formatDuration(relCurrentTime), duration: formatDuration(duration) }), !!duration &&
|
|
5495
|
+
(marks === null || marks === void 0 ? void 0 : marks.map((bookmark, index) => (jsxRuntime.jsx(Bookmark, Object.assign({}, bookmark), `${index}${bookmark.start}`)))), jsxRuntime.jsx(ProgressBar, { ref: progressRef, progress: progress, handleSkipAhead: handleSkipAhead, duration: duration })] })), jsxRuntime.jsxs(ControlsBar, { children: [jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsx(AudioButton, {}) }), jsxRuntime.jsx(ControlsGroupCenter, { onCutHandler: onCutHandler, isCutting: isCutting }), jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsx(FullScreenButton, { container: container }) })] })] })));
|
|
5183
5496
|
};
|
|
5184
5497
|
|
|
5185
5498
|
var _path$8;
|
|
@@ -5304,6 +5617,7 @@ const Player = React.forwardRef((props, forwardRef) => {
|
|
|
5304
5617
|
const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
5305
5618
|
var _a;
|
|
5306
5619
|
const { context, togglePlay, setIsPlaying } = Video.useVideoContext();
|
|
5620
|
+
const { onCutHandler, bookmarks, isCutting } = props;
|
|
5307
5621
|
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
5308
5622
|
const isLoaded = !!videoRef;
|
|
5309
5623
|
const containerRef = React.useRef(null);
|
|
@@ -5321,8 +5635,8 @@ const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
|
5321
5635
|
});
|
|
5322
5636
|
}
|
|
5323
5637
|
};
|
|
5324
|
-
}, [videoRef]);
|
|
5325
|
-
return (jsxRuntime.jsxs(Container, Object.assign({ isLoaded: isLoaded, isPlaying: context.isPlaying, ref: containerRef }, { children: [!isLoaded ? (jsxRuntime.jsx(VideoSpinner, {})) : (jsxRuntime.jsx(FloatingControls, { isPlaying: context.isPlaying, onClick: togglePlay })), jsxRuntime.jsx(Video__default["default"].Player, { className: "player-container" }), jsxRuntime.jsx(Controls, { container: containerRef.current })] })));
|
|
5638
|
+
}, [setIsPlaying, videoRef]);
|
|
5639
|
+
return (jsxRuntime.jsxs(Container, Object.assign({ isLoaded: isLoaded, isPlaying: context.isPlaying, ref: containerRef }, { children: [!isLoaded ? (jsxRuntime.jsx(VideoSpinner, {})) : (jsxRuntime.jsx(FloatingControls, { isPlaying: context.isPlaying, onClick: togglePlay })), jsxRuntime.jsx(Video__default["default"].Player, { className: "player-container" }), jsxRuntime.jsx(ProgressContextProvider, { children: jsxRuntime.jsx(Controls, { container: containerRef.current, onCutHandler: onCutHandler, bookmarks: bookmarks, isCutting: isCutting, onBookMarkUpdated: props.handleBookmarkUpdate }) })] })));
|
|
5326
5640
|
});
|
|
5327
5641
|
|
|
5328
5642
|
var _path$7, _path2;
|
|
@@ -6376,6 +6690,7 @@ exports.HeaderItem = HeaderItem;
|
|
|
6376
6690
|
exports.HeaderItemIcon = HeaderItemIcon;
|
|
6377
6691
|
exports.HeaderItemText = HeaderItemText;
|
|
6378
6692
|
exports.HeaderRow = HeaderRow;
|
|
6693
|
+
exports.Highlight = Highlight;
|
|
6379
6694
|
exports.Hint = Hint;
|
|
6380
6695
|
exports.Icon = Icon;
|
|
6381
6696
|
exports.IconButton = IconButton;
|