@appquality/unguess-design-system 3.1.99-beta-attachments → 3.1.101-attachments
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 +136 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +684 -354
- package/build/stories/buttons/button/index.stories.d.ts +0 -1
- package/build/stories/buttons/utils.d.ts +39 -39
- package/build/stories/chat/_types.d.ts +4 -2
- package/build/stories/chat/context/chatContext.d.ts +0 -1
- package/build/stories/chat/parts/ThumbnailContainer/index.d.ts +0 -8
- 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 +38 -0
- package/build/stories/highlight/highlightContext.d.ts +10 -0
- package/build/stories/highlight/index.d.ts +10 -0
- package/build/stories/highlight/index.stories.d.ts +18 -0
- package/build/stories/highlight/searchable.d.ts +4 -0
- package/build/stories/player/_types.d.ts +18 -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 +7 -2
- package/build/stories/player/parts/controlsCenterGroup.d.ts +2 -1
- package/build/stories/player/parts/cutterButton.d.ts +6 -0
- package/build/stories/player/parts/progress.d.ts +11 -0
- package/build/stories/player/parts/progressContext.d.ts +16 -0
- package/build/stories/player/parts/timeLabel.d.ts +2 -2
- package/package.json +1 -1
- package/yarn-error.log +17994 -0
package/build/index.js
CHANGED
|
@@ -334,8 +334,8 @@ const UgContainerCard = styled__default["default"](reactNotifications.Well) `
|
|
|
334
334
|
`;
|
|
335
335
|
const ContainerCard = (props) => jsxRuntime.jsx(UgContainerCard, Object.assign({}, props));
|
|
336
336
|
|
|
337
|
-
var _a, _b, _c, _d, _e, _f, _g$
|
|
338
|
-
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$
|
|
337
|
+
var _a, _b, _c, _d, _e, _f, _g$d, _h;
|
|
338
|
+
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": () => ({
|
|
339
339
|
color: getColor(colors.primaryHue, 600),
|
|
340
340
|
}), "text.success": () => ({
|
|
341
341
|
color: getColor(colors.successHue, 700),
|
|
@@ -842,48 +842,48 @@ Tag.Avatar = StyledAvatar;
|
|
|
842
842
|
Tag.Close = StyledClose;
|
|
843
843
|
Tag.SecondaryText = StyledSpan;
|
|
844
844
|
|
|
845
|
-
var _path$
|
|
846
|
-
function _extends$
|
|
847
|
-
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
845
|
+
var _path$F;
|
|
846
|
+
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); }
|
|
847
|
+
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$S({
|
|
848
848
|
width: 24,
|
|
849
849
|
height: 24,
|
|
850
850
|
viewBox: "0 0 24 24",
|
|
851
851
|
fill: "none",
|
|
852
852
|
xmlns: "http://www.w3.org/2000/svg"
|
|
853
|
-
}, props), _path$
|
|
853
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
854
854
|
d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19Z",
|
|
855
855
|
fill: "#E80C7A"
|
|
856
856
|
})));
|
|
857
857
|
|
|
858
|
-
var _path$
|
|
859
|
-
function _extends$
|
|
860
|
-
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
858
|
+
var _path$E;
|
|
859
|
+
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); }
|
|
860
|
+
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
861
861
|
width: 24,
|
|
862
862
|
height: 24,
|
|
863
863
|
viewBox: "0 0 24 24",
|
|
864
864
|
fill: "none",
|
|
865
865
|
xmlns: "http://www.w3.org/2000/svg"
|
|
866
|
-
}, props), _path$
|
|
866
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
867
867
|
d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
|
|
868
868
|
fill: "#FFCD1A"
|
|
869
869
|
})));
|
|
870
870
|
|
|
871
|
-
var _path$
|
|
872
|
-
function _extends$
|
|
873
|
-
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
871
|
+
var _path$D;
|
|
872
|
+
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); }
|
|
873
|
+
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
874
874
|
width: 24,
|
|
875
875
|
height: 24,
|
|
876
876
|
viewBox: "0 0 24 24",
|
|
877
877
|
fill: "none",
|
|
878
878
|
xmlns: "http://www.w3.org/2000/svg"
|
|
879
|
-
}, props), _path$
|
|
879
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
880
880
|
d: "M11.9993 7.32625L18.3893 17.5563H5.60929L11.9993 7.32625ZM11.1493 4.91625L2.94929 18.0262C2.53929 18.6962 3.01929 19.5563 3.79929 19.5563H20.1993C20.9893 19.5563 21.4593 18.6962 21.0493 18.0262L12.8493 4.91625C12.4593 4.28625 11.5393 4.28625 11.1493 4.91625Z",
|
|
881
881
|
fill: "#7B0DFF"
|
|
882
882
|
})));
|
|
883
883
|
|
|
884
|
-
var _rect$4, _path$
|
|
885
|
-
function _extends$
|
|
886
|
-
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
884
|
+
var _rect$4, _path$C, _path2$c, _path3$4;
|
|
885
|
+
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); }
|
|
886
|
+
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
887
887
|
width: 24,
|
|
888
888
|
height: 24,
|
|
889
889
|
viewBox: "0 0 24 24",
|
|
@@ -894,7 +894,7 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
894
894
|
height: 24,
|
|
895
895
|
rx: 12,
|
|
896
896
|
fill: "#F6F6F8"
|
|
897
|
-
})), _path$
|
|
897
|
+
})), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
898
898
|
d: "M20.6953 5.73905C21.0148 5.41953 21.0148 4.90149 20.6953 4.58197C20.3758 4.26245 19.8577 4.26245 19.5382 4.58197L11.88 12.2402L10.0849 9.95981C9.80539 9.60476 9.29098 9.54352 8.93593 9.82303C8.58088 10.1025 8.51963 10.6169 8.79914 10.972L11.1642 13.9763C11.3089 14.16 11.5252 14.2731 11.7586 14.2869C11.9921 14.3008 12.2203 14.2141 12.3856 14.0487L20.6953 5.73905Z",
|
|
899
899
|
fill: "#50BF95"
|
|
900
900
|
})), _path2$c || (_path2$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -905,9 +905,9 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
905
905
|
fill: "#007345"
|
|
906
906
|
})));
|
|
907
907
|
|
|
908
|
-
var _rect$3, _path$
|
|
909
|
-
function _extends$
|
|
910
|
-
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
908
|
+
var _rect$3, _path$B, _path2$b;
|
|
909
|
+
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); }
|
|
910
|
+
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
911
911
|
width: 24,
|
|
912
912
|
height: 24,
|
|
913
913
|
viewBox: "0 0 24 24",
|
|
@@ -918,7 +918,7 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
918
918
|
height: 24,
|
|
919
919
|
rx: 12,
|
|
920
920
|
fill: "#F6F6F8"
|
|
921
|
-
})), _path$
|
|
921
|
+
})), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
922
922
|
fillRule: "evenodd",
|
|
923
923
|
clipRule: "evenodd",
|
|
924
924
|
d: "M13.55 19.0875C14.25 19.7875 15.1063 20.1375 16.1188 20.1375C17.1313 20.1375 17.9875 19.7875 18.6875 19.0875C19.3875 18.3875 19.7375 17.5312 19.7375 16.5187C19.7375 15.5062 19.3875 14.65 18.6875 13.95C17.9875 13.25 17.1313 12.9 16.1188 12.9C15.1063 12.9 14.25 13.25 13.55 13.95C12.85 14.65 12.5 15.5062 12.5 16.5187C12.5 17.5312 12.85 18.3875 13.55 19.0875ZM17.5062 18.2812C17.4187 18.2812 17.3375 18.25 17.2625 18.1875L15.7438 16.7812C15.6813 16.6687 15.65 16.6 15.65 16.575V14.55C15.65 14.4375 15.6875 14.3437 15.7625 14.2687C15.8375 14.1937 15.9313 14.1562 16.0438 14.1562C16.1563 14.1562 16.25 14.1937 16.325 14.2687C16.4 14.3437 16.4375 14.4375 16.4375 14.55V16.4813L17.7313 17.6625C17.8063 17.725 17.8469 17.8062 17.8531 17.9062C17.8594 18.0063 17.825 18.0938 17.75 18.1688C17.675 18.2438 17.5937 18.2812 17.5062 18.2812Z",
|
|
@@ -930,9 +930,9 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
930
930
|
fill: "#F4AC1A"
|
|
931
931
|
})));
|
|
932
932
|
|
|
933
|
-
var _rect$2, _path$
|
|
934
|
-
function _extends$
|
|
935
|
-
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
933
|
+
var _rect$2, _path$A, _path2$a;
|
|
934
|
+
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); }
|
|
935
|
+
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
936
936
|
width: 24,
|
|
937
937
|
height: 24,
|
|
938
938
|
viewBox: "0 0 24 24",
|
|
@@ -943,7 +943,7 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
943
943
|
height: 24,
|
|
944
944
|
rx: 12,
|
|
945
945
|
fill: "#F6F6F8"
|
|
946
|
-
})), _path$
|
|
946
|
+
})), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
947
947
|
d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
|
|
948
948
|
stroke: "#024780",
|
|
949
949
|
strokeWidth: 1.5,
|
|
@@ -957,9 +957,9 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
957
957
|
strokeLinejoin: "round"
|
|
958
958
|
})));
|
|
959
959
|
|
|
960
|
-
var _rect$1, _path$
|
|
961
|
-
function _extends$
|
|
962
|
-
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
960
|
+
var _rect$1, _path$z, _path2$9, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
|
|
961
|
+
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); }
|
|
962
|
+
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
963
963
|
width: 24,
|
|
964
964
|
height: 24,
|
|
965
965
|
viewBox: "0 0 24 24",
|
|
@@ -970,7 +970,7 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
970
970
|
height: 24,
|
|
971
971
|
rx: 12,
|
|
972
972
|
fill: "#F6F6F8"
|
|
973
|
-
})), _path$
|
|
973
|
+
})), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
974
974
|
d: "M13.059 16.7647C13.059 16.1799 12.585 15.7059 12.0002 15.7059C11.4154 15.7059 10.9414 16.1799 10.9414 16.7647V19.9412C10.9414 20.5259 11.4154 21 12.0002 21C12.585 21 13.059 20.5259 13.059 19.9412V16.7647Z",
|
|
975
975
|
fill: "#D1820A"
|
|
976
976
|
})), _path2$9 || (_path2$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1002,21 +1002,21 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
1002
1002
|
fill: "#FFB65A"
|
|
1003
1003
|
})));
|
|
1004
1004
|
|
|
1005
|
-
var _g$
|
|
1006
|
-
function _extends$
|
|
1007
|
-
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1005
|
+
var _g$c, _path$y, _path2$8, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
1006
|
+
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); }
|
|
1007
|
+
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
1008
1008
|
width: 24,
|
|
1009
1009
|
height: 24,
|
|
1010
1010
|
viewBox: "0 0 24 24",
|
|
1011
1011
|
fill: "none",
|
|
1012
1012
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1013
|
-
}, props), _g$
|
|
1013
|
+
}, props), _g$c || (_g$c = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1014
1014
|
opacity: 0.3
|
|
1015
1015
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1016
1016
|
opacity: 0.3,
|
|
1017
1017
|
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
1018
1018
|
fill: "#50BF95"
|
|
1019
|
-
}))), _path$
|
|
1019
|
+
}))), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1020
1020
|
d: "M12.487 3.19652C8.68003 3.19652 5.59895 6.27761 5.59895 10.0846C5.59895 10.2597 5.59895 10.4348 5.62438 10.5855C5.29857 11.1863 4.82307 12.013 4.24678 12.514C3.82117 12.8897 3.92096 13.2908 3.97085 13.4405C4.09609 13.7663 4.44635 14.0413 5.02265 14.2418C5.22322 14.3172 5.44825 14.3671 5.64883 14.417L5.67427 16.8464C5.67427 17.7984 6.47559 18.6251 7.45304 18.6251L8.93044 18.1496L9.08111 19.0263C9.18091 19.6026 9.68185 20.0282 10.2836 20.0282C10.3589 20.0282 10.4343 20.0282 10.5086 20.0028L15.1424 19.177C15.8185 19.0517 16.2441 18.4256 16.1443 17.7495L15.8185 16.1214C17.9974 14.9189 19.375 12.5892 19.375 10.0845C19.375 6.30279 16.2696 3.19641 12.4869 3.19641L12.487 3.19652Z",
|
|
1021
1021
|
fill: "#2B8473",
|
|
1022
1022
|
stroke: "#2B8473"
|
|
@@ -1072,21 +1072,21 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
|
|
|
1072
1072
|
fill: "#ECF4F2"
|
|
1073
1073
|
})));
|
|
1074
1074
|
|
|
1075
|
-
var _g$
|
|
1076
|
-
function _extends$
|
|
1077
|
-
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1075
|
+
var _g$b, _path$x;
|
|
1076
|
+
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); }
|
|
1077
|
+
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
1078
1078
|
width: 24,
|
|
1079
1079
|
height: 24,
|
|
1080
1080
|
viewBox: "0 0 24 24",
|
|
1081
1081
|
fill: "none",
|
|
1082
1082
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1083
|
-
}, props), _g$
|
|
1083
|
+
}, props), _g$b || (_g$b = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1084
1084
|
opacity: 0.3
|
|
1085
1085
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1086
1086
|
opacity: 0.3,
|
|
1087
1087
|
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
1088
1088
|
fill: "#003A57"
|
|
1089
|
-
}))), _path$
|
|
1089
|
+
}))), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1090
1090
|
d: "M17.9983 7.16705C17.5188 6.58566 17.1422 6.73039 17.1422 6.73039C17.1422 6.73039 16.406 7.02453 16.0401 7.16303C15.6742 7.30153 15.2408 7.17357 15.2408 7.17357L14.7579 6.8851C14.7579 6.8851 14.4296 6.56554 14.3656 6.18067C14.3123 5.78958 14.1888 5.00269 14.1888 5.00269C14.1888 5.00269 14.1356 4.61159 13.3938 4.47257C12.652 4.33356 12.4678 4.68715 12.4678 4.68715C12.4678 4.68715 12.0932 5.38344 11.9091 5.73703C11.7249 6.09062 11.3114 6.27118 11.3114 6.27118L10.7639 6.36908C10.7639 6.36908 10.3144 6.33771 10.0176 6.07271L9.12712 5.27769C9.12712 5.27769 8.8303 5.01268 8.18313 5.38632C7.53595 5.75997 7.61705 6.14953 7.61705 6.14953L7.86033 7.3182C7.94143 7.70776 7.74381 8.11275 7.74381 8.11275L7.38528 8.53794C7.38528 8.53794 7.02217 8.80577 6.62387 8.78845C6.22557 8.77114 5.43527 8.7474 5.43527 8.7474C5.43527 8.7474 5.03697 8.73009 4.78646 9.44201C4.53595 10.1539 4.84804 10.3956 4.84804 10.3956C4.84804 10.3956 5.46774 10.896 5.77983 11.1376C6.09192 11.3793 6.19373 11.8296 6.19373 11.8296L6.20207 12.3921C6.20207 12.3921 6.09618 12.8314 5.79331 13.079C5.49043 13.3266 4.86759 13.8171 4.86759 13.8171C4.86759 13.8171 4.56471 14.0647 4.81769 14.7769C5.08144 15.4828 5.46713 15.4783 5.46713 15.4783C5.46713 15.4783 6.26012 15.4569 6.64582 15.4524C7.03152 15.4479 7.40116 15.7145 7.40116 15.7145L7.76458 16.1447C7.76458 16.1447 7.96976 16.5499 7.89441 16.9425C7.81907 17.3351 7.66208 18.1094 7.66208 18.1094C7.66208 18.1094 7.58674 18.502 8.23785 18.8824C8.88895 19.2629 9.18553 19.0044 9.18553 19.0044C9.18553 19.0044 9.7724 18.4765 10.069 18.218C10.3655 17.9595 10.8115 17.9347 10.8115 17.9347L11.3609 18.0394C11.3609 18.0394 11.77 18.225 11.9608 18.5803C12.1516 18.9356 12.5268 19.6354 12.5268 19.6354C12.5268 19.6354 12.7176 19.9907 13.4583 19.8539C14.1946 19.7343 14.2529 19.337 14.2529 19.337C14.2529 19.337 14.3586 18.5487 14.4232 18.1623C14.4814 17.765 14.8086 17.4598 14.8086 17.4598L15.2939 17.1796C15.2939 17.1796 15.7281 17.0598 16.095 17.1971C16.4682 17.3453 17.1975 17.637 17.1975 17.637C17.1975 17.637 17.5707 17.7851 18.0424 17.2073C18.5142 16.6295 18.3189 16.2913 18.3189 16.2913C18.3189 16.2913 17.9006 15.6164 17.6882 15.2736C17.4759 14.9307 17.5197 14.4836 17.5197 14.4836L17.7038 13.9555C17.7038 13.9555 17.9482 13.5816 18.3203 13.454C18.6925 13.3264 19.4431 13.0822 19.4431 13.0822C19.4431 13.0822 19.8153 12.9546 19.8113 12.2005C19.8074 11.4464 19.4297 11.3153 19.4297 11.3153C19.4297 11.3153 18.6807 11.0641 18.303 10.9331C17.9253 10.802 17.677 10.4217 17.677 10.4217L17.4861 9.8919C17.4861 9.8919 17.4293 9.4447 17.6368 9.1067C17.8443 8.7687 18.2486 8.09891 18.2486 8.09891C18.2486 8.09891 18.4778 7.74844 17.9983 7.16707L17.9983 7.16705ZM9.33902 8.38466L10.6176 10.5992C10.0433 11.149 9.82793 11.9715 10.0567 12.7413L7.86713 14.0054C6.98868 12.0106 7.60355 9.66286 9.33905 8.38457L9.33902 8.38466ZM13.9748 16.414C11.9998 17.2778 9.65918 16.6363 8.37099 14.8783L10.5605 13.6141C11.1128 14.1971 11.9329 14.4219 12.6961 14.1994L13.9748 16.414ZM12.6552 13.132C12.1159 13.4434 11.4325 13.2561 11.1176 12.7107C10.8027 12.1652 10.9822 11.4797 11.5215 11.1684C12.0608 10.857 12.7441 11.0443 13.0591 11.5897C13.374 12.1352 13.1945 12.8207 12.6552 13.132ZM14.8376 15.9158L13.5591 13.7012C14.1333 13.1515 14.3487 12.3289 14.12 11.5591L16.3095 10.295C17.188 12.2898 16.5731 14.6376 14.8376 15.9159L14.8376 15.9158ZM13.6161 10.6863C13.0638 10.1034 12.2437 9.87862 11.4805 10.1011L10.2019 7.88652C12.1769 7.02266 14.5112 7.65314 15.8057 9.42223L13.6161 10.6863Z",
|
|
1091
1091
|
fill: "#003A57"
|
|
1092
1092
|
})));
|
|
@@ -1947,15 +1947,15 @@ const WaffleChart = ({ height, width, data, total, tooltip, }) => {
|
|
|
1947
1947
|
} }) })));
|
|
1948
1948
|
};
|
|
1949
1949
|
|
|
1950
|
-
var _g$
|
|
1951
|
-
function _extends$
|
|
1952
|
-
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1950
|
+
var _g$a, _defs$4;
|
|
1951
|
+
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); }
|
|
1952
|
+
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
1953
1953
|
width: 27,
|
|
1954
1954
|
height: 26,
|
|
1955
1955
|
viewBox: "0 0 27 26",
|
|
1956
1956
|
fill: "none",
|
|
1957
1957
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1958
|
-
}, props), _g$
|
|
1958
|
+
}, props), _g$a || (_g$a = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1959
1959
|
clipPath: "url(#clip0_21_19131)"
|
|
1960
1960
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1961
1961
|
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",
|
|
@@ -1971,15 +1971,15 @@ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1971
1971
|
fill: "white"
|
|
1972
1972
|
})))));
|
|
1973
1973
|
|
|
1974
|
-
var _g$
|
|
1975
|
-
function _extends$
|
|
1976
|
-
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1974
|
+
var _g$9, _defs$3;
|
|
1975
|
+
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); }
|
|
1976
|
+
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
1977
1977
|
width: 27,
|
|
1978
1978
|
height: 26,
|
|
1979
1979
|
viewBox: "0 0 27 26",
|
|
1980
1980
|
fill: "none",
|
|
1981
1981
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1982
|
-
}, props), _g$
|
|
1982
|
+
}, props), _g$9 || (_g$9 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1983
1983
|
clipPath: "url(#clip0_21_19130)"
|
|
1984
1984
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1985
1985
|
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",
|
|
@@ -1995,15 +1995,15 @@ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1995
1995
|
fill: "white"
|
|
1996
1996
|
})))));
|
|
1997
1997
|
|
|
1998
|
-
var _g$
|
|
1999
|
-
function _extends$
|
|
2000
|
-
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1998
|
+
var _g$8, _defs$2;
|
|
1999
|
+
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); }
|
|
2000
|
+
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
2001
2001
|
width: 27,
|
|
2002
2002
|
height: 26,
|
|
2003
2003
|
viewBox: "0 0 27 26",
|
|
2004
2004
|
fill: "none",
|
|
2005
2005
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2006
|
-
}, props), _g$
|
|
2006
|
+
}, props), _g$8 || (_g$8 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2007
2007
|
clipPath: "url(#clip0_21_19129)"
|
|
2008
2008
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2009
2009
|
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",
|
|
@@ -2025,15 +2025,15 @@ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2025
2025
|
fill: "white"
|
|
2026
2026
|
})))));
|
|
2027
2027
|
|
|
2028
|
-
var _g$
|
|
2029
|
-
function _extends$
|
|
2030
|
-
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2028
|
+
var _g$7, _defs$1;
|
|
2029
|
+
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); }
|
|
2030
|
+
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
2031
2031
|
width: 27,
|
|
2032
2032
|
height: 26,
|
|
2033
2033
|
viewBox: "0 0 27 26",
|
|
2034
2034
|
fill: "none",
|
|
2035
2035
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2036
|
-
}, props), _g$
|
|
2036
|
+
}, props), _g$7 || (_g$7 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2037
2037
|
clipPath: "url(#clip0_21_19127)"
|
|
2038
2038
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2039
2039
|
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",
|
|
@@ -2055,15 +2055,15 @@ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2055
2055
|
fill: "white"
|
|
2056
2056
|
})))));
|
|
2057
2057
|
|
|
2058
|
-
var _g$
|
|
2059
|
-
function _extends$
|
|
2060
|
-
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2058
|
+
var _g$6, _defs;
|
|
2059
|
+
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); }
|
|
2060
|
+
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
2061
2061
|
width: 26,
|
|
2062
2062
|
height: 26,
|
|
2063
2063
|
viewBox: "0 0 26 26",
|
|
2064
2064
|
fill: "none",
|
|
2065
2065
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2066
|
-
}, props), _g$
|
|
2066
|
+
}, props), _g$6 || (_g$6 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2067
2067
|
clipPath: "url(#clip0_21_19125)"
|
|
2068
2068
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
2069
2069
|
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",
|
|
@@ -2337,19 +2337,6 @@ const ChatContextProvider = ({ onSave, onFileUpload, onDeleteThumbnail, setMenti
|
|
|
2337
2337
|
setEditor,
|
|
2338
2338
|
thumbnails,
|
|
2339
2339
|
setThumbnails,
|
|
2340
|
-
afterUploadCallback: (failed) => {
|
|
2341
|
-
setThumbnails(thumbnails.map((file) => {
|
|
2342
|
-
if (failed.includes(file.name)) {
|
|
2343
|
-
file.isLoadingMedia = false;
|
|
2344
|
-
//file.isError = true;
|
|
2345
|
-
}
|
|
2346
|
-
else {
|
|
2347
|
-
file.isLoadingMedia = false;
|
|
2348
|
-
//file.isError = false
|
|
2349
|
-
}
|
|
2350
|
-
return file;
|
|
2351
|
-
}));
|
|
2352
|
-
},
|
|
2353
2340
|
addThumbnails: ({ files }) => {
|
|
2354
2341
|
files.forEach((file) => (file.isLoadingMedia = true));
|
|
2355
2342
|
setThumbnails((prev) => [...prev, ...files]);
|
|
@@ -2805,28 +2792,28 @@ const Notification = (_a) => {
|
|
|
2805
2792
|
const ToastProvider = (props) => (jsxRuntime.jsx(reactNotifications.ToastProvider, Object.assign({}, props)));
|
|
2806
2793
|
const useToast = reactNotifications.useToast;
|
|
2807
2794
|
|
|
2808
|
-
var _path$
|
|
2809
|
-
function _extends$
|
|
2810
|
-
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2795
|
+
var _path$w;
|
|
2796
|
+
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); }
|
|
2797
|
+
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
2811
2798
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2812
2799
|
width: 16,
|
|
2813
2800
|
height: 16,
|
|
2814
2801
|
focusable: "false",
|
|
2815
2802
|
viewBox: "0 0 16 16"
|
|
2816
|
-
}, props), _path$
|
|
2803
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2817
2804
|
fill: "currentColor",
|
|
2818
2805
|
d: "M7.5 0C9.952 0 12 2.048 12 4.5a4.483 4.483 0 01-1.27 3.108C12.078 8.39 13 9.855 13 11.5c0 2.452-2.048 4.5-4.5 4.5H4a1 1 0 01-1-1V1a1 1 0 011-1h3.5zM5 14h3.5c1.348 0 2.5-1.152 2.5-2.5S9.848 9 8.5 9H5v5zM7.5 2H5v5h2.5C8.848 7 10 5.848 10 4.5S8.848 2 7.5 2z"
|
|
2819
2806
|
})));
|
|
2820
2807
|
|
|
2821
|
-
var _path$
|
|
2822
|
-
function _extends$
|
|
2823
|
-
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2808
|
+
var _path$v;
|
|
2809
|
+
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); }
|
|
2810
|
+
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
2824
2811
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2825
2812
|
width: 16,
|
|
2826
2813
|
height: 16,
|
|
2827
2814
|
focusable: "false",
|
|
2828
2815
|
viewBox: "0 0 16 16"
|
|
2829
|
-
}, props), _path$
|
|
2816
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2830
2817
|
fill: "none",
|
|
2831
2818
|
stroke: "currentColor",
|
|
2832
2819
|
strokeLinecap: "round",
|
|
@@ -2834,15 +2821,15 @@ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2834
2821
|
d: "M8 1h3M9.5 1l-3 14M5 15h3"
|
|
2835
2822
|
})));
|
|
2836
2823
|
|
|
2837
|
-
var _path$
|
|
2838
|
-
function _extends$
|
|
2839
|
-
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2824
|
+
var _path$u, _path2$7;
|
|
2825
|
+
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); }
|
|
2826
|
+
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
2840
2827
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2841
2828
|
width: 16,
|
|
2842
2829
|
height: 16,
|
|
2843
2830
|
focusable: "false",
|
|
2844
2831
|
viewBox: "0 0 16 16"
|
|
2845
|
-
}, props), _path$
|
|
2832
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2846
2833
|
fill: "currentColor",
|
|
2847
2834
|
d: "M7 8H4c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1zm6 0h-3c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1z"
|
|
2848
2835
|
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2853,15 +2840,15 @@ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
2853
2840
|
d: "M5.5 12C6.5 11 7 9.5 7 8V6m4.5 6c1-1 1.5-2.5 1.5-4V6"
|
|
2854
2841
|
})));
|
|
2855
2842
|
|
|
2856
|
-
var _g$
|
|
2857
|
-
function _extends$
|
|
2858
|
-
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2843
|
+
var _g$5;
|
|
2844
|
+
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); }
|
|
2845
|
+
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
2859
2846
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2860
2847
|
width: 16,
|
|
2861
2848
|
height: 16,
|
|
2862
2849
|
focusable: "false",
|
|
2863
2850
|
viewBox: "0 0 16 16"
|
|
2864
|
-
}, props), _g$
|
|
2851
|
+
}, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2865
2852
|
transform: "translate(-464 -332)"
|
|
2866
2853
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2867
2854
|
width: 16,
|
|
@@ -2881,15 +2868,15 @@ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2881
2868
|
transform: "translate(474.469 331)"
|
|
2882
2869
|
}))));
|
|
2883
2870
|
|
|
2884
|
-
var _g$
|
|
2885
|
-
function _extends$
|
|
2886
|
-
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2871
|
+
var _g$4;
|
|
2872
|
+
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); }
|
|
2873
|
+
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2887
2874
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2888
2875
|
width: 16,
|
|
2889
2876
|
height: 16,
|
|
2890
2877
|
focusable: "false",
|
|
2891
2878
|
viewBox: "0 0 16 16"
|
|
2892
|
-
}, props), _g$
|
|
2879
|
+
}, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2893
2880
|
transform: "translate(-464 -332)"
|
|
2894
2881
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2895
2882
|
width: 16,
|
|
@@ -2909,15 +2896,15 @@ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2909
2896
|
transform: "translate(469.359 331)"
|
|
2910
2897
|
}))));
|
|
2911
2898
|
|
|
2912
|
-
var _g$
|
|
2913
|
-
function _extends$
|
|
2914
|
-
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2899
|
+
var _g$3;
|
|
2900
|
+
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); }
|
|
2901
|
+
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2915
2902
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2916
2903
|
width: 16,
|
|
2917
2904
|
height: 16,
|
|
2918
2905
|
focusable: "false",
|
|
2919
2906
|
viewBox: "0 0 16 16"
|
|
2920
|
-
}, props), _g$
|
|
2907
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
2921
2908
|
transform: "translate(-464 -332)"
|
|
2922
2909
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
2923
2910
|
width: 16,
|
|
@@ -2984,58 +2971,58 @@ const Tooltip = styled__default["default"](TooltipComponent) `
|
|
|
2984
2971
|
box-shadow: ${({ theme }) => theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColor("neutralHue", 600, theme, 0.15))};
|
|
2985
2972
|
`;
|
|
2986
2973
|
|
|
2987
|
-
var _path$
|
|
2988
|
-
function _extends$
|
|
2989
|
-
const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2974
|
+
var _path$t;
|
|
2975
|
+
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); }
|
|
2976
|
+
const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
2990
2977
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2991
2978
|
width: 16,
|
|
2992
2979
|
height: 16,
|
|
2993
2980
|
focusable: "false",
|
|
2994
2981
|
viewBox: "0 0 16 16"
|
|
2995
|
-
}, props), _path$
|
|
2982
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2996
2983
|
fill: "currentColor",
|
|
2997
2984
|
d: "M7 1c2.176 0 4 1.824 4 4 0 1.315-.666 2.501-1.673 3.234C10.869 8.792 12 10.287 12 12c0 2.176-1.824 4-4 4H3.5a.5.5 0 01-.5-.5v-14a.5.5 0 01.5-.5H7zM4 15h4c1.624 0 3-1.376 3-3S9.624 9 8 9H4v6zM7 2H4v6h3c1.624 0 3-1.376 3-3S8.624 2 7 2z"
|
|
2998
2985
|
})));
|
|
2999
2986
|
|
|
3000
|
-
var _path$
|
|
3001
|
-
function _extends$
|
|
3002
|
-
const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2987
|
+
var _path$s;
|
|
2988
|
+
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); }
|
|
2989
|
+
const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
3003
2990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3004
2991
|
width: 16,
|
|
3005
2992
|
height: 16,
|
|
3006
2993
|
focusable: "false",
|
|
3007
2994
|
viewBox: "0 0 16 16"
|
|
3008
|
-
}, props), _path$
|
|
2995
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3009
2996
|
fill: "none",
|
|
3010
2997
|
stroke: "currentColor",
|
|
3011
2998
|
strokeLinecap: "round",
|
|
3012
2999
|
d: "M7.5 1.5h3M9 1.5l-3 14m-1.5 0h3"
|
|
3013
3000
|
})));
|
|
3014
3001
|
|
|
3015
|
-
var _path$
|
|
3016
|
-
function _extends$
|
|
3017
|
-
const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3002
|
+
var _path$r;
|
|
3003
|
+
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); }
|
|
3004
|
+
const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
3018
3005
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3019
3006
|
width: 16,
|
|
3020
3007
|
height: 16,
|
|
3021
3008
|
focusable: "false",
|
|
3022
3009
|
role: "presentation"
|
|
3023
|
-
}, props), _path$
|
|
3010
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3024
3011
|
fill: "none",
|
|
3025
3012
|
stroke: "currentColor",
|
|
3026
3013
|
strokeLinecap: "round",
|
|
3027
3014
|
d: "M11.5 4.5V8h0A3.5 3.5 0 018 11.5h0A3.5 3.5 0 014.5 8h0A3.5 3.5 0 018 4.5h0A3.5 3.5 0 0111.5 8h0v1.5a2 2 0 002 2h0a2 2 0 002-2V8h0A7.5 7.5 0 008 .5h0A7.5 7.5 0 00.5 8h0A7.5 7.5 0 008 15.5h3.41"
|
|
3028
3015
|
})));
|
|
3029
3016
|
|
|
3030
|
-
var _path$
|
|
3031
|
-
function _extends$
|
|
3032
|
-
const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3017
|
+
var _path$q;
|
|
3018
|
+
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); }
|
|
3019
|
+
const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
3033
3020
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3034
3021
|
width: 16,
|
|
3035
3022
|
height: 16,
|
|
3036
3023
|
focusable: "false",
|
|
3037
3024
|
role: "presentation"
|
|
3038
|
-
}, props), _path$
|
|
3025
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3039
3026
|
fill: "none",
|
|
3040
3027
|
stroke: "currentColor",
|
|
3041
3028
|
strokeLinecap: "round",
|
|
@@ -3098,7 +3085,7 @@ const CommentBar = ({ editor, i18n, }) => {
|
|
|
3098
3085
|
const mediaFiles = Array.from(files).map((file) => {
|
|
3099
3086
|
return Object.assign(file, {
|
|
3100
3087
|
isLoadingMedia: false,
|
|
3101
|
-
|
|
3088
|
+
internalId: uuid.v4(),
|
|
3102
3089
|
});
|
|
3103
3090
|
});
|
|
3104
3091
|
if (mediaFiles.length === 0)
|
|
@@ -3288,7 +3275,7 @@ const editorExtensions = ({ placeholderOptions, mentionableUsers, }) => {
|
|
|
3288
3275
|
},
|
|
3289
3276
|
}),
|
|
3290
3277
|
Dropcursor__default["default"].configure({
|
|
3291
|
-
color:
|
|
3278
|
+
color: getColor(colors.accentHue, 700),
|
|
3292
3279
|
width: 3,
|
|
3293
3280
|
}),
|
|
3294
3281
|
Placeholder__default["default"].configure(Object.assign({ placeholder: ({ node }) => {
|
|
@@ -3360,20 +3347,20 @@ const editorExtensions = ({ placeholderOptions, mentionableUsers, }) => {
|
|
|
3360
3347
|
];
|
|
3361
3348
|
};
|
|
3362
3349
|
|
|
3363
|
-
var _circle$
|
|
3364
|
-
function _extends$
|
|
3365
|
-
const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3350
|
+
var _circle$3, _path$p, _path2$6;
|
|
3351
|
+
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); }
|
|
3352
|
+
const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
3366
3353
|
width: 56,
|
|
3367
3354
|
height: 56,
|
|
3368
3355
|
viewBox: "0 0 56 56",
|
|
3369
3356
|
fill: "#68737d",
|
|
3370
3357
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3371
|
-
}, props), _circle$
|
|
3358
|
+
}, props), _circle$3 || (_circle$3 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
3372
3359
|
cx: 28,
|
|
3373
3360
|
cy: 28,
|
|
3374
3361
|
r: 28,
|
|
3375
3362
|
fill: "#edf7ff"
|
|
3376
|
-
})), _path$
|
|
3363
|
+
})), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3377
3364
|
d: "M16.929 16.929L39.071 39.071",
|
|
3378
3365
|
stroke: "currentColor",
|
|
3379
3366
|
strokeWidth: 4
|
|
@@ -3431,20 +3418,20 @@ const ImageThumbnail = ({ src, index = 0, removeThumbnail, clickThumbnail, showX
|
|
|
3431
3418
|
jsxRuntime.jsx("span", { children: "error uploading media" })), !isLoadingMedia && (jsxRuntime.jsx(Preview$1, Object.assign({ url: src }, { children: showX && (jsxRuntime.jsx(DeleteThumbnailX, { deleteThumbnail: (e) => handleCancel(e) })) })))] })));
|
|
3432
3419
|
};
|
|
3433
3420
|
|
|
3434
|
-
var _circle$
|
|
3435
|
-
function _extends$
|
|
3436
|
-
const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3421
|
+
var _circle$2, _path$o;
|
|
3422
|
+
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); }
|
|
3423
|
+
const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
3437
3424
|
width: 56,
|
|
3438
3425
|
height: 56,
|
|
3439
3426
|
viewBox: "0 0 56 56",
|
|
3440
3427
|
fill: "none",
|
|
3441
3428
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3442
|
-
}, props), _circle$
|
|
3429
|
+
}, props), _circle$2 || (_circle$2 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
3443
3430
|
cx: 28,
|
|
3444
3431
|
cy: 28,
|
|
3445
3432
|
r: 28,
|
|
3446
3433
|
fill: "white"
|
|
3447
|
-
})), _path$
|
|
3434
|
+
})), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3448
3435
|
d: "M47 28L18.5 44.4545L18.5 11.5455L47 28Z",
|
|
3449
3436
|
fill: "currentColor"
|
|
3450
3437
|
})));
|
|
@@ -3534,38 +3521,31 @@ const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
|
|
|
3534
3521
|
|
|
3535
3522
|
const ThumbnailContainer = ({ openLightbox }) => {
|
|
3536
3523
|
const { thumbnails, removeThumbnail, onDeleteThumbnail } = useChatContext();
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
fileType: file.type,
|
|
3545
|
-
previewUrl: URL.createObjectURL(file),
|
|
3546
|
-
internal_id: file.internal_id,
|
|
3547
|
-
isLoadingMedia: file.isLoadingMedia,
|
|
3548
|
-
});
|
|
3549
|
-
});
|
|
3550
|
-
if (!mediaFiles || mediaFiles.length === 0) {
|
|
3524
|
+
const media = React.useMemo(() => (thumbnails.map((file) => ({
|
|
3525
|
+
src: URL.createObjectURL(file),
|
|
3526
|
+
internalId: file.internalId,
|
|
3527
|
+
type: file.type,
|
|
3528
|
+
isLoadingMedia: file.isLoadingMedia,
|
|
3529
|
+
}))), [thumbnails]);
|
|
3530
|
+
if (!media || media.length === 0) {
|
|
3551
3531
|
return null;
|
|
3552
3532
|
}
|
|
3553
|
-
return (jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children:
|
|
3533
|
+
return (jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: media.map((file, index) => {
|
|
3554
3534
|
// Check if item is an image or a video
|
|
3555
|
-
if (file.
|
|
3556
|
-
return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, xl: 3, lg: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(ImageThumbnail, { src: file.
|
|
3535
|
+
if (file.type.includes("image"))
|
|
3536
|
+
return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, xl: 3, lg: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(ImageThumbnail, { src: file.src, index: index, showX: true, isLoadingMedia: file.isLoadingMedia, removeThumbnail: () => {
|
|
3557
3537
|
removeThumbnail(index);
|
|
3558
|
-
onDeleteThumbnail(file.
|
|
3538
|
+
onDeleteThumbnail(file.internalId);
|
|
3559
3539
|
}, clickThumbnail: () => {
|
|
3560
3540
|
openLightbox(thumbnails[index], index);
|
|
3561
|
-
} },
|
|
3562
|
-
if (file.
|
|
3563
|
-
return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(VideoThumbnail, { src: file.
|
|
3541
|
+
} }, file.internalId) })));
|
|
3542
|
+
if (file.type.includes("video"))
|
|
3543
|
+
return (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 3, className: "flex-3-sm" }, { children: jsxRuntime.jsx(VideoThumbnail, { src: file.src, index: index, showX: true, isLoadingMedia: file.isLoadingMedia, removeThumbnail: () => {
|
|
3564
3544
|
removeThumbnail(index);
|
|
3565
|
-
onDeleteThumbnail(file.
|
|
3545
|
+
onDeleteThumbnail(file.internalId);
|
|
3566
3546
|
}, clickThumbnail: () => {
|
|
3567
3547
|
openLightbox(thumbnails[index], index);
|
|
3568
|
-
} },
|
|
3548
|
+
} }, file.internalId) })));
|
|
3569
3549
|
return null;
|
|
3570
3550
|
}) })) }));
|
|
3571
3551
|
};
|
|
@@ -3636,28 +3616,28 @@ Lightbox.Body = ModalBody; // Includes Main and Details
|
|
|
3636
3616
|
Lightbox.Footer = Footer$3;
|
|
3637
3617
|
Lightbox.Close = reactModals.Close;
|
|
3638
3618
|
|
|
3639
|
-
var _path$
|
|
3640
|
-
function _extends$
|
|
3641
|
-
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3619
|
+
var _path$n;
|
|
3620
|
+
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); }
|
|
3621
|
+
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
3642
3622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3643
3623
|
width: 16,
|
|
3644
3624
|
height: 16,
|
|
3645
3625
|
focusable: "false",
|
|
3646
3626
|
viewBox: "0 0 16 16"
|
|
3647
|
-
}, props), _path$
|
|
3627
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3648
3628
|
fill: "currentColor",
|
|
3649
3629
|
d: "M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z"
|
|
3650
3630
|
})));
|
|
3651
3631
|
|
|
3652
|
-
var _path$
|
|
3653
|
-
function _extends$
|
|
3654
|
-
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3632
|
+
var _path$m;
|
|
3633
|
+
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); }
|
|
3634
|
+
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
3655
3635
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3656
3636
|
width: 16,
|
|
3657
3637
|
height: 16,
|
|
3658
3638
|
focusable: "false",
|
|
3659
3639
|
viewBox: "0 0 16 16"
|
|
3660
|
-
}, props), _path$
|
|
3640
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3661
3641
|
fill: "currentColor",
|
|
3662
3642
|
d: "M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z"
|
|
3663
3643
|
})));
|
|
@@ -3880,44 +3860,26 @@ Slider.Slide = Slide;
|
|
|
3880
3860
|
Slider.PrevButton = PrevButton;
|
|
3881
3861
|
Slider.NextButton = NextButton;
|
|
3882
3862
|
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
z-index: 1;
|
|
3900
|
-
`;
|
|
3901
|
-
const Content$1 = styled__default["default"].div `
|
|
3902
|
-
display: flex;
|
|
3903
|
-
background-color: ${({ theme }) => theme.palette.grey[800]};
|
|
3904
|
-
border-radius: 2px;
|
|
3905
|
-
width: auto;
|
|
3906
|
-
padding: 2px 4px;
|
|
3907
|
-
display: inline-flex;
|
|
3908
|
-
color: white;
|
|
3909
|
-
align-items: center;
|
|
3910
|
-
justify-content: center;
|
|
3911
|
-
min-height: 16px;
|
|
3912
|
-
`;
|
|
3913
|
-
const PlayerTooltip = (_a) => {
|
|
3914
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
3915
|
-
return (jsxRuntime.jsx(Wrapper$1, Object.assign({}, props, { children: jsxRuntime.jsx(Content$1, { children: children }) })));
|
|
3916
|
-
};
|
|
3863
|
+
var _path$l, _path2$5;
|
|
3864
|
+
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); }
|
|
3865
|
+
const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
3866
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3867
|
+
width: 16,
|
|
3868
|
+
height: 16,
|
|
3869
|
+
focusable: "false",
|
|
3870
|
+
viewBox: "0 0 16 16"
|
|
3871
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3872
|
+
stroke: "currentColor",
|
|
3873
|
+
strokeLinecap: "round",
|
|
3874
|
+
d: "M11.5 10l4-4m-4 0l4 4"
|
|
3875
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3876
|
+
fill: "currentColor",
|
|
3877
|
+
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"
|
|
3878
|
+
})));
|
|
3917
3879
|
|
|
3918
|
-
var _path$k;
|
|
3919
|
-
function _extends$
|
|
3920
|
-
const
|
|
3880
|
+
var _path$k, _path2$4;
|
|
3881
|
+
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); }
|
|
3882
|
+
const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
3921
3883
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3922
3884
|
width: 16,
|
|
3923
3885
|
height: 16,
|
|
@@ -3925,49 +3887,243 @@ const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
3925
3887
|
viewBox: "0 0 16 16"
|
|
3926
3888
|
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3927
3889
|
fill: "currentColor",
|
|
3928
|
-
d: "
|
|
3890
|
+
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"
|
|
3891
|
+
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3892
|
+
fill: "none",
|
|
3893
|
+
stroke: "currentColor",
|
|
3894
|
+
strokeLinecap: "round",
|
|
3895
|
+
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"
|
|
3929
3896
|
})));
|
|
3930
3897
|
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
const
|
|
3898
|
+
const AudioButton = () => {
|
|
3899
|
+
const [hasAudio, setHasAudio] = React.useState(false);
|
|
3900
|
+
const { isMuted, setMuted, context } = Video.useVideoContext();
|
|
3901
|
+
const { player } = context;
|
|
3902
|
+
const checkAudio = (video) => {
|
|
3903
|
+
if (!video) {
|
|
3904
|
+
return false;
|
|
3905
|
+
}
|
|
3906
|
+
const videohasAudio = video.mozHasAudio ||
|
|
3907
|
+
Boolean(video.webkitAudioDecodedByteCount) ||
|
|
3908
|
+
Boolean(video.audioTracks && video.audioTracks.length);
|
|
3909
|
+
setHasAudio(videohasAudio);
|
|
3910
|
+
};
|
|
3911
|
+
const hasVolume = (video) => {
|
|
3912
|
+
if (!video) {
|
|
3913
|
+
return false;
|
|
3914
|
+
}
|
|
3915
|
+
return video.volume > 0;
|
|
3916
|
+
};
|
|
3917
|
+
React.useEffect(() => {
|
|
3918
|
+
if (player && (player === null || player === void 0 ? void 0 : player.ref)) {
|
|
3919
|
+
setMuted(!hasVolume(player.ref.current));
|
|
3920
|
+
checkAudio(player.ref.current);
|
|
3921
|
+
}
|
|
3922
|
+
}, [context.isPlaying, isMuted]);
|
|
3923
|
+
return (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, disabled: !hasAudio, onClick: () => {
|
|
3924
|
+
if (player === null || player === void 0 ? void 0 : player.ref.current) {
|
|
3925
|
+
player.ref.current.volume = player.ref.current.volume > 0 ? 0 : 1;
|
|
3926
|
+
setMuted(!player.ref.current.volume);
|
|
3927
|
+
}
|
|
3928
|
+
} }, { children: isMuted || !hasAudio ? jsxRuntime.jsx(SvgVolumeMutedFill, {}) : jsxRuntime.jsx(SvgVolumeUnmutedFill, {}) })));
|
|
3929
|
+
};
|
|
3930
|
+
|
|
3931
|
+
const ProgressContext = React.createContext(null);
|
|
3932
|
+
const ProgressContextProvider = ({ children, }) => {
|
|
3933
|
+
const [isGrabbing, setIsGrabbing] = React.useState(false);
|
|
3934
|
+
const [fromEnd, setFromEnd] = React.useState(false);
|
|
3935
|
+
const [activeBookmark, setactiveBookmark] = React.useState(undefined);
|
|
3936
|
+
const progressContextValue = React.useMemo(() => ({
|
|
3937
|
+
isGrabbing,
|
|
3938
|
+
fromEnd,
|
|
3939
|
+
activeBookmark,
|
|
3940
|
+
setIsGrabbing,
|
|
3941
|
+
setFromEnd,
|
|
3942
|
+
setactiveBookmark,
|
|
3943
|
+
reset: () => {
|
|
3944
|
+
setIsGrabbing(false);
|
|
3945
|
+
setFromEnd(false);
|
|
3946
|
+
setactiveBookmark(undefined);
|
|
3947
|
+
},
|
|
3948
|
+
}), [isGrabbing, fromEnd, activeBookmark]);
|
|
3949
|
+
return (jsxRuntime.jsx(ProgressContext.Provider, Object.assign({ value: progressContextValue }, { children: children })));
|
|
3950
|
+
};
|
|
3951
|
+
const useProgressContext = () => {
|
|
3952
|
+
const context = React.useContext(ProgressContext);
|
|
3953
|
+
if (!context)
|
|
3954
|
+
throw new Error("Provider not found for ProgressContextProvider");
|
|
3955
|
+
return context; // Now we can use the context in the component, SAFELY.
|
|
3956
|
+
};
|
|
3957
|
+
|
|
3958
|
+
var _g$2;
|
|
3959
|
+
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); }
|
|
3960
|
+
const SvgGrip = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
3934
3961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3935
3962
|
width: 16,
|
|
3936
3963
|
height: 16,
|
|
3937
3964
|
focusable: "false",
|
|
3938
3965
|
viewBox: "0 0 16 16"
|
|
3939
|
-
}, props), _g$
|
|
3966
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3940
3967
|
fill: "currentColor"
|
|
3941
3968
|
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
3942
|
-
width:
|
|
3943
|
-
height:
|
|
3944
|
-
x:
|
|
3969
|
+
width: 2,
|
|
3970
|
+
height: 2,
|
|
3971
|
+
x: 5,
|
|
3945
3972
|
y: 1,
|
|
3946
|
-
rx:
|
|
3947
|
-
ry:
|
|
3973
|
+
rx: 0.5,
|
|
3974
|
+
ry: 0.5
|
|
3948
3975
|
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
3949
|
-
width:
|
|
3950
|
-
height:
|
|
3976
|
+
width: 2,
|
|
3977
|
+
height: 2,
|
|
3951
3978
|
x: 9,
|
|
3952
3979
|
y: 1,
|
|
3953
|
-
rx:
|
|
3954
|
-
ry:
|
|
3980
|
+
rx: 0.5,
|
|
3981
|
+
ry: 0.5
|
|
3982
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
3983
|
+
width: 2,
|
|
3984
|
+
height: 2,
|
|
3985
|
+
x: 5,
|
|
3986
|
+
y: 5,
|
|
3987
|
+
rx: 0.5,
|
|
3988
|
+
ry: 0.5
|
|
3989
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
3990
|
+
width: 2,
|
|
3991
|
+
height: 2,
|
|
3992
|
+
x: 9,
|
|
3993
|
+
y: 5,
|
|
3994
|
+
rx: 0.5,
|
|
3995
|
+
ry: 0.5
|
|
3996
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
3997
|
+
width: 2,
|
|
3998
|
+
height: 2,
|
|
3999
|
+
x: 5,
|
|
4000
|
+
y: 9,
|
|
4001
|
+
rx: 0.5,
|
|
4002
|
+
ry: 0.5
|
|
4003
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4004
|
+
width: 2,
|
|
4005
|
+
height: 2,
|
|
4006
|
+
x: 9,
|
|
4007
|
+
y: 9,
|
|
4008
|
+
rx: 0.5,
|
|
4009
|
+
ry: 0.5
|
|
4010
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4011
|
+
width: 2,
|
|
4012
|
+
height: 2,
|
|
4013
|
+
x: 5,
|
|
4014
|
+
y: 13,
|
|
4015
|
+
rx: 0.5,
|
|
4016
|
+
ry: 0.5
|
|
4017
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4018
|
+
width: 2,
|
|
4019
|
+
height: 2,
|
|
4020
|
+
x: 9,
|
|
4021
|
+
y: 13,
|
|
4022
|
+
rx: 0.5,
|
|
4023
|
+
ry: 0.5
|
|
3955
4024
|
}))));
|
|
3956
4025
|
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
4026
|
+
const StyledGrabber = styled.styled.div `
|
|
4027
|
+
position: absolute;
|
|
4028
|
+
display: none;
|
|
4029
|
+
${({ isEnd }) => isEnd
|
|
4030
|
+
? `
|
|
4031
|
+
right: 0;
|
|
4032
|
+
border-top-right-radius: 2px;
|
|
4033
|
+
border-bottom-right-radius: 2px;
|
|
4034
|
+
`
|
|
4035
|
+
: `
|
|
4036
|
+
left: 0;
|
|
4037
|
+
border-top-left-radius: 2px;
|
|
4038
|
+
border-bottom-left-radius: 2px;
|
|
4039
|
+
`}
|
|
4040
|
+
height: 100%;
|
|
4041
|
+
width: 8px;
|
|
4042
|
+
background-color: white;
|
|
4043
|
+
z-index: 2;
|
|
4044
|
+
cursor: ew-resize;
|
|
4045
|
+
|
|
4046
|
+
div {
|
|
4047
|
+
display: flex;
|
|
4048
|
+
justify-content: center;
|
|
4049
|
+
align-items: center;
|
|
4050
|
+
height: 100%;
|
|
4051
|
+
width: 100%;
|
|
4052
|
+
color: ${({ theme }) => theme.palette.grey[500]};
|
|
4053
|
+
svg {
|
|
4054
|
+
width: auto;
|
|
4055
|
+
height: 50%;
|
|
4056
|
+
}
|
|
4057
|
+
}
|
|
4058
|
+
`;
|
|
4059
|
+
const activeBookMark = styled.css `
|
|
4060
|
+
height: 250%;
|
|
4061
|
+
transform: translateY(-30%);
|
|
4062
|
+
|
|
4063
|
+
${StyledGrabber} {
|
|
4064
|
+
display: block;
|
|
4065
|
+
}
|
|
4066
|
+
`;
|
|
4067
|
+
const Rect = styled.styled.div `
|
|
4068
|
+
position: absolute;
|
|
4069
|
+
height: 110%;
|
|
4070
|
+
background-color: ${({ hue, theme }) => hue || theme.palette.grey[800]};
|
|
4071
|
+
z-index: 1;
|
|
4072
|
+
border-radius: 2px;
|
|
4073
|
+
&:hover {
|
|
4074
|
+
${activeBookMark}
|
|
4075
|
+
border-radius: 4px;
|
|
4076
|
+
}
|
|
4077
|
+
color: white;
|
|
4078
|
+
${({ isActive }) => isActive && activeBookMark}
|
|
4079
|
+
|
|
4080
|
+
transition: width 0.1s ease;
|
|
4081
|
+
`;
|
|
4082
|
+
const Grabber = (props) => {
|
|
4083
|
+
const { observation } = props;
|
|
4084
|
+
const { setIsGrabbing, setactiveBookmark, setFromEnd } = useProgressContext();
|
|
4085
|
+
const handleDragStart = (e) => {
|
|
4086
|
+
setIsGrabbing(true);
|
|
4087
|
+
setactiveBookmark(observation);
|
|
4088
|
+
setFromEnd(!!props.isEnd);
|
|
4089
|
+
e.preventDefault();
|
|
4090
|
+
e.stopPropagation();
|
|
4091
|
+
};
|
|
4092
|
+
return (jsxRuntime.jsx(StyledGrabber, Object.assign({ isEnd: props.isEnd, onMouseDown: handleDragStart, onMouseMove: props.handleMouseMove }, { children: jsxRuntime.jsx("div", { children: jsxRuntime.jsx(SvgGrip, {}) }) })));
|
|
4093
|
+
};
|
|
4094
|
+
const Bookmark = (props) => {
|
|
4095
|
+
var _a, _b;
|
|
4096
|
+
const { start, end, hue, label } = props;
|
|
4097
|
+
const { context } = Video.useVideoContext();
|
|
4098
|
+
const videoStart = context.part.start || 0;
|
|
4099
|
+
const videoEnd = context.part.end || ((_a = context.player) === null || _a === void 0 ? void 0 : _a.totalTime) || 0;
|
|
4100
|
+
const duration = videoEnd - videoStart || ((_b = context.player) === null || _b === void 0 ? void 0 : _b.totalTime) || 0; //relative
|
|
4101
|
+
const { activeBookmark } = useProgressContext();
|
|
4102
|
+
if (!context.player || !context.player.ref) {
|
|
4103
|
+
return null;
|
|
4104
|
+
}
|
|
4105
|
+
if (start > videoEnd || start < videoStart)
|
|
4106
|
+
return null;
|
|
4107
|
+
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: {
|
|
4108
|
+
left: `${((start - videoStart) / duration) * 100}%`,
|
|
4109
|
+
width: `${((end - start) / duration) * 100}%`,
|
|
4110
|
+
}, onClick: props.onClick }, { children: [jsxRuntime.jsx(Grabber, { observation: props }), jsxRuntime.jsx(Grabber, { isEnd: true, observation: props })] })) })));
|
|
4111
|
+
};
|
|
4112
|
+
|
|
4113
|
+
var _path$j, _path2$3, _path3$1;
|
|
4114
|
+
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); }
|
|
4115
|
+
const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
4116
|
+
width: 16,
|
|
4117
|
+
height: 16,
|
|
3962
4118
|
viewBox: "0 0 16 16",
|
|
3963
4119
|
fill: "none",
|
|
3964
4120
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3965
4121
|
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3966
4122
|
fillRule: "evenodd",
|
|
3967
4123
|
clipRule: "evenodd",
|
|
3968
|
-
d: "
|
|
4124
|
+
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",
|
|
3969
4125
|
fill: "currentColor"
|
|
3970
|
-
})), _path2$
|
|
4126
|
+
})), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3971
4127
|
d: "M5.5 7.63073V7.07008H6.67566V11H6.02566V7.63073H5.5Z",
|
|
3972
4128
|
fill: "currentColor"
|
|
3973
4129
|
})), _path3$1 || (_path3$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -3975,9 +4131,9 @@ const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createEleme
|
|
|
3975
4131
|
fill: "currentColor"
|
|
3976
4132
|
})));
|
|
3977
4133
|
|
|
3978
|
-
var _path$i, _path2$
|
|
3979
|
-
function _extends$
|
|
3980
|
-
const
|
|
4134
|
+
var _path$i, _path2$2, _path3;
|
|
4135
|
+
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); }
|
|
4136
|
+
const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
3981
4137
|
width: 16,
|
|
3982
4138
|
height: 16,
|
|
3983
4139
|
viewBox: "0 0 16 16",
|
|
@@ -3986,9 +4142,9 @@ const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement(
|
|
|
3986
4142
|
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3987
4143
|
fillRule: "evenodd",
|
|
3988
4144
|
clipRule: "evenodd",
|
|
3989
|
-
d: "
|
|
4145
|
+
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",
|
|
3990
4146
|
fill: "currentColor"
|
|
3991
|
-
})), _path2$
|
|
4147
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3992
4148
|
d: "M5.5 7.63073V7.07008H6.67566V11H6.02566V7.63073H5.5Z",
|
|
3993
4149
|
fill: "currentColor"
|
|
3994
4150
|
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -3996,18 +4152,57 @@ const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement(
|
|
|
3996
4152
|
fill: "currentColor"
|
|
3997
4153
|
})));
|
|
3998
4154
|
|
|
3999
|
-
var
|
|
4155
|
+
var _g$1;
|
|
4156
|
+
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); }
|
|
4157
|
+
const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
4158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4159
|
+
width: 16,
|
|
4160
|
+
height: 16,
|
|
4161
|
+
focusable: "false",
|
|
4162
|
+
viewBox: "0 0 16 16"
|
|
4163
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4164
|
+
fill: "currentColor"
|
|
4165
|
+
}, /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4166
|
+
width: 4,
|
|
4167
|
+
height: 14,
|
|
4168
|
+
x: 3,
|
|
4169
|
+
y: 1,
|
|
4170
|
+
rx: 1,
|
|
4171
|
+
ry: 1
|
|
4172
|
+
}), /*#__PURE__*/React__namespace.createElement("rect", {
|
|
4173
|
+
width: 4,
|
|
4174
|
+
height: 14,
|
|
4175
|
+
x: 9,
|
|
4176
|
+
y: 1,
|
|
4177
|
+
rx: 1,
|
|
4178
|
+
ry: 1
|
|
4179
|
+
}))));
|
|
4180
|
+
|
|
4181
|
+
var _path$h;
|
|
4000
4182
|
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); }
|
|
4001
|
-
const
|
|
4183
|
+
const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
4002
4184
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4003
4185
|
width: 16,
|
|
4004
4186
|
height: 16,
|
|
4005
4187
|
focusable: "false",
|
|
4006
|
-
viewBox: "0 0
|
|
4188
|
+
viewBox: "0 0 16 16"
|
|
4007
4189
|
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4190
|
+
fill: "currentColor",
|
|
4191
|
+
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"
|
|
4192
|
+
})));
|
|
4193
|
+
|
|
4194
|
+
var _path$g, _path2$1;
|
|
4195
|
+
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); }
|
|
4196
|
+
const SvgPreviousFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
4197
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4198
|
+
width: 16,
|
|
4199
|
+
height: 16,
|
|
4200
|
+
focusable: "false",
|
|
4201
|
+
viewBox: "0 0 24 24"
|
|
4202
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4008
4203
|
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",
|
|
4009
4204
|
fill: "currentColor"
|
|
4010
|
-
})), _path2$
|
|
4205
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4011
4206
|
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",
|
|
4012
4207
|
fill: "currentColor"
|
|
4013
4208
|
})));
|
|
@@ -4037,8 +4232,9 @@ const getNextPlaybackRate = (rate = 1) => {
|
|
|
4037
4232
|
const StyledDiv$3 = styled__default["default"].div `
|
|
4038
4233
|
display: flex;
|
|
4039
4234
|
align-items: center;
|
|
4235
|
+
justify-content: center;
|
|
4040
4236
|
`;
|
|
4041
|
-
const ControlsGroupCenter = () => {
|
|
4237
|
+
const ControlsGroupCenter = (props) => {
|
|
4042
4238
|
var _a;
|
|
4043
4239
|
const [playBackRate, setPlayBackRate] = React.useState(1);
|
|
4044
4240
|
const { context, togglePlay } = Video.useVideoContext();
|
|
@@ -4061,7 +4257,7 @@ const ControlsGroupCenter = () => {
|
|
|
4061
4257
|
const nextTime = videoRef.currentTime + 10;
|
|
4062
4258
|
videoRef.currentTime = nextTime;
|
|
4063
4259
|
};
|
|
4064
|
-
return (jsxRuntime.jsxs(StyledDiv$3, { children: [jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
4260
|
+
return (jsxRuntime.jsxs(StyledDiv$3, Object.assign({}, props, { children: [jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
|
|
4065
4261
|
if (videoRef) {
|
|
4066
4262
|
videoRef.currentTime = 0;
|
|
4067
4263
|
}
|
|
@@ -4079,115 +4275,33 @@ const ControlsGroupCenter = () => {
|
|
|
4079
4275
|
videoRef.playbackRate = newSpeed;
|
|
4080
4276
|
}
|
|
4081
4277
|
e.stopPropagation();
|
|
4082
|
-
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] }));
|
|
4278
|
+
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] })));
|
|
4083
4279
|
};
|
|
4084
4280
|
|
|
4085
|
-
|
|
4086
|
-
position: absolute;
|
|
4087
|
-
bottom: ${({ theme }) => theme.space.sm};
|
|
4088
|
-
right: 0;
|
|
4089
|
-
|
|
4090
|
-
padding: 0 ${({ theme }) => theme.space.xs};
|
|
4091
|
-
|
|
4092
|
-
span {
|
|
4093
|
-
color: ${({ theme }) => theme.palette.grey[300]};
|
|
4094
|
-
}
|
|
4095
|
-
`;
|
|
4096
|
-
const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [current, "/", duration] })) }));
|
|
4097
|
-
|
|
4098
|
-
var _path$g, _path2$2;
|
|
4099
|
-
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); }
|
|
4100
|
-
const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
4101
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4102
|
-
width: 16,
|
|
4103
|
-
height: 16,
|
|
4104
|
-
focusable: "false",
|
|
4105
|
-
viewBox: "0 0 16 16"
|
|
4106
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4107
|
-
stroke: "currentColor",
|
|
4108
|
-
strokeLinecap: "round",
|
|
4109
|
-
d: "M11.5 10l4-4m-4 0l4 4"
|
|
4110
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4111
|
-
fill: "currentColor",
|
|
4112
|
-
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"
|
|
4113
|
-
})));
|
|
4114
|
-
|
|
4115
|
-
var _path$f, _path2$1;
|
|
4281
|
+
var _path$f;
|
|
4116
4282
|
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); }
|
|
4117
|
-
const
|
|
4283
|
+
const SvgMaximizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
4118
4284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4119
4285
|
width: 16,
|
|
4120
4286
|
height: 16,
|
|
4121
4287
|
focusable: "false",
|
|
4122
4288
|
viewBox: "0 0 16 16"
|
|
4123
4289
|
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4124
|
-
fill: "currentColor",
|
|
4125
|
-
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"
|
|
4126
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4127
4290
|
fill: "none",
|
|
4128
4291
|
stroke: "currentColor",
|
|
4129
4292
|
strokeLinecap: "round",
|
|
4130
|
-
d: "
|
|
4293
|
+
d: "M4.5.5H1C.72.5.5.72.5 1v3.5m15 0V1c0-.28-.22-.5-.5-.5h-3.5m-11 11V15c0 .28.22.5.5.5h3.5m11-4V15c0 .28-.22.5-.5.5h-3.5m-7-11L1 1m10.5 3.5L15 1M4.5 11.5L1 15m10.5-3.5L15 15"
|
|
4131
4294
|
})));
|
|
4132
4295
|
|
|
4133
|
-
const AudioButton = () => {
|
|
4134
|
-
const [hasAudio, setHasAudio] = React.useState(false);
|
|
4135
|
-
const { isMuted, setMuted, context } = Video.useVideoContext();
|
|
4136
|
-
const { player } = context;
|
|
4137
|
-
const checkAudio = (video) => {
|
|
4138
|
-
if (!video) {
|
|
4139
|
-
return false;
|
|
4140
|
-
}
|
|
4141
|
-
console.log("hasAudio?", video);
|
|
4142
|
-
const videohasAudio = video.mozHasAudio ||
|
|
4143
|
-
Boolean(video.webkitAudioDecodedByteCount) ||
|
|
4144
|
-
Boolean(video.audioTracks && video.audioTracks.length);
|
|
4145
|
-
setHasAudio(videohasAudio);
|
|
4146
|
-
};
|
|
4147
|
-
const hasVolume = (video) => {
|
|
4148
|
-
if (!video) {
|
|
4149
|
-
return false;
|
|
4150
|
-
}
|
|
4151
|
-
return video.volume > 0;
|
|
4152
|
-
};
|
|
4153
|
-
React.useEffect(() => {
|
|
4154
|
-
if (player && (player === null || player === void 0 ? void 0 : player.ref)) {
|
|
4155
|
-
setMuted(!hasVolume(player.ref.current));
|
|
4156
|
-
checkAudio(player.ref.current);
|
|
4157
|
-
}
|
|
4158
|
-
}, [context.isPlaying, isMuted]);
|
|
4159
|
-
return (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, disabled: !hasAudio, onClick: () => {
|
|
4160
|
-
if (player === null || player === void 0 ? void 0 : player.ref.current) {
|
|
4161
|
-
player.ref.current.volume = player.ref.current.volume > 0 ? 0 : 1;
|
|
4162
|
-
setMuted(!player.ref.current.volume);
|
|
4163
|
-
}
|
|
4164
|
-
} }, { children: isMuted || !hasAudio ? jsxRuntime.jsx(SvgVolumeMutedFill, {}) : jsxRuntime.jsx(SvgVolumeUnmutedFill, {}) })));
|
|
4165
|
-
};
|
|
4166
|
-
|
|
4167
4296
|
var _path$e;
|
|
4168
4297
|
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); }
|
|
4169
|
-
const
|
|
4298
|
+
const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
4170
4299
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4171
4300
|
width: 16,
|
|
4172
4301
|
height: 16,
|
|
4173
4302
|
focusable: "false",
|
|
4174
4303
|
viewBox: "0 0 16 16"
|
|
4175
4304
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4176
|
-
fill: "none",
|
|
4177
|
-
stroke: "currentColor",
|
|
4178
|
-
strokeLinecap: "round",
|
|
4179
|
-
d: "M4.5.5H1C.72.5.5.72.5 1v3.5m15 0V1c0-.28-.22-.5-.5-.5h-3.5m-11 11V15c0 .28.22.5.5.5h3.5m11-4V15c0 .28-.22.5-.5.5h-3.5m-7-11L1 1m10.5 3.5L15 1M4.5 11.5L1 15m10.5-3.5L15 15"
|
|
4180
|
-
})));
|
|
4181
|
-
|
|
4182
|
-
var _path$d;
|
|
4183
|
-
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); }
|
|
4184
|
-
const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
4185
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4186
|
-
width: 16,
|
|
4187
|
-
height: 16,
|
|
4188
|
-
focusable: "false",
|
|
4189
|
-
viewBox: "0 0 16 16"
|
|
4190
|
-
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4191
4305
|
fill: "none",
|
|
4192
4306
|
stroke: "currentColor",
|
|
4193
4307
|
strokeLinecap: "round",
|
|
@@ -4261,6 +4375,96 @@ const FullScreenButton = ({ container, }) => {
|
|
|
4261
4375
|
}, disabled: !canGoFullScreen() }, { children: document.fullscreenElement || isFullScreen ? (jsxRuntime.jsx(SvgMinimizeStroke, {})) : (jsxRuntime.jsx(SvgMaximizeStroke, {})) })));
|
|
4262
4376
|
};
|
|
4263
4377
|
|
|
4378
|
+
const UgProgress = styled__default["default"](reactLoaders.Progress) ``;
|
|
4379
|
+
/**
|
|
4380
|
+
* A Progress loader communicates progress when downloading or uploading content.
|
|
4381
|
+
* <hr>
|
|
4382
|
+
* Used for this:
|
|
4383
|
+
* - To communicate the amount of time left when downloading or uploading content
|
|
4384
|
+
*
|
|
4385
|
+
Not for this:
|
|
4386
|
+
- When the loading time is unknown, use a Spinner instead
|
|
4387
|
+
- When loading page content, use a Skeleton loader instead
|
|
4388
|
+
*/
|
|
4389
|
+
const Progress = React.forwardRef((props, ref) => (jsxRuntime.jsx(UgProgress, Object.assign({ ref: ref }, props))));
|
|
4390
|
+
|
|
4391
|
+
const StyledProgress = styled.styled(Progress) `
|
|
4392
|
+
width: 100%;
|
|
4393
|
+
border-radius: 0;
|
|
4394
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
4395
|
+
cursor: pointer;
|
|
4396
|
+
> div {
|
|
4397
|
+
border-radius: 0;
|
|
4398
|
+
}
|
|
4399
|
+
`;
|
|
4400
|
+
const ProgressBar = React.forwardRef((props, ref) => {
|
|
4401
|
+
const { progress, handleSkipAhead } = props;
|
|
4402
|
+
return (jsxRuntime.jsx(StyledProgress, { className: "progress-bar-1", ref: ref, value: progress, onClick: (e) => handleSkipAhead(e.clientX) }));
|
|
4403
|
+
});
|
|
4404
|
+
|
|
4405
|
+
const StyledDiv$2 = styled__default["default"].div `
|
|
4406
|
+
display: flex;
|
|
4407
|
+
color: ${({ theme }) => theme.palette.grey[300]};
|
|
4408
|
+
`;
|
|
4409
|
+
const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [formatDuration(current), "/", formatDuration(duration)] })) }));
|
|
4410
|
+
|
|
4411
|
+
const Wrapper$1 = styled__default["default"].div `
|
|
4412
|
+
position: absolute;
|
|
4413
|
+
bottom: ${({ theme }) => theme.space.sm};
|
|
4414
|
+
z-index: 1;
|
|
4415
|
+
`;
|
|
4416
|
+
const Content$1 = styled__default["default"].div `
|
|
4417
|
+
display: flex;
|
|
4418
|
+
background-color: ${({ theme }) => theme.palette.grey[800]};
|
|
4419
|
+
border-radius: 2px;
|
|
4420
|
+
width: auto;
|
|
4421
|
+
padding: 2px 4px;
|
|
4422
|
+
display: inline-flex;
|
|
4423
|
+
color: white;
|
|
4424
|
+
align-items: center;
|
|
4425
|
+
justify-content: center;
|
|
4426
|
+
min-height: 16px;
|
|
4427
|
+
`;
|
|
4428
|
+
const PlayerTooltip = (_a) => {
|
|
4429
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
4430
|
+
return (jsxRuntime.jsx(Wrapper$1, Object.assign({}, props, { children: jsxRuntime.jsx(Content$1, { children: children }) })));
|
|
4431
|
+
};
|
|
4432
|
+
|
|
4433
|
+
var _path$d, _circle$1;
|
|
4434
|
+
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); }
|
|
4435
|
+
const SvgTagStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
4436
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4437
|
+
width: 16,
|
|
4438
|
+
height: 16,
|
|
4439
|
+
focusable: "false",
|
|
4440
|
+
viewBox: "0 0 16 16"
|
|
4441
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4442
|
+
fill: "none",
|
|
4443
|
+
stroke: "currentColor",
|
|
4444
|
+
d: "M.5 1v5.3c0 .1.1.3.1.4l8.5 8.5c.2.2.5.2.7 0l5.3-5.3c.2-.2.2-.5 0-.7L6.6.6S6.4.5 6.3.5H1C.7.5.5.7.5 1z"
|
|
4445
|
+
})), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
4446
|
+
cx: 4,
|
|
4447
|
+
cy: 4,
|
|
4448
|
+
r: 1,
|
|
4449
|
+
fill: "currentColor"
|
|
4450
|
+
})));
|
|
4451
|
+
|
|
4452
|
+
const Cutter = ({ onCutHandler, isCutting, i18n, }) => {
|
|
4453
|
+
var _a;
|
|
4454
|
+
const { context } = Video.useVideoContext();
|
|
4455
|
+
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
4456
|
+
if (!onCutHandler)
|
|
4457
|
+
return null;
|
|
4458
|
+
return (jsxRuntime.jsxs(Button, Object.assign({ isPrimary: true, isAccent: true, size: "small", onClick: (e) => {
|
|
4459
|
+
if (videoRef) {
|
|
4460
|
+
onCutHandler(videoRef.currentTime);
|
|
4461
|
+
}
|
|
4462
|
+
e.stopPropagation();
|
|
4463
|
+
} }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgTagStroke, {}) }), isCutting
|
|
4464
|
+
? (i18n === null || i18n === void 0 ? void 0 : i18n.onHighlight) || "Click again to stop"
|
|
4465
|
+
: (i18n === null || i18n === void 0 ? void 0 : i18n.beforeHighlight) || "New highlight"] })));
|
|
4466
|
+
};
|
|
4467
|
+
|
|
4264
4468
|
const ControlsWrapper = styled__default["default"].div `
|
|
4265
4469
|
position: absolute;
|
|
4266
4470
|
bottom: 0;
|
|
@@ -4271,15 +4475,6 @@ const ControlsWrapper = styled__default["default"].div `
|
|
|
4271
4475
|
${({ isPlaying }) => isPlaying && "display: none;"}
|
|
4272
4476
|
z-index: 2;
|
|
4273
4477
|
`;
|
|
4274
|
-
const StyledProgress = styled__default["default"](Progress) `
|
|
4275
|
-
width: 100%;
|
|
4276
|
-
border-radius: 0;
|
|
4277
|
-
color: ${({ theme }) => theme.palette.kale[700]};
|
|
4278
|
-
cursor: pointer;
|
|
4279
|
-
> div {
|
|
4280
|
-
border-radius: 0;
|
|
4281
|
-
}
|
|
4282
|
-
`;
|
|
4283
4478
|
const StyledTooltip = styled__default["default"](PlayerTooltip) `
|
|
4284
4479
|
display: none;
|
|
4285
4480
|
`;
|
|
@@ -4298,18 +4493,23 @@ const StyledDiv$1 = styled__default["default"].div `
|
|
|
4298
4493
|
display: flex;
|
|
4299
4494
|
align-items: center;
|
|
4300
4495
|
`;
|
|
4301
|
-
const Controls = ({ container, }) => {
|
|
4496
|
+
const Controls = ({ container, onCutHandler, bookmarks, isCutting, onBookMarkUpdated, i18n, }) => {
|
|
4302
4497
|
var _a, _b, _c;
|
|
4303
4498
|
const [progress, setProgress] = React.useState(0);
|
|
4304
4499
|
const [tooltipMargin, setTooltipMargin] = React.useState(0);
|
|
4305
4500
|
const [tooltipLabel, setTooltipLabel] = React.useState("00:00");
|
|
4501
|
+
const [marks, setMarks] = React.useState(bookmarks);
|
|
4306
4502
|
const progressRef = React.useRef(null);
|
|
4307
4503
|
const { context, setCurrentTime } = Video.useVideoContext();
|
|
4504
|
+
const { reset, isGrabbing, activeBookmark, fromEnd } = useProgressContext();
|
|
4505
|
+
React.useEffect(() => {
|
|
4506
|
+
setMarks(bookmarks);
|
|
4507
|
+
}, [bookmarks]);
|
|
4308
4508
|
const relCurrentTime = ((_a = context.player) === null || _a === void 0 ? void 0 : _a.currentTime)
|
|
4309
4509
|
? ((_b = context.player) === null || _b === void 0 ? void 0 : _b.currentTime) - context.part.start
|
|
4310
4510
|
: 0;
|
|
4311
4511
|
const duration = context.part.end - context.part.start || ((_c = context.player) === null || _c === void 0 ? void 0 : _c.totalTime) || 0; //relative
|
|
4312
|
-
const getVideoPositionFromEvent = (clientX) => {
|
|
4512
|
+
const getVideoPositionFromEvent = React.useCallback((clientX) => {
|
|
4313
4513
|
if (progressRef && progressRef.current && duration) {
|
|
4314
4514
|
const bounds = progressRef.current.getBoundingClientRect();
|
|
4315
4515
|
const x = clientX - bounds.left;
|
|
@@ -4317,12 +4517,18 @@ const Controls = ({ container, }) => {
|
|
|
4317
4517
|
return videoPositionSecs;
|
|
4318
4518
|
}
|
|
4319
4519
|
return 0;
|
|
4320
|
-
};
|
|
4520
|
+
}, [progressRef, duration]);
|
|
4521
|
+
const getProgress = React.useCallback((currentTime) => {
|
|
4522
|
+
const current = currentTime - (context.part.start || 0);
|
|
4523
|
+
if (duration === 0)
|
|
4524
|
+
return 0;
|
|
4525
|
+
return (current / duration) * 100;
|
|
4526
|
+
}, [context.part.start, duration]);
|
|
4321
4527
|
const handleSkipAhead = React.useCallback((pageX) => {
|
|
4322
4528
|
const time = getVideoPositionFromEvent(pageX) + (context.part.start || 0);
|
|
4323
4529
|
setCurrentTime(time);
|
|
4324
4530
|
setProgress(getProgress(time));
|
|
4325
|
-
}, [
|
|
4531
|
+
}, [getVideoPositionFromEvent, context.part.start, setCurrentTime, getProgress]);
|
|
4326
4532
|
const onMouseEvent = (e) => {
|
|
4327
4533
|
if (progressRef && progressRef.current) {
|
|
4328
4534
|
const tooltipWidth = 40;
|
|
@@ -4333,20 +4539,47 @@ const Controls = ({ container, }) => {
|
|
|
4333
4539
|
const videoTargetDuration = getVideoPositionFromEvent(e.clientX);
|
|
4334
4540
|
setTooltipMargin(newTooltipMargin);
|
|
4335
4541
|
setTooltipLabel(formatDuration(videoTargetDuration));
|
|
4542
|
+
if (isGrabbing) {
|
|
4543
|
+
handleBookmarkUpdate(marginX, progressRef.current.clientWidth);
|
|
4544
|
+
}
|
|
4336
4545
|
}
|
|
4337
4546
|
};
|
|
4547
|
+
const handleBookmarkUpdate = React.useCallback((newX, clientW) => {
|
|
4548
|
+
if (!activeBookmark || !marks)
|
|
4549
|
+
return;
|
|
4550
|
+
const currentObsIndex = marks.findIndex((mark) => mark.id === activeBookmark.id);
|
|
4551
|
+
const value = (newX / clientW) * duration + context.part.start;
|
|
4552
|
+
const updatedMark = Object.assign(Object.assign({}, marks[currentObsIndex]), (!!fromEnd ? { end: value } : { start: value }));
|
|
4553
|
+
const newMarks = [
|
|
4554
|
+
...marks.slice(0, currentObsIndex),
|
|
4555
|
+
updatedMark,
|
|
4556
|
+
...marks.slice(currentObsIndex + 1),
|
|
4557
|
+
];
|
|
4558
|
+
setMarks(newMarks);
|
|
4559
|
+
onBookMarkUpdated === null || onBookMarkUpdated === void 0 ? void 0 : onBookMarkUpdated(updatedMark);
|
|
4560
|
+
}, [
|
|
4561
|
+
activeBookmark,
|
|
4562
|
+
context.part.start,
|
|
4563
|
+
duration,
|
|
4564
|
+
fromEnd,
|
|
4565
|
+
onBookMarkUpdated,
|
|
4566
|
+
marks,
|
|
4567
|
+
]);
|
|
4338
4568
|
React.useEffect(() => {
|
|
4339
4569
|
var _a;
|
|
4340
4570
|
const currentTime = ((_a = context.player) === null || _a === void 0 ? void 0 : _a.currentTime) || 0;
|
|
4341
4571
|
setProgress(getProgress(currentTime));
|
|
4342
|
-
}, [context.player]);
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
return (
|
|
4348
|
-
|
|
4349
|
-
|
|
4572
|
+
}, [context.player, getProgress]);
|
|
4573
|
+
React.useEffect(() => {
|
|
4574
|
+
if (!marks)
|
|
4575
|
+
return;
|
|
4576
|
+
document.addEventListener("mouseup", reset);
|
|
4577
|
+
return () => {
|
|
4578
|
+
document.removeEventListener("mouseup", reset);
|
|
4579
|
+
};
|
|
4580
|
+
}, [reset, marks]);
|
|
4581
|
+
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 })), !!duration &&
|
|
4582
|
+
(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.jsxs(StyledDiv$1, Object.assign({ style: { width: "20%", justifyContent: "start" } }, { children: [jsxRuntime.jsx(AudioButton, {}), jsxRuntime.jsx(TimeLabel, { current: relCurrentTime, duration: duration })] })), jsxRuntime.jsx(ControlsGroupCenter, { style: { width: "60%" } }), jsxRuntime.jsxs(StyledDiv$1, Object.assign({ style: { width: "20%", justifyContent: "end" } }, { children: [jsxRuntime.jsx(Cutter, { onCutHandler: onCutHandler, isCutting: isCutting, i18n: i18n }), jsxRuntime.jsx(FullScreenButton, { container: container })] }))] })] })));
|
|
4350
4583
|
};
|
|
4351
4584
|
|
|
4352
4585
|
var _path$c;
|
|
@@ -4481,6 +4714,7 @@ const Player = React.forwardRef((props, forwardRef) => {
|
|
|
4481
4714
|
const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
4482
4715
|
var _a;
|
|
4483
4716
|
const { context, togglePlay, setIsPlaying } = Video.useVideoContext();
|
|
4717
|
+
const { onCutHandler, bookmarks, isCutting } = props;
|
|
4484
4718
|
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
4485
4719
|
const isLoaded = !!videoRef;
|
|
4486
4720
|
const containerRef = React.useRef(null);
|
|
@@ -4498,8 +4732,8 @@ const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
|
4498
4732
|
});
|
|
4499
4733
|
}
|
|
4500
4734
|
};
|
|
4501
|
-
}, [videoRef]);
|
|
4502
|
-
return (jsxRuntime.jsxs(Container$1, 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 })] })));
|
|
4735
|
+
}, [setIsPlaying, videoRef]);
|
|
4736
|
+
return (jsxRuntime.jsxs(Container$1, 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, i18n: props.i18n }) })] })));
|
|
4503
4737
|
});
|
|
4504
4738
|
|
|
4505
4739
|
const ChatBoxContainer = styled__default["default"].div `
|
|
@@ -4562,7 +4796,7 @@ const CommentBox = (_a) => {
|
|
|
4562
4796
|
const files = Array.from(event.dataTransfer.files).map((file) => {
|
|
4563
4797
|
return Object.assign(file, {
|
|
4564
4798
|
isLoadingMedia: false,
|
|
4565
|
-
|
|
4799
|
+
internalId: uuid.v4(),
|
|
4566
4800
|
});
|
|
4567
4801
|
});
|
|
4568
4802
|
const wrongFiles = files.filter((file) => !/^(image|video)\//.test(file.type));
|
|
@@ -4584,7 +4818,7 @@ const CommentBox = (_a) => {
|
|
|
4584
4818
|
const files = Array.from(event.clipboardData.files).map((file) => {
|
|
4585
4819
|
return Object.assign(file, {
|
|
4586
4820
|
isLoadingMedia: false,
|
|
4587
|
-
|
|
4821
|
+
internalId: uuid.v4(),
|
|
4588
4822
|
});
|
|
4589
4823
|
});
|
|
4590
4824
|
const wrongFiles = files.filter((file) => !/^(image|video)\//.test(file.type));
|
|
@@ -4683,7 +4917,7 @@ const Comment = ({ author, message, children, date, media = [], header, }) => {
|
|
|
4683
4917
|
ref.pause();
|
|
4684
4918
|
}
|
|
4685
4919
|
});
|
|
4686
|
-
}, [videoRefs]);
|
|
4920
|
+
}, [videoRefs, media]);
|
|
4687
4921
|
const ed = react.useEditor({
|
|
4688
4922
|
extensions: ext,
|
|
4689
4923
|
content: message || "",
|
|
@@ -4693,22 +4927,6 @@ const Comment = ({ author, message, children, date, media = [], header, }) => {
|
|
|
4693
4927
|
ed.setOptions({
|
|
4694
4928
|
editable: false,
|
|
4695
4929
|
});
|
|
4696
|
-
// const downloadSelectedMedia = async () => {
|
|
4697
|
-
// try {
|
|
4698
|
-
// const response = await fetch(`${selectedImage.url}?antiCors`);
|
|
4699
|
-
// const blob = await response.blob();
|
|
4700
|
-
// const link = document.createElement("a");
|
|
4701
|
-
// link.href = window.URL.createObjectURL(blob);
|
|
4702
|
-
// link.download =
|
|
4703
|
-
// "media_" + selectedImage.id.toString() || "downloadedFile";
|
|
4704
|
-
// document.body.appendChild(link);
|
|
4705
|
-
// link.click();
|
|
4706
|
-
// window.URL.revokeObjectURL(link.href);
|
|
4707
|
-
// document.body.removeChild(link);
|
|
4708
|
-
// } catch (error) {
|
|
4709
|
-
// console.error("An error occurred while downloading: ", error);
|
|
4710
|
-
// }
|
|
4711
|
-
// };
|
|
4712
4930
|
return (jsxRuntime.jsxs(CommentCard, { children: [jsxRuntime.jsxs(AuthorContainer, { children: [jsxRuntime.jsx(Avatar, Object.assign({ avatarType: (_a = author.avatarType) !== null && _a !== void 0 ? _a : "text", style: { flexShrink: 0 } }, { children: author.avatar })), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs(CommentTitle, { children: [(_b = author.name) !== null && _b !== void 0 ? _b : "User", " ", jsxRuntime.jsx(CommentDate, { children: date })] }), jsxRuntime.jsx(ReadOnly, { children: jsxRuntime.jsx(EditorContainer$1, Object.assign({ editable: false }, { children: jsxRuntime.jsx(react.EditorContent, { editor: ed }) })) })] })] }), jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: media.map((file, index) => {
|
|
4713
4931
|
// Check if item is an image or a video
|
|
4714
4932
|
if (file.type.includes("image"))
|
|
@@ -5364,6 +5582,117 @@ const UgToggle = styled__default["default"](reactForms.Toggle) ``;
|
|
|
5364
5582
|
**/
|
|
5365
5583
|
const Toggle = (props) => jsxRuntime.jsx(UgToggle, Object.assign({}, props));
|
|
5366
5584
|
|
|
5585
|
+
const HighlightContext = React.createContext(null);
|
|
5586
|
+
const HighlightContextProvider = ({ term, children, }) => {
|
|
5587
|
+
const [searchTerm, setsearchTerm] = React.useState(term !== null && term !== void 0 ? term : "");
|
|
5588
|
+
React.useEffect(() => {
|
|
5589
|
+
setsearchTerm(term !== null && term !== void 0 ? term : "");
|
|
5590
|
+
}, [term]);
|
|
5591
|
+
const HighlightContextValue = React.useMemo(() => ({
|
|
5592
|
+
searchTerm,
|
|
5593
|
+
}), [searchTerm]);
|
|
5594
|
+
return (jsxRuntime.jsx(HighlightContext.Provider, Object.assign({ value: HighlightContextValue }, { children: children })));
|
|
5595
|
+
};
|
|
5596
|
+
const useHighlightContext = () => {
|
|
5597
|
+
const context = React.useContext(HighlightContext);
|
|
5598
|
+
if (!context)
|
|
5599
|
+
throw new Error("Provider not found for HighlightContextProvider");
|
|
5600
|
+
return context; // Now we can use the context in the component, SAFELY.
|
|
5601
|
+
};
|
|
5602
|
+
|
|
5603
|
+
const StyledSearchWord = styled__default["default"].span `
|
|
5604
|
+
background-color: ${({ theme }) => theme.palette.product.talk};
|
|
5605
|
+
color: ${({ theme }) => theme.palette.grey[700]};`;
|
|
5606
|
+
const Searchable = ({ start, text, }) => {
|
|
5607
|
+
const { searchTerm } = useHighlightContext();
|
|
5608
|
+
if (searchTerm) {
|
|
5609
|
+
const parts = text.split(new RegExp(`(${searchTerm})`, "gi"));
|
|
5610
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: parts.map((part, index) => part.toLowerCase() === searchTerm.toLowerCase() ? (jsxRuntime.jsx(StyledSearchWord, { children: part }, index)) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: part }))) }));
|
|
5611
|
+
}
|
|
5612
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: text });
|
|
5613
|
+
};
|
|
5614
|
+
|
|
5615
|
+
const StyledWord = styled__default["default"](reactTypography.Span) `
|
|
5616
|
+
font-size: ${({ theme, size }) => theme.fontSizes[size !== null && size !== void 0 ? size : "md"]};
|
|
5617
|
+
padding: ${({ theme }) => theme.space.xxs} 0;
|
|
5618
|
+
|
|
5619
|
+
${({ observation, theme }) => {
|
|
5620
|
+
var _a, _b;
|
|
5621
|
+
return observation &&
|
|
5622
|
+
` user-select: none;
|
|
5623
|
+
padding: 0;
|
|
5624
|
+
background-color: ${(_a = observation.backgroundColor) !== null && _a !== void 0 ? _a : getColor(theme.palette.azure, 700, undefined, 0.5)};
|
|
5625
|
+
color: ${(_b = observation.color) !== null && _b !== void 0 ? _b : "white"};
|
|
5626
|
+
box-sizing: border-box;
|
|
5627
|
+
&:focus {
|
|
5628
|
+
outline: none;
|
|
5629
|
+
}
|
|
5630
|
+
|
|
5631
|
+
+ span:not([observation]) {
|
|
5632
|
+
margin-left: 2px;
|
|
5633
|
+
}
|
|
5634
|
+
`;
|
|
5635
|
+
}}
|
|
5636
|
+
`;
|
|
5637
|
+
const ActiveWord = styled__default["default"].span `
|
|
5638
|
+
background-color: ${({ theme }) => getColor(theme.palette.fuschia, 700, undefined, 0.5)};
|
|
5639
|
+
padding: 0 2px;
|
|
5640
|
+
`;
|
|
5641
|
+
const WordsContainer = styled__default["default"].div `
|
|
5642
|
+
box-sizing: border-box;
|
|
5643
|
+
${StyledWord}, span {
|
|
5644
|
+
&::selection {
|
|
5645
|
+
background-color: ${({ theme }) => getColor(theme.palette.kale, 700, undefined, 0.5)};
|
|
5646
|
+
}
|
|
5647
|
+
}
|
|
5648
|
+
`;
|
|
5649
|
+
/**
|
|
5650
|
+
* Use Highlight to use highlight interation on any text element
|
|
5651
|
+
*/
|
|
5652
|
+
const Highlight = (props) => {
|
|
5653
|
+
const ref = React.useRef(null);
|
|
5654
|
+
const handleSelectionChange = React.useCallback(() => {
|
|
5655
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
5656
|
+
const activeSelection = document.getSelection();
|
|
5657
|
+
const text = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.toString();
|
|
5658
|
+
if (!activeSelection || !text) {
|
|
5659
|
+
return;
|
|
5660
|
+
}
|
|
5661
|
+
const anchorNode = (_a = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
5662
|
+
const focusNode = (_b = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.focusNode) === null || _b === void 0 ? void 0 : _b.parentElement;
|
|
5663
|
+
if (anchorNode &&
|
|
5664
|
+
focusNode &&
|
|
5665
|
+
((_c = ref.current) === null || _c === void 0 ? void 0 : _c.contains(anchorNode)) && // Selection starts inside the ref
|
|
5666
|
+
((_d = ref.current) === null || _d === void 0 ? void 0 : _d.contains(focusNode)) // Selection ends inside the ref
|
|
5667
|
+
) {
|
|
5668
|
+
const selectionPart = {
|
|
5669
|
+
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")),
|
|
5670
|
+
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")),
|
|
5671
|
+
};
|
|
5672
|
+
(_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 }));
|
|
5673
|
+
}
|
|
5674
|
+
}, [props]);
|
|
5675
|
+
React.useEffect(() => {
|
|
5676
|
+
if (ref.current === null)
|
|
5677
|
+
return;
|
|
5678
|
+
document.addEventListener("selectionchange", handleSelectionChange);
|
|
5679
|
+
return () => {
|
|
5680
|
+
document.removeEventListener("selectionchange", handleSelectionChange);
|
|
5681
|
+
};
|
|
5682
|
+
}, [ref, props, handleSelectionChange]);
|
|
5683
|
+
return (jsxRuntime.jsx(HighlightContextProvider, Object.assign({ term: props.search }, { children: jsxRuntime.jsx(WordsContainer, Object.assign({ ref: ref }, { children: props.children })) })));
|
|
5684
|
+
};
|
|
5685
|
+
const Word = (props) => {
|
|
5686
|
+
var _a;
|
|
5687
|
+
const isActive = props.currentTime &&
|
|
5688
|
+
props.currentTime >= props.start &&
|
|
5689
|
+
props.currentTime < props.end;
|
|
5690
|
+
// Is there an observation that contains this word?
|
|
5691
|
+
const observation = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.find((obs) => props.start >= obs.start && props.end <= obs.end);
|
|
5692
|
+
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: jsxRuntime.jsx(Searchable, { start: props.start, text: props.text }) })) : (jsxRuntime.jsx(Searchable, { start: props.start, text: props.text })), " "] })));
|
|
5693
|
+
};
|
|
5694
|
+
Highlight.Word = Word;
|
|
5695
|
+
|
|
5367
5696
|
/**
|
|
5368
5697
|
* The Dots loader communicates ongoing activity after a user takes an action.
|
|
5369
5698
|
* It tells them that something is taking place.
|
|
@@ -6840,6 +7169,7 @@ exports.HeaderItem = HeaderItem;
|
|
|
6840
7169
|
exports.HeaderItemIcon = HeaderItemIcon;
|
|
6841
7170
|
exports.HeaderItemText = HeaderItemText;
|
|
6842
7171
|
exports.HeaderRow = HeaderRow;
|
|
7172
|
+
exports.Highlight = Highlight;
|
|
6843
7173
|
exports.Hint = Hint;
|
|
6844
7174
|
exports.Icon = Icon;
|
|
6845
7175
|
exports.IconButton = IconButton;
|