@agilemotion/oui-react-js 1.6.1 → 1.6.3
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/dist/ApplicationManager.js +698 -421
- package/dist/BasicApp.js +5 -5
- package/dist/BasicAppHome.js +55 -26
- package/dist/DynamicJS.js +147 -65
- package/dist/InteractionPortalApp.css +1 -1
- package/dist/InteractionPortalApp.js +5 -5
- package/dist/InteractionPortalAppHome.js +57 -22
- package/dist/InteractionPortalApp_old.js +107 -61
- package/dist/RestUtils.js +339 -287
- package/dist/TypedValue.js +18 -15
- package/dist/Utils.js +375 -276
- package/dist/WithRouter.js +6 -6
- package/dist/assets/jss/components/authNavbarStyle.js +166 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +168 -169
- package/dist/assets/jss/components/customInputStyle.js +9 -3
- package/dist/assets/jss/components/dropdownStyle.js +69 -69
- package/dist/assets/jss/components/footerStyle.js +19 -13
- package/dist/assets/jss/components/headerLinksStyle.js +45 -48
- package/dist/assets/jss/components/headerStyle.js +68 -65
- package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
- package/dist/assets/jss/components/navbarStyle.js +79 -76
- package/dist/assets/jss/components/sidebarStyle.js +436 -436
- package/dist/assets/jss/components/typographyStyle.js +9 -3
- package/dist/assets/jss/rootStyle.js +96 -81
- package/dist/assets/jss/views/layoutStyle.js +44 -41
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +82 -77
- package/dist/components/AlertBar.js +50 -17
- package/dist/components/AlertItem.js +35 -12
- package/dist/components/AlertTemplate.js +30 -29
- package/dist/components/Button.js +62 -34
- package/dist/components/Calendar.js +140 -91
- package/dist/components/ConfirmationDialog.js +36 -11
- package/dist/components/DataGrid.js +512 -270
- package/dist/components/DataGridColumn.js +47 -22
- package/dist/components/DataGridFilter.js +186 -105
- package/dist/components/DataGridHeading.js +50 -32
- package/dist/components/Dialog.js +90 -35
- package/dist/components/DocumentTemplateDesigner.js +34 -16
- package/dist/components/DocumentTemplateDesignerComponent.js +124 -48
- package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
- package/dist/components/DocumentViewer.js +34 -18
- package/dist/components/DocumentViewerComponent.js +26 -9
- package/dist/components/ElementResizeHandler.js +229 -207
- package/dist/components/FileThumb.js +32 -10
- package/dist/components/Graph.js +153 -85
- package/dist/components/GraphNode.js +58 -38
- package/dist/components/HtmlPanel.js +67 -39
- package/dist/components/Icon.js +206 -166
- package/dist/components/LoadingIndicator.js +3 -3
- package/dist/components/LottieIcon.js +1 -1
- package/dist/components/PopupView.js +39 -19
- package/dist/components/Portlet.js +32 -17
- package/dist/components/RegularButton.js +28 -32
- package/dist/components/SignaturePanel.js +37 -17
- package/dist/components/SocketManager.js +178 -119
- package/dist/components/StepperTitleBar.js +62 -42
- package/dist/components/TabPage.js +30 -25
- package/dist/components/TabPanel.js +86 -33
- package/dist/components/TableCellContent.js +51 -32
- package/dist/components/TemplateDesigner.js +173 -121
- package/dist/components/TemplateItemEventHandler.js +335 -221
- package/dist/components/TemplateTable.js +183 -118
- package/dist/components/TitleBar.js +26 -11
- package/dist/components/Toolbar.js +67 -38
- package/dist/components/Tooltip.js +43 -35
- package/dist/components/Tree.js +85 -44
- package/dist/components/UseIsVisible.js +25 -4
- package/dist/components/card/Card.js +27 -33
- package/dist/components/card/CardAvatar.js +20 -19
- package/dist/components/card/CardBody.js +24 -27
- package/dist/components/card/CardFooter.js +23 -24
- package/dist/components/card/CardHeader.js +24 -27
- package/dist/components/card/CardIcon.js +17 -13
- package/dist/components/card/CardText.js +17 -13
- package/dist/components/customInput/CustomInput.js +22 -36
- package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
- package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
- package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
- package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
- package/dist/components/dashboard/components/Header.js +29 -12
- package/dist/components/dashboard/components/LeftDrawer.js +3 -5
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
- package/dist/components/dashboard/components/portal/Timeline.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.js +5 -11
- package/dist/components/footer/Footer.js +31 -24
- package/dist/components/footer/HomeFooter.js +68 -34
- package/dist/components/form/AddressSearch.js +78 -42
- package/dist/components/form/AutoComplete.js +136 -55
- package/dist/components/form/BaseField.js +108 -56
- package/dist/components/form/Checkbox.js +10 -8
- package/dist/components/form/DatePicker.js +47 -25
- package/dist/components/form/FieldSet.js +217 -84
- package/dist/components/form/Form.js +334 -200
- package/dist/components/form/GridField.js +185 -82
- package/dist/components/form/IconField.js +9 -7
- package/dist/components/form/ImageEditor.js +141 -92
- package/dist/components/form/LabelField.js +12 -10
- package/dist/components/form/LookupField.js +54 -32
- package/dist/components/form/MultiFileUploadField.js +101 -67
- package/dist/components/form/RadioGroup.js +33 -16
- package/dist/components/form/Section.js +84 -34
- package/dist/components/form/SelectItem.js +55 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
- package/dist/components/form/Switch.js +10 -8
- package/dist/components/form/TextField.js +34 -16
- package/dist/components/form/TimePicker.js +19 -15
- package/dist/components/form/TransferList.js +153 -75
- package/dist/components/form/UploadField.js +183 -128
- package/dist/components/grid/GridContainer.js +12 -8
- package/dist/components/grid/GridItem.js +12 -8
- package/dist/components/layout/CollapsiblePanel.js +44 -18
- package/dist/components/layout/Layout.js +81 -40
- package/dist/components/layout/VC.css +1 -1
- package/dist/components/layout/View.js +136 -62
- package/dist/components/layout/ViewContainer.js +13 -11
- package/dist/components/layout/ViewPort.js +25 -10
- package/dist/components/layout/Window.js +87 -53
- package/dist/components/layout/WindowViewPort.js +38 -16
- package/dist/components/media/ClosablePanel.js +7 -7
- package/dist/components/media/LobbyWaitingList.js +7 -9
- package/dist/components/media/MediaSoupHelper.js +379 -187
- package/dist/components/media/SideBarContent.js +22 -14
- package/dist/components/media/SocketRequest.js +5 -1
- package/dist/components/media/SocketResponse.js +5 -1
- package/dist/components/media/Timer.js +35 -15
- package/dist/components/media/Toolbar.css +5 -0
- package/dist/components/media/Toolbar.js +220 -102
- package/dist/components/media/ToolbarButton.js +82 -33
- package/dist/components/media/Toolbar_bck.js +142 -70
- package/dist/components/media/Tracks.js +31 -28
- package/dist/components/media/TrainingRoom.js +284 -121
- package/dist/components/media/Transports.js +27 -24
- package/dist/components/media/VCEventManager.js +95 -31
- package/dist/components/media/VCEventType.js +5 -1
- package/dist/components/media/VCParticipantList.js +40 -14
- package/dist/components/media/VCParticipantListItem.js +92 -41
- package/dist/components/media/VCRoom.js +29 -11
- package/dist/components/media/VCRoomParticipant.js +488 -242
- package/dist/components/media/VCRoomRecorder.js +236 -175
- package/dist/components/media/VCRoomWorkspace.js +505 -245
- package/dist/components/media/Video.js +89 -25
- package/dist/components/media/VideoPlayer.js +56 -22
- package/dist/components/media/chat/ChatRoom.js +255 -132
- package/dist/components/media/chat/ChatRoomItem.js +35 -14
- package/dist/components/media/chat/ChatRoomList.js +43 -13
- package/dist/components/menu/CollapsibleMenu.js +39 -20
- package/dist/components/menu/MenuBars.js +81 -48
- package/dist/components/menu/MenuButton.js +95 -60
- package/dist/components/menu/MenuItem.js +28 -9
- package/dist/components/menu/MenuLink.js +12 -10
- package/dist/components/menu/PopupMenu.js +16 -12
- package/dist/components/navbars/AuthNavbar.js +27 -18
- package/dist/components/navbars/HomeNavbar.js +243 -194
- package/dist/components/navbars/PortalNavbar.js +50 -26
- package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
- package/dist/components/signatures/AlertItem.js +36 -13
- package/dist/components/signatures/Card.js +4 -4
- package/dist/components/signatures/DocumentContainer.js +141 -57
- package/dist/components/signatures/ImageSignatureInput.js +90 -59
- package/dist/components/signatures/MenuButton.js +53 -33
- package/dist/components/signatures/Prompt.js +26 -5
- package/dist/components/signatures/ResponsiveTable.js +302 -197
- package/dist/components/signatures/SearchView.js +77 -36
- package/dist/components/signatures/SignatorySearch.js +30 -10
- package/dist/components/signatures/SignatorySearchForm.js +35 -18
- package/dist/components/signatures/SignatureInput.js +56 -26
- package/dist/components/signatures/SignatureInputProps.js +107 -55
- package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
- package/dist/components/signatures/Toolbar.js +135 -94
- package/dist/components/signatures/ViewUtils.js +273 -224
- package/dist/components/typography/Danger.js +3 -5
- package/dist/components/typography/Info.js +3 -5
- package/dist/components/typography/Link.js +3 -5
- package/dist/event/ActionHandlers.js +57 -43
- package/dist/event/Event.js +16 -13
- package/dist/event/EventListener.js +39 -36
- package/dist/event/EventType.js +5 -1
- package/dist/event/LoadDataActionHandler.js +20 -8
- package/dist/event/Observable.js +323 -142
- package/dist/event/RouteActionHandler.js +139 -125
- package/dist/event/ScriptActionHandler.js +20 -8
- package/dist/event/ServiceCallActionHandler.js +51 -39
- package/dist/event/SignalGraphActionHandler.js +19 -7
- package/dist/js/Addresses.js +38 -24
- package/dist/js/Calendar.js +168 -161
- package/dist/js/DynamicLib.js +14 -11
- package/dist/js/Media.js +213 -120
- package/dist/js/Validators.js +6 -5
- package/dist/js/Windows.js +48 -47
- package/dist/redux/store/ConfigureStore.js +17 -9
- package/dist/redux/store/DashboardStore.js +110 -43
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +59 -20
- package/dist/security/TokenManager.js +44 -30
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +230 -137
- package/dist/view/PortalDashboard.js +4 -4
- package/dist/view/Settings.js +4 -2
- package/dist/view/Views.js +27 -14
- package/dist/view/security/ChangePasswordBasic.js +97 -40
- package/dist/view/security/ForgotPassword.js +59 -22
- package/dist/view/security/ForgotPasswordBasic.js +62 -21
- package/dist/view/security/Login.js +64 -24
- package/dist/view/security/LoginBasic.js +65 -26
- package/dist/view/security/LoginInteractionPortal.js +62 -25
- package/dist/view/security/ResetPassword.js +65 -23
- package/dist/view/security/ResetPasswordBasic.js +91 -37
- package/dist/view/security/Security.js +12 -12
- package/package.json +2 -3
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -115
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
- /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
- /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -43,11 +45,25 @@ var _Observable = _interopRequireDefault(require("../../event/Observable"));
|
|
|
43
45
|
|
|
44
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
47
|
|
|
46
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
48
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
49
|
+
|
|
50
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
51
|
+
|
|
52
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
53
|
+
|
|
54
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
55
|
+
|
|
56
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
47
57
|
|
|
48
|
-
function
|
|
58
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
49
59
|
|
|
50
|
-
|
|
60
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
61
|
+
|
|
62
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
63
|
+
|
|
64
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
65
|
+
|
|
66
|
+
var Status = {
|
|
51
67
|
LOBBY: 'LOBBY',
|
|
52
68
|
SESSION: 'SESSION',
|
|
53
69
|
SESSION_ENDED: 'SESSION_ENDED',
|
|
@@ -55,44 +71,155 @@ const Status = {
|
|
|
55
71
|
CONNECTION_ERROR: 'CONNECTION_ERROR',
|
|
56
72
|
STREAM_ERROR: 'STREAM_ERROR'
|
|
57
73
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
74
|
+
var location = window.location.protocol + '//' + window.location.hostname;
|
|
75
|
+
|
|
76
|
+
var TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
77
|
+
var recordRef = (0, _react.useRef)();
|
|
78
|
+
|
|
79
|
+
var _useState = (0, _react.useState)(null),
|
|
80
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
81
|
+
hasUnreadChats = _useState2[0],
|
|
82
|
+
setHasUnreadChats = _useState2[1];
|
|
83
|
+
|
|
84
|
+
var _useState3 = (0, _react.useState)([]),
|
|
85
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
86
|
+
participants = _useState4[0],
|
|
87
|
+
setParticipants = _useState4[1];
|
|
88
|
+
|
|
89
|
+
var _useState5 = (0, _react.useState)(false),
|
|
90
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
91
|
+
handRaised = _useState6[0],
|
|
92
|
+
setHandRaised = _useState6[1];
|
|
93
|
+
|
|
94
|
+
var _useState7 = (0, _react.useState)(false),
|
|
95
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
96
|
+
isRecording = _useState8[0],
|
|
97
|
+
setIsRecording = _useState8[1];
|
|
98
|
+
|
|
99
|
+
var _useState9 = (0, _react.useState)(props.videoDisabled),
|
|
100
|
+
_useState10 = _slicedToArray(_useState9, 1),
|
|
101
|
+
videoDisabled = _useState10[0];
|
|
102
|
+
|
|
103
|
+
var _useState11 = (0, _react.useState)(props.audioDisabled),
|
|
104
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
105
|
+
audioDisabled = _useState12[0],
|
|
106
|
+
setAudioDisabled = _useState12[1];
|
|
107
|
+
|
|
108
|
+
var _useState13 = (0, _react.useState)(true),
|
|
109
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
110
|
+
videoMuted = _useState14[0],
|
|
111
|
+
setVideoMuted = _useState14[1];
|
|
112
|
+
|
|
113
|
+
var _useState15 = (0, _react.useState)(true),
|
|
114
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
115
|
+
audioMuted = _useState16[0],
|
|
116
|
+
setAudioMuted = _useState16[1];
|
|
117
|
+
|
|
118
|
+
var _useState17 = (0, _react.useState)(null),
|
|
119
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
120
|
+
displayState = _useState18[0],
|
|
121
|
+
setDisplayState = _useState18[1];
|
|
122
|
+
|
|
123
|
+
var _useState19 = (0, _react.useState)(null),
|
|
124
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
125
|
+
roomStatus = _useState20[0],
|
|
126
|
+
setRoomStatus = _useState20[1];
|
|
127
|
+
|
|
128
|
+
var _useState21 = (0, _react.useState)(null),
|
|
129
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
130
|
+
someoneSharing = _useState22[0],
|
|
131
|
+
setSomeoneSharing = _useState22[1];
|
|
132
|
+
|
|
133
|
+
var _useState23 = (0, _react.useState)(false),
|
|
134
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
135
|
+
sideBarOpen = _useState24[0],
|
|
136
|
+
setSideBarOpen = _useState24[1];
|
|
137
|
+
|
|
138
|
+
var _useState25 = (0, _react.useState)(''),
|
|
139
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
140
|
+
sideBarTab = _useState26[0],
|
|
141
|
+
setSideBarTab = _useState26[1];
|
|
142
|
+
|
|
143
|
+
var _useState27 = (0, _react.useState)(false),
|
|
144
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
145
|
+
allUserParticipantsLeft = _useState28[0],
|
|
146
|
+
setAllUserParticipantsLeft = _useState28[1];
|
|
147
|
+
|
|
148
|
+
var _useState29 = (0, _react.useState)([]),
|
|
149
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
150
|
+
lobbyWaitingList = _useState30[0],
|
|
151
|
+
setLobbyWaitingList = _useState30[1];
|
|
152
|
+
|
|
153
|
+
var _useState31 = (0, _react.useState)(false),
|
|
154
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
155
|
+
isHost = _useState32[0],
|
|
156
|
+
setIsHost = _useState32[1];
|
|
157
|
+
|
|
158
|
+
var _useState33 = (0, _react.useState)('DEFAULT'),
|
|
159
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
160
|
+
meetingParticipantGridMode = _useState34[0],
|
|
161
|
+
setMeetingParticipantGridMode = _useState34[1];
|
|
162
|
+
|
|
163
|
+
var _useState35 = (0, _react.useState)(!props.calendarEvent.askToJoin),
|
|
164
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
165
|
+
autoPermit = _useState36[0],
|
|
166
|
+
setAutoPermit = _useState36[1];
|
|
167
|
+
|
|
168
|
+
var _useState37 = (0, _react.useState)(null),
|
|
169
|
+
_useState38 = _slicedToArray(_useState37, 2),
|
|
170
|
+
rtpCapabilities = _useState38[0],
|
|
171
|
+
setRtpCapabilities = _useState38[1];
|
|
172
|
+
|
|
173
|
+
var _useState39 = (0, _react.useState)(null),
|
|
174
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
175
|
+
activityMessage = _useState40[0],
|
|
176
|
+
setActivityMessage = _useState40[1];
|
|
177
|
+
|
|
178
|
+
var _useState41 = (0, _react.useState)(null),
|
|
179
|
+
_useState42 = _slicedToArray(_useState41, 2),
|
|
180
|
+
onloadScreenShareData = _useState42[0],
|
|
181
|
+
setOnloadScreenShareData = _useState42[1];
|
|
182
|
+
|
|
183
|
+
var _useState43 = (0, _react.useState)(null),
|
|
184
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
|
185
|
+
chatMessage = _useState44[0],
|
|
186
|
+
setChatMessage = _useState44[1];
|
|
187
|
+
|
|
188
|
+
var _useState45 = (0, _react.useState)(null),
|
|
189
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
190
|
+
chatSender = _useState46[0],
|
|
191
|
+
setChatSender = _useState46[1];
|
|
192
|
+
|
|
193
|
+
var _useState47 = (0, _react.useState)(null),
|
|
194
|
+
_useState48 = _slicedToArray(_useState47, 2),
|
|
195
|
+
currentUserFullName = _useState48[0],
|
|
196
|
+
setCurrentUserFullName = _useState48[1];
|
|
197
|
+
|
|
198
|
+
var _useState49 = (0, _react.useState)({}),
|
|
199
|
+
_useState50 = _slicedToArray(_useState49, 1),
|
|
200
|
+
eventHandler = _useState50[0];
|
|
201
|
+
|
|
202
|
+
var _useState51 = (0, _react.useState)(null),
|
|
203
|
+
_useState52 = _slicedToArray(_useState51, 2),
|
|
204
|
+
meetingChat = _useState52[0],
|
|
205
|
+
setMeetingChat = _useState52[1];
|
|
206
|
+
|
|
207
|
+
var _React$useState = _react.default.useState(null),
|
|
208
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
209
|
+
screenShared = _React$useState2[0],
|
|
210
|
+
setScreenShared = _React$useState2[1];
|
|
211
|
+
|
|
212
|
+
var _React$useState3 = _react.default.useState(false),
|
|
213
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
214
|
+
startScreenSharing = _React$useState4[0],
|
|
215
|
+
setStartScreenSharing = _React$useState4[1];
|
|
216
|
+
|
|
217
|
+
var _useState53 = (0, _react.useState)([]),
|
|
218
|
+
_useState54 = _slicedToArray(_useState53, 2),
|
|
219
|
+
raisedHands = _useState54[0],
|
|
220
|
+
setRaisedHands = _useState54[1];
|
|
221
|
+
|
|
222
|
+
var handler = function handler() {
|
|
96
223
|
return {
|
|
97
224
|
get id() {
|
|
98
225
|
return 'meeting-room-' + props.calendarEvent.id;
|
|
@@ -102,7 +229,7 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
102
229
|
return participants;
|
|
103
230
|
},
|
|
104
231
|
|
|
105
|
-
on: (eventType, be)
|
|
232
|
+
on: function on(eventType, be) {
|
|
106
233
|
switch (eventType) {
|
|
107
234
|
case _VCEventType.VCEventType.REQUEST_TO_JOIN_MEETING:
|
|
108
235
|
break;
|
|
@@ -138,19 +265,26 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
138
265
|
setScreenShared(false);
|
|
139
266
|
setStartScreenSharing(false);
|
|
140
267
|
break;
|
|
268
|
+
|
|
269
|
+
case _VCEventType.VCEventType.CONSUMER_TRANSPORT_FAILED:
|
|
270
|
+
hangUp();
|
|
271
|
+
alert('Connection error - Please check your network connection and re-join the meeting');
|
|
272
|
+
break;
|
|
141
273
|
}
|
|
142
274
|
}
|
|
143
275
|
};
|
|
144
276
|
};
|
|
145
277
|
|
|
146
|
-
|
|
278
|
+
var onRaiseHand = function onRaiseHand(payload) {
|
|
147
279
|
raisedHands.push(payload.userId);
|
|
148
280
|
setRaisedHands([].concat(raisedHands));
|
|
149
281
|
};
|
|
150
282
|
|
|
151
|
-
|
|
283
|
+
var onLowerHand = function onLowerHand(payload) {
|
|
152
284
|
if (raisedHands.length > 0) {
|
|
153
|
-
|
|
285
|
+
var index = raisedHands.findIndex(function (p) {
|
|
286
|
+
return p === payload.userId;
|
|
287
|
+
});
|
|
154
288
|
|
|
155
289
|
if (index > -1) {
|
|
156
290
|
raisedHands.splice(index, 1);
|
|
@@ -160,17 +294,19 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
160
294
|
setRaisedHands([].concat(raisedHands));
|
|
161
295
|
};
|
|
162
296
|
|
|
163
|
-
|
|
164
|
-
(0, _RestUtils.sendRequest)("".concat(location, "/api/v1/chat/fetchMeetingChat/").concat(props.calendarEvent.id), response
|
|
297
|
+
var fetchChats = function fetchChats() {
|
|
298
|
+
(0, _RestUtils.sendRequest)("".concat(location, "/api/v1/chat/fetchMeetingChat/").concat(props.calendarEvent.id), function (response) {
|
|
165
299
|
if (response && response.id) {
|
|
166
300
|
setMeetingChat(response);
|
|
167
301
|
}
|
|
168
|
-
}, e
|
|
302
|
+
}, function (e) {}, true, false);
|
|
169
303
|
};
|
|
170
304
|
|
|
171
|
-
|
|
305
|
+
var onAVSettingsChange = function onAVSettingsChange(payload) {
|
|
172
306
|
if (payload) {
|
|
173
|
-
|
|
307
|
+
var participant = participants.find(function (p) {
|
|
308
|
+
return p.userId === payload.userId;
|
|
309
|
+
});
|
|
174
310
|
|
|
175
311
|
if (participant) {
|
|
176
312
|
participant.audioMuted = payload.audioMuted;
|
|
@@ -187,41 +323,41 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
187
323
|
userId: sessionStorage.getItem('username'),
|
|
188
324
|
audioMuted: audioMuted,
|
|
189
325
|
videoMuted: videoMuted
|
|
190
|
-
}).catch(error
|
|
326
|
+
}).catch(function (error) {});
|
|
191
327
|
}
|
|
192
328
|
|
|
193
|
-
(0, _react.useEffect)(()
|
|
329
|
+
(0, _react.useEffect)(function () {
|
|
194
330
|
if (audioMuted !== null) {
|
|
195
331
|
onAVSettingsChange({
|
|
196
332
|
userId: sessionStorage.getItem('username'),
|
|
197
|
-
videoMuted,
|
|
198
|
-
audioMuted
|
|
333
|
+
videoMuted: videoMuted,
|
|
334
|
+
audioMuted: audioMuted
|
|
199
335
|
});
|
|
200
336
|
emitAVSettingsChange();
|
|
201
337
|
}
|
|
202
338
|
}, [audioMuted]);
|
|
203
|
-
(0, _react.useEffect)(()
|
|
339
|
+
(0, _react.useEffect)(function () {
|
|
204
340
|
if (videoMuted !== null) {
|
|
205
341
|
onAVSettingsChange({
|
|
206
342
|
userId: sessionStorage.getItem('username'),
|
|
207
|
-
videoMuted,
|
|
208
|
-
audioMuted
|
|
343
|
+
videoMuted: videoMuted,
|
|
344
|
+
audioMuted: audioMuted
|
|
209
345
|
});
|
|
210
346
|
emitAVSettingsChange();
|
|
211
347
|
}
|
|
212
348
|
}, [videoMuted]);
|
|
213
349
|
|
|
214
|
-
|
|
350
|
+
var handleMessageArrived = function handleMessageArrived(event) {
|
|
215
351
|
if (roomStatus === Status.SESSION && event.message && event.message.length > 0) {
|
|
216
352
|
setActivityMessage(event.message);
|
|
217
|
-
|
|
353
|
+
var messageTimeout = setTimeout(function () {
|
|
218
354
|
setActivityMessage(null);
|
|
219
355
|
clearTimeout(messageTimeout);
|
|
220
356
|
}, 4000);
|
|
221
357
|
}
|
|
222
358
|
};
|
|
223
359
|
|
|
224
|
-
|
|
360
|
+
var addUser = function addUser(payload) {
|
|
225
361
|
console.log('ADD USER : ', payload);
|
|
226
362
|
addUserToParticipants(payload.user);
|
|
227
363
|
setAllUserParticipantsLeft(false);
|
|
@@ -237,13 +373,17 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
237
373
|
});
|
|
238
374
|
};
|
|
239
375
|
|
|
240
|
-
|
|
376
|
+
var removeUser = function removeUser(payload) {
|
|
241
377
|
if (props.calendarEvent.id === payload.meetingId) {
|
|
242
|
-
|
|
243
|
-
|
|
378
|
+
var userId = payload.userId;
|
|
379
|
+
var find = participants.find(function (p) {
|
|
380
|
+
return p.userId === userId;
|
|
381
|
+
});
|
|
244
382
|
|
|
245
383
|
if (find) {
|
|
246
|
-
|
|
384
|
+
var newParticipants = participants.filter(function (p) {
|
|
385
|
+
return p.userId !== userId;
|
|
386
|
+
});
|
|
247
387
|
setParticipants(newParticipants);
|
|
248
388
|
|
|
249
389
|
if (newParticipants.length === 0) {
|
|
@@ -254,8 +394,8 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
254
394
|
}
|
|
255
395
|
};
|
|
256
396
|
|
|
257
|
-
|
|
258
|
-
|
|
397
|
+
var handleSidebarToggle = function handleSidebarToggle(e) {
|
|
398
|
+
var paper = document.getElementById('meetingDialogPaper');
|
|
259
399
|
|
|
260
400
|
if (e.detail.open) {
|
|
261
401
|
paper.style.margin = '54px 0 0 136px';
|
|
@@ -264,31 +404,31 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
264
404
|
}
|
|
265
405
|
};
|
|
266
406
|
|
|
267
|
-
(0, _react.useEffect)(()
|
|
407
|
+
(0, _react.useEffect)(function () {
|
|
268
408
|
eventHandler.api = handler();
|
|
269
409
|
});
|
|
270
|
-
(0, _react.useEffect)(()
|
|
410
|
+
(0, _react.useEffect)(function () {
|
|
271
411
|
if (props.settings) {
|
|
272
412
|
setAudioMuted(!props.settings.audioOn);
|
|
273
413
|
setVideoMuted(!props.settings.videoOn);
|
|
274
414
|
}
|
|
275
415
|
}, [props.settings]);
|
|
276
|
-
(0, _react.useEffect)(()
|
|
416
|
+
(0, _react.useEffect)(function () {
|
|
277
417
|
if (!_Utils.default.isNull(handRaised)) {
|
|
278
418
|
if (handRaised) {
|
|
279
419
|
_SocketManager.default.emitEvent(_VCEventType.VCEventType.RAISE_HAND, {
|
|
280
420
|
roomId: props.calendarEvent.id,
|
|
281
421
|
userId: sessionStorage.getItem('username')
|
|
282
|
-
}).catch(error
|
|
422
|
+
}).catch(function (error) {});
|
|
283
423
|
} else {
|
|
284
424
|
_SocketManager.default.emitEvent(_VCEventType.VCEventType.LOWER_HAND, {
|
|
285
425
|
roomId: props.calendarEvent.id,
|
|
286
426
|
userId: sessionStorage.getItem('username')
|
|
287
|
-
}).catch(error
|
|
427
|
+
}).catch(function (error) {});
|
|
288
428
|
}
|
|
289
429
|
}
|
|
290
430
|
}, [handRaised]);
|
|
291
|
-
(0, _react.useEffect)(()
|
|
431
|
+
(0, _react.useEffect)(function () {
|
|
292
432
|
_VCEventManager.default.removeSubscriptions(eventHandler);
|
|
293
433
|
|
|
294
434
|
_ApplicationManager.default.addApplicationContextSubscription({
|
|
@@ -297,13 +437,15 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
297
437
|
return 'training-room';
|
|
298
438
|
},
|
|
299
439
|
|
|
300
|
-
onContextChange: (context, newValues)
|
|
301
|
-
if (Object.keys(newValues).find(
|
|
440
|
+
onContextChange: function onContextChange(context, newValues) {
|
|
441
|
+
if (Object.keys(newValues).find(function (key) {
|
|
442
|
+
return key === 'windowDisplayState';
|
|
443
|
+
})) {
|
|
302
444
|
setDisplayState(newValues.windowDisplayState);
|
|
303
445
|
}
|
|
304
446
|
}
|
|
305
447
|
}
|
|
306
|
-
}).then(initialContext
|
|
448
|
+
}).then(function (initialContext) {
|
|
307
449
|
setDisplayState(initialContext ? initialContext.windowDisplayState : 'MAXIMIZED');
|
|
308
450
|
});
|
|
309
451
|
|
|
@@ -313,7 +455,7 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
313
455
|
|
|
314
456
|
_ApplicationManager.default.setHasActiveMeeting(true);
|
|
315
457
|
|
|
316
|
-
return ()
|
|
458
|
+
return function () {
|
|
317
459
|
_VCEventManager.default.removeSubscriptions(eventHandler);
|
|
318
460
|
|
|
319
461
|
_Observable.default.removeApplicationContextSubscriptions('training-room');
|
|
@@ -328,35 +470,37 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
328
470
|
};
|
|
329
471
|
}, []);
|
|
330
472
|
|
|
331
|
-
_react.default.useEffect(()
|
|
473
|
+
_react.default.useEffect(function () {
|
|
332
474
|
_ApplicationManager.default.setHasActiveMeeting(true);
|
|
333
475
|
|
|
334
|
-
|
|
476
|
+
var userFullName;
|
|
335
477
|
|
|
336
478
|
if (props.calendarEvent.host.username === sessionStorage.getItem('username')) {
|
|
337
479
|
userFullName = props.calendarEvent.host.name;
|
|
338
480
|
} else {
|
|
339
|
-
userFullName = props.calendarEvent.attendees.find(
|
|
481
|
+
userFullName = props.calendarEvent.attendees.find(function (a) {
|
|
482
|
+
return a.username === sessionStorage.getItem('username');
|
|
483
|
+
}).name;
|
|
340
484
|
}
|
|
341
485
|
|
|
342
486
|
setCurrentUserFullName(userFullName);
|
|
343
487
|
setIsHost(props.calendarEvent.host.username === sessionStorage.getItem('username'));
|
|
344
488
|
|
|
345
489
|
try {
|
|
346
|
-
_Media.default.joinMeeting(props.calendarEvent, props.settings, userFullName).then(response
|
|
490
|
+
_Media.default.joinMeeting(props.calendarEvent, props.settings, userFullName).then(function (response) {
|
|
347
491
|
console.log('JOIN RESPONSE : ', response);
|
|
348
492
|
createParticipants(response.participants);
|
|
349
493
|
setRtpCapabilities(response.rtpCapabilities);
|
|
350
494
|
setOnloadScreenShareData(response.shareScreenProducerData);
|
|
351
495
|
setRoomStatus(participants.length > 0 ? Status.SESSION : Status.LOBBY);
|
|
352
|
-
}).catch(e
|
|
496
|
+
}).catch(function (e) {
|
|
353
497
|
setRoomStatus(Status.SYSTEM_ERROR);
|
|
354
498
|
});
|
|
355
499
|
} catch (e) {
|
|
356
500
|
setRoomStatus(Status.SYSTEM_ERROR);
|
|
357
501
|
}
|
|
358
502
|
|
|
359
|
-
return ()
|
|
503
|
+
return function () {
|
|
360
504
|
_ApplicationManager.default.setHasActiveMeeting(false);
|
|
361
505
|
};
|
|
362
506
|
}, []);
|
|
@@ -365,7 +509,9 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
365
509
|
// Typically, a user shoud not exist. We are ensuring that there are never duplicates
|
|
366
510
|
console.log('SEARCHING PARTICIPANT : ' + user.userId);
|
|
367
511
|
console.log(participants);
|
|
368
|
-
|
|
512
|
+
var participant = participants.find(function (u) {
|
|
513
|
+
return u.userId === user.userId;
|
|
514
|
+
});
|
|
369
515
|
|
|
370
516
|
if (participant) {
|
|
371
517
|
console.log('FOUND EXISTING PARTICIPANT : ', participant);
|
|
@@ -389,11 +535,11 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
389
535
|
}
|
|
390
536
|
}
|
|
391
537
|
|
|
392
|
-
|
|
538
|
+
var changeOtherParticipantAVSettings = function changeOtherParticipantAVSettings(userId, audioMuted, videoMuted) {};
|
|
393
539
|
|
|
394
|
-
|
|
540
|
+
var createParticipants = function createParticipants(users) {
|
|
395
541
|
console.log('ALL USERS received and creating participants : ', users);
|
|
396
|
-
users.forEach(user
|
|
542
|
+
users.forEach(function (user) {
|
|
397
543
|
console.log('ADDING ITEM TO PARTICIPANTS : ', user);
|
|
398
544
|
addUserToParticipants(user);
|
|
399
545
|
});
|
|
@@ -407,7 +553,7 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
407
553
|
}
|
|
408
554
|
};
|
|
409
555
|
|
|
410
|
-
|
|
556
|
+
var hangUp = function hangUp() {
|
|
411
557
|
_SocketManager.default.leaveMeeting(props.calendarEvent.id);
|
|
412
558
|
|
|
413
559
|
_ApplicationManager.default.setHasActiveMeeting(false);
|
|
@@ -418,8 +564,8 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
418
564
|
setSideBarTab('');
|
|
419
565
|
};
|
|
420
566
|
|
|
421
|
-
|
|
422
|
-
_ApplicationManager.default.openConfirmDialog("Are you sure you want to end the current session?", result
|
|
567
|
+
var _endSession = function endSession() {
|
|
568
|
+
_ApplicationManager.default.openConfirmDialog("Are you sure you want to end the current session?", function (result) {
|
|
423
569
|
if (result === true) {
|
|
424
570
|
_SocketManager.default.endSession(props.calendarEvent.id);
|
|
425
571
|
|
|
@@ -433,14 +579,26 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
433
579
|
});
|
|
434
580
|
};
|
|
435
581
|
|
|
436
|
-
|
|
437
|
-
|
|
582
|
+
var emitSystemEvent = function emitSystemEvent(eventType, data) {
|
|
583
|
+
var toParticipantIds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
584
|
+
var participantIds = [];
|
|
438
585
|
|
|
439
586
|
if (!toParticipantIds) {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
587
|
+
var _iterator = _createForOfIteratorHelper(participants),
|
|
588
|
+
_step;
|
|
589
|
+
|
|
590
|
+
try {
|
|
591
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
592
|
+
var participant = _step.value;
|
|
593
|
+
|
|
594
|
+
if (participant.userId !== sessionStorage.getItem('username')) {
|
|
595
|
+
participantIds.push(participant.userId);
|
|
596
|
+
}
|
|
443
597
|
}
|
|
598
|
+
} catch (err) {
|
|
599
|
+
_iterator.e(err);
|
|
600
|
+
} finally {
|
|
601
|
+
_iterator.f();
|
|
444
602
|
}
|
|
445
603
|
} else {
|
|
446
604
|
participantIds = participantIds.concat(toParticipantIds);
|
|
@@ -450,10 +608,10 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
450
608
|
systemEventType: eventType,
|
|
451
609
|
recipients: participantIds,
|
|
452
610
|
data: data
|
|
453
|
-
}).catch(error
|
|
611
|
+
}).catch(function (error) {});
|
|
454
612
|
};
|
|
455
613
|
|
|
456
|
-
|
|
614
|
+
var _recordMeeting = function recordMeeting() {
|
|
457
615
|
_VCRoomRecorder.default.init(props.calendarEvent.id, props.calendarEvent.title);
|
|
458
616
|
|
|
459
617
|
setIsRecording(true);
|
|
@@ -465,7 +623,8 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
465
623
|
_VCRoomRecorder.default.recordMeeting();
|
|
466
624
|
};
|
|
467
625
|
|
|
468
|
-
|
|
626
|
+
var stopRecordingMeeting = function stopRecordingMeeting() {
|
|
627
|
+
var publish = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
469
628
|
setIsRecording(false);
|
|
470
629
|
|
|
471
630
|
if (publish) {
|
|
@@ -502,42 +661,42 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
502
661
|
}
|
|
503
662
|
}, /*#__PURE__*/_react.default.createElement(_Toolbar.default, {
|
|
504
663
|
eventHandler: {
|
|
505
|
-
onMuteVideo: muted
|
|
664
|
+
onMuteVideo: function onMuteVideo(muted) {
|
|
506
665
|
setVideoMuted(muted);
|
|
507
666
|
},
|
|
508
|
-
onMuteAudio: muted
|
|
667
|
+
onMuteAudio: function onMuteAudio(muted) {
|
|
509
668
|
setAudioMuted(muted);
|
|
510
669
|
},
|
|
511
|
-
endCall: ()
|
|
670
|
+
endCall: function endCall() {
|
|
512
671
|
hangUp();
|
|
513
672
|
},
|
|
514
|
-
endSession: ()
|
|
515
|
-
|
|
673
|
+
endSession: function endSession() {
|
|
674
|
+
_endSession();
|
|
516
675
|
},
|
|
517
|
-
showChat: ()
|
|
676
|
+
showChat: function showChat() {
|
|
518
677
|
fetchChats();
|
|
519
678
|
},
|
|
520
|
-
showPeople: ()
|
|
679
|
+
showPeople: function showPeople() {
|
|
521
680
|
setSideBarTab('People');
|
|
522
681
|
setSideBarOpen(true);
|
|
523
682
|
},
|
|
524
|
-
shareScreen: ()
|
|
683
|
+
shareScreen: function shareScreen() {
|
|
525
684
|
setStartScreenSharing(true);
|
|
526
685
|
},
|
|
527
|
-
stopShareScreen: ()
|
|
686
|
+
stopShareScreen: function stopShareScreen() {
|
|
528
687
|
setScreenShared(false);
|
|
529
688
|
setStartScreenSharing(false);
|
|
530
689
|
},
|
|
531
|
-
recordMeeting: ()
|
|
532
|
-
|
|
690
|
+
recordMeeting: function recordMeeting() {
|
|
691
|
+
_recordMeeting();
|
|
533
692
|
},
|
|
534
|
-
stopRecording: ()
|
|
693
|
+
stopRecording: function stopRecording() {
|
|
535
694
|
stopRecordingMeeting();
|
|
536
695
|
},
|
|
537
|
-
raiseHand: ()
|
|
696
|
+
raiseHand: function raiseHand() {
|
|
538
697
|
setHandRaised(true);
|
|
539
698
|
},
|
|
540
|
-
lowerHand: ()
|
|
699
|
+
lowerHand: function lowerHand() {
|
|
541
700
|
setHandRaised(false);
|
|
542
701
|
}
|
|
543
702
|
},
|
|
@@ -556,6 +715,8 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
556
715
|
someoneSharing: someoneSharing,
|
|
557
716
|
isRecording: isRecording,
|
|
558
717
|
raisedHands: raisedHands,
|
|
718
|
+
isAudioDeviceConnected: props.settings.isAudioDeviceConnected,
|
|
719
|
+
isVideoDeviceConnected: props.settings.isVideoDeviceConnected,
|
|
559
720
|
meetingId: props.calendarEvent.id
|
|
560
721
|
})), roomStatus === Status.SYSTEM_ERROR && /*#__PURE__*/_react.default.createElement("div", {
|
|
561
722
|
style: {
|
|
@@ -583,19 +744,21 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
583
744
|
meetingTitle: props.calendarEvent.title,
|
|
584
745
|
meetingId: props.calendarEvent.id,
|
|
585
746
|
currentUserFullName: currentUserFullName,
|
|
586
|
-
onGridSetup: ()
|
|
747
|
+
onGridSetup: function onGridSetup() {
|
|
587
748
|
setSideBarTab('People');
|
|
588
749
|
},
|
|
589
750
|
sideBarTab: sideBarTab,
|
|
590
751
|
roomStatus: roomStatus,
|
|
591
752
|
isHost: isHost,
|
|
592
753
|
startScreenSharing: startScreenSharing,
|
|
593
|
-
sharingHandler:
|
|
594
|
-
|
|
754
|
+
sharingHandler: function sharingHandler(someoneSharing) {
|
|
755
|
+
return setSomeoneSharing(someoneSharing);
|
|
756
|
+
},
|
|
757
|
+
onStopSharing: function onStopSharing() {
|
|
595
758
|
setScreenShared(false);
|
|
596
759
|
setStartScreenSharing(false);
|
|
597
760
|
},
|
|
598
|
-
onStartSharing: ()
|
|
761
|
+
onStartSharing: function onStartSharing() {
|
|
599
762
|
setScreenShared(true);
|
|
600
763
|
setStartScreenSharing(false);
|
|
601
764
|
},
|
|
@@ -605,19 +768,19 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
605
768
|
displayState: displayState,
|
|
606
769
|
onloadScreenShareData: onloadScreenShareData,
|
|
607
770
|
allUserParticipantsLeft: allUserParticipantsLeft,
|
|
608
|
-
onAudioDeviceChange: device
|
|
771
|
+
onAudioDeviceChange: function onAudioDeviceChange(device) {
|
|
609
772
|
setAudioDisabled(_Utils.default.isNull(device));
|
|
610
773
|
},
|
|
611
|
-
onHostAudioMute: participant
|
|
774
|
+
onHostAudioMute: function onHostAudioMute(participant) {
|
|
612
775
|
changeOtherParticipantAVSettings(participant.userId, true, participant.videoMuted);
|
|
613
776
|
},
|
|
614
|
-
onHostVideoMute: participant
|
|
777
|
+
onHostVideoMute: function onHostVideoMute(participant) {
|
|
615
778
|
changeOtherParticipantAVSettings(participant.userId, participant.audioMuted, true);
|
|
616
779
|
}
|
|
617
780
|
}))), sideBarOpen && sideBarTab && displayState === 'MAXIMIZED' && roomStatus === Status.SESSION && /*#__PURE__*/_react.default.createElement("div", {
|
|
618
781
|
className: 'closable-panel-container'
|
|
619
782
|
}, /*#__PURE__*/_react.default.createElement(_ClosablePanel.default, {
|
|
620
|
-
closeHandler: e
|
|
783
|
+
closeHandler: function closeHandler(e) {
|
|
621
784
|
setSideBarOpen(false);
|
|
622
785
|
setSideBarTab(null);
|
|
623
786
|
},
|
|
@@ -628,10 +791,10 @@ const TrainingRoom = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.defau
|
|
|
628
791
|
tab: sideBarTab,
|
|
629
792
|
meetingId: props.calendarEvent.id,
|
|
630
793
|
participants: participants,
|
|
631
|
-
onHostAudioMute: participant
|
|
794
|
+
onHostAudioMute: function onHostAudioMute(participant) {
|
|
632
795
|
changeOtherParticipantAVSettings(participant.userId, true, participant.videoMuted);
|
|
633
796
|
},
|
|
634
|
-
onHostVideoMute: participant
|
|
797
|
+
onHostVideoMute: function onHostVideoMute(participant) {
|
|
635
798
|
changeOtherParticipantAVSettings(participant.userId, participant.audioMuted, true);
|
|
636
799
|
}
|
|
637
800
|
})))), /*#__PURE__*/_react.default.createElement("div", {
|