@appquality/unguess-design-system 3.1.109 → 3.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/storybook.yml +2 -2
- package/CHANGELOG.md +26 -0
- package/build/index.d.ts +11 -10
- package/build/index.js +1133 -524
- package/build/stories/alerts/index.d.ts +272 -2
- package/build/stories/buttons/button/index.d.ts +292 -3
- package/build/stories/buttons/button/index.stories.d.ts +0 -1
- package/build/stories/buttons/utils.d.ts +858 -6
- package/build/stories/charts/ChartContainer.d.ts +1 -1
- package/build/stories/chat/index.d.ts +271 -2
- package/build/stories/chat/index.stories.d.ts +0 -1
- package/build/stories/chat/parts/containers.d.ts +278 -7
- package/build/stories/chat/parts/header.d.ts +271 -1
- package/build/stories/dropdowns/field/index.d.ts +271 -2
- package/build/stories/dropdowns/select/index.d.ts +271 -1
- package/build/stories/dropdowns/select/index.stories.d.ts +0 -1
- package/build/stories/editor/index.stories.d.ts +0 -1
- package/build/stories/forms/input/index.d.ts +271 -2
- package/build/stories/forms/input-toggle/index.d.ts +271 -1
- package/build/stories/highlight/CreateObservationButton.d.ts +3 -3
- package/build/stories/highlight/index.stories.d.ts +0 -1
- package/build/stories/label/index.d.ts +272 -2
- package/build/stories/lightbox/parts/body.d.ts +812 -3
- package/build/stories/lightbox/parts/footer.d.ts +271 -2
- package/build/stories/modals/fullscreen/index.d.ts +1090 -8
- package/build/stories/modals/index.d.ts +271 -2
- package/build/stories/navigation/header/header-item/brandItem.d.ts +286 -2
- package/build/stories/navigation/nav/nav-item/accordionItem.d.ts +3 -3
- package/build/stories/navigation/nav/nav-item/navItemProject.d.ts +1 -1
- package/build/stories/navigation/page-header/index.d.ts +1091 -8
- package/build/stories/navigation/page-header/styled/main.d.ts +1092 -8
- package/build/stories/player/index.stories.d.ts +0 -1
- package/build/stories/player/parts/container.d.ts +1 -1
- package/build/stories/player/parts/controlButton.d.ts +292 -2
- package/build/stories/player/parts/controls.d.ts +273 -2
- package/build/stories/player/parts/floatingControls.d.ts +1 -1
- package/build/stories/profile-modal/components/menuItem.d.ts +272 -1
- package/build/stories/profile-modal/components/menuItemIcon.d.ts +1 -1
- package/build/stories/slider/parts/container.d.ts +272 -1
- package/build/stories/slider/parts/slickSlider.d.ts +1 -1
- package/build/stories/special-cards/index.d.ts +829 -11
- package/build/stories/special-cards/styled/header.d.ts +827 -9
- package/build/stories/special-cards/styled/meta.d.ts +1 -1
- package/build/stories/special-cards/styled/thumbnail.d.ts +1 -1
- package/build/stories/stepper/index.d.ts +813 -6
- package/build/stories/tags/index.d.ts +552 -6
- package/build/stories/timeline/index.d.ts +273 -4
- package/build/stories/transcript/_data.d.ts +17 -0
- package/build/stories/transcript/extensions/theme/index.d.ts +347 -0
- package/build/stories/transcript/findActiveWord.d.ts +2 -0
- package/build/stories/transcript/floatingMenu.d.ts +8 -0
- package/build/stories/transcript/getParsedContent.d.ts +26 -0
- package/build/stories/transcript/index.d.ts +53 -0
- package/build/stories/transcript/index.stories.d.ts +23 -0
- package/build/stories/transcript/nodes/active/Component.d.ts +6 -0
- package/build/stories/transcript/nodes/active/index.d.ts +4 -0
- package/build/stories/transcript/nodes/observation/Component.d.ts +6 -0
- package/build/stories/transcript/nodes/observation/index.d.ts +2 -0
- package/build/stories/transcript/nodes/paragraph/Component.d.ts +6 -0
- package/build/stories/transcript/nodes/paragraph/index.d.ts +2 -0
- package/build/stories/transcript/nodes/word/Component.d.ts +6 -0
- package/build/stories/transcript/nodes/word/index.d.ts +2 -0
- package/build/stories/transcript/search.d.ts +9 -0
- package/build/stories/transcript/useEditor.d.ts +11 -0
- package/build/stories/typography/typescale/anchortag/index.stories.d.ts +1 -5
- package/build/stories/typography/typescale/index.d.ts +286 -14
- package/build/stories/typography/typescale/index.stories.d.ts +1 -5
- package/package.json +22 -14
package/build/index.js
CHANGED
|
@@ -21,9 +21,9 @@ var bullet = require('@nivo/bullet');
|
|
|
21
21
|
var web = require('@react-spring/web');
|
|
22
22
|
var tooltip = require('@nivo/tooltip');
|
|
23
23
|
var pie = require('@nivo/pie');
|
|
24
|
+
var line = require('@nivo/line');
|
|
24
25
|
var sunburst = require('@nivo/sunburst');
|
|
25
26
|
var waffle = require('@nivo/waffle');
|
|
26
|
-
var line = require('@nivo/line');
|
|
27
27
|
var reactForms = require('@zendeskgarden/react-forms');
|
|
28
28
|
var react = require('@tiptap/react');
|
|
29
29
|
var reactTooltips = require('@zendeskgarden/react-tooltips');
|
|
@@ -49,6 +49,10 @@ var formik = require('formik');
|
|
|
49
49
|
var reactChrome = require('@zendeskgarden/react-chrome');
|
|
50
50
|
var reactPagination = require('@zendeskgarden/react-pagination');
|
|
51
51
|
var reactTables = require('@zendeskgarden/react-tables');
|
|
52
|
+
var SearchAndReplace = require('@sereneinserenade/tiptap-search-and-replace');
|
|
53
|
+
var Document = require('@tiptap/extension-document');
|
|
54
|
+
var Text$2 = require('@tiptap/extension-text');
|
|
55
|
+
var model = require('@tiptap/pm/model');
|
|
52
56
|
|
|
53
57
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
54
58
|
|
|
@@ -85,6 +89,9 @@ var Image__default = /*#__PURE__*/_interopDefaultLegacy(Image$2);
|
|
|
85
89
|
var Dropcursor__default = /*#__PURE__*/_interopDefaultLegacy(Dropcursor);
|
|
86
90
|
var SlickSlider__default = /*#__PURE__*/_interopDefaultLegacy(SlickSlider);
|
|
87
91
|
var Video__default = /*#__PURE__*/_interopDefaultLegacy(Video);
|
|
92
|
+
var SearchAndReplace__default = /*#__PURE__*/_interopDefaultLegacy(SearchAndReplace);
|
|
93
|
+
var Document__default = /*#__PURE__*/_interopDefaultLegacy(Document);
|
|
94
|
+
var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text$2);
|
|
88
95
|
|
|
89
96
|
/*
|
|
90
97
|
* Design principles https://garden.zendesk.com/design/color (accessed 28 apr 2023)
|
|
@@ -856,48 +863,48 @@ Tag.Avatar = StyledAvatar;
|
|
|
856
863
|
Tag.Close = StyledClose;
|
|
857
864
|
Tag.SecondaryText = StyledSpan;
|
|
858
865
|
|
|
859
|
-
var _path$
|
|
860
|
-
function _extends$
|
|
861
|
-
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
866
|
+
var _path$H;
|
|
867
|
+
function _extends$U() { return _extends$U = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$U.apply(null, arguments); }
|
|
868
|
+
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$U({
|
|
862
869
|
width: 24,
|
|
863
870
|
height: 24,
|
|
864
871
|
viewBox: "0 0 24 24",
|
|
865
872
|
fill: "none",
|
|
866
873
|
xmlns: "http://www.w3.org/2000/svg"
|
|
867
|
-
}, props), _path$
|
|
874
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
868
875
|
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",
|
|
869
876
|
fill: "#E80C7A"
|
|
870
877
|
})));
|
|
871
878
|
|
|
872
|
-
var _path$
|
|
873
|
-
function _extends$
|
|
874
|
-
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
879
|
+
var _path$G;
|
|
880
|
+
function _extends$T() { return _extends$T = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$T.apply(null, arguments); }
|
|
881
|
+
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$T({
|
|
875
882
|
width: 24,
|
|
876
883
|
height: 24,
|
|
877
884
|
viewBox: "0 0 24 24",
|
|
878
885
|
fill: "none",
|
|
879
886
|
xmlns: "http://www.w3.org/2000/svg"
|
|
880
|
-
}, props), _path$
|
|
887
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
881
888
|
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",
|
|
882
889
|
fill: "#FFCD1A"
|
|
883
890
|
})));
|
|
884
891
|
|
|
885
|
-
var _path$
|
|
886
|
-
function _extends$
|
|
887
|
-
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
892
|
+
var _path$F;
|
|
893
|
+
function _extends$S() { return _extends$S = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$S.apply(null, arguments); }
|
|
894
|
+
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$S({
|
|
888
895
|
width: 24,
|
|
889
896
|
height: 24,
|
|
890
897
|
viewBox: "0 0 24 24",
|
|
891
898
|
fill: "none",
|
|
892
899
|
xmlns: "http://www.w3.org/2000/svg"
|
|
893
|
-
}, props), _path$
|
|
900
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
894
901
|
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",
|
|
895
902
|
fill: "#7B0DFF"
|
|
896
903
|
})));
|
|
897
904
|
|
|
898
|
-
var _rect$4, _path$
|
|
899
|
-
function _extends$
|
|
900
|
-
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
905
|
+
var _rect$4, _path$E, _path2$c, _path3$4;
|
|
906
|
+
function _extends$R() { return _extends$R = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$R.apply(null, arguments); }
|
|
907
|
+
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
901
908
|
width: 24,
|
|
902
909
|
height: 24,
|
|
903
910
|
viewBox: "0 0 24 24",
|
|
@@ -908,7 +915,7 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
908
915
|
height: 24,
|
|
909
916
|
rx: 12,
|
|
910
917
|
fill: "#F6F6F8"
|
|
911
|
-
})), _path$
|
|
918
|
+
})), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
912
919
|
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",
|
|
913
920
|
fill: "#50BF95"
|
|
914
921
|
})), _path2$c || (_path2$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -919,9 +926,9 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
919
926
|
fill: "#007345"
|
|
920
927
|
})));
|
|
921
928
|
|
|
922
|
-
var _rect$3, _path$
|
|
923
|
-
function _extends$
|
|
924
|
-
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
929
|
+
var _rect$3, _path$D, _path2$b;
|
|
930
|
+
function _extends$Q() { return _extends$Q = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$Q.apply(null, arguments); }
|
|
931
|
+
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
925
932
|
width: 24,
|
|
926
933
|
height: 24,
|
|
927
934
|
viewBox: "0 0 24 24",
|
|
@@ -932,7 +939,7 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
932
939
|
height: 24,
|
|
933
940
|
rx: 12,
|
|
934
941
|
fill: "#F6F6F8"
|
|
935
|
-
})), _path$
|
|
942
|
+
})), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
936
943
|
fillRule: "evenodd",
|
|
937
944
|
clipRule: "evenodd",
|
|
938
945
|
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",
|
|
@@ -944,9 +951,9 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
944
951
|
fill: "#F4AC1A"
|
|
945
952
|
})));
|
|
946
953
|
|
|
947
|
-
var _rect$2, _path$
|
|
948
|
-
function _extends$
|
|
949
|
-
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
954
|
+
var _rect$2, _path$C, _path2$a;
|
|
955
|
+
function _extends$P() { return _extends$P = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$P.apply(null, arguments); }
|
|
956
|
+
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
950
957
|
width: 24,
|
|
951
958
|
height: 24,
|
|
952
959
|
viewBox: "0 0 24 24",
|
|
@@ -957,7 +964,7 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
957
964
|
height: 24,
|
|
958
965
|
rx: 12,
|
|
959
966
|
fill: "#F6F6F8"
|
|
960
|
-
})), _path$
|
|
967
|
+
})), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
961
968
|
d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
|
|
962
969
|
stroke: "#024780",
|
|
963
970
|
strokeWidth: 1.5,
|
|
@@ -971,9 +978,9 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
971
978
|
strokeLinejoin: "round"
|
|
972
979
|
})));
|
|
973
980
|
|
|
974
|
-
var _rect$1, _path$
|
|
975
|
-
function _extends$
|
|
976
|
-
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
981
|
+
var _rect$1, _path$B, _path2$9, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
|
|
982
|
+
function _extends$O() { return _extends$O = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$O.apply(null, arguments); }
|
|
983
|
+
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
977
984
|
width: 24,
|
|
978
985
|
height: 24,
|
|
979
986
|
viewBox: "0 0 24 24",
|
|
@@ -984,7 +991,7 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
984
991
|
height: 24,
|
|
985
992
|
rx: 12,
|
|
986
993
|
fill: "#F6F6F8"
|
|
987
|
-
})), _path$
|
|
994
|
+
})), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
988
995
|
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",
|
|
989
996
|
fill: "#D1820A"
|
|
990
997
|
})), _path2$9 || (_path2$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1016,9 +1023,9 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
1016
1023
|
fill: "#FFB65A"
|
|
1017
1024
|
})));
|
|
1018
1025
|
|
|
1019
|
-
var _g$c, _path$
|
|
1020
|
-
function _extends$
|
|
1021
|
-
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1026
|
+
var _g$c, _path$A, _path2$8, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
1027
|
+
function _extends$N() { return _extends$N = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$N.apply(null, arguments); }
|
|
1028
|
+
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
1022
1029
|
width: 24,
|
|
1023
1030
|
height: 24,
|
|
1024
1031
|
viewBox: "0 0 24 24",
|
|
@@ -1030,7 +1037,7 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
|
|
|
1030
1037
|
opacity: 0.3,
|
|
1031
1038
|
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",
|
|
1032
1039
|
fill: "#50BF95"
|
|
1033
|
-
}))), _path$
|
|
1040
|
+
}))), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1034
1041
|
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",
|
|
1035
1042
|
fill: "#2B8473",
|
|
1036
1043
|
stroke: "#2B8473"
|
|
@@ -1086,9 +1093,9 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
|
|
|
1086
1093
|
fill: "#ECF4F2"
|
|
1087
1094
|
})));
|
|
1088
1095
|
|
|
1089
|
-
var _g$b, _path$
|
|
1090
|
-
function _extends$
|
|
1091
|
-
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1096
|
+
var _g$b, _path$z;
|
|
1097
|
+
function _extends$M() { return _extends$M = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$M.apply(null, arguments); }
|
|
1098
|
+
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
1092
1099
|
width: 24,
|
|
1093
1100
|
height: 24,
|
|
1094
1101
|
viewBox: "0 0 24 24",
|
|
@@ -1100,7 +1107,7 @@ const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createEleme
|
|
|
1100
1107
|
opacity: 0.3,
|
|
1101
1108
|
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",
|
|
1102
1109
|
fill: "#003A57"
|
|
1103
|
-
}))), _path$
|
|
1110
|
+
}))), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1104
1111
|
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",
|
|
1105
1112
|
fill: "#003A57"
|
|
1106
1113
|
})));
|
|
@@ -1742,59 +1749,6 @@ const BulletChart = ({ width, height, ranges, values }) => {
|
|
|
1742
1749
|
}, tooltip: CustomTooltip, rangeColors: theme.palette.grey[200], rangeBorderColor: "white", rangeBorderWidth: 2, margin: { top: 0, right: 5, bottom: -1, left: 0 } }) })) })));
|
|
1743
1750
|
};
|
|
1744
1751
|
|
|
1745
|
-
const CenteredItem = ({ centerX, centerY, theme, radius, label, value, fontSizeMultiplier, }) => {
|
|
1746
|
-
const parameter = 6;
|
|
1747
|
-
const fontSizeFactor = ((fontSizeMultiplier ? fontSizeMultiplier : 1) * radius) / (14 * parameter);
|
|
1748
|
-
const spacing = ((fontSizeMultiplier ? fontSizeMultiplier : 1) * radius) /
|
|
1749
|
-
(parameter * 0.9);
|
|
1750
|
-
const shift = -radius / (parameter * 2.5);
|
|
1751
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && (jsxRuntime.jsx("g", Object.assign({ transform: `translate(${centerX},${centerY})` }, { children: jsxRuntime.jsx("text", Object.assign({ textAnchor: "middle", baselineShift: shift + (value ? spacing : spacing / 2), fill: theme.palette.grey[600], style: {
|
|
1752
|
-
fontSize: parseInt(theme.fontSizes.md.replace("px", "")) * fontSizeFactor,
|
|
1753
|
-
} }, { children: label })) }))), value && (jsxRuntime.jsx("g", Object.assign({ transform: `translate(${centerX},${centerY})` }, { children: jsxRuntime.jsx("text", Object.assign({ textAnchor: "middle", baselineShift: shift - (label ? spacing : spacing / 2), fill: theme.palette.blue[600], style: {
|
|
1754
|
-
fontSize: parseInt(theme.fontSizes.xxl.replace("px", "")) *
|
|
1755
|
-
fontSizeFactor,
|
|
1756
|
-
fontWeight: theme.fontWeights.semibold,
|
|
1757
|
-
} }, { children: value })) })))] }));
|
|
1758
|
-
};
|
|
1759
|
-
|
|
1760
|
-
const PieChart = ({ theme, colors, width, height, data, centerItem, margin, tooltip, legend, arcLinkLabelsSkipAngle, labelFormatter, }) => {
|
|
1761
|
-
var _a;
|
|
1762
|
-
const themeContext = React.useContext(styled.ThemeContext);
|
|
1763
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx(pie.ResponsivePie, { theme: Object.assign({}, Object.assign(Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), theme), { labels: Object.assign(Object.assign({}, theme === null || theme === void 0 ? void 0 : theme.labels), { text: Object.assign({ fontWeight: themeContext.fontWeights.semibold, fill: themeContext.palette.grey[800] }, (_a = theme === null || theme === void 0 ? void 0 : theme.labels) === null || _a === void 0 ? void 0 : _a.text) }) })), colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, enableArcLabels: false, arcLinkLabelsColor: { from: "color" }, arcLinkLabelsSkipAngle: arcLinkLabelsSkipAngle !== null && arcLinkLabelsSkipAngle !== void 0 ? arcLinkLabelsSkipAngle : 10, arcLinkLabelsThickness: 2, arcLinkLabel: (d) => labelFormatter
|
|
1764
|
-
? labelFormatter({
|
|
1765
|
-
label: d.label,
|
|
1766
|
-
id: d.id,
|
|
1767
|
-
value: d.value,
|
|
1768
|
-
data: d.data,
|
|
1769
|
-
labelPosition: "arclink",
|
|
1770
|
-
})
|
|
1771
|
-
: (d.label || d.id).toString(), arcLinkLabelsDiagonalLength: 8, arcLinkLabelsStraightLength: 12, arcLinkLabelsTextOffset: 4, padAngle: 2, data: data, margin: Object.assign({ top: 40, bottom: 40 }, margin), tooltip: tooltip
|
|
1772
|
-
? (node) => {
|
|
1773
|
-
const data = node.datum.data;
|
|
1774
|
-
const label = (data === null || data === void 0 ? void 0 : data.label) || data.id;
|
|
1775
|
-
const value = data.value;
|
|
1776
|
-
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: tooltip({ label, value, data }) });
|
|
1777
|
-
}
|
|
1778
|
-
: undefined, cornerRadius: 2, innerRadius: 0.8, layers: [
|
|
1779
|
-
"arcs",
|
|
1780
|
-
"arcLabels",
|
|
1781
|
-
"arcLinkLabels",
|
|
1782
|
-
...(centerItem
|
|
1783
|
-
? [
|
|
1784
|
-
(props) => (jsxRuntime.jsx(CenteredItem, Object.assign({}, props, { theme: themeContext, label: centerItem.label, value: centerItem.value, fontSizeMultiplier: centerItem.fontSizeMultiplier }))),
|
|
1785
|
-
]
|
|
1786
|
-
: []),
|
|
1787
|
-
], activeOuterRadiusOffset: 12 }) })), jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: "auto" }, { children: legend ? (jsxRuntime.jsx(Legend, Object.assign({ colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, data: data.map((d) => labelFormatter
|
|
1788
|
-
? labelFormatter({
|
|
1789
|
-
label: d.label,
|
|
1790
|
-
id: d.id,
|
|
1791
|
-
value: d.value,
|
|
1792
|
-
data: d,
|
|
1793
|
-
labelPosition: "legend",
|
|
1794
|
-
})
|
|
1795
|
-
: d.id.toString()) }, (typeof legend === "object" && legend)))) : undefined }))] }));
|
|
1796
|
-
};
|
|
1797
|
-
|
|
1798
1752
|
const AbsoluteChartContainer = styled__default["default"](ChartContainer) `
|
|
1799
1753
|
position: absolute;
|
|
1800
1754
|
left: 0;
|
|
@@ -1838,132 +1792,62 @@ const HalfPieChart = ({ theme, colors, width, height, data, margin, showArcLinks
|
|
|
1838
1792
|
}, mode: "back" })] })));
|
|
1839
1793
|
};
|
|
1840
1794
|
|
|
1841
|
-
const
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
if (data.value) {
|
|
1855
|
-
return data.value;
|
|
1856
|
-
}
|
|
1857
|
-
if (data.children) {
|
|
1858
|
-
return data.children.reduce((acc, item) => {
|
|
1859
|
-
return acc + getChildrenValue(item);
|
|
1860
|
-
}, 0);
|
|
1861
|
-
}
|
|
1862
|
-
return 0;
|
|
1795
|
+
const CenteredItem = ({ centerX, centerY, theme, radius, label, value, fontSizeMultiplier, }) => {
|
|
1796
|
+
const parameter = 6;
|
|
1797
|
+
const fontSizeFactor = ((fontSizeMultiplier ? fontSizeMultiplier : 1) * radius) / (14 * parameter);
|
|
1798
|
+
const spacing = ((fontSizeMultiplier ? fontSizeMultiplier : 1) * radius) /
|
|
1799
|
+
(parameter * 0.9);
|
|
1800
|
+
const shift = -radius / (parameter * 2.5);
|
|
1801
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && (jsxRuntime.jsx("g", Object.assign({ transform: `translate(${centerX},${centerY})` }, { children: jsxRuntime.jsx("text", Object.assign({ textAnchor: "middle", baselineShift: shift + (value ? spacing : spacing / 2), fill: theme.palette.grey[600], style: {
|
|
1802
|
+
fontSize: parseInt(theme.fontSizes.md.replace("px", "")) * fontSizeFactor,
|
|
1803
|
+
} }, { children: label })) }))), value && (jsxRuntime.jsx("g", Object.assign({ transform: `translate(${centerX},${centerY})` }, { children: jsxRuntime.jsx("text", Object.assign({ textAnchor: "middle", baselineShift: shift - (label ? spacing : spacing / 2), fill: theme.palette.blue[600], style: {
|
|
1804
|
+
fontSize: parseInt(theme.fontSizes.xxl.replace("px", "")) *
|
|
1805
|
+
fontSizeFactor,
|
|
1806
|
+
fontWeight: theme.fontWeights.semibold,
|
|
1807
|
+
} }, { children: value })) })))] }));
|
|
1863
1808
|
};
|
|
1864
1809
|
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1867
|
-
cursor: pointer;
|
|
1868
|
-
|
|
1869
|
-
fill: ${({ theme }) => theme.palette.blue[500]};
|
|
1870
|
-
&:hover {
|
|
1871
|
-
fill: ${({ theme }) => theme.palette.blue[700]};
|
|
1872
|
-
}
|
|
1873
|
-
`;
|
|
1874
|
-
const ResetButton = ({ centerX, centerY, radius, theme, onClick, }) => (jsxRuntime.jsx("g", Object.assign({ transform: `translate(${centerX - radius},${centerY - radius})` }, { children: jsxRuntime.jsx(ResetText, Object.assign({ onClick: onClick, radius: radius }, { children: `< Reset` })) })));
|
|
1875
|
-
|
|
1876
|
-
const SunburstChart = ({ colors, width, height, data, centerItem, margin, onChange, tooltip, legend, }) => {
|
|
1810
|
+
const PieChart = ({ theme, colors, width, height, data, centerItem, margin, tooltip, legend, arcLinkLabelsSkipAngle, labelFormatter, }) => {
|
|
1811
|
+
var _a;
|
|
1877
1812
|
const themeContext = React.useContext(styled.ThemeContext);
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
? Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), { tooltip: Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME.tooltip), { container: {
|
|
1893
|
-
padding: 0,
|
|
1894
|
-
} }) }) : DEFAULT_CHARTS_THEME, colors: currentColor
|
|
1895
|
-
? () => currentColor
|
|
1896
|
-
: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, borderWidth: 4, cornerRadius: 4, onMouseEnter: (node) => {
|
|
1897
|
-
if (node.data.children) {
|
|
1898
|
-
setIsHovering(true);
|
|
1899
|
-
}
|
|
1900
|
-
}, onMouseLeave: (node) => {
|
|
1901
|
-
if (node.data.children) {
|
|
1902
|
-
setIsHovering(false);
|
|
1813
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx(pie.ResponsivePie, { theme: Object.assign({}, Object.assign(Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), theme), { labels: Object.assign(Object.assign({}, theme === null || theme === void 0 ? void 0 : theme.labels), { text: Object.assign({ fontWeight: themeContext.fontWeights.semibold, fill: themeContext.palette.grey[800] }, (_a = theme === null || theme === void 0 ? void 0 : theme.labels) === null || _a === void 0 ? void 0 : _a.text) }) })), colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, enableArcLabels: false, arcLinkLabelsColor: { from: "color" }, arcLinkLabelsSkipAngle: arcLinkLabelsSkipAngle !== null && arcLinkLabelsSkipAngle !== void 0 ? arcLinkLabelsSkipAngle : 10, arcLinkLabelsThickness: 2, arcLinkLabel: (d) => labelFormatter
|
|
1814
|
+
? labelFormatter({
|
|
1815
|
+
label: d.label,
|
|
1816
|
+
id: d.id,
|
|
1817
|
+
value: d.value,
|
|
1818
|
+
data: d.data,
|
|
1819
|
+
labelPosition: "arclink",
|
|
1820
|
+
})
|
|
1821
|
+
: (d.label || d.id).toString(), arcLinkLabelsDiagonalLength: 8, arcLinkLabelsStraightLength: 12, arcLinkLabelsTextOffset: 4, padAngle: 2, data: data, margin: Object.assign({ top: 40, bottom: 40 }, margin), tooltip: tooltip
|
|
1822
|
+
? (node) => {
|
|
1823
|
+
const data = node.datum.data;
|
|
1824
|
+
const label = (data === null || data === void 0 ? void 0 : data.label) || data.id;
|
|
1825
|
+
const value = data.value;
|
|
1826
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: tooltip({ label, value, data }) });
|
|
1903
1827
|
}
|
|
1904
|
-
|
|
1905
|
-
? (node) => (jsxRuntime.jsx(jsxRuntime.Fragment, { children: tooltip({
|
|
1906
|
-
label: node.data.label || node.data.name,
|
|
1907
|
-
value: getChildrenValue(node.data),
|
|
1908
|
-
data: Object.assign(Object.assign({}, node.data), { children: undefined }),
|
|
1909
|
-
}) }))
|
|
1910
|
-
: undefined, layers: [
|
|
1828
|
+
: undefined, cornerRadius: 2, innerRadius: 0.8, layers: [
|
|
1911
1829
|
"arcs",
|
|
1830
|
+
"arcLabels",
|
|
1831
|
+
"arcLinkLabels",
|
|
1912
1832
|
...(centerItem
|
|
1913
1833
|
? [
|
|
1914
|
-
(props) => (jsxRuntime.jsx(CenteredItem, Object.assign({}, props, {
|
|
1915
|
-
]
|
|
1916
|
-
: []),
|
|
1917
|
-
...(currentColor
|
|
1918
|
-
? [
|
|
1919
|
-
(props) => (jsxRuntime.jsx(ResetButton, { centerX: props.centerX, centerY: props.centerY, radius: props.radius, theme: themeContext, onClick: () => {
|
|
1920
|
-
changeDataSlice({
|
|
1921
|
-
data,
|
|
1922
|
-
});
|
|
1923
|
-
} })),
|
|
1834
|
+
(props) => (jsxRuntime.jsx(CenteredItem, Object.assign({}, props, { theme: themeContext, label: centerItem.label, value: centerItem.value, fontSizeMultiplier: centerItem.fontSizeMultiplier }))),
|
|
1924
1835
|
]
|
|
1925
1836
|
: []),
|
|
1926
|
-
],
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
};
|
|
1936
|
-
|
|
1937
|
-
const CustomCell = ({ position, size, x, y, color, fill, opacity, borderWidth, borderColor, data, onHover, onLeave, onClick, }) => (jsxRuntime.jsx("circle", { r: size / 2, cx: x + size / 2, cy: y + size / 2, fill: fill || color, strokeWidth: borderWidth, stroke: borderColor, opacity: opacity, onMouseEnter: onHover, onMouseMove: onHover, onMouseLeave: onLeave, onClick: event => {
|
|
1938
|
-
onClick({ position, color, x, y, data }, event);
|
|
1939
|
-
} }));
|
|
1940
|
-
|
|
1941
|
-
const WaffleChart = ({ height, width, data, total, tooltip, }) => {
|
|
1942
|
-
return (jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx(waffle.ResponsiveWaffle, { theme: tooltip
|
|
1943
|
-
? Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), { tooltip: Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME.tooltip), { container: {
|
|
1944
|
-
padding: 0,
|
|
1945
|
-
} }) }) : DEFAULT_CHARTS_THEME, data: [
|
|
1946
|
-
{
|
|
1947
|
-
id: "green-circles",
|
|
1948
|
-
label: data.label,
|
|
1949
|
-
value: data.value,
|
|
1950
|
-
},
|
|
1951
|
-
{
|
|
1952
|
-
id: "grey-circles",
|
|
1953
|
-
label: total.label,
|
|
1954
|
-
value: total.value,
|
|
1955
|
-
},
|
|
1956
|
-
], tooltip: ({ value, label }) => tooltip ? tooltip({ label, value }) : jsxRuntime.jsx(jsxRuntime.Fragment, { children: `${label}: ${value}` }), fillDirection: "bottom", total: total.value, rows: 6, columns: 8, colors: CHARTS_COLOR_SCHEME_MONO,
|
|
1957
|
-
// @ts-ignore property cellComponent does not exist, but it does
|
|
1958
|
-
cellComponent: (_a) => {
|
|
1959
|
-
var rest = __rest(_a, ["borderWidth", "borderColor"]);
|
|
1960
|
-
return (jsxRuntime.jsx(CustomCell, Object.assign({ borderWidth: 2, borderColor: "white" }, rest)));
|
|
1961
|
-
} }) })));
|
|
1837
|
+
], activeOuterRadiusOffset: 12 }) })), jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: "auto" }, { children: legend ? (jsxRuntime.jsx(Legend, Object.assign({ colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, data: data.map((d) => labelFormatter
|
|
1838
|
+
? labelFormatter({
|
|
1839
|
+
label: d.label,
|
|
1840
|
+
id: d.id,
|
|
1841
|
+
value: d.value,
|
|
1842
|
+
data: d,
|
|
1843
|
+
labelPosition: "legend",
|
|
1844
|
+
})
|
|
1845
|
+
: d.id.toString()) }, (typeof legend === "object" && legend)))) : undefined }))] }));
|
|
1962
1846
|
};
|
|
1963
1847
|
|
|
1964
1848
|
var _g$a, _defs$4;
|
|
1965
|
-
function _extends$
|
|
1966
|
-
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1849
|
+
function _extends$L() { return _extends$L = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$L.apply(null, arguments); }
|
|
1850
|
+
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
1967
1851
|
width: 27,
|
|
1968
1852
|
height: 26,
|
|
1969
1853
|
viewBox: "0 0 27 26",
|
|
@@ -1986,8 +1870,8 @@ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1986
1870
|
})))));
|
|
1987
1871
|
|
|
1988
1872
|
var _g$9, _defs$3;
|
|
1989
|
-
function _extends$
|
|
1990
|
-
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1873
|
+
function _extends$K() { return _extends$K = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$K.apply(null, arguments); }
|
|
1874
|
+
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
1991
1875
|
width: 27,
|
|
1992
1876
|
height: 26,
|
|
1993
1877
|
viewBox: "0 0 27 26",
|
|
@@ -2010,8 +1894,8 @@ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2010
1894
|
})))));
|
|
2011
1895
|
|
|
2012
1896
|
var _g$8, _defs$2;
|
|
2013
|
-
function _extends$
|
|
2014
|
-
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1897
|
+
function _extends$J() { return _extends$J = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$J.apply(null, arguments); }
|
|
1898
|
+
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
2015
1899
|
width: 27,
|
|
2016
1900
|
height: 26,
|
|
2017
1901
|
viewBox: "0 0 27 26",
|
|
@@ -2040,8 +1924,8 @@ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2040
1924
|
})))));
|
|
2041
1925
|
|
|
2042
1926
|
var _g$7, _defs$1;
|
|
2043
|
-
function _extends$
|
|
2044
|
-
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1927
|
+
function _extends$I() { return _extends$I = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$I.apply(null, arguments); }
|
|
1928
|
+
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
2045
1929
|
width: 27,
|
|
2046
1930
|
height: 26,
|
|
2047
1931
|
viewBox: "0 0 27 26",
|
|
@@ -2070,8 +1954,8 @@ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2070
1954
|
})))));
|
|
2071
1955
|
|
|
2072
1956
|
var _g$6, _defs;
|
|
2073
|
-
function _extends$
|
|
2074
|
-
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1957
|
+
function _extends$H() { return _extends$H = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$H.apply(null, arguments); }
|
|
1958
|
+
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
2075
1959
|
width: 26,
|
|
2076
1960
|
height: 26,
|
|
2077
1961
|
viewBox: "0 0 26 26",
|
|
@@ -2299,10 +2183,133 @@ const SentimentChart = ({ data, width, height, margin, tooltip, i18n, }) => {
|
|
|
2299
2183
|
], enableCrosshair: false, isInteractive: true, enableSlices: "x" }) })) }));
|
|
2300
2184
|
};
|
|
2301
2185
|
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2186
|
+
const flatten = (data) => data.reduce((acc, item) => {
|
|
2187
|
+
if (item.children) {
|
|
2188
|
+
return [...acc, item, ...flatten(item.children)];
|
|
2189
|
+
}
|
|
2190
|
+
return [...acc, item];
|
|
2191
|
+
}, []);
|
|
2192
|
+
const findChildrenByName = (data, name) => {
|
|
2193
|
+
if (!data.children)
|
|
2194
|
+
return undefined;
|
|
2195
|
+
return flatten(data.children).find((searchedName) => searchedName.name === name);
|
|
2196
|
+
};
|
|
2197
|
+
|
|
2198
|
+
const getChildrenValue = (data) => {
|
|
2199
|
+
if (data.value) {
|
|
2200
|
+
return data.value;
|
|
2201
|
+
}
|
|
2202
|
+
if (data.children) {
|
|
2203
|
+
return data.children.reduce((acc, item) => {
|
|
2204
|
+
return acc + getChildrenValue(item);
|
|
2205
|
+
}, 0);
|
|
2206
|
+
}
|
|
2207
|
+
return 0;
|
|
2208
|
+
};
|
|
2209
|
+
|
|
2210
|
+
const ResetText = styled__default["default"].text `
|
|
2211
|
+
font-size: ${({ radius, theme }) => (parseInt(theme.fontSizes.md.replace("px", "")) * radius) / 130}px;
|
|
2212
|
+
cursor: pointer;
|
|
2213
|
+
|
|
2214
|
+
fill: ${({ theme }) => theme.palette.blue[500]};
|
|
2215
|
+
&:hover {
|
|
2216
|
+
fill: ${({ theme }) => theme.palette.blue[700]};
|
|
2217
|
+
}
|
|
2218
|
+
`;
|
|
2219
|
+
const ResetButton = ({ centerX, centerY, radius, theme, onClick, }) => (jsxRuntime.jsx("g", Object.assign({ transform: `translate(${centerX - radius},${centerY - radius})` }, { children: jsxRuntime.jsx(ResetText, Object.assign({ onClick: onClick, radius: radius }, { children: `< Reset` })) })));
|
|
2220
|
+
|
|
2221
|
+
const SunburstChart = ({ colors, width, height, data, centerItem, margin, onChange, tooltip, legend, }) => {
|
|
2222
|
+
const themeContext = React.useContext(styled.ThemeContext);
|
|
2223
|
+
const [currentData, setCurrentData] = React.useState(data);
|
|
2224
|
+
const [currentColor, setCurrentColor] = React.useState();
|
|
2225
|
+
const [isHovering, setIsHovering] = React.useState(false);
|
|
2226
|
+
const changeDataSlice = ({ data, color, }) => {
|
|
2227
|
+
setCurrentData(data);
|
|
2228
|
+
setCurrentColor(color);
|
|
2229
|
+
};
|
|
2230
|
+
React.useEffect(() => {
|
|
2231
|
+
if (onChange)
|
|
2232
|
+
onChange(currentData);
|
|
2233
|
+
}, [currentData]);
|
|
2234
|
+
if (!data.children)
|
|
2235
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: "No data" });
|
|
2236
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height, style: isHovering ? { cursor: "pointer" } : undefined }, { children: jsxRuntime.jsx(sunburst.ResponsiveSunburst, { theme: tooltip
|
|
2237
|
+
? Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), { tooltip: Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME.tooltip), { container: {
|
|
2238
|
+
padding: 0,
|
|
2239
|
+
} }) }) : DEFAULT_CHARTS_THEME, colors: currentColor
|
|
2240
|
+
? () => currentColor
|
|
2241
|
+
: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, borderWidth: 4, cornerRadius: 4, onMouseEnter: (node) => {
|
|
2242
|
+
if (node.data.children) {
|
|
2243
|
+
setIsHovering(true);
|
|
2244
|
+
}
|
|
2245
|
+
}, onMouseLeave: (node) => {
|
|
2246
|
+
if (node.data.children) {
|
|
2247
|
+
setIsHovering(false);
|
|
2248
|
+
}
|
|
2249
|
+
}, tooltip: tooltip
|
|
2250
|
+
? (node) => (jsxRuntime.jsx(jsxRuntime.Fragment, { children: tooltip({
|
|
2251
|
+
label: node.data.label || node.data.name,
|
|
2252
|
+
value: getChildrenValue(node.data),
|
|
2253
|
+
data: Object.assign(Object.assign({}, node.data), { children: undefined }),
|
|
2254
|
+
}) }))
|
|
2255
|
+
: undefined, layers: [
|
|
2256
|
+
"arcs",
|
|
2257
|
+
...(centerItem
|
|
2258
|
+
? [
|
|
2259
|
+
(props) => (jsxRuntime.jsx(CenteredItem, Object.assign({}, props, { fontSizeMultiplier: centerItem.fontSizeMultiplier, theme: themeContext, label: centerItem.label, value: centerItem.value }))),
|
|
2260
|
+
]
|
|
2261
|
+
: []),
|
|
2262
|
+
...(currentColor
|
|
2263
|
+
? [
|
|
2264
|
+
(props) => (jsxRuntime.jsx(ResetButton, { centerX: props.centerX, centerY: props.centerY, radius: props.radius, theme: themeContext, onClick: () => {
|
|
2265
|
+
changeDataSlice({
|
|
2266
|
+
data,
|
|
2267
|
+
});
|
|
2268
|
+
} })),
|
|
2269
|
+
]
|
|
2270
|
+
: []),
|
|
2271
|
+
], id: "name", value: "value", margin: Object.assign({ top: 40, bottom: 40 }, margin), data: currentData, childColor: { from: "color", modifiers: [["brighter", 0.6]] }, onClick: (clickedData) => {
|
|
2272
|
+
const foundObject = findChildrenByName(currentData, clickedData.id.toString());
|
|
2273
|
+
if (foundObject && foundObject.children) {
|
|
2274
|
+
changeDataSlice({
|
|
2275
|
+
data: foundObject,
|
|
2276
|
+
color: clickedData.color,
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
} }) })), jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: "auto" }, { children: legend ? (jsxRuntime.jsx(Legend, Object.assign({ colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL, data: data.children.map((d) => d.label || d.name) }, (typeof legend === "object" && legend)))) : undefined }))] }));
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
const CustomCell = ({ position, size, x, y, color, fill, opacity, borderWidth, borderColor, data, onHover, onLeave, onClick, }) => (jsxRuntime.jsx("circle", { r: size / 2, cx: x + size / 2, cy: y + size / 2, fill: fill || color, strokeWidth: borderWidth, stroke: borderColor, opacity: opacity, onMouseEnter: onHover, onMouseMove: onHover, onMouseLeave: onLeave, onClick: event => {
|
|
2283
|
+
onClick({ position, color, x, y, data }, event);
|
|
2284
|
+
} }));
|
|
2285
|
+
|
|
2286
|
+
const WaffleChart = ({ height, width, data, total, tooltip, }) => {
|
|
2287
|
+
return (jsxRuntime.jsx(ChartContainer, Object.assign({ width: width, height: height }, { children: jsxRuntime.jsx(waffle.ResponsiveWaffle, { theme: tooltip
|
|
2288
|
+
? Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME), { tooltip: Object.assign(Object.assign({}, DEFAULT_CHARTS_THEME.tooltip), { container: {
|
|
2289
|
+
padding: 0,
|
|
2290
|
+
} }) }) : DEFAULT_CHARTS_THEME, data: [
|
|
2291
|
+
{
|
|
2292
|
+
id: "green-circles",
|
|
2293
|
+
label: data.label,
|
|
2294
|
+
value: data.value,
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
id: "grey-circles",
|
|
2298
|
+
label: total.label,
|
|
2299
|
+
value: total.value,
|
|
2300
|
+
},
|
|
2301
|
+
], tooltip: ({ value, label }) => tooltip ? tooltip({ label, value }) : jsxRuntime.jsx(jsxRuntime.Fragment, { children: `${label}: ${value}` }), fillDirection: "bottom", total: total.value, rows: 6, columns: 8, colors: CHARTS_COLOR_SCHEME_MONO,
|
|
2302
|
+
// @ts-ignore property cellComponent does not exist, but it does
|
|
2303
|
+
cellComponent: (_a) => {
|
|
2304
|
+
var rest = __rest(_a, ["borderWidth", "borderColor"]);
|
|
2305
|
+
return (jsxRuntime.jsx(CustomCell, Object.assign({ borderWidth: 2, borderColor: "white" }, rest)));
|
|
2306
|
+
} }) })));
|
|
2307
|
+
};
|
|
2308
|
+
|
|
2309
|
+
const ShortcutContainer = styled__default["default"].div `
|
|
2310
|
+
display: flex;
|
|
2311
|
+
flex-direction: row;
|
|
2312
|
+
padding: ${({ theme }) => `0 ${theme.space.base * 4}px`};
|
|
2306
2313
|
background-color: ${({ theme }) => theme.palette.grey[100]};
|
|
2307
2314
|
font-size: ${({ theme }) => theme.fontSizes.sm};
|
|
2308
2315
|
`;
|
|
@@ -2736,28 +2743,28 @@ const ChatTitle = styled__default["default"](Title$1) `
|
|
|
2736
2743
|
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.md}`};
|
|
2737
2744
|
`;
|
|
2738
2745
|
|
|
2739
|
-
var _path$
|
|
2740
|
-
function _extends$
|
|
2741
|
-
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2746
|
+
var _path$y;
|
|
2747
|
+
function _extends$G() { return _extends$G = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$G.apply(null, arguments); }
|
|
2748
|
+
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
2742
2749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2743
2750
|
width: 16,
|
|
2744
2751
|
height: 16,
|
|
2745
2752
|
focusable: "false",
|
|
2746
2753
|
viewBox: "0 0 16 16"
|
|
2747
|
-
}, props), _path$
|
|
2754
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2748
2755
|
fill: "currentColor",
|
|
2749
2756
|
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"
|
|
2750
2757
|
})));
|
|
2751
2758
|
|
|
2752
|
-
var _path$
|
|
2753
|
-
function _extends$
|
|
2754
|
-
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2759
|
+
var _path$x;
|
|
2760
|
+
function _extends$F() { return _extends$F = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$F.apply(null, arguments); }
|
|
2761
|
+
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
2755
2762
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2756
2763
|
width: 16,
|
|
2757
2764
|
height: 16,
|
|
2758
2765
|
focusable: "false",
|
|
2759
2766
|
viewBox: "0 0 16 16"
|
|
2760
|
-
}, props), _path$
|
|
2767
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2761
2768
|
fill: "none",
|
|
2762
2769
|
stroke: "currentColor",
|
|
2763
2770
|
strokeLinecap: "round",
|
|
@@ -2765,15 +2772,15 @@ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2765
2772
|
d: "M8 1h3M9.5 1l-3 14M5 15h3"
|
|
2766
2773
|
})));
|
|
2767
2774
|
|
|
2768
|
-
var _path$
|
|
2769
|
-
function _extends$
|
|
2770
|
-
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2775
|
+
var _path$w, _path2$7;
|
|
2776
|
+
function _extends$E() { return _extends$E = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$E.apply(null, arguments); }
|
|
2777
|
+
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
2771
2778
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2772
2779
|
width: 16,
|
|
2773
2780
|
height: 16,
|
|
2774
2781
|
focusable: "false",
|
|
2775
2782
|
viewBox: "0 0 16 16"
|
|
2776
|
-
}, props), _path$
|
|
2783
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2777
2784
|
fill: "currentColor",
|
|
2778
2785
|
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"
|
|
2779
2786
|
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2785,8 +2792,8 @@ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
2785
2792
|
})));
|
|
2786
2793
|
|
|
2787
2794
|
var _g$5;
|
|
2788
|
-
function _extends$
|
|
2789
|
-
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2795
|
+
function _extends$D() { return _extends$D = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$D.apply(null, arguments); }
|
|
2796
|
+
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
2790
2797
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2791
2798
|
width: 16,
|
|
2792
2799
|
height: 16,
|
|
@@ -2813,8 +2820,8 @@ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2813
2820
|
}))));
|
|
2814
2821
|
|
|
2815
2822
|
var _g$4;
|
|
2816
|
-
function _extends$
|
|
2817
|
-
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2823
|
+
function _extends$C() { return _extends$C = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$C.apply(null, arguments); }
|
|
2824
|
+
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
2818
2825
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2819
2826
|
width: 16,
|
|
2820
2827
|
height: 16,
|
|
@@ -2841,8 +2848,8 @@ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2841
2848
|
}))));
|
|
2842
2849
|
|
|
2843
2850
|
var _g$3;
|
|
2844
|
-
function _extends$
|
|
2845
|
-
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2851
|
+
function _extends$B() { return _extends$B = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$B.apply(null, arguments); }
|
|
2852
|
+
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
2846
2853
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2847
2854
|
width: 16,
|
|
2848
2855
|
height: 16,
|
|
@@ -2869,7 +2876,7 @@ const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2869
2876
|
}))));
|
|
2870
2877
|
|
|
2871
2878
|
const StyledIconButton = styled__default["default"](IconButton) ``;
|
|
2872
|
-
const MenuContainer$
|
|
2879
|
+
const MenuContainer$2 = styled__default["default"](Card) `
|
|
2873
2880
|
padding: ${({ theme }) => theme.space.xxs};
|
|
2874
2881
|
|
|
2875
2882
|
${StyledIconButton} {
|
|
@@ -2888,12 +2895,12 @@ const MenuContainer$1 = styled__default["default"](Card) `
|
|
|
2888
2895
|
}
|
|
2889
2896
|
}
|
|
2890
2897
|
`;
|
|
2891
|
-
const FloatingMenu = (props) => {
|
|
2898
|
+
const FloatingMenu$1 = (props) => {
|
|
2892
2899
|
const { editor } = props;
|
|
2893
2900
|
if (!editor) {
|
|
2894
2901
|
return null;
|
|
2895
2902
|
}
|
|
2896
|
-
return (jsxRuntime.jsx(react.BubbleMenu, Object.assign({}, props, { editor: editor }, { children: jsxRuntime.jsxs(MenuContainer$
|
|
2903
|
+
return (jsxRuntime.jsx(react.BubbleMenu, Object.assign({}, props, { editor: editor }, { children: jsxRuntime.jsxs(MenuContainer$2, Object.assign({ isFloating: true }, { children: [jsxRuntime.jsx(StyledIconButton, Object.assign({ size: "small", onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(), isBasic: !editor.isActive("heading", { level: 1 }), isPrimary: editor.isActive("heading", { level: 1 }), isPill: false }, { children: jsxRuntime.jsx(SvgH1Fill, {}, "ug-h1-button-bubble-menu") })), jsxRuntime.jsx(StyledIconButton, Object.assign({ size: "small", onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(), isBasic: !editor.isActive("heading", { level: 2 }), isPrimary: editor.isActive("heading", { level: 2 }), isPill: false }, { children: jsxRuntime.jsx(SvgH2Fill, {}, "ug-h2-button-bubble-menu") })), jsxRuntime.jsx(StyledIconButton, Object.assign({ size: "small", onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(), isBasic: !editor.isActive("heading", { level: 3 }), isPrimary: editor.isActive("heading", { level: 3 }), isPill: false }, { children: jsxRuntime.jsx(SvgH3Fill, {}, "ug-h3-button-bubble-menu") })), jsxRuntime.jsx(StyledIconButton, Object.assign({ size: "small", onClick: () => editor.chain().focus().toggleBold().run(), isBasic: !editor.isActive("bold"), isPrimary: editor.isActive("bold"), isPill: false }, { children: jsxRuntime.jsx(SvgBoldFill, {}, "ug-bold-button-bubble-menu") })), jsxRuntime.jsx(StyledIconButton, Object.assign({ size: "small", onClick: () => editor.chain().focus().toggleItalic().run(), isBasic: !editor.isActive("italic"), isPrimary: editor.isActive("italic"), isPill: false }, { children: jsxRuntime.jsx(SvgItalicFill, {}, "ug-italic-button-bubble-menu") })), jsxRuntime.jsx(StyledIconButton, Object.assign({ size: "small", onClick: () => editor.chain().focus().toggleBlockquote().run(), isBasic: !editor.isActive("blockquote"), isPrimary: editor.isActive("blockquote"), isPill: false }, { children: jsxRuntime.jsx(SvgQuoteFill, {}, "ug-quote-button-bubble-menu") }))] })) })));
|
|
2897
2904
|
};
|
|
2898
2905
|
|
|
2899
2906
|
/**
|
|
@@ -2923,58 +2930,58 @@ const StyledTooltip$2 = styled__default["default"](TooltipComponent) `
|
|
|
2923
2930
|
`;
|
|
2924
2931
|
const Tooltip = (props) => jsxRuntime.jsx(StyledTooltip$2, Object.assign({}, props));
|
|
2925
2932
|
|
|
2926
|
-
var _path$
|
|
2927
|
-
function _extends$
|
|
2928
|
-
const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2933
|
+
var _path$v;
|
|
2934
|
+
function _extends$A() { return _extends$A = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$A.apply(null, arguments); }
|
|
2935
|
+
const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2929
2936
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2930
2937
|
width: 16,
|
|
2931
2938
|
height: 16,
|
|
2932
2939
|
focusable: "false",
|
|
2933
2940
|
viewBox: "0 0 16 16"
|
|
2934
|
-
}, props), _path$
|
|
2941
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2935
2942
|
fill: "currentColor",
|
|
2936
2943
|
d: "M7 1c2.176 0 4 1.824 4 4 0 1.315-.666 2.501-1.673 3.234C10.869 8.792 12 10.287 12 12c0 2.176-1.824 4-4 4H3.5a.5.5 0 01-.5-.5v-14a.5.5 0 01.5-.5H7zM4 15h4c1.624 0 3-1.376 3-3S9.624 9 8 9H4v6zM7 2H4v6h3c1.624 0 3-1.376 3-3S8.624 2 7 2z"
|
|
2937
2944
|
})));
|
|
2938
2945
|
|
|
2939
|
-
var _path$
|
|
2940
|
-
function _extends$
|
|
2941
|
-
const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2946
|
+
var _path$u;
|
|
2947
|
+
function _extends$z() { return _extends$z = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$z.apply(null, arguments); }
|
|
2948
|
+
const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2942
2949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2943
2950
|
width: 16,
|
|
2944
2951
|
height: 16,
|
|
2945
2952
|
focusable: "false",
|
|
2946
2953
|
viewBox: "0 0 16 16"
|
|
2947
|
-
}, props), _path$
|
|
2954
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2948
2955
|
fill: "none",
|
|
2949
2956
|
stroke: "currentColor",
|
|
2950
2957
|
strokeLinecap: "round",
|
|
2951
2958
|
d: "M7.5 1.5h3M9 1.5l-3 14m-1.5 0h3"
|
|
2952
2959
|
})));
|
|
2953
2960
|
|
|
2954
|
-
var _path$
|
|
2955
|
-
function _extends$
|
|
2956
|
-
const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2961
|
+
var _path$t;
|
|
2962
|
+
function _extends$y() { return _extends$y = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$y.apply(null, arguments); }
|
|
2963
|
+
const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
2957
2964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2958
2965
|
width: 16,
|
|
2959
2966
|
height: 16,
|
|
2960
2967
|
focusable: "false",
|
|
2961
2968
|
role: "presentation"
|
|
2962
|
-
}, props), _path$
|
|
2969
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2963
2970
|
fill: "none",
|
|
2964
2971
|
stroke: "currentColor",
|
|
2965
2972
|
strokeLinecap: "round",
|
|
2966
2973
|
d: "M11.5 4.5V8h0A3.5 3.5 0 018 11.5h0A3.5 3.5 0 014.5 8h0A3.5 3.5 0 018 4.5h0A3.5 3.5 0 0111.5 8h0v1.5a2 2 0 002 2h0a2 2 0 002-2V8h0A7.5 7.5 0 008 .5h0A7.5 7.5 0 00.5 8h0A7.5 7.5 0 008 15.5h3.41"
|
|
2967
2974
|
})));
|
|
2968
2975
|
|
|
2969
|
-
var _path$
|
|
2970
|
-
function _extends$
|
|
2971
|
-
const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2976
|
+
var _path$s;
|
|
2977
|
+
function _extends$x() { return _extends$x = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$x.apply(null, arguments); }
|
|
2978
|
+
const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
2972
2979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2973
2980
|
width: 16,
|
|
2974
2981
|
height: 16,
|
|
2975
2982
|
focusable: "false",
|
|
2976
2983
|
role: "presentation"
|
|
2977
|
-
}, props), _path$
|
|
2984
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2978
2985
|
fill: "none",
|
|
2979
2986
|
stroke: "currentColor",
|
|
2980
2987
|
strokeLinecap: "round",
|
|
@@ -3073,7 +3080,7 @@ function useMedia() {
|
|
|
3073
3080
|
return { getMedia };
|
|
3074
3081
|
}
|
|
3075
3082
|
|
|
3076
|
-
const MenuContainer = styled__default["default"].div `
|
|
3083
|
+
const MenuContainer$1 = styled__default["default"].div `
|
|
3077
3084
|
padding: ${({ theme }) => theme.space.xs} 0;
|
|
3078
3085
|
display: flex;
|
|
3079
3086
|
flex-direction: row;
|
|
@@ -3116,7 +3123,7 @@ const CommentBar = ({ editor, i18n, }) => {
|
|
|
3116
3123
|
}
|
|
3117
3124
|
};
|
|
3118
3125
|
};
|
|
3119
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: 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: handleBoldClick }, { children: jsxRuntime.jsx(SvgBoldStroke, {}) })) })), 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: handleItalicClick }, { children: jsxRuntime.jsx(SvgItalicStroke, {}) })) })), 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: handleMentionClick }, { children: jsxRuntime.jsx(SvgAtStroke, {}) })) })), jsxRuntime.jsx(Tooltip, Object.assign({ style: { textAlign: "center" }, content: (_h = (_g = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _g === void 0 ? void 0 : _g.attachment) !== null && _h !== void 0 ? _h : (jsxRuntime.jsxs("span", { children: ["Upload images and video.", " ", jsxRuntime.jsxs("span", Object.assign({ style: { color: theme.palette.grey[600] } }, { children: [" ", jsxRuntime.jsx("br", {}), " Max size: 5GB", " "] }))] })), placement: "top", type: "light", size: "small", hasArrow: true }, { children: jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !editor.isActive("attachment"), isPrimary: editor.isActive("attachment"), isPill: false, onClick: handleAttachmentClick }, { children: jsxRuntime.jsx(SvgClipboard, {}) })) }))] })) }));
|
|
3126
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(MenuContainer$1, 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: handleBoldClick }, { children: jsxRuntime.jsx(SvgBoldStroke, {}) })) })), 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: handleItalicClick }, { children: jsxRuntime.jsx(SvgItalicStroke, {}) })) })), 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: handleMentionClick }, { children: jsxRuntime.jsx(SvgAtStroke, {}) })) })), jsxRuntime.jsx(Tooltip, Object.assign({ style: { textAlign: "center" }, content: (_h = (_g = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _g === void 0 ? void 0 : _g.attachment) !== null && _h !== void 0 ? _h : (jsxRuntime.jsxs("span", { children: ["Upload images and video.", " ", jsxRuntime.jsxs("span", Object.assign({ style: { color: theme.palette.grey[600] } }, { children: [" ", jsxRuntime.jsx("br", {}), " Max size: 5GB", " "] }))] })), placement: "top", type: "light", size: "small", hasArrow: true }, { children: jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !editor.isActive("attachment"), isPrimary: editor.isActive("attachment"), isPill: false, onClick: handleAttachmentClick }, { children: jsxRuntime.jsx(SvgClipboard, {}) })) }))] })) }));
|
|
3120
3127
|
};
|
|
3121
3128
|
|
|
3122
3129
|
const CustomMention = Mention__default["default"].extend({
|
|
@@ -3365,20 +3372,20 @@ const editorExtensions = ({ placeholderOptions, mentionableUsers, }) => {
|
|
|
3365
3372
|
];
|
|
3366
3373
|
};
|
|
3367
3374
|
|
|
3368
|
-
var _circle$
|
|
3369
|
-
function _extends$
|
|
3370
|
-
const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3375
|
+
var _circle$4, _path$r, _path2$6;
|
|
3376
|
+
function _extends$w() { return _extends$w = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$w.apply(null, arguments); }
|
|
3377
|
+
const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
3371
3378
|
width: 56,
|
|
3372
3379
|
height: 56,
|
|
3373
3380
|
viewBox: "0 0 56 56",
|
|
3374
3381
|
fill: "#68737d",
|
|
3375
3382
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3376
|
-
}, props), _circle$
|
|
3383
|
+
}, props), _circle$4 || (_circle$4 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
3377
3384
|
cx: 28,
|
|
3378
3385
|
cy: 28,
|
|
3379
3386
|
r: 28,
|
|
3380
3387
|
fill: "#edf7ff"
|
|
3381
|
-
})), _path$
|
|
3388
|
+
})), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3382
3389
|
d: "M16.929 16.929L39.071 39.071",
|
|
3383
3390
|
stroke: "currentColor",
|
|
3384
3391
|
strokeWidth: 4
|
|
@@ -3405,20 +3412,20 @@ const DeleteThumbnailX = ({ deleteThumbnail }) => {
|
|
|
3405
3412
|
return (jsxRuntime.jsx(StyledDeleteThumbnailX, Object.assign({ className: "deleteThumbnail" }, { children: jsxRuntime.jsx(SvgRemoveMediaIcon, { onClick: (e) => deleteThumbnail(e) }) })));
|
|
3406
3413
|
};
|
|
3407
3414
|
|
|
3408
|
-
var _circle$
|
|
3409
|
-
function _extends$
|
|
3410
|
-
const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3415
|
+
var _circle$3, _path$q;
|
|
3416
|
+
function _extends$v() { return _extends$v = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$v.apply(null, arguments); }
|
|
3417
|
+
const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
3411
3418
|
width: 56,
|
|
3412
3419
|
height: 56,
|
|
3413
3420
|
viewBox: "0 0 56 56",
|
|
3414
3421
|
fill: "none",
|
|
3415
3422
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3416
|
-
}, props), _circle$
|
|
3423
|
+
}, props), _circle$3 || (_circle$3 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
3417
3424
|
cx: 28,
|
|
3418
3425
|
cy: 28,
|
|
3419
3426
|
r: 28,
|
|
3420
3427
|
fill: "white"
|
|
3421
|
-
})), _path$
|
|
3428
|
+
})), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3422
3429
|
d: "M47 28L18.5 44.4545L18.5 11.5455L47 28Z",
|
|
3423
3430
|
fill: "currentColor"
|
|
3424
3431
|
})));
|
|
@@ -3608,28 +3615,28 @@ Lightbox.Body = ModalBody; // Includes Main and Details
|
|
|
3608
3615
|
Lightbox.Footer = Footer$3;
|
|
3609
3616
|
Lightbox.Close = reactModals.Close;
|
|
3610
3617
|
|
|
3611
|
-
var _path$
|
|
3612
|
-
function _extends$
|
|
3613
|
-
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3618
|
+
var _path$p;
|
|
3619
|
+
function _extends$u() { return _extends$u = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$u.apply(null, arguments); }
|
|
3620
|
+
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
3614
3621
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3615
3622
|
width: 16,
|
|
3616
3623
|
height: 16,
|
|
3617
3624
|
focusable: "false",
|
|
3618
3625
|
viewBox: "0 0 16 16"
|
|
3619
|
-
}, props), _path$
|
|
3626
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3620
3627
|
fill: "currentColor",
|
|
3621
3628
|
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"
|
|
3622
3629
|
})));
|
|
3623
3630
|
|
|
3624
|
-
var _path$
|
|
3625
|
-
function _extends$
|
|
3626
|
-
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3631
|
+
var _path$o;
|
|
3632
|
+
function _extends$t() { return _extends$t = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$t.apply(null, arguments); }
|
|
3633
|
+
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
3627
3634
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3628
3635
|
width: 16,
|
|
3629
3636
|
height: 16,
|
|
3630
3637
|
focusable: "false",
|
|
3631
3638
|
viewBox: "0 0 16 16"
|
|
3632
|
-
}, props), _path$
|
|
3639
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3633
3640
|
fill: "currentColor",
|
|
3634
3641
|
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"
|
|
3635
3642
|
})));
|
|
@@ -3852,15 +3859,15 @@ Slider.Slide = Slide;
|
|
|
3852
3859
|
Slider.PrevButton = PrevButton;
|
|
3853
3860
|
Slider.NextButton = NextButton;
|
|
3854
3861
|
|
|
3855
|
-
var _path$
|
|
3856
|
-
function _extends$
|
|
3857
|
-
const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3862
|
+
var _path$n, _path2$5;
|
|
3863
|
+
function _extends$s() { return _extends$s = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$s.apply(null, arguments); }
|
|
3864
|
+
const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
3858
3865
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3859
3866
|
width: 16,
|
|
3860
3867
|
height: 16,
|
|
3861
3868
|
focusable: "false",
|
|
3862
3869
|
viewBox: "0 0 16 16"
|
|
3863
|
-
}, props), _path$
|
|
3870
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3864
3871
|
stroke: "currentColor",
|
|
3865
3872
|
strokeLinecap: "round",
|
|
3866
3873
|
d: "M11.5 10l4-4m-4 0l4 4"
|
|
@@ -3869,15 +3876,15 @@ const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement(
|
|
|
3869
3876
|
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"
|
|
3870
3877
|
})));
|
|
3871
3878
|
|
|
3872
|
-
var _path$
|
|
3873
|
-
function _extends$
|
|
3874
|
-
const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3879
|
+
var _path$m, _path2$4;
|
|
3880
|
+
function _extends$r() { return _extends$r = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$r.apply(null, arguments); }
|
|
3881
|
+
const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
3875
3882
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3876
3883
|
width: 16,
|
|
3877
3884
|
height: 16,
|
|
3878
3885
|
focusable: "false",
|
|
3879
3886
|
viewBox: "0 0 16 16"
|
|
3880
|
-
}, props), _path$
|
|
3887
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3881
3888
|
fill: "currentColor",
|
|
3882
3889
|
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"
|
|
3883
3890
|
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -3952,8 +3959,8 @@ const useProgressContext = () => {
|
|
|
3952
3959
|
};
|
|
3953
3960
|
|
|
3954
3961
|
var _g$2;
|
|
3955
|
-
function _extends$
|
|
3956
|
-
const SvgGrip = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3962
|
+
function _extends$q() { return _extends$q = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$q.apply(null, arguments); }
|
|
3963
|
+
const SvgGrip = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
3957
3964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3958
3965
|
width: 16,
|
|
3959
3966
|
height: 16,
|
|
@@ -4114,15 +4121,15 @@ const Bookmark = (props) => {
|
|
|
4114
4121
|
}, onClick: props.onClick }, { children: [jsxRuntime.jsx(Grabber, { observation: props }), jsxRuntime.jsx(Grabber, { isEnd: true, observation: props })] })) })));
|
|
4115
4122
|
};
|
|
4116
4123
|
|
|
4117
|
-
var _path$
|
|
4118
|
-
function _extends$
|
|
4119
|
-
const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4124
|
+
var _path$l, _path2$3, _path3$1;
|
|
4125
|
+
function _extends$p() { return _extends$p = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$p.apply(null, arguments); }
|
|
4126
|
+
const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
4120
4127
|
width: 16,
|
|
4121
4128
|
height: 16,
|
|
4122
4129
|
viewBox: "0 0 16 16",
|
|
4123
4130
|
fill: "none",
|
|
4124
4131
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4125
|
-
}, props), _path$
|
|
4132
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4126
4133
|
fillRule: "evenodd",
|
|
4127
4134
|
clipRule: "evenodd",
|
|
4128
4135
|
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",
|
|
@@ -4135,15 +4142,15 @@ const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement(
|
|
|
4135
4142
|
fill: "currentColor"
|
|
4136
4143
|
})));
|
|
4137
4144
|
|
|
4138
|
-
var _path$
|
|
4139
|
-
function _extends$
|
|
4140
|
-
const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4145
|
+
var _path$k, _path2$2, _path3;
|
|
4146
|
+
function _extends$o() { return _extends$o = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$o.apply(null, arguments); }
|
|
4147
|
+
const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
4141
4148
|
width: 16,
|
|
4142
4149
|
height: 16,
|
|
4143
4150
|
viewBox: "0 0 16 16",
|
|
4144
4151
|
fill: "none",
|
|
4145
4152
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4146
|
-
}, props), _path$
|
|
4153
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4147
4154
|
fillRule: "evenodd",
|
|
4148
4155
|
clipRule: "evenodd",
|
|
4149
4156
|
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",
|
|
@@ -4157,8 +4164,8 @@ const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createEleme
|
|
|
4157
4164
|
})));
|
|
4158
4165
|
|
|
4159
4166
|
var _g$1;
|
|
4160
|
-
function _extends$
|
|
4161
|
-
const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4167
|
+
function _extends$n() { return _extends$n = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$n.apply(null, arguments); }
|
|
4168
|
+
const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
4162
4169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4163
4170
|
width: 16,
|
|
4164
4171
|
height: 16,
|
|
@@ -4182,28 +4189,28 @@ const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
4182
4189
|
ry: 1
|
|
4183
4190
|
}))));
|
|
4184
4191
|
|
|
4185
|
-
var _path$
|
|
4186
|
-
function _extends$
|
|
4187
|
-
const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4192
|
+
var _path$j;
|
|
4193
|
+
function _extends$m() { return _extends$m = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$m.apply(null, arguments); }
|
|
4194
|
+
const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
4188
4195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4189
4196
|
width: 16,
|
|
4190
4197
|
height: 16,
|
|
4191
4198
|
focusable: "false",
|
|
4192
4199
|
viewBox: "0 0 16 16"
|
|
4193
|
-
}, props), _path$
|
|
4200
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4194
4201
|
fill: "currentColor",
|
|
4195
4202
|
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"
|
|
4196
4203
|
})));
|
|
4197
4204
|
|
|
4198
|
-
var _path$
|
|
4199
|
-
function _extends$
|
|
4200
|
-
const SvgPreviousFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4205
|
+
var _path$i, _path2$1;
|
|
4206
|
+
function _extends$l() { return _extends$l = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$l.apply(null, arguments); }
|
|
4207
|
+
const SvgPreviousFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
4201
4208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4202
4209
|
width: 16,
|
|
4203
4210
|
height: 16,
|
|
4204
4211
|
focusable: "false",
|
|
4205
4212
|
viewBox: "0 0 24 24"
|
|
4206
|
-
}, props), _path$
|
|
4213
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4207
4214
|
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",
|
|
4208
4215
|
fill: "currentColor"
|
|
4209
4216
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4282,34 +4289,34 @@ const ControlsGroupCenter = (props) => {
|
|
|
4282
4289
|
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] })));
|
|
4283
4290
|
};
|
|
4284
4291
|
|
|
4285
|
-
var _path$
|
|
4286
|
-
function _extends$
|
|
4287
|
-
const SvgTagStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4292
|
+
var _path$h, _circle$2;
|
|
4293
|
+
function _extends$k() { return _extends$k = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$k.apply(null, arguments); }
|
|
4294
|
+
const SvgTagStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
4288
4295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4289
4296
|
width: 16,
|
|
4290
4297
|
height: 16,
|
|
4291
4298
|
focusable: "false",
|
|
4292
4299
|
viewBox: "0 0 16 16"
|
|
4293
|
-
}, props), _path$
|
|
4300
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4294
4301
|
fill: "none",
|
|
4295
4302
|
stroke: "currentColor",
|
|
4296
4303
|
d: "M.5 1v5.3c0 .1.1.3.1.4l8.5 8.5c.2.2.5.2.7 0l5.3-5.3c.2-.2.2-.5 0-.7L6.6.6S6.4.5 6.3.5H1C.7.5.5.7.5 1z"
|
|
4297
|
-
})), _circle$
|
|
4304
|
+
})), _circle$2 || (_circle$2 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
4298
4305
|
cx: 4,
|
|
4299
4306
|
cy: 4,
|
|
4300
4307
|
r: 1,
|
|
4301
4308
|
fill: "currentColor"
|
|
4302
4309
|
})));
|
|
4303
4310
|
|
|
4304
|
-
var _path$
|
|
4305
|
-
function _extends$
|
|
4306
|
-
const SvgPlus$1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4311
|
+
var _path$g;
|
|
4312
|
+
function _extends$j() { return _extends$j = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$j.apply(null, arguments); }
|
|
4313
|
+
const SvgPlus$1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
4307
4314
|
width: 12,
|
|
4308
4315
|
height: 12,
|
|
4309
4316
|
viewBox: "0 0 12 12",
|
|
4310
4317
|
fill: "none",
|
|
4311
4318
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4312
|
-
}, props), _path$
|
|
4319
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4313
4320
|
fillRule: "evenodd",
|
|
4314
4321
|
clipRule: "evenodd",
|
|
4315
4322
|
d: "M6.5 1C6.19318 1 5.94444 1.24873 5.94444 1.55556V5.44444H2.05556C1.74873 5.44444 1.5 5.69318 1.5 6C1.5 6.30683 1.74873 6.55556 2.05556 6.55556H5.94444V10.4444C5.94444 10.7513 6.19318 11 6.5 11C6.80683 11 7.05556 10.7513 7.05556 10.4444V6.55556H10.9444C11.2513 6.55556 11.5 6.30683 11.5 6C11.5 5.69318 11.2513 5.44444 10.9444 5.44444H7.05556V1.55556C7.05556 1.24873 6.80683 1 6.5 1Z",
|
|
@@ -4334,30 +4341,30 @@ const Cutter = ({ onCutHandler, isCutting, i18n, }) => {
|
|
|
4334
4341
|
} }, { children: isCutting ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgTagStroke, {}) }), jsxRuntime.jsx(Span, { children: (i18n === null || i18n === void 0 ? void 0 : i18n.onHighlight) || "End observation" })] })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgPlus$1, {}) }), jsxRuntime.jsx(Span, { children: (i18n === null || i18n === void 0 ? void 0 : i18n.beforeHighlight) || "Start observation" })] })) })));
|
|
4335
4342
|
};
|
|
4336
4343
|
|
|
4337
|
-
var _path$
|
|
4338
|
-
function _extends$
|
|
4339
|
-
const SvgMaximizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4344
|
+
var _path$f;
|
|
4345
|
+
function _extends$i() { return _extends$i = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$i.apply(null, arguments); }
|
|
4346
|
+
const SvgMaximizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
4340
4347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4341
4348
|
width: 16,
|
|
4342
4349
|
height: 16,
|
|
4343
4350
|
focusable: "false",
|
|
4344
4351
|
viewBox: "0 0 16 16"
|
|
4345
|
-
}, props), _path$
|
|
4352
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4346
4353
|
fill: "none",
|
|
4347
4354
|
stroke: "currentColor",
|
|
4348
4355
|
strokeLinecap: "round",
|
|
4349
4356
|
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"
|
|
4350
4357
|
})));
|
|
4351
4358
|
|
|
4352
|
-
var _path$
|
|
4353
|
-
function _extends$
|
|
4354
|
-
const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4359
|
+
var _path$e;
|
|
4360
|
+
function _extends$h() { return _extends$h = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$h.apply(null, arguments); }
|
|
4361
|
+
const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
4355
4362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4356
4363
|
width: 16,
|
|
4357
4364
|
height: 16,
|
|
4358
4365
|
focusable: "false",
|
|
4359
4366
|
viewBox: "0 0 16 16"
|
|
4360
|
-
}, props), _path$
|
|
4367
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4361
4368
|
fill: "none",
|
|
4362
4369
|
stroke: "currentColor",
|
|
4363
4370
|
strokeLinecap: "round",
|
|
@@ -4469,7 +4476,7 @@ const Wrapper$1 = styled__default["default"].div `
|
|
|
4469
4476
|
bottom: ${({ theme }) => theme.space.sm};
|
|
4470
4477
|
z-index: 1;
|
|
4471
4478
|
`;
|
|
4472
|
-
const Content$
|
|
4479
|
+
const Content$2 = styled__default["default"].div `
|
|
4473
4480
|
display: flex;
|
|
4474
4481
|
background-color: ${({ theme }) => theme.palette.grey[800]};
|
|
4475
4482
|
border-radius: 2px;
|
|
@@ -4484,7 +4491,7 @@ const Content$1 = styled__default["default"].div `
|
|
|
4484
4491
|
`;
|
|
4485
4492
|
const PlayerTooltip = (_a) => {
|
|
4486
4493
|
var { children } = _a, props = __rest(_a, ["children"]);
|
|
4487
|
-
return (jsxRuntime.jsx(Wrapper$1, Object.assign({}, props, { children: jsxRuntime.jsx(Content$
|
|
4494
|
+
return (jsxRuntime.jsx(Wrapper$1, Object.assign({}, props, { children: jsxRuntime.jsx(Content$2, { children: children }) })));
|
|
4488
4495
|
};
|
|
4489
4496
|
|
|
4490
4497
|
function useDebounce(value, delay) {
|
|
@@ -4658,15 +4665,15 @@ const Controls = ({ container, onCutHandler, bookmarks, isCutting, onBookMarkUpd
|
|
|
4658
4665
|
(marks === null || marks === void 0 ? void 0 : marks.map((bookmark, index) => (jsxRuntime.jsx(Bookmark, Object.assign({}, bookmark), `${index}${bookmark.start}`)))), jsxRuntime.jsx(ProgressBar, { ref: progressRef, progress: progress, handleSkipAhead: handleSkipAhead, duration: duration }), isCutting && jsxRuntime.jsx(CutStart, { left: cutStart }), jsxRuntime.jsx(CurrentTimeMarker, { left: progress })] })), jsxRuntime.jsxs(ControlsBar, { children: [jsxRuntime.jsxs(StyledDiv$1, Object.assign({ style: { width: "20%", justifyContent: "start" } }, { children: [jsxRuntime.jsx(AudioButton, {}), jsxRuntime.jsx(TimeLabel, { current: relCurrentTime, duration: duration })] })), jsxRuntime.jsx(ControlsGroupCenter, { style: { width: "60%" } }), jsxRuntime.jsxs(StyledDiv$1, Object.assign({ style: { width: "20%", justifyContent: "end" } }, { children: [jsxRuntime.jsx(Cutter, { onCutHandler: onCutHandler, isCutting: isCutting, i18n: i18n }), jsxRuntime.jsx(FullScreenButton, { container: container })] }))] })] })));
|
|
4659
4666
|
};
|
|
4660
4667
|
|
|
4661
|
-
var _path$
|
|
4662
|
-
function _extends$
|
|
4663
|
-
const SvgPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4668
|
+
var _path$d;
|
|
4669
|
+
function _extends$g() { return _extends$g = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$g.apply(null, arguments); }
|
|
4670
|
+
const SvgPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
4664
4671
|
width: 70,
|
|
4665
4672
|
height: 70,
|
|
4666
4673
|
viewBox: "0 0 70 70",
|
|
4667
4674
|
fill: "none",
|
|
4668
4675
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4669
|
-
}, props), _path$
|
|
4676
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4670
4677
|
d: "M60 35L17 62L17 8L60 35Z",
|
|
4671
4678
|
fill: "#003A57"
|
|
4672
4679
|
})));
|
|
@@ -4977,7 +4984,7 @@ const CommentBox = (_a) => {
|
|
|
4977
4984
|
return null;
|
|
4978
4985
|
ed.on("create", ({ editor }) => setEditor(editor));
|
|
4979
4986
|
ed.on("update", ({ editor }) => setEditor(editor));
|
|
4980
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MediaLightBox, { isOpen: isOpen, header: (_b = thumbnails[selectedImageIndex]) === null || _b === void 0 ? void 0 : _b.name, onClose: closeLightbox, slideChange: slideChange, selectedImageIndex: selectedImageIndex, thumbnails: thumbnails, videoRefs: videoRefs }), jsxRuntime.jsx(ChatBoxContainer, { children: jsxRuntime.jsxs(EditorContainer$1, Object.assign({ editable: true, style: { marginLeft: 0, paddingBottom: 12 } }, { children: [hasFloatingMenu && (jsxRuntime.jsx(FloatingMenu, { editor: ed, tippyOptions: Object.assign({}, bubbleOptions) })), jsxRuntime.jsx(react.EditorContent, { editor: ed, onKeyDown: onKeyDown }), jsxRuntime.jsx(ThumbnailContainer, { openLightbox: handleOpenLightbox })] })) }), hasButtonsMenu && jsxRuntime.jsx(CommentBar, { editor: ed, i18n: i18n })] }));
|
|
4987
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MediaLightBox, { isOpen: isOpen, header: (_b = thumbnails[selectedImageIndex]) === null || _b === void 0 ? void 0 : _b.name, onClose: closeLightbox, slideChange: slideChange, selectedImageIndex: selectedImageIndex, thumbnails: thumbnails, videoRefs: videoRefs }), jsxRuntime.jsx(ChatBoxContainer, { children: jsxRuntime.jsxs(EditorContainer$1, Object.assign({ editable: true, style: { marginLeft: 0, paddingBottom: 12 } }, { children: [hasFloatingMenu && (jsxRuntime.jsx(FloatingMenu$1, { editor: ed, tippyOptions: Object.assign({}, bubbleOptions) })), jsxRuntime.jsx(react.EditorContent, { editor: ed, onKeyDown: onKeyDown }), jsxRuntime.jsx(ThumbnailContainer, { openLightbox: handleOpenLightbox })] })) }), hasButtonsMenu && jsxRuntime.jsx(CommentBar, { editor: ed, i18n: i18n })] }));
|
|
4981
4988
|
};
|
|
4982
4989
|
|
|
4983
4990
|
const UgGrid = styled__default["default"](reactGrid.Grid) `
|
|
@@ -5100,15 +5107,15 @@ Chat.Comments = MessagesContainer;
|
|
|
5100
5107
|
Chat.Input = CommentBox;
|
|
5101
5108
|
Chat.Footer = ChatFooter;
|
|
5102
5109
|
|
|
5103
|
-
var _circle;
|
|
5104
|
-
function _extends$
|
|
5105
|
-
const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
5110
|
+
var _circle$1;
|
|
5111
|
+
function _extends$f() { return _extends$f = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$f.apply(null, arguments); }
|
|
5112
|
+
const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
5106
5113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5107
5114
|
width: 16,
|
|
5108
5115
|
height: 16,
|
|
5109
5116
|
focusable: "false",
|
|
5110
5117
|
viewBox: "0 0 16 16"
|
|
5111
|
-
}, props), _circle || (_circle = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
5118
|
+
}, props), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
5112
5119
|
cx: 8,
|
|
5113
5120
|
cy: 8,
|
|
5114
5121
|
r: 8,
|
|
@@ -5184,77 +5191,19 @@ Drawer.Footer = reactModals.DrawerModal.Footer;
|
|
|
5184
5191
|
Drawer.FooterItem = reactModals.DrawerModal.FooterItem;
|
|
5185
5192
|
Drawer.Close = reactModals.DrawerModal.Close;
|
|
5186
5193
|
|
|
5187
|
-
const
|
|
5188
|
-
|
|
5189
|
-
var index$1 = /*#__PURE__*/Object.freeze({
|
|
5190
|
-
__proto__: null,
|
|
5191
|
-
Field: Field$1
|
|
5192
|
-
});
|
|
5193
|
-
|
|
5194
|
-
const UgItem = styled__default["default"](reactDropdowns.Item) `
|
|
5195
|
-
display: flex;
|
|
5196
|
-
flex-direction: row;
|
|
5197
|
-
align-items: center;
|
|
5198
|
-
justify-content: flex-start;
|
|
5199
|
-
|
|
5200
|
-
> div {
|
|
5201
|
-
height: 100%;
|
|
5202
|
-
}
|
|
5203
|
-
|
|
5204
|
-
&[disabled] * {
|
|
5205
|
-
opacity: 0.85;
|
|
5206
|
-
}
|
|
5207
|
-
|
|
5208
|
-
&[disabled] svg {
|
|
5209
|
-
opacity: 0.5;
|
|
5210
|
-
}
|
|
5211
|
-
|
|
5212
|
-
&[disabled]:hover {
|
|
5213
|
-
background-color: transparent;
|
|
5214
|
-
}
|
|
5215
|
-
`;
|
|
5216
|
-
const Item$1 = (props) => jsxRuntime.jsx(UgItem, Object.assign({}, props));
|
|
5217
|
-
|
|
5218
|
-
const Container = styled__default["default"].div `
|
|
5219
|
-
display: flex;
|
|
5220
|
-
flex-direction: row;
|
|
5221
|
-
align-items: center;
|
|
5222
|
-
justify-content: flex-start;
|
|
5223
|
-
width: 100%;
|
|
5224
|
-
`;
|
|
5225
|
-
const MetaContainer$1 = styled__default["default"].div `
|
|
5226
|
-
display: flex;
|
|
5227
|
-
flex-direction: column;
|
|
5228
|
-
align-items: flex-start;
|
|
5229
|
-
justify-content: center;
|
|
5230
|
-
`;
|
|
5231
|
-
const ThumbContainer = styled__default["default"].div `
|
|
5232
|
-
display: flex;
|
|
5233
|
-
flex-direction: row;
|
|
5234
|
-
align-items: center;
|
|
5235
|
-
justify-content: center;
|
|
5236
|
-
margin-right: ${({ theme }) => theme.space.sm};
|
|
5194
|
+
const StyledAutocomplete$1 = styled__default["default"](reactDropdowns.Autocomplete) `
|
|
5237
5195
|
width: 100%;
|
|
5238
|
-
max-width: ${({ theme }) => theme.components.autocomplete.thumbSize};
|
|
5239
|
-
|
|
5240
|
-
> div {
|
|
5241
|
-
height: 100%;
|
|
5242
|
-
}
|
|
5243
5196
|
`;
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
});
|
|
5254
|
-
const ItemContent = (props) => {
|
|
5255
|
-
const { thumbSrc, description, label } = props;
|
|
5256
|
-
return (jsxRuntime.jsxs(Container, { children: [thumbSrc && (jsxRuntime.jsx(ThumbContainer, { children: jsxRuntime.jsx(Image$1, { src: thumbSrc }) })), jsxRuntime.jsxs(MetaContainer$1, { children: [label && jsxRuntime.jsx(Label$1, Object.assign({ isBold: true }, { children: label })), description && jsxRuntime.jsx(Description$1, { children: description })] })] }));
|
|
5257
|
-
};
|
|
5197
|
+
/**
|
|
5198
|
+
* Autocomplete is an input field that filters results as users type. This helps users find something quickly in a large list of options.
|
|
5199
|
+
* <hr>
|
|
5200
|
+
* Used for this:
|
|
5201
|
+
- To filter down a large list of options
|
|
5202
|
+
- To quickly find a known option
|
|
5203
|
+
* Not for this:
|
|
5204
|
+
- To make more than one selection, use Multiselect instead
|
|
5205
|
+
*/
|
|
5206
|
+
const Autocomplete = (props) => (jsxRuntime.jsx(StyledAutocomplete$1, Object.assign({}, props)));
|
|
5258
5207
|
|
|
5259
5208
|
const StyledMenu = styled__default["default"](reactDropdowns.Menu) `
|
|
5260
5209
|
width: auto !important;
|
|
@@ -5272,26 +5221,12 @@ const MediaBody = (props) => (jsxRuntime.jsx(reactDropdowns.MediaBody, Object.as
|
|
|
5272
5221
|
const MediaFigure = (props) => (jsxRuntime.jsx(reactDropdowns.MediaFigure, Object.assign({}, props)));
|
|
5273
5222
|
const MediaItem = (props) => (jsxRuntime.jsx(reactDropdowns.MediaItem, Object.assign({}, props)));
|
|
5274
5223
|
|
|
5275
|
-
const StyledAutocomplete$1 = styled__default["default"](reactDropdowns.Autocomplete) `
|
|
5276
|
-
width: 100%;
|
|
5277
|
-
`;
|
|
5278
|
-
/**
|
|
5279
|
-
* Autocomplete is an input field that filters results as users type. This helps users find something quickly in a large list of options.
|
|
5280
|
-
* <hr>
|
|
5281
|
-
* Used for this:
|
|
5282
|
-
- To filter down a large list of options
|
|
5283
|
-
- To quickly find a known option
|
|
5284
|
-
* Not for this:
|
|
5285
|
-
- To make more than one selection, use Multiselect instead
|
|
5286
|
-
*/
|
|
5287
|
-
const Autocomplete = (props) => (jsxRuntime.jsx(StyledAutocomplete$1, Object.assign({}, props)));
|
|
5288
|
-
|
|
5289
5224
|
const StyledLabel$2 = styled__default["default"](reactForms.Label) ``;
|
|
5290
5225
|
/**
|
|
5291
5226
|
* A Label is used to specify a title for an input.
|
|
5292
5227
|
* <hr>
|
|
5293
5228
|
**/
|
|
5294
|
-
const Label = (props) => jsxRuntime.jsx(StyledLabel$2, Object.assign({}, props));
|
|
5229
|
+
const Label$1 = (props) => jsxRuntime.jsx(StyledLabel$2, Object.assign({}, props));
|
|
5295
5230
|
|
|
5296
5231
|
const MenuHeaderItem = (props) => (jsxRuntime.jsx(reactDropdowns.HeaderItem, Object.assign({}, props)));
|
|
5297
5232
|
|
|
@@ -5329,6 +5264,37 @@ const Message = (props) => jsxRuntime.jsx(reactDropdowns.Message, Object.assign(
|
|
|
5329
5264
|
Dropdown.HeaderItem = StyledMenuHeaderItem;
|
|
5330
5265
|
Dropdown.Separator = Separator;
|
|
5331
5266
|
|
|
5267
|
+
const Field$1 = styled__default["default"](reactDropdowns.Field) ``;
|
|
5268
|
+
|
|
5269
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
5270
|
+
__proto__: null,
|
|
5271
|
+
Field: Field$1
|
|
5272
|
+
});
|
|
5273
|
+
|
|
5274
|
+
const UgItem = styled__default["default"](reactDropdowns.Item) `
|
|
5275
|
+
display: flex;
|
|
5276
|
+
flex-direction: row;
|
|
5277
|
+
align-items: center;
|
|
5278
|
+
justify-content: flex-start;
|
|
5279
|
+
|
|
5280
|
+
> div {
|
|
5281
|
+
height: 100%;
|
|
5282
|
+
}
|
|
5283
|
+
|
|
5284
|
+
&[disabled] * {
|
|
5285
|
+
opacity: 0.85;
|
|
5286
|
+
}
|
|
5287
|
+
|
|
5288
|
+
&[disabled] svg {
|
|
5289
|
+
opacity: 0.5;
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
&[disabled]:hover {
|
|
5293
|
+
background-color: transparent;
|
|
5294
|
+
}
|
|
5295
|
+
`;
|
|
5296
|
+
const Item$1 = (props) => jsxRuntime.jsx(UgItem, Object.assign({}, props));
|
|
5297
|
+
|
|
5332
5298
|
const StyledAutocomplete = styled__default["default"](Autocomplete) `
|
|
5333
5299
|
${(props) => props.hasSelectedItems &&
|
|
5334
5300
|
`
|
|
@@ -5366,13 +5332,54 @@ const CounterMultiselect = ({ options, label, i18n, onChange, isCompact, }) => {
|
|
|
5366
5332
|
}, onStateChange: (changes) => {
|
|
5367
5333
|
if (changes.isOpen === false)
|
|
5368
5334
|
setInputValue("");
|
|
5369
|
-
}, onInputValueChange: (value) => setInputValue(value) }, { children: [jsxRuntime.jsxs(Field$1, { children: [label && jsxRuntime.jsx(Label, { children: label }), jsxRuntime.jsx(StyledAutocomplete, Object.assign({ isCompact: isCompact, hasSelectedItems: hasSelectedItems }, { children: hasSelectedItems
|
|
5335
|
+
}, onInputValueChange: (value) => setInputValue(value) }, { children: [jsxRuntime.jsxs(Field$1, { children: [label && jsxRuntime.jsx(Label$1, { children: label }), jsxRuntime.jsx(StyledAutocomplete, Object.assign({ isCompact: isCompact, hasSelectedItems: hasSelectedItems }, { children: hasSelectedItems
|
|
5370
5336
|
? (i18n === null || i18n === void 0 ? void 0 : i18n.counterText)
|
|
5371
5337
|
? i18n.counterText(selectedItems.length)
|
|
5372
5338
|
: `Items (${selectedItems.length})`
|
|
5373
5339
|
: (_a = i18n === null || i18n === void 0 ? void 0 : i18n.noItems) !== null && _a !== void 0 ? _a : "No items" }))] }), jsxRuntime.jsx(Menu, Object.assign({ isCompact: isCompact }, { children: matchingOptions.length === 0 ? (jsxRuntime.jsx(Item$1, Object.assign({ disabled: true }, { children: (_b = i18n === null || i18n === void 0 ? void 0 : i18n.noMatches) !== null && _b !== void 0 ? _b : "No matches found" }))) : (matchingOptions.map((option) => (jsxRuntime.jsx(Item$1, Object.assign({ value: option }, option, { children: jsxRuntime.jsx("span", { children: option.label }) }), option.itemId)))) }))] })) }));
|
|
5374
5340
|
};
|
|
5375
5341
|
|
|
5342
|
+
const Container = styled__default["default"].div `
|
|
5343
|
+
display: flex;
|
|
5344
|
+
flex-direction: row;
|
|
5345
|
+
align-items: center;
|
|
5346
|
+
justify-content: flex-start;
|
|
5347
|
+
width: 100%;
|
|
5348
|
+
`;
|
|
5349
|
+
const MetaContainer$1 = styled__default["default"].div `
|
|
5350
|
+
display: flex;
|
|
5351
|
+
flex-direction: column;
|
|
5352
|
+
align-items: flex-start;
|
|
5353
|
+
justify-content: center;
|
|
5354
|
+
`;
|
|
5355
|
+
const ThumbContainer = styled__default["default"].div `
|
|
5356
|
+
display: flex;
|
|
5357
|
+
flex-direction: row;
|
|
5358
|
+
align-items: center;
|
|
5359
|
+
justify-content: center;
|
|
5360
|
+
margin-right: ${({ theme }) => theme.space.sm};
|
|
5361
|
+
width: 100%;
|
|
5362
|
+
max-width: ${({ theme }) => theme.components.autocomplete.thumbSize};
|
|
5363
|
+
|
|
5364
|
+
> div {
|
|
5365
|
+
height: 100%;
|
|
5366
|
+
}
|
|
5367
|
+
`;
|
|
5368
|
+
const Label = styled__default["default"](MD) `
|
|
5369
|
+
font-weight: ${({ theme }) => theme.fontWeights.medium};
|
|
5370
|
+
color: ${({ theme }) => theme.palette.grey[800]};
|
|
5371
|
+
`;
|
|
5372
|
+
const Description$1 = styled__default["default"](SM) `
|
|
5373
|
+
color: ${({ theme }) => theme.palette.grey[600]};
|
|
5374
|
+
`;
|
|
5375
|
+
const Image$1 = React.memo(({ src }) => {
|
|
5376
|
+
return jsxRuntime.jsx("img", { src: src });
|
|
5377
|
+
});
|
|
5378
|
+
const ItemContent = (props) => {
|
|
5379
|
+
const { thumbSrc, description, label } = props;
|
|
5380
|
+
return (jsxRuntime.jsxs(Container, { children: [thumbSrc && (jsxRuntime.jsx(ThumbContainer, { children: jsxRuntime.jsx(Image$1, { src: thumbSrc }) })), jsxRuntime.jsxs(MetaContainer$1, { children: [label && jsxRuntime.jsx(Label, Object.assign({ isBold: true }, { children: label })), description && jsxRuntime.jsx(Description$1, { children: description })] })] }));
|
|
5381
|
+
};
|
|
5382
|
+
|
|
5376
5383
|
const Header$1 = styled__default["default"].div `
|
|
5377
5384
|
display: flex;
|
|
5378
5385
|
flex-direction: column;
|
|
@@ -5476,7 +5483,7 @@ const Editor = (_a) => {
|
|
|
5476
5483
|
}
|
|
5477
5484
|
// Add here because we want to keep also the listener from the props.
|
|
5478
5485
|
ed.on("update", ({ editor }) => setActiveEditor(editor));
|
|
5479
|
-
return (jsxRuntime.jsxs(EditorContainer, Object.assign({ editable: isEditable, validation: props.validation }, { children: [isEditable && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(EditorHeader, { title: headerTitle, validation: props.validation }), hasInlineMenu && (jsxRuntime.jsx(FloatingMenu, { editor: ed, tippyOptions: Object.assign({}, bubbleOptions) }))] })), jsxRuntime.jsx(react.EditorContent, { editor: ed, onKeyDown: onKeyDown }), isEditable && jsxRuntime.jsx(EditorFooter, { saveText: footerSaveText })] })));
|
|
5486
|
+
return (jsxRuntime.jsxs(EditorContainer, Object.assign({ editable: isEditable, validation: props.validation }, { children: [isEditable && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(EditorHeader, { title: headerTitle, validation: props.validation }), hasInlineMenu && (jsxRuntime.jsx(FloatingMenu$1, { editor: ed, tippyOptions: Object.assign({}, bubbleOptions) }))] })), jsxRuntime.jsx(react.EditorContent, { editor: ed, onKeyDown: onKeyDown }), isEditable && jsxRuntime.jsx(EditorFooter, { saveText: footerSaveText })] })));
|
|
5480
5487
|
};
|
|
5481
5488
|
|
|
5482
5489
|
const UgCheckbox = styled__default["default"](reactForms.Checkbox) ``;
|
|
@@ -5492,7 +5499,7 @@ const UgCheckbox = styled__default["default"](reactForms.Checkbox) ``;
|
|
|
5492
5499
|
**/
|
|
5493
5500
|
const Checkbox = (props) => jsxRuntime.jsx(UgCheckbox, Object.assign({}, props));
|
|
5494
5501
|
|
|
5495
|
-
const StyledLabel$1 = styled__default["default"](Label) `
|
|
5502
|
+
const StyledLabel$1 = styled__default["default"](Label$1) `
|
|
5496
5503
|
margin: ${({ theme }) => theme.space.base}px auto;
|
|
5497
5504
|
`;
|
|
5498
5505
|
const CheckboxCard = (props) => {
|
|
@@ -5529,8 +5536,8 @@ const Hint = styled__default["default"](reactForms.Hint) ``;
|
|
|
5529
5536
|
const Input = React.forwardRef((props, ref) => jsxRuntime.jsx(UgInput, Object.assign({ ref: ref }, props)));
|
|
5530
5537
|
|
|
5531
5538
|
var _g;
|
|
5532
|
-
function _extends$
|
|
5533
|
-
const SvgNotesStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
5539
|
+
function _extends$e() { return _extends$e = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$e.apply(null, arguments); }
|
|
5540
|
+
const SvgNotesStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
5534
5541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5535
5542
|
width: 16,
|
|
5536
5543
|
height: 16,
|
|
@@ -5562,7 +5569,7 @@ const StyledInput = styled__default["default"](Input) `
|
|
|
5562
5569
|
transition: border-color 0.2s ease-in-out 0.1s;
|
|
5563
5570
|
}
|
|
5564
5571
|
`;
|
|
5565
|
-
const StyledLabel = styled__default["default"](Label) `
|
|
5572
|
+
const StyledLabel = styled__default["default"](Label$1) `
|
|
5566
5573
|
padding: ${({ theme }) => `${theme.space.xxs} ${theme.space.xxs} 0`};
|
|
5567
5574
|
transition: opacity 0.2s ease-in-out;
|
|
5568
5575
|
`;
|
|
@@ -5648,15 +5655,15 @@ const UgRadio = styled__default["default"](reactForms.Radio) ``;
|
|
|
5648
5655
|
**/
|
|
5649
5656
|
const Radio = (props) => jsxRuntime.jsx(UgRadio, Object.assign({}, props));
|
|
5650
5657
|
|
|
5651
|
-
var _path$
|
|
5652
|
-
function _extends$
|
|
5653
|
-
const SvgCheckLg = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
5658
|
+
var _path$c;
|
|
5659
|
+
function _extends$d() { return _extends$d = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$d.apply(null, arguments); }
|
|
5660
|
+
const SvgCheckLg = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
5654
5661
|
width: 16,
|
|
5655
5662
|
height: 16,
|
|
5656
5663
|
viewBox: "0 0 16 16",
|
|
5657
5664
|
fill: "#68737D",
|
|
5658
5665
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5659
|
-
}, props), _path$
|
|
5666
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
5660
5667
|
fillRule: "evenodd",
|
|
5661
5668
|
clipRule: "evenodd",
|
|
5662
5669
|
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"
|
|
@@ -5809,6 +5816,23 @@ const Layer = styled__default["default"].div `
|
|
|
5809
5816
|
z-index: 0;
|
|
5810
5817
|
background-color: ${({ color }) => getColor(color, undefined, undefined, 0.2)};
|
|
5811
5818
|
`;
|
|
5819
|
+
const textFromSelection = (selection) => {
|
|
5820
|
+
if (!selection || !selection.toString().length)
|
|
5821
|
+
return "";
|
|
5822
|
+
if (selection.anchorNode === null || selection.focusNode === null)
|
|
5823
|
+
return "";
|
|
5824
|
+
var range = selection.getRangeAt(0);
|
|
5825
|
+
var tempDiv = document.createElement("div");
|
|
5826
|
+
tempDiv.appendChild(range.cloneContents());
|
|
5827
|
+
var items = tempDiv.querySelectorAll("div");
|
|
5828
|
+
items.forEach(function (item) {
|
|
5829
|
+
if (item.getAttribute("data-unselectable")) {
|
|
5830
|
+
item.remove();
|
|
5831
|
+
}
|
|
5832
|
+
});
|
|
5833
|
+
var filteredText = tempDiv.textContent || tempDiv.innerText;
|
|
5834
|
+
return filteredText.length ? filteredText.trim() : selection.toString();
|
|
5835
|
+
};
|
|
5812
5836
|
/**
|
|
5813
5837
|
* Use Highlight to use highlight interation on any text element
|
|
5814
5838
|
*/
|
|
@@ -5820,26 +5844,12 @@ const Highlight = (props) => {
|
|
|
5820
5844
|
const [position, setPosition] = React.useState();
|
|
5821
5845
|
const [selection, setSelection] = React.useState();
|
|
5822
5846
|
const activeSelection = document.getSelection();
|
|
5823
|
-
const extractText = (
|
|
5824
|
-
if (selection.anchorNode === null || selection.focusNode === null)
|
|
5825
|
-
return "";
|
|
5826
|
-
var range = selection.getRangeAt(0);
|
|
5827
|
-
var tempDiv = document.createElement("div");
|
|
5828
|
-
tempDiv.appendChild(range.cloneContents());
|
|
5829
|
-
var items = tempDiv.querySelectorAll("div");
|
|
5830
|
-
items.forEach(function (item) {
|
|
5831
|
-
if (item.getAttribute("data-unselectable")) {
|
|
5832
|
-
item.remove();
|
|
5833
|
-
}
|
|
5834
|
-
});
|
|
5835
|
-
var filteredText = tempDiv.textContent || tempDiv.innerText;
|
|
5836
|
-
return filteredText.length ? filteredText.trim() : selection.toString();
|
|
5837
|
-
};
|
|
5847
|
+
const extractText = React.useMemo(() => textFromSelection(activeSelection), [activeSelection]);
|
|
5838
5848
|
const handleSelectionChange = React.useCallback(() => {
|
|
5839
5849
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5840
5850
|
if (activeSelection && activeSelection.toString().length > 0) {
|
|
5841
5851
|
// Extract the text from the selection cleaning unselectable items
|
|
5842
|
-
const text = extractText
|
|
5852
|
+
const text = extractText;
|
|
5843
5853
|
if (!text)
|
|
5844
5854
|
return;
|
|
5845
5855
|
const anchorNode = (_a = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
@@ -5882,7 +5892,7 @@ const Highlight = (props) => {
|
|
|
5882
5892
|
else {
|
|
5883
5893
|
setIsSelecting(false);
|
|
5884
5894
|
}
|
|
5885
|
-
}, [
|
|
5895
|
+
}, [activeSelection, extractText, onSelectionButtonClick]);
|
|
5886
5896
|
React.useEffect(() => {
|
|
5887
5897
|
if (ref.current === null)
|
|
5888
5898
|
return;
|
|
@@ -5896,15 +5906,14 @@ const Highlight = (props) => {
|
|
|
5896
5906
|
y: 0,
|
|
5897
5907
|
}, onClick: () => onSelectionButtonClick(selection) }, { children: [jsxRuntime.jsx(CreateObservationButton.StartIcon, { children: jsxRuntime.jsx(SvgTagStroke, {}) }), (_a = i18n === null || i18n === void 0 ? void 0 : i18n.selectionButtonLabel) !== null && _a !== void 0 ? _a : "Create observation"] })))] })));
|
|
5898
5908
|
};
|
|
5899
|
-
const Word = (props) => {
|
|
5909
|
+
const Word$1 = (props) => {
|
|
5900
5910
|
const isActive = props.currentTime &&
|
|
5901
5911
|
props.currentTime >= props.start &&
|
|
5902
5912
|
props.currentTime < props.end;
|
|
5903
5913
|
// Are there any observations containing this word?
|
|
5904
5914
|
const foundObservations = React.useMemo(() => {
|
|
5905
5915
|
var _a, _b;
|
|
5906
|
-
return (_b = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.filter((obs) =>
|
|
5907
|
-
Number(props.end.toFixed(8)) <= Number(obs.end.toFixed(8)))) !== null && _b !== void 0 ? _b : [];
|
|
5916
|
+
return (_b = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.filter((obs) => props.start >= obs.start && props.end <= obs.end)) !== null && _b !== void 0 ? _b : [];
|
|
5908
5917
|
}, [props.observations, props.start, props.end]);
|
|
5909
5918
|
const ObsWord = React.useMemo(() => (jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { "data-start": props.start, "data-end": props.end, className: foundObservations.length > 0 ? "highlighted" : "" }, (foundObservations && { observations: foundObservations }), { children: [foundObservations.length > 0 &&
|
|
5910
5919
|
foundObservations.map((obs) => {
|
|
@@ -5916,7 +5925,7 @@ const Word = (props) => {
|
|
|
5916
5925
|
}
|
|
5917
5926
|
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: ObsWord });
|
|
5918
5927
|
};
|
|
5919
|
-
Highlight.Word = Word;
|
|
5928
|
+
Highlight.Word = Word$1;
|
|
5920
5929
|
|
|
5921
5930
|
/**
|
|
5922
5931
|
* The Dots loader communicates ongoing activity after a user takes an action.
|
|
@@ -5990,15 +5999,15 @@ const Logo = (props) => {
|
|
|
5990
5999
|
}[props.type] })));
|
|
5991
6000
|
};
|
|
5992
6001
|
|
|
5993
|
-
var _path$
|
|
5994
|
-
function _extends$
|
|
5995
|
-
const SvgPlus = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6002
|
+
var _path$b;
|
|
6003
|
+
function _extends$c() { return _extends$c = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$c.apply(null, arguments); }
|
|
6004
|
+
const SvgPlus = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
5996
6005
|
width: 16,
|
|
5997
6006
|
height: 16,
|
|
5998
6007
|
viewBox: "0 0 16 16",
|
|
5999
6008
|
fill: "none",
|
|
6000
6009
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6001
|
-
}, props), _path$
|
|
6010
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6002
6011
|
fillRule: "evenodd",
|
|
6003
6012
|
clipRule: "evenodd",
|
|
6004
6013
|
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",
|
|
@@ -6039,7 +6048,7 @@ const MultiSelect = ({ options, onChange, creatable, i18n, maxItems, size, menuH
|
|
|
6039
6048
|
setMatchingOptions(matchedOptions);
|
|
6040
6049
|
}, [inputValue, options]);
|
|
6041
6050
|
return (jsxRuntime.jsxs(Dropdown, Object.assign({ inputValue: inputValue, selectedItems: options.filter((option) => option.selected), onSelect: (items) => onChange &&
|
|
6042
|
-
onChange(options.map((o) => (Object.assign(Object.assign({}, o), { selected: items.some((i) => i.id === o.id) })))), downshiftProps: { itemToString }, onInputValueChange: (value) => setInputValue(value) }, { children: [jsxRuntime.jsxs(Field$1, { children: [jsxRuntime.jsx(Label, Object.assign({ hidden: true }, { children: (_a = i18n === null || i18n === void 0 ? void 0 : i18n.label) !== null && _a !== void 0 ? _a : "Multiselect" })), jsxRuntime.jsx(reactDropdowns.Multiselect, { placeholder: (_b = i18n === null || i18n === void 0 ? void 0 : i18n.placeholder) !== null && _b !== void 0 ? _b : "Select Items", renderShowMore: i18n === null || i18n === void 0 ? void 0 : i18n.showMore, isCompact: size !== "medium", maxItems: maxItems, renderItem: ({ value }) => (jsxRuntime.jsxs(reactTags.Tag, Object.assign({ isPill: true }, { children: [jsxRuntime.jsx("span", { children: value.label }), jsxRuntime.jsx(reactTags.Tag.Close, { onClick: () => onChange &&
|
|
6051
|
+
onChange(options.map((o) => (Object.assign(Object.assign({}, o), { selected: items.some((i) => i.id === o.id) })))), downshiftProps: { itemToString }, onInputValueChange: (value) => setInputValue(value) }, { children: [jsxRuntime.jsxs(Field$1, { children: [jsxRuntime.jsx(Label$1, Object.assign({ hidden: true }, { children: (_a = i18n === null || i18n === void 0 ? void 0 : i18n.label) !== null && _a !== void 0 ? _a : "Multiselect" })), jsxRuntime.jsx(reactDropdowns.Multiselect, { placeholder: (_b = i18n === null || i18n === void 0 ? void 0 : i18n.placeholder) !== null && _b !== void 0 ? _b : "Select Items", renderShowMore: i18n === null || i18n === void 0 ? void 0 : i18n.showMore, isCompact: size !== "medium", maxItems: maxItems, renderItem: ({ value }) => (jsxRuntime.jsxs(reactTags.Tag, Object.assign({ isPill: true }, { children: [jsxRuntime.jsx("span", { children: value.label }), jsxRuntime.jsx(reactTags.Tag.Close, { onClick: () => onChange &&
|
|
6043
6052
|
onChange(options.map((o) => (Object.assign(Object.assign({}, o), { selected: o.selected && o.id !== value.id })))) })] }))) })] }), jsxRuntime.jsxs(Menu, { children: [jsxRuntime.jsxs("div", Object.assign({ style: { maxHeight: menuHeight !== null && menuHeight !== void 0 ? menuHeight : "200px" } }, { children: [matchingOptions.map((option) => {
|
|
6044
6053
|
const items = options
|
|
6045
6054
|
.filter((o) => o.selected)
|
|
@@ -6100,18 +6109,18 @@ ModalFullScreen.Footer = StyledFooter$1;
|
|
|
6100
6109
|
ModalFullScreen.Close = StyledModalClose;
|
|
6101
6110
|
ModalFullScreen.FooterItem = FooterItem;
|
|
6102
6111
|
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6112
|
+
var _path$a;
|
|
6113
|
+
function _extends$b() { return _extends$b = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$b.apply(null, arguments); }
|
|
6114
|
+
const SvgChevronDownStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
6115
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6116
|
+
width: 16,
|
|
6117
|
+
height: 16,
|
|
6118
|
+
focusable: "false",
|
|
6119
|
+
viewBox: "0 0 16 16"
|
|
6120
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6121
|
+
fill: "currentColor",
|
|
6122
|
+
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"
|
|
6123
|
+
})));
|
|
6115
6124
|
|
|
6116
6125
|
const UgHeaderItem = styled__default["default"](reactChrome.HeaderItem) `
|
|
6117
6126
|
${(props) => props.hasLogo && `border-right: none`};
|
|
@@ -6219,19 +6228,6 @@ Header.HeaderItem = HeaderItem;
|
|
|
6219
6228
|
Header.HeaderItemText = HeaderItemText;
|
|
6220
6229
|
Header.HeaderItemIcon = HeaderItemIcon;
|
|
6221
6230
|
|
|
6222
|
-
var _path$8;
|
|
6223
|
-
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
6224
|
-
const SvgChevronDownStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
6225
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6226
|
-
width: 16,
|
|
6227
|
-
height: 16,
|
|
6228
|
-
focusable: "false",
|
|
6229
|
-
viewBox: "0 0 16 16"
|
|
6230
|
-
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6231
|
-
fill: "currentColor",
|
|
6232
|
-
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"
|
|
6233
|
-
})));
|
|
6234
|
-
|
|
6235
6231
|
const HeaderSkeleton = () => {
|
|
6236
6232
|
return (jsxRuntime.jsxs(Header, Object.assign({ isStandalone: true }, { children: [jsxRuntime.jsx(LogoIconContainer, Object.assign({ hasLogo: true }, { children: jsxRuntime.jsx(HeaderItemIcon, { children: jsxRuntime.jsx(Logo, { type: "icon", size: 150 }) }) })), jsxRuntime.jsx(HeaderItem, Object.assign({ style: { marginRight: "auto", marginLeft: "-4px" } }, { children: window.matchMedia(`only screen and (min-width: 576px)`).matches ? (jsxRuntime.jsx(Skeleton, { width: "200px", height: theme.space.sm })) : (jsxRuntime.jsx(Skeleton, { width: "80px", height: theme.space.sm, style: { marginLeft: theme.space.sm } })) })), jsxRuntime.jsx(HeaderItem, Object.assign({ isRound: true }, { children: jsxRuntime.jsx(HeaderItemIcon, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(Skeleton, { width: "32px", height: "32px", style: { borderRadius: "100%" } }) }) }) }))] })));
|
|
6237
6233
|
};
|
|
@@ -6250,6 +6246,27 @@ const AppHeader = (_a) => {
|
|
|
6250
6246
|
return isLoading ? (jsxRuntime.jsx(HeaderSkeleton, {})) : (jsxRuntime.jsxs(Header, Object.assign({}, args, { style: Object.assign(Object.assign({}, style), { zIndex: (style === null || style === void 0 ? void 0 : style.zIndex) || theme.levels.front }) }, { children: [jsxRuntime.jsx(BrandItem, Object.assign({}, brand, { toggleMenu: args.onSidebarMenuToggle })), args.hasChangelog && args.changelogItem && (jsxRuntime.jsx(HeaderItem, Object.assign({ style: { marginRight: "-" + theme.space.xs } }, { children: jsxRuntime.jsx(HeaderItemIcon, { children: args.changelogItem }) }))), jsxRuntime.jsx(HeaderItem, Object.assign({ isRound: true, onClick: args.onProfileModalToggle }, { children: jsxRuntime.jsx(HeaderItemIcon, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Avatar, Object.assign({}, avatar)), jsxRuntime.jsx(ChevronButton, Object.assign({ size: "small", isRotated: args.isProfileModalOpen }, { children: jsxRuntime.jsx(SvgChevronDownStroke, {}) }))] }) }) }))] })));
|
|
6251
6247
|
};
|
|
6252
6248
|
|
|
6249
|
+
const UgBody = styled__default["default"](reactChrome.Body) `
|
|
6250
|
+
background-color: ${({ theme }) => theme.palette.white};
|
|
6251
|
+
`;
|
|
6252
|
+
/**
|
|
6253
|
+
* A Body defines the main content of an HTML document which displays on the browser
|
|
6254
|
+
*/
|
|
6255
|
+
const Body$1 = (props) => jsxRuntime.jsx(UgBody, Object.assign({}, props));
|
|
6256
|
+
|
|
6257
|
+
/**
|
|
6258
|
+
* The Chrome component provides a high-level layout structure and sets a framework for navigating around Zendesk products.
|
|
6259
|
+
* <br>
|
|
6260
|
+
* Used for this:
|
|
6261
|
+
- To give a consistent dashboard and navigation experience
|
|
6262
|
+
*/
|
|
6263
|
+
const Chrome = (props) => jsxRuntime.jsx(reactChrome.Chrome, Object.assign({}, props));
|
|
6264
|
+
|
|
6265
|
+
/**
|
|
6266
|
+
* A Content defines the main content of an HTML document which displays on the browser
|
|
6267
|
+
*/
|
|
6268
|
+
const Content$1 = (props) => jsxRuntime.jsx(reactChrome.Content, Object.assign({}, props));
|
|
6269
|
+
|
|
6253
6270
|
const UgMain = styled__default["default"](reactChrome.Main) `
|
|
6254
6271
|
@media (min-width: ${({ theme }) => theme.breakpoints.sm}) {
|
|
6255
6272
|
margin: ${({ theme }) => theme.space.xxl}
|
|
@@ -6407,14 +6424,6 @@ NavAccordionItem.Panel = AccordionItemPanel;
|
|
|
6407
6424
|
NavAccordionItem.Header = AccordionItemHeader;
|
|
6408
6425
|
NavAccordionItem.Label = AccordionItemLabel;
|
|
6409
6426
|
|
|
6410
|
-
/**
|
|
6411
|
-
* The Chrome component provides a high-level layout structure and sets a framework for navigating around Zendesk products.
|
|
6412
|
-
* <br>
|
|
6413
|
-
* Used for this:
|
|
6414
|
-
- To give a consistent dashboard and navigation experience
|
|
6415
|
-
*/
|
|
6416
|
-
const Chrome = (props) => jsxRuntime.jsx(reactChrome.Chrome, Object.assign({}, props));
|
|
6417
|
-
|
|
6418
6427
|
const UgPagination = styled__default["default"](reactPagination.Pagination) ``;
|
|
6419
6428
|
/**
|
|
6420
6429
|
* Pagination separates content into pages and allows users to navigate between those pages.
|
|
@@ -6540,15 +6549,15 @@ PageHeader.Description = MainDescription;
|
|
|
6540
6549
|
PageHeader.Meta = MainMeta;
|
|
6541
6550
|
PageHeader.Footer = StyledFooter;
|
|
6542
6551
|
|
|
6543
|
-
var _path$
|
|
6544
|
-
function _extends$
|
|
6545
|
-
const SvgExit = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6552
|
+
var _path$8, _path2;
|
|
6553
|
+
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
6554
|
+
const SvgExit = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
6546
6555
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6547
6556
|
width: 16,
|
|
6548
6557
|
height: 16,
|
|
6549
6558
|
focusable: "false",
|
|
6550
6559
|
viewBox: "0 0 16 16"
|
|
6551
|
-
}, props), _path$
|
|
6560
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6552
6561
|
fill: "currentColor",
|
|
6553
6562
|
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"
|
|
6554
6563
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -6558,24 +6567,24 @@ const SvgExit = props => /*#__PURE__*/React__namespace.createElement("svg", _ext
|
|
|
6558
6567
|
d: "M3.5 2.5H9c.28 0 .5.22.5.5v2.5m-6 8H9c.28 0 .5-.22.5-.5v-2.5M15 8H7"
|
|
6559
6568
|
})));
|
|
6560
6569
|
|
|
6561
|
-
var _path$
|
|
6562
|
-
function _extends$
|
|
6563
|
-
const SvgThumbsUp = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6570
|
+
var _path$7;
|
|
6571
|
+
function _extends$8() { return _extends$8 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$8.apply(null, arguments); }
|
|
6572
|
+
const SvgThumbsUp = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
6564
6573
|
width: 16,
|
|
6565
6574
|
height: 16,
|
|
6566
6575
|
viewBox: "0 0 16 16",
|
|
6567
6576
|
fill: "none",
|
|
6568
6577
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6569
|
-
}, props), _path$
|
|
6578
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6570
6579
|
fillRule: "evenodd",
|
|
6571
6580
|
clipRule: "evenodd",
|
|
6572
6581
|
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",
|
|
6573
6582
|
fill: "#68737D"
|
|
6574
6583
|
})));
|
|
6575
6584
|
|
|
6576
|
-
var _rect, _path$
|
|
6577
|
-
function _extends$
|
|
6578
|
-
const SvgLockLockedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6585
|
+
var _rect, _path$6;
|
|
6586
|
+
function _extends$7() { return _extends$7 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$7.apply(null, arguments); }
|
|
6587
|
+
const SvgLockLockedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
6579
6588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6580
6589
|
width: 16,
|
|
6581
6590
|
height: 16,
|
|
@@ -6589,7 +6598,7 @@ const SvgLockLockedFill = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
6589
6598
|
fill: "currentColor",
|
|
6590
6599
|
rx: 1,
|
|
6591
6600
|
ry: 1
|
|
6592
|
-
})), _path$
|
|
6601
|
+
})), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6593
6602
|
fill: "none",
|
|
6594
6603
|
stroke: "currentColor",
|
|
6595
6604
|
d: "M4.5 7.5V4a3.5 3.5 0 017 0v3.5"
|
|
@@ -6700,44 +6709,44 @@ const MenuItem = (_a) => {
|
|
|
6700
6709
|
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));
|
|
6701
6710
|
};
|
|
6702
6711
|
|
|
6703
|
-
var _path$
|
|
6704
|
-
function _extends$
|
|
6705
|
-
const SvgQuestionMark = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6712
|
+
var _path$5;
|
|
6713
|
+
function _extends$6() { return _extends$6 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$6.apply(null, arguments); }
|
|
6714
|
+
const SvgQuestionMark = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
6706
6715
|
width: 16,
|
|
6707
6716
|
height: 16,
|
|
6708
6717
|
viewBox: "0 0 16 16",
|
|
6709
6718
|
fill: "currentColor",
|
|
6710
6719
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6711
|
-
}, props), _path$
|
|
6720
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6712
6721
|
fillRule: "evenodd",
|
|
6713
6722
|
clipRule: "evenodd",
|
|
6714
6723
|
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"
|
|
6715
6724
|
})));
|
|
6716
6725
|
|
|
6717
|
-
var _path$
|
|
6718
|
-
function _extends$
|
|
6719
|
-
const SvgCopy = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6726
|
+
var _path$4;
|
|
6727
|
+
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
6728
|
+
const SvgCopy = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
6720
6729
|
width: 12,
|
|
6721
6730
|
height: 16,
|
|
6722
6731
|
viewBox: "0 0 12 16",
|
|
6723
6732
|
fill: "none",
|
|
6724
6733
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6725
|
-
}, props), _path$
|
|
6734
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6726
6735
|
fillRule: "evenodd",
|
|
6727
6736
|
clipRule: "evenodd",
|
|
6728
6737
|
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",
|
|
6729
6738
|
fill: "#003A57"
|
|
6730
6739
|
})));
|
|
6731
6740
|
|
|
6732
|
-
var _path$
|
|
6733
|
-
function _extends$
|
|
6734
|
-
const SvgInfoFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6741
|
+
var _path$3;
|
|
6742
|
+
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
6743
|
+
const SvgInfoFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
6735
6744
|
width: 16,
|
|
6736
6745
|
height: 16,
|
|
6737
6746
|
viewBox: "0 0 16 16",
|
|
6738
6747
|
fill: "currentColor",
|
|
6739
6748
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6740
|
-
}, props), _path$
|
|
6749
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6741
6750
|
fillRule: "evenodd",
|
|
6742
6751
|
clipRule: "evenodd",
|
|
6743
6752
|
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"
|
|
@@ -6762,7 +6771,7 @@ const UgParagraph = styled__default["default"](reactTypography.Paragraph) `
|
|
|
6762
6771
|
/**
|
|
6763
6772
|
* Use Paragraph to render blocks of text with Garden styling.
|
|
6764
6773
|
*/
|
|
6765
|
-
const Paragraph = (props) => jsxRuntime.jsx(UgParagraph, Object.assign({}, props));
|
|
6774
|
+
const Paragraph$1 = (props) => jsxRuntime.jsx(UgParagraph, Object.assign({}, props));
|
|
6766
6775
|
|
|
6767
6776
|
const getInitials = (name) => {
|
|
6768
6777
|
const names = name.split(" ");
|
|
@@ -6790,7 +6799,7 @@ const StyledBody$3 = styled__default["default"].div `
|
|
|
6790
6799
|
margin: ${({ theme }) => theme.space.base * 6}px
|
|
6791
6800
|
${({ theme }) => theme.space.base * 4}px;
|
|
6792
6801
|
`;
|
|
6793
|
-
const StyledParagraph = styled__default["default"](Paragraph) `
|
|
6802
|
+
const StyledParagraph = styled__default["default"](Paragraph$1) `
|
|
6794
6803
|
margin-top: ${({ theme }) => theme.space.base * 4}px;
|
|
6795
6804
|
`;
|
|
6796
6805
|
const Footer = styled__default["default"].div `
|
|
@@ -6818,7 +6827,7 @@ const HelpItem = (props) => {
|
|
|
6818
6827
|
if (email.length > 24) {
|
|
6819
6828
|
csmEmailCut = `${email.substring(0, 21)}...`;
|
|
6820
6829
|
}
|
|
6821
|
-
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: () => {
|
|
6830
|
+
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$1, 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: () => {
|
|
6822
6831
|
var _a;
|
|
6823
6832
|
copyToClipBoard();
|
|
6824
6833
|
(_a = props.onCopyEmail) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
@@ -6826,8 +6835,8 @@ const HelpItem = (props) => {
|
|
|
6826
6835
|
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 })) }));
|
|
6827
6836
|
};
|
|
6828
6837
|
|
|
6829
|
-
function _extends$
|
|
6830
|
-
const SvgEmpty = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6838
|
+
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
6839
|
+
const SvgEmpty = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
6831
6840
|
width: 16,
|
|
6832
6841
|
height: 16,
|
|
6833
6842
|
viewBox: "0 0 16 16",
|
|
@@ -6835,15 +6844,15 @@ const SvgEmpty = props => /*#__PURE__*/React__namespace.createElement("svg", _ex
|
|
|
6835
6844
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6836
6845
|
}, props));
|
|
6837
6846
|
|
|
6838
|
-
var _path$
|
|
6839
|
-
function _extends$
|
|
6840
|
-
const SvgTranslationExists = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
6847
|
+
var _path$2;
|
|
6848
|
+
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
6849
|
+
const SvgTranslationExists = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
6841
6850
|
width: 16,
|
|
6842
6851
|
height: 16,
|
|
6843
6852
|
viewBox: "0 0 16 16",
|
|
6844
6853
|
fill: "#68737D",
|
|
6845
6854
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6846
|
-
}, props), _path$
|
|
6855
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6847
6856
|
fillRule: "evenodd",
|
|
6848
6857
|
clipRule: "evenodd",
|
|
6849
6858
|
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"
|
|
@@ -6886,15 +6895,15 @@ const UserContainer = (props) => {
|
|
|
6886
6895
|
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 }))] })] }));
|
|
6887
6896
|
};
|
|
6888
6897
|
|
|
6889
|
-
var _path;
|
|
6890
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
6891
|
-
const SvgGearFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
6898
|
+
var _path$1;
|
|
6899
|
+
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
6900
|
+
const SvgGearFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
6892
6901
|
width: 16,
|
|
6893
6902
|
height: 16,
|
|
6894
6903
|
viewBox: "0 0 16 16",
|
|
6895
6904
|
fill: "none",
|
|
6896
6905
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6897
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6906
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
6898
6907
|
fillRule: "evenodd",
|
|
6899
6908
|
clipRule: "evenodd",
|
|
6900
6909
|
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",
|
|
@@ -6924,7 +6933,7 @@ const SettingsItem = (props) => {
|
|
|
6924
6933
|
setValue(value);
|
|
6925
6934
|
props.onSetSettings && props.onSetSettings(value);
|
|
6926
6935
|
};
|
|
6927
|
-
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"
|
|
6936
|
+
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$1, { children: value === "1"
|
|
6928
6937
|
? (_e = (_d = props.i18n) === null || _d === void 0 ? void 0 : _d.settingsToggle) === null || _e === void 0 ? void 0 : _e.on
|
|
6929
6938
|
: (_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 }) })] }))] })] }));
|
|
6930
6939
|
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 })) }));
|
|
@@ -7139,7 +7148,7 @@ const UgGroupRow = styled__default["default"](reactTables.GroupRow) `
|
|
|
7139
7148
|
const GroupRow = (props) => jsxRuntime.jsx(UgGroupRow, Object.assign({}, props));
|
|
7140
7149
|
const GroupRowComponent = (props) => {
|
|
7141
7150
|
return (jsxRuntime.jsx(GroupRow, Object.assign({}, (props && props.group.items.length === 0 && { className: "empty" }), (props &&
|
|
7142
|
-
props.group.items.length > 0 && { onClick: props.handleToggle }), props, { children: jsxRuntime.jsxs(Cell, Object.assign({ colSpan: props.colSpan, className: props.open ? "open" : "closed" }, { children: [props.group.groupIcon && (jsxRuntime.jsx(StyledUgIcon, { size: 12, type: props.group.groupIcon })), jsxRuntime.jsxs(Label, Object.assign({ isRegular: true, className: "title" }, { children: [props.group.groupName, " ", jsxRuntime.jsxs("b", { children: ["(", props.group.items.length, ")"] })] })), jsxRuntime.jsx(StyledAnimatedToggle, Object.assign({ style: { transform: props.open ? "rotate(180deg)" : "none" } }, { children: jsxRuntime.jsx(SvgChevronDownStroke, {}) }))] })) })));
|
|
7151
|
+
props.group.items.length > 0 && { onClick: props.handleToggle }), props, { children: jsxRuntime.jsxs(Cell, Object.assign({ colSpan: props.colSpan, className: props.open ? "open" : "closed" }, { children: [props.group.groupIcon && (jsxRuntime.jsx(StyledUgIcon, { size: 12, type: props.group.groupIcon })), jsxRuntime.jsxs(Label$1, Object.assign({ isRegular: true, className: "title" }, { children: [props.group.groupName, " ", jsxRuntime.jsxs("b", { children: ["(", props.group.items.length, ")"] })] })), jsxRuntime.jsx(StyledAnimatedToggle, Object.assign({ style: { transform: props.open ? "rotate(180deg)" : "none" } }, { children: jsxRuntime.jsx(SvgChevronDownStroke, {}) }))] })) })));
|
|
7143
7152
|
};
|
|
7144
7153
|
const AnimatedRow = styled__default["default"](Row) `
|
|
7145
7154
|
&.render {
|
|
@@ -7343,6 +7352,604 @@ OrderedList.Item = UgOrderedList.Item;
|
|
|
7343
7352
|
const UnorderedList = (props) => jsxRuntime.jsx(UgUnorderedList, Object.assign({}, props));
|
|
7344
7353
|
UnorderedList.Item = UgUnorderedList.Item;
|
|
7345
7354
|
|
|
7355
|
+
const DefaultActiveWrapper = ({ children }) => {
|
|
7356
|
+
return jsxRuntime.jsx("span", Object.assign({ style: { background: "#ff0000" } }, { children: children }));
|
|
7357
|
+
};
|
|
7358
|
+
const DefaultWordWrapper = ({ children }) => {
|
|
7359
|
+
return jsxRuntime.jsx("span", { children: children });
|
|
7360
|
+
};
|
|
7361
|
+
const DefaultObservationWrapper = ({ title, color, children, observations, }) => {
|
|
7362
|
+
const background = color + "50";
|
|
7363
|
+
return (jsxRuntime.jsx("span", Object.assign({ "data-title": title, style: { background } }, { children: jsxRuntime.jsx(Tooltip, Object.assign({ content: observations.map((o) => o.title).join(" and ") }, { children: jsxRuntime.jsx("span", { children: children }) })) })));
|
|
7364
|
+
};
|
|
7365
|
+
const DefaultParagraphWrapper = ({ children }) => {
|
|
7366
|
+
return jsxRuntime.jsx("p", Object.assign({ style: { marginBottom: "20px" } }, { children: children }));
|
|
7367
|
+
};
|
|
7368
|
+
const formatTime = (seconds) => {
|
|
7369
|
+
const date = new Date(0);
|
|
7370
|
+
date.setSeconds(seconds);
|
|
7371
|
+
if (seconds < 3600)
|
|
7372
|
+
return date.toISOString().substring(14, 19);
|
|
7373
|
+
return date.toISOString().substring(11, 19);
|
|
7374
|
+
};
|
|
7375
|
+
const DefaultSpeakerWrapper = ({ start, end, setCurrentTime, speaker, }) => {
|
|
7376
|
+
return (jsxRuntime.jsxs("p", Object.assign({ style: {
|
|
7377
|
+
marginBottom: "10px",
|
|
7378
|
+
userSelect: "none",
|
|
7379
|
+
}, onClick: () => {
|
|
7380
|
+
setCurrentTime && setCurrentTime({ start, end });
|
|
7381
|
+
}, contentEditable: false }, { children: [speaker, " (", formatTime(start), " - ", formatTime(end), ")"] })));
|
|
7382
|
+
};
|
|
7383
|
+
const DefaultSentencesWrapper = ({ children }) => {
|
|
7384
|
+
return jsxRuntime.jsx("div", Object.assign({ style: { paddingTop: "30px" } }, { children: children }));
|
|
7385
|
+
};
|
|
7386
|
+
const DefaultSentenceWrapper = ({ setCurrentTime, children, start, end, isActive, }) => {
|
|
7387
|
+
return (jsxRuntime.jsx("span", Object.assign({ onClick: () => {
|
|
7388
|
+
setCurrentTime && setCurrentTime({ start, end });
|
|
7389
|
+
}, style: isActive
|
|
7390
|
+
? {
|
|
7391
|
+
backgroundColor: "yellow",
|
|
7392
|
+
}
|
|
7393
|
+
: {} }, { children: children })));
|
|
7394
|
+
};
|
|
7395
|
+
const DefaultTranslationWrapper = ({ content, translations, }) => {
|
|
7396
|
+
return (jsxRuntime.jsxs("div", Object.assign({ style: { display: "flex" } }, { children: [jsxRuntime.jsx("div", Object.assign({ style: { width: "50%" } }, { children: content })), jsxRuntime.jsx("div", Object.assign({ style: { width: "50%" } }, { children: translations }))] })));
|
|
7397
|
+
};
|
|
7398
|
+
const SearchStyleWrapper = styled.styled.span `
|
|
7399
|
+
.search-result {
|
|
7400
|
+
background-color: rgba(255, 217, 0, 0.5);
|
|
7401
|
+
|
|
7402
|
+
&-current {
|
|
7403
|
+
background-color: rgba(13, 255, 0, 0.5);
|
|
7404
|
+
}
|
|
7405
|
+
}
|
|
7406
|
+
`;
|
|
7407
|
+
const Theme = react.Extension.create({
|
|
7408
|
+
name: "theme",
|
|
7409
|
+
addOptions() {
|
|
7410
|
+
return {
|
|
7411
|
+
activeWrapper: DefaultActiveWrapper,
|
|
7412
|
+
wordWrapper: DefaultWordWrapper,
|
|
7413
|
+
observationWrapper: DefaultObservationWrapper,
|
|
7414
|
+
paragraphWrapper: DefaultParagraphWrapper,
|
|
7415
|
+
speakerWrapper: DefaultSpeakerWrapper,
|
|
7416
|
+
sentencesWrapper: DefaultSentencesWrapper,
|
|
7417
|
+
sentenceWrapper: DefaultSentenceWrapper,
|
|
7418
|
+
translationWrapper: DefaultTranslationWrapper,
|
|
7419
|
+
searchStyleWrapper: SearchStyleWrapper,
|
|
7420
|
+
};
|
|
7421
|
+
},
|
|
7422
|
+
});
|
|
7423
|
+
const getTheme = (editor) => {
|
|
7424
|
+
const themeExtension = editor.extensionManager.extensions.find((ext) => ext.name === "theme");
|
|
7425
|
+
if (!themeExtension) {
|
|
7426
|
+
throw new Error("Theme extension not found");
|
|
7427
|
+
}
|
|
7428
|
+
return themeExtension;
|
|
7429
|
+
};
|
|
7430
|
+
|
|
7431
|
+
const MenuContainer = styled__default["default"].div `
|
|
7432
|
+
box-shadow: ${({ theme }) => theme.shadows.boxShadow(theme)};
|
|
7433
|
+
display: flex;
|
|
7434
|
+
`;
|
|
7435
|
+
const FloatingMenu = (props) => {
|
|
7436
|
+
const { editor, onClick } = props;
|
|
7437
|
+
const shouldShow = (props) => {
|
|
7438
|
+
// At least a word selected?", props.from !== props.to);
|
|
7439
|
+
return props.from !== props.to;
|
|
7440
|
+
};
|
|
7441
|
+
if (!editor) {
|
|
7442
|
+
return null;
|
|
7443
|
+
}
|
|
7444
|
+
return (jsxRuntime.jsx(react.BubbleMenu, Object.assign({ editor: editor, shouldShow: shouldShow }, { children: jsxRuntime.jsx(MenuContainer, Object.assign({ className: "bubble-menu" }, { children: jsxRuntime.jsxs(Button, Object.assign({ isAccent: true, isPrimary: true, onClick: () => {
|
|
7445
|
+
const { from, to } = editor.state.selection;
|
|
7446
|
+
let start = 0;
|
|
7447
|
+
let end = 0;
|
|
7448
|
+
editor.state.doc.nodesBetween(from, to, (node) => {
|
|
7449
|
+
if (node.type.name === "Word") {
|
|
7450
|
+
if (!start)
|
|
7451
|
+
start = node.attrs["data-start"];
|
|
7452
|
+
end = node.attrs["data-end"];
|
|
7453
|
+
}
|
|
7454
|
+
});
|
|
7455
|
+
if (start === end)
|
|
7456
|
+
return;
|
|
7457
|
+
onClick(editor, { start, end });
|
|
7458
|
+
} }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgTagStroke, {}) }), "Create Observation"] })) })) })));
|
|
7459
|
+
};
|
|
7460
|
+
|
|
7461
|
+
var _circle, _path;
|
|
7462
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
7463
|
+
const SvgSearchStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
7464
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7465
|
+
width: 16,
|
|
7466
|
+
height: 16,
|
|
7467
|
+
focusable: "false",
|
|
7468
|
+
viewBox: "0 0 16 16"
|
|
7469
|
+
}, props), _circle || (_circle = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
7470
|
+
cx: 6,
|
|
7471
|
+
cy: 6,
|
|
7472
|
+
r: 5.5,
|
|
7473
|
+
fill: "none",
|
|
7474
|
+
stroke: "currentColor"
|
|
7475
|
+
})), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
7476
|
+
stroke: "currentColor",
|
|
7477
|
+
strokeLinecap: "round",
|
|
7478
|
+
d: "M15 15l-5-5"
|
|
7479
|
+
})));
|
|
7480
|
+
|
|
7481
|
+
const Search = ({ editor, placeholder, }) => {
|
|
7482
|
+
const [search, setSearch] = React.useState("");
|
|
7483
|
+
const debouncedValue = useDebounce(search, 300);
|
|
7484
|
+
const setSearchTerm = React.useCallback((term) => {
|
|
7485
|
+
editor.commands.setSearchTerm(term);
|
|
7486
|
+
}, [editor]);
|
|
7487
|
+
React.useEffect(() => {
|
|
7488
|
+
setSearchTerm(debouncedValue);
|
|
7489
|
+
}, [debouncedValue, setSearchTerm]);
|
|
7490
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MediaInput, { isCompact: true, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : "Search", type: "text", start: jsxRuntime.jsx(SvgSearchStroke, {}), onChange: (e) => {
|
|
7491
|
+
setSearch(e.target.value);
|
|
7492
|
+
} }) }));
|
|
7493
|
+
};
|
|
7494
|
+
const SearchStyle = styled.css `
|
|
7495
|
+
.search-result {
|
|
7496
|
+
background-color: rgba(255, 217, 0, 0.5);
|
|
7497
|
+
|
|
7498
|
+
&-current {
|
|
7499
|
+
background-color: rgba(13, 255, 0, 0.5);
|
|
7500
|
+
}
|
|
7501
|
+
}
|
|
7502
|
+
`;
|
|
7503
|
+
Search.Style = SearchStyle;
|
|
7504
|
+
|
|
7505
|
+
class ContentParser {
|
|
7506
|
+
constructor(observations, sentences) {
|
|
7507
|
+
this.observations = observations;
|
|
7508
|
+
this.sentences = sentences;
|
|
7509
|
+
}
|
|
7510
|
+
wrapWordInObservations(word) {
|
|
7511
|
+
var _a;
|
|
7512
|
+
const observationsInThisWord = (_a = this.observations) === null || _a === void 0 ? void 0 : _a.filter((observation) => observation.start <= word.start && observation.end >= word.end);
|
|
7513
|
+
const textContent = [{ type: "text", text: `${word.word} ` }];
|
|
7514
|
+
if (!observationsInThisWord || observationsInThisWord.length === 0) {
|
|
7515
|
+
return textContent;
|
|
7516
|
+
}
|
|
7517
|
+
return observationsInThisWord.reduce((acc, observation) => [
|
|
7518
|
+
{
|
|
7519
|
+
type: "Observation",
|
|
7520
|
+
attrs: {
|
|
7521
|
+
id: observation.id,
|
|
7522
|
+
title: observation.text,
|
|
7523
|
+
color: observation.color,
|
|
7524
|
+
},
|
|
7525
|
+
content: acc,
|
|
7526
|
+
},
|
|
7527
|
+
], textContent);
|
|
7528
|
+
}
|
|
7529
|
+
getParsedWord(word) {
|
|
7530
|
+
return {
|
|
7531
|
+
type: "Word",
|
|
7532
|
+
attrs: {
|
|
7533
|
+
"data-start": word.start,
|
|
7534
|
+
"data-end": word.end,
|
|
7535
|
+
},
|
|
7536
|
+
content: this.wrapWordInObservations(word),
|
|
7537
|
+
};
|
|
7538
|
+
}
|
|
7539
|
+
getParsedParagraph(paragraph) {
|
|
7540
|
+
var _a;
|
|
7541
|
+
const s = (_a = this.sentences) === null || _a === void 0 ? void 0 : _a.filter((sentence) => sentence.start >= paragraph.start && sentence.end <= paragraph.end);
|
|
7542
|
+
return {
|
|
7543
|
+
type: "Paragraph",
|
|
7544
|
+
attrs: {
|
|
7545
|
+
speakername: `Speaker ${paragraph.speaker}`,
|
|
7546
|
+
start: paragraph.start,
|
|
7547
|
+
end: paragraph.end,
|
|
7548
|
+
sentences: s,
|
|
7549
|
+
},
|
|
7550
|
+
content: paragraph.words.map((word) => this.getParsedWord(word)),
|
|
7551
|
+
};
|
|
7552
|
+
}
|
|
7553
|
+
getParsedContent(content) {
|
|
7554
|
+
if (!content)
|
|
7555
|
+
return undefined;
|
|
7556
|
+
return {
|
|
7557
|
+
type: "doc",
|
|
7558
|
+
content: content.map((paragraph) => this.getParsedParagraph(paragraph)),
|
|
7559
|
+
};
|
|
7560
|
+
}
|
|
7561
|
+
}
|
|
7562
|
+
function getParsedContent(content, observations, sentences) {
|
|
7563
|
+
return new ContentParser(observations, sentences).getParsedContent(content);
|
|
7564
|
+
}
|
|
7565
|
+
|
|
7566
|
+
const Component$3 = ({ node, editor, }) => {
|
|
7567
|
+
const themeExtension = getTheme(editor);
|
|
7568
|
+
const ActiveWrapper = themeExtension.options.activeWrapper;
|
|
7569
|
+
return (jsxRuntime.jsx(react.NodeViewWrapper, Object.assign({ as: "div", style: { display: "inline" } }, { children: jsxRuntime.jsx(ActiveWrapper, { children: jsxRuntime.jsx(react.NodeViewContent, { as: "span", className: "content is-editable" }) }) })));
|
|
7570
|
+
};
|
|
7571
|
+
|
|
7572
|
+
const Active = ({ onSetCurrentTime, }) => core.Node.create({
|
|
7573
|
+
name: "Active",
|
|
7574
|
+
content: "inline*",
|
|
7575
|
+
inline: true,
|
|
7576
|
+
parseHTML() {
|
|
7577
|
+
return [
|
|
7578
|
+
{
|
|
7579
|
+
tag: "span",
|
|
7580
|
+
},
|
|
7581
|
+
];
|
|
7582
|
+
},
|
|
7583
|
+
renderHTML({ node }) {
|
|
7584
|
+
return [
|
|
7585
|
+
"active",
|
|
7586
|
+
{
|
|
7587
|
+
style: "background-color: #ff0000;",
|
|
7588
|
+
},
|
|
7589
|
+
0,
|
|
7590
|
+
];
|
|
7591
|
+
},
|
|
7592
|
+
addCommands() {
|
|
7593
|
+
return {
|
|
7594
|
+
setCurrentTime: (start) => () => {
|
|
7595
|
+
if (onSetCurrentTime)
|
|
7596
|
+
onSetCurrentTime(start);
|
|
7597
|
+
return true;
|
|
7598
|
+
},
|
|
7599
|
+
updateCurrentActive: ({ currentWord }) => ({ state, view }) => {
|
|
7600
|
+
const { tr } = state;
|
|
7601
|
+
// trova il nodo "active"
|
|
7602
|
+
state.doc.descendants((node, pos) => {
|
|
7603
|
+
if (node.type.name === "Word") {
|
|
7604
|
+
// check if the node has an "active" descendant
|
|
7605
|
+
let hasActiveDescendant = false;
|
|
7606
|
+
node.descendants((child) => {
|
|
7607
|
+
hasActiveDescendant =
|
|
7608
|
+
hasActiveDescendant || child.type.name === "Active";
|
|
7609
|
+
});
|
|
7610
|
+
if (hasActiveDescendant) {
|
|
7611
|
+
// remove the "active" descendant
|
|
7612
|
+
function removeActiveDescendant(n) {
|
|
7613
|
+
var _a;
|
|
7614
|
+
if (((_a = n.firstChild) === null || _a === void 0 ? void 0 : _a.type.name) === "Active") {
|
|
7615
|
+
const textContent = n.textContent;
|
|
7616
|
+
const textNode = state.schema.text(textContent);
|
|
7617
|
+
return n.copy(model.Fragment.from(textNode));
|
|
7618
|
+
}
|
|
7619
|
+
let updatedContent = model.Fragment.empty;
|
|
7620
|
+
n.content.forEach((child) => {
|
|
7621
|
+
updatedContent = updatedContent.addToEnd(removeActiveDescendant(child));
|
|
7622
|
+
});
|
|
7623
|
+
return n.copy(updatedContent);
|
|
7624
|
+
}
|
|
7625
|
+
tr.replaceWith(tr.mapping.map(pos), tr.mapping.map(pos + node.nodeSize), removeActiveDescendant(node));
|
|
7626
|
+
}
|
|
7627
|
+
}
|
|
7628
|
+
if (node.type.name === "Word" &&
|
|
7629
|
+
node.attrs["data-start"] === currentWord.start &&
|
|
7630
|
+
node.attrs["data-end"] === currentWord.end) {
|
|
7631
|
+
function getUpdatedNode(n) {
|
|
7632
|
+
var _a;
|
|
7633
|
+
if (((_a = n.firstChild) === null || _a === void 0 ? void 0 : _a.type.name) === "text" &&
|
|
7634
|
+
n.type.name !== "Active") {
|
|
7635
|
+
return n.copy(model.Fragment.from(state.schema.nodes.Active.create({}, n.content.firstChild)));
|
|
7636
|
+
}
|
|
7637
|
+
let updatedContent = model.Fragment.empty;
|
|
7638
|
+
n.content.forEach((child, index) => {
|
|
7639
|
+
updatedContent = updatedContent.addToEnd(getUpdatedNode(child));
|
|
7640
|
+
});
|
|
7641
|
+
return n.copy(updatedContent);
|
|
7642
|
+
}
|
|
7643
|
+
tr.replaceWith(tr.mapping.map(pos), tr.mapping.map(pos + node.nodeSize), getUpdatedNode(node));
|
|
7644
|
+
}
|
|
7645
|
+
});
|
|
7646
|
+
view.updateState(view.state.apply(view.state.tr));
|
|
7647
|
+
return true;
|
|
7648
|
+
},
|
|
7649
|
+
};
|
|
7650
|
+
},
|
|
7651
|
+
addNodeView() {
|
|
7652
|
+
return react.ReactNodeViewRenderer(Component$3);
|
|
7653
|
+
},
|
|
7654
|
+
});
|
|
7655
|
+
|
|
7656
|
+
function findNodePosition(doc, targetNode) {
|
|
7657
|
+
let foundPos = null;
|
|
7658
|
+
doc.descendants((node, pos) => {
|
|
7659
|
+
if (node === targetNode) {
|
|
7660
|
+
foundPos = pos;
|
|
7661
|
+
return false; // Interrompe la ricerca
|
|
7662
|
+
}
|
|
7663
|
+
return true;
|
|
7664
|
+
});
|
|
7665
|
+
return foundPos;
|
|
7666
|
+
}
|
|
7667
|
+
function findAllAncestorsOfType(state, pos, nodeType) {
|
|
7668
|
+
const ancestors = [];
|
|
7669
|
+
let { doc } = state;
|
|
7670
|
+
let currentPos = pos;
|
|
7671
|
+
while (currentPos > 0) {
|
|
7672
|
+
const resolvedPos = doc.resolve(currentPos);
|
|
7673
|
+
const parent = resolvedPos.node(resolvedPos.depth);
|
|
7674
|
+
if (parent.type === nodeType) {
|
|
7675
|
+
ancestors.push(parent);
|
|
7676
|
+
}
|
|
7677
|
+
if (resolvedPos.depth === 0) {
|
|
7678
|
+
break;
|
|
7679
|
+
}
|
|
7680
|
+
currentPos = resolvedPos.before(); // Move to the previous depth level
|
|
7681
|
+
}
|
|
7682
|
+
return ancestors;
|
|
7683
|
+
}
|
|
7684
|
+
const Component$2 = ({ node, editor, }) => {
|
|
7685
|
+
const themeExtension = getTheme(editor);
|
|
7686
|
+
const ObservationWrapper = themeExtension.options.observationWrapper;
|
|
7687
|
+
const nodePos = findNodePosition(editor.state.doc, node);
|
|
7688
|
+
if (!nodePos)
|
|
7689
|
+
return null;
|
|
7690
|
+
const ancestors = findAllAncestorsOfType(editor.state, nodePos, editor.state.schema.nodes.Observation);
|
|
7691
|
+
const observationsNodes = ancestors.length ? [node, ...ancestors] : [node];
|
|
7692
|
+
return (jsxRuntime.jsx(react.NodeViewWrapper, Object.assign({ as: "div", style: { display: "inline" } }, { children: jsxRuntime.jsx(ObservationWrapper, Object.assign({ title: node.attrs["title"], color: node.attrs["color"], observations: observationsNodes.map((o) => ({
|
|
7693
|
+
id: o.attrs["id"],
|
|
7694
|
+
title: o.attrs["title"],
|
|
7695
|
+
color: o.attrs["color"],
|
|
7696
|
+
})) }, { children: jsxRuntime.jsx(react.NodeViewContent, { as: "span", className: "content is-editable" }) })) })));
|
|
7697
|
+
};
|
|
7698
|
+
|
|
7699
|
+
const Observation = core.Node.create({
|
|
7700
|
+
name: "Observation",
|
|
7701
|
+
content: "inline*",
|
|
7702
|
+
inline: true,
|
|
7703
|
+
addAttributes() {
|
|
7704
|
+
return {
|
|
7705
|
+
id: {
|
|
7706
|
+
default: 0,
|
|
7707
|
+
},
|
|
7708
|
+
color: {
|
|
7709
|
+
default: "#909090",
|
|
7710
|
+
},
|
|
7711
|
+
title: {
|
|
7712
|
+
default: "",
|
|
7713
|
+
},
|
|
7714
|
+
};
|
|
7715
|
+
},
|
|
7716
|
+
parseHTML() {
|
|
7717
|
+
return [
|
|
7718
|
+
{
|
|
7719
|
+
tag: "observation",
|
|
7720
|
+
},
|
|
7721
|
+
];
|
|
7722
|
+
},
|
|
7723
|
+
addCommands() {
|
|
7724
|
+
return {
|
|
7725
|
+
addObservation: ({ id, title, color }) => ({ tr, state, view }) => {
|
|
7726
|
+
const { from, to } = state.selection;
|
|
7727
|
+
state.doc.nodesBetween(from, to, (node, pos) => {
|
|
7728
|
+
if (node.type.name === "Word") {
|
|
7729
|
+
const annotationNode = state.schema.nodes.Observation.create({
|
|
7730
|
+
id,
|
|
7731
|
+
title,
|
|
7732
|
+
color,
|
|
7733
|
+
}, node.content);
|
|
7734
|
+
// Crea il nodo "word" aggiornato con "active" come figlio
|
|
7735
|
+
const updatedNode = node.copy(model.Fragment.from(annotationNode));
|
|
7736
|
+
// Sostituisci il nodo originale con quello aggiornato
|
|
7737
|
+
tr.replaceWith(tr.mapping.map(pos), tr.mapping.map(pos + node.nodeSize), updatedNode);
|
|
7738
|
+
}
|
|
7739
|
+
});
|
|
7740
|
+
view.updateState(view.state.apply(view.state.tr));
|
|
7741
|
+
return true;
|
|
7742
|
+
},
|
|
7743
|
+
};
|
|
7744
|
+
},
|
|
7745
|
+
renderHTML({ HTMLAttributes }) {
|
|
7746
|
+
return ["observation", react.mergeAttributes(HTMLAttributes), 0];
|
|
7747
|
+
},
|
|
7748
|
+
addNodeView() {
|
|
7749
|
+
return react.ReactNodeViewRenderer(Component$2);
|
|
7750
|
+
},
|
|
7751
|
+
});
|
|
7752
|
+
|
|
7753
|
+
const findActiveWord = (node) => {
|
|
7754
|
+
let activeWord = null;
|
|
7755
|
+
node.descendants((child) => {
|
|
7756
|
+
if (activeWord !== null)
|
|
7757
|
+
return false;
|
|
7758
|
+
if (child.type.name === "Word") {
|
|
7759
|
+
child.descendants((grandchild) => {
|
|
7760
|
+
if (activeWord !== null)
|
|
7761
|
+
return false;
|
|
7762
|
+
if (grandchild.type.name === "Active") {
|
|
7763
|
+
activeWord = child;
|
|
7764
|
+
}
|
|
7765
|
+
});
|
|
7766
|
+
}
|
|
7767
|
+
});
|
|
7768
|
+
return activeWord;
|
|
7769
|
+
};
|
|
7770
|
+
|
|
7771
|
+
const Content = ({ node, editor }) => {
|
|
7772
|
+
const themeExtension = getTheme(editor);
|
|
7773
|
+
const ParagraphWrapper = themeExtension.options.paragraphWrapper;
|
|
7774
|
+
const SpeakerWrapper = themeExtension.options.speakerWrapper;
|
|
7775
|
+
return (jsxRuntime.jsxs(ParagraphWrapper, { children: [jsxRuntime.jsx(SpeakerWrapper, { setCurrentTime: ({ start }) => {
|
|
7776
|
+
editor.commands.setCurrentTime(start);
|
|
7777
|
+
}, start: node.attrs.start, end: node.attrs.end, speaker: node.attrs.speakername }), jsxRuntime.jsx(react.NodeViewContent, { className: "content is-editable" })] }));
|
|
7778
|
+
};
|
|
7779
|
+
const Component$1 = ({ node, editor, }) => {
|
|
7780
|
+
if (!node.attrs.sentences || node.attrs.sentences.length === 0) {
|
|
7781
|
+
return (jsxRuntime.jsx(react.NodeViewWrapper, Object.assign({ as: "div", style: { display: "inline" } }, { children: jsxRuntime.jsx(Content, { node: node, editor: editor }) })));
|
|
7782
|
+
}
|
|
7783
|
+
const themeExtension = getTheme(editor);
|
|
7784
|
+
const SentencesWrapper = themeExtension.options.sentencesWrapper;
|
|
7785
|
+
const SentenceWrapper = themeExtension.options.sentenceWrapper;
|
|
7786
|
+
const TranslationWrapper = themeExtension.options.translationWrapper;
|
|
7787
|
+
const activeWord = findActiveWord(node);
|
|
7788
|
+
return (jsxRuntime.jsx(react.NodeViewWrapper, Object.assign({ className: "react-component" }, { children: jsxRuntime.jsx(TranslationWrapper, { content: jsxRuntime.jsx(Content, { node: node, editor: editor }), translations: jsxRuntime.jsx(SentencesWrapper, { children: node.attrs.sentences.map((sentence, index) => (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(SentenceWrapper, Object.assign({ start: sentence.start, end: sentence.end, setCurrentTime: ({ start, end }) => {
|
|
7789
|
+
editor.commands.setCurrentTime(start);
|
|
7790
|
+
}, isActive: activeWord
|
|
7791
|
+
? activeWord.attrs["data-start"] >= sentence.start &&
|
|
7792
|
+
activeWord.attrs["data-end"] <= sentence.end
|
|
7793
|
+
: false }, { children: [sentence.text, " "] }), index) }))) }) }) })));
|
|
7794
|
+
};
|
|
7795
|
+
|
|
7796
|
+
const Paragraph = core.Node.create({
|
|
7797
|
+
name: "Paragraph",
|
|
7798
|
+
group: "block",
|
|
7799
|
+
atom: false,
|
|
7800
|
+
content: "inline*",
|
|
7801
|
+
addAttributes() {
|
|
7802
|
+
return {
|
|
7803
|
+
speakername: {
|
|
7804
|
+
default: "Speaker",
|
|
7805
|
+
},
|
|
7806
|
+
start: {
|
|
7807
|
+
default: 0,
|
|
7808
|
+
},
|
|
7809
|
+
end: {
|
|
7810
|
+
default: 0,
|
|
7811
|
+
},
|
|
7812
|
+
sentences: {
|
|
7813
|
+
default: [],
|
|
7814
|
+
},
|
|
7815
|
+
};
|
|
7816
|
+
},
|
|
7817
|
+
parseHTML() {
|
|
7818
|
+
return [
|
|
7819
|
+
{
|
|
7820
|
+
tag: "speaker-paragraph",
|
|
7821
|
+
},
|
|
7822
|
+
];
|
|
7823
|
+
},
|
|
7824
|
+
renderHTML({ HTMLAttributes }) {
|
|
7825
|
+
return ["speaker-paragraph", core.mergeAttributes(HTMLAttributes), 0];
|
|
7826
|
+
},
|
|
7827
|
+
addNodeView() {
|
|
7828
|
+
return react.ReactNodeViewRenderer(Component$1);
|
|
7829
|
+
},
|
|
7830
|
+
});
|
|
7831
|
+
|
|
7832
|
+
const Component = ({ node, editor }) => {
|
|
7833
|
+
const themeExtension = getTheme(editor);
|
|
7834
|
+
const WordWrapper = themeExtension.options.wordWrapper;
|
|
7835
|
+
return (jsxRuntime.jsx(react.NodeViewWrapper, Object.assign({}, node.attrs, { as: "div", style: { display: "inline" } }, { children: jsxRuntime.jsx(WordWrapper, { children: jsxRuntime.jsx("span", Object.assign({ onClick: () => {
|
|
7836
|
+
editor.commands.setCurrentTime(node.attrs["data-start"]);
|
|
7837
|
+
} }, { children: jsxRuntime.jsx(react.NodeViewContent, { as: "span", className: "content is-editable" }) })) }) })));
|
|
7838
|
+
};
|
|
7839
|
+
|
|
7840
|
+
const Word = core.Node.create({
|
|
7841
|
+
name: "Word",
|
|
7842
|
+
group: "inline",
|
|
7843
|
+
content: "inline*",
|
|
7844
|
+
inline: true,
|
|
7845
|
+
addAttributes() {
|
|
7846
|
+
return {
|
|
7847
|
+
"data-start": {
|
|
7848
|
+
default: null,
|
|
7849
|
+
},
|
|
7850
|
+
"data-end": {
|
|
7851
|
+
default: null,
|
|
7852
|
+
},
|
|
7853
|
+
};
|
|
7854
|
+
},
|
|
7855
|
+
parseHTML() {
|
|
7856
|
+
return [
|
|
7857
|
+
{
|
|
7858
|
+
tag: "span[data-start][data-end]",
|
|
7859
|
+
},
|
|
7860
|
+
];
|
|
7861
|
+
},
|
|
7862
|
+
renderHTML({ node }) {
|
|
7863
|
+
return [
|
|
7864
|
+
"span",
|
|
7865
|
+
{
|
|
7866
|
+
"data-start": node.attrs["data-start"],
|
|
7867
|
+
"data-end": node.attrs["data-end"],
|
|
7868
|
+
style: "",
|
|
7869
|
+
},
|
|
7870
|
+
0,
|
|
7871
|
+
];
|
|
7872
|
+
},
|
|
7873
|
+
addNodeView() {
|
|
7874
|
+
return react.ReactNodeViewRenderer(Component, {
|
|
7875
|
+
as: "span",
|
|
7876
|
+
});
|
|
7877
|
+
},
|
|
7878
|
+
});
|
|
7879
|
+
|
|
7880
|
+
const useEditor = ({ content, observations, translations, currentTime, onSetCurrentTime, themeExtension, isEditable, }, deps) => {
|
|
7881
|
+
const ed = react.useEditor({
|
|
7882
|
+
editable: isEditable ? isEditable : false,
|
|
7883
|
+
extensions: [
|
|
7884
|
+
Document__default["default"],
|
|
7885
|
+
Paragraph,
|
|
7886
|
+
Text__default["default"],
|
|
7887
|
+
themeExtension ? themeExtension : Theme.configure(),
|
|
7888
|
+
Word,
|
|
7889
|
+
SearchAndReplace__default["default"].configure(),
|
|
7890
|
+
Active({
|
|
7891
|
+
onSetCurrentTime,
|
|
7892
|
+
}),
|
|
7893
|
+
Observation,
|
|
7894
|
+
],
|
|
7895
|
+
editorProps: {
|
|
7896
|
+
handlePaste: () => true,
|
|
7897
|
+
},
|
|
7898
|
+
content: getParsedContent(content, observations, translations),
|
|
7899
|
+
}, deps);
|
|
7900
|
+
React.useEffect(() => {
|
|
7901
|
+
if (!currentTime)
|
|
7902
|
+
return;
|
|
7903
|
+
if (!ed)
|
|
7904
|
+
return;
|
|
7905
|
+
const currentParagraph = content === null || content === void 0 ? void 0 : content.find((paragraph) => paragraph.words.some((word) => word.start * 1000 <= currentTime && word.end * 1000 >= currentTime));
|
|
7906
|
+
if (!currentParagraph)
|
|
7907
|
+
return;
|
|
7908
|
+
const currentWord = currentParagraph.words.find((word) => word.start * 1000 <= currentTime && word.end * 1000 > currentTime);
|
|
7909
|
+
if (!currentWord)
|
|
7910
|
+
return;
|
|
7911
|
+
ed.commands.updateCurrentActive({ currentWord });
|
|
7912
|
+
}, [currentTime, content, ed]);
|
|
7913
|
+
return ed;
|
|
7914
|
+
};
|
|
7915
|
+
|
|
7916
|
+
const EditorWrapper = styled__default["default"].div `
|
|
7917
|
+
border: none;
|
|
7918
|
+
.ProseMirror {
|
|
7919
|
+
background: transparent;
|
|
7920
|
+
border: none;
|
|
7921
|
+
outline: none;
|
|
7922
|
+
padding: 0;
|
|
7923
|
+
min-height: 0;
|
|
7924
|
+
}
|
|
7925
|
+
`;
|
|
7926
|
+
const Transcript = ({ editor }) => {
|
|
7927
|
+
const ref = React.useRef(null);
|
|
7928
|
+
const handleDragStart = React.useCallback((event) => {
|
|
7929
|
+
const selection = window.getSelection();
|
|
7930
|
+
if (selection && selection.toString()) {
|
|
7931
|
+
event.preventDefault();
|
|
7932
|
+
}
|
|
7933
|
+
}, []);
|
|
7934
|
+
React.useEffect(() => {
|
|
7935
|
+
const currentRef = ref.current;
|
|
7936
|
+
if (!currentRef)
|
|
7937
|
+
return;
|
|
7938
|
+
currentRef.addEventListener("dragstart", handleDragStart);
|
|
7939
|
+
return () => {
|
|
7940
|
+
currentRef.removeEventListener("dragstart", handleDragStart);
|
|
7941
|
+
};
|
|
7942
|
+
}, [handleDragStart]);
|
|
7943
|
+
if (!editor)
|
|
7944
|
+
return null;
|
|
7945
|
+
const theme = getTheme(editor);
|
|
7946
|
+
const SearchStyleWrapper = theme.options.searchStyleWrapper;
|
|
7947
|
+
return (jsxRuntime.jsx(SearchStyleWrapper, { children: jsxRuntime.jsx(EditorWrapper, { children: jsxRuntime.jsx(react.EditorContent, { ref: ref, editor: editor }) }) }));
|
|
7948
|
+
};
|
|
7949
|
+
Transcript.useEditor = useEditor;
|
|
7950
|
+
Transcript.Search = Search;
|
|
7951
|
+
Transcript.FloatingMenu = FloatingMenu;
|
|
7952
|
+
|
|
7346
7953
|
Object.defineProperty(exports, 'ModalClose', {
|
|
7347
7954
|
enumerable: true,
|
|
7348
7955
|
get: function () { return reactModals.Close; }
|
|
@@ -7383,7 +7990,7 @@ exports.Col = Col;
|
|
|
7383
7990
|
exports.ColorSwatch = ColorSwatch;
|
|
7384
7991
|
exports.Comment = Comment;
|
|
7385
7992
|
exports.ContainerCard = ContainerCard;
|
|
7386
|
-
exports.Content = Content;
|
|
7993
|
+
exports.Content = Content$1;
|
|
7387
7994
|
exports.CounterMultiselect = CounterMultiselect;
|
|
7388
7995
|
exports.CursorPagination = CursorPagination;
|
|
7389
7996
|
exports.Dots = Dots;
|
|
@@ -7416,7 +8023,7 @@ exports.Item = Item$1;
|
|
|
7416
8023
|
exports.ItemContent = ItemContent;
|
|
7417
8024
|
exports.ItemMeta = ItemMeta;
|
|
7418
8025
|
exports.LG = LG;
|
|
7419
|
-
exports.Label = Label;
|
|
8026
|
+
exports.Label = Label$1;
|
|
7420
8027
|
exports.Lightbox = Lightbox;
|
|
7421
8028
|
exports.LoginForm = LoginForm;
|
|
7422
8029
|
exports.Logo = Logo;
|
|
@@ -7445,7 +8052,7 @@ exports.Notification = Notification;
|
|
|
7445
8052
|
exports.OrderedList = OrderedList;
|
|
7446
8053
|
exports.PageHeader = PageHeader;
|
|
7447
8054
|
exports.Pagination = Pagination;
|
|
7448
|
-
exports.Paragraph = Paragraph;
|
|
8055
|
+
exports.Paragraph = Paragraph$1;
|
|
7449
8056
|
exports.PieChart = PieChart;
|
|
7450
8057
|
exports.Player = Player;
|
|
7451
8058
|
exports.PlayerProvider = PlayerProvider;
|
|
@@ -7484,6 +8091,7 @@ exports.Tag = Tag;
|
|
|
7484
8091
|
exports.TextDescription = TextDescription;
|
|
7485
8092
|
exports.TextLabel = TextLabel;
|
|
7486
8093
|
exports.Textarea = Textarea;
|
|
8094
|
+
exports.Theme = Theme;
|
|
7487
8095
|
exports.Tiles = Tiles;
|
|
7488
8096
|
exports.Timeline = Timeline;
|
|
7489
8097
|
exports.Title = Title$1;
|
|
@@ -7491,6 +8099,7 @@ exports.ToastProvider = ToastProvider;
|
|
|
7491
8099
|
exports.Toggle = Toggle;
|
|
7492
8100
|
exports.Tooltip = Tooltip;
|
|
7493
8101
|
exports.TooltipModal = TooltipModal;
|
|
8102
|
+
exports.Transcript = Transcript;
|
|
7494
8103
|
exports.Trigger = Trigger;
|
|
7495
8104
|
exports.UnorderedList = UnorderedList;
|
|
7496
8105
|
exports.WaffleChart = WaffleChart;
|