@appquality/unguess-design-system 3.1.66 → 3.1.67-bookmarks

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/build/index.d.ts +1 -0
  3. package/build/index.js +554 -352
  4. package/build/stories/buttons/button/index.stories.d.ts +0 -1
  5. package/build/stories/buttons/utils.d.ts +27 -27
  6. package/build/stories/chat/_types.d.ts +5 -1
  7. package/build/stories/chat/context/chatContext.d.ts +2 -2
  8. package/build/stories/chat/index.stories.d.ts +0 -1
  9. package/build/stories/chat/parts/extensions.d.ts +1 -1
  10. package/build/stories/dropdowns/select/index.stories.d.ts +0 -1
  11. package/build/stories/editor/index.stories.d.ts +0 -1
  12. package/build/stories/highlight/_types.d.ts +36 -0
  13. package/build/stories/highlight/index.d.ts +10 -0
  14. package/build/stories/highlight/index.stories.d.ts +16 -0
  15. package/build/stories/player/_types.d.ts +11 -0
  16. package/build/stories/player/index.stories.d.ts +1 -2
  17. package/build/stories/player/parts/bookmark.d.ts +2 -0
  18. package/build/stories/player/parts/controls.d.ts +5 -2
  19. package/build/stories/player/parts/controlsCenterGroup.d.ts +4 -1
  20. package/build/stories/profile-modal/_types.d.ts +16 -0
  21. package/build/stories/profile-modal/{UserContainer.d.ts → components/UserContainer.d.ts} +1 -1
  22. package/build/stories/profile-modal/{menuItem.d.ts → components/menuItem.d.ts} +1 -1
  23. package/build/stories/profile-modal/{previousMenuButton.d.ts → components/previousMenuButton.d.ts} +1 -1
  24. package/build/stories/profile-modal/{helpMenuItem.d.ts → items/helpMenuItem.d.ts} +1 -1
  25. package/build/stories/profile-modal/{languageMenuItem.d.ts → items/languageMenuItem.d.ts} +1 -1
  26. package/build/stories/profile-modal/items/settingsMenuItem.d.ts +21 -0
  27. package/package.json +3 -2
  28. package/build/stories/chat/parts/editorButton.d.ts +0 -5
  29. /package/build/stories/profile-modal/{menuItemIcon.d.ts → components/menuItemIcon.d.ts} +0 -0
package/build/index.js CHANGED
@@ -837,48 +837,48 @@ Tag.Avatar = StyledAvatar;
837
837
  Tag.Close = StyledClose;
838
838
  Tag.SecondaryText = StyledSpan;
839
839
 
840
- var _path$y;
841
- 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); }
842
- const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
840
+ var _path$z;
841
+ 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); }
842
+ const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
843
843
  width: 24,
844
844
  height: 24,
845
845
  viewBox: "0 0 24 24",
846
846
  fill: "none",
847
847
  xmlns: "http://www.w3.org/2000/svg"
848
- }, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
848
+ }, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
849
849
  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",
850
850
  fill: "#E80C7A"
851
851
  })));
852
852
 
853
- var _path$x;
854
- 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); }
855
- const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
853
+ var _path$y;
854
+ 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); }
855
+ const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
856
856
  width: 24,
857
857
  height: 24,
858
858
  viewBox: "0 0 24 24",
859
859
  fill: "none",
860
860
  xmlns: "http://www.w3.org/2000/svg"
861
- }, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
861
+ }, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
862
862
  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",
863
863
  fill: "#FFCD1A"
864
864
  })));
865
865
 
866
- var _path$w;
867
- 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); }
868
- const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
866
+ var _path$x;
867
+ 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); }
868
+ const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
869
869
  width: 24,
870
870
  height: 24,
871
871
  viewBox: "0 0 24 24",
872
872
  fill: "none",
873
873
  xmlns: "http://www.w3.org/2000/svg"
874
- }, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
874
+ }, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
875
875
  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",
876
876
  fill: "#7B0DFF"
877
877
  })));
878
878
 
879
- var _rect$4, _path$v, _path2$b, _path3$4;
880
- 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); }
881
- const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
879
+ var _rect$4, _path$w, _path2$b, _path3$4;
880
+ 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); }
881
+ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
882
882
  width: 24,
883
883
  height: 24,
884
884
  viewBox: "0 0 24 24",
@@ -889,7 +889,7 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
889
889
  height: 24,
890
890
  rx: 12,
891
891
  fill: "#F6F6F8"
892
- })), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
892
+ })), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
893
893
  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",
894
894
  fill: "#50BF95"
895
895
  })), _path2$b || (_path2$b = /*#__PURE__*/React__namespace.createElement("path", {
@@ -900,9 +900,9 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
900
900
  fill: "#007345"
901
901
  })));
902
902
 
903
- var _rect$3, _path$u, _path2$a;
904
- 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); }
905
- const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
903
+ var _rect$3, _path$v, _path2$a;
904
+ 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); }
905
+ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
906
906
  width: 24,
907
907
  height: 24,
908
908
  viewBox: "0 0 24 24",
@@ -913,7 +913,7 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
913
913
  height: 24,
914
914
  rx: 12,
915
915
  fill: "#F6F6F8"
916
- })), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
916
+ })), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
917
917
  fillRule: "evenodd",
918
918
  clipRule: "evenodd",
919
919
  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",
@@ -925,9 +925,9 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
925
925
  fill: "#F4AC1A"
926
926
  })));
927
927
 
928
- var _rect$2, _path$t, _path2$9;
929
- 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); }
930
- const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
928
+ var _rect$2, _path$u, _path2$9;
929
+ 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); }
930
+ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
931
931
  width: 24,
932
932
  height: 24,
933
933
  viewBox: "0 0 24 24",
@@ -938,7 +938,7 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
938
938
  height: 24,
939
939
  rx: 12,
940
940
  fill: "#F6F6F8"
941
- })), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
941
+ })), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
942
942
  d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
943
943
  stroke: "#024780",
944
944
  strokeWidth: 1.5,
@@ -952,9 +952,9 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
952
952
  strokeLinejoin: "round"
953
953
  })));
954
954
 
955
- var _rect$1, _path$s, _path2$8, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
956
- 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); }
957
- const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
955
+ var _rect$1, _path$t, _path2$8, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
956
+ function _extends$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); }
957
+ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
958
958
  width: 24,
959
959
  height: 24,
960
960
  viewBox: "0 0 24 24",
@@ -965,7 +965,7 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
965
965
  height: 24,
966
966
  rx: 12,
967
967
  fill: "#F6F6F8"
968
- })), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
968
+ })), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
969
969
  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",
970
970
  fill: "#D1820A"
971
971
  })), _path2$8 || (_path2$8 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -997,9 +997,9 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
997
997
  fill: "#FFB65A"
998
998
  })));
999
999
 
1000
- var _g$b, _path$r, _path2$7, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
1001
- 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); }
1002
- const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
1000
+ var _g$b, _path$s, _path2$7, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
1001
+ 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); }
1002
+ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
1003
1003
  width: 24,
1004
1004
  height: 24,
1005
1005
  viewBox: "0 0 24 24",
@@ -1011,7 +1011,7 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
1011
1011
  opacity: 0.3,
1012
1012
  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",
1013
1013
  fill: "#50BF95"
1014
- }))), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
1014
+ }))), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
1015
1015
  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",
1016
1016
  fill: "#2B8473",
1017
1017
  stroke: "#2B8473"
@@ -1067,9 +1067,9 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
1067
1067
  fill: "#ECF4F2"
1068
1068
  })));
1069
1069
 
1070
- var _g$a, _path$q;
1071
- 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); }
1072
- const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
1070
+ var _g$a, _path$r;
1071
+ 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); }
1072
+ const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
1073
1073
  width: 24,
1074
1074
  height: 24,
1075
1075
  viewBox: "0 0 24 24",
@@ -1081,7 +1081,7 @@ const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createEleme
1081
1081
  opacity: 0.3,
1082
1082
  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",
1083
1083
  fill: "#003A57"
1084
- }))), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
1084
+ }))), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
1085
1085
  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",
1086
1086
  fill: "#003A57"
1087
1087
  })));
@@ -1943,8 +1943,8 @@ const WaffleChart = ({ height, width, data, total, tooltip, }) => {
1943
1943
  };
1944
1944
 
1945
1945
  var _g$9, _defs$4;
1946
- 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); }
1947
- const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
1946
+ 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); }
1947
+ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
1948
1948
  width: 27,
1949
1949
  height: 26,
1950
1950
  viewBox: "0 0 27 26",
@@ -1967,8 +1967,8 @@ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg"
1967
1967
  })))));
1968
1968
 
1969
1969
  var _g$8, _defs$3;
1970
- 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); }
1971
- const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
1970
+ 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); }
1971
+ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
1972
1972
  width: 27,
1973
1973
  height: 26,
1974
1974
  viewBox: "0 0 27 26",
@@ -1991,8 +1991,8 @@ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg"
1991
1991
  })))));
1992
1992
 
1993
1993
  var _g$7, _defs$2;
1994
- 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); }
1995
- const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
1994
+ 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); }
1995
+ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
1996
1996
  width: 27,
1997
1997
  height: 26,
1998
1998
  viewBox: "0 0 27 26",
@@ -2021,8 +2021,8 @@ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg"
2021
2021
  })))));
2022
2022
 
2023
2023
  var _g$6, _defs$1;
2024
- 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); }
2025
- const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
2024
+ 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); }
2025
+ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
2026
2026
  width: 27,
2027
2027
  height: 26,
2028
2028
  viewBox: "0 0 27 26",
@@ -2051,8 +2051,8 @@ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg"
2051
2051
  })))));
2052
2052
 
2053
2053
  var _g$5, _defs;
2054
- 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); }
2055
- const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
2054
+ 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); }
2055
+ const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
2056
2056
  width: 26,
2057
2057
  height: 26,
2058
2058
  viewBox: "0 0 26 26",
@@ -2283,8 +2283,9 @@ const SentimentChart = ({ data, width, height, margin, tooltip, i18n, }) => {
2283
2283
  const ShortcutContainer = styled__default["default"].div `
2284
2284
  display: flex;
2285
2285
  flex-direction: row;
2286
- padding: ${({ theme }) => `${theme.space.sm} ${theme.space.base * 4}px`};
2286
+ padding: ${({ theme }) => `0 ${theme.space.base * 4}px`};
2287
2287
  background-color: ${({ theme }) => theme.palette.grey[100]};
2288
+ font-size: ${({ theme }) => theme.fontSizes.sm};
2288
2289
  `;
2289
2290
  const Text$1 = styled__default["default"](reactTypography.SM) `
2290
2291
  line-height: 1.7;
@@ -2296,7 +2297,7 @@ const SendShortcut = ({ saveText }) => {
2296
2297
  const Footer$4 = styled__default["default"].div `
2297
2298
  display: flex;
2298
2299
  flex-direction: row;
2299
- padding: ${({ theme }) => `${theme.space.sm} 0px`};
2300
+ padding: ${({ theme }) => `${theme.space.xs} 0px ${theme.space.sm}`};
2300
2301
  align-items: center;
2301
2302
  margin: ${({ theme }) => `0 -${theme.space.base * 4}px`};
2302
2303
  justify-content: ${({ showShortcut }) => showShortcut ? "space-between" : "flex-end"};
@@ -2318,7 +2319,8 @@ const ChatContextProvider = ({ onSave, setMentionableUsers, children, }) => {
2318
2319
  if (!result.some((r) => r.id === node.attrs.id))
2319
2320
  result.push({
2320
2321
  id: node.attrs.id,
2321
- name: node.attrs.name
2322
+ name: node.attrs.name,
2323
+ email: node.attrs.email
2322
2324
  });
2323
2325
  }
2324
2326
  });
@@ -2328,7 +2330,7 @@ const ChatContextProvider = ({ onSave, setMentionableUsers, children, }) => {
2328
2330
  editor,
2329
2331
  setEditor,
2330
2332
  triggerSave: () => {
2331
- if (editor && onSave) {
2333
+ if (editor && onSave && !editor.isEmpty) {
2332
2334
  onSave(editor, getMentions(editor));
2333
2335
  editor.commands.clearContent();
2334
2336
  }
@@ -2642,14 +2644,17 @@ const EditorContainer$1 = styled__default["default"](reactForms.FauxInput) `
2642
2644
  : `
2643
2645
  margin-left: ${theme.space.sm};
2644
2646
  padding: ${`${theme.space.xxs} ${theme.space.xs}`};
2647
+
2648
+ .ProseMirror {
2649
+ min-height: 36px;
2650
+ outline: none;
2651
+ max-height: 210px;
2652
+ overflow-y: auto;
2653
+ }
2645
2654
  `}
2646
2655
 
2647
2656
  .ProseMirror {
2648
2657
  background-color: transparent;
2649
- min-height: 36px;
2650
- outline: none;
2651
- max-height: 210px;
2652
- overflow-y: auto;
2653
2658
 
2654
2659
  ${editorStyle}
2655
2660
  }
@@ -2666,28 +2671,28 @@ const ChatTitle = styled__default["default"](Title$1) `
2666
2671
  padding: ${({ theme }) => `${theme.space.sm} ${theme.space.md}`};
2667
2672
  `;
2668
2673
 
2669
- var _path$p;
2670
- 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); }
2671
- const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
2674
+ var _path$q;
2675
+ 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); }
2676
+ const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
2672
2677
  xmlns: "http://www.w3.org/2000/svg",
2673
2678
  width: 16,
2674
2679
  height: 16,
2675
2680
  focusable: "false",
2676
2681
  viewBox: "0 0 16 16"
2677
- }, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
2682
+ }, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
2678
2683
  fill: "currentColor",
2679
2684
  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"
2680
2685
  })));
2681
2686
 
2682
- var _path$o;
2683
- 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); }
2684
- const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
2687
+ var _path$p;
2688
+ 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); }
2689
+ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
2685
2690
  xmlns: "http://www.w3.org/2000/svg",
2686
2691
  width: 16,
2687
2692
  height: 16,
2688
2693
  focusable: "false",
2689
2694
  viewBox: "0 0 16 16"
2690
- }, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
2695
+ }, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
2691
2696
  fill: "none",
2692
2697
  stroke: "currentColor",
2693
2698
  strokeLinecap: "round",
@@ -2695,15 +2700,15 @@ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg"
2695
2700
  d: "M8 1h3M9.5 1l-3 14M5 15h3"
2696
2701
  })));
2697
2702
 
2698
- var _path$n, _path2$6;
2699
- 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); }
2700
- const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
2703
+ var _path$o, _path2$6;
2704
+ 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); }
2705
+ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
2701
2706
  xmlns: "http://www.w3.org/2000/svg",
2702
2707
  width: 16,
2703
2708
  height: 16,
2704
2709
  focusable: "false",
2705
2710
  viewBox: "0 0 16 16"
2706
- }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
2711
+ }, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
2707
2712
  fill: "currentColor",
2708
2713
  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"
2709
2714
  })), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -2715,8 +2720,8 @@ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg",
2715
2720
  })));
2716
2721
 
2717
2722
  var _g$4;
2718
- 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); }
2719
- const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
2723
+ 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); }
2724
+ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
2720
2725
  xmlns: "http://www.w3.org/2000/svg",
2721
2726
  width: 16,
2722
2727
  height: 16,
@@ -2743,8 +2748,8 @@ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
2743
2748
  }))));
2744
2749
 
2745
2750
  var _g$3;
2746
- 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); }
2747
- const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
2751
+ 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); }
2752
+ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
2748
2753
  xmlns: "http://www.w3.org/2000/svg",
2749
2754
  width: 16,
2750
2755
  height: 16,
@@ -2771,8 +2776,8 @@ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
2771
2776
  }))));
2772
2777
 
2773
2778
  var _g$2;
2774
- 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); }
2775
- const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
2779
+ 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); }
2780
+ const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
2776
2781
  xmlns: "http://www.w3.org/2000/svg",
2777
2782
  width: 16,
2778
2783
  height: 16,
@@ -2845,15 +2850,15 @@ const Tooltip = styled__default["default"](TooltipComponent) `
2845
2850
  box-shadow: ${({ theme }) => theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColor("neutralHue", 600, theme, 0.15))};
2846
2851
  `;
2847
2852
 
2848
- var _path$m;
2849
- 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); }
2850
- const SvgAtFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
2853
+ var _path$n;
2854
+ 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); }
2855
+ const SvgAtFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
2851
2856
  xmlns: "http://www.w3.org/2000/svg",
2852
2857
  width: 16,
2853
2858
  height: 16,
2854
2859
  focusable: "false",
2855
2860
  viewBox: "0 0 16 16"
2856
- }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
2861
+ }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
2857
2862
  fill: "none",
2858
2863
  stroke: "currentColor",
2859
2864
  strokeLinecap: "round",
@@ -2861,9 +2866,25 @@ const SvgAtFill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
2861
2866
  d: "M11 5v3h0a3 3 0 01-3 3h0a3 3 0 01-3-3h0a3 3 0 013-3h0a3 3 0 013 3h0v1a2 2 0 002 2h0a2 2 0 002-2V8h0a7 7 0 00-7-7h0a7 7 0 00-7 7h0a7 7 0 007 7h2.8"
2862
2867
  })));
2863
2868
 
2864
- const EditorButton = ({ editor, type, }) => {
2865
- const isActive = editor.isActive(type);
2866
- const getIcon = () => {
2869
+ const MenuContainer = styled__default["default"].div `
2870
+ padding: ${({ theme }) => theme.space.xs} 0;
2871
+ display: flex;
2872
+ flex-direction: row;
2873
+ justify-content: flex-start;
2874
+ align-items: center;
2875
+ gap: ${({ theme }) => theme.space.xxs};
2876
+ `;
2877
+ const VerticalDivider = styled__default["default"].div `
2878
+ width: 2px;
2879
+ height: 24px;
2880
+ background-color: ${({ theme }) => theme.palette.grey[300]};
2881
+ margin: 0 ${({ theme }) => theme.space.xs};
2882
+ `;
2883
+ const CommentBar = ({ editor, i18n, }) => {
2884
+ var _a, _b, _c, _d, _e, _f;
2885
+ if (!editor)
2886
+ return null;
2887
+ const getIcon = (type) => {
2867
2888
  switch (type) {
2868
2889
  case "bold":
2869
2890
  return jsxRuntime.jsx(SvgBoldFill, {});
@@ -2871,9 +2892,11 @@ const EditorButton = ({ editor, type, }) => {
2871
2892
  return jsxRuntime.jsx(SvgItalicFill, {});
2872
2893
  case "mention":
2873
2894
  return jsxRuntime.jsx(SvgAtFill, {});
2895
+ default:
2896
+ return null;
2874
2897
  }
2875
2898
  };
2876
- const handleClick = () => {
2899
+ const handleClick = (type) => {
2877
2900
  switch (type) {
2878
2901
  case "bold":
2879
2902
  return editor.chain().focus().toggleBold().run();
@@ -2882,30 +2905,12 @@ const EditorButton = ({ editor, type, }) => {
2882
2905
  case "mention":
2883
2906
  const { from } = editor.state.selection;
2884
2907
  const char = from > 1 ? " @" : "@";
2885
- return editor.commands.insertContent(char);
2908
+ return editor.chain().focus().insertContent(char).run();
2909
+ default:
2910
+ return;
2886
2911
  }
2887
2912
  };
2888
- return (jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !isActive, isPrimary: isActive, onClick: handleClick }, { children: getIcon() })));
2889
- };
2890
-
2891
- const MenuContainer = styled__default["default"].div `
2892
- padding: ${({ theme }) => theme.space.xxs} 0;
2893
- display: flex;
2894
- flex-direction: row;
2895
- justify-content: flex-start;
2896
- align-items: center;
2897
- `;
2898
- const VerticalDivider = styled__default["default"].div `
2899
- width: 2px;
2900
- height: 24px;
2901
- background-color: ${({ theme }) => theme.palette.grey[300]};
2902
- margin: 0 ${({ theme }) => theme.space.xs};
2903
- `;
2904
- const CommentBar = ({ editor, i18n, }) => {
2905
- var _a, _b, _c, _d, _e, _f;
2906
- if (!editor)
2907
- return null;
2908
- return (jsxRuntime.jsxs(MenuContainer, { children: [jsxRuntime.jsx(Tooltip, Object.assign({ content: (_b = (_a = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _a === void 0 ? void 0 : _a.bold) !== null && _b !== void 0 ? _b : "Bold text", placement: "top", type: "light", size: "small" }, { children: jsxRuntime.jsx(EditorButton, { editor: editor, type: "bold" }) })), jsxRuntime.jsx(Tooltip, Object.assign({ content: (_d = (_c = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _c === void 0 ? void 0 : _c.italic) !== null && _d !== void 0 ? _d : "Italic text", placement: "top", type: "light", size: "small" }, { children: jsxRuntime.jsx(EditorButton, { editor: editor, type: "italic" }) })), jsxRuntime.jsx(VerticalDivider, {}), jsxRuntime.jsx(Tooltip, Object.assign({ content: (_f = (_e = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _e === void 0 ? void 0 : _e.mention) !== null && _f !== void 0 ? _f : "Add a mention", placement: "top", type: "light", size: "small" }, { children: jsxRuntime.jsx(EditorButton, { editor: editor, type: "mention" }) }))] }));
2913
+ return (jsxRuntime.jsxs(MenuContainer, Object.assign({ id: "menu-container" }, { children: [jsxRuntime.jsx(Tooltip, Object.assign({ content: `${(_b = (_a = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _a === void 0 ? void 0 : _a.bold) !== null && _b !== void 0 ? _b : "Bold text"} ${isMac() ? "Cmd" : "Ctrl"} + B`, placement: "top", type: "light", size: "small", hasArrow: false }, { children: jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !editor.isActive("bold"), isPrimary: editor.isActive("bold"), isPill: false, onClick: () => handleClick("bold") }, { children: getIcon("bold") })) })), jsxRuntime.jsx(Tooltip, Object.assign({ content: `${(_d = (_c = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _c === void 0 ? void 0 : _c.italic) !== null && _d !== void 0 ? _d : "Italic text"} ${isMac() ? "Cmd" : "Ctrl"} + I`, placement: "top", type: "light", size: "small", hasArrow: false }, { children: jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !editor.isActive("italic"), isPrimary: editor.isActive("italic"), isPill: false, onClick: () => handleClick("italic") }, { children: getIcon("italic") })) })), jsxRuntime.jsx(VerticalDivider, {}), jsxRuntime.jsx(Tooltip, Object.assign({ content: (_f = (_e = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _e === void 0 ? void 0 : _e.mention) !== null && _f !== void 0 ? _f : "Add a mention", placement: "top", type: "light", size: "small", hasArrow: false }, { children: jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !editor.isActive("mention"), isPrimary: editor.isActive("mention"), isPill: false, onClick: () => handleClick("mention") }, { children: getIcon("mention") })) }))] })));
2909
2914
  };
2910
2915
 
2911
2916
  const CustomMention = Mention__default["default"].extend({
@@ -2985,9 +2990,27 @@ const Item$2 = styled.styled(Button) `
2985
2990
  align-items: flex-start;
2986
2991
  justify-content: center;
2987
2992
  flex-direction: column;
2993
+
2994
+ ${({ isActive }) => isActive &&
2995
+ `
2996
+ background-color: ${getColor(theme.colors.primaryHue, 600, undefined, 0.2)};
2997
+ `}
2998
+ `;
2999
+ const EmptyList = styled.styled.div `
3000
+ max-height: 100px;
3001
+ max-width:280px;
3002
+ padding: ${({ theme }) => `${theme.space.xxs} ${theme.space.md}`};
2988
3003
  `;
3004
+ const EmptyMention = ({ content }) => {
3005
+ return (jsxRuntime.jsx(EmptyList, { children: jsxRuntime.jsx(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: content })) }));
3006
+ };
2989
3007
  const MentionList = React.forwardRef((props, ref) => {
3008
+ var _a, _b;
3009
+ const { editor } = props;
3010
+ const { options } = editor;
3011
+ const { i18n } = options;
2990
3012
  const [selectedIndex, setSelectedIndex] = React.useState(0);
3013
+ const selectedRef = React.useRef(null);
2991
3014
  const selectItem = (index) => {
2992
3015
  const item = props.items[index];
2993
3016
  if (item) {
@@ -3004,6 +3027,11 @@ const MentionList = React.forwardRef((props, ref) => {
3004
3027
  selectItem(selectedIndex);
3005
3028
  };
3006
3029
  React.useEffect(() => setSelectedIndex(0), [props.items]);
3030
+ React.useEffect(() => {
3031
+ if (selectedRef.current) {
3032
+ selectedRef.current.scrollIntoView({ behavior: "smooth" });
3033
+ }
3034
+ }, [selectedIndex]);
3007
3035
  React.useImperativeHandle(ref, () => ({
3008
3036
  onKeyDown: ({ event }) => {
3009
3037
  if (event.key === "ArrowUp") {
@@ -3021,7 +3049,7 @@ const MentionList = React.forwardRef((props, ref) => {
3021
3049
  return false;
3022
3050
  },
3023
3051
  }));
3024
- return (jsxRuntime.jsx("div", Object.assign({ className: "items" }, { children: jsxRuntime.jsx(StyledCard$1, { children: jsxRuntime.jsx(List, { children: props.items.length ? (props.items.map((item, index) => (jsxRuntime.jsx("div", Object.assign({ className: index === selectedIndex ? 'selected' : '' }, { children: jsxRuntime.jsx(Item$2, Object.assign({ isBasic: true, isStretched: true, isAccent: true, isPill: false, onClick: () => selectItem(index) }, { children: jsxRuntime.jsx(MD, Object.assign({ isBold: true, style: { color: theme.palette.black } }, { children: item.name })) }), index) }))))) : (jsxRuntime.jsx("div", Object.assign({ className: "item" }, { children: "No result" }))) }) }) })));
3052
+ return (jsxRuntime.jsx("div", Object.assign({ className: "items" }, { children: jsxRuntime.jsx(StyledCard$1, { children: jsxRuntime.jsx(List, { children: props.items.length ? (props.items.map((item, index) => (jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(Item$2, Object.assign({ ref: index === selectedIndex ? selectedRef : undefined, isBasic: true, isStretched: true, isAccent: true, isPill: false, isActive: index === selectedIndex, onClick: () => selectItem(index) }, { children: [jsxRuntime.jsx(MD, Object.assign({ style: { color: theme.palette.grey[800] } }, { children: item.name })), jsxRuntime.jsx(SM, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: item.email }))] }), index) })))) : (jsxRuntime.jsx(EmptyMention, { content: (_b = (_a = i18n === null || i18n === void 0 ? void 0 : i18n.mention) === null || _a === void 0 ? void 0 : _a.noResults) !== null && _b !== void 0 ? _b : "No results" })) }) }) })));
3025
3053
  });
3026
3054
 
3027
3055
  /**
@@ -3140,7 +3168,7 @@ const ChatBoxContainer = styled__default["default"].div `
3140
3168
  */
3141
3169
  const CommentBox = (_a) => {
3142
3170
  var { placeholderOptions } = _a, props = __rest(_a, ["placeholderOptions"]);
3143
- const { children, hasInlineMenu, hasButtonsMenu, bubbleOptions, i18n } = props;
3171
+ const { children, hasFloatingMenu, hasButtonsMenu, bubbleOptions, i18n } = props;
3144
3172
  const { editor, setEditor, mentionableUsers, triggerSave } = useChatContext();
3145
3173
  const ext = editorExtensions({ placeholderOptions, mentionableUsers });
3146
3174
  const ed = react.useEditor(Object.assign({ extensions: ext, content: children || "", editorProps: {
@@ -3159,8 +3187,9 @@ const CommentBox = (_a) => {
3159
3187
  };
3160
3188
  if (!ed)
3161
3189
  return null;
3190
+ ed.on("create", ({ editor }) => setEditor(editor));
3162
3191
  ed.on("update", ({ editor }) => setEditor(editor));
3163
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasInlineMenu && (jsxRuntime.jsx(FloatingMenu, { editor: ed, tippyOptions: Object.assign({}, bubbleOptions) })), jsxRuntime.jsx(ChatBoxContainer, { children: jsxRuntime.jsx(EditorContainer$1, Object.assign({ editable: true, style: { marginLeft: 0 } }, { children: jsxRuntime.jsx(react.EditorContent, { editor: ed, onKeyDown: onKeyDown }) })) }), hasButtonsMenu && jsxRuntime.jsx(CommentBar, { editor: ed, i18n: i18n })] }));
3192
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ChatBoxContainer, { children: jsxRuntime.jsxs(EditorContainer$1, Object.assign({ editable: true, style: { marginLeft: 0 } }, { children: [hasFloatingMenu && (jsxRuntime.jsx(FloatingMenu, { editor: ed, tippyOptions: Object.assign({}, bubbleOptions) })), jsxRuntime.jsx(react.EditorContent, { editor: ed, onKeyDown: onKeyDown })] })) }), hasButtonsMenu && jsxRuntime.jsx(CommentBar, { editor: ed, i18n: i18n })] }));
3164
3193
  };
3165
3194
 
3166
3195
  const CommentCard = styled.styled(Card) `
@@ -3243,8 +3272,8 @@ const UgClose$1 = styled__default["default"](reactNotifications.Close) `
3243
3272
  const Close = (props) => jsxRuntime.jsx(UgClose$1, Object.assign({}, props));
3244
3273
 
3245
3274
  var _circle;
3246
- 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); }
3247
- const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
3275
+ 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); }
3276
+ const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
3248
3277
  xmlns: "http://www.w3.org/2000/svg",
3249
3278
  width: 16,
3250
3279
  height: 16,
@@ -3671,8 +3700,8 @@ const Hint = styled__default["default"](reactForms.Hint) ``;
3671
3700
  const Input = React.forwardRef((props, ref) => jsxRuntime.jsx(UgInput, Object.assign({ ref: ref }, props)));
3672
3701
 
3673
3702
  var _g$1;
3674
- 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); }
3675
- const SvgNotesStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
3703
+ 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); }
3704
+ const SvgNotesStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
3676
3705
  xmlns: "http://www.w3.org/2000/svg",
3677
3706
  width: 16,
3678
3707
  height: 16,
@@ -3790,15 +3819,15 @@ const UgRadio = styled__default["default"](reactForms.Radio) ``;
3790
3819
  **/
3791
3820
  const Radio = (props) => jsxRuntime.jsx(UgRadio, Object.assign({}, props));
3792
3821
 
3793
- var _path$l;
3794
- 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); }
3795
- const SvgCheckLg = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
3822
+ var _path$m;
3823
+ 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); }
3824
+ const SvgCheckLg = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
3796
3825
  width: 16,
3797
3826
  height: 16,
3798
3827
  viewBox: "0 0 16 16",
3799
3828
  fill: "#68737D",
3800
3829
  xmlns: "http://www.w3.org/2000/svg"
3801
- }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
3830
+ }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
3802
3831
  fillRule: "evenodd",
3803
3832
  clipRule: "evenodd",
3804
3833
  d: "M14.6464 2.64645C14.8417 2.45118 15.1583 2.45118 15.3536 2.64645C15.5488 2.84171 15.5488 3.15829 15.3536 3.35355L5.35355 13.3536C5.15829 13.5488 4.84171 13.5488 4.64645 13.3536L0.646447 9.35355C0.451184 9.15829 0.451184 8.84171 0.646447 8.64645C0.841709 8.45118 1.15829 8.45118 1.35355 8.64645L5 12.2929L14.6464 2.64645Z"
@@ -3883,6 +3912,98 @@ const UgGrid = styled__default["default"](reactGrid.Grid) `
3883
3912
  */
3884
3913
  const Grid = (props) => jsxRuntime.jsx(UgGrid, Object.assign({}, props));
3885
3914
 
3915
+ const StyledWord = styled__default["default"](reactTypography.Span) `
3916
+ font-size: ${({ theme, size }) => theme.fontSizes[size !== null && size !== void 0 ? size : "md"]};
3917
+ padding: ${({ theme }) => theme.space.xxs} 0;
3918
+
3919
+ ${({ observation, theme }) => {
3920
+ var _a, _b;
3921
+ return observation &&
3922
+ `
3923
+ user-select: none;
3924
+ background-color: ${(_a = observation.backgroundColor) !== null && _a !== void 0 ? _a : getColor(theme.palette.azure, 700, undefined, 0.5)};
3925
+ color: ${(_b = observation.color) !== null && _b !== void 0 ? _b : "white"};
3926
+ padding: 0 2px;
3927
+
3928
+ &:focus {
3929
+ outline: none;
3930
+ }
3931
+
3932
+ + span:not([observation]) {
3933
+ margin-left: 2px;
3934
+ }
3935
+ `;
3936
+ }}
3937
+ `;
3938
+ const ActiveWord = styled__default["default"].span `
3939
+ background-color: ${({ theme }) => getColor(theme.palette.fuschia, 700, undefined, 0.5)};
3940
+ border-radius: ${({ theme }) => theme.borderRadii.lg};
3941
+ padding: 0 2px;
3942
+ `;
3943
+ const WordsContainer = styled__default["default"].div `
3944
+ ${StyledWord}, span {
3945
+ &::selection {
3946
+ background-color: ${({ theme }) => getColor(theme.palette.kale, 700, undefined, 0.5)};
3947
+ }
3948
+ }
3949
+
3950
+ observation:first-of-type {
3951
+ border-top-left-radius: ${({ theme }) => theme.borderRadii.lg};
3952
+ border-bottom-left-radius: ${({ theme }) => theme.borderRadii.lg};
3953
+ }
3954
+
3955
+ observation:last-of-type {
3956
+ border-top-right-radius: ${({ theme }) => theme.borderRadii.lg};
3957
+ border-bottom-right-radius: ${({ theme }) => theme.borderRadii.lg};
3958
+ }
3959
+ `;
3960
+ /**
3961
+ * Use Highlight to use highlight interation on any text element
3962
+ */
3963
+ const Highlight = (props) => {
3964
+ const ref = React.useRef(null);
3965
+ const handleSelectionChange = React.useCallback(() => {
3966
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3967
+ const activeSelection = document.getSelection();
3968
+ const text = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.toString();
3969
+ if (!activeSelection || !text) {
3970
+ return;
3971
+ }
3972
+ const anchorNode = (_a = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement;
3973
+ const focusNode = (_b = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.focusNode) === null || _b === void 0 ? void 0 : _b.parentElement;
3974
+ if (anchorNode &&
3975
+ focusNode &&
3976
+ ((_c = ref.current) === null || _c === void 0 ? void 0 : _c.contains(anchorNode)) && // Selection starts inside the ref
3977
+ ((_d = ref.current) === null || _d === void 0 ? void 0 : _d.contains(focusNode)) // Selection ends inside the ref
3978
+ ) {
3979
+ const selectionPart = {
3980
+ from: Math.min(Number.parseFloat((_e = anchorNode.getAttribute("data-start")) !== null && _e !== void 0 ? _e : "0"), Number.parseFloat((_f = focusNode.getAttribute("data-start")) !== null && _f !== void 0 ? _f : "0")),
3981
+ to: Math.max(Number.parseFloat((_g = anchorNode.getAttribute("data-end")) !== null && _g !== void 0 ? _g : "0"), Number.parseFloat((_h = focusNode.getAttribute("data-end")) !== null && _h !== void 0 ? _h : "0")),
3982
+ };
3983
+ (_j = props === null || props === void 0 ? void 0 : props.handleSelection) === null || _j === void 0 ? void 0 : _j.call(props, Object.assign(Object.assign({}, selectionPart), { text }));
3984
+ }
3985
+ }, [props]);
3986
+ React.useEffect(() => {
3987
+ if (ref.current === null)
3988
+ return;
3989
+ document.addEventListener("selectionchange", handleSelectionChange);
3990
+ return () => {
3991
+ document.removeEventListener("selectionchange", handleSelectionChange);
3992
+ };
3993
+ }, [ref, props, handleSelectionChange]);
3994
+ return jsxRuntime.jsx(WordsContainer, Object.assign({ ref: ref }, { children: props.children }));
3995
+ };
3996
+ const Word = (props) => {
3997
+ var _a;
3998
+ const isActive = props.currentTime &&
3999
+ props.currentTime >= props.start &&
4000
+ props.currentTime < props.end;
4001
+ // Is there an observation that contains this word?
4002
+ const observation = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.find((obs) => props.start >= obs.start && props.end <= obs.end);
4003
+ return (jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { observation: observation, "data-start": props.start, "data-end": props.end, className: !!observation ? "highlighted" : "" }, (!!observation ? { tag: "observation" } : {}), { children: [isActive ? jsxRuntime.jsx(ActiveWord, { children: props.children }) : props.children, !observation && " "] })));
4004
+ };
4005
+ Highlight.Word = Word;
4006
+
3886
4007
  const UgModalBody = styled__default["default"](reactModals.Body) `
3887
4008
  color: ${({ theme }) => theme.palette.grey["800"]};
3888
4009
  `;
@@ -3904,7 +4025,7 @@ Modal.Header = reactModals.Header;
3904
4025
  Modal.Body = UgModalBody;
3905
4026
  Modal.Footer = reactModals.Footer;
3906
4027
 
3907
- const StyledBody$5 = styled__default["default"].div `
4028
+ const StyledBody$6 = styled__default["default"].div `
3908
4029
  display: flex;
3909
4030
  flex-grow: 1;
3910
4031
  flex-wrap: nowrap;
@@ -3927,7 +4048,7 @@ const Details = styled__default["default"].div `
3927
4048
  padding: ${({ theme }) => theme.space.md};
3928
4049
  overflow: auto;
3929
4050
  `;
3930
- const ModalBody = StyledBody$5;
4051
+ const ModalBody = StyledBody$6;
3931
4052
  ModalBody.Main = MainContent;
3932
4053
  ModalBody.Details = Details;
3933
4054
 
@@ -3985,15 +4106,15 @@ const Spinner = (props) => jsxRuntime.jsx(UgSpinner, Object.assign({}, props));
3985
4106
  */
3986
4107
  const Dots = (props) => jsxRuntime.jsx(reactLoaders.Dots, Object.assign({}, props));
3987
4108
 
3988
- var _path$k;
3989
- 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); }
3990
- const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
4109
+ var _path$l;
4110
+ 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); }
4111
+ const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
3991
4112
  xmlns: "http://www.w3.org/2000/svg",
3992
4113
  width: 16,
3993
4114
  height: 16,
3994
4115
  focusable: "false",
3995
4116
  viewBox: "0 0 16 16"
3996
- }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
4117
+ }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
3997
4118
  fill: "currentColor",
3998
4119
  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"
3999
4120
  })));
@@ -4084,15 +4205,15 @@ const Logo = (props) => {
4084
4205
  }[props.type] })));
4085
4206
  };
4086
4207
 
4087
- var _path$j;
4088
- 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); }
4089
- const SvgPlus = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
4208
+ var _path$k;
4209
+ 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); }
4210
+ const SvgPlus = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
4090
4211
  width: 16,
4091
4212
  height: 16,
4092
4213
  viewBox: "0 0 16 16",
4093
4214
  fill: "none",
4094
4215
  xmlns: "http://www.w3.org/2000/svg"
4095
- }, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
4216
+ }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
4096
4217
  fillRule: "evenodd",
4097
4218
  clipRule: "evenodd",
4098
4219
  d: "M7.5 2C7.22386 2 7 2.22386 7 2.5V8H1.5C1.22386 8 1 8.22386 1 8.5C1 8.77614 1.22386 9 1.5 9H7V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V9H13.5C13.7761 9 14 8.77614 14 8.5C14 8.22386 13.7761 8 13.5 8H8V2.5C8 2.22386 7.77614 2 7.5 2Z",
@@ -4170,7 +4291,7 @@ const StyledHeader = styled__default["default"](Modal.Header) `
4170
4291
  padding: ${({ theme }) => theme.space.md};
4171
4292
  }
4172
4293
  `;
4173
- const StyledBody$4 = styled__default["default"](Modal.Body) `
4294
+ const StyledBody$5 = styled__default["default"](Modal.Body) `
4174
4295
  background-color: ${({ theme }) => theme.palette.grey["100"]};
4175
4296
  padding: ${({ theme }) => `${theme.space.md} ${theme.space.base * 6}px`};
4176
4297
 
@@ -4189,7 +4310,7 @@ const StyledModalClose = styled__default["default"](reactModals.Close) `
4189
4310
  `;
4190
4311
  const ModalFullScreen = (props) => jsxRuntime.jsx(StyledModal$1, Object.assign({}, props));
4191
4312
  ModalFullScreen.Header = StyledHeader;
4192
- ModalFullScreen.Body = StyledBody$4;
4313
+ ModalFullScreen.Body = StyledBody$5;
4193
4314
  ModalFullScreen.Footer = StyledFooter$1;
4194
4315
  ModalFullScreen.Close = StyledModalClose;
4195
4316
  ModalFullScreen.FooterItem = FooterItem;
@@ -4223,15 +4344,15 @@ const HeaderItemText = (props) => jsxRuntime.jsx(UgHeaderItemText, Object.assign
4223
4344
 
4224
4345
  const HeaderItemIcon = (props) => (jsxRuntime.jsx(reactChrome.HeaderItemIcon, Object.assign({}, props)));
4225
4346
 
4226
- var _path$i;
4227
- 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); }
4228
- const SvgMenuStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
4347
+ var _path$j;
4348
+ 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); }
4349
+ const SvgMenuStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
4229
4350
  xmlns: "http://www.w3.org/2000/svg",
4230
4351
  width: 16,
4231
4352
  height: 16,
4232
4353
  focusable: "false",
4233
4354
  viewBox: "0 0 16 16"
4234
- }, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
4355
+ }, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
4235
4356
  fill: "none",
4236
4357
  stroke: "currentColor",
4237
4358
  strokeLinecap: "round",
@@ -4313,15 +4434,15 @@ Header.HeaderItem = HeaderItem;
4313
4434
  Header.HeaderItemText = HeaderItemText;
4314
4435
  Header.HeaderItemIcon = HeaderItemIcon;
4315
4436
 
4316
- var _path$h;
4317
- 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); }
4318
- const SvgChevronDownStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
4437
+ var _path$i;
4438
+ 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); }
4439
+ const SvgChevronDownStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
4319
4440
  xmlns: "http://www.w3.org/2000/svg",
4320
4441
  width: 16,
4321
4442
  height: 16,
4322
4443
  focusable: "false",
4323
4444
  viewBox: "0 0 16 16"
4324
- }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
4445
+ }, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
4325
4446
  fill: "currentColor",
4326
4447
  d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
4327
4448
  })));
@@ -4401,15 +4522,15 @@ const NavItemIcon = (props) => jsxRuntime.jsx(UgNavIcon, Object.assign({}, props
4401
4522
 
4402
4523
  const NavItemText = (props) => (jsxRuntime.jsx(reactChrome.NavItemText, Object.assign({}, props, { children: jsxRuntime.jsx(Ellipsis, Object.assign({ style: { width: "158px" } }, { children: props.children })) })));
4403
4524
 
4404
- var _path$g;
4405
- 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); }
4406
- const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
4525
+ var _path$h;
4526
+ 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); }
4527
+ const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
4407
4528
  xmlns: "http://www.w3.org/2000/svg",
4408
4529
  width: 16,
4409
4530
  height: 16,
4410
4531
  focusable: "false",
4411
4532
  viewBox: "0 0 16 16"
4412
- }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
4533
+ }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
4413
4534
  fill: "currentColor",
4414
4535
  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"
4415
4536
  })));
@@ -4697,81 +4818,88 @@ PageHeader.Description = MainDescription;
4697
4818
  PageHeader.Meta = MainMeta;
4698
4819
  PageHeader.Footer = StyledFooter;
4699
4820
 
4700
- const Wrapper = styled__default["default"].div `
4701
- position: absolute;
4702
- bottom: ${({ theme }) => theme.space.sm};
4703
- z-index: 1;
4704
- `;
4705
- const Content = styled__default["default"].div `
4706
- display: flex;
4707
- background-color: ${({ theme }) => theme.palette.grey[800]};
4708
- border-radius: 2px;
4709
- width: auto;
4710
- padding: 2px 4px;
4711
- display: inline-flex;
4712
- color: white;
4713
- align-items: center;
4714
- justify-content: center;
4715
- min-height: 16px;
4716
- `;
4717
- const PlayerTooltip = (_a) => {
4718
- var { children } = _a, props = __rest(_a, ["children"]);
4719
- return (jsxRuntime.jsx(Wrapper, Object.assign({}, props, { children: jsxRuntime.jsx(Content, { children: children }) })));
4720
- };
4721
-
4722
- var _path$f;
4723
- 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); }
4724
- const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
4821
+ var _path$g, _path2$5;
4822
+ 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); }
4823
+ const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
4725
4824
  xmlns: "http://www.w3.org/2000/svg",
4726
4825
  width: 16,
4727
4826
  height: 16,
4728
4827
  focusable: "false",
4729
4828
  viewBox: "0 0 16 16"
4730
- }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
4829
+ }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
4830
+ stroke: "currentColor",
4831
+ strokeLinecap: "round",
4832
+ d: "M11.5 10l4-4m-4 0l4 4"
4833
+ })), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
4731
4834
  fill: "currentColor",
4732
- 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"
4835
+ d: "M9 15.29c-.26 0-.51-.1-.71-.29l-4-4H1c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h3.29l4-4a1.002 1.002 0 011.71.71V14.3a.986.986 0 01-1 .99z"
4733
4836
  })));
4734
4837
 
4735
- var _g;
4736
- 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); }
4737
- const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
4838
+ var _path$f, _path2$4;
4839
+ 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); }
4840
+ const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
4738
4841
  xmlns: "http://www.w3.org/2000/svg",
4739
4842
  width: 16,
4740
4843
  height: 16,
4741
4844
  focusable: "false",
4742
4845
  viewBox: "0 0 16 16"
4743
- }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
4744
- fill: "currentColor"
4745
- }, /*#__PURE__*/React__namespace.createElement("rect", {
4746
- width: 4,
4747
- height: 14,
4748
- x: 3,
4749
- y: 1,
4750
- rx: 1,
4751
- ry: 1
4752
- }), /*#__PURE__*/React__namespace.createElement("rect", {
4753
- width: 4,
4754
- height: 14,
4755
- x: 9,
4756
- y: 1,
4757
- rx: 1,
4758
- ry: 1
4759
- }))));
4760
-
4761
- var _path$e, _path2$5, _path3$1;
4762
- 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); }
4763
- const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
4764
- width: 16,
4765
- height: 16,
4766
- viewBox: "0 0 16 16",
4846
+ }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
4847
+ fill: "currentColor",
4848
+ d: "M9 15.29c-.26 0-.51-.1-.71-.29l-4-4H1c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h3.29l4-4a1.002 1.002 0 011.71.71V14.3a.986.986 0 01-1 .99z"
4849
+ })), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
4767
4850
  fill: "none",
4768
- xmlns: "http://www.w3.org/2000/svg"
4769
- }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
4770
- fillRule: "evenodd",
4771
- clipRule: "evenodd",
4772
- 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",
4773
- fill: "currentColor"
4774
- })), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
4851
+ stroke: "currentColor",
4852
+ strokeLinecap: "round",
4853
+ d: "M11.77 9.77c.45-.45.73-1.08.73-1.77s-.28-1.31-.73-1.77m2.17 5.6c.97-.99 1.56-2.34 1.56-3.83 0-1.52-.62-2.89-1.61-3.89"
4854
+ })));
4855
+
4856
+ const AudioButton = () => {
4857
+ const [hasAudio, setHasAudio] = React.useState(false);
4858
+ const { isMuted, setMuted, context } = Video.useVideoContext();
4859
+ const { player } = context;
4860
+ const checkAudio = (video) => {
4861
+ if (!video) {
4862
+ return false;
4863
+ }
4864
+ const videohasAudio = video.mozHasAudio ||
4865
+ Boolean(video.webkitAudioDecodedByteCount) ||
4866
+ Boolean(video.audioTracks && video.audioTracks.length);
4867
+ setHasAudio(videohasAudio);
4868
+ };
4869
+ const hasVolume = (video) => {
4870
+ if (!video) {
4871
+ return false;
4872
+ }
4873
+ return video.volume > 0;
4874
+ };
4875
+ React.useEffect(() => {
4876
+ if (player && (player === null || player === void 0 ? void 0 : player.ref)) {
4877
+ setMuted(!hasVolume(player.ref.current));
4878
+ checkAudio(player.ref.current);
4879
+ }
4880
+ }, [context.isPlaying, isMuted]);
4881
+ return (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, disabled: !hasAudio, onClick: () => {
4882
+ if (player === null || player === void 0 ? void 0 : player.ref.current) {
4883
+ player.ref.current.volume = player.ref.current.volume > 0 ? 0 : 1;
4884
+ setMuted(!player.ref.current.volume);
4885
+ }
4886
+ } }, { children: isMuted || !hasAudio ? jsxRuntime.jsx(SvgVolumeMutedFill, {}) : jsxRuntime.jsx(SvgVolumeUnmutedFill, {}) })));
4887
+ };
4888
+
4889
+ var _path$e, _path2$3, _path3$1;
4890
+ 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); }
4891
+ const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
4892
+ width: 16,
4893
+ height: 16,
4894
+ viewBox: "0 0 16 16",
4895
+ fill: "none",
4896
+ xmlns: "http://www.w3.org/2000/svg"
4897
+ }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
4898
+ fillRule: "evenodd",
4899
+ clipRule: "evenodd",
4900
+ 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",
4901
+ fill: "currentColor"
4902
+ })), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
4775
4903
  d: "M5.5 7.63073V7.07008H6.67566V11H6.02566V7.63073H5.5Z",
4776
4904
  fill: "currentColor"
4777
4905
  })), _path3$1 || (_path3$1 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -4779,9 +4907,9 @@ const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createEleme
4779
4907
  fill: "currentColor"
4780
4908
  })));
4781
4909
 
4782
- var _path$d, _path2$4, _path3;
4783
- 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); }
4784
- const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
4910
+ var _path$d, _path2$2, _path3;
4911
+ 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); }
4912
+ const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
4785
4913
  width: 16,
4786
4914
  height: 16,
4787
4915
  viewBox: "0 0 16 16",
@@ -4790,9 +4918,9 @@ const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement(
4790
4918
  }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
4791
4919
  fillRule: "evenodd",
4792
4920
  clipRule: "evenodd",
4793
- 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",
4921
+ 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",
4794
4922
  fill: "currentColor"
4795
- })), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
4923
+ })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
4796
4924
  d: "M5.5 7.63073V7.07008H6.67566V11H6.02566V7.63073H5.5Z",
4797
4925
  fill: "currentColor"
4798
4926
  })), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -4800,18 +4928,57 @@ const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement(
4800
4928
  fill: "currentColor"
4801
4929
  })));
4802
4930
 
4803
- var _path$c, _path2$3;
4931
+ var _g;
4932
+ 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); }
4933
+ const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
4934
+ xmlns: "http://www.w3.org/2000/svg",
4935
+ width: 16,
4936
+ height: 16,
4937
+ focusable: "false",
4938
+ viewBox: "0 0 16 16"
4939
+ }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
4940
+ fill: "currentColor"
4941
+ }, /*#__PURE__*/React__namespace.createElement("rect", {
4942
+ width: 4,
4943
+ height: 14,
4944
+ x: 3,
4945
+ y: 1,
4946
+ rx: 1,
4947
+ ry: 1
4948
+ }), /*#__PURE__*/React__namespace.createElement("rect", {
4949
+ width: 4,
4950
+ height: 14,
4951
+ x: 9,
4952
+ y: 1,
4953
+ rx: 1,
4954
+ ry: 1
4955
+ }))));
4956
+
4957
+ var _path$c;
4804
4958
  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); }
4805
- const SvgPreviousFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
4959
+ const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
4806
4960
  xmlns: "http://www.w3.org/2000/svg",
4807
4961
  width: 16,
4808
4962
  height: 16,
4809
4963
  focusable: "false",
4810
- viewBox: "0 0 24 24"
4964
+ viewBox: "0 0 16 16"
4811
4965
  }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
4966
+ fill: "currentColor",
4967
+ 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"
4968
+ })));
4969
+
4970
+ var _path$b, _path2$1;
4971
+ 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); }
4972
+ const SvgPreviousFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
4973
+ xmlns: "http://www.w3.org/2000/svg",
4974
+ width: 16,
4975
+ height: 16,
4976
+ focusable: "false",
4977
+ viewBox: "0 0 24 24"
4978
+ }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
4812
4979
  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",
4813
4980
  fill: "currentColor"
4814
- })), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
4981
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
4815
4982
  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",
4816
4983
  fill: "currentColor"
4817
4984
  })));
@@ -4842,7 +5009,7 @@ const StyledDiv$4 = styled__default["default"].div `
4842
5009
  display: flex;
4843
5010
  align-items: center;
4844
5011
  `;
4845
- const ControlsGroupCenter = () => {
5012
+ const ControlsGroupCenter = ({ onCutHandler, isCutting, }) => {
4846
5013
  var _a;
4847
5014
  const [playBackRate, setPlayBackRate] = React.useState(1);
4848
5015
  const { context, togglePlay } = Video.useVideoContext();
@@ -4883,115 +5050,38 @@ const ControlsGroupCenter = () => {
4883
5050
  videoRef.playbackRate = newSpeed;
4884
5051
  }
4885
5052
  e.stopPropagation();
4886
- } }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] }));
5053
+ } }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) })), onCutHandler && (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, onClick: (e) => {
5054
+ if (videoRef) {
5055
+ onCutHandler(videoRef.currentTime);
5056
+ }
5057
+ e.stopPropagation();
5058
+ } }, { children: jsxRuntime.jsx(SM, Object.assign({ isBold: true }, { children: isCutting ? '🛑' : '✂️' })) })))] }));
4887
5059
  };
4888
5060
 
4889
- const StyledDiv$3 = styled__default["default"].div `
4890
- position: absolute;
4891
- bottom: ${({ theme }) => theme.space.sm};
4892
- right: 0;
4893
-
4894
- padding: 0 ${({ theme }) => theme.space.xs};
4895
-
4896
- span {
4897
- color: ${({ theme }) => theme.palette.grey[300]};
4898
- }
4899
- `;
4900
- const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$3, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [current, "/", duration] })) }));
4901
-
4902
- var _path$b, _path2$2;
4903
- 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); }
4904
- const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
4905
- xmlns: "http://www.w3.org/2000/svg",
4906
- width: 16,
4907
- height: 16,
4908
- focusable: "false",
4909
- viewBox: "0 0 16 16"
4910
- }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
4911
- stroke: "currentColor",
4912
- strokeLinecap: "round",
4913
- d: "M11.5 10l4-4m-4 0l4 4"
4914
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
4915
- fill: "currentColor",
4916
- 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"
4917
- })));
4918
-
4919
- var _path$a, _path2$1;
5061
+ var _path$a;
4920
5062
  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); }
4921
- const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
5063
+ const SvgMaximizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
4922
5064
  xmlns: "http://www.w3.org/2000/svg",
4923
5065
  width: 16,
4924
5066
  height: 16,
4925
5067
  focusable: "false",
4926
5068
  viewBox: "0 0 16 16"
4927
5069
  }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
4928
- fill: "currentColor",
4929
- 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"
4930
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
4931
5070
  fill: "none",
4932
5071
  stroke: "currentColor",
4933
5072
  strokeLinecap: "round",
4934
- 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"
5073
+ 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"
4935
5074
  })));
4936
5075
 
4937
- const AudioButton = () => {
4938
- const [hasAudio, setHasAudio] = React.useState(false);
4939
- const { isMuted, setMuted, context } = Video.useVideoContext();
4940
- const { player } = context;
4941
- const checkAudio = (video) => {
4942
- if (!video) {
4943
- return false;
4944
- }
4945
- console.log("hasAudio?", video);
4946
- const videohasAudio = video.mozHasAudio ||
4947
- Boolean(video.webkitAudioDecodedByteCount) ||
4948
- Boolean(video.audioTracks && video.audioTracks.length);
4949
- setHasAudio(videohasAudio);
4950
- };
4951
- const hasVolume = (video) => {
4952
- if (!video) {
4953
- return false;
4954
- }
4955
- return video.volume > 0;
4956
- };
4957
- React.useEffect(() => {
4958
- if (player && (player === null || player === void 0 ? void 0 : player.ref)) {
4959
- setMuted(!hasVolume(player.ref.current));
4960
- checkAudio(player.ref.current);
4961
- }
4962
- }, [context.isPlaying, isMuted]);
4963
- return (jsxRuntime.jsx(IconButton, Object.assign({ isBright: true, disabled: !hasAudio, onClick: () => {
4964
- if (player === null || player === void 0 ? void 0 : player.ref.current) {
4965
- player.ref.current.volume = player.ref.current.volume > 0 ? 0 : 1;
4966
- setMuted(!player.ref.current.volume);
4967
- }
4968
- } }, { children: isMuted || !hasAudio ? jsxRuntime.jsx(SvgVolumeMutedFill, {}) : jsxRuntime.jsx(SvgVolumeUnmutedFill, {}) })));
4969
- };
4970
-
4971
5076
  var _path$9;
4972
5077
  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); }
4973
- const SvgMaximizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
5078
+ const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
4974
5079
  xmlns: "http://www.w3.org/2000/svg",
4975
5080
  width: 16,
4976
5081
  height: 16,
4977
5082
  focusable: "false",
4978
5083
  viewBox: "0 0 16 16"
4979
5084
  }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
4980
- fill: "none",
4981
- stroke: "currentColor",
4982
- strokeLinecap: "round",
4983
- 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"
4984
- })));
4985
-
4986
- var _path$8;
4987
- function _extends$9() { _extends$9 = 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$9.apply(this, arguments); }
4988
- const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
4989
- xmlns: "http://www.w3.org/2000/svg",
4990
- width: 16,
4991
- height: 16,
4992
- focusable: "false",
4993
- viewBox: "0 0 16 16"
4994
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
4995
5085
  fill: "none",
4996
5086
  stroke: "currentColor",
4997
5087
  strokeLinecap: "round",
@@ -5065,6 +5155,64 @@ const FullScreenButton = ({ container, }) => {
5065
5155
  }, disabled: !canGoFullScreen() }, { children: document.fullscreenElement || isFullScreen ? (jsxRuntime.jsx(SvgMinimizeStroke, {})) : (jsxRuntime.jsx(SvgMaximizeStroke, {})) })));
5066
5156
  };
5067
5157
 
5158
+ const StyledDiv$3 = styled__default["default"].div `
5159
+ position: absolute;
5160
+ bottom: ${({ theme }) => theme.space.sm};
5161
+ right: 0;
5162
+
5163
+ padding: 0 ${({ theme }) => theme.space.xs};
5164
+
5165
+ span {
5166
+ color: ${({ theme }) => theme.palette.grey[300]};
5167
+ }
5168
+ `;
5169
+ const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$3, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [current, "/", duration] })) }));
5170
+
5171
+ const Wrapper = styled__default["default"].div `
5172
+ position: absolute;
5173
+ bottom: ${({ theme }) => theme.space.sm};
5174
+ z-index: 1;
5175
+ `;
5176
+ const Content = styled__default["default"].div `
5177
+ display: flex;
5178
+ background-color: ${({ theme }) => theme.palette.grey[800]};
5179
+ border-radius: 2px;
5180
+ width: auto;
5181
+ padding: 2px 4px;
5182
+ display: inline-flex;
5183
+ color: white;
5184
+ align-items: center;
5185
+ justify-content: center;
5186
+ min-height: 16px;
5187
+ `;
5188
+ const PlayerTooltip = (_a) => {
5189
+ var { children } = _a, props = __rest(_a, ["children"]);
5190
+ return (jsxRuntime.jsx(Wrapper, Object.assign({}, props, { children: jsxRuntime.jsx(Content, { children: children }) })));
5191
+ };
5192
+
5193
+ const Rect = styled.styled.div `
5194
+ position: absolute;
5195
+ width: 5px;
5196
+ height: 100%;
5197
+ background-color: ${({ hue, theme }) => hue || theme.palette.grey[800]};
5198
+ transform: translateX(-50%);
5199
+ z-index: 1;
5200
+ `;
5201
+ const Bookmark = (_a) => {
5202
+ var _b, _c;
5203
+ var { start, hue, label } = _a; __rest(_a, ["start", "hue", "label"]);
5204
+ const { context } = Video.useVideoContext();
5205
+ const videoStart = context.part.start || 0;
5206
+ const videoEnd = context.part.end || ((_b = context.player) === null || _b === void 0 ? void 0 : _b.totalTime) || 0;
5207
+ const duration = videoEnd - videoStart || ((_c = context.player) === null || _c === void 0 ? void 0 : _c.totalTime) || 0; //relative
5208
+ if (!context.player || !context.player.ref) {
5209
+ return null;
5210
+ }
5211
+ if (start > videoEnd || start < videoStart)
5212
+ return null;
5213
+ return (jsxRuntime.jsx(Tooltip, Object.assign({ content: label, type: "light", size: "large" }, { children: jsxRuntime.jsx(Rect, { hue: hue, style: { left: `${((start - videoStart) / duration) * 100}%` } }) })));
5214
+ };
5215
+
5068
5216
  const ControlsWrapper = styled__default["default"].div `
5069
5217
  position: absolute;
5070
5218
  bottom: 0;
@@ -5102,7 +5250,7 @@ const StyledDiv$2 = styled__default["default"].div `
5102
5250
  display: flex;
5103
5251
  align-items: center;
5104
5252
  `;
5105
- const Controls = ({ container, }) => {
5253
+ const Controls = ({ container, onCutHandler, bookmarks, isCutting, }) => {
5106
5254
  var _a, _b, _c;
5107
5255
  const [progress, setProgress] = React.useState(0);
5108
5256
  const [tooltipMargin, setTooltipMargin] = React.useState(0);
@@ -5113,7 +5261,7 @@ const Controls = ({ container, }) => {
5113
5261
  ? ((_b = context.player) === null || _b === void 0 ? void 0 : _b.currentTime) - context.part.start
5114
5262
  : 0;
5115
5263
  const duration = context.part.end - context.part.start || ((_c = context.player) === null || _c === void 0 ? void 0 : _c.totalTime) || 0; //relative
5116
- const getVideoPositionFromEvent = (clientX) => {
5264
+ const getVideoPositionFromEvent = React.useCallback((clientX) => {
5117
5265
  if (progressRef && progressRef.current && duration) {
5118
5266
  const bounds = progressRef.current.getBoundingClientRect();
5119
5267
  const x = clientX - bounds.left;
@@ -5121,12 +5269,18 @@ const Controls = ({ container, }) => {
5121
5269
  return videoPositionSecs;
5122
5270
  }
5123
5271
  return 0;
5124
- };
5272
+ }, [progressRef, duration]);
5273
+ const getProgress = React.useCallback((currentTime) => {
5274
+ const current = currentTime - (context.part.start || 0);
5275
+ if (duration === 0)
5276
+ return 0;
5277
+ return (current / duration) * 100;
5278
+ }, [context.part.start, duration]);
5125
5279
  const handleSkipAhead = React.useCallback((pageX) => {
5126
5280
  const time = getVideoPositionFromEvent(pageX) + (context.part.start || 0);
5127
5281
  setCurrentTime(time);
5128
5282
  setProgress(getProgress(time));
5129
- }, [context.player, context.part]);
5283
+ }, [getVideoPositionFromEvent, context.part.start, setCurrentTime, getProgress]);
5130
5284
  const onMouseEvent = (e) => {
5131
5285
  if (progressRef && progressRef.current) {
5132
5286
  const tooltipWidth = 40;
@@ -5143,25 +5297,21 @@ const Controls = ({ container, }) => {
5143
5297
  var _a;
5144
5298
  const currentTime = ((_a = context.player) === null || _a === void 0 ? void 0 : _a.currentTime) || 0;
5145
5299
  setProgress(getProgress(currentTime));
5146
- }, [context.player]);
5147
- const getProgress = React.useCallback((currentTime) => {
5148
- const current = currentTime - (context.part.start || 0);
5149
- if (duration === 0)
5150
- return 0;
5151
- return (current / duration) * 100;
5152
- }, [context.player]);
5153
- return (jsxRuntime.jsxs(ControlsWrapper, Object.assign({ isPlaying: context.isPlaying }, { children: [jsxRuntime.jsxs(ProgressContainer, Object.assign({ onMouseEnter: onMouseEvent, onMouseMove: onMouseEvent, onMouseLeave: onMouseEvent }, { children: [jsxRuntime.jsx(StyledTooltip, Object.assign({ style: { marginLeft: `${tooltipMargin}px` } }, { children: tooltipLabel })), jsxRuntime.jsx(TimeLabel, { current: formatDuration(relCurrentTime), duration: formatDuration(duration) }), jsxRuntime.jsx(StyledProgress, { ref: progressRef, value: progress, onClick: (e) => handleSkipAhead(e.clientX) })] })), jsxRuntime.jsxs(ControlsBar, { children: [jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsx(AudioButton, {}) }), jsxRuntime.jsx(ControlsGroupCenter, {}), jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsx(FullScreenButton, { container: container }) })] })] })));
5300
+ }, [context.player, getProgress]);
5301
+ console.log("duration", duration);
5302
+ return (jsxRuntime.jsxs(ControlsWrapper, Object.assign({ isPlaying: context.isPlaying }, { children: [jsxRuntime.jsxs(ProgressContainer, Object.assign({ onMouseEnter: onMouseEvent, onMouseMove: onMouseEvent, onMouseLeave: onMouseEvent }, { children: [jsxRuntime.jsx(StyledTooltip, Object.assign({ style: { marginLeft: `${tooltipMargin}px` } }, { children: tooltipLabel })), jsxRuntime.jsx(TimeLabel, { current: formatDuration(relCurrentTime), duration: formatDuration(duration) }), !!duration &&
5303
+ (bookmarks === null || bookmarks === void 0 ? void 0 : bookmarks.map((bookmark, index) => (jsxRuntime.jsx(Bookmark, Object.assign({}, bookmark, { start: bookmark.start }), index)))), jsxRuntime.jsx(StyledProgress, { ref: progressRef, value: progress, onClick: (e) => handleSkipAhead(e.clientX) })] })), jsxRuntime.jsxs(ControlsBar, { children: [jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsx(AudioButton, {}) }), jsxRuntime.jsx(ControlsGroupCenter, { onCutHandler: onCutHandler, isCutting: isCutting }), jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsx(FullScreenButton, { container: container }) })] })] })));
5154
5304
  };
5155
5305
 
5156
- var _path$7;
5157
- function _extends$8() { _extends$8 = 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$8.apply(this, arguments); }
5158
- const SvgPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
5306
+ var _path$8;
5307
+ function _extends$9() { _extends$9 = 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$9.apply(this, arguments); }
5308
+ const SvgPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
5159
5309
  width: 70,
5160
5310
  height: 70,
5161
5311
  viewBox: "0 0 70 70",
5162
5312
  fill: "none",
5163
5313
  xmlns: "http://www.w3.org/2000/svg"
5164
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
5314
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
5165
5315
  d: "M60 35L17 62L17 8L60 35Z",
5166
5316
  fill: "#003A57"
5167
5317
  })));
@@ -5275,6 +5425,7 @@ const Player = React.forwardRef((props, forwardRef) => {
5275
5425
  const PlayerCore = React.forwardRef((props, forwardRef) => {
5276
5426
  var _a;
5277
5427
  const { context, togglePlay, setIsPlaying } = Video.useVideoContext();
5428
+ const { onCutHandler, bookmarks, isCutting } = props;
5278
5429
  const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
5279
5430
  const isLoaded = !!videoRef;
5280
5431
  const containerRef = React.useRef(null);
@@ -5292,19 +5443,19 @@ const PlayerCore = React.forwardRef((props, forwardRef) => {
5292
5443
  });
5293
5444
  }
5294
5445
  };
5295
- }, [videoRef]);
5296
- return (jsxRuntime.jsxs(Container, Object.assign({ isLoaded: isLoaded, isPlaying: context.isPlaying, ref: containerRef }, { children: [!isLoaded ? (jsxRuntime.jsx(VideoSpinner, {})) : (jsxRuntime.jsx(FloatingControls, { isPlaying: context.isPlaying, onClick: togglePlay })), jsxRuntime.jsx(Video__default["default"].Player, { className: "player-container" }), jsxRuntime.jsx(Controls, { container: containerRef.current })] })));
5446
+ }, [setIsPlaying, videoRef]);
5447
+ return (jsxRuntime.jsxs(Container, Object.assign({ isLoaded: isLoaded, isPlaying: context.isPlaying, ref: containerRef }, { children: [!isLoaded ? (jsxRuntime.jsx(VideoSpinner, {})) : (jsxRuntime.jsx(FloatingControls, { isPlaying: context.isPlaying, onClick: togglePlay })), jsxRuntime.jsx(Video__default["default"].Player, { className: "player-container" }), jsxRuntime.jsx(Controls, { container: containerRef.current, onCutHandler: onCutHandler, bookmarks: bookmarks, isCutting: isCutting })] })));
5297
5448
  });
5298
5449
 
5299
- var _path$6, _path2;
5300
- function _extends$7() { _extends$7 = 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$7.apply(this, arguments); }
5301
- const SvgExit = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
5450
+ var _path$7, _path2;
5451
+ function _extends$8() { _extends$8 = 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$8.apply(this, arguments); }
5452
+ const SvgExit = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
5302
5453
  xmlns: "http://www.w3.org/2000/svg",
5303
5454
  width: 16,
5304
5455
  height: 16,
5305
5456
  focusable: "false",
5306
5457
  viewBox: "0 0 16 16"
5307
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
5458
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
5308
5459
  fill: "currentColor",
5309
5460
  d: "M3 15.93c-.23 0-.45-.08-.64-.23l-2-1.67a.987.987 0 01-.36-.76V2.73c0-.3.13-.58.36-.77l2-1.67c.3-.24.71-.29 1.06-.13a1 1 0 01.58.91v13.87a1 1 0 01-.58.91c-.13.05-.28.08-.42.08zM12 11V5c0-.45.54-.67.85-.35L15.5 7.3c.39.39.39 1.02 0 1.41l-2.65 2.65A.5.5 0 0112 11z"
5310
5461
  })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -5314,24 +5465,24 @@ const SvgExit = props => /*#__PURE__*/React__namespace.createElement("svg", _ext
5314
5465
  d: "M3.5 2.5H9c.28 0 .5.22.5.5v2.5m-6 8H9c.28 0 .5-.22.5-.5v-2.5M15 8H7"
5315
5466
  })));
5316
5467
 
5317
- var _path$5;
5318
- function _extends$6() { _extends$6 = 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$6.apply(this, arguments); }
5319
- const SvgThumbsUp = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
5468
+ var _path$6;
5469
+ function _extends$7() { _extends$7 = 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$7.apply(this, arguments); }
5470
+ const SvgThumbsUp = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
5320
5471
  width: 16,
5321
5472
  height: 16,
5322
5473
  viewBox: "0 0 16 16",
5323
5474
  fill: "none",
5324
5475
  xmlns: "http://www.w3.org/2000/svg"
5325
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
5476
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
5326
5477
  fillRule: "evenodd",
5327
5478
  clipRule: "evenodd",
5328
5479
  d: "M13.5 15C14.2828 15 14.8192 11.8284 15 7.5C15 7.22386 14.7761 7 14.5 7H9.5C9.22386 7 9 6.77614 9 6.5V2C9 1.44772 8.55229 1 8 1C7.44772 1 7 1.44772 7 2C7 4.97341 6.19918 6.46065 5.02719 6.8454C5.01015 6.85409 4.99957 6.87174 5 6.9L4.99891 15C4.99927 15 13.5 15 13.5 15ZM10 6H14.5C15.3284 6 16 6.67157 15.9996 7.52082C15.7692 13.0486 15.2701 16 13.5 16L5.03301 15.9989C4.75408 16.0174 4.48075 15.9146 4.28308 15.7169C4.08542 15.5193 3.98264 15.2459 4 15L4.00008 6.90914C3.99274 6.50762 4.21507 6.13707 4.64189 5.92566C5.41645 5.66747 6 4.58373 6 2C6 0.89543 6.89543 0 8 0C9.10457 0 10 0.89543 10 2V6ZM1 7V15H2V7H1ZM1 6H2C2.55228 6 3 6.44772 3 7V15C3 15.5523 2.55228 16 2 16H1C0.447715 16 0 15.5523 0 15V7C0 6.44772 0.447715 6 1 6Z",
5329
5480
  fill: "#68737D"
5330
5481
  })));
5331
5482
 
5332
- var _rect, _path$4;
5333
- function _extends$5() { _extends$5 = 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$5.apply(this, arguments); }
5334
- const SvgLockLockedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
5483
+ var _rect, _path$5;
5484
+ function _extends$6() { _extends$6 = 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$6.apply(this, arguments); }
5485
+ const SvgLockLockedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
5335
5486
  xmlns: "http://www.w3.org/2000/svg",
5336
5487
  width: 16,
5337
5488
  height: 16,
@@ -5345,7 +5496,7 @@ const SvgLockLockedFill = props => /*#__PURE__*/React__namespace.createElement("
5345
5496
  fill: "currentColor",
5346
5497
  rx: 1,
5347
5498
  ry: 1
5348
- })), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
5499
+ })), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
5349
5500
  fill: "none",
5350
5501
  stroke: "currentColor",
5351
5502
  d: "M4.5 7.5V4a3.5 3.5 0 017 0v3.5"
@@ -5435,7 +5586,7 @@ const StyledItem = styled__default["default"].li `
5435
5586
  left: ${(props) => props.theme.rtl ? `${props.theme.space.base * 3}px` : "auto"};
5436
5587
  }
5437
5588
  `;
5438
- const StyledBody$3 = styled__default["default"].li `
5589
+ const StyledBody$4 = styled__default["default"].li `
5439
5590
  display: flex;
5440
5591
  flex-direction: column;
5441
5592
  height: 100%;
@@ -5453,47 +5604,47 @@ const MenuItem = (_a) => {
5453
5604
  const isVisible = isActive || selectedItem === "";
5454
5605
  if (!isVisible)
5455
5606
  return jsxRuntime.jsx(jsxRuntime.Fragment, {});
5456
- return isActive && content ? (jsxRuntime.jsx(StyledBody$3, { children: content }, props.value)) : (jsxRuntime.jsxs(StyledItem, Object.assign({}, props, { onClick: () => props.setActive(props.value) }, { children: [props.icon && jsxRuntime.jsx(IconContainer, { children: props.icon }), children, content && jsxRuntime.jsx(MenuItemIcon, {})] }), props.value));
5607
+ return isActive && content ? (jsxRuntime.jsx(StyledBody$4, { children: content }, props.value)) : (jsxRuntime.jsxs(StyledItem, Object.assign({}, props, { onClick: () => props.setActive(props.value) }, { children: [props.icon && jsxRuntime.jsx(IconContainer, { children: props.icon }), children, content && jsxRuntime.jsx(MenuItemIcon, {})] }), props.value));
5457
5608
  };
5458
5609
 
5459
- var _path$3;
5460
- function _extends$4() { _extends$4 = 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$4.apply(this, arguments); }
5461
- const SvgQuestionMark = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
5610
+ var _path$4;
5611
+ function _extends$5() { _extends$5 = 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$5.apply(this, arguments); }
5612
+ const SvgQuestionMark = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
5462
5613
  width: 16,
5463
5614
  height: 16,
5464
5615
  viewBox: "0 0 16 16",
5465
5616
  fill: "currentColor",
5466
5617
  xmlns: "http://www.w3.org/2000/svg"
5467
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
5618
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
5468
5619
  fillRule: "evenodd",
5469
5620
  clipRule: "evenodd",
5470
5621
  d: "M7.99997 11.5C8.55226 11.5 8.99997 11.0523 8.99997 10.5V9.4C8.99997 8.83787 9.33361 8.32072 9.92997 7.948C11.3791 7.15957 12.2479 5.53522 11.9883 3.84794C11.7161 2.21413 10.3858 0.883851 8.76437 0.613605C6.74482 0.234732 4.81137 1.36258 4.24419 3.20591C4.08177 3.73378 4.37802 4.29336 4.90589 4.45578C5.43375 4.6182 5.99333 4.32195 6.15575 3.79409C6.41982 2.93586 7.36323 2.38554 8.41568 2.58287C9.2141 2.71615 9.88382 3.38587 10.0136 4.1644C10.139 4.98036 9.70294 5.79565 8.92112 6.2221C7.72579 6.96712 6.99997 8.09213 6.99997 9.4V10.5C6.99997 11.0523 7.44769 11.5 7.99997 11.5ZM7.99997 15.5C8.8284 15.5 9.49997 14.8284 9.49997 14C9.49997 13.1716 8.8284 12.5 7.99997 12.5C7.17155 12.5 6.49997 13.1716 6.49997 14C6.49997 14.8284 7.17155 15.5 7.99997 15.5Z"
5471
5622
  })));
5472
5623
 
5473
- var _path$2;
5474
- function _extends$3() { _extends$3 = 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$3.apply(this, arguments); }
5475
- const SvgCopy = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
5624
+ var _path$3;
5625
+ function _extends$4() { _extends$4 = 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$4.apply(this, arguments); }
5626
+ const SvgCopy = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
5476
5627
  width: 12,
5477
5628
  height: 16,
5478
5629
  viewBox: "0 0 12 16",
5479
5630
  fill: "none",
5480
5631
  xmlns: "http://www.w3.org/2000/svg"
5481
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
5632
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
5482
5633
  fillRule: "evenodd",
5483
5634
  clipRule: "evenodd",
5484
5635
  d: "M2.625 10C2.83211 10 3 10.2239 3 10.5C3 10.7761 2.83211 11 2.625 11H0.75C0.335786 11 0 10.5523 0 10V1C0 0.447715 0.335786 0 0.75 0H7.5C7.91421 0 8.25 0.447715 8.25 1V3.5C8.25 3.77614 8.08211 4 7.875 4C7.66789 4 7.5 3.77614 7.5 3.5V1H0.75V10H2.625ZM4.5 6V15H11.25V6H4.5ZM4.5 5H11.25C11.6642 5 12 5.44772 12 6V15C12 15.5523 11.6642 16 11.25 16H4.5C4.08579 16 3.75 15.5523 3.75 15V6C3.75 5.44772 4.08579 5 4.5 5Z",
5485
5636
  fill: "#003A57"
5486
5637
  })));
5487
5638
 
5488
- var _path$1;
5489
- function _extends$2() { _extends$2 = 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$2.apply(this, arguments); }
5490
- const SvgInfoFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
5639
+ var _path$2;
5640
+ function _extends$3() { _extends$3 = 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$3.apply(this, arguments); }
5641
+ const SvgInfoFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
5491
5642
  width: 16,
5492
5643
  height: 16,
5493
5644
  viewBox: "0 0 16 16",
5494
5645
  fill: "currentColor",
5495
5646
  xmlns: "http://www.w3.org/2000/svg"
5496
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
5647
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
5497
5648
  fillRule: "evenodd",
5498
5649
  clipRule: "evenodd",
5499
5650
  d: "M7.5 16C3.36 16 0 12.64 0 8.5C0 4.36 3.36 1 7.5 1C11.64 1 15 4.36 15 8.5C15 12.64 11.64 16 7.5 16ZM7 12.5C7 12.78 7.22 13 7.5 13C7.78 13 8 12.78 8 12.5V8C8 7.72 7.78 7.5 7.5 7.5C7.22 7.5 7 7.72 7 8V12.5ZM7.5 4C6.95 4 6.5 4.45 6.5 5C6.5 5.55 6.95 6 7.5 6C8.05 6 8.5 5.55 8.5 5C8.5 4.45 8.05 4 7.5 4Z"
@@ -5504,6 +5655,7 @@ const StyledButton$1 = styled__default["default"](Button) `
5504
5655
  font-weight: ${(props) => props.theme.fontWeights.semibold};
5505
5656
  padding-left: 0;
5506
5657
  justify-content: flex-start;
5658
+ border-radius: 0;
5507
5659
  `;
5508
5660
  const PreviousButton = (props) => (jsxRuntime.jsxs(StyledButton$1, Object.assign({}, props, { isStretched: true }, { children: [jsxRuntime.jsx(StyledButton$1.StartIcon, { children: jsxRuntime.jsx(SvgChevronLeftStroke, {}) }), props.children] })));
5509
5661
 
@@ -5541,7 +5693,7 @@ const StyledFooterButton = styled__default["default"](StyledButton) `
5541
5693
  padding-left: 0;
5542
5694
  justify-content: flex-start;
5543
5695
  `;
5544
- const StyledBody$2 = styled__default["default"].div `
5696
+ const StyledBody$3 = styled__default["default"].div `
5545
5697
  margin: ${({ theme }) => theme.space.base * 6}px
5546
5698
  ${({ theme }) => theme.space.base * 4}px;
5547
5699
  `;
@@ -5573,7 +5725,7 @@ const HelpItem = (props) => {
5573
5725
  if (email.length > 24) {
5574
5726
  csmEmailCut = `${email.substring(0, 21)}...`;
5575
5727
  }
5576
- const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledBody$2, { children: [jsxRuntime.jsx(Paragraph, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: jsxRuntime.jsx(SM, { children: props.contactLabel }) })), jsxRuntime.jsx(StyledParagraph, { children: jsxRuntime.jsx(Avatar, { children: (_a = props.csm.picture) !== null && _a !== void 0 ? _a : getInitials(props.csm.name), avatarType: props.csm.picture ? "image" : "text", size: "large" }) }), jsxRuntime.jsxs(StyledParagraph, { children: [jsxRuntime.jsx(MD, Object.assign({ isBold: true }, { children: props.csm.name })), jsxRuntime.jsxs(Description, { children: [jsxRuntime.jsx(Anchor, Object.assign({ href: `mailto:${props.csm.email}`, style: { color: theme.palette.grey[600] } }, { children: csmEmailCut })), jsxRuntime.jsxs(StyledButton, Object.assign({ isBasic: true, onClick: () => {
5728
+ const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledBody$3, { children: [jsxRuntime.jsx(Paragraph, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: jsxRuntime.jsx(SM, { children: props.contactLabel }) })), jsxRuntime.jsx(StyledParagraph, { children: jsxRuntime.jsx(Avatar, { children: (_a = props.csm.picture) !== null && _a !== void 0 ? _a : getInitials(props.csm.name), avatarType: props.csm.picture ? "image" : "text", size: "large" }) }), jsxRuntime.jsxs(StyledParagraph, { children: [jsxRuntime.jsx(MD, Object.assign({ isBold: true }, { children: props.csm.name })), jsxRuntime.jsxs(Description, { children: [jsxRuntime.jsx(Anchor, Object.assign({ href: `mailto:${props.csm.email}`, style: { color: theme.palette.grey[600] } }, { children: csmEmailCut })), jsxRuntime.jsxs(StyledButton, Object.assign({ isBasic: true, onClick: () => {
5577
5729
  var _a;
5578
5730
  copyToClipBoard();
5579
5731
  (_a = props.onCopyEmail) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -5581,8 +5733,8 @@ const HelpItem = (props) => {
5581
5733
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, Object.assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgQuestionMark, { color: theme.palette.blue[600] }) }, { children: props.title })) }));
5582
5734
  };
5583
5735
 
5584
- function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
5585
- const SvgEmpty = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
5736
+ function _extends$2() { _extends$2 = 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$2.apply(this, arguments); }
5737
+ const SvgEmpty = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
5586
5738
  width: 16,
5587
5739
  height: 16,
5588
5740
  viewBox: "0 0 16 16",
@@ -5590,21 +5742,21 @@ const SvgEmpty = props => /*#__PURE__*/React__namespace.createElement("svg", _ex
5590
5742
  xmlns: "http://www.w3.org/2000/svg"
5591
5743
  }, props));
5592
5744
 
5593
- var _path;
5594
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5595
- const SvgTranslationExists = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
5745
+ var _path$1;
5746
+ function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
5747
+ const SvgTranslationExists = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
5596
5748
  width: 16,
5597
5749
  height: 16,
5598
5750
  viewBox: "0 0 16 16",
5599
5751
  fill: "#68737D",
5600
5752
  xmlns: "http://www.w3.org/2000/svg"
5601
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
5753
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
5602
5754
  fillRule: "evenodd",
5603
5755
  clipRule: "evenodd",
5604
5756
  d: "M6 8.31C6.0087 8.47711 5.93254 8.63735 5.79747 8.73613C5.6624 8.83491 5.48662 8.85893 5.33 8.8C5 8.68 4.71 8.5 4.45 8.31C3.9 8.73 3.26 9 2.5 9C2.22 9 2 8.78 2 8.5C2 8.22 2.22 8 2.5 8C2.94 8 3.34 7.86 3.69 7.63C2.9 6.73 2.55 5.72 2.53 5.66C2.44 5.4 2.58 5.11 2.84 5.03C3.1 4.94 3.39 5.08 3.47 5.34C3.47 5.35 3.78 6.21 4.43 6.95C5.19 6.04 5.64 4.75 5.86 4H2.5C2.22 4 2 3.78 2 3.5C2 3.22 2.22 3 2.5 3H4V2.5C4 2.22 4.22 2 4.5 2C4.78 2 5 2.22 5 2.5V3H6.5C6.65 3 6.79 3.07 6.89 3.18C6.98 3.3 7.02 3.45 6.99 3.6C6.98 3.65 6.91 3.98 6.77 4.43C7.11 4.17 7.53 4 8 4H9V1C9 0.45 8.55 0 8 0H1C0.45 0 0 0.45 0 1V10C0 10.55 0.45 11 1 11H6V8.31ZM5.67 7.86C5.86 7.93 5.99 8.1 6 8.29V6.35C5.77 6.79 5.5 7.22 5.18 7.61C5.33 7.71 5.49 7.79 5.67 7.86ZM15 5H8C7.45 5 7 5.45 7 6V15C7 15.55 7.45 16 8 16H15C15.55 16 16 15.55 16 15V6C16 5.45 15.55 5 15 5ZM13.7 12.96C13.4459 13.0656 13.1538 12.9505 13.04 12.7L12.73 12H10.27L9.96 12.7C9.85 12.95 9.55 13.07 9.3 12.95C9.05 12.83 8.93 12.54 9.05 12.29L11.05 7.79C11.21 7.43 11.8 7.43 11.96 7.79L13.96 12.29C14.07 12.55 13.96 12.84 13.7 12.96ZM10.71 11H12.29L11.5 9.23L10.71 11Z"
5605
5757
  })));
5606
5758
 
5607
- const StyledBody$1 = styled__default["default"].div `
5759
+ const StyledBody$2 = styled__default["default"].div `
5608
5760
  margin: ${({ theme }) => theme.space.base * 6}px
5609
5761
  ${({ theme }) => theme.space.base * 4}px;
5610
5762
  `;
@@ -5616,7 +5768,7 @@ const StyledButtonContainer = styled__default["default"].div `
5616
5768
  `;
5617
5769
  const LanguageItem = (props) => {
5618
5770
  var _a;
5619
- const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(StyledBody$1, { children: jsxRuntime.jsx(StyledButtonContainer, { children: Object.keys(props.languages).map((key) => (jsxRuntime.jsxs(Button, Object.assign({ isBasic: true, isStretched: true, value: key, onClick: () => props.onSelectLanguage(key) }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: props.currentLanguage === key ? jsxRuntime.jsx(SvgCheckLg, {}) : jsxRuntime.jsx(SvgEmpty, {}) }), jsxRuntime.jsx(Span, Object.assign({ isBold: props.currentLanguage === key }, { children: props.languages[key].label }))] })))) }) })] }));
5771
+ const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(StyledBody$2, { children: jsxRuntime.jsx(StyledButtonContainer, { children: Object.keys(props.languages).map((key) => (jsxRuntime.jsxs(Button, Object.assign({ isBasic: true, isStretched: true, value: key, onClick: () => props.onSelectLanguage(key) }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: props.currentLanguage === key ? jsxRuntime.jsx(SvgCheckLg, {}) : jsxRuntime.jsx(SvgEmpty, {}) }), jsxRuntime.jsx(Span, Object.assign({ isBold: props.currentLanguage === key }, { children: props.languages[key].label }))] })))) }) })] }));
5620
5772
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, Object.assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgTranslationExists, { fill: theme.palette.blue[600] }) }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.title, jsxRuntime.jsxs(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: [(_a = props.currentLanguageLabel) !== null && _a !== void 0 ? _a : "Now:", " " + props.languages[props.currentLanguage].label] }))] }) })) }));
5621
5773
  };
5622
5774
 
@@ -5641,26 +5793,75 @@ const UserContainer = (props) => {
5641
5793
  return (jsxRuntime.jsxs(ProfileContainer, { children: [props.company && jsxRuntime.jsx(CompanyHolder, Object.assign({ isBold: true }, { children: props.company })), jsxRuntime.jsx(Avatar, { children: (_a = props.picture) !== null && _a !== void 0 ? _a : getInitials(props.name), avatarType: props.picture ? "image" : "text", size: "large" }), jsxRuntime.jsxs(UserDetails, { children: [jsxRuntime.jsx(MD, Object.assign({ isBold: true, style: { color: theme.palette.blue[600] } }, { children: props.name })), jsxRuntime.jsx(SM, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: props.email }))] })] }));
5642
5794
  };
5643
5795
 
5796
+ var _path;
5797
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5798
+ const SvgGearFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
5799
+ width: 16,
5800
+ height: 16,
5801
+ viewBox: "0 0 16 16",
5802
+ fill: "none",
5803
+ xmlns: "http://www.w3.org/2000/svg"
5804
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
5805
+ fillRule: "evenodd",
5806
+ clipRule: "evenodd",
5807
+ d: "M14 8C14 7.58667 13.96 7.17333 13.88 6.77333L15.2933 5.73333C15.48 5.6 15.5466 5.36 15.4666 5.14667C15.16 4.34667 14.7333 3.61333 14.2 2.96C14.057 2.78808 13.8165 2.73342 13.6133 2.82667L12 3.53333C11.3866 2.98667 10.6666 2.56 9.87996 2.30667L9.67996 0.546667C9.66789 0.32368 9.50079 0.139869 9.27996 0.106667C8.85329 0.04 8.43996 0 7.99996 0C7.57329 0 7.14662 0.04 6.73329 0.0933333C6.51996 0.133333 6.35996 0.32 6.33329 0.546667L6.13329 2.29333C5.33329 2.56 4.61329 2.98667 4.01329 3.53333L2.39996 2.81333C2.1969 2.71861 1.95546 2.77348 1.81329 2.94667C1.26662 3.6 0.839956 4.34667 0.533289 5.13333C0.453289 5.34667 0.533289 5.58667 0.706623 5.72L2.13329 6.76C2.03996 7.16 1.99996 7.57333 1.99996 8C1.99996 8.41333 2.03996 8.82667 2.11996 9.22667L0.706623 10.2667C0.519956 10.4 0.453289 10.64 0.533289 10.8533C0.839956 11.6533 1.26662 12.3867 1.79996 13.04C1.94662 13.2133 2.18662 13.2667 2.38662 13.1733L3.99996 12.4667C4.61329 13.0133 5.33329 13.44 6.11996 13.6933L6.30662 15.4533C6.33329 15.68 6.49329 15.8533 6.71996 15.8933C7.14662 15.96 7.55996 16 7.99996 16C8.42662 16 8.85329 15.96 9.26662 15.9067C9.47996 15.8667 9.65329 15.6933 9.67996 15.4667L9.87996 13.7067C10.68 13.44 11.4 13.0267 12 12.48L13.6133 13.1867C13.8133 13.28 14.0666 13.2267 14.2 13.0533C14.7333 12.4 15.16 11.6667 15.4666 10.8667C15.5421 10.6542 15.4721 10.4173 15.2933 10.28L13.8666 9.24C13.96 8.84 14 8.42667 14 8ZM7.99996 10C6.89329 10 5.99996 9.10667 5.99996 8C5.99996 6.89333 6.89329 6 7.99996 6C9.10662 6 9.99996 6.89333 9.99996 8C9.99996 9.10667 9.10662 10 7.99996 10Z",
5808
+ fill: "currentColor"
5809
+ })));
5810
+
5811
+ const StyledBody$1 = styled__default["default"].div `
5812
+ margin: ${({ theme }) => theme.space.base * 6}px
5813
+ ${({ theme }) => theme.space.base * 4}px;
5814
+ `;
5815
+ const TriggerTitle = styled__default["default"](MD) `
5816
+ color: ${({ theme }) => theme.palette.blue[700]};
5817
+ margin-bottom: ${({ theme }) => theme.space.xs};
5818
+ `;
5819
+ const SettingsIntroText = styled__default["default"](reactNotifications.Paragraph) `
5820
+ margin-bottom: ${({ theme }) => theme.space.md};
5821
+ `;
5822
+ const SettingsOutroText = styled__default["default"](reactNotifications.Paragraph) `
5823
+ display: flex;
5824
+ flex-direction: column;
5825
+ margin-top: ${({ theme }) => theme.space.md};
5826
+ `;
5827
+ const SettingsItem = (props) => {
5828
+ var _a, _b, _c, _d, _e, _f, _g, _h;
5829
+ const [value, setValue] = React.useState(props.settingValue || 0);
5830
+ const onToggleSettings = (value) => {
5831
+ setValue(value);
5832
+ props.onSetSettings && props.onSetSettings(value);
5833
+ };
5834
+ const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: (_a = props.i18n) === null || _a === void 0 ? void 0 : _a.settingsTitle })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledBody$1, { children: [props.i18n && props.i18n.settingsIntroText && (jsxRuntime.jsx(SettingsIntroText, { children: jsxRuntime.jsx(SM, { children: props.i18n.settingsIntroText }) })), jsxRuntime.jsxs(Field, { children: [jsxRuntime.jsx(TriggerTitle, Object.assign({ isBold: true }, { children: (_c = (_b = props.i18n) === null || _b === void 0 ? void 0 : _b.settingsToggle) === null || _c === void 0 ? void 0 : _c.title })), jsxRuntime.jsx(Toggle, Object.assign({ checked: value === 1, onChange: () => onToggleSettings(value === 1 ? 0 : 1) }, { children: jsxRuntime.jsx(Label, { children: value === 1
5835
+ ? (_e = (_d = props.i18n) === null || _d === void 0 ? void 0 : _d.settingsToggle) === null || _e === void 0 ? void 0 : _e.on
5836
+ : (_g = (_f = props.i18n) === null || _f === void 0 ? void 0 : _f.settingsToggle) === null || _g === void 0 ? void 0 : _g.off }) }))] }), props.i18n && props.i18n.settingsOutroText && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(SettingsOutroText, { children: [jsxRuntime.jsx(SM, { children: props.i18n.settingsOutroText.paragraph_1 }), jsxRuntime.jsx(SM, { children: props.i18n.settingsOutroText.paragraph_2 })] }), jsxRuntime.jsx(SettingsOutroText, { children: jsxRuntime.jsx(SM, { children: props.i18n.settingsOutroText.paragraph_3 }) })] }))] })] }));
5837
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, Object.assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgGearFill, { color: theme.palette.blue[600] }) }, { children: (_h = props.i18n) === null || _h === void 0 ? void 0 : _h.settingsTitle })) }));
5838
+ };
5839
+
5644
5840
  const StyledList = styled__default["default"].ul `
5645
5841
  padding: 0;
5646
5842
  margin: 0;
5647
5843
  `;
5648
5844
  const UserMenu = (props) => {
5649
- var _a;
5845
+ var _a, _b, _c, _d, _e, _f;
5650
5846
  const [item, setActiveItem] = React.useState("");
5651
5847
  const toggleItem = (item) => {
5652
5848
  setActiveItem(item);
5653
5849
  };
5654
5850
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [item === "" && jsxRuntime.jsx(UserContainer, Object.assign({}, props.user)), jsxRuntime.jsxs(StyledList, { children: [item === "" && props.onFeedbackClick && jsxRuntime.jsx(Separator, {}), props.onFeedbackClick && (jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgThumbsUp, {}), setActive: () => props.onFeedbackClick
5655
5851
  ? props.onFeedbackClick()
5656
- : console.log("feedback fired") }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.feedbackTitle || "Give us your feedback", jsxRuntime.jsx(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: props.feedbackSubTitle || "Help us improve UNGUESS!" }))] }) }))), item === "" && jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(HelpItem, { value: "csm", selectedItem: item, setActive: (i) => toggleItem(i), title: props.csmTitle || "Need Help?", contactLabel: props.csmContactLabel || "Contact your CSM", csm: props.csm, toggleChat: props.onToggleChat, chatSupportLabel: props === null || props === void 0 ? void 0 : props.chatSupportLabel, copyLabel: props === null || props === void 0 ? void 0 : props.copyLabel, onCopyEmail: props === null || props === void 0 ? void 0 : props.onCopyEmail, chatSupport: props === null || props === void 0 ? void 0 : props.chatSupport }), jsxRuntime.jsx(LanguageItem, { title: props.languageTitle || "Change Language", value: "language-selector", selectedItem: item, setActive: (i) => toggleItem(i), languages: props.languages, currentLanguage: props.currentLanguage, currentLanguageLabel: props.currentLanguageLabel, onSelectLanguage: (lang) => props.onSelectLanguage(lang) }), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgLockLockedFill, { color: theme.palette.blue[600] }), setActive: () => {
5852
+ : console.log("feedback fired") }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.feedbackTitle || "Give us your feedback", jsxRuntime.jsx(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: props.feedbackSubTitle || "Help us improve UNGUESS!" }))] }) }))), item === "" && jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(HelpItem, { value: "csm", selectedItem: item, setActive: (i) => toggleItem(i), title: props.csmTitle || "Need Help?", contactLabel: props.csmContactLabel || "Contact your CSM", csm: props.csm, toggleChat: props.onToggleChat, chatSupportLabel: props === null || props === void 0 ? void 0 : props.chatSupportLabel, copyLabel: props === null || props === void 0 ? void 0 : props.copyLabel, onCopyEmail: props === null || props === void 0 ? void 0 : props.onCopyEmail, chatSupport: props === null || props === void 0 ? void 0 : props.chatSupport }), jsxRuntime.jsx(SettingsItem, { value: "settings", selectedItem: item, setActive: (i) => toggleItem(i), settingValue: props.settingValue, title: ((_a = props.i18n) === null || _a === void 0 ? void 0 : _a.settingsTitle) || "Notifications Settings", i18n: {
5853
+ settingsTitle: ((_b = props.i18n) === null || _b === void 0 ? void 0 : _b.settingsTitle) || "Notifications Settings",
5854
+ settingsIntroText: (_c = props.i18n) === null || _c === void 0 ? void 0 : _c.settingsIntroText,
5855
+ settingsOutroText: (_d = props.i18n) === null || _d === void 0 ? void 0 : _d.settingsOutroText,
5856
+ settingsToggle: (_e = props.i18n) === null || _e === void 0 ? void 0 : _e.settingsToggle,
5857
+ }, onSetSettings: props.onSetSettings }), jsxRuntime.jsx(LanguageItem, { title: props.languageTitle || "Change Language", value: "language-selector", selectedItem: item, setActive: (i) => toggleItem(i), languages: props.languages, currentLanguage: props.currentLanguage, currentLanguageLabel: props.currentLanguageLabel, onSelectLanguage: (lang) => props.onSelectLanguage(lang) }), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgLockLockedFill, { color: theme.palette.blue[600] }), setActive: () => {
5657
5858
  if (document.querySelector(".iubenda-cs-preferences-link")) {
5658
5859
  const iubendaBtn = document.querySelector(".iubenda-cs-preferences-link");
5659
5860
  if (iubendaBtn) {
5660
5861
  iubendaBtn.click();
5661
5862
  }
5662
5863
  }
5663
- } }, { children: ((_a = props.privacy) === null || _a === void 0 ? void 0 : _a.title) || "Privacy settings" })), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgExit, { color: theme.palette.red[600] }), setActive: () => props.onLogout() }, { children: props.logoutTitle || "Log out" }))] })] }));
5864
+ } }, { children: ((_f = props.privacy) === null || _f === void 0 ? void 0 : _f.title) || "Privacy settings" })), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgExit, { color: theme.palette.red[600] }), setActive: () => props.onLogout() }, { children: props.logoutTitle || "Log out" }))] })] }));
5664
5865
  };
5665
5866
 
5666
5867
  const StyledModal = styled__default["default"](Modal) `
@@ -6297,6 +6498,7 @@ exports.HeaderItem = HeaderItem;
6297
6498
  exports.HeaderItemIcon = HeaderItemIcon;
6298
6499
  exports.HeaderItemText = HeaderItemText;
6299
6500
  exports.HeaderRow = HeaderRow;
6501
+ exports.Highlight = Highlight;
6300
6502
  exports.Hint = Hint;
6301
6503
  exports.Icon = Icon;
6302
6504
  exports.IconButton = IconButton;