@appquality/unguess-design-system 3.1.106-attachments → 3.1.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +282 -0
- package/build/index.js +661 -367
- package/build/stories/accordions/index.stories.d.ts +5 -5
- package/build/stories/alerts/index.d.ts +3 -268
- package/build/stories/alerts/index.stories.d.ts +2 -2
- package/build/stories/avatar/InternalAvatar.d.ts +2 -0
- package/build/stories/avatar/index.stories.d.ts +4 -4
- package/build/stories/breadcrumbs/index.stories.d.ts +2 -2
- package/build/stories/buttons/anchor/index.stories.d.ts +4 -4
- package/build/stories/buttons/button/index.d.ts +6 -290
- package/build/stories/buttons/button/index.stories.d.ts +6 -6
- package/build/stories/buttons/button-group/index.stories.d.ts +4 -4
- package/build/stories/buttons/icon-button/index.stories.d.ts +5 -5
- package/build/stories/buttons/split-button/index.stories.d.ts +2 -2
- package/build/stories/buttons/utils.d.ts +9 -852
- package/build/stories/campaign-cards/index.stories.d.ts +3 -3
- package/build/stories/cards/container.stories.d.ts +2 -2
- package/build/stories/cards/index.stories.d.ts +3 -3
- package/build/stories/charts/ChartContainer.d.ts +1 -1
- package/build/stories/charts/bar/index.stories.d.ts +3 -3
- package/build/stories/charts/bullet/index.stories.d.ts +3 -3
- package/build/stories/charts/halfPie/index.stories.d.ts +2 -2
- package/build/stories/charts/pie/index.stories.d.ts +4 -4
- package/build/stories/charts/sentiment/index.stories.d.ts +3 -3
- package/build/stories/charts/sunburst/index.stories.d.ts +3 -3
- package/build/stories/charts/waffle/index.stories.d.ts +3 -3
- package/build/stories/chat/_types.d.ts +7 -5
- package/build/stories/chat/context/chatContext.d.ts +4 -4
- package/build/stories/chat/hooks/useMedia.d.ts +5 -2
- package/build/stories/chat/index.d.ts +2 -267
- package/build/stories/chat/index.stories.d.ts +9 -9
- package/build/stories/chat/parts/MediaLightbox.d.ts +2 -2
- package/build/stories/chat/parts/ThumbnailContainer/Thumbnail.d.ts +3 -3
- package/build/stories/chat/parts/ThumbnailContainer/index.d.ts +1 -9
- package/build/stories/chat/parts/comment.d.ts +2 -2
- package/build/stories/chat/parts/containers.d.ts +9 -273
- package/build/stories/chat/parts/header.d.ts +1 -266
- package/build/stories/color-swatch/index.stories.d.ts +3 -3
- package/build/stories/drawers/index.stories.d.ts +2 -2
- package/build/stories/dropdowns/autocomplete/index.stories.d.ts +3 -3
- package/build/stories/dropdowns/countermultiselect/index.stories.d.ts +2 -2
- package/build/stories/dropdowns/field/index.d.ts +3 -267
- package/build/stories/dropdowns/menu/index.stories.d.ts +3 -3
- package/build/stories/dropdowns/select/index.d.ts +1 -267
- package/build/stories/dropdowns/select/index.stories.d.ts +3 -3
- package/build/stories/editor/index.stories.d.ts +6 -6
- package/build/stories/forms/checkbox/cards/index.stories.d.ts +3 -3
- package/build/stories/forms/checkbox/index.stories.d.ts +2 -2
- package/build/stories/forms/input/index.d.ts +3 -267
- package/build/stories/forms/input/index.stories.d.ts +5 -5
- package/build/stories/forms/input-toggle/index.d.ts +1 -268
- package/build/stories/forms/input-toggle/index.stories.d.ts +6 -6
- package/build/stories/forms/mediaInput/index.stories.d.ts +5 -5
- package/build/stories/forms/radio/cards/index.stories.d.ts +3 -3
- package/build/stories/forms/radio/index.stories.d.ts +3 -3
- package/build/stories/forms/textarea/index.stories.d.ts +4 -4
- package/build/stories/forms/toggle/index.stories.d.ts +2 -2
- package/build/stories/grid/col/index.stories.d.ts +4 -4
- package/build/stories/grid/grid/index.stories.d.ts +4 -4
- package/build/stories/grid/row/index.stories.d.ts +2 -2
- package/build/stories/highlight/CreateObservationButton.d.ts +19 -0
- package/build/stories/highlight/_types.d.ts +9 -8
- package/build/stories/highlight/demo-parts/data.d.ts +55 -0
- package/build/stories/highlight/demo-parts/sentiment-tag.d.ts +7 -0
- package/build/stories/highlight/demo-parts/transcript-base.d.ts +5 -0
- package/build/stories/highlight/demo-parts/transcript-diarization.d.ts +5 -0
- package/build/stories/highlight/demo-parts/transcript-paragraph.d.ts +5 -0
- package/build/stories/highlight/demo-parts/transcript-sentiment.d.ts +5 -0
- package/build/stories/highlight/index.stories.d.ts +11 -11
- package/build/stories/highlight/searchable.d.ts +1 -2
- package/build/stories/icons/index.stories.d.ts +2 -2
- package/build/stories/info-cards/index.stories.d.ts +3 -3
- package/build/stories/label/index.d.ts +3 -270
- package/build/stories/label/index.stories.d.ts +3 -3
- package/build/stories/lightbox/index.stories.d.ts +2 -2
- package/build/stories/lightbox/parts/body.d.ts +3 -801
- package/build/stories/lightbox/parts/footer.d.ts +3 -267
- package/build/stories/loaders/dots/index.stories.d.ts +2 -2
- package/build/stories/loaders/progress/index.stories.d.ts +2 -2
- package/build/stories/loaders/skeleton/index.stories.d.ts +3 -3
- package/build/stories/loaders/spinner/index.stories.d.ts +2 -2
- package/build/stories/login-form/index.stories.d.ts +3 -3
- package/build/stories/logo/index.stories.d.ts +2 -2
- package/build/stories/modals/fullscreen/index.d.ts +12 -1080
- package/build/stories/modals/fullscreen/index.stories.d.ts +2 -2
- package/build/stories/modals/index.d.ts +3 -267
- package/build/stories/modals/index.stories.d.ts +5 -5
- package/build/stories/multiselect/index.stories.d.ts +3 -3
- package/build/stories/navigation/app-header/index.stories.d.ts +3 -3
- package/build/stories/navigation/header/header-item/brandItem.d.ts +3 -282
- package/build/stories/navigation/nav/nav-item/accordionItem.d.ts +4 -2
- package/build/stories/navigation/nav/nav-item/navItemProject.d.ts +1 -1
- package/build/stories/navigation/page-header/index.d.ts +10 -1076
- package/build/stories/navigation/page-header/index.stories.d.ts +5 -5
- package/build/stories/navigation/page-header/styled/main.d.ts +12 -1078
- package/build/stories/notifications/index.stories.d.ts +3 -3
- package/build/stories/pagination/index.stories.d.ts +3 -3
- package/build/stories/player/_types.d.ts +21 -2
- package/build/stories/player/hooks/usePictureInPicture.d.ts +4 -0
- package/build/stories/player/index.d.ts +7 -2
- package/build/stories/player/index.stories.d.ts +7 -4
- package/build/stories/player/parts/CutStart.d.ts +4 -0
- package/build/stories/player/parts/container.d.ts +1 -1
- package/build/stories/player/parts/controlButton.d.ts +4 -0
- package/build/stories/player/parts/controls.d.ts +4 -269
- package/build/stories/player/parts/floatingControls.d.ts +2 -1
- package/build/stories/product-cards/index.stories.d.ts +3 -3
- package/build/stories/profile-modal/_types.d.ts +3 -2
- package/build/stories/profile-modal/components/menuItem.d.ts +1 -267
- package/build/stories/profile-modal/components/menuItemIcon.d.ts +1 -1
- package/build/stories/profile-modal/index.stories.d.ts +2 -2
- package/build/stories/profile-modal/items/languageMenuItem.d.ts +2 -1
- package/build/stories/profile-modal/items/settingsMenuItem.d.ts +2 -2
- package/build/stories/service-cards/index.stories.d.ts +3 -3
- package/build/stories/slider/index.stories.d.ts +3 -3
- package/build/stories/slider/parts/container.d.ts +1 -267
- package/build/stories/slider/parts/slickSlider.d.ts +1 -1
- package/build/stories/special-cards/index.d.ts +14 -815
- package/build/stories/special-cards/index.stories.d.ts +2 -2
- package/build/stories/special-cards/styled/header.d.ts +12 -813
- 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 +9 -805
- package/build/stories/stepper/index.stories.d.ts +3 -3
- package/build/stories/table/index.stories.d.ts +11 -11
- package/build/stories/tabs/index.stories.d.ts +3 -3
- package/build/stories/tags/index.d.ts +8 -546
- package/build/stories/tags/index.stories.d.ts +6 -6
- package/build/stories/theme/colors.stories.d.ts +20 -0
- package/build/stories/theme/palette.stories.d.ts +1 -1
- package/build/stories/tiles/index.stories.d.ts +4 -4
- package/build/stories/timeline/index.d.ts +6 -268
- package/build/stories/timeline/index.stories.d.ts +4 -4
- package/build/stories/title/index.stories.d.ts +2 -2
- package/build/stories/tooltip/_types.d.ts +1 -0
- package/build/stories/tooltip/index.d.ts +1 -278
- package/build/stories/tooltip/index.stories.d.ts +3 -2
- package/build/stories/tooltip-modal/index.stories.d.ts +2 -2
- package/build/stories/typography/block-quote/index.stories.d.ts +2 -2
- package/build/stories/typography/code/index.stories.d.ts +4 -4
- package/build/stories/typography/ellipsis/index.stories.d.ts +2 -2
- package/build/stories/typography/lists/ordered.stories.d.ts +2 -2
- package/build/stories/typography/lists/unordered.stories.d.ts +2 -2
- package/build/stories/typography/paragraph/index.stories.d.ts +2 -2
- package/build/stories/typography/span/index.stories.d.ts +2 -2
- package/build/stories/typography/typescale/anchortag/index.stories.d.ts +6 -2
- package/build/stories/typography/typescale/index.d.ts +27 -282
- package/build/stories/typography/typescale/index.stories.d.ts +6 -2
- package/package.json +10 -7
- package/.vscode/settings.json +0 -3
- /package/build/stories/player/{parts → context}/progressContext.d.ts +0 -0
- /package/build/stories/player/{parts/utils.d.ts → utils.d.ts} +0 -0
package/build/index.js
CHANGED
|
@@ -38,10 +38,10 @@ var Mention = require('@tiptap/extension-mention');
|
|
|
38
38
|
var tippy = require('tippy.js');
|
|
39
39
|
var Image$2 = require('@tiptap/extension-image');
|
|
40
40
|
var Dropcursor = require('@tiptap/extension-dropcursor');
|
|
41
|
-
var reactGrid = require('@zendeskgarden/react-grid');
|
|
42
41
|
var reactModals = require('@zendeskgarden/react-modals');
|
|
43
42
|
var SlickSlider = require('react-slick');
|
|
44
43
|
var Video = require('@appquality/stream-player');
|
|
44
|
+
var reactGrid = require('@zendeskgarden/react-grid');
|
|
45
45
|
var containerUtilities = require('@zendeskgarden/container-utilities');
|
|
46
46
|
var reactColorpickers = require('@zendeskgarden/react-colorpickers');
|
|
47
47
|
var reactDropdowns = require('@zendeskgarden/react-dropdowns');
|
|
@@ -291,7 +291,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
291
291
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
292
292
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
293
293
|
});
|
|
294
|
-
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
297
|
+
var e = new Error(message);
|
|
298
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
299
|
+
};
|
|
295
300
|
|
|
296
301
|
const fontWeights = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 });
|
|
297
302
|
|
|
@@ -642,6 +647,15 @@ Alert.Close = reactNotifications.Close;
|
|
|
642
647
|
|
|
643
648
|
var img$2 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.2597 12.9199V14.767H17.2367C17.075 17.4452 15.5974 18.969 13.127 18.969C10.4949 18.969 8.92496 17.4452 8.76335 14.767H8.74026V12.9199H5V14.767V14.7901C5.20779 19.4538 8.34777 22.4322 13.1039 22.4322C17.8139 22.4322 20.7922 19.5231 21 14.7901V12.9199H17.2597Z' fill='%23003A57'/%3e%3cpath d='M8.78629 3.5H5.02295V7.26335H8.78629V3.5Z' fill='%2370C38A'/%3e%3cpath d='M20.9768 3.5H17.1672V7.30952H20.9768V3.5Z' fill='%23003A57'/%3e%3c/svg%3e";
|
|
644
649
|
|
|
650
|
+
const StyledInternalAvatar = styled__default["default"].div `
|
|
651
|
+
display: flex;
|
|
652
|
+
align-items: center;
|
|
653
|
+
justify-content: center;
|
|
654
|
+
`;
|
|
655
|
+
const InternalAvatar = () => {
|
|
656
|
+
return (jsxRuntime.jsx(StyledInternalAvatar, { children: jsxRuntime.jsx("img", { alt: "avatar", src: img$2 }) }));
|
|
657
|
+
};
|
|
658
|
+
|
|
645
659
|
const UgAvatar = styled__default["default"](reactAvatars.Avatar) `
|
|
646
660
|
text-transform: uppercase;
|
|
647
661
|
|
|
@@ -673,7 +687,7 @@ const Avatar = (_a) => {
|
|
|
673
687
|
if (type === "text")
|
|
674
688
|
return jsxRuntime.jsx(Avatar.Text, { children: props.children });
|
|
675
689
|
if (type === "system")
|
|
676
|
-
return jsxRuntime.jsx(
|
|
690
|
+
return jsxRuntime.jsx(InternalAvatar, {});
|
|
677
691
|
};
|
|
678
692
|
return (jsxRuntime.jsx(UgAvatar, Object.assign({}, props, { badge: fixedBadge, isSystem: props.avatarType === "system" || isSystem, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
|
|
679
693
|
};
|
|
@@ -842,48 +856,48 @@ Tag.Avatar = StyledAvatar;
|
|
|
842
856
|
Tag.Close = StyledClose;
|
|
843
857
|
Tag.SecondaryText = StyledSpan;
|
|
844
858
|
|
|
845
|
-
var _path$
|
|
846
|
-
function _extends$
|
|
847
|
-
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
859
|
+
var _path$G;
|
|
860
|
+
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); }
|
|
861
|
+
const SvgUgSquare = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$T({
|
|
848
862
|
width: 24,
|
|
849
863
|
height: 24,
|
|
850
864
|
viewBox: "0 0 24 24",
|
|
851
865
|
fill: "none",
|
|
852
866
|
xmlns: "http://www.w3.org/2000/svg"
|
|
853
|
-
}, props), _path$
|
|
867
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
854
868
|
d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19Z",
|
|
855
869
|
fill: "#E80C7A"
|
|
856
870
|
})));
|
|
857
871
|
|
|
858
|
-
var _path$
|
|
859
|
-
function _extends$
|
|
860
|
-
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
872
|
+
var _path$F;
|
|
873
|
+
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); }
|
|
874
|
+
const SvgUgCircle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$S({
|
|
861
875
|
width: 24,
|
|
862
876
|
height: 24,
|
|
863
877
|
viewBox: "0 0 24 24",
|
|
864
878
|
fill: "none",
|
|
865
879
|
xmlns: "http://www.w3.org/2000/svg"
|
|
866
|
-
}, props), _path$
|
|
880
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
867
881
|
d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",
|
|
868
882
|
fill: "#FFCD1A"
|
|
869
883
|
})));
|
|
870
884
|
|
|
871
|
-
var _path$
|
|
872
|
-
function _extends$
|
|
873
|
-
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
885
|
+
var _path$E;
|
|
886
|
+
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); }
|
|
887
|
+
const SvgUgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
874
888
|
width: 24,
|
|
875
889
|
height: 24,
|
|
876
890
|
viewBox: "0 0 24 24",
|
|
877
891
|
fill: "none",
|
|
878
892
|
xmlns: "http://www.w3.org/2000/svg"
|
|
879
|
-
}, props), _path$
|
|
893
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
880
894
|
d: "M11.9993 7.32625L18.3893 17.5563H5.60929L11.9993 7.32625ZM11.1493 4.91625L2.94929 18.0262C2.53929 18.6962 3.01929 19.5563 3.79929 19.5563H20.1993C20.9893 19.5563 21.4593 18.6962 21.0493 18.0262L12.8493 4.91625C12.4593 4.28625 11.5393 4.28625 11.1493 4.91625Z",
|
|
881
895
|
fill: "#7B0DFF"
|
|
882
896
|
})));
|
|
883
897
|
|
|
884
|
-
var _rect$4, _path$
|
|
885
|
-
function _extends$
|
|
886
|
-
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
898
|
+
var _rect$4, _path$D, _path2$c, _path3$4;
|
|
899
|
+
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); }
|
|
900
|
+
const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
887
901
|
width: 24,
|
|
888
902
|
height: 24,
|
|
889
903
|
viewBox: "0 0 24 24",
|
|
@@ -894,7 +908,7 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
894
908
|
height: 24,
|
|
895
909
|
rx: 12,
|
|
896
910
|
fill: "#F6F6F8"
|
|
897
|
-
})), _path$
|
|
911
|
+
})), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
898
912
|
d: "M20.6953 5.73905C21.0148 5.41953 21.0148 4.90149 20.6953 4.58197C20.3758 4.26245 19.8577 4.26245 19.5382 4.58197L11.88 12.2402L10.0849 9.95981C9.80539 9.60476 9.29098 9.54352 8.93593 9.82303C8.58088 10.1025 8.51963 10.6169 8.79914 10.972L11.1642 13.9763C11.3089 14.16 11.5252 14.2731 11.7586 14.2869C11.9921 14.3008 12.2203 14.2141 12.3856 14.0487L20.6953 5.73905Z",
|
|
899
913
|
fill: "#50BF95"
|
|
900
914
|
})), _path2$c || (_path2$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -905,9 +919,9 @@ const SvgCampaignCompleted = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
905
919
|
fill: "#007345"
|
|
906
920
|
})));
|
|
907
921
|
|
|
908
|
-
var _rect$3, _path$
|
|
909
|
-
function _extends$
|
|
910
|
-
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
922
|
+
var _rect$3, _path$C, _path2$b;
|
|
923
|
+
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); }
|
|
924
|
+
const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
911
925
|
width: 24,
|
|
912
926
|
height: 24,
|
|
913
927
|
viewBox: "0 0 24 24",
|
|
@@ -918,7 +932,7 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
918
932
|
height: 24,
|
|
919
933
|
rx: 12,
|
|
920
934
|
fill: "#F6F6F8"
|
|
921
|
-
})), _path$
|
|
935
|
+
})), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
922
936
|
fillRule: "evenodd",
|
|
923
937
|
clipRule: "evenodd",
|
|
924
938
|
d: "M13.55 19.0875C14.25 19.7875 15.1063 20.1375 16.1188 20.1375C17.1313 20.1375 17.9875 19.7875 18.6875 19.0875C19.3875 18.3875 19.7375 17.5312 19.7375 16.5187C19.7375 15.5062 19.3875 14.65 18.6875 13.95C17.9875 13.25 17.1313 12.9 16.1188 12.9C15.1063 12.9 14.25 13.25 13.55 13.95C12.85 14.65 12.5 15.5062 12.5 16.5187C12.5 17.5312 12.85 18.3875 13.55 19.0875ZM17.5062 18.2812C17.4187 18.2812 17.3375 18.25 17.2625 18.1875L15.7438 16.7812C15.6813 16.6687 15.65 16.6 15.65 16.575V14.55C15.65 14.4375 15.6875 14.3437 15.7625 14.2687C15.8375 14.1937 15.9313 14.1562 16.0438 14.1562C16.1563 14.1562 16.25 14.1937 16.325 14.2687C16.4 14.3437 16.4375 14.4375 16.4375 14.55V16.4813L17.7313 17.6625C17.8063 17.725 17.8469 17.8062 17.8531 17.9062C17.8594 18.0063 17.825 18.0938 17.75 18.1688C17.675 18.2438 17.5937 18.2812 17.5062 18.2812Z",
|
|
@@ -930,9 +944,9 @@ const SvgCampaignLocked = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
930
944
|
fill: "#F4AC1A"
|
|
931
945
|
})));
|
|
932
946
|
|
|
933
|
-
var _rect$2, _path$
|
|
934
|
-
function _extends$
|
|
935
|
-
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
947
|
+
var _rect$2, _path$B, _path2$a;
|
|
948
|
+
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); }
|
|
949
|
+
const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
936
950
|
width: 24,
|
|
937
951
|
height: 24,
|
|
938
952
|
viewBox: "0 0 24 24",
|
|
@@ -943,7 +957,7 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
943
957
|
height: 24,
|
|
944
958
|
rx: 12,
|
|
945
959
|
fill: "#F6F6F8"
|
|
946
|
-
})), _path$
|
|
960
|
+
})), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
947
961
|
d: "M11.2266 13.0313H14.997M11.2266 9.26075V13.0313V9.26075ZM11.2266 13.0313L20.121 5.03906L11.2266 13.0313Z",
|
|
948
962
|
stroke: "#024780",
|
|
949
963
|
strokeWidth: 1.5,
|
|
@@ -957,9 +971,9 @@ const SvgCampaignIncoming = props => /*#__PURE__*/React__namespace.createElement
|
|
|
957
971
|
strokeLinejoin: "round"
|
|
958
972
|
})));
|
|
959
973
|
|
|
960
|
-
var _rect$1, _path$
|
|
961
|
-
function _extends$
|
|
962
|
-
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
974
|
+
var _rect$1, _path$A, _path2$9, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
|
|
975
|
+
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); }
|
|
976
|
+
const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
963
977
|
width: 24,
|
|
964
978
|
height: 24,
|
|
965
979
|
viewBox: "0 0 24 24",
|
|
@@ -970,7 +984,7 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
970
984
|
height: 24,
|
|
971
985
|
rx: 12,
|
|
972
986
|
fill: "#F6F6F8"
|
|
973
|
-
})), _path$
|
|
987
|
+
})), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
974
988
|
d: "M13.059 16.7647C13.059 16.1799 12.585 15.7059 12.0002 15.7059C11.4154 15.7059 10.9414 16.1799 10.9414 16.7647V19.9412C10.9414 20.5259 11.4154 21 12.0002 21C12.585 21 13.059 20.5259 13.059 19.9412V16.7647Z",
|
|
975
989
|
fill: "#D1820A"
|
|
976
990
|
})), _path2$9 || (_path2$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1002,9 +1016,9 @@ const SvgCampaignProgress = props => /*#__PURE__*/React__namespace.createElement
|
|
|
1002
1016
|
fill: "#FFB65A"
|
|
1003
1017
|
})));
|
|
1004
1018
|
|
|
1005
|
-
var _g$c, _path$
|
|
1006
|
-
function _extends$
|
|
1007
|
-
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1019
|
+
var _g$c, _path$z, _path2$8, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
1020
|
+
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); }
|
|
1021
|
+
const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
1008
1022
|
width: 24,
|
|
1009
1023
|
height: 24,
|
|
1010
1024
|
viewBox: "0 0 24 24",
|
|
@@ -1016,7 +1030,7 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
|
|
|
1016
1030
|
opacity: 0.3,
|
|
1017
1031
|
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
1018
1032
|
fill: "#50BF95"
|
|
1019
|
-
}))), _path$
|
|
1033
|
+
}))), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1020
1034
|
d: "M12.487 3.19652C8.68003 3.19652 5.59895 6.27761 5.59895 10.0846C5.59895 10.2597 5.59895 10.4348 5.62438 10.5855C5.29857 11.1863 4.82307 12.013 4.24678 12.514C3.82117 12.8897 3.92096 13.2908 3.97085 13.4405C4.09609 13.7663 4.44635 14.0413 5.02265 14.2418C5.22322 14.3172 5.44825 14.3671 5.64883 14.417L5.67427 16.8464C5.67427 17.7984 6.47559 18.6251 7.45304 18.6251L8.93044 18.1496L9.08111 19.0263C9.18091 19.6026 9.68185 20.0282 10.2836 20.0282C10.3589 20.0282 10.4343 20.0282 10.5086 20.0028L15.1424 19.177C15.8185 19.0517 16.2441 18.4256 16.1443 17.7495L15.8185 16.1214C17.9974 14.9189 19.375 12.5892 19.375 10.0845C19.375 6.30279 16.2696 3.19641 12.4869 3.19641L12.487 3.19652Z",
|
|
1021
1035
|
fill: "#2B8473",
|
|
1022
1036
|
stroke: "#2B8473"
|
|
@@ -1072,9 +1086,9 @@ const SvgCampaignExperiential = props => /*#__PURE__*/React__namespace.createEle
|
|
|
1072
1086
|
fill: "#ECF4F2"
|
|
1073
1087
|
})));
|
|
1074
1088
|
|
|
1075
|
-
var _g$b, _path$
|
|
1076
|
-
function _extends$
|
|
1077
|
-
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1089
|
+
var _g$b, _path$y;
|
|
1090
|
+
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); }
|
|
1091
|
+
const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
1078
1092
|
width: 24,
|
|
1079
1093
|
height: 24,
|
|
1080
1094
|
viewBox: "0 0 24 24",
|
|
@@ -1086,7 +1100,7 @@ const SvgCampaignFunctional = props => /*#__PURE__*/React__namespace.createEleme
|
|
|
1086
1100
|
opacity: 0.3,
|
|
1087
1101
|
d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",
|
|
1088
1102
|
fill: "#003A57"
|
|
1089
|
-
}))), _path$
|
|
1103
|
+
}))), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1090
1104
|
d: "M17.9983 7.16705C17.5188 6.58566 17.1422 6.73039 17.1422 6.73039C17.1422 6.73039 16.406 7.02453 16.0401 7.16303C15.6742 7.30153 15.2408 7.17357 15.2408 7.17357L14.7579 6.8851C14.7579 6.8851 14.4296 6.56554 14.3656 6.18067C14.3123 5.78958 14.1888 5.00269 14.1888 5.00269C14.1888 5.00269 14.1356 4.61159 13.3938 4.47257C12.652 4.33356 12.4678 4.68715 12.4678 4.68715C12.4678 4.68715 12.0932 5.38344 11.9091 5.73703C11.7249 6.09062 11.3114 6.27118 11.3114 6.27118L10.7639 6.36908C10.7639 6.36908 10.3144 6.33771 10.0176 6.07271L9.12712 5.27769C9.12712 5.27769 8.8303 5.01268 8.18313 5.38632C7.53595 5.75997 7.61705 6.14953 7.61705 6.14953L7.86033 7.3182C7.94143 7.70776 7.74381 8.11275 7.74381 8.11275L7.38528 8.53794C7.38528 8.53794 7.02217 8.80577 6.62387 8.78845C6.22557 8.77114 5.43527 8.7474 5.43527 8.7474C5.43527 8.7474 5.03697 8.73009 4.78646 9.44201C4.53595 10.1539 4.84804 10.3956 4.84804 10.3956C4.84804 10.3956 5.46774 10.896 5.77983 11.1376C6.09192 11.3793 6.19373 11.8296 6.19373 11.8296L6.20207 12.3921C6.20207 12.3921 6.09618 12.8314 5.79331 13.079C5.49043 13.3266 4.86759 13.8171 4.86759 13.8171C4.86759 13.8171 4.56471 14.0647 4.81769 14.7769C5.08144 15.4828 5.46713 15.4783 5.46713 15.4783C5.46713 15.4783 6.26012 15.4569 6.64582 15.4524C7.03152 15.4479 7.40116 15.7145 7.40116 15.7145L7.76458 16.1447C7.76458 16.1447 7.96976 16.5499 7.89441 16.9425C7.81907 17.3351 7.66208 18.1094 7.66208 18.1094C7.66208 18.1094 7.58674 18.502 8.23785 18.8824C8.88895 19.2629 9.18553 19.0044 9.18553 19.0044C9.18553 19.0044 9.7724 18.4765 10.069 18.218C10.3655 17.9595 10.8115 17.9347 10.8115 17.9347L11.3609 18.0394C11.3609 18.0394 11.77 18.225 11.9608 18.5803C12.1516 18.9356 12.5268 19.6354 12.5268 19.6354C12.5268 19.6354 12.7176 19.9907 13.4583 19.8539C14.1946 19.7343 14.2529 19.337 14.2529 19.337C14.2529 19.337 14.3586 18.5487 14.4232 18.1623C14.4814 17.765 14.8086 17.4598 14.8086 17.4598L15.2939 17.1796C15.2939 17.1796 15.7281 17.0598 16.095 17.1971C16.4682 17.3453 17.1975 17.637 17.1975 17.637C17.1975 17.637 17.5707 17.7851 18.0424 17.2073C18.5142 16.6295 18.3189 16.2913 18.3189 16.2913C18.3189 16.2913 17.9006 15.6164 17.6882 15.2736C17.4759 14.9307 17.5197 14.4836 17.5197 14.4836L17.7038 13.9555C17.7038 13.9555 17.9482 13.5816 18.3203 13.454C18.6925 13.3264 19.4431 13.0822 19.4431 13.0822C19.4431 13.0822 19.8153 12.9546 19.8113 12.2005C19.8074 11.4464 19.4297 11.3153 19.4297 11.3153C19.4297 11.3153 18.6807 11.0641 18.303 10.9331C17.9253 10.802 17.677 10.4217 17.677 10.4217L17.4861 9.8919C17.4861 9.8919 17.4293 9.4447 17.6368 9.1067C17.8443 8.7687 18.2486 8.09891 18.2486 8.09891C18.2486 8.09891 18.4778 7.74844 17.9983 7.16707L17.9983 7.16705ZM9.33902 8.38466L10.6176 10.5992C10.0433 11.149 9.82793 11.9715 10.0567 12.7413L7.86713 14.0054C6.98868 12.0106 7.60355 9.66286 9.33905 8.38457L9.33902 8.38466ZM13.9748 16.414C11.9998 17.2778 9.65918 16.6363 8.37099 14.8783L10.5605 13.6141C11.1128 14.1971 11.9329 14.4219 12.6961 14.1994L13.9748 16.414ZM12.6552 13.132C12.1159 13.4434 11.4325 13.2561 11.1176 12.7107C10.8027 12.1652 10.9822 11.4797 11.5215 11.1684C12.0608 10.857 12.7441 11.0443 13.0591 11.5897C13.374 12.1352 13.1945 12.8207 12.6552 13.132ZM14.8376 15.9158L13.5591 13.7012C14.1333 13.1515 14.3487 12.3289 14.12 11.5591L16.3095 10.295C17.188 12.2898 16.5731 14.6376 14.8376 15.9159L14.8376 15.9158ZM13.6161 10.6863C13.0638 10.1034 12.2437 9.87862 11.4805 10.1011L10.2019 7.88652C12.1769 7.02266 14.5112 7.65314 15.8057 9.42223L13.6161 10.6863Z",
|
|
1091
1105
|
fill: "#003A57"
|
|
1092
1106
|
})));
|
|
@@ -1948,8 +1962,8 @@ const WaffleChart = ({ height, width, data, total, tooltip, }) => {
|
|
|
1948
1962
|
};
|
|
1949
1963
|
|
|
1950
1964
|
var _g$a, _defs$4;
|
|
1951
|
-
function _extends$
|
|
1952
|
-
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1965
|
+
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); }
|
|
1966
|
+
const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
1953
1967
|
width: 27,
|
|
1954
1968
|
height: 26,
|
|
1955
1969
|
viewBox: "0 0 27 26",
|
|
@@ -1972,8 +1986,8 @@ const SvgSentiment1 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1972
1986
|
})))));
|
|
1973
1987
|
|
|
1974
1988
|
var _g$9, _defs$3;
|
|
1975
|
-
function _extends$
|
|
1976
|
-
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1989
|
+
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); }
|
|
1990
|
+
const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
1977
1991
|
width: 27,
|
|
1978
1992
|
height: 26,
|
|
1979
1993
|
viewBox: "0 0 27 26",
|
|
@@ -1996,8 +2010,8 @@ const SvgSentiment2 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
1996
2010
|
})))));
|
|
1997
2011
|
|
|
1998
2012
|
var _g$8, _defs$2;
|
|
1999
|
-
function _extends$
|
|
2000
|
-
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2013
|
+
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); }
|
|
2014
|
+
const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
2001
2015
|
width: 27,
|
|
2002
2016
|
height: 26,
|
|
2003
2017
|
viewBox: "0 0 27 26",
|
|
@@ -2026,8 +2040,8 @@ const SvgSentiment3 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2026
2040
|
})))));
|
|
2027
2041
|
|
|
2028
2042
|
var _g$7, _defs$1;
|
|
2029
|
-
function _extends$
|
|
2030
|
-
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2043
|
+
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); }
|
|
2044
|
+
const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
2031
2045
|
width: 27,
|
|
2032
2046
|
height: 26,
|
|
2033
2047
|
viewBox: "0 0 27 26",
|
|
@@ -2056,8 +2070,8 @@ const SvgSentiment4 = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2056
2070
|
})))));
|
|
2057
2071
|
|
|
2058
2072
|
var _g$6, _defs;
|
|
2059
|
-
function _extends$
|
|
2060
|
-
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2073
|
+
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); }
|
|
2074
|
+
const SvgSentiment5 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
2061
2075
|
width: 26,
|
|
2062
2076
|
height: 26,
|
|
2063
2077
|
viewBox: "0 0 26 26",
|
|
@@ -2337,40 +2351,26 @@ const ChatContextProvider = ({ onSave, onFileUpload, onDeleteThumbnail, setMenti
|
|
|
2337
2351
|
setEditor,
|
|
2338
2352
|
thumbnails,
|
|
2339
2353
|
setThumbnails,
|
|
2340
|
-
afterUploadCallback: (failed) => {
|
|
2341
|
-
|
|
2342
|
-
if (failed.includes(file.name)) {
|
|
2343
|
-
file.isLoadingMedia = false;
|
|
2344
|
-
//file.isError = true;
|
|
2345
|
-
}
|
|
2346
|
-
else {
|
|
2347
|
-
file.isLoadingMedia = false;
|
|
2348
|
-
//file.isError = false
|
|
2349
|
-
}
|
|
2350
|
-
return file;
|
|
2351
|
-
}));
|
|
2352
|
-
},
|
|
2353
|
-
addThumbnails: ({ files }) => {
|
|
2354
|
+
afterUploadCallback: (failed) => { },
|
|
2355
|
+
addThumbnails: ({ files }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2354
2356
|
setThumbnails((prev) => [...prev, ...files]);
|
|
2355
|
-
if (onFileUpload)
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
else {
|
|
2366
|
-
file.isError = false;
|
|
2367
|
-
}
|
|
2368
|
-
return file;
|
|
2369
|
-
});
|
|
2357
|
+
if (!onFileUpload)
|
|
2358
|
+
return;
|
|
2359
|
+
try {
|
|
2360
|
+
const data = yield onFileUpload(files);
|
|
2361
|
+
setThumbnails((prev) => {
|
|
2362
|
+
return prev.map(file => {
|
|
2363
|
+
var _a, _b;
|
|
2364
|
+
file.isLoadingMedia = false;
|
|
2365
|
+
file.error = (_b = (_a = data.failed) === null || _a === void 0 ? void 0 : _a.find(f => f.name === file.name)) === null || _b === void 0 ? void 0 : _b.errorCode;
|
|
2366
|
+
return file;
|
|
2370
2367
|
});
|
|
2371
2368
|
});
|
|
2372
2369
|
}
|
|
2373
|
-
|
|
2370
|
+
catch (e) {
|
|
2371
|
+
console.log("Error uploading files", e);
|
|
2372
|
+
}
|
|
2373
|
+
}),
|
|
2374
2374
|
clearInput: () => {
|
|
2375
2375
|
if (editor && !editor.isEmpty) {
|
|
2376
2376
|
editor.commands.clearContent();
|
|
@@ -2736,28 +2736,28 @@ const ChatTitle = styled__default["default"](Title$1) `
|
|
|
2736
2736
|
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.md}`};
|
|
2737
2737
|
`;
|
|
2738
2738
|
|
|
2739
|
-
var _path$
|
|
2740
|
-
function _extends$
|
|
2741
|
-
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2739
|
+
var _path$x;
|
|
2740
|
+
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); }
|
|
2741
|
+
const SvgBoldFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
2742
2742
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2743
2743
|
width: 16,
|
|
2744
2744
|
height: 16,
|
|
2745
2745
|
focusable: "false",
|
|
2746
2746
|
viewBox: "0 0 16 16"
|
|
2747
|
-
}, props), _path$
|
|
2747
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2748
2748
|
fill: "currentColor",
|
|
2749
2749
|
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
2750
|
})));
|
|
2751
2751
|
|
|
2752
|
-
var _path$
|
|
2753
|
-
function _extends$
|
|
2754
|
-
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2752
|
+
var _path$w;
|
|
2753
|
+
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); }
|
|
2754
|
+
const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
2755
2755
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2756
2756
|
width: 16,
|
|
2757
2757
|
height: 16,
|
|
2758
2758
|
focusable: "false",
|
|
2759
2759
|
viewBox: "0 0 16 16"
|
|
2760
|
-
}, props), _path$
|
|
2760
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2761
2761
|
fill: "none",
|
|
2762
2762
|
stroke: "currentColor",
|
|
2763
2763
|
strokeLinecap: "round",
|
|
@@ -2765,15 +2765,15 @@ const SvgItalicFill = props => /*#__PURE__*/React__namespace.createElement("svg"
|
|
|
2765
2765
|
d: "M8 1h3M9.5 1l-3 14M5 15h3"
|
|
2766
2766
|
})));
|
|
2767
2767
|
|
|
2768
|
-
var _path$
|
|
2769
|
-
function _extends$
|
|
2770
|
-
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2768
|
+
var _path$v, _path2$7;
|
|
2769
|
+
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); }
|
|
2770
|
+
const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
2771
2771
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2772
2772
|
width: 16,
|
|
2773
2773
|
height: 16,
|
|
2774
2774
|
focusable: "false",
|
|
2775
2775
|
viewBox: "0 0 16 16"
|
|
2776
|
-
}, props), _path$
|
|
2776
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2777
2777
|
fill: "currentColor",
|
|
2778
2778
|
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
2779
|
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2785,8 +2785,8 @@ const SvgQuoteFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
2785
2785
|
})));
|
|
2786
2786
|
|
|
2787
2787
|
var _g$5;
|
|
2788
|
-
function _extends$
|
|
2789
|
-
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2788
|
+
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); }
|
|
2789
|
+
const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
2790
2790
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2791
2791
|
width: 16,
|
|
2792
2792
|
height: 16,
|
|
@@ -2813,8 +2813,8 @@ const SvgH1Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2813
2813
|
}))));
|
|
2814
2814
|
|
|
2815
2815
|
var _g$4;
|
|
2816
|
-
function _extends$
|
|
2817
|
-
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2816
|
+
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); }
|
|
2817
|
+
const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
2818
2818
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2819
2819
|
width: 16,
|
|
2820
2820
|
height: 16,
|
|
@@ -2841,8 +2841,8 @@ const SvgH2Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
|
|
|
2841
2841
|
}))));
|
|
2842
2842
|
|
|
2843
2843
|
var _g$3;
|
|
2844
|
-
function _extends$
|
|
2845
|
-
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2844
|
+
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); }
|
|
2845
|
+
const SvgH3Fill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2846
2846
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2847
2847
|
width: 16,
|
|
2848
2848
|
height: 16,
|
|
@@ -2909,64 +2909,72 @@ const FloatingMenu = (props) => {
|
|
|
2909
2909
|
const TooltipComponent = (props) => {
|
|
2910
2910
|
var _a;
|
|
2911
2911
|
const theme = React.useContext(styled.ThemeContext);
|
|
2912
|
-
return jsxRuntime.jsx(reactTooltips.Tooltip, Object.assign({}, props, { zIndex: (_a = props.zIndex) !== null && _a !== void 0 ? _a : theme.levels.front }));
|
|
2912
|
+
return (jsxRuntime.jsx(reactTooltips.Tooltip, Object.assign({}, props, { zIndex: (_a = props.zIndex) !== null && _a !== void 0 ? _a : theme.levels.front })));
|
|
2913
2913
|
};
|
|
2914
|
-
const
|
|
2914
|
+
const StyledTooltip$2 = styled__default["default"](TooltipComponent) `
|
|
2915
2915
|
box-shadow: ${({ theme }) => theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColor("neutralHue", 600, theme, 0.15))};
|
|
2916
|
-
`;
|
|
2917
2916
|
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2917
|
+
${({ isTransparent }) => isTransparent &&
|
|
2918
|
+
`
|
|
2919
|
+
box-shadow: none;
|
|
2920
|
+
background-color: transparent;
|
|
2921
|
+
border: none;
|
|
2922
|
+
`};
|
|
2923
|
+
`;
|
|
2924
|
+
const Tooltip = (props) => jsxRuntime.jsx(StyledTooltip$2, Object.assign({}, props));
|
|
2925
|
+
|
|
2926
|
+
var _path$u;
|
|
2927
|
+
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); }
|
|
2928
|
+
const SvgBoldStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2921
2929
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2922
2930
|
width: 16,
|
|
2923
2931
|
height: 16,
|
|
2924
2932
|
focusable: "false",
|
|
2925
2933
|
viewBox: "0 0 16 16"
|
|
2926
|
-
}, props), _path$
|
|
2934
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2927
2935
|
fill: "currentColor",
|
|
2928
2936
|
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"
|
|
2929
2937
|
})));
|
|
2930
2938
|
|
|
2931
|
-
var _path$
|
|
2932
|
-
function _extends$
|
|
2933
|
-
const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2939
|
+
var _path$t;
|
|
2940
|
+
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); }
|
|
2941
|
+
const SvgItalicStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
2934
2942
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2935
2943
|
width: 16,
|
|
2936
2944
|
height: 16,
|
|
2937
2945
|
focusable: "false",
|
|
2938
2946
|
viewBox: "0 0 16 16"
|
|
2939
|
-
}, props), _path$
|
|
2947
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2940
2948
|
fill: "none",
|
|
2941
2949
|
stroke: "currentColor",
|
|
2942
2950
|
strokeLinecap: "round",
|
|
2943
2951
|
d: "M7.5 1.5h3M9 1.5l-3 14m-1.5 0h3"
|
|
2944
2952
|
})));
|
|
2945
2953
|
|
|
2946
|
-
var _path$
|
|
2947
|
-
function _extends$
|
|
2948
|
-
const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2954
|
+
var _path$s;
|
|
2955
|
+
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); }
|
|
2956
|
+
const SvgAtStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
2949
2957
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2950
2958
|
width: 16,
|
|
2951
2959
|
height: 16,
|
|
2952
2960
|
focusable: "false",
|
|
2953
2961
|
role: "presentation"
|
|
2954
|
-
}, props), _path$
|
|
2962
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2955
2963
|
fill: "none",
|
|
2956
2964
|
stroke: "currentColor",
|
|
2957
2965
|
strokeLinecap: "round",
|
|
2958
2966
|
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"
|
|
2959
2967
|
})));
|
|
2960
2968
|
|
|
2961
|
-
var _path$
|
|
2962
|
-
function _extends$
|
|
2963
|
-
const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2969
|
+
var _path$r;
|
|
2970
|
+
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); }
|
|
2971
|
+
const SvgClipboard = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
2964
2972
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2965
2973
|
width: 16,
|
|
2966
2974
|
height: 16,
|
|
2967
2975
|
focusable: "false",
|
|
2968
2976
|
role: "presentation"
|
|
2969
|
-
}, props), _path$
|
|
2977
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2970
2978
|
fill: "none",
|
|
2971
2979
|
stroke: "currentColor",
|
|
2972
2980
|
strokeLinecap: "round",
|
|
@@ -3056,8 +3064,9 @@ function useMedia() {
|
|
|
3056
3064
|
function getMedia(data) {
|
|
3057
3065
|
return getValidMedia(data).map((file) => {
|
|
3058
3066
|
return Object.assign(file, {
|
|
3067
|
+
url: URL.createObjectURL(file),
|
|
3059
3068
|
isLoadingMedia: true,
|
|
3060
|
-
|
|
3069
|
+
id: uuid.v4(),
|
|
3061
3070
|
});
|
|
3062
3071
|
});
|
|
3063
3072
|
}
|
|
@@ -3107,7 +3116,7 @@ const CommentBar = ({ editor, i18n, }) => {
|
|
|
3107
3116
|
}
|
|
3108
3117
|
};
|
|
3109
3118
|
};
|
|
3110
|
-
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({ 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 : "Upload images and video. 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, {}) })) }))] })) }));
|
|
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, {}) })) }))] })) }));
|
|
3111
3120
|
};
|
|
3112
3121
|
|
|
3113
3122
|
const CustomMention = Mention__default["default"].extend({
|
|
@@ -3356,9 +3365,9 @@ const editorExtensions = ({ placeholderOptions, mentionableUsers, }) => {
|
|
|
3356
3365
|
];
|
|
3357
3366
|
};
|
|
3358
3367
|
|
|
3359
|
-
var _circle$3, _path$
|
|
3360
|
-
function _extends$
|
|
3361
|
-
const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3368
|
+
var _circle$3, _path$q, _path2$6;
|
|
3369
|
+
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); }
|
|
3370
|
+
const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
3362
3371
|
width: 56,
|
|
3363
3372
|
height: 56,
|
|
3364
3373
|
viewBox: "0 0 56 56",
|
|
@@ -3369,7 +3378,7 @@ const SvgRemoveMediaIcon = props => /*#__PURE__*/React__namespace.createElement(
|
|
|
3369
3378
|
cy: 28,
|
|
3370
3379
|
r: 28,
|
|
3371
3380
|
fill: "#edf7ff"
|
|
3372
|
-
})), _path$
|
|
3381
|
+
})), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3373
3382
|
d: "M16.929 16.929L39.071 39.071",
|
|
3374
3383
|
stroke: "currentColor",
|
|
3375
3384
|
strokeWidth: 4
|
|
@@ -3390,14 +3399,15 @@ const StyledDeleteThumbnailX = styled__default["default"].div `
|
|
|
3390
3399
|
opacity: 0;
|
|
3391
3400
|
transition: opacity 0.2s;
|
|
3392
3401
|
z-index: 2;
|
|
3402
|
+
color: ${({ theme }) => theme.palette.grey[800]};
|
|
3393
3403
|
`;
|
|
3394
3404
|
const DeleteThumbnailX = ({ deleteThumbnail }) => {
|
|
3395
3405
|
return (jsxRuntime.jsx(StyledDeleteThumbnailX, Object.assign({ className: "deleteThumbnail" }, { children: jsxRuntime.jsx(SvgRemoveMediaIcon, { onClick: (e) => deleteThumbnail(e) }) })));
|
|
3396
3406
|
};
|
|
3397
3407
|
|
|
3398
|
-
var _circle$2, _path$
|
|
3399
|
-
function _extends$
|
|
3400
|
-
const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3408
|
+
var _circle$2, _path$p;
|
|
3409
|
+
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); }
|
|
3410
|
+
const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
3401
3411
|
width: 56,
|
|
3402
3412
|
height: 56,
|
|
3403
3413
|
viewBox: "0 0 56 56",
|
|
@@ -3408,7 +3418,7 @@ const SvgVideoPlayIcon = props => /*#__PURE__*/React__namespace.createElement("s
|
|
|
3408
3418
|
cy: 28,
|
|
3409
3419
|
r: 28,
|
|
3410
3420
|
fill: "white"
|
|
3411
|
-
})), _path$
|
|
3421
|
+
})), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3412
3422
|
d: "M47 28L18.5 44.4545L18.5 11.5455L47 28Z",
|
|
3413
3423
|
fill: "currentColor"
|
|
3414
3424
|
})));
|
|
@@ -3417,18 +3427,19 @@ const ImageCard = styled__default["default"](SpecialCard) `
|
|
|
3417
3427
|
padding: 0;
|
|
3418
3428
|
position: relative;
|
|
3419
3429
|
overflow: hidden;
|
|
3420
|
-
|
|
3430
|
+
width: 90px;
|
|
3431
|
+
|
|
3421
3432
|
&:before {
|
|
3422
3433
|
content: "";
|
|
3434
|
+
font-size: ${({ theme }) => theme.fontSizes.xs};
|
|
3423
3435
|
position: absolute;
|
|
3436
|
+
padding: ${({ theme }) => theme.space.xs};
|
|
3424
3437
|
top: 0;
|
|
3425
3438
|
left: 0;
|
|
3426
3439
|
width: 100%;
|
|
3427
3440
|
height: 100%;
|
|
3428
|
-
background-color: ${({ theme }) => theme.palette.grey[800]};
|
|
3429
|
-
opacity: 0;
|
|
3441
|
+
background-color: ${({ theme }) => theme.palette.grey[800]}00; // 0% opacity
|
|
3430
3442
|
transition: opacity 0.2s;
|
|
3431
|
-
z-index: 1;
|
|
3432
3443
|
}
|
|
3433
3444
|
|
|
3434
3445
|
&:hover {
|
|
@@ -3436,13 +3447,26 @@ const ImageCard = styled__default["default"](SpecialCard) `
|
|
|
3436
3447
|
opacity: 1;
|
|
3437
3448
|
}
|
|
3438
3449
|
&:before {
|
|
3439
|
-
|
|
3450
|
+
background-color: ${({ theme }) => theme.palette.grey[800]}4d; // 30% opacity
|
|
3440
3451
|
}
|
|
3441
3452
|
}
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3453
|
+
${(p) => p.error &&
|
|
3454
|
+
`
|
|
3455
|
+
&:before{
|
|
3456
|
+
content: "Error: ${p.error}";
|
|
3457
|
+
color: ${p.theme.palette.white};
|
|
3458
|
+
background-color: ${p.theme.palette.grey[800]}b3; // 0.7 opacity
|
|
3459
|
+
}
|
|
3460
|
+
`}
|
|
3461
|
+
${(p) => p.isLoading &&
|
|
3462
|
+
`
|
|
3463
|
+
&:before{
|
|
3464
|
+
background-color: ${p.theme.palette.grey[800]}b3; // 0.7 opacity
|
|
3465
|
+
}
|
|
3466
|
+
`}
|
|
3467
|
+
&.video {
|
|
3445
3468
|
svg {
|
|
3469
|
+
color: ${({ theme }) => theme.palette.grey[800]};
|
|
3446
3470
|
position: absolute;
|
|
3447
3471
|
top: 50%;
|
|
3448
3472
|
left: 50%;
|
|
@@ -3457,13 +3481,15 @@ const Preview = styled__default["default"].div `
|
|
|
3457
3481
|
display: flex;
|
|
3458
3482
|
justify-content: center;
|
|
3459
3483
|
align-items: center;
|
|
3460
|
-
height:
|
|
3484
|
+
height: 100px;
|
|
3461
3485
|
width: 100%;
|
|
3462
|
-
|
|
3463
|
-
|
|
3486
|
+
color: ${({ theme }) => theme.palette.white};
|
|
3487
|
+
|
|
3488
|
+
${p => p.url &&
|
|
3489
|
+
`
|
|
3464
3490
|
background-image: url(${p.url});
|
|
3465
3491
|
background-color: ${p.theme.palette.grey[100]};
|
|
3466
|
-
background-size:
|
|
3492
|
+
background-size: cover;
|
|
3467
3493
|
background-position: center;
|
|
3468
3494
|
background-repeat: no-repeat;
|
|
3469
3495
|
`}
|
|
@@ -3473,64 +3499,47 @@ const Preview = styled__default["default"].div `
|
|
|
3473
3499
|
height: 100%;
|
|
3474
3500
|
}
|
|
3475
3501
|
`;
|
|
3476
|
-
const Thumbnail = ({ src, type, removeThumbnail, clickThumbnail, showX, isLoadingMedia
|
|
3502
|
+
const Thumbnail = ({ src, type, removeThumbnail, clickThumbnail, showX, isLoadingMedia, error = "", }) => {
|
|
3477
3503
|
const handleCancel = (e) => {
|
|
3478
3504
|
e.stopPropagation();
|
|
3479
3505
|
if (removeThumbnail)
|
|
3480
3506
|
removeThumbnail();
|
|
3481
3507
|
};
|
|
3482
|
-
return (jsxRuntime.
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3508
|
+
return (jsxRuntime.jsx(ImageCard, Object.assign({ onClick: clickThumbnail, className: type.includes("video") ? "video" : "image", error: error, isLoading: isLoadingMedia }, { children: isLoadingMedia ? (jsxRuntime.jsx(Preview, Object.assign({ url: src }, { children: jsxRuntime.jsx(reactLoaders.Spinner, { style: {
|
|
3509
|
+
display: "flex",
|
|
3510
|
+
position: "absolute",
|
|
3511
|
+
color: "white",
|
|
3512
|
+
alignItems: "center",
|
|
3513
|
+
justifyContent: "center",
|
|
3514
|
+
}, size: "large" }) }))) : (jsxRuntime.jsxs(Preview, Object.assign({ url: src }, { children: [showX && (jsxRuntime.jsx(DeleteThumbnailX, { deleteThumbnail: (e) => handleCancel(e) })), type.includes("video") && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("video", Object.assign({ src: src }, { children: jsxRuntime.jsx("track", { kind: "captions" }) })), jsxRuntime.jsx(SvgVideoPlayIcon, { opacity: error ? "0.3" : "1" })] }))] }))) })));
|
|
3489
3515
|
};
|
|
3490
3516
|
|
|
3491
|
-
const
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
/**
|
|
3496
|
-
* The Grid component is a framework for building modular layouts.
|
|
3497
|
-
* <hr>
|
|
3498
|
-
* Used for this:
|
|
3499
|
-
- To structure the layout of a page
|
|
3500
|
-
*/
|
|
3501
|
-
const Grid = (props) => jsxRuntime.jsx(UgGrid, Object.assign({}, props));
|
|
3502
|
-
|
|
3503
|
-
const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props));
|
|
3504
|
-
|
|
3505
|
-
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
3506
|
-
margin-bottom: ${theme.space.lg};
|
|
3507
|
-
|
|
3508
|
-
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
3509
|
-
margin-bottom: ${theme.space.md};
|
|
3510
|
-
}
|
|
3517
|
+
const FlexContainer = styled.styled.div `
|
|
3518
|
+
display: flex;
|
|
3519
|
+
gap: ${({ theme }) => theme.space.xs};
|
|
3520
|
+
flex-wrap: wrap;
|
|
3511
3521
|
`;
|
|
3512
|
-
const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
|
|
3513
|
-
|
|
3514
3522
|
const ThumbnailContainer = ({ openLightbox }) => {
|
|
3515
3523
|
const { thumbnails, removeThumbnail, onDeleteThumbnail } = useChatContext();
|
|
3516
3524
|
const mediaFiles = React.useMemo(() => {
|
|
3517
3525
|
return thumbnails.map((file) => ({
|
|
3518
3526
|
fileName: file.name,
|
|
3519
3527
|
fileType: file.type,
|
|
3520
|
-
previewUrl:
|
|
3521
|
-
|
|
3528
|
+
previewUrl: file.url,
|
|
3529
|
+
id: file.id,
|
|
3522
3530
|
isLoadingMedia: file.isLoadingMedia,
|
|
3531
|
+
error: file.error,
|
|
3523
3532
|
}));
|
|
3524
3533
|
}, [thumbnails]);
|
|
3525
3534
|
if (!mediaFiles || mediaFiles.length === 0) {
|
|
3526
3535
|
return null;
|
|
3527
3536
|
}
|
|
3528
|
-
return (jsxRuntime.jsx(
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3537
|
+
return (jsxRuntime.jsx(FlexContainer, { children: mediaFiles.map((file, index) => (jsxRuntime.jsx(Thumbnail, { src: file.previewUrl, showX: true, type: file.fileType, isLoadingMedia: file.isLoadingMedia, error: file.error, removeThumbnail: () => {
|
|
3538
|
+
removeThumbnail(index);
|
|
3539
|
+
onDeleteThumbnail(file.id);
|
|
3540
|
+
}, clickThumbnail: () => {
|
|
3541
|
+
openLightbox(index);
|
|
3542
|
+
} }, file.id))) }));
|
|
3534
3543
|
};
|
|
3535
3544
|
|
|
3536
3545
|
const UgModalBody = styled__default["default"](reactModals.Body) `
|
|
@@ -3599,28 +3608,28 @@ Lightbox.Body = ModalBody; // Includes Main and Details
|
|
|
3599
3608
|
Lightbox.Footer = Footer$3;
|
|
3600
3609
|
Lightbox.Close = reactModals.Close;
|
|
3601
3610
|
|
|
3602
|
-
var _path$
|
|
3603
|
-
function _extends$
|
|
3604
|
-
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3611
|
+
var _path$o;
|
|
3612
|
+
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); }
|
|
3613
|
+
const SvgChevronLeftStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
3605
3614
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3606
3615
|
width: 16,
|
|
3607
3616
|
height: 16,
|
|
3608
3617
|
focusable: "false",
|
|
3609
3618
|
viewBox: "0 0 16 16"
|
|
3610
|
-
}, props), _path$
|
|
3619
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3611
3620
|
fill: "currentColor",
|
|
3612
3621
|
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"
|
|
3613
3622
|
})));
|
|
3614
3623
|
|
|
3615
|
-
var _path$
|
|
3616
|
-
function _extends$
|
|
3617
|
-
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3624
|
+
var _path$n;
|
|
3625
|
+
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); }
|
|
3626
|
+
const SvgChevronRightStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
3618
3627
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3619
3628
|
width: 16,
|
|
3620
3629
|
height: 16,
|
|
3621
3630
|
focusable: "false",
|
|
3622
3631
|
viewBox: "0 0 16 16"
|
|
3623
|
-
}, props), _path$
|
|
3632
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3624
3633
|
fill: "currentColor",
|
|
3625
3634
|
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"
|
|
3626
3635
|
})));
|
|
@@ -3843,15 +3852,15 @@ Slider.Slide = Slide;
|
|
|
3843
3852
|
Slider.PrevButton = PrevButton;
|
|
3844
3853
|
Slider.NextButton = NextButton;
|
|
3845
3854
|
|
|
3846
|
-
var _path$
|
|
3847
|
-
function _extends$
|
|
3848
|
-
const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3855
|
+
var _path$m, _path2$5;
|
|
3856
|
+
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); }
|
|
3857
|
+
const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
3849
3858
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3850
3859
|
width: 16,
|
|
3851
3860
|
height: 16,
|
|
3852
3861
|
focusable: "false",
|
|
3853
3862
|
viewBox: "0 0 16 16"
|
|
3854
|
-
}, props), _path$
|
|
3863
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3855
3864
|
stroke: "currentColor",
|
|
3856
3865
|
strokeLinecap: "round",
|
|
3857
3866
|
d: "M11.5 10l4-4m-4 0l4 4"
|
|
@@ -3860,15 +3869,15 @@ const SvgVolumeMutedFill = props => /*#__PURE__*/React__namespace.createElement(
|
|
|
3860
3869
|
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"
|
|
3861
3870
|
})));
|
|
3862
3871
|
|
|
3863
|
-
var _path$
|
|
3864
|
-
function _extends$
|
|
3865
|
-
const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3872
|
+
var _path$l, _path2$4;
|
|
3873
|
+
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); }
|
|
3874
|
+
const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
3866
3875
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3867
3876
|
width: 16,
|
|
3868
3877
|
height: 16,
|
|
3869
3878
|
focusable: "false",
|
|
3870
3879
|
viewBox: "0 0 16 16"
|
|
3871
|
-
}, props), _path$
|
|
3880
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3872
3881
|
fill: "currentColor",
|
|
3873
3882
|
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"
|
|
3874
3883
|
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -3878,6 +3887,10 @@ const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
3878
3887
|
d: "M11.77 9.77c.45-.45.73-1.08.73-1.77s-.28-1.31-.73-1.77m2.17 5.6c.97-.99 1.56-2.34 1.56-3.83 0-1.52-.62-2.89-1.61-3.89"
|
|
3879
3888
|
})));
|
|
3880
3889
|
|
|
3890
|
+
const ControlButton = styled__default["default"](IconButton) `
|
|
3891
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
3892
|
+
`;
|
|
3893
|
+
|
|
3881
3894
|
const AudioButton = () => {
|
|
3882
3895
|
const [hasAudio, setHasAudio] = React.useState(false);
|
|
3883
3896
|
const { isMuted, setMuted, context } = Video.useVideoContext();
|
|
@@ -3902,8 +3915,8 @@ const AudioButton = () => {
|
|
|
3902
3915
|
setMuted(!hasVolume(player.ref.current));
|
|
3903
3916
|
checkAudio(player.ref.current);
|
|
3904
3917
|
}
|
|
3905
|
-
}, [context.isPlaying, isMuted]);
|
|
3906
|
-
return (jsxRuntime.jsx(
|
|
3918
|
+
}, [context.isPlaying, isMuted, player, setMuted]);
|
|
3919
|
+
return (jsxRuntime.jsx(ControlButton, Object.assign({ disabled: !hasAudio, onClick: () => {
|
|
3907
3920
|
if (player === null || player === void 0 ? void 0 : player.ref.current) {
|
|
3908
3921
|
player.ref.current.volume = player.ref.current.volume > 0 ? 0 : 1;
|
|
3909
3922
|
setMuted(!player.ref.current.volume);
|
|
@@ -3939,8 +3952,8 @@ const useProgressContext = () => {
|
|
|
3939
3952
|
};
|
|
3940
3953
|
|
|
3941
3954
|
var _g$2;
|
|
3942
|
-
function _extends$
|
|
3943
|
-
const SvgGrip = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3955
|
+
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); }
|
|
3956
|
+
const SvgGrip = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
3944
3957
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3945
3958
|
width: 16,
|
|
3946
3959
|
height: 16,
|
|
@@ -4042,6 +4055,9 @@ const StyledGrabber = styled.styled.div `
|
|
|
4042
4055
|
const activeBookMark = styled.css `
|
|
4043
4056
|
height: 250%;
|
|
4044
4057
|
transform: translateY(-30%);
|
|
4058
|
+
cursor: pointer;
|
|
4059
|
+
z-index: 2;
|
|
4060
|
+
border-radius: 4px;
|
|
4045
4061
|
|
|
4046
4062
|
${StyledGrabber} {
|
|
4047
4063
|
display: block;
|
|
@@ -4050,17 +4066,22 @@ const activeBookMark = styled.css `
|
|
|
4050
4066
|
const Rect = styled.styled.div `
|
|
4051
4067
|
position: absolute;
|
|
4052
4068
|
height: 110%;
|
|
4053
|
-
background-color: ${({ hue, theme }) => hue || theme.palette.grey[800]};
|
|
4069
|
+
background-color: ${({ hue, theme }) => getColor(hue || theme.palette.grey[800], undefined, undefined, 0.8)};
|
|
4054
4070
|
z-index: 1;
|
|
4055
4071
|
border-radius: 2px;
|
|
4072
|
+
color: white;
|
|
4073
|
+
transition: width 0.1s ease;
|
|
4074
|
+
|
|
4056
4075
|
&:hover {
|
|
4076
|
+
background-color: ${({ hue, theme }) => hue || theme.palette.grey[800]};
|
|
4057
4077
|
${activeBookMark}
|
|
4058
|
-
border-radius: 4px;
|
|
4059
4078
|
}
|
|
4060
|
-
color: white;
|
|
4061
|
-
${({ isActive }) => isActive && activeBookMark}
|
|
4062
4079
|
|
|
4063
|
-
|
|
4080
|
+
${({ isActive }) => isActive && activeBookMark}
|
|
4081
|
+
${({ isFocused }) => isFocused && activeBookMark}
|
|
4082
|
+
`;
|
|
4083
|
+
const StyledTooltip$1 = styled.styled(Tooltip) `
|
|
4084
|
+
margin-bottom: ${({ theme }) => theme.space.sm};
|
|
4064
4085
|
`;
|
|
4065
4086
|
const Grabber = (props) => {
|
|
4066
4087
|
const { observation } = props;
|
|
@@ -4076,7 +4097,7 @@ const Grabber = (props) => {
|
|
|
4076
4097
|
};
|
|
4077
4098
|
const Bookmark = (props) => {
|
|
4078
4099
|
var _a, _b;
|
|
4079
|
-
const { start, end, hue,
|
|
4100
|
+
const { start, end, hue, tooltipContent } = props;
|
|
4080
4101
|
const { context } = Video.useVideoContext();
|
|
4081
4102
|
const videoStart = context.part.start || 0;
|
|
4082
4103
|
const videoEnd = context.part.end || ((_a = context.player) === null || _a === void 0 ? void 0 : _a.totalTime) || 0;
|
|
@@ -4087,21 +4108,21 @@ const Bookmark = (props) => {
|
|
|
4087
4108
|
}
|
|
4088
4109
|
if (start > videoEnd || start < videoStart)
|
|
4089
4110
|
return null;
|
|
4090
|
-
return (jsxRuntime.jsx(
|
|
4111
|
+
return (jsxRuntime.jsx(StyledTooltip$1, Object.assign({ content: tooltipContent, type: "light", size: "large", isTransparent: true }, { children: jsxRuntime.jsxs(Rect, Object.assign({ isActive: activeBookmark && activeBookmark.id === props.id, hue: hue, isFocused: props.isFocused, style: {
|
|
4091
4112
|
left: `${((start - videoStart) / duration) * 100}%`,
|
|
4092
4113
|
width: `${((end - start) / duration) * 100}%`,
|
|
4093
4114
|
}, onClick: props.onClick }, { children: [jsxRuntime.jsx(Grabber, { observation: props }), jsxRuntime.jsx(Grabber, { isEnd: true, observation: props })] })) })));
|
|
4094
4115
|
};
|
|
4095
4116
|
|
|
4096
|
-
var _path$
|
|
4097
|
-
function _extends$
|
|
4098
|
-
const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4117
|
+
var _path$k, _path2$3, _path3$1;
|
|
4118
|
+
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); }
|
|
4119
|
+
const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
4099
4120
|
width: 16,
|
|
4100
4121
|
height: 16,
|
|
4101
4122
|
viewBox: "0 0 16 16",
|
|
4102
4123
|
fill: "none",
|
|
4103
4124
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4104
|
-
}, props), _path$
|
|
4125
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4105
4126
|
fillRule: "evenodd",
|
|
4106
4127
|
clipRule: "evenodd",
|
|
4107
4128
|
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",
|
|
@@ -4114,15 +4135,15 @@ const SvgBackSecondsFill = props => /*#__PURE__*/React__namespace.createElement(
|
|
|
4114
4135
|
fill: "currentColor"
|
|
4115
4136
|
})));
|
|
4116
4137
|
|
|
4117
|
-
var _path$
|
|
4118
|
-
function _extends$
|
|
4119
|
-
const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4138
|
+
var _path$j, _path2$2, _path3;
|
|
4139
|
+
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); }
|
|
4140
|
+
const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
4120
4141
|
width: 16,
|
|
4121
4142
|
height: 16,
|
|
4122
4143
|
viewBox: "0 0 16 16",
|
|
4123
4144
|
fill: "none",
|
|
4124
4145
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4125
|
-
}, props), _path$
|
|
4146
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4126
4147
|
fillRule: "evenodd",
|
|
4127
4148
|
clipRule: "evenodd",
|
|
4128
4149
|
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",
|
|
@@ -4136,8 +4157,8 @@ const SvgForwardSecondsFill = props => /*#__PURE__*/React__namespace.createEleme
|
|
|
4136
4157
|
})));
|
|
4137
4158
|
|
|
4138
4159
|
var _g$1;
|
|
4139
|
-
function _extends$
|
|
4140
|
-
const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4160
|
+
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); }
|
|
4161
|
+
const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
4141
4162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4142
4163
|
width: 16,
|
|
4143
4164
|
height: 16,
|
|
@@ -4161,28 +4182,28 @@ const SvgPauseFill = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
4161
4182
|
ry: 1
|
|
4162
4183
|
}))));
|
|
4163
4184
|
|
|
4164
|
-
var _path$
|
|
4165
|
-
function _extends$
|
|
4166
|
-
const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4185
|
+
var _path$i;
|
|
4186
|
+
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); }
|
|
4187
|
+
const SvgPlayFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
4167
4188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4168
4189
|
width: 16,
|
|
4169
4190
|
height: 16,
|
|
4170
4191
|
focusable: "false",
|
|
4171
4192
|
viewBox: "0 0 16 16"
|
|
4172
|
-
}, props), _path$
|
|
4193
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4173
4194
|
fill: "currentColor",
|
|
4174
4195
|
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"
|
|
4175
4196
|
})));
|
|
4176
4197
|
|
|
4177
|
-
var _path$
|
|
4178
|
-
function _extends$
|
|
4179
|
-
const SvgPreviousFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4198
|
+
var _path$h, _path2$1;
|
|
4199
|
+
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); }
|
|
4200
|
+
const SvgPreviousFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
4180
4201
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4181
4202
|
width: 16,
|
|
4182
4203
|
height: 16,
|
|
4183
4204
|
focusable: "false",
|
|
4184
4205
|
viewBox: "0 0 24 24"
|
|
4185
|
-
}, props), _path$
|
|
4206
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4186
4207
|
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",
|
|
4187
4208
|
fill: "currentColor"
|
|
4188
4209
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4240,18 +4261,18 @@ const ControlsGroupCenter = (props) => {
|
|
|
4240
4261
|
const nextTime = videoRef.currentTime + 10;
|
|
4241
4262
|
videoRef.currentTime = nextTime;
|
|
4242
4263
|
};
|
|
4243
|
-
return (jsxRuntime.jsxs(StyledDiv$3, Object.assign({}, props, { children: [jsxRuntime.jsx(
|
|
4264
|
+
return (jsxRuntime.jsxs(StyledDiv$3, Object.assign({}, props, { children: [jsxRuntime.jsx(ControlButton, Object.assign({ onClick: (e) => {
|
|
4244
4265
|
if (videoRef) {
|
|
4245
4266
|
videoRef.currentTime = 0;
|
|
4246
4267
|
}
|
|
4247
4268
|
e.stopPropagation();
|
|
4248
|
-
} }, { children: jsxRuntime.jsx(SvgPreviousFill, {}) })), jsxRuntime.jsx(
|
|
4269
|
+
} }, { children: jsxRuntime.jsx(SvgPreviousFill, {}) })), jsxRuntime.jsx(ControlButton, Object.assign({ onClick: (e) => {
|
|
4249
4270
|
onRewind();
|
|
4250
4271
|
e.stopPropagation();
|
|
4251
|
-
} }, { children: jsxRuntime.jsx(SvgBackSecondsFill, {}) })), jsxRuntime.jsx(
|
|
4272
|
+
} }, { children: jsxRuntime.jsx(SvgBackSecondsFill, {}) })), jsxRuntime.jsx(ControlButton, Object.assign({ size: "large", onClick: togglePlay }, { children: isPlaying ? (jsxRuntime.jsx(SvgPauseFill, { style: { width: "24px", height: "24px" } })) : (jsxRuntime.jsx(SvgPlayFill, { style: { width: "24px", height: "24px" } })) })), jsxRuntime.jsx(ControlButton, Object.assign({ onClick: (e) => {
|
|
4252
4273
|
onForward();
|
|
4253
4274
|
e.stopPropagation();
|
|
4254
|
-
} }, { children: jsxRuntime.jsx(SvgForwardSecondsFill, {}) })), jsxRuntime.jsx(
|
|
4275
|
+
} }, { children: jsxRuntime.jsx(SvgForwardSecondsFill, {}) })), jsxRuntime.jsx(ControlButton, Object.assign({ isPill: true, onClick: (e) => {
|
|
4255
4276
|
const newSpeed = getNextPlaybackRate(playBackRate);
|
|
4256
4277
|
if (videoRef === null || videoRef === void 0 ? void 0 : videoRef.playbackRate) {
|
|
4257
4278
|
setPlayBackRate(newSpeed);
|
|
@@ -4261,30 +4282,82 @@ const ControlsGroupCenter = (props) => {
|
|
|
4261
4282
|
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] })));
|
|
4262
4283
|
};
|
|
4263
4284
|
|
|
4264
|
-
var _path$
|
|
4265
|
-
function _extends$
|
|
4266
|
-
const
|
|
4285
|
+
var _path$g, _circle$1;
|
|
4286
|
+
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); }
|
|
4287
|
+
const SvgTagStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
4267
4288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4268
4289
|
width: 16,
|
|
4269
4290
|
height: 16,
|
|
4270
4291
|
focusable: "false",
|
|
4271
4292
|
viewBox: "0 0 16 16"
|
|
4293
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4294
|
+
fill: "none",
|
|
4295
|
+
stroke: "currentColor",
|
|
4296
|
+
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$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
4298
|
+
cx: 4,
|
|
4299
|
+
cy: 4,
|
|
4300
|
+
r: 1,
|
|
4301
|
+
fill: "currentColor"
|
|
4302
|
+
})));
|
|
4303
|
+
|
|
4304
|
+
var _path$f;
|
|
4305
|
+
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); }
|
|
4306
|
+
const SvgPlus$1 = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
4307
|
+
width: 12,
|
|
4308
|
+
height: 12,
|
|
4309
|
+
viewBox: "0 0 12 12",
|
|
4310
|
+
fill: "none",
|
|
4311
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4272
4312
|
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4313
|
+
fillRule: "evenodd",
|
|
4314
|
+
clipRule: "evenodd",
|
|
4315
|
+
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",
|
|
4316
|
+
fill: "currentColor"
|
|
4317
|
+
})));
|
|
4318
|
+
|
|
4319
|
+
// Prevent button from breaking on smaller screens
|
|
4320
|
+
const StyledButton$2 = styled.styled(Button) `
|
|
4321
|
+
overflow: visible;
|
|
4322
|
+
`;
|
|
4323
|
+
const Cutter = ({ onCutHandler, isCutting, i18n, }) => {
|
|
4324
|
+
var _a;
|
|
4325
|
+
const { context } = Video.useVideoContext();
|
|
4326
|
+
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
4327
|
+
if (!onCutHandler)
|
|
4328
|
+
return null;
|
|
4329
|
+
return (jsxRuntime.jsx(StyledButton$2, Object.assign({ isPrimary: true, isAccent: !isCutting, size: "small", onClick: (e) => {
|
|
4330
|
+
if (videoRef) {
|
|
4331
|
+
onCutHandler(videoRef.currentTime);
|
|
4332
|
+
}
|
|
4333
|
+
e.stopPropagation();
|
|
4334
|
+
} }, { 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
|
+
};
|
|
4336
|
+
|
|
4337
|
+
var _path$e;
|
|
4338
|
+
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); }
|
|
4339
|
+
const SvgMaximizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
4340
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4341
|
+
width: 16,
|
|
4342
|
+
height: 16,
|
|
4343
|
+
focusable: "false",
|
|
4344
|
+
viewBox: "0 0 16 16"
|
|
4345
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4273
4346
|
fill: "none",
|
|
4274
4347
|
stroke: "currentColor",
|
|
4275
4348
|
strokeLinecap: "round",
|
|
4276
4349
|
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"
|
|
4277
4350
|
})));
|
|
4278
4351
|
|
|
4279
|
-
var _path$
|
|
4280
|
-
function _extends$
|
|
4281
|
-
const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4352
|
+
var _path$d;
|
|
4353
|
+
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); }
|
|
4354
|
+
const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
4282
4355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4283
4356
|
width: 16,
|
|
4284
4357
|
height: 16,
|
|
4285
4358
|
focusable: "false",
|
|
4286
4359
|
viewBox: "0 0 16 16"
|
|
4287
|
-
}, props), _path$
|
|
4360
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4288
4361
|
fill: "none",
|
|
4289
4362
|
stroke: "currentColor",
|
|
4290
4363
|
strokeLinecap: "round",
|
|
@@ -4327,7 +4400,7 @@ const FullScreenButton = ({ container, }) => {
|
|
|
4327
4400
|
setFullScreen(false);
|
|
4328
4401
|
}
|
|
4329
4402
|
}
|
|
4330
|
-
}), [ref, isFullScreen]);
|
|
4403
|
+
}), [ref, isFullScreen, setFullScreen]);
|
|
4331
4404
|
const canGoFullScreen = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
4332
4405
|
if (ref) {
|
|
4333
4406
|
return (requestFullscreen ||
|
|
@@ -4352,7 +4425,7 @@ const FullScreenButton = ({ container, }) => {
|
|
|
4352
4425
|
}
|
|
4353
4426
|
};
|
|
4354
4427
|
}, [ref]);
|
|
4355
|
-
return (jsxRuntime.jsx(
|
|
4428
|
+
return (jsxRuntime.jsx(ControlButton, Object.assign({ onClick: (e) => {
|
|
4356
4429
|
handleFullScreen();
|
|
4357
4430
|
e.stopPropagation();
|
|
4358
4431
|
}, disabled: !canGoFullScreen() }, { children: document.fullscreenElement || isFullScreen ? (jsxRuntime.jsx(SvgMinimizeStroke, {})) : (jsxRuntime.jsx(SvgMaximizeStroke, {})) })));
|
|
@@ -4374,7 +4447,7 @@ const Progress = React.forwardRef((props, ref) => (jsxRuntime.jsx(UgProgress, Ob
|
|
|
4374
4447
|
const StyledProgress = styled.styled(Progress) `
|
|
4375
4448
|
width: 100%;
|
|
4376
4449
|
border-radius: 0;
|
|
4377
|
-
color: ${({ theme }) => theme.palette.grey[
|
|
4450
|
+
color: ${({ theme }) => theme.palette.grey[400]};
|
|
4378
4451
|
cursor: pointer;
|
|
4379
4452
|
> div {
|
|
4380
4453
|
border-radius: 0;
|
|
@@ -4387,7 +4460,7 @@ const ProgressBar = React.forwardRef((props, ref) => {
|
|
|
4387
4460
|
|
|
4388
4461
|
const StyledDiv$2 = styled__default["default"].div `
|
|
4389
4462
|
display: flex;
|
|
4390
|
-
color: ${({ theme }) => theme.palette.grey[
|
|
4463
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
4391
4464
|
`;
|
|
4392
4465
|
const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [formatDuration(current), "/", formatDuration(duration)] })) }));
|
|
4393
4466
|
|
|
@@ -4404,57 +4477,61 @@ const Content$1 = styled__default["default"].div `
|
|
|
4404
4477
|
padding: 2px 4px;
|
|
4405
4478
|
display: inline-flex;
|
|
4406
4479
|
color: white;
|
|
4480
|
+
font-size: ${({ theme }) => theme.fontSizes.sm};
|
|
4407
4481
|
align-items: center;
|
|
4408
4482
|
justify-content: center;
|
|
4409
|
-
min-height:
|
|
4483
|
+
min-height: 14px;
|
|
4410
4484
|
`;
|
|
4411
4485
|
const PlayerTooltip = (_a) => {
|
|
4412
4486
|
var { children } = _a, props = __rest(_a, ["children"]);
|
|
4413
4487
|
return (jsxRuntime.jsx(Wrapper$1, Object.assign({}, props, { children: jsxRuntime.jsx(Content$1, { children: children }) })));
|
|
4414
4488
|
};
|
|
4415
4489
|
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
stroke: "currentColor",
|
|
4427
|
-
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"
|
|
4428
|
-
})), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
4429
|
-
cx: 4,
|
|
4430
|
-
cy: 4,
|
|
4431
|
-
r: 1,
|
|
4432
|
-
fill: "currentColor"
|
|
4433
|
-
})));
|
|
4490
|
+
function useDebounce(value, delay) {
|
|
4491
|
+
const [debouncedValue, setDebouncedValue] = React.useState(value);
|
|
4492
|
+
React.useEffect(() => {
|
|
4493
|
+
const timer = setTimeout(() => setDebouncedValue(value), delay || 500);
|
|
4494
|
+
return () => {
|
|
4495
|
+
clearTimeout(timer);
|
|
4496
|
+
};
|
|
4497
|
+
}, [value, delay]);
|
|
4498
|
+
return debouncedValue;
|
|
4499
|
+
}
|
|
4434
4500
|
|
|
4435
|
-
const
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4501
|
+
const Pin = styled.styled.div `
|
|
4502
|
+
width: 2px;
|
|
4503
|
+
bottom: 0;
|
|
4504
|
+
left: ${({ left }) => `${left}%`};
|
|
4505
|
+
position: absolute;
|
|
4506
|
+
height: 250%;
|
|
4507
|
+
z-index: 2;
|
|
4508
|
+
background-color: ${({ theme }) => theme.palette.grey[600]};
|
|
4509
|
+
margin-left: -2px; // To not override the current time marker
|
|
4510
|
+
|
|
4511
|
+
&:after {
|
|
4512
|
+
content: "";
|
|
4513
|
+
position: absolute;
|
|
4514
|
+
bottom: 100%;
|
|
4515
|
+
left: 50%;
|
|
4516
|
+
width: 10px;
|
|
4517
|
+
height: 10px;
|
|
4518
|
+
border-radius: 50%;
|
|
4519
|
+
transform: translate(-50%, 0);
|
|
4520
|
+
background-color: ${({ theme }) => theme.palette.grey[600]};
|
|
4521
|
+
}
|
|
4522
|
+
`;
|
|
4523
|
+
const CutStart = ({ left }) => {
|
|
4524
|
+
return jsxRuntime.jsx(Pin, { id: "obs-start-pin", left: left });
|
|
4449
4525
|
};
|
|
4450
4526
|
|
|
4451
4527
|
const ControlsWrapper = styled__default["default"].div `
|
|
4452
|
-
position: absolute;
|
|
4528
|
+
${({ showControls }) => showControls ? "position: relative;" : "position: absolute;"}
|
|
4453
4529
|
bottom: 0;
|
|
4454
4530
|
left: 0;
|
|
4455
4531
|
right: 0;
|
|
4456
4532
|
padding: ${({ theme }) => theme.space.xxs} 0;
|
|
4457
|
-
background-color: ${({ theme }) =>
|
|
4533
|
+
background-color: ${({ theme }) => theme.palette.grey[100]};
|
|
4534
|
+
height: 80px;
|
|
4458
4535
|
${({ isPlaying }) => isPlaying && "display: none;"}
|
|
4459
4536
|
z-index: 2;
|
|
4460
4537
|
`;
|
|
@@ -4476,14 +4553,26 @@ const StyledDiv$1 = styled__default["default"].div `
|
|
|
4476
4553
|
display: flex;
|
|
4477
4554
|
align-items: center;
|
|
4478
4555
|
`;
|
|
4479
|
-
const
|
|
4556
|
+
const CurrentTimeMarker = styled__default["default"].div `
|
|
4557
|
+
width: 2px;
|
|
4558
|
+
top: 0;
|
|
4559
|
+
left: ${({ left }) => `${left}%`};
|
|
4560
|
+
position: absolute;
|
|
4561
|
+
height: 110%;
|
|
4562
|
+
z-index: 1;
|
|
4563
|
+
background-color: white;
|
|
4564
|
+
`;
|
|
4565
|
+
const Controls = ({ container, onCutHandler, bookmarks, isCutting, onBookMarkUpdated, i18n, showControls = false, }) => {
|
|
4480
4566
|
var _a, _b, _c;
|
|
4481
4567
|
const [progress, setProgress] = React.useState(0);
|
|
4482
4568
|
const [tooltipMargin, setTooltipMargin] = React.useState(0);
|
|
4483
4569
|
const [tooltipLabel, setTooltipLabel] = React.useState("00:00");
|
|
4484
4570
|
const [marks, setMarks] = React.useState(bookmarks);
|
|
4571
|
+
const [updatedMark, setUpdatedMark] = React.useState();
|
|
4485
4572
|
const progressRef = React.useRef(null);
|
|
4486
4573
|
const { context, setCurrentTime } = Video.useVideoContext();
|
|
4574
|
+
const debouncedMark = useDebounce(updatedMark, 500);
|
|
4575
|
+
const [cutStart, setCutStart] = React.useState(0);
|
|
4487
4576
|
const { reset, isGrabbing, activeBookmark, fromEnd } = useProgressContext();
|
|
4488
4577
|
React.useEffect(() => {
|
|
4489
4578
|
setMarks(bookmarks);
|
|
@@ -4539,15 +4628,8 @@ const Controls = ({ container, onCutHandler, bookmarks, isCutting, onBookMarkUpd
|
|
|
4539
4628
|
...marks.slice(currentObsIndex + 1),
|
|
4540
4629
|
];
|
|
4541
4630
|
setMarks(newMarks);
|
|
4542
|
-
|
|
4543
|
-
}, [
|
|
4544
|
-
activeBookmark,
|
|
4545
|
-
context.part.start,
|
|
4546
|
-
duration,
|
|
4547
|
-
fromEnd,
|
|
4548
|
-
onBookMarkUpdated,
|
|
4549
|
-
marks,
|
|
4550
|
-
]);
|
|
4631
|
+
setUpdatedMark(updatedMark);
|
|
4632
|
+
}, [activeBookmark, context.part.start, duration, fromEnd, marks]);
|
|
4551
4633
|
React.useEffect(() => {
|
|
4552
4634
|
var _a;
|
|
4553
4635
|
const currentTime = ((_a = context.player) === null || _a === void 0 ? void 0 : _a.currentTime) || 0;
|
|
@@ -4561,12 +4643,23 @@ const Controls = ({ container, onCutHandler, bookmarks, isCutting, onBookMarkUpd
|
|
|
4561
4643
|
document.removeEventListener("mouseup", reset);
|
|
4562
4644
|
};
|
|
4563
4645
|
}, [reset, marks]);
|
|
4564
|
-
|
|
4565
|
-
|
|
4646
|
+
React.useEffect(() => {
|
|
4647
|
+
if (debouncedMark) {
|
|
4648
|
+
onBookMarkUpdated === null || onBookMarkUpdated === void 0 ? void 0 : onBookMarkUpdated(debouncedMark);
|
|
4649
|
+
}
|
|
4650
|
+
}, [debouncedMark, onBookMarkUpdated]);
|
|
4651
|
+
React.useEffect(() => {
|
|
4652
|
+
if (isCutting) {
|
|
4653
|
+
setCutStart(progress);
|
|
4654
|
+
}
|
|
4655
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4656
|
+
}, [isCutting]);
|
|
4657
|
+
return (jsxRuntime.jsxs(ControlsWrapper, Object.assign({ showControls: showControls }, (!showControls && { isPlaying: context.isPlaying }), { children: [jsxRuntime.jsxs(ProgressContainer, Object.assign({ onMouseEnter: onMouseEvent, onMouseMove: onMouseEvent, onMouseLeave: onMouseEvent }, { children: [jsxRuntime.jsx(StyledTooltip, Object.assign({ style: { marginLeft: `${tooltipMargin}px` } }, { children: tooltipLabel })), !!duration &&
|
|
4658
|
+
(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 })] }))] })] })));
|
|
4566
4659
|
};
|
|
4567
4660
|
|
|
4568
4661
|
var _path$c;
|
|
4569
|
-
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (
|
|
4662
|
+
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); }
|
|
4570
4663
|
const SvgPlayIcon = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
4571
4664
|
width: 70,
|
|
4572
4665
|
height: 70,
|
|
@@ -4584,8 +4677,9 @@ const FloatingContainer = styled__default["default"].div `
|
|
|
4584
4677
|
top: 0;
|
|
4585
4678
|
left: 0;
|
|
4586
4679
|
right: 0;
|
|
4587
|
-
${({ isPlaying }) => isPlaying && "display: none;"}
|
|
4588
4680
|
z-index: 1;
|
|
4681
|
+
${({ isPlaying }) => isPlaying && "display: none;"}
|
|
4682
|
+
${({ showControls }) => showControls ? "height: 100%" : "height: calc(100% - 80px)"};
|
|
4589
4683
|
`;
|
|
4590
4684
|
const PlayIcon = styled__default["default"](SvgPlayIcon) ``;
|
|
4591
4685
|
const BigButton = styled__default["default"](IconButton) `
|
|
@@ -4594,6 +4688,10 @@ const BigButton = styled__default["default"](IconButton) `
|
|
|
4594
4688
|
min-width: ${({ theme }) => theme.space.base * 15}px;
|
|
4595
4689
|
width: 80px;
|
|
4596
4690
|
height: 80px;
|
|
4691
|
+
|
|
4692
|
+
box-shadow: ${({ theme }) => theme.shadows.boxShadow(theme)};
|
|
4693
|
+
|
|
4694
|
+
|
|
4597
4695
|
${PlayIcon} {
|
|
4598
4696
|
width: 60%;
|
|
4599
4697
|
height: 60%;
|
|
@@ -4606,8 +4704,8 @@ const ButtonsContainer = styled__default["default"].div `
|
|
|
4606
4704
|
height: 100%;
|
|
4607
4705
|
`;
|
|
4608
4706
|
const FloatingControls = (props) => {
|
|
4609
|
-
const { isPlaying, onClick } = props;
|
|
4610
|
-
return (jsxRuntime.jsx(FloatingContainer, Object.assign({ isPlaying: isPlaying, onClick: onClick }, { children: jsxRuntime.jsx(ButtonsContainer, { children: !isPlaying && (jsxRuntime.jsx(BigButton, Object.assign({ isPrimary: true, size: "large" }, { children: jsxRuntime.jsx(PlayIcon, { color: "red" }) }))) }) })));
|
|
4707
|
+
const { isPlaying, showControls, onClick } = props;
|
|
4708
|
+
return (jsxRuntime.jsx(FloatingContainer, Object.assign({ isPlaying: isPlaying, showControls: showControls, onClick: onClick }, { children: jsxRuntime.jsx(ButtonsContainer, { children: !isPlaying && (jsxRuntime.jsx(BigButton, Object.assign({ isPrimary: true, size: "large" }, { children: jsxRuntime.jsx(PlayIcon, { color: "red" }) }))) }) })));
|
|
4611
4709
|
};
|
|
4612
4710
|
|
|
4613
4711
|
const VideoStyle = styled.css `
|
|
@@ -4633,9 +4731,13 @@ const VideoStyle = styled.css `
|
|
|
4633
4731
|
|
|
4634
4732
|
const Container$1 = styled__default["default"].div `
|
|
4635
4733
|
position: relative;
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4734
|
+
${({ showControls }) => !showControls ? `
|
|
4735
|
+
display: flex;
|
|
4736
|
+
flex-direction: column;
|
|
4737
|
+
justify-content: center;
|
|
4738
|
+
` : `
|
|
4739
|
+
margin-bottom: 80px;
|
|
4740
|
+
`}
|
|
4639
4741
|
height: 100%;
|
|
4640
4742
|
width: 100%;
|
|
4641
4743
|
video {
|
|
@@ -4660,8 +4762,7 @@ const Container$1 = styled__default["default"].div `
|
|
|
4660
4762
|
}
|
|
4661
4763
|
}
|
|
4662
4764
|
}
|
|
4663
|
-
|
|
4664
|
-
background-color: ${({ theme }) => theme.palette.grey[700]};
|
|
4765
|
+
background: ${({ theme }) => theme.palette.grey[400]};
|
|
4665
4766
|
`;
|
|
4666
4767
|
|
|
4667
4768
|
const UgSpinner = styled__default["default"](reactLoaders.Spinner) ``;
|
|
@@ -4683,6 +4784,79 @@ const StyledDiv = styled__default["default"].div `
|
|
|
4683
4784
|
`;
|
|
4684
4785
|
const VideoSpinner = () => (jsxRuntime.jsx(StyledDiv, { children: jsxRuntime.jsx(Spinner, { size: "50", color: "white" }) }));
|
|
4685
4786
|
|
|
4787
|
+
const usePictureInPicture = (videoRef, pipMode, onPipChange) => {
|
|
4788
|
+
const getObserver = (videoRef, isVideoPlaying) => {
|
|
4789
|
+
return new IntersectionObserver((entries) => {
|
|
4790
|
+
entries.forEach((entry) => {
|
|
4791
|
+
if (!entry.isIntersecting && isVideoPlaying()) {
|
|
4792
|
+
videoRef.requestPictureInPicture();
|
|
4793
|
+
}
|
|
4794
|
+
if (document.pictureInPictureElement &&
|
|
4795
|
+
entry.isIntersecting &&
|
|
4796
|
+
!isVideoPlaying()) {
|
|
4797
|
+
document.exitPictureInPicture();
|
|
4798
|
+
}
|
|
4799
|
+
});
|
|
4800
|
+
}, { threshold: 0.5 });
|
|
4801
|
+
};
|
|
4802
|
+
const handleManualPipMode = (videoRef, pipMode) => {
|
|
4803
|
+
if (pipMode) {
|
|
4804
|
+
videoRef.requestPictureInPicture();
|
|
4805
|
+
}
|
|
4806
|
+
if (!pipMode && document.pictureInPictureElement) {
|
|
4807
|
+
document.exitPictureInPicture();
|
|
4808
|
+
}
|
|
4809
|
+
};
|
|
4810
|
+
React.useEffect(() => {
|
|
4811
|
+
// bail out if pipMode is not defined or videoRef is not defined or pip is not supported
|
|
4812
|
+
if (typeof pipMode === "undefined")
|
|
4813
|
+
return;
|
|
4814
|
+
if (!document.pictureInPictureEnabled) {
|
|
4815
|
+
console.warn("Picture-in-Picture is not supported in this browser");
|
|
4816
|
+
return;
|
|
4817
|
+
}
|
|
4818
|
+
if (!videoRef)
|
|
4819
|
+
return;
|
|
4820
|
+
// if pipMode is auto, we will enter picture in picture mode when the video is not in view
|
|
4821
|
+
if (pipMode === "auto") {
|
|
4822
|
+
const isVideoPlaying = () => videoRef.currentTime > 0 &&
|
|
4823
|
+
!videoRef.paused &&
|
|
4824
|
+
!videoRef.ended &&
|
|
4825
|
+
videoRef.readyState > 2;
|
|
4826
|
+
const observer = getObserver(videoRef, isVideoPlaying);
|
|
4827
|
+
observer.observe(videoRef);
|
|
4828
|
+
return () => {
|
|
4829
|
+
observer.disconnect();
|
|
4830
|
+
};
|
|
4831
|
+
}
|
|
4832
|
+
else if (typeof pipMode === "boolean") {
|
|
4833
|
+
handleManualPipMode(videoRef, pipMode);
|
|
4834
|
+
}
|
|
4835
|
+
else {
|
|
4836
|
+
handleManualPipMode(videoRef, pipMode());
|
|
4837
|
+
}
|
|
4838
|
+
}, [pipMode, videoRef]);
|
|
4839
|
+
React.useEffect(() => {
|
|
4840
|
+
if (!document.pictureInPictureEnabled) {
|
|
4841
|
+
return;
|
|
4842
|
+
}
|
|
4843
|
+
document.addEventListener("enterpictureinpicture", () => {
|
|
4844
|
+
onPipChange === null || onPipChange === void 0 ? void 0 : onPipChange(true);
|
|
4845
|
+
});
|
|
4846
|
+
document.addEventListener("leavepictureinpicture", () => {
|
|
4847
|
+
onPipChange === null || onPipChange === void 0 ? void 0 : onPipChange(false);
|
|
4848
|
+
});
|
|
4849
|
+
return () => {
|
|
4850
|
+
document.removeEventListener("enterpictureinpicture", () => {
|
|
4851
|
+
onPipChange === null || onPipChange === void 0 ? void 0 : onPipChange(true);
|
|
4852
|
+
});
|
|
4853
|
+
document.removeEventListener("leavepictureinpicture", () => {
|
|
4854
|
+
onPipChange === null || onPipChange === void 0 ? void 0 : onPipChange(false);
|
|
4855
|
+
});
|
|
4856
|
+
};
|
|
4857
|
+
}, [onPipChange]);
|
|
4858
|
+
};
|
|
4859
|
+
|
|
4686
4860
|
/**
|
|
4687
4861
|
* The Player is a styled media tag with custom controls
|
|
4688
4862
|
* <hr>
|
|
@@ -4693,11 +4867,14 @@ const Player = React.forwardRef((props, forwardRef) => (jsxRuntime.jsx(Video__de
|
|
|
4693
4867
|
const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
4694
4868
|
var _a;
|
|
4695
4869
|
const { context, togglePlay, setIsPlaying } = Video.useVideoContext();
|
|
4696
|
-
const { onCutHandler, bookmarks, isCutting } = props;
|
|
4870
|
+
const { onCutHandler, bookmarks, isCutting, pipMode, onPipChange } = props;
|
|
4697
4871
|
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
4698
4872
|
const isLoaded = !!videoRef;
|
|
4699
4873
|
const containerRef = React.useRef(null);
|
|
4700
|
-
React.useImperativeHandle(forwardRef, () => videoRef, [
|
|
4874
|
+
React.useImperativeHandle(forwardRef, () => videoRef, [
|
|
4875
|
+
videoRef,
|
|
4876
|
+
]);
|
|
4877
|
+
usePictureInPicture(videoRef, pipMode, onPipChange);
|
|
4701
4878
|
React.useEffect(() => {
|
|
4702
4879
|
if (videoRef) {
|
|
4703
4880
|
videoRef.addEventListener("pause", () => {
|
|
@@ -4713,15 +4890,17 @@ const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
|
4713
4890
|
};
|
|
4714
4891
|
}, [setIsPlaying, videoRef]);
|
|
4715
4892
|
return (jsxRuntime.jsxs(Container$1, Object.assign({ isLoaded: isLoaded, isPlaying: context.isPlaying, ref: containerRef }, { children: [!isLoaded ? (jsxRuntime.jsx(VideoSpinner, {})) : (jsxRuntime.jsx(FloatingControls, { isPlaying: context.isPlaying, onClick: togglePlay })), jsxRuntime.jsx(Video__default["default"].Player, { className: "player-container" }), jsxRuntime.jsx(ProgressContextProvider, { children: jsxRuntime.jsx(Controls, { container: containerRef.current, onCutHandler: onCutHandler, bookmarks: bookmarks, isCutting: isCutting, onBookMarkUpdated: props.handleBookmarkUpdate, i18n: props.i18n }) })] })));
|
|
4716
|
-
});
|
|
4893
|
+
});
|
|
4894
|
+
const PlayerProvider = (props) => (jsxRuntime.jsx(Video__default["default"], Object.assign({ src: props.url }, props, { children: props.children })));
|
|
4895
|
+
PlayerProvider.Core = PlayerCore;
|
|
4717
4896
|
|
|
4718
4897
|
const MediaLightBox = ({ header, onClose, slideChange, selectedImageIndex, thumbnails, videoRefs, isOpen, details }) => {
|
|
4719
4898
|
if (!isOpen) {
|
|
4720
4899
|
return null;
|
|
4721
4900
|
}
|
|
4722
|
-
return (jsxRuntime.jsxs(Lightbox, Object.assign({ onClose: onClose }, { children: [jsxRuntime.jsx(Lightbox.Header, { children: header }), jsxRuntime.jsxs(Lightbox.Body, { children: [jsxRuntime.jsx(Lightbox.Body.Main, Object.assign({ style: { flex: details ? 2 : 3 } }, { children: jsxRuntime.jsx(Slider, Object.assign({ prevArrow: jsxRuntime.jsx(Slider.PrevButton, { isBright: true }), nextArrow: jsxRuntime.jsx(Slider.NextButton, { isBright: true }), onSlideChange: slideChange, initialSlide: selectedImageIndex }, { children: thumbnails.map((item) => (jsxRuntime.jsxs(Slider.Slide, { children: [item.type.includes("image") && (jsxRuntime.jsx("img", { src: item.url
|
|
4901
|
+
return (jsxRuntime.jsxs(Lightbox, Object.assign({ onClose: onClose }, { children: [jsxRuntime.jsx(Lightbox.Header, { children: header }), jsxRuntime.jsxs(Lightbox.Body, { children: [jsxRuntime.jsx(Lightbox.Body.Main, Object.assign({ style: { flex: details ? 2 : 3 } }, { children: jsxRuntime.jsx(Slider, Object.assign({ prevArrow: jsxRuntime.jsx(Slider.PrevButton, { isBright: true }), nextArrow: jsxRuntime.jsx(Slider.NextButton, { isBright: true }), onSlideChange: slideChange, initialSlide: selectedImageIndex }, { children: thumbnails.map((item) => (jsxRuntime.jsxs(Slider.Slide, { children: [item.type.includes("image") && (jsxRuntime.jsx("img", { src: item.url, alt: `media ${item.name}`, style: { maxHeight: "100%", height: "auto" } })), item.type.includes("video") && item.url && (jsxRuntime.jsx(Player, { ref: (ref) => {
|
|
4723
4902
|
videoRefs.current.push(ref);
|
|
4724
|
-
}, url: item.url
|
|
4903
|
+
}, url: item.url }))] }, item.id))) })) })), details && (jsxRuntime.jsx(Lightbox.Body.Details, Object.assign({ style: { flex: 1 } }, { children: details })))] }), jsxRuntime.jsx(Lightbox.Close, { "aria-label": "Close modal" })] })));
|
|
4725
4904
|
};
|
|
4726
4905
|
|
|
4727
4906
|
const ChatBoxContainer = styled__default["default"].div `
|
|
@@ -4768,9 +4947,7 @@ const CommentBox = (_a) => {
|
|
|
4768
4947
|
}
|
|
4769
4948
|
});
|
|
4770
4949
|
}, [videoRefs]);
|
|
4771
|
-
const handleOpenLightbox = (
|
|
4772
|
-
if (!file)
|
|
4773
|
-
throw Error("Error with the image");
|
|
4950
|
+
const handleOpenLightbox = (index) => {
|
|
4774
4951
|
setSelectedImageIndex(index);
|
|
4775
4952
|
setIsOpen(true);
|
|
4776
4953
|
};
|
|
@@ -4803,6 +4980,29 @@ const CommentBox = (_a) => {
|
|
|
4803
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 })] }));
|
|
4804
4981
|
};
|
|
4805
4982
|
|
|
4983
|
+
const UgGrid = styled__default["default"](reactGrid.Grid) `
|
|
4984
|
+
padding-left: 0;
|
|
4985
|
+
padding-right: 0;
|
|
4986
|
+
`;
|
|
4987
|
+
/**
|
|
4988
|
+
* The Grid component is a framework for building modular layouts.
|
|
4989
|
+
* <hr>
|
|
4990
|
+
* Used for this:
|
|
4991
|
+
- To structure the layout of a page
|
|
4992
|
+
*/
|
|
4993
|
+
const Grid = (props) => jsxRuntime.jsx(UgGrid, Object.assign({}, props));
|
|
4994
|
+
|
|
4995
|
+
const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props));
|
|
4996
|
+
|
|
4997
|
+
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
4998
|
+
margin-bottom: ${theme.space.lg};
|
|
4999
|
+
|
|
5000
|
+
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
5001
|
+
margin-bottom: ${theme.space.md};
|
|
5002
|
+
}
|
|
5003
|
+
`;
|
|
5004
|
+
const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
|
|
5005
|
+
|
|
4806
5006
|
const CommentCard = styled.styled(Card) `
|
|
4807
5007
|
padding: ${({ theme }) => `${theme.space.base * 3}px ${theme.space.sm}`};
|
|
4808
5008
|
background-color: ${({ theme }) => theme.palette.grey[100]};
|
|
@@ -4848,9 +5048,7 @@ const Comment = ({ author, message, children, date, media = [], header, }) => {
|
|
|
4848
5048
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
4849
5049
|
const [selectedImageIndex, setSelectedImageIndex] = React.useState(0);
|
|
4850
5050
|
const ext = editorExtensions({ mentionableUsers });
|
|
4851
|
-
const handleClickThumbnail = (
|
|
4852
|
-
if (!file)
|
|
4853
|
-
throw Error("Error with the image");
|
|
5051
|
+
const handleClickThumbnail = (index) => {
|
|
4854
5052
|
setSelectedImageIndex(index);
|
|
4855
5053
|
setIsOpen(true);
|
|
4856
5054
|
};
|
|
@@ -4875,10 +5073,11 @@ const Comment = ({ author, message, children, date, media = [], header, }) => {
|
|
|
4875
5073
|
ed.setOptions({
|
|
4876
5074
|
editable: false,
|
|
4877
5075
|
});
|
|
4878
|
-
return (jsxRuntime.jsxs(CommentCard, { children: [jsxRuntime.jsxs(AuthorContainer, { children: [jsxRuntime.jsx(Avatar, Object.assign({ avatarType: (_a = author.avatarType) !== null && _a !== void 0 ? _a : "text", style: { flexShrink: 0 } }, { children: author.avatar })), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs(CommentTitle, { children: [(_b = author.name) !== null && _b !== void 0 ? _b : "User", " ", jsxRuntime.jsx(CommentDate, { children: date })] }), jsxRuntime.jsx(ReadOnly, { children: jsxRuntime.jsx(EditorContainer$1, Object.assign({ editable: false }, { children: jsxRuntime.jsx(react.EditorContent, { editor: ed }) })) })] })] }), jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: media.map((file, index) => (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 4, className: "flex-3-sm" }, { children: jsxRuntime.jsx(Thumbnail, { src: file.url
|
|
4879
|
-
handleClickThumbnail(
|
|
5076
|
+
return (jsxRuntime.jsxs(CommentCard, { children: [jsxRuntime.jsxs(AuthorContainer, { children: [jsxRuntime.jsx(Avatar, Object.assign({ avatarType: (_a = author.avatarType) !== null && _a !== void 0 ? _a : "text", style: { flexShrink: 0 } }, { children: author.avatar })), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs(CommentTitle, { children: [(_b = author.name) !== null && _b !== void 0 ? _b : "User", " ", jsxRuntime.jsx(CommentDate, { children: date })] }), jsxRuntime.jsx(ReadOnly, { children: jsxRuntime.jsx(EditorContainer$1, Object.assign({ editable: false }, { children: jsxRuntime.jsx(react.EditorContent, { editor: ed }) })) })] })] }), jsxRuntime.jsx(Grid, { children: jsxRuntime.jsx(Row$1, Object.assign({ className: "responsive-container" }, { children: media.map((file, index) => (jsxRuntime.jsx(Col, Object.assign({ xs: 12, sm: 4, className: "flex-3-sm" }, { children: jsxRuntime.jsx(Thumbnail, { src: file.url, type: file.type, showX: false, isLoadingMedia: false, clickThumbnail: () => {
|
|
5077
|
+
handleClickThumbnail(index);
|
|
4880
5078
|
} }) }), index))) })) }), jsxRuntime.jsx(MediaLightBox, { isOpen: isOpen, header: jsxRuntime.jsxs(reactTypography.MD, Object.assign({ isBold: true }, { children: [jsxRuntime.jsx(Grey600Span, { children: header && header.title }), header && header.message && (jsxRuntime.jsxs(Grey800Span, { children: [" | ", header.message] }))] })), onClose: closeLightbox, slideChange: slideChange, selectedImageIndex: selectedImageIndex, thumbnails: media, videoRefs: videoRefs, details: jsxRuntime.jsx(Comment, Object.assign({ header: header, author: {
|
|
4881
5079
|
avatar: author.avatar,
|
|
5080
|
+
avatarType: author.avatarType,
|
|
4882
5081
|
name: author.name,
|
|
4883
5082
|
}, date: date, message: message }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("br", {}) }) })) }), jsxRuntime.jsx(Footer$2, { children: children })] }));
|
|
4884
5083
|
};
|
|
@@ -4902,7 +5101,7 @@ Chat.Input = CommentBox;
|
|
|
4902
5101
|
Chat.Footer = ChatFooter;
|
|
4903
5102
|
|
|
4904
5103
|
var _circle;
|
|
4905
|
-
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (
|
|
5104
|
+
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); }
|
|
4906
5105
|
const SvgCircleFullFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
4907
5106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4908
5107
|
width: 16,
|
|
@@ -5330,7 +5529,7 @@ const Hint = styled__default["default"](reactForms.Hint) ``;
|
|
|
5330
5529
|
const Input = React.forwardRef((props, ref) => jsxRuntime.jsx(UgInput, Object.assign({ ref: ref }, props)));
|
|
5331
5530
|
|
|
5332
5531
|
var _g;
|
|
5333
|
-
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (
|
|
5532
|
+
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); }
|
|
5334
5533
|
const SvgNotesStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
5335
5534
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5336
5535
|
width: 16,
|
|
@@ -5450,7 +5649,7 @@ const UgRadio = styled__default["default"](reactForms.Radio) ``;
|
|
|
5450
5649
|
const Radio = (props) => jsxRuntime.jsx(UgRadio, Object.assign({}, props));
|
|
5451
5650
|
|
|
5452
5651
|
var _path$b;
|
|
5453
|
-
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (
|
|
5652
|
+
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); }
|
|
5454
5653
|
const SvgCheckLg = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
5455
5654
|
width: 16,
|
|
5456
5655
|
height: 16,
|
|
@@ -5538,9 +5737,10 @@ const useHighlightContext = () => {
|
|
|
5538
5737
|
};
|
|
5539
5738
|
|
|
5540
5739
|
const StyledSearchWord = styled__default["default"].span `
|
|
5541
|
-
background-color: ${({ theme }) => theme.palette.product.talk};
|
|
5542
|
-
color: ${({ theme }) => theme.palette.grey[700]}
|
|
5543
|
-
|
|
5740
|
+
background-color: ${({ theme }) => theme.palette.product.talk};
|
|
5741
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
5742
|
+
`;
|
|
5743
|
+
const Searchable = ({ text, }) => {
|
|
5544
5744
|
const { searchTerm } = useHighlightContext();
|
|
5545
5745
|
if (searchTerm) {
|
|
5546
5746
|
const parts = text.split(new RegExp(`(${searchTerm})`, "gi"));
|
|
@@ -5549,66 +5749,140 @@ const Searchable = ({ start, text, }) => {
|
|
|
5549
5749
|
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: text });
|
|
5550
5750
|
};
|
|
5551
5751
|
|
|
5552
|
-
const
|
|
5752
|
+
const CreateObservationButton = styled.styled(Button) `
|
|
5753
|
+
user-select: none;
|
|
5754
|
+
position: absolute;
|
|
5755
|
+
left: ${({ position: { x } }) => x}px;
|
|
5756
|
+
top: ${({ position: { y } }) => y}px;
|
|
5757
|
+
transform: translate(-50%, 0);
|
|
5758
|
+
z-index: ${({ theme }) => theme.levels.front};
|
|
5759
|
+
`;
|
|
5760
|
+
|
|
5761
|
+
const getFocusedObs = (observations) => {
|
|
5762
|
+
return observations.find((obs) => obs.isFocused);
|
|
5763
|
+
};
|
|
5764
|
+
const StyledWord = styled__default["default"].div `
|
|
5765
|
+
display: inline-block;
|
|
5553
5766
|
font-size: ${({ theme, size }) => theme.fontSizes[size !== null && size !== void 0 ? size : "md"]};
|
|
5554
5767
|
padding: ${({ theme }) => theme.space.xxs} 0;
|
|
5768
|
+
position: relative;
|
|
5769
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
5770
|
+
white-space: pre;
|
|
5555
5771
|
|
|
5556
|
-
${({
|
|
5557
|
-
var _a
|
|
5558
|
-
return
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
color: ${(_b = observation.color) !== null && _b !== void 0 ? _b : "white"};
|
|
5772
|
+
${({ observations, theme }) => {
|
|
5773
|
+
var _a;
|
|
5774
|
+
return observations &&
|
|
5775
|
+
observations.length > 0 &&
|
|
5776
|
+
`
|
|
5777
|
+
color: ${(_a = observations[observations.length - 1].color) !== null && _a !== void 0 ? _a : theme.palette.grey[600]};
|
|
5563
5778
|
box-sizing: border-box;
|
|
5779
|
+
font-weight: ${getFocusedObs(observations)
|
|
5780
|
+
? theme.fontWeights.extrabold
|
|
5781
|
+
: theme.fontWeights.semibold};
|
|
5782
|
+
font-style: ${getFocusedObs(observations) ? "italic" : "normal"};
|
|
5783
|
+
z-index: 1;
|
|
5564
5784
|
&:focus {
|
|
5565
5785
|
outline: none;
|
|
5566
5786
|
}
|
|
5567
|
-
|
|
5568
|
-
+ span:not([observation]) {
|
|
5569
|
-
margin-left: 2px;
|
|
5570
|
-
}
|
|
5571
5787
|
`;
|
|
5572
5788
|
}}
|
|
5573
5789
|
`;
|
|
5574
5790
|
const ActiveWord = styled__default["default"].span `
|
|
5575
|
-
|
|
5576
|
-
|
|
5791
|
+
position: relative;
|
|
5792
|
+
z-index: 2;
|
|
5793
|
+
background-color: ${({ theme }) => getColor(theme.palette.fuschia, 400, undefined, 0.4)};
|
|
5577
5794
|
`;
|
|
5578
5795
|
const WordsContainer = styled__default["default"].div `
|
|
5579
5796
|
box-sizing: border-box;
|
|
5580
5797
|
${StyledWord}, span {
|
|
5581
5798
|
&::selection {
|
|
5582
|
-
background-color: ${({ theme }) => getColor(theme.palette.
|
|
5799
|
+
background-color: ${({ theme }) => getColor(theme.palette.grey, 400, undefined, 0.5)};
|
|
5583
5800
|
}
|
|
5584
5801
|
}
|
|
5585
5802
|
`;
|
|
5803
|
+
const Layer = styled__default["default"].div `
|
|
5804
|
+
position: absolute;
|
|
5805
|
+
top: 0;
|
|
5806
|
+
left: 0;
|
|
5807
|
+
width: 100%;
|
|
5808
|
+
height: 100%;
|
|
5809
|
+
z-index: 0;
|
|
5810
|
+
background-color: ${({ color }) => getColor(color, undefined, undefined, 0.2)};
|
|
5811
|
+
`;
|
|
5586
5812
|
/**
|
|
5587
5813
|
* Use Highlight to use highlight interation on any text element
|
|
5588
5814
|
*/
|
|
5589
5815
|
const Highlight = (props) => {
|
|
5816
|
+
var _a;
|
|
5817
|
+
const { onSelectionButtonClick, search, i18n, children } = props;
|
|
5590
5818
|
const ref = React.useRef(null);
|
|
5819
|
+
const [isSelecting, setIsSelecting] = React.useState(false);
|
|
5820
|
+
const [position, setPosition] = React.useState();
|
|
5821
|
+
const [selection, setSelection] = React.useState();
|
|
5822
|
+
const activeSelection = document.getSelection();
|
|
5823
|
+
const extractText = (selection) => {
|
|
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
|
+
};
|
|
5591
5838
|
const handleSelectionChange = React.useCallback(() => {
|
|
5592
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5839
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5840
|
+
if (activeSelection && activeSelection.toString().length > 0) {
|
|
5841
|
+
// Extract the text from the selection cleaning unselectable items
|
|
5842
|
+
const text = extractText(activeSelection);
|
|
5843
|
+
if (!text)
|
|
5844
|
+
return;
|
|
5845
|
+
const anchorNode = (_a = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
5846
|
+
const focusNode = (_b = activeSelection === null || activeSelection === void 0 ? void 0 : activeSelection.focusNode) === null || _b === void 0 ? void 0 : _b.parentElement;
|
|
5847
|
+
if (anchorNode &&
|
|
5848
|
+
focusNode &&
|
|
5849
|
+
((_c = ref.current) === null || _c === void 0 ? void 0 : _c.contains(anchorNode)) && // Selection starts inside the ref
|
|
5850
|
+
((_d = ref.current) === null || _d === void 0 ? void 0 : _d.contains(focusNode)) // Selection ends inside the ref
|
|
5851
|
+
) {
|
|
5852
|
+
if (onSelectionButtonClick) {
|
|
5853
|
+
setIsSelecting(true);
|
|
5854
|
+
const range = activeSelection.getRangeAt(0);
|
|
5855
|
+
const rects = range.getClientRects();
|
|
5856
|
+
const lastRect = rects[rects.length - 1];
|
|
5857
|
+
const containerRect = ref && ref.current ? ref.current.getBoundingClientRect() : null;
|
|
5858
|
+
if (!lastRect || !containerRect)
|
|
5859
|
+
return;
|
|
5860
|
+
const relativeY = lastRect.bottom - containerRect.top + ref.current.scrollTop;
|
|
5861
|
+
const relativeX = lastRect.right - containerRect.left + ref.current.scrollLeft;
|
|
5862
|
+
if (relativeY > 0 || relativeX > 0)
|
|
5863
|
+
// Fix to avoid the button to be placed sometimes at the top left corner of the screen (X: 0, Y: 0)
|
|
5864
|
+
setPosition({
|
|
5865
|
+
x: relativeX,
|
|
5866
|
+
y: relativeY + 15,
|
|
5867
|
+
});
|
|
5868
|
+
}
|
|
5869
|
+
else {
|
|
5870
|
+
setIsSelecting(false);
|
|
5871
|
+
}
|
|
5872
|
+
const selectionPart = {
|
|
5873
|
+
from: Math.min(Number.parseFloat((_e = anchorNode.getAttribute("data-start")) !== null && _e !== void 0 ? _e : "0"), Number.parseFloat((_f = focusNode.getAttribute("data-start")) !== null && _f !== void 0 ? _f : "0")),
|
|
5874
|
+
to: Math.max(Number.parseFloat((_g = anchorNode.getAttribute("data-end")) !== null && _g !== void 0 ? _g : "0"), Number.parseFloat((_h = focusNode.getAttribute("data-end")) !== null && _h !== void 0 ? _h : "0")),
|
|
5875
|
+
};
|
|
5876
|
+
setSelection(Object.assign(Object.assign({}, selectionPart), { text }));
|
|
5877
|
+
}
|
|
5878
|
+
else {
|
|
5879
|
+
setIsSelecting(false);
|
|
5880
|
+
}
|
|
5597
5881
|
}
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
if (anchorNode &&
|
|
5601
|
-
focusNode &&
|
|
5602
|
-
((_c = ref.current) === null || _c === void 0 ? void 0 : _c.contains(anchorNode)) && // Selection starts inside the ref
|
|
5603
|
-
((_d = ref.current) === null || _d === void 0 ? void 0 : _d.contains(focusNode)) // Selection ends inside the ref
|
|
5604
|
-
) {
|
|
5605
|
-
const selectionPart = {
|
|
5606
|
-
from: Math.min(Number.parseFloat((_e = anchorNode.getAttribute("data-start")) !== null && _e !== void 0 ? _e : "0"), Number.parseFloat((_f = focusNode.getAttribute("data-start")) !== null && _f !== void 0 ? _f : "0")),
|
|
5607
|
-
to: Math.max(Number.parseFloat((_g = anchorNode.getAttribute("data-end")) !== null && _g !== void 0 ? _g : "0"), Number.parseFloat((_h = focusNode.getAttribute("data-end")) !== null && _h !== void 0 ? _h : "0")),
|
|
5608
|
-
};
|
|
5609
|
-
(_j = props === null || props === void 0 ? void 0 : props.handleSelection) === null || _j === void 0 ? void 0 : _j.call(props, Object.assign(Object.assign({}, selectionPart), { text }));
|
|
5882
|
+
else {
|
|
5883
|
+
setIsSelecting(false);
|
|
5610
5884
|
}
|
|
5611
|
-
}, [
|
|
5885
|
+
}, [onSelectionButtonClick, activeSelection]);
|
|
5612
5886
|
React.useEffect(() => {
|
|
5613
5887
|
if (ref.current === null)
|
|
5614
5888
|
return;
|
|
@@ -5617,16 +5891,30 @@ const Highlight = (props) => {
|
|
|
5617
5891
|
document.removeEventListener("selectionchange", handleSelectionChange);
|
|
5618
5892
|
};
|
|
5619
5893
|
}, [ref, props, handleSelectionChange]);
|
|
5620
|
-
return (jsxRuntime.
|
|
5894
|
+
return (jsxRuntime.jsxs(HighlightContextProvider, Object.assign({ term: search }, { children: [jsxRuntime.jsx(WordsContainer, Object.assign({ ref: ref }, { children: children })), onSelectionButtonClick && isSelecting && selection && (jsxRuntime.jsxs(CreateObservationButton, Object.assign({ isAccent: true, isPrimary: true, position: position !== null && position !== void 0 ? position : {
|
|
5895
|
+
x: 0,
|
|
5896
|
+
y: 0,
|
|
5897
|
+
}, 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"] })))] })));
|
|
5621
5898
|
};
|
|
5622
5899
|
const Word = (props) => {
|
|
5623
|
-
var _a;
|
|
5624
5900
|
const isActive = props.currentTime &&
|
|
5625
5901
|
props.currentTime >= props.start &&
|
|
5626
5902
|
props.currentTime < props.end;
|
|
5627
|
-
//
|
|
5628
|
-
const
|
|
5629
|
-
|
|
5903
|
+
// Are there any observations containing this word?
|
|
5904
|
+
const foundObservations = React.useMemo(() => {
|
|
5905
|
+
var _a, _b;
|
|
5906
|
+
return (_b = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.filter((obs) => Number(props.start.toFixed(8)) >= Number(obs.start.toFixed(8)) &&
|
|
5907
|
+
Number(props.end.toFixed(8)) <= Number(obs.end.toFixed(8)))) !== null && _b !== void 0 ? _b : [];
|
|
5908
|
+
}, [props.observations, props.start, props.end]);
|
|
5909
|
+
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
|
+
foundObservations.map((obs) => {
|
|
5911
|
+
var _a;
|
|
5912
|
+
return (jsxRuntime.jsx(Layer, { color: (_a = obs.hue) !== null && _a !== void 0 ? _a : theme.palette.grey[600] }, obs.id));
|
|
5913
|
+
}), isActive ? (jsxRuntime.jsx(ActiveWord, Object.assign({ "data-start": props.start, "data-end": props.end }, { children: jsxRuntime.jsx(Searchable, { text: props.text }) }))) : (jsxRuntime.jsx(Searchable, { text: props.text })), " "] }))), [props, foundObservations, isActive]);
|
|
5914
|
+
if (props.tooltipContent !== undefined && foundObservations.length > 0) {
|
|
5915
|
+
return (jsxRuntime.jsx(Tooltip, Object.assign({ content: props.tooltipContent(foundObservations), isTransparent: true }, { children: ObsWord })));
|
|
5916
|
+
}
|
|
5917
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: ObsWord });
|
|
5630
5918
|
};
|
|
5631
5919
|
Highlight.Word = Word;
|
|
5632
5920
|
|
|
@@ -5703,7 +5991,7 @@ const Logo = (props) => {
|
|
|
5703
5991
|
};
|
|
5704
5992
|
|
|
5705
5993
|
var _path$a;
|
|
5706
|
-
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (
|
|
5994
|
+
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); }
|
|
5707
5995
|
const SvgPlus = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
5708
5996
|
width: 16,
|
|
5709
5997
|
height: 16,
|
|
@@ -5842,7 +6130,7 @@ const HeaderItemText = (props) => jsxRuntime.jsx(UgHeaderItemText, Object.assign
|
|
|
5842
6130
|
const HeaderItemIcon = (props) => (jsxRuntime.jsx(reactChrome.HeaderItemIcon, Object.assign({}, props)));
|
|
5843
6131
|
|
|
5844
6132
|
var _path$9;
|
|
5845
|
-
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (
|
|
6133
|
+
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); }
|
|
5846
6134
|
const SvgMenuStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
5847
6135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5848
6136
|
width: 16,
|
|
@@ -5932,7 +6220,7 @@ Header.HeaderItemText = HeaderItemText;
|
|
|
5932
6220
|
Header.HeaderItemIcon = HeaderItemIcon;
|
|
5933
6221
|
|
|
5934
6222
|
var _path$8;
|
|
5935
|
-
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (
|
|
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); }
|
|
5936
6224
|
const SvgChevronDownStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
5937
6225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5938
6226
|
width: 16,
|
|
@@ -6247,7 +6535,7 @@ PageHeader.Meta = MainMeta;
|
|
|
6247
6535
|
PageHeader.Footer = StyledFooter;
|
|
6248
6536
|
|
|
6249
6537
|
var _path$7, _path2;
|
|
6250
|
-
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (
|
|
6538
|
+
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); }
|
|
6251
6539
|
const SvgExit = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
6252
6540
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6253
6541
|
width: 16,
|
|
@@ -6265,7 +6553,7 @@ const SvgExit = props => /*#__PURE__*/React__namespace.createElement("svg", _ext
|
|
|
6265
6553
|
})));
|
|
6266
6554
|
|
|
6267
6555
|
var _path$6;
|
|
6268
|
-
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (
|
|
6556
|
+
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); }
|
|
6269
6557
|
const SvgThumbsUp = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
6270
6558
|
width: 16,
|
|
6271
6559
|
height: 16,
|
|
@@ -6280,7 +6568,7 @@ const SvgThumbsUp = props => /*#__PURE__*/React__namespace.createElement("svg",
|
|
|
6280
6568
|
})));
|
|
6281
6569
|
|
|
6282
6570
|
var _rect, _path$5;
|
|
6283
|
-
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (
|
|
6571
|
+
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); }
|
|
6284
6572
|
const SvgLockLockedFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
6285
6573
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6286
6574
|
width: 16,
|
|
@@ -6407,7 +6695,7 @@ const MenuItem = (_a) => {
|
|
|
6407
6695
|
};
|
|
6408
6696
|
|
|
6409
6697
|
var _path$4;
|
|
6410
|
-
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (
|
|
6698
|
+
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); }
|
|
6411
6699
|
const SvgQuestionMark = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
6412
6700
|
width: 16,
|
|
6413
6701
|
height: 16,
|
|
@@ -6421,7 +6709,7 @@ const SvgQuestionMark = props => /*#__PURE__*/React__namespace.createElement("sv
|
|
|
6421
6709
|
})));
|
|
6422
6710
|
|
|
6423
6711
|
var _path$3;
|
|
6424
|
-
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (
|
|
6712
|
+
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); }
|
|
6425
6713
|
const SvgCopy = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
6426
6714
|
width: 12,
|
|
6427
6715
|
height: 16,
|
|
@@ -6436,7 +6724,7 @@ const SvgCopy = props => /*#__PURE__*/React__namespace.createElement("svg", _ext
|
|
|
6436
6724
|
})));
|
|
6437
6725
|
|
|
6438
6726
|
var _path$2;
|
|
6439
|
-
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (
|
|
6727
|
+
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); }
|
|
6440
6728
|
const SvgInfoFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
6441
6729
|
width: 16,
|
|
6442
6730
|
height: 16,
|
|
@@ -6528,11 +6816,11 @@ const HelpItem = (props) => {
|
|
|
6528
6816
|
var _a;
|
|
6529
6817
|
copyToClipBoard();
|
|
6530
6818
|
(_a = props.onCopyEmail) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
6531
|
-
}, size: "small" }, { children: [jsxRuntime.jsx(StyledButton.StartIcon, { children: jsxRuntime.jsx(SvgCopy, {}) }), (_b = props.copyLabel) !== null && _b !== void 0 ? _b : "Copy"] }))] })] })] }), props.chatSupport && (jsxRuntime.jsxs(Footer, { children: [jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledFooterButton, Object.assign({ isStretched: true, isBasic: true, onClick: props.toggleChat, style: { paddingLeft: theme.space.xxs } }, { children: [jsxRuntime.jsx(
|
|
6819
|
+
}, size: "small" }, { children: [jsxRuntime.jsx(StyledButton.StartIcon, { children: jsxRuntime.jsx(SvgCopy, {}) }), (_b = props.copyLabel) !== null && _b !== void 0 ? _b : "Copy"] }))] })] })] }), props.chatSupport && (jsxRuntime.jsxs(Footer, { children: [jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledFooterButton, Object.assign({ isStretched: true, isBasic: true, onClick: props.toggleChat, style: { paddingLeft: theme.space.xxs } }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgInfoFill, { color: theme.palette.blue[600] }) }), (_c = props.chatSupportLabel) !== null && _c !== void 0 ? _c : "Report a technical issue"] }))] }))] }));
|
|
6532
6820
|
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 })) }));
|
|
6533
6821
|
};
|
|
6534
6822
|
|
|
6535
|
-
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (
|
|
6823
|
+
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); }
|
|
6536
6824
|
const SvgEmpty = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
6537
6825
|
width: 16,
|
|
6538
6826
|
height: 16,
|
|
@@ -6542,7 +6830,7 @@ const SvgEmpty = props => /*#__PURE__*/React__namespace.createElement("svg", _ex
|
|
|
6542
6830
|
}, props));
|
|
6543
6831
|
|
|
6544
6832
|
var _path$1;
|
|
6545
|
-
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (
|
|
6833
|
+
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); }
|
|
6546
6834
|
const SvgTranslationExists = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
6547
6835
|
width: 16,
|
|
6548
6836
|
height: 16,
|
|
@@ -6561,14 +6849,14 @@ const StyledBody$2 = styled__default["default"].div `
|
|
|
6561
6849
|
`;
|
|
6562
6850
|
const StyledButtonContainer = styled__default["default"].div `
|
|
6563
6851
|
${flexStart}
|
|
6564
|
-
& button {
|
|
6852
|
+
& button {
|
|
6565
6853
|
justify-content: flex-start;
|
|
6566
6854
|
}
|
|
6567
6855
|
`;
|
|
6568
6856
|
const LanguageItem = (props) => {
|
|
6569
6857
|
var _a;
|
|
6570
6858
|
const content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, Object.assign({ onClick: () => props.setActive(""), isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsx(StyledBody$2, { children: jsxRuntime.jsx(StyledButtonContainer, { children: Object.keys(props.languages).map((key) => (jsxRuntime.jsxs(Button, Object.assign({ isBasic: true, isStretched: true, value: key, onClick: () => props.onSelectLanguage(key) }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: props.currentLanguage === key ? jsxRuntime.jsx(SvgCheckLg, {}) : jsxRuntime.jsx(SvgEmpty, {}) }), jsxRuntime.jsx(Span, Object.assign({ isBold: props.currentLanguage === key }, { children: props.languages[key].label }))] })))) }) })] }));
|
|
6571
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, Object.assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgTranslationExists, { fill: theme.palette.blue[600] }) }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.title, jsxRuntime.jsxs(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: [(_a = props.currentLanguageLabel) !== null && _a !== void 0 ? _a : "Now:", " " + props.languages[props.currentLanguage].label] }))] }) })) }));
|
|
6859
|
+
return props.disabled ? null : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, Object.assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgTranslationExists, { fill: theme.palette.blue[600] }) }, { children: jsxRuntime.jsxs(MenuItemBody, { children: [props.title, jsxRuntime.jsxs(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: [(_a = props.currentLanguageLabel) !== null && _a !== void 0 ? _a : "Now:", " " + props.languages[props.currentLanguage].label] }))] }) })) }));
|
|
6572
6860
|
};
|
|
6573
6861
|
|
|
6574
6862
|
const ProfileContainer = styled__default["default"].div `
|
|
@@ -6593,7 +6881,7 @@ const UserContainer = (props) => {
|
|
|
6593
6881
|
};
|
|
6594
6882
|
|
|
6595
6883
|
var _path;
|
|
6596
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
6884
|
+
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); }
|
|
6597
6885
|
const SvgGearFill = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
6598
6886
|
width: 16,
|
|
6599
6887
|
height: 16,
|
|
@@ -6625,12 +6913,12 @@ const SettingsOutroText = styled__default["default"](reactNotifications.Paragrap
|
|
|
6625
6913
|
`;
|
|
6626
6914
|
const SettingsItem = (props) => {
|
|
6627
6915
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6628
|
-
const [value, setValue] = React.useState(props.settingValue || 0);
|
|
6916
|
+
const [value, setValue] = React.useState(props.settingValue || "0");
|
|
6629
6917
|
const onToggleSettings = (value) => {
|
|
6630
6918
|
setValue(value);
|
|
6631
6919
|
props.onSetSettings && props.onSetSettings(value);
|
|
6632
6920
|
};
|
|
6633
|
-
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
|
|
6921
|
+
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"
|
|
6634
6922
|
? (_e = (_d = props.i18n) === null || _d === void 0 ? void 0 : _d.settingsToggle) === null || _e === void 0 ? void 0 : _e.on
|
|
6635
6923
|
: (_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 }) })] }))] })] }));
|
|
6636
6924
|
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 })) }));
|
|
@@ -6643,6 +6931,7 @@ const StyledList = styled__default["default"].ul `
|
|
|
6643
6931
|
const UserMenu = (props) => {
|
|
6644
6932
|
var _a, _b, _c, _d, _e, _f;
|
|
6645
6933
|
const [item, setActiveItem] = React.useState("");
|
|
6934
|
+
const disableMenuLanguageSettings = props.disableMenuLanguageSettings || false;
|
|
6646
6935
|
const toggleItem = (item) => {
|
|
6647
6936
|
setActiveItem(item);
|
|
6648
6937
|
};
|
|
@@ -6653,7 +6942,7 @@ const UserMenu = (props) => {
|
|
|
6653
6942
|
settingsIntroText: (_c = props.i18n) === null || _c === void 0 ? void 0 : _c.settingsIntroText,
|
|
6654
6943
|
settingsOutroText: (_d = props.i18n) === null || _d === void 0 ? void 0 : _d.settingsOutroText,
|
|
6655
6944
|
settingsToggle: (_e = props.i18n) === null || _e === void 0 ? void 0 : _e.settingsToggle,
|
|
6656
|
-
}, onSetSettings: props.onSetSettings }), jsxRuntime.jsx(LanguageItem, { title: props.languageTitle || "Change Language", value: "language-selector", selectedItem: item, setActive: (i) => toggleItem(i), languages: props.languages, currentLanguage: props.currentLanguage, currentLanguageLabel: props.currentLanguageLabel, onSelectLanguage: (lang) => props.onSelectLanguage(lang) }), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgLockLockedFill, { color: theme.palette.blue[600] }), setActive: () => {
|
|
6945
|
+
}, onSetSettings: props.onSetSettings }), jsxRuntime.jsx(LanguageItem, { disabled: disableMenuLanguageSettings, title: props.languageTitle || "Change Language", value: "language-selector", selectedItem: item, setActive: (i) => toggleItem(i), languages: props.languages, currentLanguage: props.currentLanguage, currentLanguageLabel: props.currentLanguageLabel, onSelectLanguage: (lang) => props.onSelectLanguage(lang) }), jsxRuntime.jsx(MenuItem, Object.assign({ selectedItem: item, icon: jsxRuntime.jsx(SvgLockLockedFill, { color: theme.palette.blue[600] }), setActive: () => {
|
|
6657
6946
|
if (document.querySelector(".iubenda-cs-preferences-link")) {
|
|
6658
6947
|
const iubendaBtn = document.querySelector(".iubenda-cs-preferences-link");
|
|
6659
6948
|
if (iubendaBtn) {
|
|
@@ -7052,6 +7341,10 @@ Object.defineProperty(exports, 'ModalClose', {
|
|
|
7052
7341
|
enumerable: true,
|
|
7053
7342
|
get: function () { return reactModals.Close; }
|
|
7054
7343
|
});
|
|
7344
|
+
Object.defineProperty(exports, 'useVideoContext', {
|
|
7345
|
+
enumerable: true,
|
|
7346
|
+
get: function () { return Video.useVideoContext; }
|
|
7347
|
+
});
|
|
7055
7348
|
exports.Accordion = Accordion;
|
|
7056
7349
|
exports.Alert = Alert;
|
|
7057
7350
|
exports.Anchor = Anchor;
|
|
@@ -7149,6 +7442,7 @@ exports.Pagination = Pagination;
|
|
|
7149
7442
|
exports.Paragraph = Paragraph;
|
|
7150
7443
|
exports.PieChart = PieChart;
|
|
7151
7444
|
exports.Player = Player;
|
|
7445
|
+
exports.PlayerProvider = PlayerProvider;
|
|
7152
7446
|
exports.PreviousItem = PreviousItem;
|
|
7153
7447
|
exports.ProductCard = ProductCard;
|
|
7154
7448
|
exports.ProfileModal = ProfileModal;
|